diff --git a/3rdparty/pythonqt/CMakeLists.txt b/3rdparty/pythonqt/CMakeLists.txt deleted file mode 100644 index aaef50a72..000000000 --- a/3rdparty/pythonqt/CMakeLists.txt +++ /dev/null @@ -1,89 +0,0 @@ -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src) -include_directories(${PYTHON_INCLUDE_DIRS}) - -set(SOURCES - generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp - generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp - generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp - generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp - generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp - generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp - generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp - generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp - generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp - generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp - generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp - src/gui/PythonQtScriptingConsole.cpp - src/PythonQtClassInfo.cpp - src/PythonQtClassWrapper.cpp - src/PythonQtConversion.cpp - src/PythonQt.cpp - src/PythonQtImporter.cpp - src/PythonQtInstanceWrapper.cpp - src/PythonQtMethodInfo.cpp - src/PythonQtMisc.cpp - src/PythonQtObjectPtr.cpp - src/PythonQtQFileImporter.cpp - src/PythonQtSignalReceiver.cpp - src/PythonQtSlot.cpp - src/PythonQtStdDecorators.cpp - src/PythonQtStdOut.cpp -) - -set(HEADERS - generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h - generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h - generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.h - generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.h - generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.h - generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.h - generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.h - generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h - src/gui/PythonQtScriptingConsole.h - src/PythonQt.h - src/PythonQtSignalReceiver.h - src/PythonQtStdDecorators.h -) - -qt4_wrap_cpp(MOC ${HEADERS}) - -if(STATIC_PYTHONQT) - set(TYPE STATIC) -else(STATIC_PYTHONQT) - set(TYPE SHARED) -endif(STATIC_PYTHONQT) - -add_definitions(-DPYTHONQT_EXPORTS) - -add_library(pythonqt ${TYPE} - ${SOURCES} - ${MOC} -) -set_target_properties(pythonqt PROPERTIES COMPILE_FLAGS "-Wno-write-strings -Wno-format-nonliteral -Wno-format-security") - -target_link_libraries(pythonqt - ${PYTHON_LIBRARIES} - ${QT_LIBRARIES} -) diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core.pri b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core.pri deleted file mode 100644 index d9003d9f4..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core.pri +++ /dev/null @@ -1,10 +0,0 @@ -HEADERS += \ - $$PWD/com_trolltech_qt_core0.h \ - $$PWD/com_trolltech_qt_core1.h \ - $$PWD/com_trolltech_qt_core2.h \ - -SOURCES += \ - $$PWD/com_trolltech_qt_core0.cpp \ - $$PWD/com_trolltech_qt_core1.cpp \ - $$PWD/com_trolltech_qt_core2.cpp \ - $$PWD/com_trolltech_qt_core_init.cpp diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp deleted file mode 100644 index cbe69d5a4..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp +++ /dev/null @@ -1,7654 +0,0 @@ -#include "com_trolltech_qt_core0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QAbstractAnimation::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractAnimation::childEvent(arg__1); -} -void PythonQtShell_QAbstractAnimation::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractAnimation::customEvent(arg__1); -} -int PythonQtShell_QAbstractAnimation::duration() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAbstractAnimation::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractAnimation::event(event); -} -bool PythonQtShell_QAbstractAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractAnimation::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractAnimation::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractAnimation::timerEvent(arg__1); -} -void PythonQtShell_QAbstractAnimation::updateCurrentTime(int currentTime) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)¤tTime}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractAnimation::updateDirection(QAbstractAnimation::Direction direction) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&direction}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractAnimation::updateDirection(direction); -} -void PythonQtShell_QAbstractAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractAnimation::updateState(newState, oldState); -} -QAbstractAnimation* PythonQtWrapper_QAbstractAnimation::new_QAbstractAnimation(QObject* parent) -{ -return new PythonQtShell_QAbstractAnimation(parent); } - -int PythonQtWrapper_QAbstractAnimation::currentLoop(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->currentLoop()); -} - -int PythonQtWrapper_QAbstractAnimation::currentLoopTime(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->currentLoopTime()); -} - -int PythonQtWrapper_QAbstractAnimation::currentTime(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->currentTime()); -} - -QAbstractAnimation::Direction PythonQtWrapper_QAbstractAnimation::direction(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->direction()); -} - -bool PythonQtWrapper_QAbstractAnimation::event(QAbstractAnimation* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_event(event)); -} - -QAnimationGroup* PythonQtWrapper_QAbstractAnimation::group(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->group()); -} - -int PythonQtWrapper_QAbstractAnimation::loopCount(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->loopCount()); -} - -void PythonQtWrapper_QAbstractAnimation::setDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction) -{ - ( theWrappedObject->setDirection(direction)); -} - -void PythonQtWrapper_QAbstractAnimation::setLoopCount(QAbstractAnimation* theWrappedObject, int loopCount) -{ - ( theWrappedObject->setLoopCount(loopCount)); -} - -QAbstractAnimation::State PythonQtWrapper_QAbstractAnimation::state(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -int PythonQtWrapper_QAbstractAnimation::totalDuration(QAbstractAnimation* theWrappedObject) const -{ - return ( theWrappedObject->totalDuration()); -} - -void PythonQtWrapper_QAbstractAnimation::updateDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction) -{ - ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_updateDirection(direction)); -} - -void PythonQtWrapper_QAbstractAnimation::updateState(QAbstractAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ - ( ((PythonQtPublicPromoter_QAbstractAnimation*)theWrappedObject)->promoted_updateState(newState, oldState)); -} - - - -QModelIndex PythonQtShell_QAbstractItemModel::buddy(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::buddy(index); -} -bool PythonQtShell_QAbstractItemModel::canFetchMore(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::canFetchMore(parent); -} -void PythonQtShell_QAbstractItemModel::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemModel::childEvent(arg__1); -} -int PythonQtShell_QAbstractItemModel::columnCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QAbstractItemModel::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemModel::customEvent(arg__1); -} -QVariant PythonQtShell_QAbstractItemModel::data(const QModelIndex& index, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&index, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariant(); -} -bool PythonQtShell_QAbstractItemModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::dropMimeData(data, action, row, column, parent); -} -bool PythonQtShell_QAbstractItemModel::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::event(arg__1); -} -bool PythonQtShell_QAbstractItemModel::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractItemModel::fetchMore(const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemModel::fetchMore(parent); -} -Qt::ItemFlags PythonQtShell_QAbstractItemModel::flags(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); - } else { - returnValue = *((Qt::ItemFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::flags(index); -} -bool PythonQtShell_QAbstractItemModel::hasChildren(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasChildren"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasChildren", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::hasChildren(parent); -} -QVariant PythonQtShell_QAbstractItemModel::headerData(int section, Qt::Orientation orientation, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::headerData(section, orientation, role); -} -QModelIndex PythonQtShell_QAbstractItemModel::index(int row, int column, const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QModelIndex returnValue; - void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QModelIndex(); -} -bool PythonQtShell_QAbstractItemModel::insertColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::insertColumns(column, count, parent); -} -bool PythonQtShell_QAbstractItemModel::insertRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::insertRows(row, count, parent); -} -QMap PythonQtShell_QAbstractItemModel::itemData(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMap returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); - } else { - returnValue = *((QMap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::itemData(index); -} -QList PythonQtShell_QAbstractItemModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - QList returnValue; - void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::match(start, role, value, hits, flags); -} -QMimeData* PythonQtShell_QAbstractItemModel::mimeData(const QList& indexes) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::mimeData(indexes); -} -QStringList PythonQtShell_QAbstractItemModel::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::mimeTypes(); -} -QModelIndex PythonQtShell_QAbstractItemModel::parent(const QModelIndex& child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("parent", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QModelIndex(); -} -bool PythonQtShell_QAbstractItemModel::removeColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::removeColumns(column, count, parent); -} -bool PythonQtShell_QAbstractItemModel::removeRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::removeRows(row, count, parent); -} -void PythonQtShell_QAbstractItemModel::revert() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemModel::revert(); -} -int PythonQtShell_QAbstractItemModel::rowCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAbstractItemModel::setData(const QModelIndex& index, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::setData(index, value, role); -} -bool PythonQtShell_QAbstractItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::setHeaderData(section, orientation, value, role); -} -bool PythonQtShell_QAbstractItemModel::setItemData(const QModelIndex& index, const QMap& roles) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::setItemData(index, roles); -} -void PythonQtShell_QAbstractItemModel::sort(int column, Qt::SortOrder order) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&column, (void*)&order}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemModel::sort(column, order); -} -QSize PythonQtShell_QAbstractItemModel::span(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::span(index); -} -bool PythonQtShell_QAbstractItemModel::submit() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::submit(); -} -Qt::DropActions PythonQtShell_QAbstractItemModel::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemModel::supportedDropActions(); -} -void PythonQtShell_QAbstractItemModel::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemModel::timerEvent(arg__1); -} -QAbstractItemModel* PythonQtWrapper_QAbstractItemModel::new_QAbstractItemModel(QObject* parent) -{ -return new PythonQtShell_QAbstractItemModel(parent); } - -QModelIndex PythonQtWrapper_QAbstractItemModel::buddy(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_buddy(index)); -} - -bool PythonQtWrapper_QAbstractItemModel::canFetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_canFetchMore(parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::dropMimeData(QAbstractItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); -} - -void PythonQtWrapper_QAbstractItemModel::fetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) -{ - ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_fetchMore(parent)); -} - -Qt::ItemFlags PythonQtWrapper_QAbstractItemModel::flags(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_flags(index)); -} - -bool PythonQtWrapper_QAbstractItemModel::hasChildren(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_hasChildren(parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::hasIndex(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& parent) const -{ - return ( theWrappedObject->hasIndex(row, column, parent)); -} - -QVariant PythonQtWrapper_QAbstractItemModel::headerData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_headerData(section, orientation, role)); -} - -bool PythonQtWrapper_QAbstractItemModel::insertColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent) -{ - return ( theWrappedObject->insertColumn(column, parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::insertColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_insertColumns(column, count, parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::insertRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent) -{ - return ( theWrappedObject->insertRow(row, parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::insertRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_insertRows(row, count, parent)); -} - -QMap PythonQtWrapper_QAbstractItemModel::itemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_itemData(index)); -} - -QList PythonQtWrapper_QAbstractItemModel::match(QAbstractItemModel* theWrappedObject, const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_match(start, role, value, hits, flags)); -} - -QMimeData* PythonQtWrapper_QAbstractItemModel::mimeData(QAbstractItemModel* theWrappedObject, const QList& indexes) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_mimeData(indexes)); -} - -QStringList PythonQtWrapper_QAbstractItemModel::mimeTypes(QAbstractItemModel* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_mimeTypes()); -} - -QObject* PythonQtWrapper_QAbstractItemModel::parent(QAbstractItemModel* theWrappedObject) const -{ - return ( theWrappedObject->parent()); -} - -bool PythonQtWrapper_QAbstractItemModel::removeColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent) -{ - return ( theWrappedObject->removeColumn(column, parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::removeColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_removeColumns(column, count, parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::removeRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent) -{ - return ( theWrappedObject->removeRow(row, parent)); -} - -bool PythonQtWrapper_QAbstractItemModel::removeRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_removeRows(row, count, parent)); -} - -const QHash* PythonQtWrapper_QAbstractItemModel::roleNames(QAbstractItemModel* theWrappedObject) const -{ - return &( theWrappedObject->roleNames()); -} - -bool PythonQtWrapper_QAbstractItemModel::setData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_setData(index, value, role)); -} - -bool PythonQtWrapper_QAbstractItemModel::setHeaderData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_setHeaderData(section, orientation, value, role)); -} - -bool PythonQtWrapper_QAbstractItemModel::setItemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_setItemData(index, roles)); -} - -void PythonQtWrapper_QAbstractItemModel::setSupportedDragActions(QAbstractItemModel* theWrappedObject, Qt::DropActions arg__1) -{ - ( theWrappedObject->setSupportedDragActions(arg__1)); -} - -QModelIndex PythonQtWrapper_QAbstractItemModel::sibling(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& idx) const -{ - return ( theWrappedObject->sibling(row, column, idx)); -} - -void PythonQtWrapper_QAbstractItemModel::sort(QAbstractItemModel* theWrappedObject, int column, Qt::SortOrder order) -{ - ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_sort(column, order)); -} - -QSize PythonQtWrapper_QAbstractItemModel::span(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_span(index)); -} - -Qt::DropActions PythonQtWrapper_QAbstractItemModel::supportedDragActions(QAbstractItemModel* theWrappedObject) const -{ - return ( theWrappedObject->supportedDragActions()); -} - -Qt::DropActions PythonQtWrapper_QAbstractItemModel::supportedDropActions(QAbstractItemModel* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemModel*)theWrappedObject)->promoted_supportedDropActions()); -} - - - -QModelIndex PythonQtShell_QAbstractListModel::buddy(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::buddy(index); -} -bool PythonQtShell_QAbstractListModel::canFetchMore(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::canFetchMore(parent); -} -void PythonQtShell_QAbstractListModel::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractListModel::childEvent(arg__1); -} -void PythonQtShell_QAbstractListModel::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractListModel::customEvent(arg__1); -} -QVariant PythonQtShell_QAbstractListModel::data(const QModelIndex& index, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&index, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariant(); -} -bool PythonQtShell_QAbstractListModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::dropMimeData(data, action, row, column, parent); -} -bool PythonQtShell_QAbstractListModel::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::event(arg__1); -} -bool PythonQtShell_QAbstractListModel::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractListModel::fetchMore(const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractListModel::fetchMore(parent); -} -Qt::ItemFlags PythonQtShell_QAbstractListModel::flags(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); - } else { - returnValue = *((Qt::ItemFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::flags(index); -} -QVariant PythonQtShell_QAbstractListModel::headerData(int section, Qt::Orientation orientation, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::headerData(section, orientation, role); -} -QModelIndex PythonQtShell_QAbstractListModel::index(int row, int column, const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QModelIndex returnValue; - void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::index(row, column, parent); -} -bool PythonQtShell_QAbstractListModel::insertColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::insertColumns(column, count, parent); -} -bool PythonQtShell_QAbstractListModel::insertRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::insertRows(row, count, parent); -} -QMap PythonQtShell_QAbstractListModel::itemData(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMap returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); - } else { - returnValue = *((QMap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::itemData(index); -} -QList PythonQtShell_QAbstractListModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - QList returnValue; - void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::match(start, role, value, hits, flags); -} -QMimeData* PythonQtShell_QAbstractListModel::mimeData(const QList& indexes) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::mimeData(indexes); -} -QStringList PythonQtShell_QAbstractListModel::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::mimeTypes(); -} -bool PythonQtShell_QAbstractListModel::removeColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::removeColumns(column, count, parent); -} -bool PythonQtShell_QAbstractListModel::removeRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::removeRows(row, count, parent); -} -void PythonQtShell_QAbstractListModel::revert() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractListModel::revert(); -} -int PythonQtShell_QAbstractListModel::rowCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAbstractListModel::setData(const QModelIndex& index, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::setData(index, value, role); -} -bool PythonQtShell_QAbstractListModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::setHeaderData(section, orientation, value, role); -} -bool PythonQtShell_QAbstractListModel::setItemData(const QModelIndex& index, const QMap& roles) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::setItemData(index, roles); -} -void PythonQtShell_QAbstractListModel::sort(int column, Qt::SortOrder order) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&column, (void*)&order}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractListModel::sort(column, order); -} -QSize PythonQtShell_QAbstractListModel::span(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::span(index); -} -bool PythonQtShell_QAbstractListModel::submit() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::submit(); -} -Qt::DropActions PythonQtShell_QAbstractListModel::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractListModel::supportedDropActions(); -} -void PythonQtShell_QAbstractListModel::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractListModel::timerEvent(arg__1); -} -QAbstractListModel* PythonQtWrapper_QAbstractListModel::new_QAbstractListModel(QObject* parent) -{ -return new PythonQtShell_QAbstractListModel(parent); } - -bool PythonQtWrapper_QAbstractListModel::dropMimeData(QAbstractListModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QAbstractListModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); -} - -QModelIndex PythonQtWrapper_QAbstractListModel::index(QAbstractListModel* theWrappedObject, int row, int column, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QAbstractListModel*)theWrappedObject)->promoted_index(row, column, parent)); -} - - - -void PythonQtShell_QAbstractState::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractState::childEvent(arg__1); -} -void PythonQtShell_QAbstractState::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractState::customEvent(arg__1); -} -bool PythonQtShell_QAbstractState::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractState::event(e); -} -bool PythonQtShell_QAbstractState::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractState::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractState::onEntry(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractState::onExit(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractState::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractState::timerEvent(arg__1); -} -bool PythonQtWrapper_QAbstractState::event(QAbstractState* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QAbstractState*)theWrappedObject)->promoted_event(e)); -} - -QStateMachine* PythonQtWrapper_QAbstractState::machine(QAbstractState* theWrappedObject) const -{ - return ( theWrappedObject->machine()); -} - -QState* PythonQtWrapper_QAbstractState::parentState(QAbstractState* theWrappedObject) const -{ - return ( theWrappedObject->parentState()); -} - - - -void PythonQtShell_QAbstractTransition::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTransition::childEvent(arg__1); -} -void PythonQtShell_QAbstractTransition::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTransition::customEvent(arg__1); -} -bool PythonQtShell_QAbstractTransition::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTransition::event(e); -} -bool PythonQtShell_QAbstractTransition::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTransition::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QAbstractTransition::eventTest(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -void PythonQtShell_QAbstractTransition::onTransition(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractTransition::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTransition::timerEvent(arg__1); -} -QAbstractTransition* PythonQtWrapper_QAbstractTransition::new_QAbstractTransition(QState* sourceState) -{ -return new PythonQtShell_QAbstractTransition(sourceState); } - -void PythonQtWrapper_QAbstractTransition::addAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation) -{ - ( theWrappedObject->addAnimation(animation)); -} - -QList PythonQtWrapper_QAbstractTransition::animations(QAbstractTransition* theWrappedObject) const -{ - return ( theWrappedObject->animations()); -} - -bool PythonQtWrapper_QAbstractTransition::event(QAbstractTransition* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QAbstractTransition*)theWrappedObject)->promoted_event(e)); -} - -QStateMachine* PythonQtWrapper_QAbstractTransition::machine(QAbstractTransition* theWrappedObject) const -{ - return ( theWrappedObject->machine()); -} - -void PythonQtWrapper_QAbstractTransition::removeAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation) -{ - ( theWrappedObject->removeAnimation(animation)); -} - -void PythonQtWrapper_QAbstractTransition::setTargetState(QAbstractTransition* theWrappedObject, QAbstractState* target) -{ - ( theWrappedObject->setTargetState(target)); -} - -void PythonQtWrapper_QAbstractTransition::setTargetStates(QAbstractTransition* theWrappedObject, const QList& targets) -{ - ( theWrappedObject->setTargetStates(targets)); -} - -QState* PythonQtWrapper_QAbstractTransition::sourceState(QAbstractTransition* theWrappedObject) const -{ - return ( theWrappedObject->sourceState()); -} - -QAbstractState* PythonQtWrapper_QAbstractTransition::targetState(QAbstractTransition* theWrappedObject) const -{ - return ( theWrappedObject->targetState()); -} - -QList PythonQtWrapper_QAbstractTransition::targetStates(QAbstractTransition* theWrappedObject) const -{ - return ( theWrappedObject->targetStates()); -} - - - -void PythonQtShell_QAnimationGroup::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAnimationGroup::childEvent(arg__1); -} -void PythonQtShell_QAnimationGroup::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAnimationGroup::customEvent(arg__1); -} -int PythonQtShell_QAnimationGroup::duration() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAnimationGroup::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAnimationGroup::event(event); -} -bool PythonQtShell_QAnimationGroup::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAnimationGroup::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAnimationGroup::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAnimationGroup::timerEvent(arg__1); -} -void PythonQtShell_QAnimationGroup::updateCurrentTime(int currentTime) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)¤tTime}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAnimationGroup::updateDirection(QAbstractAnimation::Direction direction) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&direction}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAnimationGroup::updateDirection(direction); -} -void PythonQtShell_QAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAnimationGroup::updateState(newState, oldState); -} -QAnimationGroup* PythonQtWrapper_QAnimationGroup::new_QAnimationGroup(QObject* parent) -{ -return new PythonQtShell_QAnimationGroup(parent); } - -void PythonQtWrapper_QAnimationGroup::addAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) -{ - ( theWrappedObject->addAnimation(animation)); -} - -QAbstractAnimation* PythonQtWrapper_QAnimationGroup::animationAt(QAnimationGroup* theWrappedObject, int index) const -{ - return ( theWrappedObject->animationAt(index)); -} - -int PythonQtWrapper_QAnimationGroup::animationCount(QAnimationGroup* theWrappedObject) const -{ - return ( theWrappedObject->animationCount()); -} - -void PythonQtWrapper_QAnimationGroup::clear(QAnimationGroup* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QAnimationGroup::event(QAnimationGroup* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QAnimationGroup*)theWrappedObject)->promoted_event(event)); -} - -int PythonQtWrapper_QAnimationGroup::indexOfAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) const -{ - return ( theWrappedObject->indexOfAnimation(animation)); -} - -void PythonQtWrapper_QAnimationGroup::insertAnimation(QAnimationGroup* theWrappedObject, int index, QAbstractAnimation* animation) -{ - ( theWrappedObject->insertAnimation(index, animation)); -} - -void PythonQtWrapper_QAnimationGroup::removeAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) -{ - ( theWrappedObject->removeAnimation(animation)); -} - -QAbstractAnimation* PythonQtWrapper_QAnimationGroup::takeAnimation(QAnimationGroup* theWrappedObject, int index) -{ - return ( theWrappedObject->takeAnimation(index)); -} - - - -QBasicTimer* PythonQtWrapper_QBasicTimer::new_QBasicTimer() -{ -return new QBasicTimer(); } - -bool PythonQtWrapper_QBasicTimer::isActive(QBasicTimer* theWrappedObject) const -{ - return ( theWrappedObject->isActive()); -} - -void PythonQtWrapper_QBasicTimer::start(QBasicTimer* theWrappedObject, int msec, QObject* obj) -{ - ( theWrappedObject->start(msec, obj)); -} - -void PythonQtWrapper_QBasicTimer::stop(QBasicTimer* theWrappedObject) -{ - ( theWrappedObject->stop()); -} - -int PythonQtWrapper_QBasicTimer::timerId(QBasicTimer* theWrappedObject) const -{ - return ( theWrappedObject->timerId()); -} - - - -bool PythonQtShell_QBuffer::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::atEnd(); -} -qint64 PythonQtShell_QBuffer::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::bytesAvailable(); -} -qint64 PythonQtShell_QBuffer::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::bytesToWrite(); -} -bool PythonQtShell_QBuffer::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::canReadLine(); -} -void PythonQtShell_QBuffer::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBuffer::childEvent(arg__1); -} -void PythonQtShell_QBuffer::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBuffer::close(); -} -void PythonQtShell_QBuffer::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBuffer::customEvent(arg__1); -} -bool PythonQtShell_QBuffer::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::event(arg__1); -} -bool PythonQtShell_QBuffer::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QBuffer::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::isSequential(); -} -bool PythonQtShell_QBuffer::open(QIODevice::OpenMode openMode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&openMode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::open(openMode); -} -qint64 PythonQtShell_QBuffer::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::pos(); -} -qint64 PythonQtShell_QBuffer::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::readData(data, maxlen); -} -qint64 PythonQtShell_QBuffer::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::readLineData(data, maxlen); -} -bool PythonQtShell_QBuffer::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::reset(); -} -bool PythonQtShell_QBuffer::seek(qint64 off) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&off}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::seek(off); -} -qint64 PythonQtShell_QBuffer::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::size(); -} -void PythonQtShell_QBuffer::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBuffer::timerEvent(arg__1); -} -bool PythonQtShell_QBuffer::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::waitForBytesWritten(msecs); -} -bool PythonQtShell_QBuffer::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QBuffer::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBuffer::writeData(data, len); -} -QBuffer* PythonQtWrapper_QBuffer::new_QBuffer(QByteArray* buf, QObject* parent) -{ -return new PythonQtShell_QBuffer(buf, parent); } - -QBuffer* PythonQtWrapper_QBuffer::new_QBuffer(QObject* parent) -{ -return new PythonQtShell_QBuffer(parent); } - -bool PythonQtWrapper_QBuffer::atEnd(QBuffer* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_atEnd()); -} - -bool PythonQtWrapper_QBuffer::canReadLine(QBuffer* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_canReadLine()); -} - -void PythonQtWrapper_QBuffer::close(QBuffer* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_close()); -} - -bool PythonQtWrapper_QBuffer::open(QBuffer* theWrappedObject, QIODevice::OpenMode openMode) -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_open(openMode)); -} - -qint64 PythonQtWrapper_QBuffer::pos(QBuffer* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_pos()); -} - -qint64 PythonQtWrapper_QBuffer::readData(QBuffer* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_readData(data, maxlen)); -} - -bool PythonQtWrapper_QBuffer::seek(QBuffer* theWrappedObject, qint64 off) -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_seek(off)); -} - -void PythonQtWrapper_QBuffer::setBuffer(QBuffer* theWrappedObject, QByteArray* a) -{ - ( theWrappedObject->setBuffer(a)); -} - -void PythonQtWrapper_QBuffer::setData(QBuffer* theWrappedObject, const QByteArray& data) -{ - ( theWrappedObject->setData(data)); -} - -qint64 PythonQtWrapper_QBuffer::size(QBuffer* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_size()); -} - -qint64 PythonQtWrapper_QBuffer::writeData(QBuffer* theWrappedObject, const char* data, qint64 len) -{ - return ( ((PythonQtPublicPromoter_QBuffer*)theWrappedObject)->promoted_writeData(data, len)); -} - - - -QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher() -{ -return new QByteArrayMatcher(); } - -QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher(const QByteArray& pattern) -{ -return new QByteArrayMatcher(pattern); } - -QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher(const QByteArrayMatcher& other) -{ -return new QByteArrayMatcher(other); } - -QByteArrayMatcher* PythonQtWrapper_QByteArrayMatcher::new_QByteArrayMatcher(const char* pattern, int length) -{ -return new QByteArrayMatcher(pattern, length); } - -int PythonQtWrapper_QByteArrayMatcher::indexIn(QByteArrayMatcher* theWrappedObject, const QByteArray& ba, int from) const -{ - return ( theWrappedObject->indexIn(ba, from)); -} - -int PythonQtWrapper_QByteArrayMatcher::indexIn(QByteArrayMatcher* theWrappedObject, const char* str, int len, int from) const -{ - return ( theWrappedObject->indexIn(str, len, from)); -} - -QByteArray PythonQtWrapper_QByteArrayMatcher::pattern(QByteArrayMatcher* theWrappedObject) const -{ - return ( theWrappedObject->pattern()); -} - -void PythonQtWrapper_QByteArrayMatcher::setPattern(QByteArrayMatcher* theWrappedObject, const QByteArray& pattern) -{ - ( theWrappedObject->setPattern(pattern)); -} - - - -QChildEvent* PythonQtWrapper_QChildEvent::new_QChildEvent(QEvent::Type type, QObject* child) -{ -return new PythonQtShell_QChildEvent(type, child); } - -bool PythonQtWrapper_QChildEvent::added(QChildEvent* theWrappedObject) const -{ - return ( theWrappedObject->added()); -} - -QObject* PythonQtWrapper_QChildEvent::child(QChildEvent* theWrappedObject) const -{ - return ( theWrappedObject->child()); -} - -bool PythonQtWrapper_QChildEvent::polished(QChildEvent* theWrappedObject) const -{ - return ( theWrappedObject->polished()); -} - -bool PythonQtWrapper_QChildEvent::removed(QChildEvent* theWrappedObject) const -{ - return ( theWrappedObject->removed()); -} - - - -void PythonQtShell_QCoreApplication::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCoreApplication::childEvent(arg__1); -} -void PythonQtShell_QCoreApplication::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCoreApplication::customEvent(arg__1); -} -bool PythonQtShell_QCoreApplication::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCoreApplication::event(arg__1); -} -bool PythonQtShell_QCoreApplication::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCoreApplication::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QCoreApplication::notify(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notify"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("notify", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCoreApplication::notify(arg__1, arg__2); -} -void PythonQtShell_QCoreApplication::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCoreApplication::timerEvent(arg__1); -} -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_addLibraryPath(const QString& arg__1) -{ - (QCoreApplication::addLibraryPath(arg__1)); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationDirPath() -{ - return (QCoreApplication::applicationDirPath()); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationFilePath() -{ - return (QCoreApplication::applicationFilePath()); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationName() -{ - return (QCoreApplication::applicationName()); -} - -qint64 PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationPid() -{ - return (QCoreApplication::applicationPid()); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_applicationVersion() -{ - return (QCoreApplication::applicationVersion()); -} - -bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_closingDown() -{ - return (QCoreApplication::closingDown()); -} - -bool PythonQtWrapper_QCoreApplication::event(QCoreApplication* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_event(arg__1)); -} - -int PythonQtWrapper_QCoreApplication::static_QCoreApplication_exec() -{ - return (QCoreApplication::exec()); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_exit(int retcode) -{ - (QCoreApplication::exit(retcode)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_flush() -{ - (QCoreApplication::flush()); -} - -bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_hasPendingEvents() -{ - return (QCoreApplication::hasPendingEvents()); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_installTranslator(QTranslator* messageFile) -{ - (QCoreApplication::installTranslator(messageFile)); -} - -QCoreApplication* PythonQtWrapper_QCoreApplication::static_QCoreApplication_instance() -{ - return (QCoreApplication::instance()); -} - -QStringList PythonQtWrapper_QCoreApplication::static_QCoreApplication_libraryPaths() -{ - return (QCoreApplication::libraryPaths()); -} - -bool PythonQtWrapper_QCoreApplication::notify(QCoreApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QCoreApplication*)theWrappedObject)->promoted_notify(arg__1, arg__2)); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationDomain() -{ - return (QCoreApplication::organizationDomain()); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_organizationName() -{ - return (QCoreApplication::organizationName()); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event) -{ - (QCoreApplication::postEvent(receiver, event)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_postEvent(QObject* receiver, QEvent* event, int priority) -{ - (QCoreApplication::postEvent(receiver, event, priority)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags) -{ - (QCoreApplication::processEvents(flags)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime) -{ - (QCoreApplication::processEvents(flags, maxtime)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeLibraryPath(const QString& arg__1) -{ - (QCoreApplication::removeLibraryPath(arg__1)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removePostedEvents(QObject* receiver) -{ - (QCoreApplication::removePostedEvents(receiver)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removePostedEvents(QObject* receiver, int eventType) -{ - (QCoreApplication::removePostedEvents(receiver, eventType)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_removeTranslator(QTranslator* messageFile) -{ - (QCoreApplication::removeTranslator(messageFile)); -} - -bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendEvent(QObject* receiver, QEvent* event) -{ - return (QCoreApplication::sendEvent(receiver, event)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendPostedEvents() -{ - (QCoreApplication::sendPostedEvents()); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_sendPostedEvents(QObject* receiver, int event_type) -{ - (QCoreApplication::sendPostedEvents(receiver, event_type)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationName(const QString& application) -{ - (QCoreApplication::setApplicationName(application)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setApplicationVersion(const QString& version) -{ - (QCoreApplication::setApplicationVersion(version)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setAttribute(Qt::ApplicationAttribute attribute, bool on) -{ - (QCoreApplication::setAttribute(attribute, on)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setLibraryPaths(const QStringList& arg__1) -{ - (QCoreApplication::setLibraryPaths(arg__1)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationDomain(const QString& orgDomain) -{ - (QCoreApplication::setOrganizationDomain(orgDomain)); -} - -void PythonQtWrapper_QCoreApplication::static_QCoreApplication_setOrganizationName(const QString& orgName) -{ - (QCoreApplication::setOrganizationName(orgName)); -} - -bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_startingUp() -{ - return (QCoreApplication::startingUp()); -} - -bool PythonQtWrapper_QCoreApplication::static_QCoreApplication_testAttribute(Qt::ApplicationAttribute attribute) -{ - return (QCoreApplication::testAttribute(attribute)); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_translate(const char* context, const char* key, const char* disambiguation, QCoreApplication::Encoding encoding) -{ - return (QCoreApplication::translate(context, key, disambiguation, encoding)); -} - -QString PythonQtWrapper_QCoreApplication::static_QCoreApplication_translate(const char* context, const char* key, const char* disambiguation, QCoreApplication::Encoding encoding, int n) -{ - return (QCoreApplication::translate(context, key, disambiguation, encoding, n)); -} - - - -QCryptographicHash* PythonQtWrapper_QCryptographicHash::new_QCryptographicHash(QCryptographicHash::Algorithm method) -{ -return new QCryptographicHash(method); } - -void PythonQtWrapper_QCryptographicHash::addData(QCryptographicHash* theWrappedObject, const QByteArray& data) -{ - ( theWrappedObject->addData(data)); -} - -QByteArray PythonQtWrapper_QCryptographicHash::static_QCryptographicHash_hash(const QByteArray& data, QCryptographicHash::Algorithm method) -{ - return (QCryptographicHash::hash(data, method)); -} - -void PythonQtWrapper_QCryptographicHash::reset(QCryptographicHash* theWrappedObject) -{ - ( theWrappedObject->reset()); -} - -QByteArray PythonQtWrapper_QCryptographicHash::result(QCryptographicHash* theWrappedObject) const -{ - return ( theWrappedObject->result()); -} - - - -QDataStream* PythonQtWrapper_QDataStream::new_QDataStream() -{ -return new PythonQtShell_QDataStream(); } - -QDataStream* PythonQtWrapper_QDataStream::new_QDataStream(QByteArray* arg__1, QIODevice::OpenMode flags) -{ -return new PythonQtShell_QDataStream(arg__1, flags); } - -QDataStream* PythonQtWrapper_QDataStream::new_QDataStream(QIODevice* arg__1) -{ -return new PythonQtShell_QDataStream(arg__1); } - -QDataStream* PythonQtWrapper_QDataStream::new_QDataStream(const QByteArray& arg__1) -{ -return new PythonQtShell_QDataStream(arg__1); } - -bool PythonQtWrapper_QDataStream::atEnd(QDataStream* theWrappedObject) const -{ - return ( theWrappedObject->atEnd()); -} - -QIODevice* PythonQtWrapper_QDataStream::device(QDataStream* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -QDataStream::FloatingPointPrecision PythonQtWrapper_QDataStream::floatingPointPrecision(QDataStream* theWrappedObject) const -{ - return ( theWrappedObject->floatingPointPrecision()); -} - -QDataStream* PythonQtWrapper_QDataStream::writeBoolean(QDataStream* theWrappedObject, bool i) -{ - return &( (*theWrappedObject) <>i); -} - -QDataStream* PythonQtWrapper_QDataStream::readDouble(QDataStream* theWrappedObject, double& f) -{ - return &( (*theWrappedObject) >>f); -} - -QDataStream* PythonQtWrapper_QDataStream::readFloat(QDataStream* theWrappedObject, float& f) -{ - return &( (*theWrappedObject) >>f); -} - -QDataStream* PythonQtWrapper_QDataStream::readInt(QDataStream* theWrappedObject, int& i) -{ - return &( (*theWrappedObject) >>i); -} - -QDataStream* PythonQtWrapper_QDataStream::readLongLong(QDataStream* theWrappedObject, qint64& i) -{ - return &( (*theWrappedObject) >>i); -} - -QDataStream* PythonQtWrapper_QDataStream::readShort(QDataStream* theWrappedObject, short& i) -{ - return &( (*theWrappedObject) >>i); -} - -QDataStream* PythonQtWrapper_QDataStream::readUShort(QDataStream* theWrappedObject, unsigned short& i) -{ - return &( (*theWrappedObject) >>i); -} - -void PythonQtWrapper_QDataStream::resetStatus(QDataStream* theWrappedObject) -{ - ( theWrappedObject->resetStatus()); -} - -void PythonQtWrapper_QDataStream::setDevice(QDataStream* theWrappedObject, QIODevice* arg__1) -{ - ( theWrappedObject->setDevice(arg__1)); -} - -void PythonQtWrapper_QDataStream::setFloatingPointPrecision(QDataStream* theWrappedObject, QDataStream::FloatingPointPrecision precision) -{ - ( theWrappedObject->setFloatingPointPrecision(precision)); -} - -void PythonQtWrapper_QDataStream::setStatus(QDataStream* theWrappedObject, QDataStream::Status status) -{ - ( theWrappedObject->setStatus(status)); -} - -void PythonQtWrapper_QDataStream::setVersion(QDataStream* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setVersion(arg__1)); -} - -int PythonQtWrapper_QDataStream::skipRawData(QDataStream* theWrappedObject, int len) -{ - return ( theWrappedObject->skipRawData(len)); -} - -QDataStream::Status PythonQtWrapper_QDataStream::status(QDataStream* theWrappedObject) const -{ - return ( theWrappedObject->status()); -} - -void PythonQtWrapper_QDataStream::unsetDevice(QDataStream* theWrappedObject) -{ - ( theWrappedObject->unsetDevice()); -} - -int PythonQtWrapper_QDataStream::version(QDataStream* theWrappedObject) const -{ - return ( theWrappedObject->version()); -} - - - -QDir* PythonQtWrapper_QDir::new_QDir(const QDir& arg__1) -{ -return new QDir(arg__1); } - -QDir* PythonQtWrapper_QDir::new_QDir(const QString& path) -{ -return new QDir(path); } - -QDir* PythonQtWrapper_QDir::new_QDir(const QString& path, const QString& nameFilter, QDir::SortFlags sort, QDir::Filters filter) -{ -return new QDir(path, nameFilter, sort, filter); } - -QString PythonQtWrapper_QDir::absoluteFilePath(QDir* theWrappedObject, const QString& fileName) const -{ - return ( theWrappedObject->absoluteFilePath(fileName)); -} - -QString PythonQtWrapper_QDir::absolutePath(QDir* theWrappedObject) const -{ - return ( theWrappedObject->absolutePath()); -} - -void PythonQtWrapper_QDir::static_QDir_addSearchPath(const QString& prefix, const QString& path) -{ - (QDir::addSearchPath(prefix, path)); -} - -QString PythonQtWrapper_QDir::canonicalPath(QDir* theWrappedObject) const -{ - return ( theWrappedObject->canonicalPath()); -} - -bool PythonQtWrapper_QDir::cd(QDir* theWrappedObject, const QString& dirName) -{ - return ( theWrappedObject->cd(dirName)); -} - -bool PythonQtWrapper_QDir::cdUp(QDir* theWrappedObject) -{ - return ( theWrappedObject->cdUp()); -} - -QString PythonQtWrapper_QDir::static_QDir_cleanPath(const QString& path) -{ - return (QDir::cleanPath(path)); -} - -QString PythonQtWrapper_QDir::static_QDir_convertSeparators(const QString& pathName) -{ - return (QDir::convertSeparators(pathName)); -} - -uint PythonQtWrapper_QDir::count(QDir* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -QDir PythonQtWrapper_QDir::static_QDir_current() -{ - return (QDir::current()); -} - -QString PythonQtWrapper_QDir::static_QDir_currentPath() -{ - return (QDir::currentPath()); -} - -QString PythonQtWrapper_QDir::dirName(QDir* theWrappedObject) const -{ - return ( theWrappedObject->dirName()); -} - -QList PythonQtWrapper_QDir::static_QDir_drives() -{ - return (QDir::drives()); -} - -QList PythonQtWrapper_QDir::entryInfoList(QDir* theWrappedObject, QDir::Filters filters, QDir::SortFlags sort) const -{ - return ( theWrappedObject->entryInfoList(filters, sort)); -} - -QList PythonQtWrapper_QDir::entryInfoList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters, QDir::SortFlags sort) const -{ - return ( theWrappedObject->entryInfoList(nameFilters, filters, sort)); -} - -QStringList PythonQtWrapper_QDir::entryList(QDir* theWrappedObject, QDir::Filters filters, QDir::SortFlags sort) const -{ - return ( theWrappedObject->entryList(filters, sort)); -} - -QStringList PythonQtWrapper_QDir::entryList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters, QDir::SortFlags sort) const -{ - return ( theWrappedObject->entryList(nameFilters, filters, sort)); -} - -bool PythonQtWrapper_QDir::exists(QDir* theWrappedObject) const -{ - return ( theWrappedObject->exists()); -} - -bool PythonQtWrapper_QDir::exists(QDir* theWrappedObject, const QString& name) const -{ - return ( theWrappedObject->exists(name)); -} - -QString PythonQtWrapper_QDir::filePath(QDir* theWrappedObject, const QString& fileName) const -{ - return ( theWrappedObject->filePath(fileName)); -} - -QDir::Filters PythonQtWrapper_QDir::filter(QDir* theWrappedObject) const -{ - return ( theWrappedObject->filter()); -} - -QString PythonQtWrapper_QDir::static_QDir_fromNativeSeparators(const QString& pathName) -{ - return (QDir::fromNativeSeparators(pathName)); -} - -QDir PythonQtWrapper_QDir::static_QDir_home() -{ - return (QDir::home()); -} - -QString PythonQtWrapper_QDir::static_QDir_homePath() -{ - return (QDir::homePath()); -} - -bool PythonQtWrapper_QDir::isAbsolute(QDir* theWrappedObject) const -{ - return ( theWrappedObject->isAbsolute()); -} - -bool PythonQtWrapper_QDir::static_QDir_isAbsolutePath(const QString& path) -{ - return (QDir::isAbsolutePath(path)); -} - -bool PythonQtWrapper_QDir::isReadable(QDir* theWrappedObject) const -{ - return ( theWrappedObject->isReadable()); -} - -bool PythonQtWrapper_QDir::isRelative(QDir* theWrappedObject) const -{ - return ( theWrappedObject->isRelative()); -} - -bool PythonQtWrapper_QDir::static_QDir_isRelativePath(const QString& path) -{ - return (QDir::isRelativePath(path)); -} - -bool PythonQtWrapper_QDir::isRoot(QDir* theWrappedObject) const -{ - return ( theWrappedObject->isRoot()); -} - -bool PythonQtWrapper_QDir::makeAbsolute(QDir* theWrappedObject) -{ - return ( theWrappedObject->makeAbsolute()); -} - -bool PythonQtWrapper_QDir::static_QDir_match(const QString& filter, const QString& fileName) -{ - return (QDir::match(filter, fileName)); -} - -bool PythonQtWrapper_QDir::static_QDir_match(const QStringList& filters, const QString& fileName) -{ - return (QDir::match(filters, fileName)); -} - -bool PythonQtWrapper_QDir::mkdir(QDir* theWrappedObject, const QString& dirName) const -{ - return ( theWrappedObject->mkdir(dirName)); -} - -bool PythonQtWrapper_QDir::mkpath(QDir* theWrappedObject, const QString& dirPath) const -{ - return ( theWrappedObject->mkpath(dirPath)); -} - -QStringList PythonQtWrapper_QDir::nameFilters(QDir* theWrappedObject) const -{ - return ( theWrappedObject->nameFilters()); -} - -QStringList PythonQtWrapper_QDir::static_QDir_nameFiltersFromString(const QString& nameFilter) -{ - return (QDir::nameFiltersFromString(nameFilter)); -} - -bool PythonQtWrapper_QDir::__ne__(QDir* theWrappedObject, const QDir& dir) const -{ - return ( (*theWrappedObject)!= dir); -} - -bool PythonQtWrapper_QDir::__eq__(QDir* theWrappedObject, const QDir& dir) const -{ - return ( (*theWrappedObject)== dir); -} - -QString PythonQtWrapper_QDir::operator_subscript(QDir* theWrappedObject, int arg__1) const -{ - return ( (*theWrappedObject)[arg__1]); -} - -QString PythonQtWrapper_QDir::path(QDir* theWrappedObject) const -{ - return ( theWrappedObject->path()); -} - -void PythonQtWrapper_QDir::refresh(QDir* theWrappedObject) const -{ - ( theWrappedObject->refresh()); -} - -QString PythonQtWrapper_QDir::relativeFilePath(QDir* theWrappedObject, const QString& fileName) const -{ - return ( theWrappedObject->relativeFilePath(fileName)); -} - -bool PythonQtWrapper_QDir::remove(QDir* theWrappedObject, const QString& fileName) -{ - return ( theWrappedObject->remove(fileName)); -} - -bool PythonQtWrapper_QDir::rename(QDir* theWrappedObject, const QString& oldName, const QString& newName) -{ - return ( theWrappedObject->rename(oldName, newName)); -} - -bool PythonQtWrapper_QDir::rmdir(QDir* theWrappedObject, const QString& dirName) const -{ - return ( theWrappedObject->rmdir(dirName)); -} - -bool PythonQtWrapper_QDir::rmpath(QDir* theWrappedObject, const QString& dirPath) const -{ - return ( theWrappedObject->rmpath(dirPath)); -} - -QDir PythonQtWrapper_QDir::static_QDir_root() -{ - return (QDir::root()); -} - -QString PythonQtWrapper_QDir::static_QDir_rootPath() -{ - return (QDir::rootPath()); -} - -QStringList PythonQtWrapper_QDir::static_QDir_searchPaths(const QString& prefix) -{ - return (QDir::searchPaths(prefix)); -} - -QChar PythonQtWrapper_QDir::static_QDir_separator() -{ - return (QDir::separator()); -} - -bool PythonQtWrapper_QDir::static_QDir_setCurrent(const QString& path) -{ - return (QDir::setCurrent(path)); -} - -void PythonQtWrapper_QDir::setFilter(QDir* theWrappedObject, QDir::Filters filter) -{ - ( theWrappedObject->setFilter(filter)); -} - -void PythonQtWrapper_QDir::setNameFilters(QDir* theWrappedObject, const QStringList& nameFilters) -{ - ( theWrappedObject->setNameFilters(nameFilters)); -} - -void PythonQtWrapper_QDir::setPath(QDir* theWrappedObject, const QString& path) -{ - ( theWrappedObject->setPath(path)); -} - -void PythonQtWrapper_QDir::static_QDir_setSearchPaths(const QString& prefix, const QStringList& searchPaths) -{ - (QDir::setSearchPaths(prefix, searchPaths)); -} - -void PythonQtWrapper_QDir::setSorting(QDir* theWrappedObject, QDir::SortFlags sort) -{ - ( theWrappedObject->setSorting(sort)); -} - -QDir::SortFlags PythonQtWrapper_QDir::sorting(QDir* theWrappedObject) const -{ - return ( theWrappedObject->sorting()); -} - -QDir PythonQtWrapper_QDir::static_QDir_temp() -{ - return (QDir::temp()); -} - -QString PythonQtWrapper_QDir::static_QDir_tempPath() -{ - return (QDir::tempPath()); -} - -QString PythonQtWrapper_QDir::static_QDir_toNativeSeparators(const QString& pathName) -{ - return (QDir::toNativeSeparators(pathName)); -} - -QString PythonQtWrapper_QDir::py_toString(QDir* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QDir& dir, QDirIterator::IteratorFlags flags) -{ -return new PythonQtShell_QDirIterator(dir, flags); } - -QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QString& path, QDir::Filters filter, QDirIterator::IteratorFlags flags) -{ -return new PythonQtShell_QDirIterator(path, filter, flags); } - -QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QString& path, QDirIterator::IteratorFlags flags) -{ -return new PythonQtShell_QDirIterator(path, flags); } - -QDirIterator* PythonQtWrapper_QDirIterator::new_QDirIterator(const QString& path, const QStringList& nameFilters, QDir::Filters filters, QDirIterator::IteratorFlags flags) -{ -return new PythonQtShell_QDirIterator(path, nameFilters, filters, flags); } - -QFileInfo PythonQtWrapper_QDirIterator::fileInfo(QDirIterator* theWrappedObject) const -{ - return ( theWrappedObject->fileInfo()); -} - -QString PythonQtWrapper_QDirIterator::fileName(QDirIterator* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QString PythonQtWrapper_QDirIterator::filePath(QDirIterator* theWrappedObject) const -{ - return ( theWrappedObject->filePath()); -} - -bool PythonQtWrapper_QDirIterator::hasNext(QDirIterator* theWrappedObject) const -{ - return ( theWrappedObject->hasNext()); -} - -QString PythonQtWrapper_QDirIterator::next(QDirIterator* theWrappedObject) -{ - return ( theWrappedObject->next()); -} - -QString PythonQtWrapper_QDirIterator::path(QDirIterator* theWrappedObject) const -{ - return ( theWrappedObject->path()); -} - - - -QDynamicPropertyChangeEvent* PythonQtWrapper_QDynamicPropertyChangeEvent::new_QDynamicPropertyChangeEvent(const QByteArray& name) -{ -return new QDynamicPropertyChangeEvent(name); } - -QByteArray PythonQtWrapper_QDynamicPropertyChangeEvent::propertyName(QDynamicPropertyChangeEvent* theWrappedObject) const -{ - return ( theWrappedObject->propertyName()); -} - - - -QEasingCurve* PythonQtWrapper_QEasingCurve::new_QEasingCurve(QEasingCurve::Type type) -{ -return new QEasingCurve(type); } - -QEasingCurve* PythonQtWrapper_QEasingCurve::new_QEasingCurve(const QEasingCurve& other) -{ -return new QEasingCurve(other); } - -qreal PythonQtWrapper_QEasingCurve::amplitude(QEasingCurve* theWrappedObject) const -{ - return ( theWrappedObject->amplitude()); -} - -bool PythonQtWrapper_QEasingCurve::__ne__(QEasingCurve* theWrappedObject, const QEasingCurve& other) const -{ - return ( (*theWrappedObject)!= other); -} - -QEasingCurve* PythonQtWrapper_QEasingCurve::operator_assign(QEasingCurve* theWrappedObject, const QEasingCurve& other) -{ - return &( (*theWrappedObject)= other); -} - -bool PythonQtWrapper_QEasingCurve::__eq__(QEasingCurve* theWrappedObject, const QEasingCurve& other) const -{ - return ( (*theWrappedObject)== other); -} - -qreal PythonQtWrapper_QEasingCurve::overshoot(QEasingCurve* theWrappedObject) const -{ - return ( theWrappedObject->overshoot()); -} - -qreal PythonQtWrapper_QEasingCurve::period(QEasingCurve* theWrappedObject) const -{ - return ( theWrappedObject->period()); -} - -void PythonQtWrapper_QEasingCurve::setAmplitude(QEasingCurve* theWrappedObject, qreal amplitude) -{ - ( theWrappedObject->setAmplitude(amplitude)); -} - -void PythonQtWrapper_QEasingCurve::setOvershoot(QEasingCurve* theWrappedObject, qreal overshoot) -{ - ( theWrappedObject->setOvershoot(overshoot)); -} - -void PythonQtWrapper_QEasingCurve::setPeriod(QEasingCurve* theWrappedObject, qreal period) -{ - ( theWrappedObject->setPeriod(period)); -} - -void PythonQtWrapper_QEasingCurve::setType(QEasingCurve* theWrappedObject, QEasingCurve::Type type) -{ - ( theWrappedObject->setType(type)); -} - -QEasingCurve::Type PythonQtWrapper_QEasingCurve::type(QEasingCurve* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -qreal PythonQtWrapper_QEasingCurve::valueForProgress(QEasingCurve* theWrappedObject, qreal progress) const -{ - return ( theWrappedObject->valueForProgress(progress)); -} - -QString PythonQtWrapper_QEasingCurve::py_toString(QEasingCurve* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QEvent* PythonQtWrapper_QEvent::new_QEvent(QEvent::Type type) -{ -return new PythonQtShell_QEvent(type); } - -void PythonQtWrapper_QEvent::accept(QEvent* theWrappedObject) -{ - ( theWrappedObject->accept()); -} - -void PythonQtWrapper_QEvent::ignore(QEvent* theWrappedObject) -{ - ( theWrappedObject->ignore()); -} - -bool PythonQtWrapper_QEvent::isAccepted(QEvent* theWrappedObject) const -{ - return ( theWrappedObject->isAccepted()); -} - -int PythonQtWrapper_QEvent::static_QEvent_registerEventType(int hint) -{ - return (QEvent::registerEventType(hint)); -} - -void PythonQtWrapper_QEvent::setAccepted(QEvent* theWrappedObject, bool accepted) -{ - ( theWrappedObject->setAccepted(accepted)); -} - -bool PythonQtWrapper_QEvent::spontaneous(QEvent* theWrappedObject) const -{ - return ( theWrappedObject->spontaneous()); -} - -QEvent::Type PythonQtWrapper_QEvent::type(QEvent* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -QString PythonQtWrapper_QEvent::py_toString(QEvent* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << obj; -#endif - return result; -} - - - -void PythonQtShell_QEventLoop::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QEventLoop::childEvent(arg__1); -} -void PythonQtShell_QEventLoop::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QEventLoop::customEvent(arg__1); -} -bool PythonQtShell_QEventLoop::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QEventLoop::event(arg__1); -} -bool PythonQtShell_QEventLoop::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QEventLoop::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QEventLoop::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QEventLoop::timerEvent(arg__1); -} -QEventLoop* PythonQtWrapper_QEventLoop::new_QEventLoop(QObject* parent) -{ -return new PythonQtShell_QEventLoop(parent); } - -int PythonQtWrapper_QEventLoop::exec(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags) -{ - return ( theWrappedObject->exec(flags)); -} - -void PythonQtWrapper_QEventLoop::exit(QEventLoop* theWrappedObject, int returnCode) -{ - ( theWrappedObject->exit(returnCode)); -} - -bool PythonQtWrapper_QEventLoop::isRunning(QEventLoop* theWrappedObject) const -{ - return ( theWrappedObject->isRunning()); -} - -bool PythonQtWrapper_QEventLoop::processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags) -{ - return ( theWrappedObject->processEvents(flags)); -} - -void PythonQtWrapper_QEventLoop::processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags, int maximumTime) -{ - ( theWrappedObject->processEvents(flags, maximumTime)); -} - -void PythonQtWrapper_QEventLoop::wakeUp(QEventLoop* theWrappedObject) -{ - ( theWrappedObject->wakeUp()); -} - - - -void PythonQtShell_QEventTransition::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QEventTransition::childEvent(arg__1); -} -void PythonQtShell_QEventTransition::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QEventTransition::customEvent(arg__1); -} -bool PythonQtShell_QEventTransition::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QEventTransition::event(e); -} -bool PythonQtShell_QEventTransition::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QEventTransition::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QEventTransition::eventTest(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QEventTransition::eventTest(event); -} -void PythonQtShell_QEventTransition::onTransition(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QEventTransition::onTransition(event); -} -void PythonQtShell_QEventTransition::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QEventTransition::timerEvent(arg__1); -} -QEventTransition* PythonQtWrapper_QEventTransition::new_QEventTransition(QObject* object, QEvent::Type type, QState* sourceState) -{ -return new PythonQtShell_QEventTransition(object, type, sourceState); } - -QEventTransition* PythonQtWrapper_QEventTransition::new_QEventTransition(QState* sourceState) -{ -return new PythonQtShell_QEventTransition(sourceState); } - -bool PythonQtWrapper_QEventTransition::event(QEventTransition* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QEventTransition*)theWrappedObject)->promoted_event(e)); -} - -QObject* PythonQtWrapper_QEventTransition::eventSource(QEventTransition* theWrappedObject) const -{ - return ( theWrappedObject->eventSource()); -} - -bool PythonQtWrapper_QEventTransition::eventTest(QEventTransition* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QEventTransition*)theWrappedObject)->promoted_eventTest(event)); -} - -QEvent::Type PythonQtWrapper_QEventTransition::eventType(QEventTransition* theWrappedObject) const -{ - return ( theWrappedObject->eventType()); -} - -void PythonQtWrapper_QEventTransition::onTransition(QEventTransition* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QEventTransition*)theWrappedObject)->promoted_onTransition(event)); -} - -void PythonQtWrapper_QEventTransition::setEventSource(QEventTransition* theWrappedObject, QObject* object) -{ - ( theWrappedObject->setEventSource(object)); -} - -void PythonQtWrapper_QEventTransition::setEventType(QEventTransition* theWrappedObject, QEvent::Type type) -{ - ( theWrappedObject->setEventType(type)); -} - - - -QStringList PythonQtShell_QFactoryInterface::keys() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keys"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("keys", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -QFactoryInterface* PythonQtWrapper_QFactoryInterface::new_QFactoryInterface() -{ -return new PythonQtShell_QFactoryInterface(); } - - - -bool PythonQtShell_QFile::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::atEnd(); -} -qint64 PythonQtShell_QFile::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::bytesAvailable(); -} -qint64 PythonQtShell_QFile::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::bytesToWrite(); -} -bool PythonQtShell_QFile::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::canReadLine(); -} -void PythonQtShell_QFile::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFile::childEvent(arg__1); -} -void PythonQtShell_QFile::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFile::close(); -} -void PythonQtShell_QFile::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFile::customEvent(arg__1); -} -bool PythonQtShell_QFile::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::event(arg__1); -} -bool PythonQtShell_QFile::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::eventFilter(arg__1, arg__2); -} -QAbstractFileEngine* PythonQtShell_QFile::fileEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fileEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractFileEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractFileEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("fileEngine", methodInfo, result); - } else { - returnValue = *((QAbstractFileEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::fileEngine(); -} -bool PythonQtShell_QFile::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::isSequential(); -} -bool PythonQtShell_QFile::open(QIODevice::OpenMode flags) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::open(flags); -} -qint64 PythonQtShell_QFile::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::pos(); -} -qint64 PythonQtShell_QFile::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::readData(data, maxlen); -} -qint64 PythonQtShell_QFile::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::readLineData(data, maxlen); -} -bool PythonQtShell_QFile::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::reset(); -} -bool PythonQtShell_QFile::seek(qint64 offset) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&offset}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::seek(offset); -} -qint64 PythonQtShell_QFile::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::size(); -} -void PythonQtShell_QFile::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFile::timerEvent(arg__1); -} -bool PythonQtShell_QFile::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::waitForBytesWritten(msecs); -} -bool PythonQtShell_QFile::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QFile::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFile::writeData(data, len); -} -QFile* PythonQtWrapper_QFile::new_QFile() -{ -return new PythonQtShell_QFile(); } - -QFile* PythonQtWrapper_QFile::new_QFile(QObject* parent) -{ -return new PythonQtShell_QFile(parent); } - -QFile* PythonQtWrapper_QFile::new_QFile(const QString& name) -{ -return new PythonQtShell_QFile(name); } - -QFile* PythonQtWrapper_QFile::new_QFile(const QString& name, QObject* parent) -{ -return new PythonQtShell_QFile(name, parent); } - -bool PythonQtWrapper_QFile::atEnd(QFile* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_atEnd()); -} - -void PythonQtWrapper_QFile::close(QFile* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_close()); -} - -bool PythonQtWrapper_QFile::static_QFile_copy(const QString& fileName, const QString& newName) -{ - return (QFile::copy(fileName, newName)); -} - -bool PythonQtWrapper_QFile::copy(QFile* theWrappedObject, const QString& newName) -{ - return ( theWrappedObject->copy(newName)); -} - -QString PythonQtWrapper_QFile::static_QFile_decodeName(const QByteArray& localFileName) -{ - return (QFile::decodeName(localFileName)); -} - -QByteArray PythonQtWrapper_QFile::static_QFile_encodeName(const QString& fileName) -{ - return (QFile::encodeName(fileName)); -} - -QFile::FileError PythonQtWrapper_QFile::error(QFile* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -bool PythonQtWrapper_QFile::exists(QFile* theWrappedObject) const -{ - return ( theWrappedObject->exists()); -} - -bool PythonQtWrapper_QFile::static_QFile_exists(const QString& fileName) -{ - return (QFile::exists(fileName)); -} - -QAbstractFileEngine* PythonQtWrapper_QFile::fileEngine(QFile* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_fileEngine()); -} - -QString PythonQtWrapper_QFile::fileName(QFile* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -bool PythonQtWrapper_QFile::flush(QFile* theWrappedObject) -{ - return ( theWrappedObject->flush()); -} - -int PythonQtWrapper_QFile::handle(QFile* theWrappedObject) const -{ - return ( theWrappedObject->handle()); -} - -bool PythonQtWrapper_QFile::isSequential(QFile* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_isSequential()); -} - -bool PythonQtWrapper_QFile::link(QFile* theWrappedObject, const QString& newName) -{ - return ( theWrappedObject->link(newName)); -} - -bool PythonQtWrapper_QFile::static_QFile_link(const QString& oldname, const QString& newName) -{ - return (QFile::link(oldname, newName)); -} - -bool PythonQtWrapper_QFile::open(QFile* theWrappedObject, QIODevice::OpenMode flags) -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_open(flags)); -} - -QFile::Permissions PythonQtWrapper_QFile::permissions(QFile* theWrappedObject) const -{ - return ( theWrappedObject->permissions()); -} - -QFile::Permissions PythonQtWrapper_QFile::static_QFile_permissions(const QString& filename) -{ - return (QFile::permissions(filename)); -} - -qint64 PythonQtWrapper_QFile::pos(QFile* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_pos()); -} - -qint64 PythonQtWrapper_QFile::readData(QFile* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_readData(data, maxlen)); -} - -qint64 PythonQtWrapper_QFile::readLineData(QFile* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_readLineData(data, maxlen)); -} - -bool PythonQtWrapper_QFile::remove(QFile* theWrappedObject) -{ - return ( theWrappedObject->remove()); -} - -bool PythonQtWrapper_QFile::static_QFile_remove(const QString& fileName) -{ - return (QFile::remove(fileName)); -} - -bool PythonQtWrapper_QFile::rename(QFile* theWrappedObject, const QString& newName) -{ - return ( theWrappedObject->rename(newName)); -} - -bool PythonQtWrapper_QFile::static_QFile_rename(const QString& oldName, const QString& newName) -{ - return (QFile::rename(oldName, newName)); -} - -bool PythonQtWrapper_QFile::static_QFile_resize(const QString& filename, qint64 sz) -{ - return (QFile::resize(filename, sz)); -} - -bool PythonQtWrapper_QFile::resize(QFile* theWrappedObject, qint64 sz) -{ - return ( theWrappedObject->resize(sz)); -} - -bool PythonQtWrapper_QFile::seek(QFile* theWrappedObject, qint64 offset) -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_seek(offset)); -} - -void PythonQtWrapper_QFile::setFileName(QFile* theWrappedObject, const QString& name) -{ - ( theWrappedObject->setFileName(name)); -} - -bool PythonQtWrapper_QFile::setPermissions(QFile* theWrappedObject, QFile::Permissions permissionSpec) -{ - return ( theWrappedObject->setPermissions(permissionSpec)); -} - -bool PythonQtWrapper_QFile::static_QFile_setPermissions(const QString& filename, QFile::Permissions permissionSpec) -{ - return (QFile::setPermissions(filename, permissionSpec)); -} - -qint64 PythonQtWrapper_QFile::size(QFile* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_size()); -} - -QString PythonQtWrapper_QFile::symLinkTarget(QFile* theWrappedObject) const -{ - return ( theWrappedObject->symLinkTarget()); -} - -QString PythonQtWrapper_QFile::static_QFile_symLinkTarget(const QString& fileName) -{ - return (QFile::symLinkTarget(fileName)); -} - -void PythonQtWrapper_QFile::unsetError(QFile* theWrappedObject) -{ - ( theWrappedObject->unsetError()); -} - -qint64 PythonQtWrapper_QFile::writeData(QFile* theWrappedObject, const char* data, qint64 len) -{ - return ( ((PythonQtPublicPromoter_QFile*)theWrappedObject)->promoted_writeData(data, len)); -} - - - -QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo() -{ -return new QFileInfo(); } - -QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QDir& dir, const QString& file) -{ -return new QFileInfo(dir, file); } - -QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QFile& file) -{ -return new QFileInfo(file); } - -QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QFileInfo& fileinfo) -{ -return new QFileInfo(fileinfo); } - -QFileInfo* PythonQtWrapper_QFileInfo::new_QFileInfo(const QString& file) -{ -return new QFileInfo(file); } - -QDir PythonQtWrapper_QFileInfo::absoluteDir(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->absoluteDir()); -} - -QString PythonQtWrapper_QFileInfo::absoluteFilePath(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->absoluteFilePath()); -} - -QString PythonQtWrapper_QFileInfo::absolutePath(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->absolutePath()); -} - -QString PythonQtWrapper_QFileInfo::baseName(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->baseName()); -} - -QString PythonQtWrapper_QFileInfo::bundleName(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->bundleName()); -} - -bool PythonQtWrapper_QFileInfo::caching(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->caching()); -} - -QString PythonQtWrapper_QFileInfo::canonicalFilePath(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->canonicalFilePath()); -} - -QString PythonQtWrapper_QFileInfo::canonicalPath(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->canonicalPath()); -} - -QString PythonQtWrapper_QFileInfo::completeBaseName(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->completeBaseName()); -} - -QString PythonQtWrapper_QFileInfo::completeSuffix(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->completeSuffix()); -} - -QDateTime PythonQtWrapper_QFileInfo::created(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->created()); -} - -QDir PythonQtWrapper_QFileInfo::dir(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->dir()); -} - -bool PythonQtWrapper_QFileInfo::exists(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->exists()); -} - -QString PythonQtWrapper_QFileInfo::fileName(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QString PythonQtWrapper_QFileInfo::filePath(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->filePath()); -} - -QString PythonQtWrapper_QFileInfo::group(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->group()); -} - -uint PythonQtWrapper_QFileInfo::groupId(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->groupId()); -} - -bool PythonQtWrapper_QFileInfo::isAbsolute(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isAbsolute()); -} - -bool PythonQtWrapper_QFileInfo::isBundle(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isBundle()); -} - -bool PythonQtWrapper_QFileInfo::isDir(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isDir()); -} - -bool PythonQtWrapper_QFileInfo::isExecutable(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isExecutable()); -} - -bool PythonQtWrapper_QFileInfo::isFile(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isFile()); -} - -bool PythonQtWrapper_QFileInfo::isHidden(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isHidden()); -} - -bool PythonQtWrapper_QFileInfo::isReadable(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isReadable()); -} - -bool PythonQtWrapper_QFileInfo::isRelative(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isRelative()); -} - -bool PythonQtWrapper_QFileInfo::isRoot(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isRoot()); -} - -bool PythonQtWrapper_QFileInfo::isSymLink(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isSymLink()); -} - -bool PythonQtWrapper_QFileInfo::isWritable(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->isWritable()); -} - -QDateTime PythonQtWrapper_QFileInfo::lastModified(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->lastModified()); -} - -QDateTime PythonQtWrapper_QFileInfo::lastRead(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->lastRead()); -} - -bool PythonQtWrapper_QFileInfo::makeAbsolute(QFileInfo* theWrappedObject) -{ - return ( theWrappedObject->makeAbsolute()); -} - -bool PythonQtWrapper_QFileInfo::__ne__(QFileInfo* theWrappedObject, const QFileInfo& fileinfo) -{ - return ( (*theWrappedObject)!= fileinfo); -} - -bool PythonQtWrapper_QFileInfo::__eq__(QFileInfo* theWrappedObject, const QFileInfo& fileinfo) -{ - return ( (*theWrappedObject)== fileinfo); -} - -QString PythonQtWrapper_QFileInfo::owner(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->owner()); -} - -uint PythonQtWrapper_QFileInfo::ownerId(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->ownerId()); -} - -QString PythonQtWrapper_QFileInfo::path(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->path()); -} - -bool PythonQtWrapper_QFileInfo::permission(QFileInfo* theWrappedObject, QFile::Permissions permissions) const -{ - return ( theWrappedObject->permission(permissions)); -} - -QFile::Permissions PythonQtWrapper_QFileInfo::permissions(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->permissions()); -} - -void PythonQtWrapper_QFileInfo::refresh(QFileInfo* theWrappedObject) -{ - ( theWrappedObject->refresh()); -} - -void PythonQtWrapper_QFileInfo::setCaching(QFileInfo* theWrappedObject, bool on) -{ - ( theWrappedObject->setCaching(on)); -} - -void PythonQtWrapper_QFileInfo::setFile(QFileInfo* theWrappedObject, const QDir& dir, const QString& file) -{ - ( theWrappedObject->setFile(dir, file)); -} - -void PythonQtWrapper_QFileInfo::setFile(QFileInfo* theWrappedObject, const QFile& file) -{ - ( theWrappedObject->setFile(file)); -} - -void PythonQtWrapper_QFileInfo::setFile(QFileInfo* theWrappedObject, const QString& file) -{ - ( theWrappedObject->setFile(file)); -} - -qint64 PythonQtWrapper_QFileInfo::size(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QString PythonQtWrapper_QFileInfo::suffix(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->suffix()); -} - -QString PythonQtWrapper_QFileInfo::symLinkTarget(QFileInfo* theWrappedObject) const -{ - return ( theWrappedObject->symLinkTarget()); -} - - - -void PythonQtShell_QFileSystemWatcher::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileSystemWatcher::childEvent(arg__1); -} -void PythonQtShell_QFileSystemWatcher::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileSystemWatcher::customEvent(arg__1); -} -bool PythonQtShell_QFileSystemWatcher::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileSystemWatcher::event(arg__1); -} -bool PythonQtShell_QFileSystemWatcher::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileSystemWatcher::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QFileSystemWatcher::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileSystemWatcher::timerEvent(arg__1); -} -QFileSystemWatcher* PythonQtWrapper_QFileSystemWatcher::new_QFileSystemWatcher(QObject* parent) -{ -return new PythonQtShell_QFileSystemWatcher(parent); } - -QFileSystemWatcher* PythonQtWrapper_QFileSystemWatcher::new_QFileSystemWatcher(const QStringList& paths, QObject* parent) -{ -return new PythonQtShell_QFileSystemWatcher(paths, parent); } - -void PythonQtWrapper_QFileSystemWatcher::addPath(QFileSystemWatcher* theWrappedObject, const QString& file) -{ - ( theWrappedObject->addPath(file)); -} - -void PythonQtWrapper_QFileSystemWatcher::addPaths(QFileSystemWatcher* theWrappedObject, const QStringList& files) -{ - ( theWrappedObject->addPaths(files)); -} - -QStringList PythonQtWrapper_QFileSystemWatcher::directories(QFileSystemWatcher* theWrappedObject) const -{ - return ( theWrappedObject->directories()); -} - -QStringList PythonQtWrapper_QFileSystemWatcher::files(QFileSystemWatcher* theWrappedObject) const -{ - return ( theWrappedObject->files()); -} - -void PythonQtWrapper_QFileSystemWatcher::removePath(QFileSystemWatcher* theWrappedObject, const QString& file) -{ - ( theWrappedObject->removePath(file)); -} - -void PythonQtWrapper_QFileSystemWatcher::removePaths(QFileSystemWatcher* theWrappedObject, const QStringList& files) -{ - ( theWrappedObject->removePaths(files)); -} - - - -void PythonQtShell_QFinalState::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFinalState::childEvent(arg__1); -} -void PythonQtShell_QFinalState::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFinalState::customEvent(arg__1); -} -bool PythonQtShell_QFinalState::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFinalState::event(e); -} -bool PythonQtShell_QFinalState::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFinalState::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QFinalState::onEntry(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFinalState::onEntry(event); -} -void PythonQtShell_QFinalState::onExit(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFinalState::onExit(event); -} -void PythonQtShell_QFinalState::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFinalState::timerEvent(arg__1); -} -QFinalState* PythonQtWrapper_QFinalState::new_QFinalState(QState* parent) -{ -return new PythonQtShell_QFinalState(parent); } - -bool PythonQtWrapper_QFinalState::event(QFinalState* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QFinalState*)theWrappedObject)->promoted_event(e)); -} - -void PythonQtWrapper_QFinalState::onEntry(QFinalState* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QFinalState*)theWrappedObject)->promoted_onEntry(event)); -} - -void PythonQtWrapper_QFinalState::onExit(QFinalState* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QFinalState*)theWrappedObject)->promoted_onExit(event)); -} - - - -void PythonQtShell_QHistoryState::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHistoryState::childEvent(arg__1); -} -void PythonQtShell_QHistoryState::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHistoryState::customEvent(arg__1); -} -bool PythonQtShell_QHistoryState::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHistoryState::event(e); -} -bool PythonQtShell_QHistoryState::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHistoryState::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QHistoryState::onEntry(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHistoryState::onEntry(event); -} -void PythonQtShell_QHistoryState::onExit(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHistoryState::onExit(event); -} -void PythonQtShell_QHistoryState::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHistoryState::timerEvent(arg__1); -} -QHistoryState* PythonQtWrapper_QHistoryState::new_QHistoryState(QHistoryState::HistoryType type, QState* parent) -{ -return new PythonQtShell_QHistoryState(type, parent); } - -QHistoryState* PythonQtWrapper_QHistoryState::new_QHistoryState(QState* parent) -{ -return new PythonQtShell_QHistoryState(parent); } - -QAbstractState* PythonQtWrapper_QHistoryState::defaultState(QHistoryState* theWrappedObject) const -{ - return ( theWrappedObject->defaultState()); -} - -bool PythonQtWrapper_QHistoryState::event(QHistoryState* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QHistoryState*)theWrappedObject)->promoted_event(e)); -} - -QHistoryState::HistoryType PythonQtWrapper_QHistoryState::historyType(QHistoryState* theWrappedObject) const -{ - return ( theWrappedObject->historyType()); -} - -void PythonQtWrapper_QHistoryState::onEntry(QHistoryState* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QHistoryState*)theWrappedObject)->promoted_onEntry(event)); -} - -void PythonQtWrapper_QHistoryState::onExit(QHistoryState* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QHistoryState*)theWrappedObject)->promoted_onExit(event)); -} - -void PythonQtWrapper_QHistoryState::setDefaultState(QHistoryState* theWrappedObject, QAbstractState* state) -{ - ( theWrappedObject->setDefaultState(state)); -} - -void PythonQtWrapper_QHistoryState::setHistoryType(QHistoryState* theWrappedObject, QHistoryState::HistoryType type) -{ - ( theWrappedObject->setHistoryType(type)); -} - - - -bool PythonQtShell_QIODevice::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::atEnd(); -} -qint64 PythonQtShell_QIODevice::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::bytesAvailable(); -} -qint64 PythonQtShell_QIODevice::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::bytesToWrite(); -} -bool PythonQtShell_QIODevice::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::canReadLine(); -} -void PythonQtShell_QIODevice::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIODevice::childEvent(arg__1); -} -void PythonQtShell_QIODevice::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIODevice::close(); -} -void PythonQtShell_QIODevice::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIODevice::customEvent(arg__1); -} -bool PythonQtShell_QIODevice::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::event(arg__1); -} -bool PythonQtShell_QIODevice::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QIODevice::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::isSequential(); -} -bool PythonQtShell_QIODevice::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::open(mode); -} -qint64 PythonQtShell_QIODevice::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::pos(); -} -qint64 PythonQtShell_QIODevice::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return qint64(); -} -qint64 PythonQtShell_QIODevice::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::readLineData(data, maxlen); -} -bool PythonQtShell_QIODevice::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::reset(); -} -bool PythonQtShell_QIODevice::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::seek(pos); -} -qint64 PythonQtShell_QIODevice::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::size(); -} -void PythonQtShell_QIODevice::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIODevice::timerEvent(arg__1); -} -bool PythonQtShell_QIODevice::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::waitForBytesWritten(msecs); -} -bool PythonQtShell_QIODevice::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIODevice::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QIODevice::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return qint64(); -} -QIODevice* PythonQtWrapper_QIODevice::new_QIODevice() -{ -return new PythonQtShell_QIODevice(); } - -QIODevice* PythonQtWrapper_QIODevice::new_QIODevice(QObject* parent) -{ -return new PythonQtShell_QIODevice(parent); } - -bool PythonQtWrapper_QIODevice::atEnd(QIODevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_atEnd()); -} - -qint64 PythonQtWrapper_QIODevice::bytesAvailable(QIODevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_bytesAvailable()); -} - -qint64 PythonQtWrapper_QIODevice::bytesToWrite(QIODevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_bytesToWrite()); -} - -bool PythonQtWrapper_QIODevice::canReadLine(QIODevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_canReadLine()); -} - -void PythonQtWrapper_QIODevice::close(QIODevice* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_close()); -} - -QString PythonQtWrapper_QIODevice::errorString(QIODevice* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -bool PythonQtWrapper_QIODevice::getChar(QIODevice* theWrappedObject, char* c) -{ - return ( theWrappedObject->getChar(c)); -} - -bool PythonQtWrapper_QIODevice::isOpen(QIODevice* theWrappedObject) const -{ - return ( theWrappedObject->isOpen()); -} - -bool PythonQtWrapper_QIODevice::isReadable(QIODevice* theWrappedObject) const -{ - return ( theWrappedObject->isReadable()); -} - -bool PythonQtWrapper_QIODevice::isSequential(QIODevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_isSequential()); -} - -bool PythonQtWrapper_QIODevice::isTextModeEnabled(QIODevice* theWrappedObject) const -{ - return ( theWrappedObject->isTextModeEnabled()); -} - -bool PythonQtWrapper_QIODevice::isWritable(QIODevice* theWrappedObject) const -{ - return ( theWrappedObject->isWritable()); -} - -bool PythonQtWrapper_QIODevice::open(QIODevice* theWrappedObject, QIODevice::OpenMode mode) -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_open(mode)); -} - -QIODevice::OpenMode PythonQtWrapper_QIODevice::openMode(QIODevice* theWrappedObject) const -{ - return ( theWrappedObject->openMode()); -} - -QByteArray PythonQtWrapper_QIODevice::peek(QIODevice* theWrappedObject, qint64 maxlen) -{ - return ( theWrappedObject->peek(maxlen)); -} - -qint64 PythonQtWrapper_QIODevice::pos(QIODevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_pos()); -} - -bool PythonQtWrapper_QIODevice::putChar(QIODevice* theWrappedObject, char c) -{ - return ( theWrappedObject->putChar(c)); -} - -QByteArray PythonQtWrapper_QIODevice::read(QIODevice* theWrappedObject, qint64 maxlen) -{ - return ( theWrappedObject->read(maxlen)); -} - -QByteArray PythonQtWrapper_QIODevice::readAll(QIODevice* theWrappedObject) -{ - return ( theWrappedObject->readAll()); -} - -QByteArray PythonQtWrapper_QIODevice::readLine(QIODevice* theWrappedObject, qint64 maxlen) -{ - return ( theWrappedObject->readLine(maxlen)); -} - -qint64 PythonQtWrapper_QIODevice::readLineData(QIODevice* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_readLineData(data, maxlen)); -} - -bool PythonQtWrapper_QIODevice::reset(QIODevice* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_reset()); -} - -bool PythonQtWrapper_QIODevice::seek(QIODevice* theWrappedObject, qint64 pos) -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_seek(pos)); -} - -void PythonQtWrapper_QIODevice::setTextModeEnabled(QIODevice* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setTextModeEnabled(enabled)); -} - -qint64 PythonQtWrapper_QIODevice::size(QIODevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_size()); -} - -void PythonQtWrapper_QIODevice::ungetChar(QIODevice* theWrappedObject, char c) -{ - ( theWrappedObject->ungetChar(c)); -} - -bool PythonQtWrapper_QIODevice::waitForBytesWritten(QIODevice* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); -} - -bool PythonQtWrapper_QIODevice::waitForReadyRead(QIODevice* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QIODevice*)theWrappedObject)->promoted_waitForReadyRead(msecs)); -} - -qint64 PythonQtWrapper_QIODevice::write(QIODevice* theWrappedObject, const QByteArray& data) -{ - return ( theWrappedObject->write(data)); -} - -qint64 PythonQtWrapper_QIODevice::write(QIODevice* theWrappedObject, const char* data) -{ - return ( theWrappedObject->write(data)); -} - - - -QDate PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_buildDate() -{ - return (QLibraryInfo::buildDate()); -} - -QString PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_buildKey() -{ - return (QLibraryInfo::buildKey()); -} - -QString PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_licensedProducts() -{ - return (QLibraryInfo::licensedProducts()); -} - -QString PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_licensee() -{ - return (QLibraryInfo::licensee()); -} - -QString PythonQtWrapper_QLibraryInfo::static_QLibraryInfo_location(QLibraryInfo::LibraryLocation arg__1) -{ - return (QLibraryInfo::location(arg__1)); -} - - - -void PythonQtShell_QMimeData::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMimeData::childEvent(arg__1); -} -void PythonQtShell_QMimeData::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMimeData::customEvent(arg__1); -} -bool PythonQtShell_QMimeData::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMimeData::event(arg__1); -} -bool PythonQtShell_QMimeData::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMimeData::eventFilter(arg__1, arg__2); -} -QStringList PythonQtShell_QMimeData::formats() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "formats"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("formats", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMimeData::formats(); -} -bool PythonQtShell_QMimeData::hasFormat(const QString& mimetype) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasFormat"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mimetype}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasFormat", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMimeData::hasFormat(mimetype); -} -QVariant PythonQtShell_QMimeData::retrieveData(const QString& mimetype, QVariant::Type preferredType) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "retrieveData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QString&" , "QVariant::Type"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&mimetype, (void*)&preferredType}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("retrieveData", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMimeData::retrieveData(mimetype, preferredType); -} -void PythonQtShell_QMimeData::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMimeData::timerEvent(arg__1); -} -QMimeData* PythonQtWrapper_QMimeData::new_QMimeData() -{ -return new PythonQtShell_QMimeData(); } - -void PythonQtWrapper_QMimeData::clear(QMimeData* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -QVariant PythonQtWrapper_QMimeData::colorData(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->colorData()); -} - -QByteArray PythonQtWrapper_QMimeData::data(QMimeData* theWrappedObject, const QString& mimetype) const -{ - return ( theWrappedObject->data(mimetype)); -} - -QStringList PythonQtWrapper_QMimeData::formats(QMimeData* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_formats()); -} - -bool PythonQtWrapper_QMimeData::hasColor(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->hasColor()); -} - -bool PythonQtWrapper_QMimeData::hasFormat(QMimeData* theWrappedObject, const QString& mimetype) const -{ - return ( ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_hasFormat(mimetype)); -} - -bool PythonQtWrapper_QMimeData::hasHtml(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->hasHtml()); -} - -bool PythonQtWrapper_QMimeData::hasImage(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->hasImage()); -} - -bool PythonQtWrapper_QMimeData::hasText(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->hasText()); -} - -bool PythonQtWrapper_QMimeData::hasUrls(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->hasUrls()); -} - -QString PythonQtWrapper_QMimeData::html(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->html()); -} - -QVariant PythonQtWrapper_QMimeData::imageData(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->imageData()); -} - -void PythonQtWrapper_QMimeData::removeFormat(QMimeData* theWrappedObject, const QString& mimetype) -{ - ( theWrappedObject->removeFormat(mimetype)); -} - -QVariant PythonQtWrapper_QMimeData::retrieveData(QMimeData* theWrappedObject, const QString& mimetype, QVariant::Type preferredType) const -{ - return ( ((PythonQtPublicPromoter_QMimeData*)theWrappedObject)->promoted_retrieveData(mimetype, preferredType)); -} - -void PythonQtWrapper_QMimeData::setColorData(QMimeData* theWrappedObject, const QVariant& color) -{ - ( theWrappedObject->setColorData(color)); -} - -void PythonQtWrapper_QMimeData::setData(QMimeData* theWrappedObject, const QString& mimetype, const QByteArray& data) -{ - ( theWrappedObject->setData(mimetype, data)); -} - -void PythonQtWrapper_QMimeData::setHtml(QMimeData* theWrappedObject, const QString& html) -{ - ( theWrappedObject->setHtml(html)); -} - -void PythonQtWrapper_QMimeData::setImageData(QMimeData* theWrappedObject, const QVariant& image) -{ - ( theWrappedObject->setImageData(image)); -} - -void PythonQtWrapper_QMimeData::setText(QMimeData* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -void PythonQtWrapper_QMimeData::setUrls(QMimeData* theWrappedObject, const QList& urls) -{ - ( theWrappedObject->setUrls(urls)); -} - -QString PythonQtWrapper_QMimeData::text(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -QList PythonQtWrapper_QMimeData::urls(QMimeData* theWrappedObject) const -{ - return ( theWrappedObject->urls()); -} - - - -QModelIndex* PythonQtWrapper_QModelIndex::new_QModelIndex() -{ -return new QModelIndex(); } - -QModelIndex* PythonQtWrapper_QModelIndex::new_QModelIndex(const QModelIndex& other) -{ -return new QModelIndex(other); } - -QModelIndex PythonQtWrapper_QModelIndex::child(QModelIndex* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->child(row, column)); -} - -int PythonQtWrapper_QModelIndex::column(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->column()); -} - -QVariant PythonQtWrapper_QModelIndex::data(QModelIndex* theWrappedObject, int role) const -{ - return ( theWrappedObject->data(role)); -} - -Qt::ItemFlags PythonQtWrapper_QModelIndex::flags(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->flags()); -} - -qint64 PythonQtWrapper_QModelIndex::internalId(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->internalId()); -} - -void* PythonQtWrapper_QModelIndex::internalPointer(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->internalPointer()); -} - -bool PythonQtWrapper_QModelIndex::isValid(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -const QAbstractItemModel* PythonQtWrapper_QModelIndex::model(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -bool PythonQtWrapper_QModelIndex::__ne__(QModelIndex* theWrappedObject, const QModelIndex& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QModelIndex::__lt__(QModelIndex* theWrappedObject, const QModelIndex& other) const -{ - return ( (*theWrappedObject)< other); -} - -bool PythonQtWrapper_QModelIndex::__eq__(QModelIndex* theWrappedObject, const QModelIndex& other) const -{ - return ( (*theWrappedObject)== other); -} - -QModelIndex PythonQtWrapper_QModelIndex::parent(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->parent()); -} - -int PythonQtWrapper_QModelIndex::row(QModelIndex* theWrappedObject) const -{ - return ( theWrappedObject->row()); -} - -QModelIndex PythonQtWrapper_QModelIndex::sibling(QModelIndex* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->sibling(row, column)); -} - -QString PythonQtWrapper_QModelIndex::py_toString(QModelIndex* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h deleted file mode 100644 index 5c00fe570..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h +++ /dev/null @@ -1,1462 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QAbstractAnimation : public QAbstractAnimation -{ -public: - PythonQtShell_QAbstractAnimation(QObject* parent = 0):QAbstractAnimation(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int duration() const; -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateCurrentTime(int currentTime); -virtual void updateDirection(QAbstractAnimation::Direction direction); -virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractAnimation : public QAbstractAnimation -{ public: -inline bool promoted_event(QEvent* event) { return QAbstractAnimation::event(event); } -inline void promoted_updateDirection(QAbstractAnimation::Direction direction) { QAbstractAnimation::updateDirection(direction); } -inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QAbstractAnimation::updateState(newState, oldState); } -}; - -class PythonQtWrapper_QAbstractAnimation : public QObject -{ Q_OBJECT -public: -Q_ENUMS(DeletionPolicy ) -enum DeletionPolicy{ - KeepWhenStopped = QAbstractAnimation::KeepWhenStopped, DeleteWhenStopped = QAbstractAnimation::DeleteWhenStopped}; -public slots: -QAbstractAnimation* new_QAbstractAnimation(QObject* parent = 0); -void delete_QAbstractAnimation(QAbstractAnimation* obj) { delete obj; } - int currentLoop(QAbstractAnimation* theWrappedObject) const; - int currentLoopTime(QAbstractAnimation* theWrappedObject) const; - int currentTime(QAbstractAnimation* theWrappedObject) const; - QAbstractAnimation::Direction direction(QAbstractAnimation* theWrappedObject) const; - bool event(QAbstractAnimation* theWrappedObject, QEvent* event); - QAnimationGroup* group(QAbstractAnimation* theWrappedObject) const; - int loopCount(QAbstractAnimation* theWrappedObject) const; - void setDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction); - void setLoopCount(QAbstractAnimation* theWrappedObject, int loopCount); - QAbstractAnimation::State state(QAbstractAnimation* theWrappedObject) const; - int totalDuration(QAbstractAnimation* theWrappedObject) const; - void updateDirection(QAbstractAnimation* theWrappedObject, QAbstractAnimation::Direction direction); - void updateState(QAbstractAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); -}; - - - - - -class PythonQtShell_QAbstractItemModel : public QAbstractItemModel -{ -public: - PythonQtShell_QAbstractItemModel(QObject* parent = 0):QAbstractItemModel(parent),_wrapper(NULL) {}; - -virtual QModelIndex buddy(const QModelIndex& index) const; -virtual bool canFetchMore(const QModelIndex& parent) const; -virtual void childEvent(QChildEvent* arg__1); -virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; -virtual void customEvent(QEvent* arg__1); -virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; -virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fetchMore(const QModelIndex& parent); -virtual Qt::ItemFlags flags(const QModelIndex& index) const; -virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const; -virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; -virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; -virtual bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()); -virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()); -virtual QMap itemData(const QModelIndex& index) const; -virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const; -virtual QMimeData* mimeData(const QList& indexes) const; -virtual QStringList mimeTypes() const; -virtual QModelIndex parent(const QModelIndex& child) const; -virtual bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()); -virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); -virtual void revert(); -virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; -virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); -virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); -virtual bool setItemData(const QModelIndex& index, const QMap& roles); -virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); -virtual QSize span(const QModelIndex& index) const; -virtual bool submit(); -virtual Qt::DropActions supportedDropActions() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractItemModel : public QAbstractItemModel -{ public: -inline QModelIndex promoted_buddy(const QModelIndex& index) const { return QAbstractItemModel::buddy(index); } -inline bool promoted_canFetchMore(const QModelIndex& parent) const { return QAbstractItemModel::canFetchMore(parent); } -inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QAbstractItemModel::dropMimeData(data, action, row, column, parent); } -inline void promoted_fetchMore(const QModelIndex& parent) { QAbstractItemModel::fetchMore(parent); } -inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return QAbstractItemModel::flags(index); } -inline bool promoted_hasChildren(const QModelIndex& parent = QModelIndex()) const { return QAbstractItemModel::hasChildren(parent); } -inline QVariant promoted_headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { return QAbstractItemModel::headerData(section, orientation, role); } -inline bool promoted_insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::insertColumns(column, count, parent); } -inline bool promoted_insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::insertRows(row, count, parent); } -inline QMap promoted_itemData(const QModelIndex& index) const { return QAbstractItemModel::itemData(index); } -inline QList promoted_match(const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const { return QAbstractItemModel::match(start, role, value, hits, flags); } -inline QMimeData* promoted_mimeData(const QList& indexes) const { return QAbstractItemModel::mimeData(indexes); } -inline QStringList promoted_mimeTypes() const { return QAbstractItemModel::mimeTypes(); } -inline bool promoted_removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::removeColumns(column, count, parent); } -inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QAbstractItemModel::removeRows(row, count, parent); } -inline void promoted_revert() { QAbstractItemModel::revert(); } -inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) { return QAbstractItemModel::setData(index, value, role); } -inline bool promoted_setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole) { return QAbstractItemModel::setHeaderData(section, orientation, value, role); } -inline bool promoted_setItemData(const QModelIndex& index, const QMap& roles) { return QAbstractItemModel::setItemData(index, roles); } -inline void promoted_sort(int column, Qt::SortOrder order = Qt::AscendingOrder) { QAbstractItemModel::sort(column, order); } -inline QSize promoted_span(const QModelIndex& index) const { return QAbstractItemModel::span(index); } -inline bool promoted_submit() { return QAbstractItemModel::submit(); } -inline Qt::DropActions promoted_supportedDropActions() const { return QAbstractItemModel::supportedDropActions(); } -}; - -class PythonQtWrapper_QAbstractItemModel : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractItemModel* new_QAbstractItemModel(QObject* parent = 0); -void delete_QAbstractItemModel(QAbstractItemModel* obj) { delete obj; } - QModelIndex buddy(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; - bool canFetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent) const; - bool dropMimeData(QAbstractItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); - void fetchMore(QAbstractItemModel* theWrappedObject, const QModelIndex& parent); - Qt::ItemFlags flags(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; - bool hasChildren(QAbstractItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; - bool hasIndex(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& parent = QModelIndex()) const; - QVariant headerData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; - bool insertColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent = QModelIndex()); - bool insertColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); - bool insertRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent = QModelIndex()); - bool insertRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); - QMap itemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; - QList match(QAbstractItemModel* theWrappedObject, const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const; - QMimeData* mimeData(QAbstractItemModel* theWrappedObject, const QList& indexes) const; - QStringList mimeTypes(QAbstractItemModel* theWrappedObject) const; - QObject* parent(QAbstractItemModel* theWrappedObject) const; - bool removeColumn(QAbstractItemModel* theWrappedObject, int column, const QModelIndex& parent = QModelIndex()); - bool removeColumns(QAbstractItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); - bool removeRow(QAbstractItemModel* theWrappedObject, int row, const QModelIndex& parent = QModelIndex()); - bool removeRows(QAbstractItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); - const QHash* roleNames(QAbstractItemModel* theWrappedObject) const; - bool setData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); - bool setHeaderData(QAbstractItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); - bool setItemData(QAbstractItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles); - void setSupportedDragActions(QAbstractItemModel* theWrappedObject, Qt::DropActions arg__1); - QModelIndex sibling(QAbstractItemModel* theWrappedObject, int row, int column, const QModelIndex& idx) const; - void sort(QAbstractItemModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); - QSize span(QAbstractItemModel* theWrappedObject, const QModelIndex& index) const; - Qt::DropActions supportedDragActions(QAbstractItemModel* theWrappedObject) const; - Qt::DropActions supportedDropActions(QAbstractItemModel* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QAbstractListModel : public QAbstractListModel -{ -public: - PythonQtShell_QAbstractListModel(QObject* parent = 0):QAbstractListModel(parent),_wrapper(NULL) {}; - -virtual QModelIndex buddy(const QModelIndex& index) const; -virtual bool canFetchMore(const QModelIndex& parent) const; -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual QVariant data(const QModelIndex& index, int role) const; -virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fetchMore(const QModelIndex& parent); -virtual Qt::ItemFlags flags(const QModelIndex& index) const; -virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; -virtual QModelIndex index(int row, int column = 0, const QModelIndex& parent = QModelIndex()) const; -virtual bool insertColumns(int column, int count, const QModelIndex& parent); -virtual bool insertRows(int row, int count, const QModelIndex& parent); -virtual QMap itemData(const QModelIndex& index) const; -virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; -virtual QMimeData* mimeData(const QList& indexes) const; -virtual QStringList mimeTypes() const; -virtual bool removeColumns(int column, int count, const QModelIndex& parent); -virtual bool removeRows(int row, int count, const QModelIndex& parent); -virtual void revert(); -virtual int rowCount(const QModelIndex& parent) const; -virtual bool setData(const QModelIndex& index, const QVariant& value, int role); -virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role); -virtual bool setItemData(const QModelIndex& index, const QMap& roles); -virtual void sort(int column, Qt::SortOrder order); -virtual QSize span(const QModelIndex& index) const; -virtual bool submit(); -virtual Qt::DropActions supportedDropActions() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractListModel : public QAbstractListModel -{ public: -inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QAbstractListModel::dropMimeData(data, action, row, column, parent); } -inline QModelIndex promoted_index(int row, int column = 0, const QModelIndex& parent = QModelIndex()) const { return QAbstractListModel::index(row, column, parent); } -}; - -class PythonQtWrapper_QAbstractListModel : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractListModel* new_QAbstractListModel(QObject* parent = 0); -void delete_QAbstractListModel(QAbstractListModel* obj) { delete obj; } - bool dropMimeData(QAbstractListModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); - QModelIndex index(QAbstractListModel* theWrappedObject, int row, int column = 0, const QModelIndex& parent = QModelIndex()) const; -}; - - - - - -class PythonQtShell_QAbstractState : public QAbstractState -{ -public: - PythonQtShell_QAbstractState(QState* parent = 0):QAbstractState(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void onEntry(QEvent* event); -virtual void onExit(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractState : public QAbstractState -{ public: -inline bool promoted_event(QEvent* e) { return QAbstractState::event(e); } -}; - -class PythonQtWrapper_QAbstractState : public QObject -{ Q_OBJECT -public: -public slots: -void delete_QAbstractState(QAbstractState* obj) { delete obj; } - bool event(QAbstractState* theWrappedObject, QEvent* e); - QStateMachine* machine(QAbstractState* theWrappedObject) const; - QState* parentState(QAbstractState* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QAbstractTransition : public QAbstractTransition -{ -public: - PythonQtShell_QAbstractTransition(QState* sourceState = 0):QAbstractTransition(sourceState),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool eventTest(QEvent* event); -virtual void onTransition(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractTransition : public QAbstractTransition -{ public: -inline bool promoted_event(QEvent* e) { return QAbstractTransition::event(e); } -}; - -class PythonQtWrapper_QAbstractTransition : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractTransition* new_QAbstractTransition(QState* sourceState = 0); -void delete_QAbstractTransition(QAbstractTransition* obj) { delete obj; } - void addAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation); - QList animations(QAbstractTransition* theWrappedObject) const; - bool event(QAbstractTransition* theWrappedObject, QEvent* e); - QStateMachine* machine(QAbstractTransition* theWrappedObject) const; - void removeAnimation(QAbstractTransition* theWrappedObject, QAbstractAnimation* animation); - void setTargetState(QAbstractTransition* theWrappedObject, QAbstractState* target); - void setTargetStates(QAbstractTransition* theWrappedObject, const QList& targets); - QState* sourceState(QAbstractTransition* theWrappedObject) const; - QAbstractState* targetState(QAbstractTransition* theWrappedObject) const; - QList targetStates(QAbstractTransition* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QAnimationGroup : public QAnimationGroup -{ -public: - PythonQtShell_QAnimationGroup(QObject* parent = 0):QAnimationGroup(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int duration() const; -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateCurrentTime(int currentTime); -virtual void updateDirection(QAbstractAnimation::Direction direction); -virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAnimationGroup : public QAnimationGroup -{ public: -inline bool promoted_event(QEvent* event) { return QAnimationGroup::event(event); } -}; - -class PythonQtWrapper_QAnimationGroup : public QObject -{ Q_OBJECT -public: -public slots: -QAnimationGroup* new_QAnimationGroup(QObject* parent = 0); -void delete_QAnimationGroup(QAnimationGroup* obj) { delete obj; } - void addAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation); - QAbstractAnimation* animationAt(QAnimationGroup* theWrappedObject, int index) const; - int animationCount(QAnimationGroup* theWrappedObject) const; - void clear(QAnimationGroup* theWrappedObject); - bool event(QAnimationGroup* theWrappedObject, QEvent* event); - int indexOfAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation) const; - void insertAnimation(QAnimationGroup* theWrappedObject, int index, QAbstractAnimation* animation); - void removeAnimation(QAnimationGroup* theWrappedObject, QAbstractAnimation* animation); - QAbstractAnimation* takeAnimation(QAnimationGroup* theWrappedObject, int index); -}; - - - - - -class PythonQtWrapper_QBasicTimer : public QObject -{ Q_OBJECT -public: -public slots: -QBasicTimer* new_QBasicTimer(); -QBasicTimer* new_QBasicTimer(const QBasicTimer& other) { -QBasicTimer* a = new QBasicTimer(); -*((QBasicTimer*)a) = other; -return a; } -void delete_QBasicTimer(QBasicTimer* obj) { delete obj; } - bool isActive(QBasicTimer* theWrappedObject) const; - void start(QBasicTimer* theWrappedObject, int msec, QObject* obj); - void stop(QBasicTimer* theWrappedObject); - int timerId(QBasicTimer* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QBuffer : public QBuffer -{ -public: - PythonQtShell_QBuffer(QByteArray* buf, QObject* parent = 0):QBuffer(buf, parent),_wrapper(NULL) {}; - PythonQtShell_QBuffer(QObject* parent = 0):QBuffer(parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode openMode); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 off); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs); -virtual bool waitForReadyRead(int msecs); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QBuffer : public QBuffer -{ public: -inline bool promoted_atEnd() const { return QBuffer::atEnd(); } -inline bool promoted_canReadLine() const { return QBuffer::canReadLine(); } -inline void promoted_close() { QBuffer::close(); } -inline bool promoted_open(QIODevice::OpenMode openMode) { return QBuffer::open(openMode); } -inline qint64 promoted_pos() const { return QBuffer::pos(); } -inline qint64 promoted_readData(char* data, qint64 maxlen) { return QBuffer::readData(data, maxlen); } -inline bool promoted_seek(qint64 off) { return QBuffer::seek(off); } -inline qint64 promoted_size() const { return QBuffer::size(); } -inline qint64 promoted_writeData(const char* data, qint64 len) { return QBuffer::writeData(data, len); } -}; - -class PythonQtWrapper_QBuffer : public QObject -{ Q_OBJECT -public: -public slots: -QBuffer* new_QBuffer(QByteArray* buf, QObject* parent = 0); -QBuffer* new_QBuffer(QObject* parent = 0); -void delete_QBuffer(QBuffer* obj) { delete obj; } - bool atEnd(QBuffer* theWrappedObject) const; - bool canReadLine(QBuffer* theWrappedObject) const; - void close(QBuffer* theWrappedObject); - bool open(QBuffer* theWrappedObject, QIODevice::OpenMode openMode); - qint64 pos(QBuffer* theWrappedObject) const; - qint64 readData(QBuffer* theWrappedObject, char* data, qint64 maxlen); - bool seek(QBuffer* theWrappedObject, qint64 off); - void setBuffer(QBuffer* theWrappedObject, QByteArray* a); - void setData(QBuffer* theWrappedObject, const QByteArray& data); - qint64 size(QBuffer* theWrappedObject) const; - qint64 writeData(QBuffer* theWrappedObject, const char* data, qint64 len); -}; - - - - - -class PythonQtWrapper_QByteArrayMatcher : public QObject -{ Q_OBJECT -public: -public slots: -QByteArrayMatcher* new_QByteArrayMatcher(); -QByteArrayMatcher* new_QByteArrayMatcher(const QByteArray& pattern); -QByteArrayMatcher* new_QByteArrayMatcher(const QByteArrayMatcher& other); -QByteArrayMatcher* new_QByteArrayMatcher(const char* pattern, int length); -void delete_QByteArrayMatcher(QByteArrayMatcher* obj) { delete obj; } - int indexIn(QByteArrayMatcher* theWrappedObject, const QByteArray& ba, int from = 0) const; - int indexIn(QByteArrayMatcher* theWrappedObject, const char* str, int len, int from = 0) const; - QByteArray pattern(QByteArrayMatcher* theWrappedObject) const; - void setPattern(QByteArrayMatcher* theWrappedObject, const QByteArray& pattern); -}; - - - - - -class PythonQtShell_QChildEvent : public QChildEvent -{ -public: - PythonQtShell_QChildEvent(QEvent::Type type, QObject* child):QChildEvent(type, child),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QChildEvent : public QObject -{ Q_OBJECT -public: -public slots: -QChildEvent* new_QChildEvent(QEvent::Type type, QObject* child); -void delete_QChildEvent(QChildEvent* obj) { delete obj; } - bool added(QChildEvent* theWrappedObject) const; - QObject* child(QChildEvent* theWrappedObject) const; - bool polished(QChildEvent* theWrappedObject) const; - bool removed(QChildEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QCoreApplication : public QCoreApplication -{ -public: - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool notify(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCoreApplication : public QCoreApplication -{ public: -inline bool promoted_event(QEvent* arg__1) { return QCoreApplication::event(arg__1); } -inline bool promoted_notify(QObject* arg__1, QEvent* arg__2) { return QCoreApplication::notify(arg__1, arg__2); } -}; - -class PythonQtWrapper_QCoreApplication : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Encoding ) -enum Encoding{ - CodecForTr = QCoreApplication::CodecForTr, UnicodeUTF8 = QCoreApplication::UnicodeUTF8, DefaultCodec = QCoreApplication::DefaultCodec}; -public slots: -void delete_QCoreApplication(QCoreApplication* obj) { delete obj; } - void static_QCoreApplication_addLibraryPath(const QString& arg__1); - QString static_QCoreApplication_applicationDirPath(); - QString static_QCoreApplication_applicationFilePath(); - QString static_QCoreApplication_applicationName(); - qint64 static_QCoreApplication_applicationPid(); - QString static_QCoreApplication_applicationVersion(); - bool static_QCoreApplication_closingDown(); - bool event(QCoreApplication* theWrappedObject, QEvent* arg__1); - int static_QCoreApplication_exec(); - void static_QCoreApplication_exit(int retcode = 0); - void static_QCoreApplication_flush(); - bool static_QCoreApplication_hasPendingEvents(); - void static_QCoreApplication_installTranslator(QTranslator* messageFile); - QCoreApplication* static_QCoreApplication_instance(); - QStringList static_QCoreApplication_libraryPaths(); - bool notify(QCoreApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2); - QString static_QCoreApplication_organizationDomain(); - QString static_QCoreApplication_organizationName(); - void static_QCoreApplication_postEvent(QObject* receiver, QEvent* event); - void static_QCoreApplication_postEvent(QObject* receiver, QEvent* event, int priority); - void static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); - void static_QCoreApplication_processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime); - void static_QCoreApplication_removeLibraryPath(const QString& arg__1); - void static_QCoreApplication_removePostedEvents(QObject* receiver); - void static_QCoreApplication_removePostedEvents(QObject* receiver, int eventType); - void static_QCoreApplication_removeTranslator(QTranslator* messageFile); - bool static_QCoreApplication_sendEvent(QObject* receiver, QEvent* event); - void static_QCoreApplication_sendPostedEvents(); - void static_QCoreApplication_sendPostedEvents(QObject* receiver, int event_type); - void static_QCoreApplication_setApplicationName(const QString& application); - void static_QCoreApplication_setApplicationVersion(const QString& version); - void static_QCoreApplication_setAttribute(Qt::ApplicationAttribute attribute, bool on = true); - void static_QCoreApplication_setLibraryPaths(const QStringList& arg__1); - void static_QCoreApplication_setOrganizationDomain(const QString& orgDomain); - void static_QCoreApplication_setOrganizationName(const QString& orgName); - bool static_QCoreApplication_startingUp(); - bool static_QCoreApplication_testAttribute(Qt::ApplicationAttribute attribute); - QString static_QCoreApplication_translate(const char* context, const char* key, const char* disambiguation = 0, QCoreApplication::Encoding encoding = QCoreApplication::CodecForTr); - QString static_QCoreApplication_translate(const char* context, const char* key, const char* disambiguation, QCoreApplication::Encoding encoding, int n); -}; - - - - - -class PythonQtWrapper_QCryptographicHash : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Algorithm ) -enum Algorithm{ - Md4 = QCryptographicHash::Md4, Md5 = QCryptographicHash::Md5, Sha1 = QCryptographicHash::Sha1}; -public slots: -QCryptographicHash* new_QCryptographicHash(QCryptographicHash::Algorithm method); -void delete_QCryptographicHash(QCryptographicHash* obj) { delete obj; } - void addData(QCryptographicHash* theWrappedObject, const QByteArray& data); - QByteArray static_QCryptographicHash_hash(const QByteArray& data, QCryptographicHash::Algorithm method); - void reset(QCryptographicHash* theWrappedObject); - QByteArray result(QCryptographicHash* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDataStream : public QDataStream -{ -public: - PythonQtShell_QDataStream():QDataStream(),_wrapper(NULL) {}; - PythonQtShell_QDataStream(QByteArray* arg__1, QIODevice::OpenMode flags):QDataStream(arg__1, flags),_wrapper(NULL) {}; - PythonQtShell_QDataStream(QIODevice* arg__1):QDataStream(arg__1),_wrapper(NULL) {}; - PythonQtShell_QDataStream(const QByteArray& arg__1):QDataStream(arg__1),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDataStream : public QObject -{ Q_OBJECT -public: -Q_ENUMS(FloatingPointPrecision Version Status ) -enum FloatingPointPrecision{ - SinglePrecision = QDataStream::SinglePrecision, DoublePrecision = QDataStream::DoublePrecision}; -enum Version{ - Qt_1_0 = QDataStream::Qt_1_0, Qt_2_0 = QDataStream::Qt_2_0, Qt_2_1 = QDataStream::Qt_2_1, Qt_3_0 = QDataStream::Qt_3_0, Qt_3_1 = QDataStream::Qt_3_1, Qt_3_3 = QDataStream::Qt_3_3, Qt_4_0 = QDataStream::Qt_4_0, Qt_4_1 = QDataStream::Qt_4_1, Qt_4_2 = QDataStream::Qt_4_2, Qt_4_3 = QDataStream::Qt_4_3, Qt_4_4 = QDataStream::Qt_4_4, Qt_4_5 = QDataStream::Qt_4_5, Qt_4_6 = QDataStream::Qt_4_6}; -enum Status{ - Ok = QDataStream::Ok, ReadPastEnd = QDataStream::ReadPastEnd, ReadCorruptData = QDataStream::ReadCorruptData}; -public slots: -QDataStream* new_QDataStream(); -QDataStream* new_QDataStream(QByteArray* arg__1, QIODevice::OpenMode flags); -QDataStream* new_QDataStream(QIODevice* arg__1); -QDataStream* new_QDataStream(const QByteArray& arg__1); -void delete_QDataStream(QDataStream* obj) { delete obj; } - bool atEnd(QDataStream* theWrappedObject) const; - QIODevice* device(QDataStream* theWrappedObject) const; - QDataStream::FloatingPointPrecision floatingPointPrecision(QDataStream* theWrappedObject) const; - QDataStream* writeBoolean(QDataStream* theWrappedObject, bool i); - QDataStream* writeDouble(QDataStream* theWrappedObject, double f); - QDataStream* writeFloat(QDataStream* theWrappedObject, float f); - QDataStream* writeInt(QDataStream* theWrappedObject, int i); - QDataStream* writeLongLong(QDataStream* theWrappedObject, qint64 i); - QDataStream* writeShort(QDataStream* theWrappedObject, short i); - QDataStream* readBoolean(QDataStream* theWrappedObject, bool& i); - QDataStream* readDouble(QDataStream* theWrappedObject, double& f); - QDataStream* readFloat(QDataStream* theWrappedObject, float& f); - QDataStream* readInt(QDataStream* theWrappedObject, int& i); - QDataStream* readLongLong(QDataStream* theWrappedObject, qint64& i); - QDataStream* readShort(QDataStream* theWrappedObject, short& i); - QDataStream* readUShort(QDataStream* theWrappedObject, unsigned short& i); - void resetStatus(QDataStream* theWrappedObject); - void setDevice(QDataStream* theWrappedObject, QIODevice* arg__1); - void setFloatingPointPrecision(QDataStream* theWrappedObject, QDataStream::FloatingPointPrecision precision); - void setStatus(QDataStream* theWrappedObject, QDataStream::Status status); - void setVersion(QDataStream* theWrappedObject, int arg__1); - int skipRawData(QDataStream* theWrappedObject, int len); - QDataStream::Status status(QDataStream* theWrappedObject) const; - void unsetDevice(QDataStream* theWrappedObject); - int version(QDataStream* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QDir : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Filter SortFlag ) -Q_FLAGS(Filters SortFlags ) -enum Filter{ - Dirs = QDir::Dirs, Files = QDir::Files, Drives = QDir::Drives, NoSymLinks = QDir::NoSymLinks, AllEntries = QDir::AllEntries, TypeMask = QDir::TypeMask, Readable = QDir::Readable, Writable = QDir::Writable, Executable = QDir::Executable, PermissionMask = QDir::PermissionMask, Modified = QDir::Modified, Hidden = QDir::Hidden, System = QDir::System, AccessMask = QDir::AccessMask, AllDirs = QDir::AllDirs, CaseSensitive = QDir::CaseSensitive, NoDotAndDotDot = QDir::NoDotAndDotDot, NoFilter = QDir::NoFilter}; -enum SortFlag{ - Name = QDir::Name, Time = QDir::Time, Size = QDir::Size, Unsorted = QDir::Unsorted, SortByMask = QDir::SortByMask, DirsFirst = QDir::DirsFirst, Reversed = QDir::Reversed, IgnoreCase = QDir::IgnoreCase, DirsLast = QDir::DirsLast, LocaleAware = QDir::LocaleAware, Type = QDir::Type, NoSort = QDir::NoSort}; -Q_DECLARE_FLAGS(Filters, Filter) -Q_DECLARE_FLAGS(SortFlags, SortFlag) -public slots: -QDir* new_QDir(const QDir& arg__1); -QDir* new_QDir(const QString& path = QString()); -QDir* new_QDir(const QString& path, const QString& nameFilter, QDir::SortFlags sort = QDir::SortFlags(Name | IgnoreCase), QDir::Filters filter = QDir::AllEntries); -void delete_QDir(QDir* obj) { delete obj; } - QString absoluteFilePath(QDir* theWrappedObject, const QString& fileName) const; - QString absolutePath(QDir* theWrappedObject) const; - void static_QDir_addSearchPath(const QString& prefix, const QString& path); - QString canonicalPath(QDir* theWrappedObject) const; - bool cd(QDir* theWrappedObject, const QString& dirName); - bool cdUp(QDir* theWrappedObject); - QString static_QDir_cleanPath(const QString& path); - QString static_QDir_convertSeparators(const QString& pathName); - uint count(QDir* theWrappedObject) const; - QDir static_QDir_current(); - QString static_QDir_currentPath(); - QString dirName(QDir* theWrappedObject) const; - QList static_QDir_drives(); - QList entryInfoList(QDir* theWrappedObject, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; - QList entryInfoList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; - QStringList entryList(QDir* theWrappedObject, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; - QStringList entryList(QDir* theWrappedObject, const QStringList& nameFilters, QDir::Filters filters = QDir::NoFilter, QDir::SortFlags sort = QDir::NoSort) const; - bool exists(QDir* theWrappedObject) const; - bool exists(QDir* theWrappedObject, const QString& name) const; - QString filePath(QDir* theWrappedObject, const QString& fileName) const; - QDir::Filters filter(QDir* theWrappedObject) const; - QString static_QDir_fromNativeSeparators(const QString& pathName); - QDir static_QDir_home(); - QString static_QDir_homePath(); - bool isAbsolute(QDir* theWrappedObject) const; - bool static_QDir_isAbsolutePath(const QString& path); - bool isReadable(QDir* theWrappedObject) const; - bool isRelative(QDir* theWrappedObject) const; - bool static_QDir_isRelativePath(const QString& path); - bool isRoot(QDir* theWrappedObject) const; - bool makeAbsolute(QDir* theWrappedObject); - bool static_QDir_match(const QString& filter, const QString& fileName); - bool static_QDir_match(const QStringList& filters, const QString& fileName); - bool mkdir(QDir* theWrappedObject, const QString& dirName) const; - bool mkpath(QDir* theWrappedObject, const QString& dirPath) const; - QStringList nameFilters(QDir* theWrappedObject) const; - QStringList static_QDir_nameFiltersFromString(const QString& nameFilter); - bool __ne__(QDir* theWrappedObject, const QDir& dir) const; - bool __eq__(QDir* theWrappedObject, const QDir& dir) const; - QString operator_subscript(QDir* theWrappedObject, int arg__1) const; - QString path(QDir* theWrappedObject) const; - void refresh(QDir* theWrappedObject) const; - QString relativeFilePath(QDir* theWrappedObject, const QString& fileName) const; - bool remove(QDir* theWrappedObject, const QString& fileName); - bool rename(QDir* theWrappedObject, const QString& oldName, const QString& newName); - bool rmdir(QDir* theWrappedObject, const QString& dirName) const; - bool rmpath(QDir* theWrappedObject, const QString& dirPath) const; - QDir static_QDir_root(); - QString static_QDir_rootPath(); - QStringList static_QDir_searchPaths(const QString& prefix); - QChar static_QDir_separator(); - bool static_QDir_setCurrent(const QString& path); - void setFilter(QDir* theWrappedObject, QDir::Filters filter); - void setNameFilters(QDir* theWrappedObject, const QStringList& nameFilters); - void setPath(QDir* theWrappedObject, const QString& path); - void static_QDir_setSearchPaths(const QString& prefix, const QStringList& searchPaths); - void setSorting(QDir* theWrappedObject, QDir::SortFlags sort); - QDir::SortFlags sorting(QDir* theWrappedObject) const; - QDir static_QDir_temp(); - QString static_QDir_tempPath(); - QString static_QDir_toNativeSeparators(const QString& pathName); - QString py_toString(QDir*); -}; - - - - - -class PythonQtShell_QDirIterator : public QDirIterator -{ -public: - PythonQtShell_QDirIterator(const QDir& dir, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags):QDirIterator(dir, flags),_wrapper(NULL) {}; - PythonQtShell_QDirIterator(const QString& path, QDir::Filters filter, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags):QDirIterator(path, filter, flags),_wrapper(NULL) {}; - PythonQtShell_QDirIterator(const QString& path, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags):QDirIterator(path, flags),_wrapper(NULL) {}; - PythonQtShell_QDirIterator(const QString& path, const QStringList& nameFilters, QDir::Filters filters = QDir::NoFilter, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags):QDirIterator(path, nameFilters, filters, flags),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDirIterator : public QObject -{ Q_OBJECT -public: -Q_ENUMS(IteratorFlag ) -Q_FLAGS(IteratorFlags ) -enum IteratorFlag{ - NoIteratorFlags = QDirIterator::NoIteratorFlags, FollowSymlinks = QDirIterator::FollowSymlinks, Subdirectories = QDirIterator::Subdirectories}; -Q_DECLARE_FLAGS(IteratorFlags, IteratorFlag) -public slots: -QDirIterator* new_QDirIterator(const QDir& dir, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); -QDirIterator* new_QDirIterator(const QString& path, QDir::Filters filter, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); -QDirIterator* new_QDirIterator(const QString& path, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); -QDirIterator* new_QDirIterator(const QString& path, const QStringList& nameFilters, QDir::Filters filters = QDir::NoFilter, QDirIterator::IteratorFlags flags = QDirIterator::NoIteratorFlags); -void delete_QDirIterator(QDirIterator* obj) { delete obj; } - QFileInfo fileInfo(QDirIterator* theWrappedObject) const; - QString fileName(QDirIterator* theWrappedObject) const; - QString filePath(QDirIterator* theWrappedObject) const; - bool hasNext(QDirIterator* theWrappedObject) const; - QString next(QDirIterator* theWrappedObject); - QString path(QDirIterator* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QDynamicPropertyChangeEvent : public QObject -{ Q_OBJECT -public: -public slots: -QDynamicPropertyChangeEvent* new_QDynamicPropertyChangeEvent(const QByteArray& name); -void delete_QDynamicPropertyChangeEvent(QDynamicPropertyChangeEvent* obj) { delete obj; } - QByteArray propertyName(QDynamicPropertyChangeEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QEasingCurve : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Type ) -enum Type{ - Linear = QEasingCurve::Linear, InQuad = QEasingCurve::InQuad, OutQuad = QEasingCurve::OutQuad, InOutQuad = QEasingCurve::InOutQuad, OutInQuad = QEasingCurve::OutInQuad, InCubic = QEasingCurve::InCubic, OutCubic = QEasingCurve::OutCubic, InOutCubic = QEasingCurve::InOutCubic, OutInCubic = QEasingCurve::OutInCubic, InQuart = QEasingCurve::InQuart, OutQuart = QEasingCurve::OutQuart, InOutQuart = QEasingCurve::InOutQuart, OutInQuart = QEasingCurve::OutInQuart, InQuint = QEasingCurve::InQuint, OutQuint = QEasingCurve::OutQuint, InOutQuint = QEasingCurve::InOutQuint, OutInQuint = QEasingCurve::OutInQuint, InSine = QEasingCurve::InSine, OutSine = QEasingCurve::OutSine, InOutSine = QEasingCurve::InOutSine, OutInSine = QEasingCurve::OutInSine, InExpo = QEasingCurve::InExpo, OutExpo = QEasingCurve::OutExpo, InOutExpo = QEasingCurve::InOutExpo, OutInExpo = QEasingCurve::OutInExpo, InCirc = QEasingCurve::InCirc, OutCirc = QEasingCurve::OutCirc, InOutCirc = QEasingCurve::InOutCirc, OutInCirc = QEasingCurve::OutInCirc, InElastic = QEasingCurve::InElastic, OutElastic = QEasingCurve::OutElastic, InOutElastic = QEasingCurve::InOutElastic, OutInElastic = QEasingCurve::OutInElastic, InBack = QEasingCurve::InBack, OutBack = QEasingCurve::OutBack, InOutBack = QEasingCurve::InOutBack, OutInBack = QEasingCurve::OutInBack, InBounce = QEasingCurve::InBounce, OutBounce = QEasingCurve::OutBounce, InOutBounce = QEasingCurve::InOutBounce, OutInBounce = QEasingCurve::OutInBounce, InCurve = QEasingCurve::InCurve, OutCurve = QEasingCurve::OutCurve, SineCurve = QEasingCurve::SineCurve, CosineCurve = QEasingCurve::CosineCurve, Custom = QEasingCurve::Custom, NCurveTypes = QEasingCurve::NCurveTypes}; -public slots: -QEasingCurve* new_QEasingCurve(QEasingCurve::Type type = QEasingCurve::Linear); -QEasingCurve* new_QEasingCurve(const QEasingCurve& other); -void delete_QEasingCurve(QEasingCurve* obj) { delete obj; } - qreal amplitude(QEasingCurve* theWrappedObject) const; - bool __ne__(QEasingCurve* theWrappedObject, const QEasingCurve& other) const; - QEasingCurve* operator_assign(QEasingCurve* theWrappedObject, const QEasingCurve& other); - bool __eq__(QEasingCurve* theWrappedObject, const QEasingCurve& other) const; - qreal overshoot(QEasingCurve* theWrappedObject) const; - qreal period(QEasingCurve* theWrappedObject) const; - void setAmplitude(QEasingCurve* theWrappedObject, qreal amplitude); - void setOvershoot(QEasingCurve* theWrappedObject, qreal overshoot); - void setPeriod(QEasingCurve* theWrappedObject, qreal period); - void setType(QEasingCurve* theWrappedObject, QEasingCurve::Type type); - QEasingCurve::Type type(QEasingCurve* theWrappedObject) const; - qreal valueForProgress(QEasingCurve* theWrappedObject, qreal progress) const; - QString py_toString(QEasingCurve*); -}; - - - - - -class PythonQtShell_QEvent : public QEvent -{ -public: - PythonQtShell_QEvent(QEvent::Type type):QEvent(type),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QEvent : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Type ) -enum Type{ - None = QEvent::None, Timer = QEvent::Timer, MouseButtonPress = QEvent::MouseButtonPress, MouseButtonRelease = QEvent::MouseButtonRelease, MouseButtonDblClick = QEvent::MouseButtonDblClick, MouseMove = QEvent::MouseMove, KeyPress = QEvent::KeyPress, KeyRelease = QEvent::KeyRelease, FocusIn = QEvent::FocusIn, FocusOut = QEvent::FocusOut, Enter = QEvent::Enter, Leave = QEvent::Leave, Paint = QEvent::Paint, Move = QEvent::Move, Resize = QEvent::Resize, Create = QEvent::Create, Destroy = QEvent::Destroy, Show = QEvent::Show, Hide = QEvent::Hide, Close = QEvent::Close, Quit = QEvent::Quit, ParentChange = QEvent::ParentChange, ParentAboutToChange = QEvent::ParentAboutToChange, ThreadChange = QEvent::ThreadChange, WindowActivate = QEvent::WindowActivate, WindowDeactivate = QEvent::WindowDeactivate, ShowToParent = QEvent::ShowToParent, HideToParent = QEvent::HideToParent, Wheel = QEvent::Wheel, WindowTitleChange = QEvent::WindowTitleChange, WindowIconChange = QEvent::WindowIconChange, ApplicationWindowIconChange = QEvent::ApplicationWindowIconChange, ApplicationFontChange = QEvent::ApplicationFontChange, ApplicationLayoutDirectionChange = QEvent::ApplicationLayoutDirectionChange, ApplicationPaletteChange = QEvent::ApplicationPaletteChange, PaletteChange = QEvent::PaletteChange, Clipboard = QEvent::Clipboard, Speech = QEvent::Speech, MetaCall = QEvent::MetaCall, SockAct = QEvent::SockAct, WinEventAct = QEvent::WinEventAct, DeferredDelete = QEvent::DeferredDelete, DragEnter = QEvent::DragEnter, DragMove = QEvent::DragMove, DragLeave = QEvent::DragLeave, Drop = QEvent::Drop, DragResponse = QEvent::DragResponse, ChildAdded = QEvent::ChildAdded, ChildPolished = QEvent::ChildPolished, ChildRemoved = QEvent::ChildRemoved, ShowWindowRequest = QEvent::ShowWindowRequest, PolishRequest = QEvent::PolishRequest, Polish = QEvent::Polish, LayoutRequest = QEvent::LayoutRequest, UpdateRequest = QEvent::UpdateRequest, UpdateLater = QEvent::UpdateLater, EmbeddingControl = QEvent::EmbeddingControl, ActivateControl = QEvent::ActivateControl, DeactivateControl = QEvent::DeactivateControl, ContextMenu = QEvent::ContextMenu, InputMethod = QEvent::InputMethod, AccessibilityPrepare = QEvent::AccessibilityPrepare, TabletMove = QEvent::TabletMove, LocaleChange = QEvent::LocaleChange, LanguageChange = QEvent::LanguageChange, LayoutDirectionChange = QEvent::LayoutDirectionChange, Style = QEvent::Style, TabletPress = QEvent::TabletPress, TabletRelease = QEvent::TabletRelease, OkRequest = QEvent::OkRequest, HelpRequest = QEvent::HelpRequest, IconDrag = QEvent::IconDrag, FontChange = QEvent::FontChange, EnabledChange = QEvent::EnabledChange, ActivationChange = QEvent::ActivationChange, StyleChange = QEvent::StyleChange, IconTextChange = QEvent::IconTextChange, ModifiedChange = QEvent::ModifiedChange, MouseTrackingChange = QEvent::MouseTrackingChange, WindowBlocked = QEvent::WindowBlocked, WindowUnblocked = QEvent::WindowUnblocked, WindowStateChange = QEvent::WindowStateChange, ToolTip = QEvent::ToolTip, WhatsThis = QEvent::WhatsThis, StatusTip = QEvent::StatusTip, ActionChanged = QEvent::ActionChanged, ActionAdded = QEvent::ActionAdded, ActionRemoved = QEvent::ActionRemoved, FileOpen = QEvent::FileOpen, Shortcut = QEvent::Shortcut, ShortcutOverride = QEvent::ShortcutOverride, WhatsThisClicked = QEvent::WhatsThisClicked, ToolBarChange = QEvent::ToolBarChange, ApplicationActivate = QEvent::ApplicationActivate, ApplicationActivated = QEvent::ApplicationActivated, ApplicationDeactivate = QEvent::ApplicationDeactivate, ApplicationDeactivated = QEvent::ApplicationDeactivated, QueryWhatsThis = QEvent::QueryWhatsThis, EnterWhatsThisMode = QEvent::EnterWhatsThisMode, LeaveWhatsThisMode = QEvent::LeaveWhatsThisMode, ZOrderChange = QEvent::ZOrderChange, HoverEnter = QEvent::HoverEnter, HoverLeave = QEvent::HoverLeave, HoverMove = QEvent::HoverMove, AccessibilityHelp = QEvent::AccessibilityHelp, AccessibilityDescription = QEvent::AccessibilityDescription, AcceptDropsChange = QEvent::AcceptDropsChange, MenubarUpdated = QEvent::MenubarUpdated, ZeroTimerEvent = QEvent::ZeroTimerEvent, GraphicsSceneMouseMove = QEvent::GraphicsSceneMouseMove, GraphicsSceneMousePress = QEvent::GraphicsSceneMousePress, GraphicsSceneMouseRelease = QEvent::GraphicsSceneMouseRelease, GraphicsSceneMouseDoubleClick = QEvent::GraphicsSceneMouseDoubleClick, GraphicsSceneContextMenu = QEvent::GraphicsSceneContextMenu, GraphicsSceneHoverEnter = QEvent::GraphicsSceneHoverEnter, GraphicsSceneHoverMove = QEvent::GraphicsSceneHoverMove, GraphicsSceneHoverLeave = QEvent::GraphicsSceneHoverLeave, GraphicsSceneHelp = QEvent::GraphicsSceneHelp, GraphicsSceneDragEnter = QEvent::GraphicsSceneDragEnter, GraphicsSceneDragMove = QEvent::GraphicsSceneDragMove, GraphicsSceneDragLeave = QEvent::GraphicsSceneDragLeave, GraphicsSceneDrop = QEvent::GraphicsSceneDrop, GraphicsSceneWheel = QEvent::GraphicsSceneWheel, KeyboardLayoutChange = QEvent::KeyboardLayoutChange, DynamicPropertyChange = QEvent::DynamicPropertyChange, TabletEnterProximity = QEvent::TabletEnterProximity, TabletLeaveProximity = QEvent::TabletLeaveProximity, NonClientAreaMouseMove = QEvent::NonClientAreaMouseMove, NonClientAreaMouseButtonPress = QEvent::NonClientAreaMouseButtonPress, NonClientAreaMouseButtonRelease = QEvent::NonClientAreaMouseButtonRelease, NonClientAreaMouseButtonDblClick = QEvent::NonClientAreaMouseButtonDblClick, MacSizeChange = QEvent::MacSizeChange, ContentsRectChange = QEvent::ContentsRectChange, MacGLWindowChange = QEvent::MacGLWindowChange, FutureCallOut = QEvent::FutureCallOut, GraphicsSceneResize = QEvent::GraphicsSceneResize, GraphicsSceneMove = QEvent::GraphicsSceneMove, CursorChange = QEvent::CursorChange, ToolTipChange = QEvent::ToolTipChange, NetworkReplyUpdated = QEvent::NetworkReplyUpdated, GrabMouse = QEvent::GrabMouse, UngrabMouse = QEvent::UngrabMouse, GrabKeyboard = QEvent::GrabKeyboard, UngrabKeyboard = QEvent::UngrabKeyboard, MacGLClearDrawable = QEvent::MacGLClearDrawable, StateMachineSignal = QEvent::StateMachineSignal, StateMachineWrapped = QEvent::StateMachineWrapped, TouchBegin = QEvent::TouchBegin, TouchUpdate = QEvent::TouchUpdate, TouchEnd = QEvent::TouchEnd, NativeGesture = QEvent::NativeGesture, RequestSoftwareInputPanel = QEvent::RequestSoftwareInputPanel, CloseSoftwareInputPanel = QEvent::CloseSoftwareInputPanel, UpdateSoftKeys = QEvent::UpdateSoftKeys, WinIdChange = QEvent::WinIdChange, Gesture = QEvent::Gesture, GestureOverride = QEvent::GestureOverride, User = QEvent::User, MaxUser = QEvent::MaxUser}; -public slots: -QEvent* new_QEvent(QEvent::Type type); -void delete_QEvent(QEvent* obj) { delete obj; } - void accept(QEvent* theWrappedObject); - void ignore(QEvent* theWrappedObject); - bool isAccepted(QEvent* theWrappedObject) const; - int static_QEvent_registerEventType(int hint = -1); - void setAccepted(QEvent* theWrappedObject, bool accepted); - bool spontaneous(QEvent* theWrappedObject) const; - QEvent::Type type(QEvent* theWrappedObject) const; - QString py_toString(QEvent*); -}; - - - - - -class PythonQtShell_QEventLoop : public QEventLoop -{ -public: - PythonQtShell_QEventLoop(QObject* parent = 0):QEventLoop(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QEventLoop : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ProcessEventsFlag ) -Q_FLAGS(ProcessEventsFlags ) -enum ProcessEventsFlag{ - AllEvents = QEventLoop::AllEvents, ExcludeUserInputEvents = QEventLoop::ExcludeUserInputEvents, ExcludeSocketNotifiers = QEventLoop::ExcludeSocketNotifiers, WaitForMoreEvents = QEventLoop::WaitForMoreEvents, X11ExcludeTimers = QEventLoop::X11ExcludeTimers, DeferredDeletion = QEventLoop::DeferredDeletion, EventLoopExec = QEventLoop::EventLoopExec, DialogExec = QEventLoop::DialogExec}; -Q_DECLARE_FLAGS(ProcessEventsFlags, ProcessEventsFlag) -public slots: -QEventLoop* new_QEventLoop(QObject* parent = 0); -void delete_QEventLoop(QEventLoop* obj) { delete obj; } - int exec(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); - void exit(QEventLoop* theWrappedObject, int returnCode = 0); - bool isRunning(QEventLoop* theWrappedObject) const; - bool processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents); - void processEvents(QEventLoop* theWrappedObject, QEventLoop::ProcessEventsFlags flags, int maximumTime); - void wakeUp(QEventLoop* theWrappedObject); -}; - - - - - -class PythonQtShell_QEventTransition : public QEventTransition -{ -public: - PythonQtShell_QEventTransition(QObject* object, QEvent::Type type, QState* sourceState = 0):QEventTransition(object, type, sourceState),_wrapper(NULL) {}; - PythonQtShell_QEventTransition(QState* sourceState = 0):QEventTransition(sourceState),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool eventTest(QEvent* event); -virtual void onTransition(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QEventTransition : public QEventTransition -{ public: -inline bool promoted_event(QEvent* e) { return QEventTransition::event(e); } -inline bool promoted_eventTest(QEvent* event) { return QEventTransition::eventTest(event); } -inline void promoted_onTransition(QEvent* event) { QEventTransition::onTransition(event); } -}; - -class PythonQtWrapper_QEventTransition : public QObject -{ Q_OBJECT -public: -public slots: -QEventTransition* new_QEventTransition(QObject* object, QEvent::Type type, QState* sourceState = 0); -QEventTransition* new_QEventTransition(QState* sourceState = 0); -void delete_QEventTransition(QEventTransition* obj) { delete obj; } - bool event(QEventTransition* theWrappedObject, QEvent* e); - QObject* eventSource(QEventTransition* theWrappedObject) const; - bool eventTest(QEventTransition* theWrappedObject, QEvent* event); - QEvent::Type eventType(QEventTransition* theWrappedObject) const; - void onTransition(QEventTransition* theWrappedObject, QEvent* event); - void setEventSource(QEventTransition* theWrappedObject, QObject* object); - void setEventType(QEventTransition* theWrappedObject, QEvent::Type type); -}; - - - - - -class PythonQtShell_QFactoryInterface : public QFactoryInterface -{ -public: - PythonQtShell_QFactoryInterface():QFactoryInterface(),_wrapper(NULL) {}; - -virtual QStringList keys() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QFactoryInterface : public QObject -{ Q_OBJECT -public: -public slots: -QFactoryInterface* new_QFactoryInterface(); -void delete_QFactoryInterface(QFactoryInterface* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QFile : public QFile -{ -public: - PythonQtShell_QFile():QFile(),_wrapper(NULL) {}; - PythonQtShell_QFile(QObject* parent):QFile(parent),_wrapper(NULL) {}; - PythonQtShell_QFile(const QString& name):QFile(name),_wrapper(NULL) {}; - PythonQtShell_QFile(const QString& name, QObject* parent):QFile(name, parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QAbstractFileEngine* fileEngine() const; -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode flags); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 offset); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs); -virtual bool waitForReadyRead(int msecs); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFile : public QFile -{ public: -inline bool promoted_atEnd() const { return QFile::atEnd(); } -inline void promoted_close() { QFile::close(); } -inline QAbstractFileEngine* promoted_fileEngine() const { return QFile::fileEngine(); } -inline bool promoted_isSequential() const { return QFile::isSequential(); } -inline bool promoted_open(QIODevice::OpenMode flags) { return QFile::open(flags); } -inline qint64 promoted_pos() const { return QFile::pos(); } -inline qint64 promoted_readData(char* data, qint64 maxlen) { return QFile::readData(data, maxlen); } -inline qint64 promoted_readLineData(char* data, qint64 maxlen) { return QFile::readLineData(data, maxlen); } -inline bool promoted_seek(qint64 offset) { return QFile::seek(offset); } -inline qint64 promoted_size() const { return QFile::size(); } -inline qint64 promoted_writeData(const char* data, qint64 len) { return QFile::writeData(data, len); } -}; - -class PythonQtWrapper_QFile : public QObject -{ Q_OBJECT -public: -Q_ENUMS(FileError MemoryMapFlags Permission ) -Q_FLAGS(Permissions ) -enum FileError{ - NoError = QFile::NoError, ReadError = QFile::ReadError, WriteError = QFile::WriteError, FatalError = QFile::FatalError, ResourceError = QFile::ResourceError, OpenError = QFile::OpenError, AbortError = QFile::AbortError, TimeOutError = QFile::TimeOutError, UnspecifiedError = QFile::UnspecifiedError, RemoveError = QFile::RemoveError, RenameError = QFile::RenameError, PositionError = QFile::PositionError, ResizeError = QFile::ResizeError, PermissionsError = QFile::PermissionsError, CopyError = QFile::CopyError}; -enum MemoryMapFlags{ - NoOptions = QFile::NoOptions}; -enum Permission{ - ReadOwner = QFile::ReadOwner, WriteOwner = QFile::WriteOwner, ExeOwner = QFile::ExeOwner, ReadUser = QFile::ReadUser, WriteUser = QFile::WriteUser, ExeUser = QFile::ExeUser, ReadGroup = QFile::ReadGroup, WriteGroup = QFile::WriteGroup, ExeGroup = QFile::ExeGroup, ReadOther = QFile::ReadOther, WriteOther = QFile::WriteOther, ExeOther = QFile::ExeOther}; -Q_DECLARE_FLAGS(Permissions, Permission) -public slots: -QFile* new_QFile(); -QFile* new_QFile(QObject* parent); -QFile* new_QFile(const QString& name); -QFile* new_QFile(const QString& name, QObject* parent); -void delete_QFile(QFile* obj) { delete obj; } - bool atEnd(QFile* theWrappedObject) const; - void close(QFile* theWrappedObject); - bool static_QFile_copy(const QString& fileName, const QString& newName); - bool copy(QFile* theWrappedObject, const QString& newName); - QString static_QFile_decodeName(const QByteArray& localFileName); - QByteArray static_QFile_encodeName(const QString& fileName); - QFile::FileError error(QFile* theWrappedObject) const; - bool exists(QFile* theWrappedObject) const; - bool static_QFile_exists(const QString& fileName); - QAbstractFileEngine* fileEngine(QFile* theWrappedObject) const; - QString fileName(QFile* theWrappedObject) const; - bool flush(QFile* theWrappedObject); - int handle(QFile* theWrappedObject) const; - bool isSequential(QFile* theWrappedObject) const; - bool link(QFile* theWrappedObject, const QString& newName); - bool static_QFile_link(const QString& oldname, const QString& newName); - bool open(QFile* theWrappedObject, QIODevice::OpenMode flags); - QFile::Permissions permissions(QFile* theWrappedObject) const; - QFile::Permissions static_QFile_permissions(const QString& filename); - qint64 pos(QFile* theWrappedObject) const; - qint64 readData(QFile* theWrappedObject, char* data, qint64 maxlen); - qint64 readLineData(QFile* theWrappedObject, char* data, qint64 maxlen); - bool remove(QFile* theWrappedObject); - bool static_QFile_remove(const QString& fileName); - bool rename(QFile* theWrappedObject, const QString& newName); - bool static_QFile_rename(const QString& oldName, const QString& newName); - bool static_QFile_resize(const QString& filename, qint64 sz); - bool resize(QFile* theWrappedObject, qint64 sz); - bool seek(QFile* theWrappedObject, qint64 offset); - void setFileName(QFile* theWrappedObject, const QString& name); - bool setPermissions(QFile* theWrappedObject, QFile::Permissions permissionSpec); - bool static_QFile_setPermissions(const QString& filename, QFile::Permissions permissionSpec); - qint64 size(QFile* theWrappedObject) const; - QString symLinkTarget(QFile* theWrappedObject) const; - QString static_QFile_symLinkTarget(const QString& fileName); - void unsetError(QFile* theWrappedObject); - qint64 writeData(QFile* theWrappedObject, const char* data, qint64 len); -}; - - - - - -class PythonQtWrapper_QFileInfo : public QObject -{ Q_OBJECT -public: -public slots: -QFileInfo* new_QFileInfo(); -QFileInfo* new_QFileInfo(const QDir& dir, const QString& file); -QFileInfo* new_QFileInfo(const QFile& file); -QFileInfo* new_QFileInfo(const QFileInfo& fileinfo); -QFileInfo* new_QFileInfo(const QString& file); -void delete_QFileInfo(QFileInfo* obj) { delete obj; } - QDir absoluteDir(QFileInfo* theWrappedObject) const; - QString absoluteFilePath(QFileInfo* theWrappedObject) const; - QString absolutePath(QFileInfo* theWrappedObject) const; - QString baseName(QFileInfo* theWrappedObject) const; - QString bundleName(QFileInfo* theWrappedObject) const; - bool caching(QFileInfo* theWrappedObject) const; - QString canonicalFilePath(QFileInfo* theWrappedObject) const; - QString canonicalPath(QFileInfo* theWrappedObject) const; - QString completeBaseName(QFileInfo* theWrappedObject) const; - QString completeSuffix(QFileInfo* theWrappedObject) const; - QDateTime created(QFileInfo* theWrappedObject) const; - QDir dir(QFileInfo* theWrappedObject) const; - bool exists(QFileInfo* theWrappedObject) const; - QString fileName(QFileInfo* theWrappedObject) const; - QString filePath(QFileInfo* theWrappedObject) const; - QString group(QFileInfo* theWrappedObject) const; - uint groupId(QFileInfo* theWrappedObject) const; - bool isAbsolute(QFileInfo* theWrappedObject) const; - bool isBundle(QFileInfo* theWrappedObject) const; - bool isDir(QFileInfo* theWrappedObject) const; - bool isExecutable(QFileInfo* theWrappedObject) const; - bool isFile(QFileInfo* theWrappedObject) const; - bool isHidden(QFileInfo* theWrappedObject) const; - bool isReadable(QFileInfo* theWrappedObject) const; - bool isRelative(QFileInfo* theWrappedObject) const; - bool isRoot(QFileInfo* theWrappedObject) const; - bool isSymLink(QFileInfo* theWrappedObject) const; - bool isWritable(QFileInfo* theWrappedObject) const; - QDateTime lastModified(QFileInfo* theWrappedObject) const; - QDateTime lastRead(QFileInfo* theWrappedObject) const; - bool makeAbsolute(QFileInfo* theWrappedObject); - bool __ne__(QFileInfo* theWrappedObject, const QFileInfo& fileinfo); - bool __eq__(QFileInfo* theWrappedObject, const QFileInfo& fileinfo); - QString owner(QFileInfo* theWrappedObject) const; - uint ownerId(QFileInfo* theWrappedObject) const; - QString path(QFileInfo* theWrappedObject) const; - bool permission(QFileInfo* theWrappedObject, QFile::Permissions permissions) const; - QFile::Permissions permissions(QFileInfo* theWrappedObject) const; - void refresh(QFileInfo* theWrappedObject); - void setCaching(QFileInfo* theWrappedObject, bool on); - void setFile(QFileInfo* theWrappedObject, const QDir& dir, const QString& file); - void setFile(QFileInfo* theWrappedObject, const QFile& file); - void setFile(QFileInfo* theWrappedObject, const QString& file); - qint64 size(QFileInfo* theWrappedObject) const; - QString suffix(QFileInfo* theWrappedObject) const; - QString symLinkTarget(QFileInfo* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QFileSystemWatcher : public QFileSystemWatcher -{ -public: - PythonQtShell_QFileSystemWatcher(QObject* parent = 0):QFileSystemWatcher(parent),_wrapper(NULL) {}; - PythonQtShell_QFileSystemWatcher(const QStringList& paths, QObject* parent = 0):QFileSystemWatcher(paths, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QFileSystemWatcher : public QObject -{ Q_OBJECT -public: -public slots: -QFileSystemWatcher* new_QFileSystemWatcher(QObject* parent = 0); -QFileSystemWatcher* new_QFileSystemWatcher(const QStringList& paths, QObject* parent = 0); -void delete_QFileSystemWatcher(QFileSystemWatcher* obj) { delete obj; } - void addPath(QFileSystemWatcher* theWrappedObject, const QString& file); - void addPaths(QFileSystemWatcher* theWrappedObject, const QStringList& files); - QStringList directories(QFileSystemWatcher* theWrappedObject) const; - QStringList files(QFileSystemWatcher* theWrappedObject) const; - void removePath(QFileSystemWatcher* theWrappedObject, const QString& file); - void removePaths(QFileSystemWatcher* theWrappedObject, const QStringList& files); -}; - - - - - -class PythonQtShell_QFinalState : public QFinalState -{ -public: - PythonQtShell_QFinalState(QState* parent = 0):QFinalState(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void onEntry(QEvent* event); -virtual void onExit(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFinalState : public QFinalState -{ public: -inline bool promoted_event(QEvent* e) { return QFinalState::event(e); } -inline void promoted_onEntry(QEvent* event) { QFinalState::onEntry(event); } -inline void promoted_onExit(QEvent* event) { QFinalState::onExit(event); } -}; - -class PythonQtWrapper_QFinalState : public QObject -{ Q_OBJECT -public: -public slots: -QFinalState* new_QFinalState(QState* parent = 0); -void delete_QFinalState(QFinalState* obj) { delete obj; } - bool event(QFinalState* theWrappedObject, QEvent* e); - void onEntry(QFinalState* theWrappedObject, QEvent* event); - void onExit(QFinalState* theWrappedObject, QEvent* event); -}; - - - - - -class PythonQtShell_QHistoryState : public QHistoryState -{ -public: - PythonQtShell_QHistoryState(QHistoryState::HistoryType type, QState* parent = 0):QHistoryState(type, parent),_wrapper(NULL) {}; - PythonQtShell_QHistoryState(QState* parent = 0):QHistoryState(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void onEntry(QEvent* event); -virtual void onExit(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QHistoryState : public QHistoryState -{ public: -inline bool promoted_event(QEvent* e) { return QHistoryState::event(e); } -inline void promoted_onEntry(QEvent* event) { QHistoryState::onEntry(event); } -inline void promoted_onExit(QEvent* event) { QHistoryState::onExit(event); } -}; - -class PythonQtWrapper_QHistoryState : public QObject -{ Q_OBJECT -public: -public slots: -QHistoryState* new_QHistoryState(QHistoryState::HistoryType type, QState* parent = 0); -QHistoryState* new_QHistoryState(QState* parent = 0); -void delete_QHistoryState(QHistoryState* obj) { delete obj; } - QAbstractState* defaultState(QHistoryState* theWrappedObject) const; - bool event(QHistoryState* theWrappedObject, QEvent* e); - QHistoryState::HistoryType historyType(QHistoryState* theWrappedObject) const; - void onEntry(QHistoryState* theWrappedObject, QEvent* event); - void onExit(QHistoryState* theWrappedObject, QEvent* event); - void setDefaultState(QHistoryState* theWrappedObject, QAbstractState* state); - void setHistoryType(QHistoryState* theWrappedObject, QHistoryState::HistoryType type); -}; - - - - - -class PythonQtShell_QIODevice : public QIODevice -{ -public: - PythonQtShell_QIODevice():QIODevice(),_wrapper(NULL) {}; - PythonQtShell_QIODevice(QObject* parent):QIODevice(parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode mode); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 pos); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs); -virtual bool waitForReadyRead(int msecs); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QIODevice : public QIODevice -{ public: -inline bool promoted_atEnd() const { return QIODevice::atEnd(); } -inline qint64 promoted_bytesAvailable() const { return QIODevice::bytesAvailable(); } -inline qint64 promoted_bytesToWrite() const { return QIODevice::bytesToWrite(); } -inline bool promoted_canReadLine() const { return QIODevice::canReadLine(); } -inline void promoted_close() { QIODevice::close(); } -inline bool promoted_isSequential() const { return QIODevice::isSequential(); } -inline bool promoted_open(QIODevice::OpenMode mode) { return QIODevice::open(mode); } -inline qint64 promoted_pos() const { return QIODevice::pos(); } -inline qint64 promoted_readLineData(char* data, qint64 maxlen) { return QIODevice::readLineData(data, maxlen); } -inline bool promoted_reset() { return QIODevice::reset(); } -inline bool promoted_seek(qint64 pos) { return QIODevice::seek(pos); } -inline qint64 promoted_size() const { return QIODevice::size(); } -inline bool promoted_waitForBytesWritten(int msecs) { return QIODevice::waitForBytesWritten(msecs); } -inline bool promoted_waitForReadyRead(int msecs) { return QIODevice::waitForReadyRead(msecs); } -}; - -class PythonQtWrapper_QIODevice : public QObject -{ Q_OBJECT -public: -Q_ENUMS(OpenModeFlag ) -Q_FLAGS(OpenMode ) -enum OpenModeFlag{ - NotOpen = QIODevice::NotOpen, ReadOnly = QIODevice::ReadOnly, WriteOnly = QIODevice::WriteOnly, ReadWrite = QIODevice::ReadWrite, Append = QIODevice::Append, Truncate = QIODevice::Truncate, Text = QIODevice::Text, Unbuffered = QIODevice::Unbuffered}; -Q_DECLARE_FLAGS(OpenMode, OpenModeFlag) -public slots: -QIODevice* new_QIODevice(); -QIODevice* new_QIODevice(QObject* parent); -void delete_QIODevice(QIODevice* obj) { delete obj; } - bool atEnd(QIODevice* theWrappedObject) const; - qint64 bytesAvailable(QIODevice* theWrappedObject) const; - qint64 bytesToWrite(QIODevice* theWrappedObject) const; - bool canReadLine(QIODevice* theWrappedObject) const; - void close(QIODevice* theWrappedObject); - QString errorString(QIODevice* theWrappedObject) const; - bool getChar(QIODevice* theWrappedObject, char* c); - bool isOpen(QIODevice* theWrappedObject) const; - bool isReadable(QIODevice* theWrappedObject) const; - bool isSequential(QIODevice* theWrappedObject) const; - bool isTextModeEnabled(QIODevice* theWrappedObject) const; - bool isWritable(QIODevice* theWrappedObject) const; - bool open(QIODevice* theWrappedObject, QIODevice::OpenMode mode); - QIODevice::OpenMode openMode(QIODevice* theWrappedObject) const; - QByteArray peek(QIODevice* theWrappedObject, qint64 maxlen); - qint64 pos(QIODevice* theWrappedObject) const; - bool putChar(QIODevice* theWrappedObject, char c); - QByteArray read(QIODevice* theWrappedObject, qint64 maxlen); - QByteArray readAll(QIODevice* theWrappedObject); - QByteArray readLine(QIODevice* theWrappedObject, qint64 maxlen = 0); - qint64 readLineData(QIODevice* theWrappedObject, char* data, qint64 maxlen); - bool reset(QIODevice* theWrappedObject); - bool seek(QIODevice* theWrappedObject, qint64 pos); - void setTextModeEnabled(QIODevice* theWrappedObject, bool enabled); - qint64 size(QIODevice* theWrappedObject) const; - void ungetChar(QIODevice* theWrappedObject, char c); - bool waitForBytesWritten(QIODevice* theWrappedObject, int msecs); - bool waitForReadyRead(QIODevice* theWrappedObject, int msecs); - qint64 write(QIODevice* theWrappedObject, const QByteArray& data); - qint64 write(QIODevice* theWrappedObject, const char* data); -}; - - - - - -class PythonQtWrapper_QLibraryInfo : public QObject -{ Q_OBJECT -public: -Q_ENUMS(LibraryLocation ) -enum LibraryLocation{ - PrefixPath = QLibraryInfo::PrefixPath, DocumentationPath = QLibraryInfo::DocumentationPath, HeadersPath = QLibraryInfo::HeadersPath, LibrariesPath = QLibraryInfo::LibrariesPath, BinariesPath = QLibraryInfo::BinariesPath, PluginsPath = QLibraryInfo::PluginsPath, DataPath = QLibraryInfo::DataPath, TranslationsPath = QLibraryInfo::TranslationsPath, SettingsPath = QLibraryInfo::SettingsPath, DemosPath = QLibraryInfo::DemosPath, ExamplesPath = QLibraryInfo::ExamplesPath}; -public slots: -void delete_QLibraryInfo(QLibraryInfo* obj) { delete obj; } - QDate static_QLibraryInfo_buildDate(); - QString static_QLibraryInfo_buildKey(); - QString static_QLibraryInfo_licensedProducts(); - QString static_QLibraryInfo_licensee(); - QString static_QLibraryInfo_location(QLibraryInfo::LibraryLocation arg__1); -}; - - - - - -class PythonQtShell_QMimeData : public QMimeData -{ -public: - PythonQtShell_QMimeData():QMimeData(),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QStringList formats() const; -virtual bool hasFormat(const QString& mimetype) const; -virtual QVariant retrieveData(const QString& mimetype, QVariant::Type preferredType) const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMimeData : public QMimeData -{ public: -inline QStringList promoted_formats() const { return QMimeData::formats(); } -inline bool promoted_hasFormat(const QString& mimetype) const { return QMimeData::hasFormat(mimetype); } -inline QVariant promoted_retrieveData(const QString& mimetype, QVariant::Type preferredType) const { return QMimeData::retrieveData(mimetype, preferredType); } -}; - -class PythonQtWrapper_QMimeData : public QObject -{ Q_OBJECT -public: -public slots: -QMimeData* new_QMimeData(); -void delete_QMimeData(QMimeData* obj) { delete obj; } - void clear(QMimeData* theWrappedObject); - QVariant colorData(QMimeData* theWrappedObject) const; - QByteArray data(QMimeData* theWrappedObject, const QString& mimetype) const; - QStringList formats(QMimeData* theWrappedObject) const; - bool hasColor(QMimeData* theWrappedObject) const; - bool hasFormat(QMimeData* theWrappedObject, const QString& mimetype) const; - bool hasHtml(QMimeData* theWrappedObject) const; - bool hasImage(QMimeData* theWrappedObject) const; - bool hasText(QMimeData* theWrappedObject) const; - bool hasUrls(QMimeData* theWrappedObject) const; - QString html(QMimeData* theWrappedObject) const; - QVariant imageData(QMimeData* theWrappedObject) const; - void removeFormat(QMimeData* theWrappedObject, const QString& mimetype); - QVariant retrieveData(QMimeData* theWrappedObject, const QString& mimetype, QVariant::Type preferredType) const; - void setColorData(QMimeData* theWrappedObject, const QVariant& color); - void setData(QMimeData* theWrappedObject, const QString& mimetype, const QByteArray& data); - void setHtml(QMimeData* theWrappedObject, const QString& html); - void setImageData(QMimeData* theWrappedObject, const QVariant& image); - void setText(QMimeData* theWrappedObject, const QString& text); - void setUrls(QMimeData* theWrappedObject, const QList& urls); - QString text(QMimeData* theWrappedObject) const; - QList urls(QMimeData* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QModelIndex : public QObject -{ Q_OBJECT -public: -public slots: -QModelIndex* new_QModelIndex(); -QModelIndex* new_QModelIndex(const QModelIndex& other); -void delete_QModelIndex(QModelIndex* obj) { delete obj; } - QModelIndex child(QModelIndex* theWrappedObject, int row, int column) const; - int column(QModelIndex* theWrappedObject) const; - QVariant data(QModelIndex* theWrappedObject, int role = Qt::DisplayRole) const; - Qt::ItemFlags flags(QModelIndex* theWrappedObject) const; - qint64 internalId(QModelIndex* theWrappedObject) const; - void* internalPointer(QModelIndex* theWrappedObject) const; - bool isValid(QModelIndex* theWrappedObject) const; - const QAbstractItemModel* model(QModelIndex* theWrappedObject) const; - bool __ne__(QModelIndex* theWrappedObject, const QModelIndex& other) const; - bool __lt__(QModelIndex* theWrappedObject, const QModelIndex& other) const; - bool __eq__(QModelIndex* theWrappedObject, const QModelIndex& other) const; - QModelIndex parent(QModelIndex* theWrappedObject) const; - int row(QModelIndex* theWrappedObject) const; - QModelIndex sibling(QModelIndex* theWrappedObject, int row, int column) const; - QString py_toString(QModelIndex*); -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp deleted file mode 100644 index c6a8967c7..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp +++ /dev/null @@ -1,5626 +0,0 @@ -#include "com_trolltech_qt_core1.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QMutex* PythonQtWrapper_QMutex::new_QMutex(QMutex::RecursionMode mode) -{ -return new QMutex(mode); } - -void PythonQtWrapper_QMutex::lock(QMutex* theWrappedObject) -{ - ( theWrappedObject->lock()); -} - -bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject) -{ - return ( theWrappedObject->tryLock()); -} - -bool PythonQtWrapper_QMutex::tryLock(QMutex* theWrappedObject, int timeout) -{ - return ( theWrappedObject->tryLock(timeout)); -} - -void PythonQtWrapper_QMutex::unlock(QMutex* theWrappedObject) -{ - ( theWrappedObject->unlock()); -} - - - -void PythonQtShell_QObject::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QObject::childEvent(arg__1); -} -void PythonQtShell_QObject::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QObject::customEvent(arg__1); -} -bool PythonQtShell_QObject::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QObject::event(arg__1); -} -bool PythonQtShell_QObject::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QObject::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QObject::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QObject::timerEvent(arg__1); -} -QObject* PythonQtWrapper_QObject::new_QObject(QObject* parent) -{ -return new PythonQtShell_QObject(parent); } - -bool PythonQtWrapper_QObject::blockSignals(QObject* theWrappedObject, bool b) -{ - return ( theWrappedObject->blockSignals(b)); -} - -void PythonQtWrapper_QObject::childEvent(QObject* theWrappedObject, QChildEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_childEvent(arg__1)); -} - -const QList* PythonQtWrapper_QObject::children(QObject* theWrappedObject) const -{ - return &( theWrappedObject->children()); -} - -void PythonQtWrapper_QObject::customEvent(QObject* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_customEvent(arg__1)); -} - -void PythonQtWrapper_QObject::dumpObjectInfo(QObject* theWrappedObject) -{ - ( theWrappedObject->dumpObjectInfo()); -} - -void PythonQtWrapper_QObject::dumpObjectTree(QObject* theWrappedObject) -{ - ( theWrappedObject->dumpObjectTree()); -} - -QList PythonQtWrapper_QObject::dynamicPropertyNames(QObject* theWrappedObject) const -{ - return ( theWrappedObject->dynamicPropertyNames()); -} - -bool PythonQtWrapper_QObject::event(QObject* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QObject::eventFilter(QObject* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -void PythonQtWrapper_QObject::installEventFilter(QObject* theWrappedObject, QObject* arg__1) -{ - ( theWrappedObject->installEventFilter(arg__1)); -} - -bool PythonQtWrapper_QObject::isWidgetType(QObject* theWrappedObject) const -{ - return ( theWrappedObject->isWidgetType()); -} - -void PythonQtWrapper_QObject::killTimer(QObject* theWrappedObject, int id) -{ - ( theWrappedObject->killTimer(id)); -} - -void PythonQtWrapper_QObject::moveToThread(QObject* theWrappedObject, QThread* thread) -{ - ( theWrappedObject->moveToThread(thread)); -} - -QString PythonQtWrapper_QObject::objectName(QObject* theWrappedObject) const -{ - return ( theWrappedObject->objectName()); -} - -QObject* PythonQtWrapper_QObject::parent(QObject* theWrappedObject) const -{ - return ( theWrappedObject->parent()); -} - -QVariant PythonQtWrapper_QObject::property(QObject* theWrappedObject, const char* name) const -{ - return ( theWrappedObject->property(name)); -} - -void PythonQtWrapper_QObject::removeEventFilter(QObject* theWrappedObject, QObject* arg__1) -{ - ( theWrappedObject->removeEventFilter(arg__1)); -} - -void PythonQtWrapper_QObject::setObjectName(QObject* theWrappedObject, const QString& name) -{ - ( theWrappedObject->setObjectName(name)); -} - -void PythonQtWrapper_QObject::setParent(QObject* theWrappedObject, QObject* arg__1) -{ - ( theWrappedObject->setParent(arg__1)); -} - -bool PythonQtWrapper_QObject::setProperty(QObject* theWrappedObject, const char* name, const QVariant& value) -{ - return ( theWrappedObject->setProperty(name, value)); -} - -bool PythonQtWrapper_QObject::signalsBlocked(QObject* theWrappedObject) const -{ - return ( theWrappedObject->signalsBlocked()); -} - -int PythonQtWrapper_QObject::startTimer(QObject* theWrappedObject, int interval) -{ - return ( theWrappedObject->startTimer(interval)); -} - -QThread* PythonQtWrapper_QObject::thread(QObject* theWrappedObject) const -{ - return ( theWrappedObject->thread()); -} - -void PythonQtWrapper_QObject::timerEvent(QObject* theWrappedObject, QTimerEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_timerEvent(arg__1)); -} - - - -void PythonQtShell_QParallelAnimationGroup::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QParallelAnimationGroup::childEvent(arg__1); -} -void PythonQtShell_QParallelAnimationGroup::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QParallelAnimationGroup::customEvent(arg__1); -} -int PythonQtShell_QParallelAnimationGroup::duration() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QParallelAnimationGroup::duration(); -} -bool PythonQtShell_QParallelAnimationGroup::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QParallelAnimationGroup::event(event); -} -bool PythonQtShell_QParallelAnimationGroup::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QParallelAnimationGroup::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QParallelAnimationGroup::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QParallelAnimationGroup::timerEvent(arg__1); -} -void PythonQtShell_QParallelAnimationGroup::updateCurrentTime(int currentTime) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)¤tTime}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QParallelAnimationGroup::updateCurrentTime(currentTime); -} -void PythonQtShell_QParallelAnimationGroup::updateDirection(QAbstractAnimation::Direction direction) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&direction}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QParallelAnimationGroup::updateDirection(direction); -} -void PythonQtShell_QParallelAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QParallelAnimationGroup::updateState(newState, oldState); -} -QParallelAnimationGroup* PythonQtWrapper_QParallelAnimationGroup::new_QParallelAnimationGroup(QObject* parent) -{ -return new PythonQtShell_QParallelAnimationGroup(parent); } - -int PythonQtWrapper_QParallelAnimationGroup::duration(QParallelAnimationGroup* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_duration()); -} - -bool PythonQtWrapper_QParallelAnimationGroup::event(QParallelAnimationGroup* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QParallelAnimationGroup::updateCurrentTime(QParallelAnimationGroup* theWrappedObject, int currentTime) -{ - ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_updateCurrentTime(currentTime)); -} - -void PythonQtWrapper_QParallelAnimationGroup::updateDirection(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction) -{ - ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_updateDirection(direction)); -} - -void PythonQtWrapper_QParallelAnimationGroup::updateState(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ - ( ((PythonQtPublicPromoter_QParallelAnimationGroup*)theWrappedObject)->promoted_updateState(newState, oldState)); -} - - - -void PythonQtShell_QPauseAnimation::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPauseAnimation::childEvent(arg__1); -} -void PythonQtShell_QPauseAnimation::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPauseAnimation::customEvent(arg__1); -} -int PythonQtShell_QPauseAnimation::duration() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPauseAnimation::duration(); -} -bool PythonQtShell_QPauseAnimation::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPauseAnimation::event(e); -} -bool PythonQtShell_QPauseAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPauseAnimation::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QPauseAnimation::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPauseAnimation::timerEvent(arg__1); -} -void PythonQtShell_QPauseAnimation::updateCurrentTime(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPauseAnimation::updateCurrentTime(arg__1); -} -void PythonQtShell_QPauseAnimation::updateDirection(QAbstractAnimation::Direction direction) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&direction}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPauseAnimation::updateDirection(direction); -} -void PythonQtShell_QPauseAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPauseAnimation::updateState(newState, oldState); -} -QPauseAnimation* PythonQtWrapper_QPauseAnimation::new_QPauseAnimation(QObject* parent) -{ -return new PythonQtShell_QPauseAnimation(parent); } - -QPauseAnimation* PythonQtWrapper_QPauseAnimation::new_QPauseAnimation(int msecs, QObject* parent) -{ -return new PythonQtShell_QPauseAnimation(msecs, parent); } - -int PythonQtWrapper_QPauseAnimation::duration(QPauseAnimation* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPauseAnimation*)theWrappedObject)->promoted_duration()); -} - -bool PythonQtWrapper_QPauseAnimation::event(QPauseAnimation* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QPauseAnimation*)theWrappedObject)->promoted_event(e)); -} - -void PythonQtWrapper_QPauseAnimation::setDuration(QPauseAnimation* theWrappedObject, int msecs) -{ - ( theWrappedObject->setDuration(msecs)); -} - -void PythonQtWrapper_QPauseAnimation::updateCurrentTime(QPauseAnimation* theWrappedObject, int arg__1) -{ - ( ((PythonQtPublicPromoter_QPauseAnimation*)theWrappedObject)->promoted_updateCurrentTime(arg__1)); -} - - - -bool PythonQtShell_QProcess::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::atEnd(); -} -qint64 PythonQtShell_QProcess::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::bytesAvailable(); -} -qint64 PythonQtShell_QProcess::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::bytesToWrite(); -} -bool PythonQtShell_QProcess::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::canReadLine(); -} -void PythonQtShell_QProcess::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProcess::childEvent(arg__1); -} -void PythonQtShell_QProcess::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProcess::close(); -} -void PythonQtShell_QProcess::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProcess::customEvent(arg__1); -} -bool PythonQtShell_QProcess::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::event(arg__1); -} -bool PythonQtShell_QProcess::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QProcess::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::isSequential(); -} -bool PythonQtShell_QProcess::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::open(mode); -} -qint64 PythonQtShell_QProcess::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::pos(); -} -qint64 PythonQtShell_QProcess::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::readData(data, maxlen); -} -qint64 PythonQtShell_QProcess::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::readLineData(data, maxlen); -} -bool PythonQtShell_QProcess::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::reset(); -} -bool PythonQtShell_QProcess::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::seek(pos); -} -void PythonQtShell_QProcess::setupChildProcess() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupChildProcess"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProcess::setupChildProcess(); -} -qint64 PythonQtShell_QProcess::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::size(); -} -void PythonQtShell_QProcess::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProcess::timerEvent(arg__1); -} -bool PythonQtShell_QProcess::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::waitForBytesWritten(msecs); -} -bool PythonQtShell_QProcess::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QProcess::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProcess::writeData(data, len); -} -QProcess* PythonQtWrapper_QProcess::new_QProcess(QObject* parent) -{ -return new PythonQtShell_QProcess(parent); } - -bool PythonQtWrapper_QProcess::atEnd(QProcess* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_atEnd()); -} - -qint64 PythonQtWrapper_QProcess::bytesAvailable(QProcess* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_bytesAvailable()); -} - -qint64 PythonQtWrapper_QProcess::bytesToWrite(QProcess* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_bytesToWrite()); -} - -bool PythonQtWrapper_QProcess::canReadLine(QProcess* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_canReadLine()); -} - -void PythonQtWrapper_QProcess::close(QProcess* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_close()); -} - -void PythonQtWrapper_QProcess::closeReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel) -{ - ( theWrappedObject->closeReadChannel(channel)); -} - -void PythonQtWrapper_QProcess::closeWriteChannel(QProcess* theWrappedObject) -{ - ( theWrappedObject->closeWriteChannel()); -} - -QStringList PythonQtWrapper_QProcess::environment(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->environment()); -} - -QProcess::ProcessError PythonQtWrapper_QProcess::error(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -int PythonQtWrapper_QProcess::static_QProcess_execute(const QString& program) -{ - return (QProcess::execute(program)); -} - -int PythonQtWrapper_QProcess::static_QProcess_execute(const QString& program, const QStringList& arguments) -{ - return (QProcess::execute(program, arguments)); -} - -int PythonQtWrapper_QProcess::exitCode(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->exitCode()); -} - -QProcess::ExitStatus PythonQtWrapper_QProcess::exitStatus(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->exitStatus()); -} - -bool PythonQtWrapper_QProcess::isSequential(QProcess* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_isSequential()); -} - -QProcess::ProcessChannelMode PythonQtWrapper_QProcess::processChannelMode(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->processChannelMode()); -} - -QProcessEnvironment PythonQtWrapper_QProcess::processEnvironment(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->processEnvironment()); -} - -QByteArray PythonQtWrapper_QProcess::readAllStandardError(QProcess* theWrappedObject) -{ - return ( theWrappedObject->readAllStandardError()); -} - -QByteArray PythonQtWrapper_QProcess::readAllStandardOutput(QProcess* theWrappedObject) -{ - return ( theWrappedObject->readAllStandardOutput()); -} - -QProcess::ProcessChannel PythonQtWrapper_QProcess::readChannel(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->readChannel()); -} - -qint64 PythonQtWrapper_QProcess::readData(QProcess* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_readData(data, maxlen)); -} - -void PythonQtWrapper_QProcess::setEnvironment(QProcess* theWrappedObject, const QStringList& environment) -{ - ( theWrappedObject->setEnvironment(environment)); -} - -void PythonQtWrapper_QProcess::setProcessChannelMode(QProcess* theWrappedObject, QProcess::ProcessChannelMode mode) -{ - ( theWrappedObject->setProcessChannelMode(mode)); -} - -void PythonQtWrapper_QProcess::setProcessEnvironment(QProcess* theWrappedObject, const QProcessEnvironment& environment) -{ - ( theWrappedObject->setProcessEnvironment(environment)); -} - -void PythonQtWrapper_QProcess::setReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel) -{ - ( theWrappedObject->setReadChannel(channel)); -} - -void PythonQtWrapper_QProcess::setStandardErrorFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode) -{ - ( theWrappedObject->setStandardErrorFile(fileName, mode)); -} - -void PythonQtWrapper_QProcess::setStandardInputFile(QProcess* theWrappedObject, const QString& fileName) -{ - ( theWrappedObject->setStandardInputFile(fileName)); -} - -void PythonQtWrapper_QProcess::setStandardOutputFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode) -{ - ( theWrappedObject->setStandardOutputFile(fileName, mode)); -} - -void PythonQtWrapper_QProcess::setStandardOutputProcess(QProcess* theWrappedObject, QProcess* destination) -{ - ( theWrappedObject->setStandardOutputProcess(destination)); -} - -void PythonQtWrapper_QProcess::setWorkingDirectory(QProcess* theWrappedObject, const QString& dir) -{ - ( theWrappedObject->setWorkingDirectory(dir)); -} - -void PythonQtWrapper_QProcess::setupChildProcess(QProcess* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_setupChildProcess()); -} - -void PythonQtWrapper_QProcess::start(QProcess* theWrappedObject, const QString& program, QIODevice::OpenMode mode) -{ - ( theWrappedObject->start(program, mode)); -} - -void PythonQtWrapper_QProcess::start(QProcess* theWrappedObject, const QString& program, const QStringList& arguments, QIODevice::OpenMode mode) -{ - ( theWrappedObject->start(program, arguments, mode)); -} - -bool PythonQtWrapper_QProcess::static_QProcess_startDetached(const QString& program) -{ - return (QProcess::startDetached(program)); -} - -bool PythonQtWrapper_QProcess::static_QProcess_startDetached(const QString& program, const QStringList& arguments) -{ - return (QProcess::startDetached(program, arguments)); -} - -bool PythonQtWrapper_QProcess::static_QProcess_startDetached(const QString& program, const QStringList& arguments, const QString& workingDirectory, qint64* pid) -{ - return (QProcess::startDetached(program, arguments, workingDirectory, pid)); -} - -QProcess::ProcessState PythonQtWrapper_QProcess::state(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -QStringList PythonQtWrapper_QProcess::static_QProcess_systemEnvironment() -{ - return (QProcess::systemEnvironment()); -} - -bool PythonQtWrapper_QProcess::waitForBytesWritten(QProcess* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); -} - -bool PythonQtWrapper_QProcess::waitForFinished(QProcess* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForFinished(msecs)); -} - -bool PythonQtWrapper_QProcess::waitForReadyRead(QProcess* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_waitForReadyRead(msecs)); -} - -bool PythonQtWrapper_QProcess::waitForStarted(QProcess* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForStarted(msecs)); -} - -QString PythonQtWrapper_QProcess::workingDirectory(QProcess* theWrappedObject) const -{ - return ( theWrappedObject->workingDirectory()); -} - -qint64 PythonQtWrapper_QProcess::writeData(QProcess* theWrappedObject, const char* data, qint64 len) -{ - return ( ((PythonQtPublicPromoter_QProcess*)theWrappedObject)->promoted_writeData(data, len)); -} - - - -QProcessEnvironment* PythonQtWrapper_QProcessEnvironment::new_QProcessEnvironment() -{ -return new QProcessEnvironment(); } - -QProcessEnvironment* PythonQtWrapper_QProcessEnvironment::new_QProcessEnvironment(const QProcessEnvironment& other) -{ -return new QProcessEnvironment(other); } - -void PythonQtWrapper_QProcessEnvironment::clear(QProcessEnvironment* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QProcessEnvironment::contains(QProcessEnvironment* theWrappedObject, const QString& name) const -{ - return ( theWrappedObject->contains(name)); -} - -void PythonQtWrapper_QProcessEnvironment::insert(QProcessEnvironment* theWrappedObject, const QString& name, const QString& value) -{ - ( theWrappedObject->insert(name, value)); -} - -bool PythonQtWrapper_QProcessEnvironment::isEmpty(QProcessEnvironment* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QProcessEnvironment::__ne__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const -{ - return ( (*theWrappedObject)!= other); -} - -QProcessEnvironment* PythonQtWrapper_QProcessEnvironment::operator_assign(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) -{ - return &( (*theWrappedObject)= other); -} - -bool PythonQtWrapper_QProcessEnvironment::__eq__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const -{ - return ( (*theWrappedObject)== other); -} - -void PythonQtWrapper_QProcessEnvironment::remove(QProcessEnvironment* theWrappedObject, const QString& name) -{ - ( theWrappedObject->remove(name)); -} - -QProcessEnvironment PythonQtWrapper_QProcessEnvironment::static_QProcessEnvironment_systemEnvironment() -{ - return (QProcessEnvironment::systemEnvironment()); -} - -QStringList PythonQtWrapper_QProcessEnvironment::toStringList(QProcessEnvironment* theWrappedObject) const -{ - return ( theWrappedObject->toStringList()); -} - -QString PythonQtWrapper_QProcessEnvironment::value(QProcessEnvironment* theWrappedObject, const QString& name, const QString& defaultValue) const -{ - return ( theWrappedObject->value(name, defaultValue)); -} - - - -void PythonQtShell_QPropertyAnimation::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPropertyAnimation::childEvent(arg__1); -} -void PythonQtShell_QPropertyAnimation::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPropertyAnimation::customEvent(arg__1); -} -int PythonQtShell_QPropertyAnimation::duration() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPropertyAnimation::duration(); -} -bool PythonQtShell_QPropertyAnimation::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPropertyAnimation::event(event); -} -bool PythonQtShell_QPropertyAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPropertyAnimation::eventFilter(arg__1, arg__2); -} -QVariant PythonQtShell_QPropertyAnimation::interpolated(const QVariant& from, const QVariant& to, qreal progress) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "interpolated"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&" , "const QVariant&" , "qreal"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)&from, (void*)&to, (void*)&progress}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("interpolated", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPropertyAnimation::interpolated(from, to, progress); -} -void PythonQtShell_QPropertyAnimation::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPropertyAnimation::timerEvent(arg__1); -} -void PythonQtShell_QPropertyAnimation::updateCurrentTime(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPropertyAnimation::updateCurrentTime(arg__1); -} -void PythonQtShell_QPropertyAnimation::updateCurrentValue(const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentValue"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPropertyAnimation::updateCurrentValue(value); -} -void PythonQtShell_QPropertyAnimation::updateDirection(QAbstractAnimation::Direction direction) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&direction}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPropertyAnimation::updateDirection(direction); -} -void PythonQtShell_QPropertyAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPropertyAnimation::updateState(newState, oldState); -} -QPropertyAnimation* PythonQtWrapper_QPropertyAnimation::new_QPropertyAnimation(QObject* parent) -{ -return new PythonQtShell_QPropertyAnimation(parent); } - -QPropertyAnimation* PythonQtWrapper_QPropertyAnimation::new_QPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent) -{ -return new PythonQtShell_QPropertyAnimation(target, propertyName, parent); } - -bool PythonQtWrapper_QPropertyAnimation::event(QPropertyAnimation* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QPropertyAnimation*)theWrappedObject)->promoted_event(event)); -} - -QByteArray PythonQtWrapper_QPropertyAnimation::propertyName(QPropertyAnimation* theWrappedObject) const -{ - return ( theWrappedObject->propertyName()); -} - -void PythonQtWrapper_QPropertyAnimation::setPropertyName(QPropertyAnimation* theWrappedObject, const QByteArray& propertyName) -{ - ( theWrappedObject->setPropertyName(propertyName)); -} - -void PythonQtWrapper_QPropertyAnimation::setTargetObject(QPropertyAnimation* theWrappedObject, QObject* target) -{ - ( theWrappedObject->setTargetObject(target)); -} - -QObject* PythonQtWrapper_QPropertyAnimation::targetObject(QPropertyAnimation* theWrappedObject) const -{ - return ( theWrappedObject->targetObject()); -} - -void PythonQtWrapper_QPropertyAnimation::updateCurrentValue(QPropertyAnimation* theWrappedObject, const QVariant& value) -{ - ( ((PythonQtPublicPromoter_QPropertyAnimation*)theWrappedObject)->promoted_updateCurrentValue(value)); -} - -void PythonQtWrapper_QPropertyAnimation::updateState(QPropertyAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ - ( ((PythonQtPublicPromoter_QPropertyAnimation*)theWrappedObject)->promoted_updateState(newState, oldState)); -} - - - -QReadWriteLock* PythonQtWrapper_QReadWriteLock::new_QReadWriteLock() -{ -return new QReadWriteLock(); } - -QReadWriteLock* PythonQtWrapper_QReadWriteLock::new_QReadWriteLock(QReadWriteLock::RecursionMode recursionMode) -{ -return new QReadWriteLock(recursionMode); } - -void PythonQtWrapper_QReadWriteLock::lockForRead(QReadWriteLock* theWrappedObject) -{ - ( theWrappedObject->lockForRead()); -} - -void PythonQtWrapper_QReadWriteLock::lockForWrite(QReadWriteLock* theWrappedObject) -{ - ( theWrappedObject->lockForWrite()); -} - -bool PythonQtWrapper_QReadWriteLock::tryLockForRead(QReadWriteLock* theWrappedObject) -{ - return ( theWrappedObject->tryLockForRead()); -} - -bool PythonQtWrapper_QReadWriteLock::tryLockForRead(QReadWriteLock* theWrappedObject, int timeout) -{ - return ( theWrappedObject->tryLockForRead(timeout)); -} - -bool PythonQtWrapper_QReadWriteLock::tryLockForWrite(QReadWriteLock* theWrappedObject) -{ - return ( theWrappedObject->tryLockForWrite()); -} - -bool PythonQtWrapper_QReadWriteLock::tryLockForWrite(QReadWriteLock* theWrappedObject, int timeout) -{ - return ( theWrappedObject->tryLockForWrite(timeout)); -} - -void PythonQtWrapper_QReadWriteLock::unlock(QReadWriteLock* theWrappedObject) -{ - ( theWrappedObject->unlock()); -} - - - -void PythonQtShell_QRunnable::run() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "run"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QRunnable* PythonQtWrapper_QRunnable::new_QRunnable() -{ -return new PythonQtShell_QRunnable(); } - -bool PythonQtWrapper_QRunnable::autoDelete(QRunnable* theWrappedObject) const -{ - return ( theWrappedObject->autoDelete()); -} - -void PythonQtWrapper_QRunnable::setAutoDelete(QRunnable* theWrappedObject, bool _autoDelete) -{ - ( theWrappedObject->setAutoDelete(_autoDelete)); -} - - - -QSemaphore* PythonQtWrapper_QSemaphore::new_QSemaphore(int n) -{ -return new QSemaphore(n); } - -void PythonQtWrapper_QSemaphore::acquire(QSemaphore* theWrappedObject, int n) -{ - ( theWrappedObject->acquire(n)); -} - -int PythonQtWrapper_QSemaphore::available(QSemaphore* theWrappedObject) const -{ - return ( theWrappedObject->available()); -} - -void PythonQtWrapper_QSemaphore::release(QSemaphore* theWrappedObject, int n) -{ - ( theWrappedObject->release(n)); -} - -bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n) -{ - return ( theWrappedObject->tryAcquire(n)); -} - -bool PythonQtWrapper_QSemaphore::tryAcquire(QSemaphore* theWrappedObject, int n, int timeout) -{ - return ( theWrappedObject->tryAcquire(n, timeout)); -} - - - -void PythonQtShell_QSequentialAnimationGroup::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSequentialAnimationGroup::childEvent(arg__1); -} -void PythonQtShell_QSequentialAnimationGroup::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSequentialAnimationGroup::customEvent(arg__1); -} -int PythonQtShell_QSequentialAnimationGroup::duration() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSequentialAnimationGroup::duration(); -} -bool PythonQtShell_QSequentialAnimationGroup::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSequentialAnimationGroup::event(event); -} -bool PythonQtShell_QSequentialAnimationGroup::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSequentialAnimationGroup::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSequentialAnimationGroup::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSequentialAnimationGroup::timerEvent(arg__1); -} -void PythonQtShell_QSequentialAnimationGroup::updateCurrentTime(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSequentialAnimationGroup::updateCurrentTime(arg__1); -} -void PythonQtShell_QSequentialAnimationGroup::updateDirection(QAbstractAnimation::Direction direction) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&direction}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSequentialAnimationGroup::updateDirection(direction); -} -void PythonQtShell_QSequentialAnimationGroup::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSequentialAnimationGroup::updateState(newState, oldState); -} -QSequentialAnimationGroup* PythonQtWrapper_QSequentialAnimationGroup::new_QSequentialAnimationGroup(QObject* parent) -{ -return new PythonQtShell_QSequentialAnimationGroup(parent); } - -QPauseAnimation* PythonQtWrapper_QSequentialAnimationGroup::addPause(QSequentialAnimationGroup* theWrappedObject, int msecs) -{ - return ( theWrappedObject->addPause(msecs)); -} - -QAbstractAnimation* PythonQtWrapper_QSequentialAnimationGroup::currentAnimation(QSequentialAnimationGroup* theWrappedObject) const -{ - return ( theWrappedObject->currentAnimation()); -} - -int PythonQtWrapper_QSequentialAnimationGroup::duration(QSequentialAnimationGroup* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_duration()); -} - -bool PythonQtWrapper_QSequentialAnimationGroup::event(QSequentialAnimationGroup* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_event(event)); -} - -QPauseAnimation* PythonQtWrapper_QSequentialAnimationGroup::insertPause(QSequentialAnimationGroup* theWrappedObject, int index, int msecs) -{ - return ( theWrappedObject->insertPause(index, msecs)); -} - -void PythonQtWrapper_QSequentialAnimationGroup::updateCurrentTime(QSequentialAnimationGroup* theWrappedObject, int arg__1) -{ - ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_updateCurrentTime(arg__1)); -} - -void PythonQtWrapper_QSequentialAnimationGroup::updateDirection(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction) -{ - ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_updateDirection(direction)); -} - -void PythonQtWrapper_QSequentialAnimationGroup::updateState(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ - ( ((PythonQtPublicPromoter_QSequentialAnimationGroup*)theWrappedObject)->promoted_updateState(newState, oldState)); -} - - - -void PythonQtShell_QSettings::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSettings::childEvent(arg__1); -} -void PythonQtShell_QSettings::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSettings::customEvent(arg__1); -} -bool PythonQtShell_QSettings::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSettings::event(event); -} -bool PythonQtShell_QSettings::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSettings::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSettings::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSettings::timerEvent(arg__1); -} -QSettings* PythonQtWrapper_QSettings::new_QSettings(QObject* parent) -{ -return new PythonQtShell_QSettings(parent); } - -QSettings* PythonQtWrapper_QSettings::new_QSettings(QSettings::Format format, QSettings::Scope scope, const QString& organization, const QString& application, QObject* parent) -{ -return new PythonQtShell_QSettings(format, scope, organization, application, parent); } - -QSettings* PythonQtWrapper_QSettings::new_QSettings(QSettings::Scope scope, const QString& organization, const QString& application, QObject* parent) -{ -return new PythonQtShell_QSettings(scope, organization, application, parent); } - -QSettings* PythonQtWrapper_QSettings::new_QSettings(const QString& fileName, QSettings::Format format, QObject* parent) -{ -return new PythonQtShell_QSettings(fileName, format, parent); } - -QSettings* PythonQtWrapper_QSettings::new_QSettings(const QString& organization, const QString& application, QObject* parent) -{ -return new PythonQtShell_QSettings(organization, application, parent); } - -QStringList PythonQtWrapper_QSettings::allKeys(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->allKeys()); -} - -QString PythonQtWrapper_QSettings::applicationName(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->applicationName()); -} - -void PythonQtWrapper_QSettings::beginGroup(QSettings* theWrappedObject, const QString& prefix) -{ - ( theWrappedObject->beginGroup(prefix)); -} - -int PythonQtWrapper_QSettings::beginReadArray(QSettings* theWrappedObject, const QString& prefix) -{ - return ( theWrappedObject->beginReadArray(prefix)); -} - -void PythonQtWrapper_QSettings::beginWriteArray(QSettings* theWrappedObject, const QString& prefix, int size) -{ - ( theWrappedObject->beginWriteArray(prefix, size)); -} - -QStringList PythonQtWrapper_QSettings::childGroups(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->childGroups()); -} - -QStringList PythonQtWrapper_QSettings::childKeys(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->childKeys()); -} - -void PythonQtWrapper_QSettings::clear(QSettings* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QSettings::contains(QSettings* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->contains(key)); -} - -QSettings::Format PythonQtWrapper_QSettings::static_QSettings_defaultFormat() -{ - return (QSettings::defaultFormat()); -} - -void PythonQtWrapper_QSettings::endArray(QSettings* theWrappedObject) -{ - ( theWrappedObject->endArray()); -} - -void PythonQtWrapper_QSettings::endGroup(QSettings* theWrappedObject) -{ - ( theWrappedObject->endGroup()); -} - -bool PythonQtWrapper_QSettings::event(QSettings* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QSettings*)theWrappedObject)->promoted_event(event)); -} - -bool PythonQtWrapper_QSettings::fallbacksEnabled(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->fallbacksEnabled()); -} - -QString PythonQtWrapper_QSettings::fileName(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QSettings::Format PythonQtWrapper_QSettings::format(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -QString PythonQtWrapper_QSettings::group(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->group()); -} - -QTextCodec* PythonQtWrapper_QSettings::iniCodec(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->iniCodec()); -} - -bool PythonQtWrapper_QSettings::isWritable(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->isWritable()); -} - -QString PythonQtWrapper_QSettings::organizationName(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->organizationName()); -} - -void PythonQtWrapper_QSettings::remove(QSettings* theWrappedObject, const QString& key) -{ - ( theWrappedObject->remove(key)); -} - -QSettings::Scope PythonQtWrapper_QSettings::scope(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->scope()); -} - -void PythonQtWrapper_QSettings::setArrayIndex(QSettings* theWrappedObject, int i) -{ - ( theWrappedObject->setArrayIndex(i)); -} - -void PythonQtWrapper_QSettings::static_QSettings_setDefaultFormat(QSettings::Format format) -{ - (QSettings::setDefaultFormat(format)); -} - -void PythonQtWrapper_QSettings::setFallbacksEnabled(QSettings* theWrappedObject, bool b) -{ - ( theWrappedObject->setFallbacksEnabled(b)); -} - -void PythonQtWrapper_QSettings::setIniCodec(QSettings* theWrappedObject, QTextCodec* codec) -{ - ( theWrappedObject->setIniCodec(codec)); -} - -void PythonQtWrapper_QSettings::setIniCodec(QSettings* theWrappedObject, const char* codecName) -{ - ( theWrappedObject->setIniCodec(codecName)); -} - -void PythonQtWrapper_QSettings::static_QSettings_setPath(QSettings::Format format, QSettings::Scope scope, const QString& path) -{ - (QSettings::setPath(format, scope, path)); -} - -void PythonQtWrapper_QSettings::setValue(QSettings* theWrappedObject, const QString& key, const QVariant& value) -{ - ( theWrappedObject->setValue(key, value)); -} - -QSettings::Status PythonQtWrapper_QSettings::status(QSettings* theWrappedObject) const -{ - return ( theWrappedObject->status()); -} - -void PythonQtWrapper_QSettings::sync(QSettings* theWrappedObject) -{ - ( theWrappedObject->sync()); -} - -QVariant PythonQtWrapper_QSettings::value(QSettings* theWrappedObject, const QString& key, const QVariant& defaultValue) const -{ - return ( theWrappedObject->value(key, defaultValue)); -} - - - -void PythonQtShell_QSignalMapper::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSignalMapper::childEvent(arg__1); -} -void PythonQtShell_QSignalMapper::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSignalMapper::customEvent(arg__1); -} -bool PythonQtShell_QSignalMapper::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSignalMapper::event(arg__1); -} -bool PythonQtShell_QSignalMapper::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSignalMapper::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSignalMapper::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSignalMapper::timerEvent(arg__1); -} -QSignalMapper* PythonQtWrapper_QSignalMapper::new_QSignalMapper(QObject* parent) -{ -return new PythonQtShell_QSignalMapper(parent); } - -QObject* PythonQtWrapper_QSignalMapper::mapping(QSignalMapper* theWrappedObject, QObject* object) const -{ - return ( theWrappedObject->mapping(object)); -} - -QObject* PythonQtWrapper_QSignalMapper::mapping(QSignalMapper* theWrappedObject, const QString& text) const -{ - return ( theWrappedObject->mapping(text)); -} - -QObject* PythonQtWrapper_QSignalMapper::mapping(QSignalMapper* theWrappedObject, int id) const -{ - return ( theWrappedObject->mapping(id)); -} - -void PythonQtWrapper_QSignalMapper::removeMappings(QSignalMapper* theWrappedObject, QObject* sender) -{ - ( theWrappedObject->removeMappings(sender)); -} - -void PythonQtWrapper_QSignalMapper::setMapping(QSignalMapper* theWrappedObject, QObject* sender, QObject* object) -{ - ( theWrappedObject->setMapping(sender, object)); -} - -void PythonQtWrapper_QSignalMapper::setMapping(QSignalMapper* theWrappedObject, QObject* sender, const QString& text) -{ - ( theWrappedObject->setMapping(sender, text)); -} - -void PythonQtWrapper_QSignalMapper::setMapping(QSignalMapper* theWrappedObject, QObject* sender, int id) -{ - ( theWrappedObject->setMapping(sender, id)); -} - - - -void PythonQtShell_QSignalTransition::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSignalTransition::childEvent(arg__1); -} -void PythonQtShell_QSignalTransition::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSignalTransition::customEvent(arg__1); -} -bool PythonQtShell_QSignalTransition::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSignalTransition::event(e); -} -bool PythonQtShell_QSignalTransition::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSignalTransition::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QSignalTransition::eventTest(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSignalTransition::eventTest(event); -} -void PythonQtShell_QSignalTransition::onTransition(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSignalTransition::onTransition(event); -} -void PythonQtShell_QSignalTransition::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSignalTransition::timerEvent(arg__1); -} -QSignalTransition* PythonQtWrapper_QSignalTransition::new_QSignalTransition(QObject* sender, const char* signal, QState* sourceState) -{ -return new PythonQtShell_QSignalTransition(sender, signal, sourceState); } - -QSignalTransition* PythonQtWrapper_QSignalTransition::new_QSignalTransition(QState* sourceState) -{ -return new PythonQtShell_QSignalTransition(sourceState); } - -bool PythonQtWrapper_QSignalTransition::event(QSignalTransition* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QSignalTransition*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QSignalTransition::eventTest(QSignalTransition* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QSignalTransition*)theWrappedObject)->promoted_eventTest(event)); -} - -void PythonQtWrapper_QSignalTransition::onTransition(QSignalTransition* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QSignalTransition*)theWrappedObject)->promoted_onTransition(event)); -} - -QObject* PythonQtWrapper_QSignalTransition::senderObject(QSignalTransition* theWrappedObject) const -{ - return ( theWrappedObject->senderObject()); -} - -void PythonQtWrapper_QSignalTransition::setSenderObject(QSignalTransition* theWrappedObject, QObject* sender) -{ - ( theWrappedObject->setSenderObject(sender)); -} - -void PythonQtWrapper_QSignalTransition::setSignal(QSignalTransition* theWrappedObject, const QByteArray& signal) -{ - ( theWrappedObject->setSignal(signal)); -} - -QByteArray PythonQtWrapper_QSignalTransition::signal(QSignalTransition* theWrappedObject) const -{ - return ( theWrappedObject->signal()); -} - - - -void PythonQtShell_QSocketNotifier::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSocketNotifier::childEvent(arg__1); -} -void PythonQtShell_QSocketNotifier::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSocketNotifier::customEvent(arg__1); -} -bool PythonQtShell_QSocketNotifier::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSocketNotifier::event(arg__1); -} -bool PythonQtShell_QSocketNotifier::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSocketNotifier::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSocketNotifier::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSocketNotifier::timerEvent(arg__1); -} -QSocketNotifier* PythonQtWrapper_QSocketNotifier::new_QSocketNotifier(int socket, QSocketNotifier::Type arg__2, QObject* parent) -{ -return new PythonQtShell_QSocketNotifier(socket, arg__2, parent); } - -bool PythonQtWrapper_QSocketNotifier::event(QSocketNotifier* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QSocketNotifier*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QSocketNotifier::isEnabled(QSocketNotifier* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -int PythonQtWrapper_QSocketNotifier::socket(QSocketNotifier* theWrappedObject) const -{ - return ( theWrappedObject->socket()); -} - -QSocketNotifier::Type PythonQtWrapper_QSocketNotifier::type(QSocketNotifier* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -void PythonQtShell_QState::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QState::childEvent(arg__1); -} -void PythonQtShell_QState::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QState::customEvent(arg__1); -} -bool PythonQtShell_QState::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QState::event(e); -} -bool PythonQtShell_QState::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QState::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QState::onEntry(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QState::onEntry(event); -} -void PythonQtShell_QState::onExit(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QState::onExit(event); -} -void PythonQtShell_QState::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QState::timerEvent(arg__1); -} -QState* PythonQtWrapper_QState::new_QState(QState* parent) -{ -return new PythonQtShell_QState(parent); } - -QState* PythonQtWrapper_QState::new_QState(QState::ChildMode childMode, QState* parent) -{ -return new PythonQtShell_QState(childMode, parent); } - -QAbstractTransition* PythonQtWrapper_QState::addTransition(QState* theWrappedObject, QAbstractState* target) -{ - return ( theWrappedObject->addTransition(target)); -} - -void PythonQtWrapper_QState::addTransition(QState* theWrappedObject, QAbstractTransition* transition) -{ - ( theWrappedObject->addTransition(transition)); -} - -QSignalTransition* PythonQtWrapper_QState::addTransition(QState* theWrappedObject, QObject* sender, const char* signal, QAbstractState* target) -{ - return ( theWrappedObject->addTransition(sender, signal, target)); -} - -void PythonQtWrapper_QState::assignProperty(QState* theWrappedObject, QObject* object, const char* name, const QVariant& value) -{ - ( theWrappedObject->assignProperty(object, name, value)); -} - -QState::ChildMode PythonQtWrapper_QState::childMode(QState* theWrappedObject) const -{ - return ( theWrappedObject->childMode()); -} - -QAbstractState* PythonQtWrapper_QState::errorState(QState* theWrappedObject) const -{ - return ( theWrappedObject->errorState()); -} - -bool PythonQtWrapper_QState::event(QState* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QState*)theWrappedObject)->promoted_event(e)); -} - -QAbstractState* PythonQtWrapper_QState::initialState(QState* theWrappedObject) const -{ - return ( theWrappedObject->initialState()); -} - -void PythonQtWrapper_QState::onEntry(QState* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QState*)theWrappedObject)->promoted_onEntry(event)); -} - -void PythonQtWrapper_QState::onExit(QState* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QState*)theWrappedObject)->promoted_onExit(event)); -} - -void PythonQtWrapper_QState::removeTransition(QState* theWrappedObject, QAbstractTransition* transition) -{ - ( theWrappedObject->removeTransition(transition)); -} - -void PythonQtWrapper_QState::setChildMode(QState* theWrappedObject, QState::ChildMode mode) -{ - ( theWrappedObject->setChildMode(mode)); -} - -void PythonQtWrapper_QState::setErrorState(QState* theWrappedObject, QAbstractState* state) -{ - ( theWrappedObject->setErrorState(state)); -} - -void PythonQtWrapper_QState::setInitialState(QState* theWrappedObject, QAbstractState* state) -{ - ( theWrappedObject->setInitialState(state)); -} - - - -void PythonQtShell_QStateMachine::beginMicrostep(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beginMicrostep"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::beginMicrostep(event); -} -void PythonQtShell_QStateMachine::beginSelectTransitions(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beginSelectTransitions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::beginSelectTransitions(event); -} -void PythonQtShell_QStateMachine::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::childEvent(arg__1); -} -void PythonQtShell_QStateMachine::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::customEvent(arg__1); -} -void PythonQtShell_QStateMachine::endMicrostep(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endMicrostep"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::endMicrostep(event); -} -void PythonQtShell_QStateMachine::endSelectTransitions(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "endSelectTransitions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::endSelectTransitions(event); -} -bool PythonQtShell_QStateMachine::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStateMachine::event(e); -} -bool PythonQtShell_QStateMachine::eventFilter(QObject* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStateMachine::eventFilter(watched, event); -} -void PythonQtShell_QStateMachine::onEntry(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onEntry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::onEntry(event); -} -void PythonQtShell_QStateMachine::onExit(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onExit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::onExit(event); -} -void PythonQtShell_QStateMachine::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStateMachine::timerEvent(arg__1); -} -QStateMachine* PythonQtWrapper_QStateMachine::new_QStateMachine(QObject* parent) -{ -return new PythonQtShell_QStateMachine(parent); } - -void PythonQtWrapper_QStateMachine::addDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation) -{ - ( theWrappedObject->addDefaultAnimation(animation)); -} - -void PythonQtWrapper_QStateMachine::addState(QStateMachine* theWrappedObject, QAbstractState* state) -{ - ( theWrappedObject->addState(state)); -} - -void PythonQtWrapper_QStateMachine::beginMicrostep(QStateMachine* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_beginMicrostep(event)); -} - -void PythonQtWrapper_QStateMachine::beginSelectTransitions(QStateMachine* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_beginSelectTransitions(event)); -} - -bool PythonQtWrapper_QStateMachine::cancelDelayedEvent(QStateMachine* theWrappedObject, int id) -{ - return ( theWrappedObject->cancelDelayedEvent(id)); -} - -void PythonQtWrapper_QStateMachine::clearError(QStateMachine* theWrappedObject) -{ - ( theWrappedObject->clearError()); -} - -QSet PythonQtWrapper_QStateMachine::configuration(QStateMachine* theWrappedObject) const -{ - return ( theWrappedObject->configuration()); -} - -QList PythonQtWrapper_QStateMachine::defaultAnimations(QStateMachine* theWrappedObject) const -{ - return ( theWrappedObject->defaultAnimations()); -} - -void PythonQtWrapper_QStateMachine::endMicrostep(QStateMachine* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_endMicrostep(event)); -} - -void PythonQtWrapper_QStateMachine::endSelectTransitions(QStateMachine* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_endSelectTransitions(event)); -} - -QStateMachine::Error PythonQtWrapper_QStateMachine::error(QStateMachine* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -QString PythonQtWrapper_QStateMachine::errorString(QStateMachine* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -bool PythonQtWrapper_QStateMachine::event(QStateMachine* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QStateMachine::eventFilter(QStateMachine* theWrappedObject, QObject* watched, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_eventFilter(watched, event)); -} - -QStateMachine::RestorePolicy PythonQtWrapper_QStateMachine::globalRestorePolicy(QStateMachine* theWrappedObject) const -{ - return ( theWrappedObject->globalRestorePolicy()); -} - -bool PythonQtWrapper_QStateMachine::isAnimated(QStateMachine* theWrappedObject) const -{ - return ( theWrappedObject->isAnimated()); -} - -bool PythonQtWrapper_QStateMachine::isRunning(QStateMachine* theWrappedObject) const -{ - return ( theWrappedObject->isRunning()); -} - -void PythonQtWrapper_QStateMachine::onEntry(QStateMachine* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_onEntry(event)); -} - -void PythonQtWrapper_QStateMachine::onExit(QStateMachine* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QStateMachine*)theWrappedObject)->promoted_onExit(event)); -} - -int PythonQtWrapper_QStateMachine::postDelayedEvent(QStateMachine* theWrappedObject, QEvent* event, int delay) -{ - return ( theWrappedObject->postDelayedEvent(event, delay)); -} - -void PythonQtWrapper_QStateMachine::postEvent(QStateMachine* theWrappedObject, QEvent* event, QStateMachine::EventPriority priority) -{ - ( theWrappedObject->postEvent(event, priority)); -} - -void PythonQtWrapper_QStateMachine::removeDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation) -{ - ( theWrappedObject->removeDefaultAnimation(animation)); -} - -void PythonQtWrapper_QStateMachine::removeState(QStateMachine* theWrappedObject, QAbstractState* state) -{ - ( theWrappedObject->removeState(state)); -} - -void PythonQtWrapper_QStateMachine::setAnimated(QStateMachine* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setAnimated(enabled)); -} - -void PythonQtWrapper_QStateMachine::setGlobalRestorePolicy(QStateMachine* theWrappedObject, QStateMachine::RestorePolicy restorePolicy) -{ - ( theWrappedObject->setGlobalRestorePolicy(restorePolicy)); -} - - - -QStateMachine::SignalEvent* PythonQtWrapper_QStateMachine_SignalEvent::new_QStateMachine_SignalEvent(QObject* sender, int signalIndex, const QList& arguments) -{ -return new QStateMachine::SignalEvent(sender, signalIndex, arguments); } - -QList PythonQtWrapper_QStateMachine_SignalEvent::arguments(QStateMachine::SignalEvent* theWrappedObject) const -{ - return ( theWrappedObject->arguments()); -} - -QObject* PythonQtWrapper_QStateMachine_SignalEvent::sender(QStateMachine::SignalEvent* theWrappedObject) const -{ - return ( theWrappedObject->sender()); -} - -int PythonQtWrapper_QStateMachine_SignalEvent::signalIndex(QStateMachine::SignalEvent* theWrappedObject) const -{ - return ( theWrappedObject->signalIndex()); -} - - - -QStateMachine::WrappedEvent* PythonQtWrapper_QStateMachine_WrappedEvent::new_QStateMachine_WrappedEvent(QObject* object, QEvent* event) -{ -return new QStateMachine::WrappedEvent(object, event); } - -QEvent* PythonQtWrapper_QStateMachine_WrappedEvent::event(QStateMachine::WrappedEvent* theWrappedObject) const -{ - return ( theWrappedObject->event()); -} - -QObject* PythonQtWrapper_QStateMachine_WrappedEvent::object(QStateMachine::WrappedEvent* theWrappedObject) const -{ - return ( theWrappedObject->object()); -} - - - -QStringMatcher* PythonQtWrapper_QStringMatcher::new_QStringMatcher() -{ -return new QStringMatcher(); } - -QStringMatcher* PythonQtWrapper_QStringMatcher::new_QStringMatcher(const QString& pattern, Qt::CaseSensitivity cs) -{ -return new QStringMatcher(pattern, cs); } - -QStringMatcher* PythonQtWrapper_QStringMatcher::new_QStringMatcher(const QStringMatcher& other) -{ -return new QStringMatcher(other); } - -Qt::CaseSensitivity PythonQtWrapper_QStringMatcher::caseSensitivity(QStringMatcher* theWrappedObject) const -{ - return ( theWrappedObject->caseSensitivity()); -} - -int PythonQtWrapper_QStringMatcher::indexIn(QStringMatcher* theWrappedObject, const QString& str, int from) const -{ - return ( theWrappedObject->indexIn(str, from)); -} - -QString PythonQtWrapper_QStringMatcher::pattern(QStringMatcher* theWrappedObject) const -{ - return ( theWrappedObject->pattern()); -} - -void PythonQtWrapper_QStringMatcher::setCaseSensitivity(QStringMatcher* theWrappedObject, Qt::CaseSensitivity cs) -{ - ( theWrappedObject->setCaseSensitivity(cs)); -} - -void PythonQtWrapper_QStringMatcher::setPattern(QStringMatcher* theWrappedObject, const QString& pattern) -{ - ( theWrappedObject->setPattern(pattern)); -} - - - -QSystemSemaphore* PythonQtWrapper_QSystemSemaphore::new_QSystemSemaphore(const QString& key, int initialValue, QSystemSemaphore::AccessMode mode) -{ -return new QSystemSemaphore(key, initialValue, mode); } - -bool PythonQtWrapper_QSystemSemaphore::acquire(QSystemSemaphore* theWrappedObject) -{ - return ( theWrappedObject->acquire()); -} - -QSystemSemaphore::SystemSemaphoreError PythonQtWrapper_QSystemSemaphore::error(QSystemSemaphore* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -QString PythonQtWrapper_QSystemSemaphore::errorString(QSystemSemaphore* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -QString PythonQtWrapper_QSystemSemaphore::key(QSystemSemaphore* theWrappedObject) const -{ - return ( theWrappedObject->key()); -} - -bool PythonQtWrapper_QSystemSemaphore::release(QSystemSemaphore* theWrappedObject, int n) -{ - return ( theWrappedObject->release(n)); -} - -void PythonQtWrapper_QSystemSemaphore::setKey(QSystemSemaphore* theWrappedObject, const QString& key, int initialValue, QSystemSemaphore::AccessMode mode) -{ - ( theWrappedObject->setKey(key, initialValue, mode)); -} - - - -bool PythonQtShell_QTemporaryFile::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::atEnd(); -} -qint64 PythonQtShell_QTemporaryFile::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::bytesAvailable(); -} -qint64 PythonQtShell_QTemporaryFile::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::bytesToWrite(); -} -bool PythonQtShell_QTemporaryFile::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::canReadLine(); -} -void PythonQtShell_QTemporaryFile::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTemporaryFile::childEvent(arg__1); -} -void PythonQtShell_QTemporaryFile::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTemporaryFile::close(); -} -void PythonQtShell_QTemporaryFile::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTemporaryFile::customEvent(arg__1); -} -bool PythonQtShell_QTemporaryFile::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::event(arg__1); -} -bool PythonQtShell_QTemporaryFile::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::eventFilter(arg__1, arg__2); -} -QAbstractFileEngine* PythonQtShell_QTemporaryFile::fileEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fileEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractFileEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractFileEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("fileEngine", methodInfo, result); - } else { - returnValue = *((QAbstractFileEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::fileEngine(); -} -bool PythonQtShell_QTemporaryFile::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::isSequential(); -} -bool PythonQtShell_QTemporaryFile::open(QIODevice::OpenMode flags) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::open(flags); -} -qint64 PythonQtShell_QTemporaryFile::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::pos(); -} -qint64 PythonQtShell_QTemporaryFile::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::readData(data, maxlen); -} -qint64 PythonQtShell_QTemporaryFile::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::readLineData(data, maxlen); -} -bool PythonQtShell_QTemporaryFile::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::reset(); -} -bool PythonQtShell_QTemporaryFile::seek(qint64 offset) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&offset}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::seek(offset); -} -qint64 PythonQtShell_QTemporaryFile::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::size(); -} -void PythonQtShell_QTemporaryFile::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTemporaryFile::timerEvent(arg__1); -} -bool PythonQtShell_QTemporaryFile::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::waitForBytesWritten(msecs); -} -bool PythonQtShell_QTemporaryFile::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QTemporaryFile::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTemporaryFile::writeData(data, len); -} -QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile() -{ -return new PythonQtShell_QTemporaryFile(); } - -QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile(QObject* parent) -{ -return new PythonQtShell_QTemporaryFile(parent); } - -QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile(const QString& templateName) -{ -return new PythonQtShell_QTemporaryFile(templateName); } - -QTemporaryFile* PythonQtWrapper_QTemporaryFile::new_QTemporaryFile(const QString& templateName, QObject* parent) -{ -return new PythonQtShell_QTemporaryFile(templateName, parent); } - -bool PythonQtWrapper_QTemporaryFile::autoRemove(QTemporaryFile* theWrappedObject) const -{ - return ( theWrappedObject->autoRemove()); -} - -QTemporaryFile* PythonQtWrapper_QTemporaryFile::static_QTemporaryFile_createLocalFile(QFile& file) -{ - return (QTemporaryFile::createLocalFile(file)); -} - -QTemporaryFile* PythonQtWrapper_QTemporaryFile::static_QTemporaryFile_createLocalFile(const QString& fileName) -{ - return (QTemporaryFile::createLocalFile(fileName)); -} - -QAbstractFileEngine* PythonQtWrapper_QTemporaryFile::fileEngine(QTemporaryFile* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTemporaryFile*)theWrappedObject)->promoted_fileEngine()); -} - -QString PythonQtWrapper_QTemporaryFile::fileName(QTemporaryFile* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QString PythonQtWrapper_QTemporaryFile::fileTemplate(QTemporaryFile* theWrappedObject) const -{ - return ( theWrappedObject->fileTemplate()); -} - -bool PythonQtWrapper_QTemporaryFile::open(QTemporaryFile* theWrappedObject) -{ - return ( theWrappedObject->open()); -} - -bool PythonQtWrapper_QTemporaryFile::open(QTemporaryFile* theWrappedObject, QIODevice::OpenMode flags) -{ - return ( ((PythonQtPublicPromoter_QTemporaryFile*)theWrappedObject)->promoted_open(flags)); -} - -void PythonQtWrapper_QTemporaryFile::setAutoRemove(QTemporaryFile* theWrappedObject, bool b) -{ - ( theWrappedObject->setAutoRemove(b)); -} - -void PythonQtWrapper_QTemporaryFile::setFileTemplate(QTemporaryFile* theWrappedObject, const QString& name) -{ - ( theWrappedObject->setFileTemplate(name)); -} - - - -QTextBoundaryFinder* PythonQtWrapper_QTextBoundaryFinder::new_QTextBoundaryFinder() -{ -return new QTextBoundaryFinder(); } - -QTextBoundaryFinder* PythonQtWrapper_QTextBoundaryFinder::new_QTextBoundaryFinder(QTextBoundaryFinder::BoundaryType type, const QString& string) -{ -return new QTextBoundaryFinder(type, string); } - -QTextBoundaryFinder* PythonQtWrapper_QTextBoundaryFinder::new_QTextBoundaryFinder(const QTextBoundaryFinder& other) -{ -return new QTextBoundaryFinder(other); } - -QTextBoundaryFinder::BoundaryReasons PythonQtWrapper_QTextBoundaryFinder::boundaryReasons(QTextBoundaryFinder* theWrappedObject) const -{ - return ( theWrappedObject->boundaryReasons()); -} - -bool PythonQtWrapper_QTextBoundaryFinder::isAtBoundary(QTextBoundaryFinder* theWrappedObject) const -{ - return ( theWrappedObject->isAtBoundary()); -} - -bool PythonQtWrapper_QTextBoundaryFinder::isValid(QTextBoundaryFinder* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -int PythonQtWrapper_QTextBoundaryFinder::position(QTextBoundaryFinder* theWrappedObject) const -{ - return ( theWrappedObject->position()); -} - -void PythonQtWrapper_QTextBoundaryFinder::setPosition(QTextBoundaryFinder* theWrappedObject, int position) -{ - ( theWrappedObject->setPosition(position)); -} - -QString PythonQtWrapper_QTextBoundaryFinder::string(QTextBoundaryFinder* theWrappedObject) const -{ - return ( theWrappedObject->string()); -} - -void PythonQtWrapper_QTextBoundaryFinder::toEnd(QTextBoundaryFinder* theWrappedObject) -{ - ( theWrappedObject->toEnd()); -} - -int PythonQtWrapper_QTextBoundaryFinder::toNextBoundary(QTextBoundaryFinder* theWrappedObject) -{ - return ( theWrappedObject->toNextBoundary()); -} - -int PythonQtWrapper_QTextBoundaryFinder::toPreviousBoundary(QTextBoundaryFinder* theWrappedObject) -{ - return ( theWrappedObject->toPreviousBoundary()); -} - -void PythonQtWrapper_QTextBoundaryFinder::toStart(QTextBoundaryFinder* theWrappedObject) -{ - ( theWrappedObject->toStart()); -} - -QTextBoundaryFinder::BoundaryType PythonQtWrapper_QTextBoundaryFinder::type(QTextBoundaryFinder* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -QList PythonQtShell_QTextCodec::aliases() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "aliases"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("aliases", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextCodec::aliases(); -} -QByteArray PythonQtShell_QTextCodec::convertFromUnicode(const QChar* in, int length, QTextCodec::ConverterState* state) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "convertFromUnicode"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QByteArray" , "const QChar*" , "int" , "QTextCodec::ConverterState*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QByteArray returnValue; - void* args[4] = {NULL, (void*)&in, (void*)&length, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("convertFromUnicode", methodInfo, result); - } else { - returnValue = *((QByteArray*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QByteArray(); -} -QString PythonQtShell_QTextCodec::convertToUnicode(const char* in, int length, QTextCodec::ConverterState* state) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "convertToUnicode"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const char*" , "int" , "QTextCodec::ConverterState*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&in, (void*)&length, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("convertToUnicode", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -int PythonQtShell_QTextCodec::mibEnum() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mibEnum"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mibEnum", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QByteArray PythonQtShell_QTextCodec::name() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QByteArray"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QByteArray returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("name", methodInfo, result); - } else { - returnValue = *((QByteArray*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QByteArray(); -} -QList PythonQtWrapper_QTextCodec::aliases(QTextCodec* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTextCodec*)theWrappedObject)->promoted_aliases()); -} - -QList PythonQtWrapper_QTextCodec::static_QTextCodec_availableCodecs() -{ - return (QTextCodec::availableCodecs()); -} - -QList PythonQtWrapper_QTextCodec::static_QTextCodec_availableMibs() -{ - return (QTextCodec::availableMibs()); -} - -bool PythonQtWrapper_QTextCodec::canEncode(QTextCodec* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->canEncode(arg__1)); -} - -bool PythonQtWrapper_QTextCodec::canEncode(QTextCodec* theWrappedObject, const QString& arg__1) const -{ - return ( theWrappedObject->canEncode(arg__1)); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForCStrings() -{ - return (QTextCodec::codecForCStrings()); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForHtml(const QByteArray& ba) -{ - return (QTextCodec::codecForHtml(ba)); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForHtml(const QByteArray& ba, QTextCodec* defaultCodec) -{ - return (QTextCodec::codecForHtml(ba, defaultCodec)); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForLocale() -{ - return (QTextCodec::codecForLocale()); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForMib(int mib) -{ - return (QTextCodec::codecForMib(mib)); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForName(const QByteArray& name) -{ - return (QTextCodec::codecForName(name)); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForName(const char* name) -{ - return (QTextCodec::codecForName(name)); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForUtfText(const QByteArray& ba) -{ - return (QTextCodec::codecForUtfText(ba)); -} - -QTextCodec* PythonQtWrapper_QTextCodec::static_QTextCodec_codecForUtfText(const QByteArray& ba, QTextCodec* defaultCodec) -{ - return (QTextCodec::codecForUtfText(ba, defaultCodec)); -} - -QByteArray PythonQtWrapper_QTextCodec::fromUnicode(QTextCodec* theWrappedObject, const QString& uc) const -{ - return ( theWrappedObject->fromUnicode(uc)); -} - -QTextDecoder* PythonQtWrapper_QTextCodec::makeDecoder(QTextCodec* theWrappedObject) const -{ - return ( theWrappedObject->makeDecoder()); -} - -QTextEncoder* PythonQtWrapper_QTextCodec::makeEncoder(QTextCodec* theWrappedObject) const -{ - return ( theWrappedObject->makeEncoder()); -} - -void PythonQtWrapper_QTextCodec::static_QTextCodec_setCodecForCStrings(QTextCodec* c) -{ - (QTextCodec::setCodecForCStrings(c)); -} - -void PythonQtWrapper_QTextCodec::static_QTextCodec_setCodecForLocale(QTextCodec* c) -{ - (QTextCodec::setCodecForLocale(c)); -} - -void PythonQtWrapper_QTextCodec::static_QTextCodec_setCodecForTr(QTextCodec* c) -{ - (QTextCodec::setCodecForTr(c)); -} - -QString PythonQtWrapper_QTextCodec::toUnicode(QTextCodec* theWrappedObject, const QByteArray& arg__1) const -{ - return ( theWrappedObject->toUnicode(arg__1)); -} - - - -QTextDecoder* PythonQtWrapper_QTextDecoder::new_QTextDecoder(const QTextCodec* codec) -{ -return new QTextDecoder(codec); } - -bool PythonQtWrapper_QTextDecoder::hasFailure(QTextDecoder* theWrappedObject) const -{ - return ( theWrappedObject->hasFailure()); -} - -QString PythonQtWrapper_QTextDecoder::toUnicode(QTextDecoder* theWrappedObject, const QByteArray& ba) -{ - return ( theWrappedObject->toUnicode(ba)); -} - - - -QTextEncoder* PythonQtWrapper_QTextEncoder::new_QTextEncoder(const QTextCodec* codec) -{ -return new QTextEncoder(codec); } - -QByteArray PythonQtWrapper_QTextEncoder::fromUnicode(QTextEncoder* theWrappedObject, const QString& str) -{ - return ( theWrappedObject->fromUnicode(str)); -} - -bool PythonQtWrapper_QTextEncoder::hasFailure(QTextEncoder* theWrappedObject) const -{ - return ( theWrappedObject->hasFailure()); -} - - - -QTextStream* PythonQtWrapper_QTextStream::new_QTextStream() -{ -return new PythonQtShell_QTextStream(); } - -QTextStream* PythonQtWrapper_QTextStream::new_QTextStream(QIODevice* device) -{ -return new PythonQtShell_QTextStream(device); } - -QTextStream* PythonQtWrapper_QTextStream::new_QTextStream(const QByteArray& array, QIODevice::OpenMode openMode) -{ -return new PythonQtShell_QTextStream(array, openMode); } - -bool PythonQtWrapper_QTextStream::atEnd(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->atEnd()); -} - -bool PythonQtWrapper_QTextStream::autoDetectUnicode(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->autoDetectUnicode()); -} - -QTextCodec* PythonQtWrapper_QTextStream::codec(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->codec()); -} - -QIODevice* PythonQtWrapper_QTextStream::device(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -QTextStream::FieldAlignment PythonQtWrapper_QTextStream::fieldAlignment(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->fieldAlignment()); -} - -int PythonQtWrapper_QTextStream::fieldWidth(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->fieldWidth()); -} - -void PythonQtWrapper_QTextStream::flush(QTextStream* theWrappedObject) -{ - ( theWrappedObject->flush()); -} - -bool PythonQtWrapper_QTextStream::generateByteOrderMark(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->generateByteOrderMark()); -} - -int PythonQtWrapper_QTextStream::integerBase(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->integerBase()); -} - -QLocale PythonQtWrapper_QTextStream::locale(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->locale()); -} - -QTextStream::NumberFlags PythonQtWrapper_QTextStream::numberFlags(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->numberFlags()); -} - -QTextStream* PythonQtWrapper_QTextStream::writeBoolean(QTextStream* theWrappedObject, QBool b) -{ - return &( (*theWrappedObject) <>ch); -} - -QTextStream* PythonQtWrapper_QTextStream::readDouble(QTextStream* theWrappedObject, double& f) -{ - return &( (*theWrappedObject) >>f); -} - -QTextStream* PythonQtWrapper_QTextStream::readFloat(QTextStream* theWrappedObject, float& f) -{ - return &( (*theWrappedObject) >>f); -} - -QTextStream* PythonQtWrapper_QTextStream::readLongLong(QTextStream* theWrappedObject, qlonglong& i) -{ - return &( (*theWrappedObject) >>i); -} - -QTextStream* PythonQtWrapper_QTextStream::readInt(QTextStream* theWrappedObject, signed int& i) -{ - return &( (*theWrappedObject) >>i); -} - -QTextStream* PythonQtWrapper_QTextStream::readShort(QTextStream* theWrappedObject, signed short& i) -{ - return &( (*theWrappedObject) >>i); -} - -QChar PythonQtWrapper_QTextStream::padChar(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->padChar()); -} - -qint64 PythonQtWrapper_QTextStream::pos(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -QString PythonQtWrapper_QTextStream::read(QTextStream* theWrappedObject, qint64 maxlen) -{ - return ( theWrappedObject->read(maxlen)); -} - -QString PythonQtWrapper_QTextStream::readAll(QTextStream* theWrappedObject) -{ - return ( theWrappedObject->readAll()); -} - -QString PythonQtWrapper_QTextStream::readLine(QTextStream* theWrappedObject, qint64 maxlen) -{ - return ( theWrappedObject->readLine(maxlen)); -} - -QTextStream::RealNumberNotation PythonQtWrapper_QTextStream::realNumberNotation(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->realNumberNotation()); -} - -int PythonQtWrapper_QTextStream::realNumberPrecision(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->realNumberPrecision()); -} - -void PythonQtWrapper_QTextStream::reset(QTextStream* theWrappedObject) -{ - ( theWrappedObject->reset()); -} - -void PythonQtWrapper_QTextStream::resetStatus(QTextStream* theWrappedObject) -{ - ( theWrappedObject->resetStatus()); -} - -bool PythonQtWrapper_QTextStream::seek(QTextStream* theWrappedObject, qint64 pos) -{ - return ( theWrappedObject->seek(pos)); -} - -void PythonQtWrapper_QTextStream::setAutoDetectUnicode(QTextStream* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setAutoDetectUnicode(enabled)); -} - -void PythonQtWrapper_QTextStream::setCodec(QTextStream* theWrappedObject, QTextCodec* codec) -{ - ( theWrappedObject->setCodec(codec)); -} - -void PythonQtWrapper_QTextStream::setCodec(QTextStream* theWrappedObject, const char* codecName) -{ - ( theWrappedObject->setCodec(codecName)); -} - -void PythonQtWrapper_QTextStream::setDevice(QTextStream* theWrappedObject, QIODevice* device) -{ - ( theWrappedObject->setDevice(device)); -} - -void PythonQtWrapper_QTextStream::setFieldAlignment(QTextStream* theWrappedObject, QTextStream::FieldAlignment alignment) -{ - ( theWrappedObject->setFieldAlignment(alignment)); -} - -void PythonQtWrapper_QTextStream::setFieldWidth(QTextStream* theWrappedObject, int width) -{ - ( theWrappedObject->setFieldWidth(width)); -} - -void PythonQtWrapper_QTextStream::setGenerateByteOrderMark(QTextStream* theWrappedObject, bool generate) -{ - ( theWrappedObject->setGenerateByteOrderMark(generate)); -} - -void PythonQtWrapper_QTextStream::setIntegerBase(QTextStream* theWrappedObject, int base) -{ - ( theWrappedObject->setIntegerBase(base)); -} - -void PythonQtWrapper_QTextStream::setLocale(QTextStream* theWrappedObject, const QLocale& locale) -{ - ( theWrappedObject->setLocale(locale)); -} - -void PythonQtWrapper_QTextStream::setNumberFlags(QTextStream* theWrappedObject, QTextStream::NumberFlags flags) -{ - ( theWrappedObject->setNumberFlags(flags)); -} - -void PythonQtWrapper_QTextStream::setPadChar(QTextStream* theWrappedObject, QChar ch) -{ - ( theWrappedObject->setPadChar(ch)); -} - -void PythonQtWrapper_QTextStream::setRealNumberNotation(QTextStream* theWrappedObject, QTextStream::RealNumberNotation notation) -{ - ( theWrappedObject->setRealNumberNotation(notation)); -} - -void PythonQtWrapper_QTextStream::setRealNumberPrecision(QTextStream* theWrappedObject, int precision) -{ - ( theWrappedObject->setRealNumberPrecision(precision)); -} - -void PythonQtWrapper_QTextStream::setStatus(QTextStream* theWrappedObject, QTextStream::Status status) -{ - ( theWrappedObject->setStatus(status)); -} - -void PythonQtWrapper_QTextStream::skipWhiteSpace(QTextStream* theWrappedObject) -{ - ( theWrappedObject->skipWhiteSpace()); -} - -QTextStream::Status PythonQtWrapper_QTextStream::status(QTextStream* theWrappedObject) const -{ - return ( theWrappedObject->status()); -} - - - -void PythonQtShell_QThreadPool::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QThreadPool::childEvent(arg__1); -} -void PythonQtShell_QThreadPool::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QThreadPool::customEvent(arg__1); -} -bool PythonQtShell_QThreadPool::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QThreadPool::event(arg__1); -} -bool PythonQtShell_QThreadPool::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QThreadPool::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QThreadPool::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QThreadPool::timerEvent(arg__1); -} -QThreadPool* PythonQtWrapper_QThreadPool::new_QThreadPool(QObject* parent) -{ -return new PythonQtShell_QThreadPool(parent); } - -int PythonQtWrapper_QThreadPool::activeThreadCount(QThreadPool* theWrappedObject) const -{ - return ( theWrappedObject->activeThreadCount()); -} - -int PythonQtWrapper_QThreadPool::expiryTimeout(QThreadPool* theWrappedObject) const -{ - return ( theWrappedObject->expiryTimeout()); -} - -QThreadPool* PythonQtWrapper_QThreadPool::static_QThreadPool_globalInstance() -{ - return (QThreadPool::globalInstance()); -} - -int PythonQtWrapper_QThreadPool::maxThreadCount(QThreadPool* theWrappedObject) const -{ - return ( theWrappedObject->maxThreadCount()); -} - -void PythonQtWrapper_QThreadPool::releaseThread(QThreadPool* theWrappedObject) -{ - ( theWrappedObject->releaseThread()); -} - -void PythonQtWrapper_QThreadPool::reserveThread(QThreadPool* theWrappedObject) -{ - ( theWrappedObject->reserveThread()); -} - -void PythonQtWrapper_QThreadPool::setExpiryTimeout(QThreadPool* theWrappedObject, int expiryTimeout) -{ - ( theWrappedObject->setExpiryTimeout(expiryTimeout)); -} - -void PythonQtWrapper_QThreadPool::setMaxThreadCount(QThreadPool* theWrappedObject, int maxThreadCount) -{ - ( theWrappedObject->setMaxThreadCount(maxThreadCount)); -} - -void PythonQtWrapper_QThreadPool::start(QThreadPool* theWrappedObject, QRunnable* runnable, int priority) -{ - ( theWrappedObject->start(runnable, priority)); -} - -bool PythonQtWrapper_QThreadPool::tryStart(QThreadPool* theWrappedObject, QRunnable* runnable) -{ - return ( theWrappedObject->tryStart(runnable)); -} - -void PythonQtWrapper_QThreadPool::waitForDone(QThreadPool* theWrappedObject) -{ - ( theWrappedObject->waitForDone()); -} - - - -void PythonQtShell_QTimeLine::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeLine::childEvent(arg__1); -} -void PythonQtShell_QTimeLine::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeLine::customEvent(arg__1); -} -bool PythonQtShell_QTimeLine::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeLine::event(arg__1); -} -bool PythonQtShell_QTimeLine::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeLine::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTimeLine::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeLine::timerEvent(event); -} -qreal PythonQtShell_QTimeLine::valueForTime(int msec) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueForTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qreal" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - qreal returnValue = 0; - void* args[2] = {NULL, (void*)&msec}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("valueForTime", methodInfo, result); - } else { - returnValue = *((qreal*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeLine::valueForTime(msec); -} -QTimeLine* PythonQtWrapper_QTimeLine::new_QTimeLine(int duration, QObject* parent) -{ -return new PythonQtShell_QTimeLine(duration, parent); } - -int PythonQtWrapper_QTimeLine::currentFrame(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->currentFrame()); -} - -int PythonQtWrapper_QTimeLine::currentTime(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->currentTime()); -} - -qreal PythonQtWrapper_QTimeLine::currentValue(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->currentValue()); -} - -QTimeLine::CurveShape PythonQtWrapper_QTimeLine::curveShape(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->curveShape()); -} - -QTimeLine::Direction PythonQtWrapper_QTimeLine::direction(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->direction()); -} - -int PythonQtWrapper_QTimeLine::duration(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->duration()); -} - -QEasingCurve PythonQtWrapper_QTimeLine::easingCurve(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->easingCurve()); -} - -int PythonQtWrapper_QTimeLine::endFrame(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->endFrame()); -} - -int PythonQtWrapper_QTimeLine::frameForTime(QTimeLine* theWrappedObject, int msec) const -{ - return ( theWrappedObject->frameForTime(msec)); -} - -int PythonQtWrapper_QTimeLine::loopCount(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->loopCount()); -} - -void PythonQtWrapper_QTimeLine::setCurveShape(QTimeLine* theWrappedObject, QTimeLine::CurveShape shape) -{ - ( theWrappedObject->setCurveShape(shape)); -} - -void PythonQtWrapper_QTimeLine::setDirection(QTimeLine* theWrappedObject, QTimeLine::Direction direction) -{ - ( theWrappedObject->setDirection(direction)); -} - -void PythonQtWrapper_QTimeLine::setDuration(QTimeLine* theWrappedObject, int duration) -{ - ( theWrappedObject->setDuration(duration)); -} - -void PythonQtWrapper_QTimeLine::setEasingCurve(QTimeLine* theWrappedObject, const QEasingCurve& curve) -{ - ( theWrappedObject->setEasingCurve(curve)); -} - -void PythonQtWrapper_QTimeLine::setEndFrame(QTimeLine* theWrappedObject, int frame) -{ - ( theWrappedObject->setEndFrame(frame)); -} - -void PythonQtWrapper_QTimeLine::setFrameRange(QTimeLine* theWrappedObject, int startFrame, int endFrame) -{ - ( theWrappedObject->setFrameRange(startFrame, endFrame)); -} - -void PythonQtWrapper_QTimeLine::setLoopCount(QTimeLine* theWrappedObject, int count) -{ - ( theWrappedObject->setLoopCount(count)); -} - -void PythonQtWrapper_QTimeLine::setStartFrame(QTimeLine* theWrappedObject, int frame) -{ - ( theWrappedObject->setStartFrame(frame)); -} - -void PythonQtWrapper_QTimeLine::setUpdateInterval(QTimeLine* theWrappedObject, int interval) -{ - ( theWrappedObject->setUpdateInterval(interval)); -} - -int PythonQtWrapper_QTimeLine::startFrame(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->startFrame()); -} - -QTimeLine::State PythonQtWrapper_QTimeLine::state(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -void PythonQtWrapper_QTimeLine::timerEvent(QTimeLine* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QTimeLine*)theWrappedObject)->promoted_timerEvent(event)); -} - -int PythonQtWrapper_QTimeLine::updateInterval(QTimeLine* theWrappedObject) const -{ - return ( theWrappedObject->updateInterval()); -} - -qreal PythonQtWrapper_QTimeLine::valueForTime(QTimeLine* theWrappedObject, int msec) const -{ - return ( ((PythonQtPublicPromoter_QTimeLine*)theWrappedObject)->promoted_valueForTime(msec)); -} - - - -void PythonQtShell_QTimer::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimer::childEvent(arg__1); -} -void PythonQtShell_QTimer::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimer::customEvent(arg__1); -} -bool PythonQtShell_QTimer::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimer::event(arg__1); -} -bool PythonQtShell_QTimer::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimer::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTimer::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimer::timerEvent(arg__1); -} -QTimer* PythonQtWrapper_QTimer::new_QTimer(QObject* parent) -{ -return new PythonQtShell_QTimer(parent); } - -int PythonQtWrapper_QTimer::interval(QTimer* theWrappedObject) const -{ - return ( theWrappedObject->interval()); -} - -bool PythonQtWrapper_QTimer::isActive(QTimer* theWrappedObject) const -{ - return ( theWrappedObject->isActive()); -} - -bool PythonQtWrapper_QTimer::isSingleShot(QTimer* theWrappedObject) const -{ - return ( theWrappedObject->isSingleShot()); -} - -void PythonQtWrapper_QTimer::setInterval(QTimer* theWrappedObject, int msec) -{ - ( theWrappedObject->setInterval(msec)); -} - -void PythonQtWrapper_QTimer::setSingleShot(QTimer* theWrappedObject, bool singleShot) -{ - ( theWrappedObject->setSingleShot(singleShot)); -} - -void PythonQtWrapper_QTimer::static_QTimer_singleShot(int msec, QObject* receiver, const char* member) -{ - (QTimer::singleShot(msec, receiver, member)); -} - -void PythonQtWrapper_QTimer::timerEvent(QTimer* theWrappedObject, QTimerEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTimer*)theWrappedObject)->promoted_timerEvent(arg__1)); -} - -int PythonQtWrapper_QTimer::timerId(QTimer* theWrappedObject) const -{ - return ( theWrappedObject->timerId()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.h deleted file mode 100644 index d2b3852fb..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.h +++ /dev/null @@ -1,1300 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtWrapper_QMutex : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RecursionMode ) -enum RecursionMode{ - NonRecursive = QMutex::NonRecursive, Recursive = QMutex::Recursive}; -public slots: -QMutex* new_QMutex(QMutex::RecursionMode mode = QMutex::NonRecursive); -void delete_QMutex(QMutex* obj) { delete obj; } - void lock(QMutex* theWrappedObject); - bool tryLock(QMutex* theWrappedObject); - bool tryLock(QMutex* theWrappedObject, int timeout); - void unlock(QMutex* theWrappedObject); -}; - - - - - -class PythonQtShell_QObject : public QObject -{ -public: - PythonQtShell_QObject(QObject* parent = 0):QObject(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QObject : public QObject -{ public: -inline void promoted_childEvent(QChildEvent* arg__1) { QObject::childEvent(arg__1); } -inline void promoted_customEvent(QEvent* arg__1) { QObject::customEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QObject::event(arg__1); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QObject::eventFilter(arg__1, arg__2); } -inline void promoted_timerEvent(QTimerEvent* arg__1) { QObject::timerEvent(arg__1); } -}; - -class PythonQtWrapper_QObject : public QObject -{ Q_OBJECT -public: -public slots: -QObject* new_QObject(QObject* parent = 0); -void delete_QObject(QObject* obj) { delete obj; } - bool blockSignals(QObject* theWrappedObject, bool b); - void childEvent(QObject* theWrappedObject, QChildEvent* arg__1); - const QList* children(QObject* theWrappedObject) const; - void customEvent(QObject* theWrappedObject, QEvent* arg__1); - void dumpObjectInfo(QObject* theWrappedObject); - void dumpObjectTree(QObject* theWrappedObject); - QList dynamicPropertyNames(QObject* theWrappedObject) const; - bool event(QObject* theWrappedObject, QEvent* arg__1); - bool eventFilter(QObject* theWrappedObject, QObject* arg__1, QEvent* arg__2); - void installEventFilter(QObject* theWrappedObject, QObject* arg__1); - bool isWidgetType(QObject* theWrappedObject) const; - void killTimer(QObject* theWrappedObject, int id); - void moveToThread(QObject* theWrappedObject, QThread* thread); - QString objectName(QObject* theWrappedObject) const; - QObject* parent(QObject* theWrappedObject) const; - QVariant property(QObject* theWrappedObject, const char* name) const; - void removeEventFilter(QObject* theWrappedObject, QObject* arg__1); - void setObjectName(QObject* theWrappedObject, const QString& name); - void setParent(QObject* theWrappedObject, QObject* arg__1); - bool setProperty(QObject* theWrappedObject, const char* name, const QVariant& value); - bool signalsBlocked(QObject* theWrappedObject) const; - int startTimer(QObject* theWrappedObject, int interval); - QThread* thread(QObject* theWrappedObject) const; - void timerEvent(QObject* theWrappedObject, QTimerEvent* arg__1); -}; - - - - - -class PythonQtShell_QParallelAnimationGroup : public QParallelAnimationGroup -{ -public: - PythonQtShell_QParallelAnimationGroup(QObject* parent = 0):QParallelAnimationGroup(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int duration() const; -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateCurrentTime(int currentTime); -virtual void updateDirection(QAbstractAnimation::Direction direction); -virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QParallelAnimationGroup : public QParallelAnimationGroup -{ public: -inline int promoted_duration() const { return QParallelAnimationGroup::duration(); } -inline bool promoted_event(QEvent* event) { return QParallelAnimationGroup::event(event); } -inline void promoted_updateCurrentTime(int currentTime) { QParallelAnimationGroup::updateCurrentTime(currentTime); } -inline void promoted_updateDirection(QAbstractAnimation::Direction direction) { QParallelAnimationGroup::updateDirection(direction); } -inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QParallelAnimationGroup::updateState(newState, oldState); } -}; - -class PythonQtWrapper_QParallelAnimationGroup : public QObject -{ Q_OBJECT -public: -public slots: -QParallelAnimationGroup* new_QParallelAnimationGroup(QObject* parent = 0); -void delete_QParallelAnimationGroup(QParallelAnimationGroup* obj) { delete obj; } - int duration(QParallelAnimationGroup* theWrappedObject) const; - bool event(QParallelAnimationGroup* theWrappedObject, QEvent* event); - void updateCurrentTime(QParallelAnimationGroup* theWrappedObject, int currentTime); - void updateDirection(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction); - void updateState(QParallelAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); -}; - - - - - -class PythonQtShell_QPauseAnimation : public QPauseAnimation -{ -public: - PythonQtShell_QPauseAnimation(QObject* parent = 0):QPauseAnimation(parent),_wrapper(NULL) {}; - PythonQtShell_QPauseAnimation(int msecs, QObject* parent = 0):QPauseAnimation(msecs, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int duration() const; -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateCurrentTime(int arg__1); -virtual void updateDirection(QAbstractAnimation::Direction direction); -virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPauseAnimation : public QPauseAnimation -{ public: -inline int promoted_duration() const { return QPauseAnimation::duration(); } -inline bool promoted_event(QEvent* e) { return QPauseAnimation::event(e); } -inline void promoted_updateCurrentTime(int arg__1) { QPauseAnimation::updateCurrentTime(arg__1); } -}; - -class PythonQtWrapper_QPauseAnimation : public QObject -{ Q_OBJECT -public: -public slots: -QPauseAnimation* new_QPauseAnimation(QObject* parent = 0); -QPauseAnimation* new_QPauseAnimation(int msecs, QObject* parent = 0); -void delete_QPauseAnimation(QPauseAnimation* obj) { delete obj; } - int duration(QPauseAnimation* theWrappedObject) const; - bool event(QPauseAnimation* theWrappedObject, QEvent* e); - void setDuration(QPauseAnimation* theWrappedObject, int msecs); - void updateCurrentTime(QPauseAnimation* theWrappedObject, int arg__1); -}; - - - - - -class PythonQtShell_QProcess : public QProcess -{ -public: - PythonQtShell_QProcess(QObject* parent = 0):QProcess(parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode mode); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 pos); -virtual void setupChildProcess(); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs = 30000); -virtual bool waitForReadyRead(int msecs = 30000); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QProcess : public QProcess -{ public: -inline bool promoted_atEnd() const { return QProcess::atEnd(); } -inline qint64 promoted_bytesAvailable() const { return QProcess::bytesAvailable(); } -inline qint64 promoted_bytesToWrite() const { return QProcess::bytesToWrite(); } -inline bool promoted_canReadLine() const { return QProcess::canReadLine(); } -inline void promoted_close() { QProcess::close(); } -inline bool promoted_isSequential() const { return QProcess::isSequential(); } -inline qint64 promoted_readData(char* data, qint64 maxlen) { return QProcess::readData(data, maxlen); } -inline void promoted_setupChildProcess() { QProcess::setupChildProcess(); } -inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QProcess::waitForBytesWritten(msecs); } -inline bool promoted_waitForReadyRead(int msecs = 30000) { return QProcess::waitForReadyRead(msecs); } -inline qint64 promoted_writeData(const char* data, qint64 len) { return QProcess::writeData(data, len); } -}; - -class PythonQtWrapper_QProcess : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ProcessError ProcessChannelMode ProcessChannel ProcessState ExitStatus ) -enum ProcessError{ - FailedToStart = QProcess::FailedToStart, Crashed = QProcess::Crashed, Timedout = QProcess::Timedout, ReadError = QProcess::ReadError, WriteError = QProcess::WriteError, UnknownError = QProcess::UnknownError}; -enum ProcessChannelMode{ - SeparateChannels = QProcess::SeparateChannels, MergedChannels = QProcess::MergedChannels, ForwardedChannels = QProcess::ForwardedChannels}; -enum ProcessChannel{ - StandardOutput = QProcess::StandardOutput, StandardError = QProcess::StandardError}; -enum ProcessState{ - NotRunning = QProcess::NotRunning, Starting = QProcess::Starting, Running = QProcess::Running}; -enum ExitStatus{ - NormalExit = QProcess::NormalExit, CrashExit = QProcess::CrashExit}; -public slots: -QProcess* new_QProcess(QObject* parent = 0); -void delete_QProcess(QProcess* obj) { delete obj; } - bool atEnd(QProcess* theWrappedObject) const; - qint64 bytesAvailable(QProcess* theWrappedObject) const; - qint64 bytesToWrite(QProcess* theWrappedObject) const; - bool canReadLine(QProcess* theWrappedObject) const; - void close(QProcess* theWrappedObject); - void closeReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel); - void closeWriteChannel(QProcess* theWrappedObject); - QStringList environment(QProcess* theWrappedObject) const; - QProcess::ProcessError error(QProcess* theWrappedObject) const; - int static_QProcess_execute(const QString& program); - int static_QProcess_execute(const QString& program, const QStringList& arguments); - int exitCode(QProcess* theWrappedObject) const; - QProcess::ExitStatus exitStatus(QProcess* theWrappedObject) const; - bool isSequential(QProcess* theWrappedObject) const; - QProcess::ProcessChannelMode processChannelMode(QProcess* theWrappedObject) const; - QProcessEnvironment processEnvironment(QProcess* theWrappedObject) const; - QByteArray readAllStandardError(QProcess* theWrappedObject); - QByteArray readAllStandardOutput(QProcess* theWrappedObject); - QProcess::ProcessChannel readChannel(QProcess* theWrappedObject) const; - qint64 readData(QProcess* theWrappedObject, char* data, qint64 maxlen); - void setEnvironment(QProcess* theWrappedObject, const QStringList& environment); - void setProcessChannelMode(QProcess* theWrappedObject, QProcess::ProcessChannelMode mode); - void setProcessEnvironment(QProcess* theWrappedObject, const QProcessEnvironment& environment); - void setReadChannel(QProcess* theWrappedObject, QProcess::ProcessChannel channel); - void setStandardErrorFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode = QIODevice::Truncate); - void setStandardInputFile(QProcess* theWrappedObject, const QString& fileName); - void setStandardOutputFile(QProcess* theWrappedObject, const QString& fileName, QIODevice::OpenMode mode = QIODevice::Truncate); - void setStandardOutputProcess(QProcess* theWrappedObject, QProcess* destination); - void setWorkingDirectory(QProcess* theWrappedObject, const QString& dir); - void setupChildProcess(QProcess* theWrappedObject); - void start(QProcess* theWrappedObject, const QString& program, QIODevice::OpenMode mode = QIODevice::ReadWrite); - void start(QProcess* theWrappedObject, const QString& program, const QStringList& arguments, QIODevice::OpenMode mode = QIODevice::ReadWrite); - bool static_QProcess_startDetached(const QString& program); - bool static_QProcess_startDetached(const QString& program, const QStringList& arguments); - bool static_QProcess_startDetached(const QString& program, const QStringList& arguments, const QString& workingDirectory, qint64* pid = 0); - QProcess::ProcessState state(QProcess* theWrappedObject) const; - QStringList static_QProcess_systemEnvironment(); - bool waitForBytesWritten(QProcess* theWrappedObject, int msecs = 30000); - bool waitForFinished(QProcess* theWrappedObject, int msecs = 30000); - bool waitForReadyRead(QProcess* theWrappedObject, int msecs = 30000); - bool waitForStarted(QProcess* theWrappedObject, int msecs = 30000); - QString workingDirectory(QProcess* theWrappedObject) const; - qint64 writeData(QProcess* theWrappedObject, const char* data, qint64 len); -}; - - - - - -class PythonQtWrapper_QProcessEnvironment : public QObject -{ Q_OBJECT -public: -public slots: -QProcessEnvironment* new_QProcessEnvironment(); -QProcessEnvironment* new_QProcessEnvironment(const QProcessEnvironment& other); -void delete_QProcessEnvironment(QProcessEnvironment* obj) { delete obj; } - void clear(QProcessEnvironment* theWrappedObject); - bool contains(QProcessEnvironment* theWrappedObject, const QString& name) const; - void insert(QProcessEnvironment* theWrappedObject, const QString& name, const QString& value); - bool isEmpty(QProcessEnvironment* theWrappedObject) const; - bool __ne__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const; - QProcessEnvironment* operator_assign(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other); - bool __eq__(QProcessEnvironment* theWrappedObject, const QProcessEnvironment& other) const; - void remove(QProcessEnvironment* theWrappedObject, const QString& name); - QProcessEnvironment static_QProcessEnvironment_systemEnvironment(); - QStringList toStringList(QProcessEnvironment* theWrappedObject) const; - QString value(QProcessEnvironment* theWrappedObject, const QString& name, const QString& defaultValue = QString()) const; -}; - - - - - -class PythonQtShell_QPropertyAnimation : public QPropertyAnimation -{ -public: - PythonQtShell_QPropertyAnimation(QObject* parent = 0):QPropertyAnimation(parent),_wrapper(NULL) {}; - PythonQtShell_QPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent = 0):QPropertyAnimation(target, propertyName, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int duration() const; -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QVariant interpolated(const QVariant& from, const QVariant& to, qreal progress) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateCurrentTime(int arg__1); -virtual void updateCurrentValue(const QVariant& value); -virtual void updateDirection(QAbstractAnimation::Direction direction); -virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPropertyAnimation : public QPropertyAnimation -{ public: -inline bool promoted_event(QEvent* event) { return QPropertyAnimation::event(event); } -inline void promoted_updateCurrentValue(const QVariant& value) { QPropertyAnimation::updateCurrentValue(value); } -inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QPropertyAnimation::updateState(newState, oldState); } -}; - -class PythonQtWrapper_QPropertyAnimation : public QObject -{ Q_OBJECT -public: -public slots: -QPropertyAnimation* new_QPropertyAnimation(QObject* parent = 0); -QPropertyAnimation* new_QPropertyAnimation(QObject* target, const QByteArray& propertyName, QObject* parent = 0); -void delete_QPropertyAnimation(QPropertyAnimation* obj) { delete obj; } - bool event(QPropertyAnimation* theWrappedObject, QEvent* event); - QByteArray propertyName(QPropertyAnimation* theWrappedObject) const; - void setPropertyName(QPropertyAnimation* theWrappedObject, const QByteArray& propertyName); - void setTargetObject(QPropertyAnimation* theWrappedObject, QObject* target); - QObject* targetObject(QPropertyAnimation* theWrappedObject) const; - void updateCurrentValue(QPropertyAnimation* theWrappedObject, const QVariant& value); - void updateState(QPropertyAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); -}; - - - - - -class PythonQtWrapper_QReadWriteLock : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RecursionMode ) -enum RecursionMode{ - NonRecursive = QReadWriteLock::NonRecursive, Recursive = QReadWriteLock::Recursive}; -public slots: -QReadWriteLock* new_QReadWriteLock(); -QReadWriteLock* new_QReadWriteLock(QReadWriteLock::RecursionMode recursionMode); -void delete_QReadWriteLock(QReadWriteLock* obj) { delete obj; } - void lockForRead(QReadWriteLock* theWrappedObject); - void lockForWrite(QReadWriteLock* theWrappedObject); - bool tryLockForRead(QReadWriteLock* theWrappedObject); - bool tryLockForRead(QReadWriteLock* theWrappedObject, int timeout); - bool tryLockForWrite(QReadWriteLock* theWrappedObject); - bool tryLockForWrite(QReadWriteLock* theWrappedObject, int timeout); - void unlock(QReadWriteLock* theWrappedObject); -}; - - - - - -class PythonQtShell_QRunnable : public QRunnable -{ -public: - PythonQtShell_QRunnable():QRunnable(),_wrapper(NULL) {}; - -virtual void run(); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QRunnable : public QObject -{ Q_OBJECT -public: -public slots: -QRunnable* new_QRunnable(); -void delete_QRunnable(QRunnable* obj) { delete obj; } - bool autoDelete(QRunnable* theWrappedObject) const; - void setAutoDelete(QRunnable* theWrappedObject, bool _autoDelete); -}; - - - - - -class PythonQtWrapper_QSemaphore : public QObject -{ Q_OBJECT -public: -public slots: -QSemaphore* new_QSemaphore(int n = 0); -void delete_QSemaphore(QSemaphore* obj) { delete obj; } - void acquire(QSemaphore* theWrappedObject, int n = 1); - int available(QSemaphore* theWrappedObject) const; - void release(QSemaphore* theWrappedObject, int n = 1); - bool tryAcquire(QSemaphore* theWrappedObject, int n = 1); - bool tryAcquire(QSemaphore* theWrappedObject, int n, int timeout); -}; - - - - - -class PythonQtShell_QSequentialAnimationGroup : public QSequentialAnimationGroup -{ -public: - PythonQtShell_QSequentialAnimationGroup(QObject* parent = 0):QSequentialAnimationGroup(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int duration() const; -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateCurrentTime(int arg__1); -virtual void updateDirection(QAbstractAnimation::Direction direction); -virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSequentialAnimationGroup : public QSequentialAnimationGroup -{ public: -inline int promoted_duration() const { return QSequentialAnimationGroup::duration(); } -inline bool promoted_event(QEvent* event) { return QSequentialAnimationGroup::event(event); } -inline void promoted_updateCurrentTime(int arg__1) { QSequentialAnimationGroup::updateCurrentTime(arg__1); } -inline void promoted_updateDirection(QAbstractAnimation::Direction direction) { QSequentialAnimationGroup::updateDirection(direction); } -inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QSequentialAnimationGroup::updateState(newState, oldState); } -}; - -class PythonQtWrapper_QSequentialAnimationGroup : public QObject -{ Q_OBJECT -public: -public slots: -QSequentialAnimationGroup* new_QSequentialAnimationGroup(QObject* parent = 0); -void delete_QSequentialAnimationGroup(QSequentialAnimationGroup* obj) { delete obj; } - QPauseAnimation* addPause(QSequentialAnimationGroup* theWrappedObject, int msecs); - QAbstractAnimation* currentAnimation(QSequentialAnimationGroup* theWrappedObject) const; - int duration(QSequentialAnimationGroup* theWrappedObject) const; - bool event(QSequentialAnimationGroup* theWrappedObject, QEvent* event); - QPauseAnimation* insertPause(QSequentialAnimationGroup* theWrappedObject, int index, int msecs); - void updateCurrentTime(QSequentialAnimationGroup* theWrappedObject, int arg__1); - void updateDirection(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::Direction direction); - void updateState(QSequentialAnimationGroup* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); -}; - - - - - -class PythonQtShell_QSettings : public QSettings -{ -public: - PythonQtShell_QSettings(QObject* parent = 0):QSettings(parent),_wrapper(NULL) {}; - PythonQtShell_QSettings(QSettings::Format format, QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0):QSettings(format, scope, organization, application, parent),_wrapper(NULL) {}; - PythonQtShell_QSettings(QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0):QSettings(scope, organization, application, parent),_wrapper(NULL) {}; - PythonQtShell_QSettings(const QString& fileName, QSettings::Format format, QObject* parent = 0):QSettings(fileName, format, parent),_wrapper(NULL) {}; - PythonQtShell_QSettings(const QString& organization, const QString& application = QString(), QObject* parent = 0):QSettings(organization, application, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSettings : public QSettings -{ public: -inline bool promoted_event(QEvent* event) { return QSettings::event(event); } -}; - -class PythonQtWrapper_QSettings : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Format Status Scope ) -enum Format{ - NativeFormat = QSettings::NativeFormat, IniFormat = QSettings::IniFormat, InvalidFormat = QSettings::InvalidFormat, CustomFormat1 = QSettings::CustomFormat1, CustomFormat2 = QSettings::CustomFormat2, CustomFormat3 = QSettings::CustomFormat3, CustomFormat4 = QSettings::CustomFormat4, CustomFormat5 = QSettings::CustomFormat5, CustomFormat6 = QSettings::CustomFormat6, CustomFormat7 = QSettings::CustomFormat7, CustomFormat8 = QSettings::CustomFormat8, CustomFormat9 = QSettings::CustomFormat9, CustomFormat10 = QSettings::CustomFormat10, CustomFormat11 = QSettings::CustomFormat11, CustomFormat12 = QSettings::CustomFormat12, CustomFormat13 = QSettings::CustomFormat13, CustomFormat14 = QSettings::CustomFormat14, CustomFormat15 = QSettings::CustomFormat15, CustomFormat16 = QSettings::CustomFormat16}; -enum Status{ - NoError = QSettings::NoError, AccessError = QSettings::AccessError, FormatError = QSettings::FormatError}; -enum Scope{ - UserScope = QSettings::UserScope, SystemScope = QSettings::SystemScope}; -public slots: -QSettings* new_QSettings(QObject* parent = 0); -QSettings* new_QSettings(QSettings::Format format, QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0); -QSettings* new_QSettings(QSettings::Scope scope, const QString& organization, const QString& application = QString(), QObject* parent = 0); -QSettings* new_QSettings(const QString& fileName, QSettings::Format format, QObject* parent = 0); -QSettings* new_QSettings(const QString& organization, const QString& application = QString(), QObject* parent = 0); -void delete_QSettings(QSettings* obj) { delete obj; } - QStringList allKeys(QSettings* theWrappedObject) const; - QString applicationName(QSettings* theWrappedObject) const; - void beginGroup(QSettings* theWrappedObject, const QString& prefix); - int beginReadArray(QSettings* theWrappedObject, const QString& prefix); - void beginWriteArray(QSettings* theWrappedObject, const QString& prefix, int size = -1); - QStringList childGroups(QSettings* theWrappedObject) const; - QStringList childKeys(QSettings* theWrappedObject) const; - void clear(QSettings* theWrappedObject); - bool contains(QSettings* theWrappedObject, const QString& key) const; - QSettings::Format static_QSettings_defaultFormat(); - void endArray(QSettings* theWrappedObject); - void endGroup(QSettings* theWrappedObject); - bool event(QSettings* theWrappedObject, QEvent* event); - bool fallbacksEnabled(QSettings* theWrappedObject) const; - QString fileName(QSettings* theWrappedObject) const; - QSettings::Format format(QSettings* theWrappedObject) const; - QString group(QSettings* theWrappedObject) const; - QTextCodec* iniCodec(QSettings* theWrappedObject) const; - bool isWritable(QSettings* theWrappedObject) const; - QString organizationName(QSettings* theWrappedObject) const; - void remove(QSettings* theWrappedObject, const QString& key); - QSettings::Scope scope(QSettings* theWrappedObject) const; - void setArrayIndex(QSettings* theWrappedObject, int i); - void static_QSettings_setDefaultFormat(QSettings::Format format); - void setFallbacksEnabled(QSettings* theWrappedObject, bool b); - void setIniCodec(QSettings* theWrappedObject, QTextCodec* codec); - void setIniCodec(QSettings* theWrappedObject, const char* codecName); - void static_QSettings_setPath(QSettings::Format format, QSettings::Scope scope, const QString& path); - void setValue(QSettings* theWrappedObject, const QString& key, const QVariant& value); - QSettings::Status status(QSettings* theWrappedObject) const; - void sync(QSettings* theWrappedObject); - QVariant value(QSettings* theWrappedObject, const QString& key, const QVariant& defaultValue = QVariant()) const; -}; - - - - - -class PythonQtShell_QSignalMapper : public QSignalMapper -{ -public: - PythonQtShell_QSignalMapper(QObject* parent = 0):QSignalMapper(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QSignalMapper : public QObject -{ Q_OBJECT -public: -public slots: -QSignalMapper* new_QSignalMapper(QObject* parent = 0); -void delete_QSignalMapper(QSignalMapper* obj) { delete obj; } - QObject* mapping(QSignalMapper* theWrappedObject, QObject* object) const; - QObject* mapping(QSignalMapper* theWrappedObject, const QString& text) const; - QObject* mapping(QSignalMapper* theWrappedObject, int id) const; - void removeMappings(QSignalMapper* theWrappedObject, QObject* sender); - void setMapping(QSignalMapper* theWrappedObject, QObject* sender, QObject* object); - void setMapping(QSignalMapper* theWrappedObject, QObject* sender, const QString& text); - void setMapping(QSignalMapper* theWrappedObject, QObject* sender, int id); -}; - - - - - -class PythonQtShell_QSignalTransition : public QSignalTransition -{ -public: - PythonQtShell_QSignalTransition(QObject* sender, const char* signal, QState* sourceState = 0):QSignalTransition(sender, signal, sourceState),_wrapper(NULL) {}; - PythonQtShell_QSignalTransition(QState* sourceState = 0):QSignalTransition(sourceState),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool eventTest(QEvent* event); -virtual void onTransition(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSignalTransition : public QSignalTransition -{ public: -inline bool promoted_event(QEvent* e) { return QSignalTransition::event(e); } -inline bool promoted_eventTest(QEvent* event) { return QSignalTransition::eventTest(event); } -inline void promoted_onTransition(QEvent* event) { QSignalTransition::onTransition(event); } -}; - -class PythonQtWrapper_QSignalTransition : public QObject -{ Q_OBJECT -public: -public slots: -QSignalTransition* new_QSignalTransition(QObject* sender, const char* signal, QState* sourceState = 0); -QSignalTransition* new_QSignalTransition(QState* sourceState = 0); -void delete_QSignalTransition(QSignalTransition* obj) { delete obj; } - bool event(QSignalTransition* theWrappedObject, QEvent* e); - bool eventTest(QSignalTransition* theWrappedObject, QEvent* event); - void onTransition(QSignalTransition* theWrappedObject, QEvent* event); - QObject* senderObject(QSignalTransition* theWrappedObject) const; - void setSenderObject(QSignalTransition* theWrappedObject, QObject* sender); - void setSignal(QSignalTransition* theWrappedObject, const QByteArray& signal); - QByteArray signal(QSignalTransition* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QSocketNotifier : public QSocketNotifier -{ -public: - PythonQtShell_QSocketNotifier(int socket, QSocketNotifier::Type arg__2, QObject* parent = 0):QSocketNotifier(socket, arg__2, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSocketNotifier : public QSocketNotifier -{ public: -inline bool promoted_event(QEvent* arg__1) { return QSocketNotifier::event(arg__1); } -}; - -class PythonQtWrapper_QSocketNotifier : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Type ) -enum Type{ - Read = QSocketNotifier::Read, Write = QSocketNotifier::Write, Exception = QSocketNotifier::Exception}; -public slots: -QSocketNotifier* new_QSocketNotifier(int socket, QSocketNotifier::Type arg__2, QObject* parent = 0); -void delete_QSocketNotifier(QSocketNotifier* obj) { delete obj; } - bool event(QSocketNotifier* theWrappedObject, QEvent* arg__1); - bool isEnabled(QSocketNotifier* theWrappedObject) const; - int socket(QSocketNotifier* theWrappedObject) const; - QSocketNotifier::Type type(QSocketNotifier* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QState : public QState -{ -public: - PythonQtShell_QState(QState* parent = 0):QState(parent),_wrapper(NULL) {}; - PythonQtShell_QState(QState::ChildMode childMode, QState* parent = 0):QState(childMode, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void onEntry(QEvent* event); -virtual void onExit(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QState : public QState -{ public: -inline bool promoted_event(QEvent* e) { return QState::event(e); } -inline void promoted_onEntry(QEvent* event) { QState::onEntry(event); } -inline void promoted_onExit(QEvent* event) { QState::onExit(event); } -}; - -class PythonQtWrapper_QState : public QObject -{ Q_OBJECT -public: -public slots: -QState* new_QState(QState* parent = 0); -QState* new_QState(QState::ChildMode childMode, QState* parent = 0); -void delete_QState(QState* obj) { delete obj; } - QAbstractTransition* addTransition(QState* theWrappedObject, QAbstractState* target); - void addTransition(QState* theWrappedObject, QAbstractTransition* transition); - QSignalTransition* addTransition(QState* theWrappedObject, QObject* sender, const char* signal, QAbstractState* target); - void assignProperty(QState* theWrappedObject, QObject* object, const char* name, const QVariant& value); - QState::ChildMode childMode(QState* theWrappedObject) const; - QAbstractState* errorState(QState* theWrappedObject) const; - bool event(QState* theWrappedObject, QEvent* e); - QAbstractState* initialState(QState* theWrappedObject) const; - void onEntry(QState* theWrappedObject, QEvent* event); - void onExit(QState* theWrappedObject, QEvent* event); - void removeTransition(QState* theWrappedObject, QAbstractTransition* transition); - void setChildMode(QState* theWrappedObject, QState::ChildMode mode); - void setErrorState(QState* theWrappedObject, QAbstractState* state); - void setInitialState(QState* theWrappedObject, QAbstractState* state); -}; - - - - - -class PythonQtShell_QStateMachine : public QStateMachine -{ -public: - PythonQtShell_QStateMachine(QObject* parent = 0):QStateMachine(parent),_wrapper(NULL) {}; - -virtual void beginMicrostep(QEvent* event); -virtual void beginSelectTransitions(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void endMicrostep(QEvent* event); -virtual void endSelectTransitions(QEvent* event); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* watched, QEvent* event); -virtual void onEntry(QEvent* event); -virtual void onExit(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStateMachine : public QStateMachine -{ public: -inline void promoted_beginMicrostep(QEvent* event) { QStateMachine::beginMicrostep(event); } -inline void promoted_beginSelectTransitions(QEvent* event) { QStateMachine::beginSelectTransitions(event); } -inline void promoted_endMicrostep(QEvent* event) { QStateMachine::endMicrostep(event); } -inline void promoted_endSelectTransitions(QEvent* event) { QStateMachine::endSelectTransitions(event); } -inline bool promoted_event(QEvent* e) { return QStateMachine::event(e); } -inline bool promoted_eventFilter(QObject* watched, QEvent* event) { return QStateMachine::eventFilter(watched, event); } -inline void promoted_onEntry(QEvent* event) { QStateMachine::onEntry(event); } -inline void promoted_onExit(QEvent* event) { QStateMachine::onExit(event); } -}; - -class PythonQtWrapper_QStateMachine : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Error EventPriority ) -enum Error{ - NoError = QStateMachine::NoError, NoInitialStateError = QStateMachine::NoInitialStateError, NoDefaultStateInHistoryStateError = QStateMachine::NoDefaultStateInHistoryStateError, NoCommonAncestorForTransitionError = QStateMachine::NoCommonAncestorForTransitionError}; -enum EventPriority{ - NormalPriority = QStateMachine::NormalPriority, HighPriority = QStateMachine::HighPriority}; -public slots: -QStateMachine* new_QStateMachine(QObject* parent = 0); -void delete_QStateMachine(QStateMachine* obj) { delete obj; } - void addDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation); - void addState(QStateMachine* theWrappedObject, QAbstractState* state); - void beginMicrostep(QStateMachine* theWrappedObject, QEvent* event); - void beginSelectTransitions(QStateMachine* theWrappedObject, QEvent* event); - bool cancelDelayedEvent(QStateMachine* theWrappedObject, int id); - void clearError(QStateMachine* theWrappedObject); - QSet configuration(QStateMachine* theWrappedObject) const; - QList defaultAnimations(QStateMachine* theWrappedObject) const; - void endMicrostep(QStateMachine* theWrappedObject, QEvent* event); - void endSelectTransitions(QStateMachine* theWrappedObject, QEvent* event); - QStateMachine::Error error(QStateMachine* theWrappedObject) const; - QString errorString(QStateMachine* theWrappedObject) const; - bool event(QStateMachine* theWrappedObject, QEvent* e); - bool eventFilter(QStateMachine* theWrappedObject, QObject* watched, QEvent* event); - QStateMachine::RestorePolicy globalRestorePolicy(QStateMachine* theWrappedObject) const; - bool isAnimated(QStateMachine* theWrappedObject) const; - bool isRunning(QStateMachine* theWrappedObject) const; - void onEntry(QStateMachine* theWrappedObject, QEvent* event); - void onExit(QStateMachine* theWrappedObject, QEvent* event); - int postDelayedEvent(QStateMachine* theWrappedObject, QEvent* event, int delay); - void postEvent(QStateMachine* theWrappedObject, QEvent* event, QStateMachine::EventPriority priority = QStateMachine::NormalPriority); - void removeDefaultAnimation(QStateMachine* theWrappedObject, QAbstractAnimation* animation); - void removeState(QStateMachine* theWrappedObject, QAbstractState* state); - void setAnimated(QStateMachine* theWrappedObject, bool enabled); - void setGlobalRestorePolicy(QStateMachine* theWrappedObject, QStateMachine::RestorePolicy restorePolicy); -}; - - - - - -class PythonQtWrapper_QStateMachine_SignalEvent : public QObject -{ Q_OBJECT -public: -public slots: -QStateMachine::SignalEvent* new_QStateMachine_SignalEvent(QObject* sender, int signalIndex, const QList& arguments); -void delete_QStateMachine_SignalEvent(QStateMachine::SignalEvent* obj) { delete obj; } - QList arguments(QStateMachine::SignalEvent* theWrappedObject) const; - QObject* sender(QStateMachine::SignalEvent* theWrappedObject) const; - int signalIndex(QStateMachine::SignalEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QStateMachine_WrappedEvent : public QObject -{ Q_OBJECT -public: -public slots: -QStateMachine::WrappedEvent* new_QStateMachine_WrappedEvent(QObject* object, QEvent* event); -void delete_QStateMachine_WrappedEvent(QStateMachine::WrappedEvent* obj) { delete obj; } - QEvent* event(QStateMachine::WrappedEvent* theWrappedObject) const; - QObject* object(QStateMachine::WrappedEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QStringMatcher : public QObject -{ Q_OBJECT -public: -public slots: -QStringMatcher* new_QStringMatcher(); -QStringMatcher* new_QStringMatcher(const QString& pattern, Qt::CaseSensitivity cs = Qt::CaseSensitive); -QStringMatcher* new_QStringMatcher(const QStringMatcher& other); -void delete_QStringMatcher(QStringMatcher* obj) { delete obj; } - Qt::CaseSensitivity caseSensitivity(QStringMatcher* theWrappedObject) const; - int indexIn(QStringMatcher* theWrappedObject, const QString& str, int from = 0) const; - QString pattern(QStringMatcher* theWrappedObject) const; - void setCaseSensitivity(QStringMatcher* theWrappedObject, Qt::CaseSensitivity cs); - void setPattern(QStringMatcher* theWrappedObject, const QString& pattern); -}; - - - - - -class PythonQtWrapper_QSystemSemaphore : public QObject -{ Q_OBJECT -public: -Q_ENUMS(AccessMode SystemSemaphoreError ) -enum AccessMode{ - Open = QSystemSemaphore::Open, Create = QSystemSemaphore::Create}; -enum SystemSemaphoreError{ - NoError = QSystemSemaphore::NoError, PermissionDenied = QSystemSemaphore::PermissionDenied, KeyError = QSystemSemaphore::KeyError, AlreadyExists = QSystemSemaphore::AlreadyExists, NotFound = QSystemSemaphore::NotFound, OutOfResources = QSystemSemaphore::OutOfResources, UnknownError = QSystemSemaphore::UnknownError}; -public slots: -QSystemSemaphore* new_QSystemSemaphore(const QString& key, int initialValue = 0, QSystemSemaphore::AccessMode mode = QSystemSemaphore::Open); -void delete_QSystemSemaphore(QSystemSemaphore* obj) { delete obj; } - bool acquire(QSystemSemaphore* theWrappedObject); - QSystemSemaphore::SystemSemaphoreError error(QSystemSemaphore* theWrappedObject) const; - QString errorString(QSystemSemaphore* theWrappedObject) const; - QString key(QSystemSemaphore* theWrappedObject) const; - bool release(QSystemSemaphore* theWrappedObject, int n = 1); - void setKey(QSystemSemaphore* theWrappedObject, const QString& key, int initialValue = 0, QSystemSemaphore::AccessMode mode = QSystemSemaphore::Open); -}; - - - - - -class PythonQtShell_QTemporaryFile : public QTemporaryFile -{ -public: - PythonQtShell_QTemporaryFile():QTemporaryFile(),_wrapper(NULL) {}; - PythonQtShell_QTemporaryFile(QObject* parent):QTemporaryFile(parent),_wrapper(NULL) {}; - PythonQtShell_QTemporaryFile(const QString& templateName):QTemporaryFile(templateName),_wrapper(NULL) {}; - PythonQtShell_QTemporaryFile(const QString& templateName, QObject* parent):QTemporaryFile(templateName, parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QAbstractFileEngine* fileEngine() const; -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode flags); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 offset); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs); -virtual bool waitForReadyRead(int msecs); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTemporaryFile : public QTemporaryFile -{ public: -inline QAbstractFileEngine* promoted_fileEngine() const { return QTemporaryFile::fileEngine(); } -inline bool promoted_open(QIODevice::OpenMode flags) { return QTemporaryFile::open(flags); } -}; - -class PythonQtWrapper_QTemporaryFile : public QObject -{ Q_OBJECT -public: -public slots: -QTemporaryFile* new_QTemporaryFile(); -QTemporaryFile* new_QTemporaryFile(QObject* parent); -QTemporaryFile* new_QTemporaryFile(const QString& templateName); -QTemporaryFile* new_QTemporaryFile(const QString& templateName, QObject* parent); -void delete_QTemporaryFile(QTemporaryFile* obj) { delete obj; } - bool autoRemove(QTemporaryFile* theWrappedObject) const; - QTemporaryFile* static_QTemporaryFile_createLocalFile(QFile& file); - QTemporaryFile* static_QTemporaryFile_createLocalFile(const QString& fileName); - QAbstractFileEngine* fileEngine(QTemporaryFile* theWrappedObject) const; - QString fileName(QTemporaryFile* theWrappedObject) const; - QString fileTemplate(QTemporaryFile* theWrappedObject) const; - bool open(QTemporaryFile* theWrappedObject); - bool open(QTemporaryFile* theWrappedObject, QIODevice::OpenMode flags); - void setAutoRemove(QTemporaryFile* theWrappedObject, bool b); - void setFileTemplate(QTemporaryFile* theWrappedObject, const QString& name); -}; - - - - - -class PythonQtWrapper_QTextBoundaryFinder : public QObject -{ Q_OBJECT -public: -Q_ENUMS(BoundaryReason BoundaryType ) -Q_FLAGS(BoundaryReasons ) -enum BoundaryReason{ - NotAtBoundary = QTextBoundaryFinder::NotAtBoundary, StartWord = QTextBoundaryFinder::StartWord, EndWord = QTextBoundaryFinder::EndWord}; -enum BoundaryType{ - Grapheme = QTextBoundaryFinder::Grapheme, Word = QTextBoundaryFinder::Word, Line = QTextBoundaryFinder::Line, Sentence = QTextBoundaryFinder::Sentence}; -Q_DECLARE_FLAGS(BoundaryReasons, BoundaryReason) -public slots: -QTextBoundaryFinder* new_QTextBoundaryFinder(); -QTextBoundaryFinder* new_QTextBoundaryFinder(QTextBoundaryFinder::BoundaryType type, const QString& string); -QTextBoundaryFinder* new_QTextBoundaryFinder(const QTextBoundaryFinder& other); -void delete_QTextBoundaryFinder(QTextBoundaryFinder* obj) { delete obj; } - QTextBoundaryFinder::BoundaryReasons boundaryReasons(QTextBoundaryFinder* theWrappedObject) const; - bool isAtBoundary(QTextBoundaryFinder* theWrappedObject) const; - bool isValid(QTextBoundaryFinder* theWrappedObject) const; - int position(QTextBoundaryFinder* theWrappedObject) const; - void setPosition(QTextBoundaryFinder* theWrappedObject, int position); - QString string(QTextBoundaryFinder* theWrappedObject) const; - void toEnd(QTextBoundaryFinder* theWrappedObject); - int toNextBoundary(QTextBoundaryFinder* theWrappedObject); - int toPreviousBoundary(QTextBoundaryFinder* theWrappedObject); - void toStart(QTextBoundaryFinder* theWrappedObject); - QTextBoundaryFinder::BoundaryType type(QTextBoundaryFinder* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextCodec : public QTextCodec -{ -public: - PythonQtShell_QTextCodec():QTextCodec(),_wrapper(NULL) {}; - -virtual QList aliases() const; -virtual QByteArray convertFromUnicode(const QChar* in, int length, QTextCodec::ConverterState* state) const; -virtual QString convertToUnicode(const char* in, int length, QTextCodec::ConverterState* state) const; -virtual int mibEnum() const; -virtual QByteArray name() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTextCodec : public QTextCodec -{ public: -inline QList promoted_aliases() const { return QTextCodec::aliases(); } -}; - -class PythonQtWrapper_QTextCodec : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ConversionFlag ) -Q_FLAGS(ConversionFlags ) -enum ConversionFlag{ - DefaultConversion = QTextCodec::DefaultConversion, ConvertInvalidToNull = QTextCodec::ConvertInvalidToNull, IgnoreHeader = QTextCodec::IgnoreHeader, FreeFunction = QTextCodec::FreeFunction}; -Q_DECLARE_FLAGS(ConversionFlags, ConversionFlag) -public slots: - QList aliases(QTextCodec* theWrappedObject) const; - QList static_QTextCodec_availableCodecs(); - QList static_QTextCodec_availableMibs(); - bool canEncode(QTextCodec* theWrappedObject, QChar arg__1) const; - bool canEncode(QTextCodec* theWrappedObject, const QString& arg__1) const; - QTextCodec* static_QTextCodec_codecForCStrings(); - QTextCodec* static_QTextCodec_codecForHtml(const QByteArray& ba); - QTextCodec* static_QTextCodec_codecForHtml(const QByteArray& ba, QTextCodec* defaultCodec); - QTextCodec* static_QTextCodec_codecForLocale(); - QTextCodec* static_QTextCodec_codecForMib(int mib); - QTextCodec* static_QTextCodec_codecForName(const QByteArray& name); - QTextCodec* static_QTextCodec_codecForName(const char* name); - QTextCodec* static_QTextCodec_codecForUtfText(const QByteArray& ba); - QTextCodec* static_QTextCodec_codecForUtfText(const QByteArray& ba, QTextCodec* defaultCodec); - QByteArray fromUnicode(QTextCodec* theWrappedObject, const QString& uc) const; - QTextDecoder* makeDecoder(QTextCodec* theWrappedObject) const; - QTextEncoder* makeEncoder(QTextCodec* theWrappedObject) const; - void static_QTextCodec_setCodecForCStrings(QTextCodec* c); - void static_QTextCodec_setCodecForLocale(QTextCodec* c); - void static_QTextCodec_setCodecForTr(QTextCodec* c); - QString toUnicode(QTextCodec* theWrappedObject, const QByteArray& arg__1) const; -}; - - - - - -class PythonQtWrapper_QTextDecoder : public QObject -{ Q_OBJECT -public: -public slots: -QTextDecoder* new_QTextDecoder(const QTextCodec* codec); -void delete_QTextDecoder(QTextDecoder* obj) { delete obj; } - bool hasFailure(QTextDecoder* theWrappedObject) const; - QString toUnicode(QTextDecoder* theWrappedObject, const QByteArray& ba); -}; - - - - - -class PythonQtWrapper_QTextEncoder : public QObject -{ Q_OBJECT -public: -public slots: -QTextEncoder* new_QTextEncoder(const QTextCodec* codec); -void delete_QTextEncoder(QTextEncoder* obj) { delete obj; } - QByteArray fromUnicode(QTextEncoder* theWrappedObject, const QString& str); - bool hasFailure(QTextEncoder* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextStream : public QTextStream -{ -public: - PythonQtShell_QTextStream():QTextStream(),_wrapper(NULL) {}; - PythonQtShell_QTextStream(QIODevice* device):QTextStream(device),_wrapper(NULL) {}; - PythonQtShell_QTextStream(const QByteArray& array, QIODevice::OpenMode openMode = QIODevice::ReadOnly):QTextStream(array, openMode),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextStream : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RealNumberNotation NumberFlag FieldAlignment Status ) -Q_FLAGS(NumberFlags ) -enum RealNumberNotation{ - SmartNotation = QTextStream::SmartNotation, FixedNotation = QTextStream::FixedNotation, ScientificNotation = QTextStream::ScientificNotation}; -enum NumberFlag{ - ShowBase = QTextStream::ShowBase, ForcePoint = QTextStream::ForcePoint, ForceSign = QTextStream::ForceSign, UppercaseBase = QTextStream::UppercaseBase, UppercaseDigits = QTextStream::UppercaseDigits}; -enum FieldAlignment{ - AlignLeft = QTextStream::AlignLeft, AlignRight = QTextStream::AlignRight, AlignCenter = QTextStream::AlignCenter, AlignAccountingStyle = QTextStream::AlignAccountingStyle}; -enum Status{ - Ok = QTextStream::Ok, ReadPastEnd = QTextStream::ReadPastEnd, ReadCorruptData = QTextStream::ReadCorruptData}; -Q_DECLARE_FLAGS(NumberFlags, NumberFlag) -public slots: -QTextStream* new_QTextStream(); -QTextStream* new_QTextStream(QIODevice* device); -QTextStream* new_QTextStream(const QByteArray& array, QIODevice::OpenMode openMode = QIODevice::ReadOnly); -void delete_QTextStream(QTextStream* obj) { delete obj; } - bool atEnd(QTextStream* theWrappedObject) const; - bool autoDetectUnicode(QTextStream* theWrappedObject) const; - QTextCodec* codec(QTextStream* theWrappedObject) const; - QIODevice* device(QTextStream* theWrappedObject) const; - QTextStream::FieldAlignment fieldAlignment(QTextStream* theWrappedObject) const; - int fieldWidth(QTextStream* theWrappedObject) const; - void flush(QTextStream* theWrappedObject); - bool generateByteOrderMark(QTextStream* theWrappedObject) const; - int integerBase(QTextStream* theWrappedObject) const; - QLocale locale(QTextStream* theWrappedObject) const; - QTextStream::NumberFlags numberFlags(QTextStream* theWrappedObject) const; - QTextStream* writeBoolean(QTextStream* theWrappedObject, QBool b); - QTextStream* writeByte(QTextStream* theWrappedObject, char ch); - QTextStream* writeDouble(QTextStream* theWrappedObject, double f); - QTextStream* writeFloat(QTextStream* theWrappedObject, float f); - QTextStream* writeLongLong(QTextStream* theWrappedObject, qlonglong i); - QTextStream* writeInt(QTextStream* theWrappedObject, signed int i); - QTextStream* writeShort(QTextStream* theWrappedObject, signed short i); - QTextStream* readByte(QTextStream* theWrappedObject, char& ch); - QTextStream* readDouble(QTextStream* theWrappedObject, double& f); - QTextStream* readFloat(QTextStream* theWrappedObject, float& f); - QTextStream* readLongLong(QTextStream* theWrappedObject, qlonglong& i); - QTextStream* readInt(QTextStream* theWrappedObject, signed int& i); - QTextStream* readShort(QTextStream* theWrappedObject, signed short& i); - QChar padChar(QTextStream* theWrappedObject) const; - qint64 pos(QTextStream* theWrappedObject) const; - QString read(QTextStream* theWrappedObject, qint64 maxlen); - QString readAll(QTextStream* theWrappedObject); - QString readLine(QTextStream* theWrappedObject, qint64 maxlen = 0); - QTextStream::RealNumberNotation realNumberNotation(QTextStream* theWrappedObject) const; - int realNumberPrecision(QTextStream* theWrappedObject) const; - void reset(QTextStream* theWrappedObject); - void resetStatus(QTextStream* theWrappedObject); - bool seek(QTextStream* theWrappedObject, qint64 pos); - void setAutoDetectUnicode(QTextStream* theWrappedObject, bool enabled); - void setCodec(QTextStream* theWrappedObject, QTextCodec* codec); - void setCodec(QTextStream* theWrappedObject, const char* codecName); - void setDevice(QTextStream* theWrappedObject, QIODevice* device); - void setFieldAlignment(QTextStream* theWrappedObject, QTextStream::FieldAlignment alignment); - void setFieldWidth(QTextStream* theWrappedObject, int width); - void setGenerateByteOrderMark(QTextStream* theWrappedObject, bool generate); - void setIntegerBase(QTextStream* theWrappedObject, int base); - void setLocale(QTextStream* theWrappedObject, const QLocale& locale); - void setNumberFlags(QTextStream* theWrappedObject, QTextStream::NumberFlags flags); - void setPadChar(QTextStream* theWrappedObject, QChar ch); - void setRealNumberNotation(QTextStream* theWrappedObject, QTextStream::RealNumberNotation notation); - void setRealNumberPrecision(QTextStream* theWrappedObject, int precision); - void setStatus(QTextStream* theWrappedObject, QTextStream::Status status); - void skipWhiteSpace(QTextStream* theWrappedObject); - QTextStream::Status status(QTextStream* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QThreadPool : public QThreadPool -{ -public: - PythonQtShell_QThreadPool(QObject* parent = 0):QThreadPool(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QThreadPool : public QObject -{ Q_OBJECT -public: -public slots: -QThreadPool* new_QThreadPool(QObject* parent = 0); -void delete_QThreadPool(QThreadPool* obj) { delete obj; } - int activeThreadCount(QThreadPool* theWrappedObject) const; - int expiryTimeout(QThreadPool* theWrappedObject) const; - QThreadPool* static_QThreadPool_globalInstance(); - int maxThreadCount(QThreadPool* theWrappedObject) const; - void releaseThread(QThreadPool* theWrappedObject); - void reserveThread(QThreadPool* theWrappedObject); - void setExpiryTimeout(QThreadPool* theWrappedObject, int expiryTimeout); - void setMaxThreadCount(QThreadPool* theWrappedObject, int maxThreadCount); - void start(QThreadPool* theWrappedObject, QRunnable* runnable, int priority = 0); - bool tryStart(QThreadPool* theWrappedObject, QRunnable* runnable); - void waitForDone(QThreadPool* theWrappedObject); -}; - - - - - -class PythonQtShell_QTimeLine : public QTimeLine -{ -public: - PythonQtShell_QTimeLine(int duration = 1000, QObject* parent = 0):QTimeLine(duration, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* event); -virtual qreal valueForTime(int msec) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTimeLine : public QTimeLine -{ public: -inline void promoted_timerEvent(QTimerEvent* event) { QTimeLine::timerEvent(event); } -inline qreal promoted_valueForTime(int msec) const { return QTimeLine::valueForTime(msec); } -}; - -class PythonQtWrapper_QTimeLine : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Direction CurveShape State ) -enum Direction{ - Forward = QTimeLine::Forward, Backward = QTimeLine::Backward}; -enum CurveShape{ - EaseInCurve = QTimeLine::EaseInCurve, EaseOutCurve = QTimeLine::EaseOutCurve, EaseInOutCurve = QTimeLine::EaseInOutCurve, LinearCurve = QTimeLine::LinearCurve, SineCurve = QTimeLine::SineCurve, CosineCurve = QTimeLine::CosineCurve}; -enum State{ - NotRunning = QTimeLine::NotRunning, Paused = QTimeLine::Paused, Running = QTimeLine::Running}; -public slots: -QTimeLine* new_QTimeLine(int duration = 1000, QObject* parent = 0); -void delete_QTimeLine(QTimeLine* obj) { delete obj; } - int currentFrame(QTimeLine* theWrappedObject) const; - int currentTime(QTimeLine* theWrappedObject) const; - qreal currentValue(QTimeLine* theWrappedObject) const; - QTimeLine::CurveShape curveShape(QTimeLine* theWrappedObject) const; - QTimeLine::Direction direction(QTimeLine* theWrappedObject) const; - int duration(QTimeLine* theWrappedObject) const; - QEasingCurve easingCurve(QTimeLine* theWrappedObject) const; - int endFrame(QTimeLine* theWrappedObject) const; - int frameForTime(QTimeLine* theWrappedObject, int msec) const; - int loopCount(QTimeLine* theWrappedObject) const; - void setCurveShape(QTimeLine* theWrappedObject, QTimeLine::CurveShape shape); - void setDirection(QTimeLine* theWrappedObject, QTimeLine::Direction direction); - void setDuration(QTimeLine* theWrappedObject, int duration); - void setEasingCurve(QTimeLine* theWrappedObject, const QEasingCurve& curve); - void setEndFrame(QTimeLine* theWrappedObject, int frame); - void setFrameRange(QTimeLine* theWrappedObject, int startFrame, int endFrame); - void setLoopCount(QTimeLine* theWrappedObject, int count); - void setStartFrame(QTimeLine* theWrappedObject, int frame); - void setUpdateInterval(QTimeLine* theWrappedObject, int interval); - int startFrame(QTimeLine* theWrappedObject) const; - QTimeLine::State state(QTimeLine* theWrappedObject) const; - void timerEvent(QTimeLine* theWrappedObject, QTimerEvent* event); - int updateInterval(QTimeLine* theWrappedObject) const; - qreal valueForTime(QTimeLine* theWrappedObject, int msec) const; -}; - - - - - -class PythonQtShell_QTimer : public QTimer -{ -public: - PythonQtShell_QTimer(QObject* parent = 0):QTimer(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTimer : public QTimer -{ public: -inline void promoted_timerEvent(QTimerEvent* arg__1) { QTimer::timerEvent(arg__1); } -}; - -class PythonQtWrapper_QTimer : public QObject -{ Q_OBJECT -public: -public slots: -QTimer* new_QTimer(QObject* parent = 0); -void delete_QTimer(QTimer* obj) { delete obj; } - int interval(QTimer* theWrappedObject) const; - bool isActive(QTimer* theWrappedObject) const; - bool isSingleShot(QTimer* theWrappedObject) const; - void setInterval(QTimer* theWrappedObject, int msec); - void setSingleShot(QTimer* theWrappedObject, bool singleShot); - void static_QTimer_singleShot(int msec, QObject* receiver, const char* member); - void timerEvent(QTimer* theWrappedObject, QTimerEvent* arg__1); - int timerId(QTimer* theWrappedObject) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp deleted file mode 100644 index b9ea7dff4..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp +++ /dev/null @@ -1,734 +0,0 @@ -#include "com_trolltech_qt_core2.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QTimerEvent* PythonQtWrapper_QTimerEvent::new_QTimerEvent(int timerId) -{ -return new PythonQtShell_QTimerEvent(timerId); } - -int PythonQtWrapper_QTimerEvent::timerId(QTimerEvent* theWrappedObject) const -{ - return ( theWrappedObject->timerId()); -} - - - -void PythonQtShell_QTranslator::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTranslator::childEvent(arg__1); -} -void PythonQtShell_QTranslator::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTranslator::customEvent(arg__1); -} -bool PythonQtShell_QTranslator::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTranslator::event(arg__1); -} -bool PythonQtShell_QTranslator::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTranslator::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QTranslator::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTranslator::isEmpty(); -} -void PythonQtShell_QTranslator::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTranslator::timerEvent(arg__1); -} -QString PythonQtShell_QTranslator::translate(const char* context, const char* sourceText, const char* disambiguation) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "translate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const char*" , "const char*" , "const char*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&context, (void*)&sourceText, (void*)&disambiguation}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("translate", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTranslator::translate(context, sourceText, disambiguation); -} -QTranslator* PythonQtWrapper_QTranslator::new_QTranslator(QObject* parent) -{ -return new PythonQtShell_QTranslator(parent); } - -bool PythonQtWrapper_QTranslator::isEmpty(QTranslator* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTranslator*)theWrappedObject)->promoted_isEmpty()); -} - -bool PythonQtWrapper_QTranslator::load(QTranslator* theWrappedObject, const QString& filename, const QString& directory, const QString& search_delimiters, const QString& suffix) -{ - return ( theWrappedObject->load(filename, directory, search_delimiters, suffix)); -} - -bool PythonQtWrapper_QTranslator::load(QTranslator* theWrappedObject, const uchar* data, int len) -{ - return ( theWrappedObject->load(data, len)); -} - -QString PythonQtWrapper_QTranslator::translate(QTranslator* theWrappedObject, const char* context, const char* sourceText, const char* disambiguation) const -{ - return ( ((PythonQtPublicPromoter_QTranslator*)theWrappedObject)->promoted_translate(context, sourceText, disambiguation)); -} - - - -QUuid* PythonQtWrapper_QUuid::new_QUuid() -{ -return new PythonQtShell_QUuid(); } - -QUuid* PythonQtWrapper_QUuid::new_QUuid(const QString& arg__1) -{ -return new PythonQtShell_QUuid(arg__1); } - -QUuid* PythonQtWrapper_QUuid::new_QUuid(uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8) -{ -return new PythonQtShell_QUuid(l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8); } - -QUuid PythonQtWrapper_QUuid::static_QUuid_createUuid() -{ - return (QUuid::createUuid()); -} - -bool PythonQtWrapper_QUuid::isNull(QUuid* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QUuid::__ne__(QUuid* theWrappedObject, const QUuid& orig) const -{ - return ( (*theWrappedObject)!= orig); -} - -bool PythonQtWrapper_QUuid::__lt__(QUuid* theWrappedObject, const QUuid& other) const -{ - return ( (*theWrappedObject)< other); -} - -void PythonQtWrapper_QUuid::writeTo(QUuid* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QUuid::__eq__(QUuid* theWrappedObject, const QUuid& orig) const -{ - return ( (*theWrappedObject)== orig); -} - -bool PythonQtWrapper_QUuid::__gt__(QUuid* theWrappedObject, const QUuid& other) const -{ - return ( (*theWrappedObject)> other); -} - -void PythonQtWrapper_QUuid::readFrom(QUuid* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QString PythonQtWrapper_QUuid::toString(QUuid* theWrappedObject) const -{ - return ( theWrappedObject->toString()); -} - -QUuid::Variant PythonQtWrapper_QUuid::variant(QUuid* theWrappedObject) const -{ - return ( theWrappedObject->variant()); -} - -QUuid::Version PythonQtWrapper_QUuid::version(QUuid* theWrappedObject) const -{ - return ( theWrappedObject->version()); -} - -QString PythonQtWrapper_QUuid::py_toString(QUuid* obj) { return obj->toString(); } - - -void PythonQtShell_QVariantAnimation::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVariantAnimation::childEvent(arg__1); -} -void PythonQtShell_QVariantAnimation::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVariantAnimation::customEvent(arg__1); -} -int PythonQtShell_QVariantAnimation::duration() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "duration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("duration", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariantAnimation::duration(); -} -bool PythonQtShell_QVariantAnimation::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariantAnimation::event(event); -} -bool PythonQtShell_QVariantAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariantAnimation::eventFilter(arg__1, arg__2); -} -QVariant PythonQtShell_QVariantAnimation::interpolated(const QVariant& from, const QVariant& to, qreal progress) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "interpolated"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&" , "const QVariant&" , "qreal"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)&from, (void*)&to, (void*)&progress}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("interpolated", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariantAnimation::interpolated(from, to, progress); -} -void PythonQtShell_QVariantAnimation::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVariantAnimation::timerEvent(arg__1); -} -void PythonQtShell_QVariantAnimation::updateCurrentTime(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVariantAnimation::updateCurrentTime(arg__1); -} -void PythonQtShell_QVariantAnimation::updateCurrentValue(const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateCurrentValue"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QVariantAnimation::updateDirection(QAbstractAnimation::Direction direction) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateDirection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::Direction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&direction}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVariantAnimation::updateDirection(direction); -} -void PythonQtShell_QVariantAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractAnimation::State" , "QAbstractAnimation::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&newState, (void*)&oldState}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVariantAnimation::updateState(newState, oldState); -} -QVariantAnimation* PythonQtWrapper_QVariantAnimation::new_QVariantAnimation(QObject* parent) -{ -return new PythonQtShell_QVariantAnimation(parent); } - -QVariant PythonQtWrapper_QVariantAnimation::currentValue(QVariantAnimation* theWrappedObject) const -{ - return ( theWrappedObject->currentValue()); -} - -int PythonQtWrapper_QVariantAnimation::duration(QVariantAnimation* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_duration()); -} - -QEasingCurve PythonQtWrapper_QVariantAnimation::easingCurve(QVariantAnimation* theWrappedObject) const -{ - return ( theWrappedObject->easingCurve()); -} - -QVariant PythonQtWrapper_QVariantAnimation::endValue(QVariantAnimation* theWrappedObject) const -{ - return ( theWrappedObject->endValue()); -} - -bool PythonQtWrapper_QVariantAnimation::event(QVariantAnimation* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_event(event)); -} - -QVariant PythonQtWrapper_QVariantAnimation::interpolated(QVariantAnimation* theWrappedObject, const QVariant& from, const QVariant& to, qreal progress) const -{ - return ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_interpolated(from, to, progress)); -} - -QVariant PythonQtWrapper_QVariantAnimation::keyValueAt(QVariantAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->keyValueAt(step)); -} - -QVector > PythonQtWrapper_QVariantAnimation::keyValues(QVariantAnimation* theWrappedObject) const -{ - return ( theWrappedObject->keyValues()); -} - -void PythonQtWrapper_QVariantAnimation::setDuration(QVariantAnimation* theWrappedObject, int msecs) -{ - ( theWrappedObject->setDuration(msecs)); -} - -void PythonQtWrapper_QVariantAnimation::setEasingCurve(QVariantAnimation* theWrappedObject, const QEasingCurve& easing) -{ - ( theWrappedObject->setEasingCurve(easing)); -} - -void PythonQtWrapper_QVariantAnimation::setEndValue(QVariantAnimation* theWrappedObject, const QVariant& value) -{ - ( theWrappedObject->setEndValue(value)); -} - -void PythonQtWrapper_QVariantAnimation::setKeyValueAt(QVariantAnimation* theWrappedObject, qreal step, const QVariant& value) -{ - ( theWrappedObject->setKeyValueAt(step, value)); -} - -void PythonQtWrapper_QVariantAnimation::setKeyValues(QVariantAnimation* theWrappedObject, const QVector >& values) -{ - ( theWrappedObject->setKeyValues(values)); -} - -void PythonQtWrapper_QVariantAnimation::setStartValue(QVariantAnimation* theWrappedObject, const QVariant& value) -{ - ( theWrappedObject->setStartValue(value)); -} - -QVariant PythonQtWrapper_QVariantAnimation::startValue(QVariantAnimation* theWrappedObject) const -{ - return ( theWrappedObject->startValue()); -} - -void PythonQtWrapper_QVariantAnimation::updateCurrentTime(QVariantAnimation* theWrappedObject, int arg__1) -{ - ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_updateCurrentTime(arg__1)); -} - -void PythonQtWrapper_QVariantAnimation::updateState(QVariantAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState) -{ - ( ((PythonQtPublicPromoter_QVariantAnimation*)theWrappedObject)->promoted_updateState(newState, oldState)); -} - - - -QWaitCondition* PythonQtWrapper_QWaitCondition::new_QWaitCondition() -{ -return new QWaitCondition(); } - -bool PythonQtWrapper_QWaitCondition::wait(QWaitCondition* theWrappedObject, QMutex* mutex, unsigned long time) -{ - return ( theWrappedObject->wait(mutex, time)); -} - -bool PythonQtWrapper_QWaitCondition::wait(QWaitCondition* theWrappedObject, QReadWriteLock* readWriteLock, unsigned long time) -{ - return ( theWrappedObject->wait(readWriteLock, time)); -} - -void PythonQtWrapper_QWaitCondition::wakeAll(QWaitCondition* theWrappedObject) -{ - ( theWrappedObject->wakeAll()); -} - -void PythonQtWrapper_QWaitCondition::wakeOne(QWaitCondition* theWrappedObject) -{ - ( theWrappedObject->wakeOne()); -} - - - -QString PythonQtShell_QXmlStreamEntityResolver::resolveEntity(const QString& publicId, const QString& systemId) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resolveEntity"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QString&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&publicId, (void*)&systemId}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("resolveEntity", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QXmlStreamEntityResolver::resolveEntity(publicId, systemId); -} -QString PythonQtShell_QXmlStreamEntityResolver::resolveUndeclaredEntity(const QString& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resolveUndeclaredEntity"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("resolveUndeclaredEntity", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QXmlStreamEntityResolver::resolveUndeclaredEntity(name); -} -QXmlStreamEntityResolver* PythonQtWrapper_QXmlStreamEntityResolver::new_QXmlStreamEntityResolver() -{ -return new PythonQtShell_QXmlStreamEntityResolver(); } - -QString PythonQtWrapper_QXmlStreamEntityResolver::resolveEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& publicId, const QString& systemId) -{ - return ( ((PythonQtPublicPromoter_QXmlStreamEntityResolver*)theWrappedObject)->promoted_resolveEntity(publicId, systemId)); -} - -QString PythonQtWrapper_QXmlStreamEntityResolver::resolveUndeclaredEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& name) -{ - return ( ((PythonQtPublicPromoter_QXmlStreamEntityResolver*)theWrappedObject)->promoted_resolveUndeclaredEntity(name)); -} - - - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.h deleted file mode 100644 index 60e965ddc..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.h +++ /dev/null @@ -1,257 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QTimerEvent : public QTimerEvent -{ -public: - PythonQtShell_QTimerEvent(int timerId):QTimerEvent(timerId),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTimerEvent : public QObject -{ Q_OBJECT -public: -public slots: -QTimerEvent* new_QTimerEvent(int timerId); -void delete_QTimerEvent(QTimerEvent* obj) { delete obj; } - int timerId(QTimerEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTranslator : public QTranslator -{ -public: - PythonQtShell_QTranslator(QObject* parent = 0):QTranslator(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isEmpty() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual QString translate(const char* context, const char* sourceText, const char* disambiguation = 0) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTranslator : public QTranslator -{ public: -inline bool promoted_isEmpty() const { return QTranslator::isEmpty(); } -inline QString promoted_translate(const char* context, const char* sourceText, const char* disambiguation = 0) const { return QTranslator::translate(context, sourceText, disambiguation); } -}; - -class PythonQtWrapper_QTranslator : public QObject -{ Q_OBJECT -public: -public slots: -QTranslator* new_QTranslator(QObject* parent = 0); -void delete_QTranslator(QTranslator* obj) { delete obj; } - bool isEmpty(QTranslator* theWrappedObject) const; - bool load(QTranslator* theWrappedObject, const QString& filename, const QString& directory = QString(), const QString& search_delimiters = QString(), const QString& suffix = QString()); - bool load(QTranslator* theWrappedObject, const uchar* data, int len); - QString translate(QTranslator* theWrappedObject, const char* context, const char* sourceText, const char* disambiguation = 0) const; -}; - - - - - -class PythonQtShell_QUuid : public QUuid -{ -public: - PythonQtShell_QUuid():QUuid(),_wrapper(NULL) {}; - PythonQtShell_QUuid(const QString& arg__1):QUuid(arg__1),_wrapper(NULL) {}; - PythonQtShell_QUuid(uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8):QUuid(l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QUuid : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Variant Version ) -enum Variant{ - VarUnknown = QUuid::VarUnknown, NCS = QUuid::NCS, DCE = QUuid::DCE, Microsoft = QUuid::Microsoft, Reserved = QUuid::Reserved}; -enum Version{ - VerUnknown = QUuid::VerUnknown, Time = QUuid::Time, EmbeddedPOSIX = QUuid::EmbeddedPOSIX, Name = QUuid::Name, Random = QUuid::Random}; -public slots: -QUuid* new_QUuid(); -QUuid* new_QUuid(const QString& arg__1); -QUuid* new_QUuid(uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3, uchar b4, uchar b5, uchar b6, uchar b7, uchar b8); -QUuid* new_QUuid(const QUuid& other) { -PythonQtShell_QUuid* a = new PythonQtShell_QUuid(); -*((QUuid*)a) = other; -return a; } -void delete_QUuid(QUuid* obj) { delete obj; } - QUuid static_QUuid_createUuid(); - bool isNull(QUuid* theWrappedObject) const; - bool __ne__(QUuid* theWrappedObject, const QUuid& orig) const; - bool __lt__(QUuid* theWrappedObject, const QUuid& other) const; - void writeTo(QUuid* theWrappedObject, QDataStream& arg__1); - bool __eq__(QUuid* theWrappedObject, const QUuid& orig) const; - bool __gt__(QUuid* theWrappedObject, const QUuid& other) const; - void readFrom(QUuid* theWrappedObject, QDataStream& arg__1); - QString toString(QUuid* theWrappedObject) const; - QUuid::Variant variant(QUuid* theWrappedObject) const; - QUuid::Version version(QUuid* theWrappedObject) const; - QString py_toString(QUuid*); - bool __nonzero__(QUuid* obj) { return !obj->isNull(); } -void py_set_data1(QUuid* theWrappedObject, uint data1){ theWrappedObject->data1 = data1; } -uint py_get_data1(QUuid* theWrappedObject){ return theWrappedObject->data1; } -void py_set_data2(QUuid* theWrappedObject, ushort data2){ theWrappedObject->data2 = data2; } -ushort py_get_data2(QUuid* theWrappedObject){ return theWrappedObject->data2; } -void py_set_data3(QUuid* theWrappedObject, ushort data3){ theWrappedObject->data3 = data3; } -ushort py_get_data3(QUuid* theWrappedObject){ return theWrappedObject->data3; } -}; - - - - - -class PythonQtShell_QVariantAnimation : public QVariantAnimation -{ -public: - PythonQtShell_QVariantAnimation(QObject* parent = 0):QVariantAnimation(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int duration() const; -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QVariant interpolated(const QVariant& from, const QVariant& to, qreal progress) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateCurrentTime(int arg__1); -virtual void updateCurrentValue(const QVariant& value); -virtual void updateDirection(QAbstractAnimation::Direction direction); -virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QVariantAnimation : public QVariantAnimation -{ public: -inline int promoted_duration() const { return QVariantAnimation::duration(); } -inline bool promoted_event(QEvent* event) { return QVariantAnimation::event(event); } -inline QVariant promoted_interpolated(const QVariant& from, const QVariant& to, qreal progress) const { return QVariantAnimation::interpolated(from, to, progress); } -inline void promoted_updateCurrentTime(int arg__1) { QVariantAnimation::updateCurrentTime(arg__1); } -inline void promoted_updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { QVariantAnimation::updateState(newState, oldState); } -}; - -class PythonQtWrapper_QVariantAnimation : public QObject -{ Q_OBJECT -public: -public slots: -QVariantAnimation* new_QVariantAnimation(QObject* parent = 0); -void delete_QVariantAnimation(QVariantAnimation* obj) { delete obj; } - QVariant currentValue(QVariantAnimation* theWrappedObject) const; - int duration(QVariantAnimation* theWrappedObject) const; - QEasingCurve easingCurve(QVariantAnimation* theWrappedObject) const; - QVariant endValue(QVariantAnimation* theWrappedObject) const; - bool event(QVariantAnimation* theWrappedObject, QEvent* event); - QVariant interpolated(QVariantAnimation* theWrappedObject, const QVariant& from, const QVariant& to, qreal progress) const; - QVariant keyValueAt(QVariantAnimation* theWrappedObject, qreal step) const; - QVector > keyValues(QVariantAnimation* theWrappedObject) const; - void setDuration(QVariantAnimation* theWrappedObject, int msecs); - void setEasingCurve(QVariantAnimation* theWrappedObject, const QEasingCurve& easing); - void setEndValue(QVariantAnimation* theWrappedObject, const QVariant& value); - void setKeyValueAt(QVariantAnimation* theWrappedObject, qreal step, const QVariant& value); - void setKeyValues(QVariantAnimation* theWrappedObject, const QVector >& values); - void setStartValue(QVariantAnimation* theWrappedObject, const QVariant& value); - QVariant startValue(QVariantAnimation* theWrappedObject) const; - void updateCurrentTime(QVariantAnimation* theWrappedObject, int arg__1); - void updateState(QVariantAnimation* theWrappedObject, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); -}; - - - - - -class PythonQtWrapper_QWaitCondition : public QObject -{ Q_OBJECT -public: -public slots: -QWaitCondition* new_QWaitCondition(); -void delete_QWaitCondition(QWaitCondition* obj) { delete obj; } - bool wait(QWaitCondition* theWrappedObject, QMutex* mutex, unsigned long time = 0xffffffffUL); - bool wait(QWaitCondition* theWrappedObject, QReadWriteLock* readWriteLock, unsigned long time = 0xffffffffUL); - void wakeAll(QWaitCondition* theWrappedObject); - void wakeOne(QWaitCondition* theWrappedObject); -}; - - - - - -class PythonQtShell_QXmlStreamEntityResolver : public QXmlStreamEntityResolver -{ -public: - PythonQtShell_QXmlStreamEntityResolver():QXmlStreamEntityResolver(),_wrapper(NULL) {}; - -virtual QString resolveEntity(const QString& publicId, const QString& systemId); -virtual QString resolveUndeclaredEntity(const QString& name); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QXmlStreamEntityResolver : public QXmlStreamEntityResolver -{ public: -inline QString promoted_resolveEntity(const QString& publicId, const QString& systemId) { return QXmlStreamEntityResolver::resolveEntity(publicId, systemId); } -inline QString promoted_resolveUndeclaredEntity(const QString& name) { return QXmlStreamEntityResolver::resolveUndeclaredEntity(name); } -}; - -class PythonQtWrapper_QXmlStreamEntityResolver : public QObject -{ Q_OBJECT -public: -public slots: -QXmlStreamEntityResolver* new_QXmlStreamEntityResolver(); -void delete_QXmlStreamEntityResolver(QXmlStreamEntityResolver* obj) { delete obj; } - QString resolveEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& publicId, const QString& systemId); - QString resolveUndeclaredEntity(QXmlStreamEntityResolver* theWrappedObject, const QString& name); -}; - - - - - -class PythonQtWrapper_QtConcurrent : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ReduceOption ThreadFunctionResult ) -Q_FLAGS(ReduceOptions ) -enum ReduceOption{ - UnorderedReduce = QtConcurrent::UnorderedReduce, OrderedReduce = QtConcurrent::OrderedReduce, SequentialReduce = QtConcurrent::SequentialReduce}; -enum ThreadFunctionResult{ - ThrottleThread = QtConcurrent::ThrottleThread, ThreadFinished = QtConcurrent::ThreadFinished}; -Q_DECLARE_FLAGS(ReduceOptions, ReduceOption) -public slots: -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp deleted file mode 100644 index d6b344b2f..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp +++ /dev/null @@ -1,108 +0,0 @@ -#include -#include "com_trolltech_qt_core_init.h" -#include "com_trolltech_qt_core0.h" -#include "com_trolltech_qt_core1.h" -#include "com_trolltech_qt_core2.h" - -static void* polymorphichandler_QEvent(const void *ptr, char **class_name) -{ - Q_ASSERT(ptr != 0); - QEvent *object = (QEvent *)ptr; - if (object->type() == QEvent::None) { - *class_name = "QEvent"; - return (QEvent*)object; - } - if (object->type() == QEvent::ChildAdded || object->type() == QEvent::ChildPolished || object->type() == QEvent::ChildRemoved) { - *class_name = "QChildEvent"; - return (QChildEvent*)object; - } - if (object->type() == QEvent::StateMachineWrapped) { - *class_name = "QStateMachine_WrappedEvent"; - return (QStateMachine::WrappedEvent*)object; - } - if (object->type() == QEvent::StateMachineSignal) { - *class_name = "QStateMachine_SignalEvent"; - return (QStateMachine::SignalEvent*)object; - } - if (object->type() == QEvent::Timer) { - *class_name = "QTimerEvent"; - return (QTimerEvent*)object; - } - if (object->type() == QEvent::DynamicPropertyChange) { - *class_name = "QDynamicPropertyChangeEvent"; - return (QDynamicPropertyChangeEvent*)object; - } - return NULL; -} - -void PythonQt_init_QtCore(PyObject* module) { -PythonQt::priv()->registerClass(&QAbstractAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractItemModel::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractListModel::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractTransition::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAnimationGroup::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QBasicTimer", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QBuffer::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QByteArrayMatcher", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QChildEvent", "QEvent", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCoreApplication::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QCryptographicHash", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QDataStream", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QDir", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QDirIterator", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QDynamicPropertyChangeEvent", "QEvent", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QEasingCurve", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QEvent", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QEventLoop::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QEventTransition::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QFactoryInterface", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QFile::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QFileInfo", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QFileSystemWatcher::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QFinalState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QHistoryState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QIODevice::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QLibraryInfo", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QMimeData::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QModelIndex", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QMutex", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QObject::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QParallelAnimationGroup::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QPauseAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QProcess::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QProcessEnvironment", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QPropertyAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QReadWriteLock", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QRunnable", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QSemaphore", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QSequentialAnimationGroup::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSettings::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSignalMapper::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSignalTransition::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSocketNotifier::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QState::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QStateMachine::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStateMachine::SignalEvent", "QEvent", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QStateMachine::WrappedEvent", "QEvent", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QStringMatcher", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QSystemSemaphore", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QTemporaryFile::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextBoundaryFinder", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTextCodec", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextDecoder", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTextEncoder", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTextStream", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QThreadPool::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTimeLine::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTimer::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTimerEvent", "QEvent", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTranslator::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QUuid", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QVariantAnimation::staticMetaObject, "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QWaitCondition", "", "QtCore", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QXmlStreamEntityResolver", "", "QtCore", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QtConcurrent", "", "QtCore", PythonQtCreateObject, NULL, module, 0); - -PythonQt::self()->addPolymorphicHandler("QEvent", polymorphichandler_QEvent); -} diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.h deleted file mode 100644 index c6dd49c21..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef COM_TROLLTECH_QT_CORE_INIT_H -#define COM_TROLLTECH_QT_CORE_INIT_H - -#include "PythonQtSystem.h" - -PYTHONQT_EXPORT void PythonQt_init_QtCore(PyObject* module); - -#endif // COM_TROLLTECH_QT_CORE_INIT_H diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin.pri b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin.pri deleted file mode 100644 index 181c29c57..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin.pri +++ /dev/null @@ -1,6 +0,0 @@ -HEADERS += \ - $$PWD/com_trolltech_qt_core_builtin0.h \ - -SOURCES += \ - $$PWD/com_trolltech_qt_core_builtin0.cpp \ - $$PWD/com_trolltech_qt_core_builtin_init.cpp diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp deleted file mode 100644 index 3ad258e34..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp +++ /dev/null @@ -1,3698 +0,0 @@ -#include "com_trolltech_qt_core_builtin0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QBitArray* PythonQtWrapper_QBitArray::new_QBitArray() -{ -return new QBitArray(); } - -QBitArray* PythonQtWrapper_QBitArray::new_QBitArray(const QBitArray& other) -{ -return new QBitArray(other); } - -QBitArray* PythonQtWrapper_QBitArray::new_QBitArray(int size, bool val) -{ -return new QBitArray(size, val); } - -bool PythonQtWrapper_QBitArray::at(QBitArray* theWrappedObject, int i) const -{ - return ( theWrappedObject->at(i)); -} - -void PythonQtWrapper_QBitArray::clear(QBitArray* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -void PythonQtWrapper_QBitArray::clearBit(QBitArray* theWrappedObject, int i) -{ - ( theWrappedObject->clearBit(i)); -} - -int PythonQtWrapper_QBitArray::count(QBitArray* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QBitArray::count(QBitArray* theWrappedObject, bool on) const -{ - return ( theWrappedObject->count(on)); -} - -void PythonQtWrapper_QBitArray::fill(QBitArray* theWrappedObject, bool val, int first, int last) -{ - ( theWrappedObject->fill(val, first, last)); -} - -bool PythonQtWrapper_QBitArray::fill(QBitArray* theWrappedObject, bool val, int size) -{ - return ( theWrappedObject->fill(val, size)); -} - -bool PythonQtWrapper_QBitArray::isEmpty(QBitArray* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QBitArray::isNull(QBitArray* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QBitArray::__ne__(QBitArray* theWrappedObject, const QBitArray& a) const -{ - return ( (*theWrappedObject)!= a); -} - -QBitArray PythonQtWrapper_QBitArray::__and__(QBitArray* theWrappedObject, const QBitArray& arg__2) -{ - return ( (*theWrappedObject)& arg__2); -} - -QBitArray* PythonQtWrapper_QBitArray::__iand__(QBitArray* theWrappedObject, const QBitArray& arg__1) -{ - return &( (*theWrappedObject)&= arg__1); -} - -void PythonQtWrapper_QBitArray::writeTo(QBitArray* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -QBitArray* PythonQtWrapper_QBitArray::operator_assign(QBitArray* theWrappedObject, const QBitArray& other) -{ - return &( (*theWrappedObject)= other); -} - -bool PythonQtWrapper_QBitArray::__eq__(QBitArray* theWrappedObject, const QBitArray& a) const -{ - return ( (*theWrappedObject)== a); -} - -void PythonQtWrapper_QBitArray::readFrom(QBitArray* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QBitArray PythonQtWrapper_QBitArray::__xor__(QBitArray* theWrappedObject, const QBitArray& arg__2) -{ - return ( (*theWrappedObject)^ arg__2); -} - -QBitArray* PythonQtWrapper_QBitArray::__ixor__(QBitArray* theWrappedObject, const QBitArray& arg__1) -{ - return &( (*theWrappedObject)^= arg__1); -} - -QBitArray PythonQtWrapper_QBitArray::__or__(QBitArray* theWrappedObject, const QBitArray& arg__2) -{ - return ( (*theWrappedObject)| arg__2); -} - -QBitArray* PythonQtWrapper_QBitArray::__ior__(QBitArray* theWrappedObject, const QBitArray& arg__1) -{ - return &( (*theWrappedObject)|= arg__1); -} - -QBitArray PythonQtWrapper_QBitArray::__invert__(QBitArray* theWrappedObject) const -{ - return ( theWrappedObject->operator~()); -} - -void PythonQtWrapper_QBitArray::resize(QBitArray* theWrappedObject, int size) -{ - ( theWrappedObject->resize(size)); -} - -void PythonQtWrapper_QBitArray::setBit(QBitArray* theWrappedObject, int i) -{ - ( theWrappedObject->setBit(i)); -} - -void PythonQtWrapper_QBitArray::setBit(QBitArray* theWrappedObject, int i, bool val) -{ - ( theWrappedObject->setBit(i, val)); -} - -int PythonQtWrapper_QBitArray::size(QBitArray* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -bool PythonQtWrapper_QBitArray::testBit(QBitArray* theWrappedObject, int i) const -{ - return ( theWrappedObject->testBit(i)); -} - -bool PythonQtWrapper_QBitArray::toggleBit(QBitArray* theWrappedObject, int i) -{ - return ( theWrappedObject->toggleBit(i)); -} - -void PythonQtWrapper_QBitArray::truncate(QBitArray* theWrappedObject, int pos) -{ - ( theWrappedObject->truncate(pos)); -} - - - -QByteArray* PythonQtWrapper_QByteArray::new_QByteArray() -{ -return new QByteArray(); } - -QByteArray* PythonQtWrapper_QByteArray::new_QByteArray(const QByteArray& arg__1) -{ -return new QByteArray(arg__1); } - -QByteArray* PythonQtWrapper_QByteArray::new_QByteArray(int size, char c) -{ -return new QByteArray(size, c); } - -QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, char c) -{ - return &( theWrappedObject->append(c)); -} - -QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const QByteArray& a) -{ - return &( theWrappedObject->append(a)); -} - -#ifndef QT_NO_CAST_TO_ASCII -QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const QString& s) -{ - return &( theWrappedObject->append(s)); -} -#endif - -QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const char* s, int len) -{ - return &( theWrappedObject->append(s, len)); -} - -char PythonQtWrapper_QByteArray::at(QByteArray* theWrappedObject, int i) const -{ - return ( theWrappedObject->at(i)); -} - -int PythonQtWrapper_QByteArray::capacity(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->capacity()); -} - -void PythonQtWrapper_QByteArray::chop(QByteArray* theWrappedObject, int n) -{ - ( theWrappedObject->chop(n)); -} - -void PythonQtWrapper_QByteArray::clear(QByteArray* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -QBool PythonQtWrapper_QByteArray::contains(QByteArray* theWrappedObject, char c) const -{ - return ( theWrappedObject->contains(c)); -} - -QBool PythonQtWrapper_QByteArray::contains(QByteArray* theWrappedObject, const QByteArray& a) const -{ - return ( theWrappedObject->contains(a)); -} - -QBool PythonQtWrapper_QByteArray::contains(QByteArray* theWrappedObject, const char* a) const -{ - return ( theWrappedObject->contains(a)); -} - -int PythonQtWrapper_QByteArray::count(QByteArray* theWrappedObject, char c) const -{ - return ( theWrappedObject->count(c)); -} - -int PythonQtWrapper_QByteArray::count(QByteArray* theWrappedObject, const QByteArray& a) const -{ - return ( theWrappedObject->count(a)); -} - -bool PythonQtWrapper_QByteArray::endsWith(QByteArray* theWrappedObject, char c) const -{ - return ( theWrappedObject->endsWith(c)); -} - -bool PythonQtWrapper_QByteArray::endsWith(QByteArray* theWrappedObject, const QByteArray& a) const -{ - return ( theWrappedObject->endsWith(a)); -} - -QByteArray* PythonQtWrapper_QByteArray::fill(QByteArray* theWrappedObject, char c, int size) -{ - return &( theWrappedObject->fill(c, size)); -} - -QByteArray PythonQtWrapper_QByteArray::static_QByteArray_fromBase64(const QByteArray& base64) -{ - return (QByteArray::fromBase64(base64)); -} - -QByteArray PythonQtWrapper_QByteArray::static_QByteArray_fromHex(const QByteArray& hexEncoded) -{ - return (QByteArray::fromHex(hexEncoded)); -} - -QByteArray PythonQtWrapper_QByteArray::static_QByteArray_fromPercentEncoding(const QByteArray& pctEncoded, char percent) -{ - return (QByteArray::fromPercentEncoding(pctEncoded, percent)); -} - -int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, char c, int from) const -{ - return ( theWrappedObject->indexOf(c, from)); -} - -int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QByteArray& a, int from) const -{ - return ( theWrappedObject->indexOf(a, from)); -} - -#ifndef QT_NO_CAST_TO_ASCII -int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QString& s, int from) const -{ - return ( theWrappedObject->indexOf(s, from)); -} -#endif - -QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, char c) -{ - return &( theWrappedObject->insert(i, c)); -} - -QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const QByteArray& a) -{ - return &( theWrappedObject->insert(i, a)); -} - -#ifndef QT_NO_CAST_TO_ASCII -QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const QString& s) -{ - return &( theWrappedObject->insert(i, s)); -} -#endif - -QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const char* s, int len) -{ - return &( theWrappedObject->insert(i, s, len)); -} - -bool PythonQtWrapper_QByteArray::isEmpty(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QByteArray::isNull(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, char c, int from) const -{ - return ( theWrappedObject->lastIndexOf(c, from)); -} - -int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const QByteArray& a, int from) const -{ - return ( theWrappedObject->lastIndexOf(a, from)); -} - -#ifndef QT_NO_CAST_TO_ASCII -int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const QString& s, int from) const -{ - return ( theWrappedObject->lastIndexOf(s, from)); -} -#endif - -QByteArray PythonQtWrapper_QByteArray::left(QByteArray* theWrappedObject, int len) const -{ - return ( theWrappedObject->left(len)); -} - -QByteArray PythonQtWrapper_QByteArray::leftJustified(QByteArray* theWrappedObject, int width, char fill, bool truncate) const -{ - return ( theWrappedObject->leftJustified(width, fill, truncate)); -} - -int PythonQtWrapper_QByteArray::length(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -QByteArray PythonQtWrapper_QByteArray::mid(QByteArray* theWrappedObject, int index, int len) const -{ - return ( theWrappedObject->mid(index, len)); -} - -QByteArray PythonQtWrapper_QByteArray::static_QByteArray_number(double arg__1, char f, int prec) -{ - return (QByteArray::number(arg__1, f, prec)); -} - -QByteArray PythonQtWrapper_QByteArray::static_QByteArray_number(int arg__1, int base) -{ - return (QByteArray::number(arg__1, base)); -} - -QByteArray PythonQtWrapper_QByteArray::static_QByteArray_number(qlonglong arg__1, int base) -{ - return (QByteArray::number(arg__1, base)); -} - -QByteArray PythonQtWrapper_QByteArray::static_QByteArray_number(qulonglong arg__1, int base) -{ - return (QByteArray::number(arg__1, base)); -} - -const QByteArray PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, char a2) -{ - return ( (*theWrappedObject)+ a2); -} - -const QByteArray PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, const QByteArray& a2) -{ - return ( (*theWrappedObject)+ a2); -} - -const QString PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, const QString& s) -{ - return ( (*theWrappedObject)+ s); -} - -const QByteArray PythonQtWrapper_QByteArray::__add__(QByteArray* theWrappedObject, const char* a2) -{ - return ( (*theWrappedObject)+ a2); -} - -QByteArray* PythonQtWrapper_QByteArray::__iadd__(QByteArray* theWrappedObject, const QByteArray& a) -{ - return &( (*theWrappedObject)+= a); -} - -bool PythonQtWrapper_QByteArray::__lt__(QByteArray* theWrappedObject, const QByteArray& a2) -{ - return ( (*theWrappedObject)< a2); -} - -bool PythonQtWrapper_QByteArray::__lt__(QByteArray* theWrappedObject, const QString& s2) const -{ - return ( (*theWrappedObject)< s2); -} - -void PythonQtWrapper_QByteArray::writeTo(QByteArray* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QByteArray::__le__(QByteArray* theWrappedObject, const QByteArray& a2) -{ - return ( (*theWrappedObject)<= a2); -} - -bool PythonQtWrapper_QByteArray::__le__(QByteArray* theWrappedObject, const QString& s2) const -{ - return ( (*theWrappedObject)<= s2); -} - -QByteArray* PythonQtWrapper_QByteArray::operator_assign(QByteArray* theWrappedObject, const QByteArray& arg__1) -{ - return &( (*theWrappedObject)= arg__1); -} - -bool PythonQtWrapper_QByteArray::__eq__(QByteArray* theWrappedObject, const QByteArray& a2) -{ - return ( (*theWrappedObject)== a2); -} - -bool PythonQtWrapper_QByteArray::__eq__(QByteArray* theWrappedObject, const QString& s2) const -{ - return ( (*theWrappedObject)== s2); -} - -bool PythonQtWrapper_QByteArray::__gt__(QByteArray* theWrappedObject, const QByteArray& a2) -{ - return ( (*theWrappedObject)> a2); -} - -bool PythonQtWrapper_QByteArray::__gt__(QByteArray* theWrappedObject, const QString& s2) const -{ - return ( (*theWrappedObject)> s2); -} - -bool PythonQtWrapper_QByteArray::__ge__(QByteArray* theWrappedObject, const QByteArray& a2) -{ - return ( (*theWrappedObject)>= a2); -} - -bool PythonQtWrapper_QByteArray::__ge__(QByteArray* theWrappedObject, const QString& s2) const -{ - return ( (*theWrappedObject)>= s2); -} - -void PythonQtWrapper_QByteArray::readFrom(QByteArray* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QByteArray* PythonQtWrapper_QByteArray::prepend(QByteArray* theWrappedObject, char c) -{ - return &( theWrappedObject->prepend(c)); -} - -QByteArray* PythonQtWrapper_QByteArray::prepend(QByteArray* theWrappedObject, const QByteArray& a) -{ - return &( theWrappedObject->prepend(a)); -} - -QByteArray* PythonQtWrapper_QByteArray::prepend(QByteArray* theWrappedObject, const char* s, int len) -{ - return &( theWrappedObject->prepend(s, len)); -} - -void PythonQtWrapper_QByteArray::push_back(QByteArray* theWrappedObject, const QByteArray& a) -{ - ( theWrappedObject->push_back(a)); -} - -void PythonQtWrapper_QByteArray::push_front(QByteArray* theWrappedObject, const QByteArray& a) -{ - ( theWrappedObject->push_front(a)); -} - -QByteArray* PythonQtWrapper_QByteArray::remove(QByteArray* theWrappedObject, int index, int len) -{ - return &( theWrappedObject->remove(index, len)); -} - -QByteArray PythonQtWrapper_QByteArray::repeated(QByteArray* theWrappedObject, int times) const -{ - return ( theWrappedObject->repeated(times)); -} - -QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char before, char after) -{ - return &( theWrappedObject->replace(before, after)); -} - -QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char before, const QByteArray& after) -{ - return &( theWrappedObject->replace(before, after)); -} - -#ifndef QT_NO_CAST_TO_ASCII -QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char c, const QString& after) -{ - return &( theWrappedObject->replace(c, after)); -} -#endif - -QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QByteArray& before, const QByteArray& after) -{ - return &( theWrappedObject->replace(before, after)); -} - -#ifndef QT_NO_CAST_TO_ASCII -QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QString& before, const QByteArray& after) -{ - return &( theWrappedObject->replace(before, after)); -} -#endif - -QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const char* before, int bsize, const char* after, int asize) -{ - return &( theWrappedObject->replace(before, bsize, after, asize)); -} - -QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, int index, int len, const QByteArray& s) -{ - return &( theWrappedObject->replace(index, len, s)); -} - -void PythonQtWrapper_QByteArray::reserve(QByteArray* theWrappedObject, int size) -{ - ( theWrappedObject->reserve(size)); -} - -void PythonQtWrapper_QByteArray::resize(QByteArray* theWrappedObject, int size) -{ - ( theWrappedObject->resize(size)); -} - -QByteArray PythonQtWrapper_QByteArray::right(QByteArray* theWrappedObject, int len) const -{ - return ( theWrappedObject->right(len)); -} - -QByteArray PythonQtWrapper_QByteArray::rightJustified(QByteArray* theWrappedObject, int width, char fill, bool truncate) const -{ - return ( theWrappedObject->rightJustified(width, fill, truncate)); -} - -QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, double arg__1, char f, int prec) -{ - return &( theWrappedObject->setNum(arg__1, f, prec)); -} - -QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, float arg__1, char f, int prec) -{ - return &( theWrappedObject->setNum(arg__1, f, prec)); -} - -QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, int arg__1, int base) -{ - return &( theWrappedObject->setNum(arg__1, base)); -} - -QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, qlonglong arg__1, int base) -{ - return &( theWrappedObject->setNum(arg__1, base)); -} - -QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, qulonglong arg__1, int base) -{ - return &( theWrappedObject->setNum(arg__1, base)); -} - -QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, short arg__1, int base) -{ - return &( theWrappedObject->setNum(arg__1, base)); -} - -QByteArray* PythonQtWrapper_QByteArray::setNum(QByteArray* theWrappedObject, ushort arg__1, int base) -{ - return &( theWrappedObject->setNum(arg__1, base)); -} - -QByteArray PythonQtWrapper_QByteArray::simplified(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->simplified()); -} - -int PythonQtWrapper_QByteArray::size(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QList PythonQtWrapper_QByteArray::split(QByteArray* theWrappedObject, char sep) const -{ - return ( theWrappedObject->split(sep)); -} - -void PythonQtWrapper_QByteArray::squeeze(QByteArray* theWrappedObject) -{ - ( theWrappedObject->squeeze()); -} - -bool PythonQtWrapper_QByteArray::startsWith(QByteArray* theWrappedObject, char c) const -{ - return ( theWrappedObject->startsWith(c)); -} - -bool PythonQtWrapper_QByteArray::startsWith(QByteArray* theWrappedObject, const QByteArray& a) const -{ - return ( theWrappedObject->startsWith(a)); -} - -QByteArray PythonQtWrapper_QByteArray::toBase64(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->toBase64()); -} - -double PythonQtWrapper_QByteArray::toDouble(QByteArray* theWrappedObject, bool* ok) const -{ - return ( theWrappedObject->toDouble(ok)); -} - -float PythonQtWrapper_QByteArray::toFloat(QByteArray* theWrappedObject, bool* ok) const -{ - return ( theWrappedObject->toFloat(ok)); -} - -QByteArray PythonQtWrapper_QByteArray::toHex(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->toHex()); -} - -int PythonQtWrapper_QByteArray::toInt(QByteArray* theWrappedObject, bool* ok, int base) const -{ - return ( theWrappedObject->toInt(ok, base)); -} - -QByteArray PythonQtWrapper_QByteArray::toLower(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->toLower()); -} - -QByteArray PythonQtWrapper_QByteArray::toPercentEncoding(QByteArray* theWrappedObject, const QByteArray& exclude, const QByteArray& include, char percent) const -{ - return ( theWrappedObject->toPercentEncoding(exclude, include, percent)); -} - -ushort PythonQtWrapper_QByteArray::toUShort(QByteArray* theWrappedObject, bool* ok, int base) const -{ - return ( theWrappedObject->toUShort(ok, base)); -} - -QByteArray PythonQtWrapper_QByteArray::toUpper(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->toUpper()); -} - -QByteArray PythonQtWrapper_QByteArray::trimmed(QByteArray* theWrappedObject) const -{ - return ( theWrappedObject->trimmed()); -} - -void PythonQtWrapper_QByteArray::truncate(QByteArray* theWrappedObject, int pos) -{ - ( theWrappedObject->truncate(pos)); -} - - - -QDate* PythonQtWrapper_QDate::new_QDate() -{ -return new QDate(); } - -QDate* PythonQtWrapper_QDate::new_QDate(int y, int m, int d) -{ -return new QDate(y, m, d); } - -QDate PythonQtWrapper_QDate::addDays(QDate* theWrappedObject, int days) const -{ - return ( theWrappedObject->addDays(days)); -} - -QDate PythonQtWrapper_QDate::addMonths(QDate* theWrappedObject, int months) const -{ - return ( theWrappedObject->addMonths(months)); -} - -QDate PythonQtWrapper_QDate::addYears(QDate* theWrappedObject, int years) const -{ - return ( theWrappedObject->addYears(years)); -} - -QDate PythonQtWrapper_QDate::static_QDate_currentDate() -{ - return (QDate::currentDate()); -} - -int PythonQtWrapper_QDate::day(QDate* theWrappedObject) const -{ - return ( theWrappedObject->day()); -} - -int PythonQtWrapper_QDate::dayOfWeek(QDate* theWrappedObject) const -{ - return ( theWrappedObject->dayOfWeek()); -} - -int PythonQtWrapper_QDate::dayOfYear(QDate* theWrappedObject) const -{ - return ( theWrappedObject->dayOfYear()); -} - -int PythonQtWrapper_QDate::daysInMonth(QDate* theWrappedObject) const -{ - return ( theWrappedObject->daysInMonth()); -} - -int PythonQtWrapper_QDate::daysInYear(QDate* theWrappedObject) const -{ - return ( theWrappedObject->daysInYear()); -} - -int PythonQtWrapper_QDate::daysTo(QDate* theWrappedObject, const QDate& arg__1) const -{ - return ( theWrappedObject->daysTo(arg__1)); -} - -QDate PythonQtWrapper_QDate::static_QDate_fromJulianDay(int jd) -{ - return (QDate::fromJulianDay(jd)); -} - -QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, Qt::DateFormat f) -{ - return (QDate::fromString(s, f)); -} - -QDate PythonQtWrapper_QDate::static_QDate_fromString(const QString& s, const QString& format) -{ - return (QDate::fromString(s, format)); -} - -void PythonQtWrapper_QDate::getDate(QDate* theWrappedObject, int* year, int* month, int* day) -{ - ( theWrappedObject->getDate(year, month, day)); -} - -uint PythonQtWrapper_QDate::static_QDate_gregorianToJulian(int y, int m, int d) -{ - return (QDate::gregorianToJulian(y, m, d)); -} - -bool PythonQtWrapper_QDate::static_QDate_isLeapYear(int year) -{ - return (QDate::isLeapYear(year)); -} - -bool PythonQtWrapper_QDate::isNull(QDate* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QDate::isValid(QDate* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -bool PythonQtWrapper_QDate::static_QDate_isValid(int y, int m, int d) -{ - return (QDate::isValid(y, m, d)); -} - -QString PythonQtWrapper_QDate::static_QDate_longDayName(int weekday) -{ - return (QDate::longDayName(weekday)); -} - -QString PythonQtWrapper_QDate::static_QDate_longDayName(int weekday, QDate::MonthNameType type) -{ - return (QDate::longDayName(weekday, type)); -} - -QString PythonQtWrapper_QDate::static_QDate_longMonthName(int month) -{ - return (QDate::longMonthName(month)); -} - -QString PythonQtWrapper_QDate::static_QDate_longMonthName(int month, QDate::MonthNameType type) -{ - return (QDate::longMonthName(month, type)); -} - -int PythonQtWrapper_QDate::month(QDate* theWrappedObject) const -{ - return ( theWrappedObject->month()); -} - -bool PythonQtWrapper_QDate::__ne__(QDate* theWrappedObject, const QDate& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QDate::__lt__(QDate* theWrappedObject, const QDate& other) const -{ - return ( (*theWrappedObject)< other); -} - -void PythonQtWrapper_QDate::writeTo(QDate* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QDate::__le__(QDate* theWrappedObject, const QDate& other) const -{ - return ( (*theWrappedObject)<= other); -} - -bool PythonQtWrapper_QDate::__eq__(QDate* theWrappedObject, const QDate& other) const -{ - return ( (*theWrappedObject)== other); -} - -bool PythonQtWrapper_QDate::__gt__(QDate* theWrappedObject, const QDate& other) const -{ - return ( (*theWrappedObject)> other); -} - -bool PythonQtWrapper_QDate::__ge__(QDate* theWrappedObject, const QDate& other) const -{ - return ( (*theWrappedObject)>= other); -} - -void PythonQtWrapper_QDate::readFrom(QDate* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -bool PythonQtWrapper_QDate::setDate(QDate* theWrappedObject, int year, int month, int day) -{ - return ( theWrappedObject->setDate(year, month, day)); -} - -QString PythonQtWrapper_QDate::static_QDate_shortDayName(int weekday) -{ - return (QDate::shortDayName(weekday)); -} - -QString PythonQtWrapper_QDate::static_QDate_shortDayName(int weekday, QDate::MonthNameType type) -{ - return (QDate::shortDayName(weekday, type)); -} - -QString PythonQtWrapper_QDate::static_QDate_shortMonthName(int month) -{ - return (QDate::shortMonthName(month)); -} - -QString PythonQtWrapper_QDate::static_QDate_shortMonthName(int month, QDate::MonthNameType type) -{ - return (QDate::shortMonthName(month, type)); -} - -int PythonQtWrapper_QDate::toJulianDay(QDate* theWrappedObject) const -{ - return ( theWrappedObject->toJulianDay()); -} - -QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, Qt::DateFormat f) const -{ - return ( theWrappedObject->toString(f)); -} - -QString PythonQtWrapper_QDate::toString(QDate* theWrappedObject, const QString& format) const -{ - return ( theWrappedObject->toString(format)); -} - -int PythonQtWrapper_QDate::weekNumber(QDate* theWrappedObject, int* yearNum) const -{ - return ( theWrappedObject->weekNumber(yearNum)); -} - -int PythonQtWrapper_QDate::year(QDate* theWrappedObject) const -{ - return ( theWrappedObject->year()); -} - -QString PythonQtWrapper_QDate::py_toString(QDate* obj) { return obj->toString(); } - - -QDateTime* PythonQtWrapper_QDateTime::new_QDateTime() -{ -return new QDateTime(); } - -QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDate& arg__1) -{ -return new QDateTime(arg__1); } - -QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDate& arg__1, const QTime& arg__2, Qt::TimeSpec spec) -{ -return new QDateTime(arg__1, arg__2, spec); } - -QDateTime* PythonQtWrapper_QDateTime::new_QDateTime(const QDateTime& other) -{ -return new QDateTime(other); } - -QDateTime PythonQtWrapper_QDateTime::addDays(QDateTime* theWrappedObject, int days) const -{ - return ( theWrappedObject->addDays(days)); -} - -QDateTime PythonQtWrapper_QDateTime::addMSecs(QDateTime* theWrappedObject, qint64 msecs) const -{ - return ( theWrappedObject->addMSecs(msecs)); -} - -QDateTime PythonQtWrapper_QDateTime::addMonths(QDateTime* theWrappedObject, int months) const -{ - return ( theWrappedObject->addMonths(months)); -} - -QDateTime PythonQtWrapper_QDateTime::addSecs(QDateTime* theWrappedObject, int secs) const -{ - return ( theWrappedObject->addSecs(secs)); -} - -QDateTime PythonQtWrapper_QDateTime::addYears(QDateTime* theWrappedObject, int years) const -{ - return ( theWrappedObject->addYears(years)); -} - -QDateTime PythonQtWrapper_QDateTime::static_QDateTime_currentDateTime() -{ - return (QDateTime::currentDateTime()); -} - -QDate PythonQtWrapper_QDateTime::date(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->date()); -} - -int PythonQtWrapper_QDateTime::daysTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const -{ - return ( theWrappedObject->daysTo(arg__1)); -} - -QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromString(const QString& s, Qt::DateFormat f) -{ - return (QDateTime::fromString(s, f)); -} - -QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromString(const QString& s, const QString& format) -{ - return (QDateTime::fromString(s, format)); -} - -QDateTime PythonQtWrapper_QDateTime::static_QDateTime_fromTime_t(uint secsSince1Jan1970UTC) -{ - return (QDateTime::fromTime_t(secsSince1Jan1970UTC)); -} - -bool PythonQtWrapper_QDateTime::isNull(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QDateTime::isValid(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -bool PythonQtWrapper_QDateTime::__ne__(QDateTime* theWrappedObject, const QDateTime& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QDateTime::__lt__(QDateTime* theWrappedObject, const QDateTime& other) const -{ - return ( (*theWrappedObject)< other); -} - -void PythonQtWrapper_QDateTime::writeTo(QDateTime* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QDateTime::__le__(QDateTime* theWrappedObject, const QDateTime& other) const -{ - return ( (*theWrappedObject)<= other); -} - -bool PythonQtWrapper_QDateTime::__eq__(QDateTime* theWrappedObject, const QDateTime& other) const -{ - return ( (*theWrappedObject)== other); -} - -bool PythonQtWrapper_QDateTime::__gt__(QDateTime* theWrappedObject, const QDateTime& other) const -{ - return ( (*theWrappedObject)> other); -} - -bool PythonQtWrapper_QDateTime::__ge__(QDateTime* theWrappedObject, const QDateTime& other) const -{ - return ( (*theWrappedObject)>= other); -} - -void PythonQtWrapper_QDateTime::readFrom(QDateTime* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -int PythonQtWrapper_QDateTime::secsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const -{ - return ( theWrappedObject->secsTo(arg__1)); -} - -void PythonQtWrapper_QDateTime::setDate(QDateTime* theWrappedObject, const QDate& date) -{ - ( theWrappedObject->setDate(date)); -} - -void PythonQtWrapper_QDateTime::setTime(QDateTime* theWrappedObject, const QTime& time) -{ - ( theWrappedObject->setTime(time)); -} - -void PythonQtWrapper_QDateTime::setTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) -{ - ( theWrappedObject->setTimeSpec(spec)); -} - -void PythonQtWrapper_QDateTime::setTime_t(QDateTime* theWrappedObject, uint secsSince1Jan1970UTC) -{ - ( theWrappedObject->setTime_t(secsSince1Jan1970UTC)); -} - -void PythonQtWrapper_QDateTime::setUtcOffset(QDateTime* theWrappedObject, int seconds) -{ - ( theWrappedObject->setUtcOffset(seconds)); -} - -QTime PythonQtWrapper_QDateTime::time(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->time()); -} - -Qt::TimeSpec PythonQtWrapper_QDateTime::timeSpec(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->timeSpec()); -} - -QDateTime PythonQtWrapper_QDateTime::toLocalTime(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->toLocalTime()); -} - -QString PythonQtWrapper_QDateTime::toString(QDateTime* theWrappedObject, Qt::DateFormat f) const -{ - return ( theWrappedObject->toString(f)); -} - -QString PythonQtWrapper_QDateTime::toString(QDateTime* theWrappedObject, const QString& format) const -{ - return ( theWrappedObject->toString(format)); -} - -QDateTime PythonQtWrapper_QDateTime::toTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) const -{ - return ( theWrappedObject->toTimeSpec(spec)); -} - -uint PythonQtWrapper_QDateTime::toTime_t(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->toTime_t()); -} - -QDateTime PythonQtWrapper_QDateTime::toUTC(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->toUTC()); -} - -int PythonQtWrapper_QDateTime::utcOffset(QDateTime* theWrappedObject) const -{ - return ( theWrappedObject->utcOffset()); -} - -QString PythonQtWrapper_QDateTime::py_toString(QDateTime* obj) { return obj->toString(); } - - -QLine* PythonQtWrapper_QLine::new_QLine() -{ -return new QLine(); } - -QLine* PythonQtWrapper_QLine::new_QLine(const QPoint& pt1, const QPoint& pt2) -{ -return new QLine(pt1, pt2); } - -QLine* PythonQtWrapper_QLine::new_QLine(int x1, int y1, int x2, int y2) -{ -return new QLine(x1, y1, x2, y2); } - -int PythonQtWrapper_QLine::dx(QLine* theWrappedObject) const -{ - return ( theWrappedObject->dx()); -} - -int PythonQtWrapper_QLine::dy(QLine* theWrappedObject) const -{ - return ( theWrappedObject->dy()); -} - -bool PythonQtWrapper_QLine::isNull(QLine* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QLine::__ne__(QLine* theWrappedObject, const QLine& d) const -{ - return ( (*theWrappedObject)!= d); -} - -QLine PythonQtWrapper_QLine::__mul__(QLine* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QLine PythonQtWrapper_QLine::__mul__(QLine* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -void PythonQtWrapper_QLine::writeTo(QLine* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QLine::__eq__(QLine* theWrappedObject, const QLine& d) const -{ - return ( (*theWrappedObject)== d); -} - -void PythonQtWrapper_QLine::readFrom(QLine* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPoint PythonQtWrapper_QLine::p1(QLine* theWrappedObject) const -{ - return ( theWrappedObject->p1()); -} - -QPoint PythonQtWrapper_QLine::p2(QLine* theWrappedObject) const -{ - return ( theWrappedObject->p2()); -} - -void PythonQtWrapper_QLine::setLine(QLine* theWrappedObject, int x1, int y1, int x2, int y2) -{ - ( theWrappedObject->setLine(x1, y1, x2, y2)); -} - -void PythonQtWrapper_QLine::setP1(QLine* theWrappedObject, const QPoint& p1) -{ - ( theWrappedObject->setP1(p1)); -} - -void PythonQtWrapper_QLine::setP2(QLine* theWrappedObject, const QPoint& p2) -{ - ( theWrappedObject->setP2(p2)); -} - -void PythonQtWrapper_QLine::setPoints(QLine* theWrappedObject, const QPoint& p1, const QPoint& p2) -{ - ( theWrappedObject->setPoints(p1, p2)); -} - -void PythonQtWrapper_QLine::translate(QLine* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->translate(p)); -} - -void PythonQtWrapper_QLine::translate(QLine* theWrappedObject, int dx, int dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QLine PythonQtWrapper_QLine::translated(QLine* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->translated(p)); -} - -QLine PythonQtWrapper_QLine::translated(QLine* theWrappedObject, int dx, int dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -int PythonQtWrapper_QLine::x1(QLine* theWrappedObject) const -{ - return ( theWrappedObject->x1()); -} - -int PythonQtWrapper_QLine::x2(QLine* theWrappedObject) const -{ - return ( theWrappedObject->x2()); -} - -int PythonQtWrapper_QLine::y1(QLine* theWrappedObject) const -{ - return ( theWrappedObject->y1()); -} - -int PythonQtWrapper_QLine::y2(QLine* theWrappedObject) const -{ - return ( theWrappedObject->y2()); -} - -QString PythonQtWrapper_QLine::py_toString(QLine* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QLineF* PythonQtWrapper_QLineF::new_QLineF() -{ -return new QLineF(); } - -QLineF* PythonQtWrapper_QLineF::new_QLineF(const QLine& line) -{ -return new QLineF(line); } - -QLineF* PythonQtWrapper_QLineF::new_QLineF(const QPointF& pt1, const QPointF& pt2) -{ -return new QLineF(pt1, pt2); } - -QLineF* PythonQtWrapper_QLineF::new_QLineF(qreal x1, qreal y1, qreal x2, qreal y2) -{ -return new QLineF(x1, y1, x2, y2); } - -qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->angle()); -} - -qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject, const QLineF& l) const -{ - return ( theWrappedObject->angle(l)); -} - -qreal PythonQtWrapper_QLineF::angleTo(QLineF* theWrappedObject, const QLineF& l) const -{ - return ( theWrappedObject->angleTo(l)); -} - -qreal PythonQtWrapper_QLineF::dx(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->dx()); -} - -qreal PythonQtWrapper_QLineF::dy(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->dy()); -} - -QLineF PythonQtWrapper_QLineF::static_QLineF_fromPolar(qreal length, qreal angle) -{ - return (QLineF::fromPolar(length, angle)); -} - -QLineF::IntersectType PythonQtWrapper_QLineF::intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const -{ - return ( theWrappedObject->intersect(l, intersectionPoint)); -} - -bool PythonQtWrapper_QLineF::isNull(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -qreal PythonQtWrapper_QLineF::length(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -QLineF PythonQtWrapper_QLineF::normalVector(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->normalVector()); -} - -bool PythonQtWrapper_QLineF::__ne__(QLineF* theWrappedObject, const QLineF& d) const -{ - return ( (*theWrappedObject)!= d); -} - -QLineF PythonQtWrapper_QLineF::__mul__(QLineF* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QLineF PythonQtWrapper_QLineF::__mul__(QLineF* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -void PythonQtWrapper_QLineF::writeTo(QLineF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QLineF::__eq__(QLineF* theWrappedObject, const QLineF& d) const -{ - return ( (*theWrappedObject)== d); -} - -void PythonQtWrapper_QLineF::readFrom(QLineF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPointF PythonQtWrapper_QLineF::p1(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->p1()); -} - -QPointF PythonQtWrapper_QLineF::p2(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->p2()); -} - -QPointF PythonQtWrapper_QLineF::pointAt(QLineF* theWrappedObject, qreal t) const -{ - return ( theWrappedObject->pointAt(t)); -} - -void PythonQtWrapper_QLineF::setAngle(QLineF* theWrappedObject, qreal angle) -{ - ( theWrappedObject->setAngle(angle)); -} - -void PythonQtWrapper_QLineF::setLength(QLineF* theWrappedObject, qreal len) -{ - ( theWrappedObject->setLength(len)); -} - -void PythonQtWrapper_QLineF::setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) -{ - ( theWrappedObject->setLine(x1, y1, x2, y2)); -} - -void PythonQtWrapper_QLineF::setP1(QLineF* theWrappedObject, const QPointF& p1) -{ - ( theWrappedObject->setP1(p1)); -} - -void PythonQtWrapper_QLineF::setP2(QLineF* theWrappedObject, const QPointF& p2) -{ - ( theWrappedObject->setP2(p2)); -} - -void PythonQtWrapper_QLineF::setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2) -{ - ( theWrappedObject->setPoints(p1, p2)); -} - -QLine PythonQtWrapper_QLineF::toLine(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->toLine()); -} - -void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->translate(p)); -} - -void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, const QPointF& p) const -{ - return ( theWrappedObject->translated(p)); -} - -QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, qreal dx, qreal dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -QLineF PythonQtWrapper_QLineF::unitVector(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->unitVector()); -} - -qreal PythonQtWrapper_QLineF::x1(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->x1()); -} - -qreal PythonQtWrapper_QLineF::x2(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->x2()); -} - -qreal PythonQtWrapper_QLineF::y1(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->y1()); -} - -qreal PythonQtWrapper_QLineF::y2(QLineF* theWrappedObject) const -{ - return ( theWrappedObject->y2()); -} - -QString PythonQtWrapper_QLineF::py_toString(QLineF* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QLocale* PythonQtWrapper_QLocale::new_QLocale() -{ -return new QLocale(); } - -QLocale* PythonQtWrapper_QLocale::new_QLocale(QLocale::Language language, QLocale::Country country) -{ -return new QLocale(language, country); } - -QLocale* PythonQtWrapper_QLocale::new_QLocale(const QLocale& other) -{ -return new QLocale(other); } - -QLocale* PythonQtWrapper_QLocale::new_QLocale(const QString& name) -{ -return new QLocale(name); } - -QString PythonQtWrapper_QLocale::amText(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->amText()); -} - -QLocale PythonQtWrapper_QLocale::static_QLocale_c() -{ - return (QLocale::c()); -} - -QList PythonQtWrapper_QLocale::static_QLocale_countriesForLanguage(QLocale::Language lang) -{ - return (QLocale::countriesForLanguage(lang)); -} - -QLocale::Country PythonQtWrapper_QLocale::country(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->country()); -} - -QString PythonQtWrapper_QLocale::static_QLocale_countryToString(QLocale::Country country) -{ - return (QLocale::countryToString(country)); -} - -QString PythonQtWrapper_QLocale::dateFormat(QLocale* theWrappedObject, QLocale::FormatType format) const -{ - return ( theWrappedObject->dateFormat(format)); -} - -QString PythonQtWrapper_QLocale::dateTimeFormat(QLocale* theWrappedObject, QLocale::FormatType format) const -{ - return ( theWrappedObject->dateTimeFormat(format)); -} - -QString PythonQtWrapper_QLocale::dayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const -{ - return ( theWrappedObject->dayName(arg__1, format)); -} - -QChar PythonQtWrapper_QLocale::decimalPoint(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->decimalPoint()); -} - -QChar PythonQtWrapper_QLocale::exponential(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->exponential()); -} - -QChar PythonQtWrapper_QLocale::groupSeparator(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->groupSeparator()); -} - -QLocale::Language PythonQtWrapper_QLocale::language(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->language()); -} - -QString PythonQtWrapper_QLocale::static_QLocale_languageToString(QLocale::Language language) -{ - return (QLocale::languageToString(language)); -} - -QLocale::MeasurementSystem PythonQtWrapper_QLocale::measurementSystem(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->measurementSystem()); -} - -QString PythonQtWrapper_QLocale::monthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const -{ - return ( theWrappedObject->monthName(arg__1, format)); -} - -QString PythonQtWrapper_QLocale::name(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - -QChar PythonQtWrapper_QLocale::negativeSign(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->negativeSign()); -} - -QLocale::NumberOptions PythonQtWrapper_QLocale::numberOptions(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->numberOptions()); -} - -bool PythonQtWrapper_QLocale::__ne__(QLocale* theWrappedObject, const QLocale& other) const -{ - return ( (*theWrappedObject)!= other); -} - -void PythonQtWrapper_QLocale::writeTo(QLocale* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QLocale::__eq__(QLocale* theWrappedObject, const QLocale& other) const -{ - return ( (*theWrappedObject)== other); -} - -void PythonQtWrapper_QLocale::readFrom(QLocale* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QChar PythonQtWrapper_QLocale::percent(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->percent()); -} - -QString PythonQtWrapper_QLocale::pmText(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->pmText()); -} - -QChar PythonQtWrapper_QLocale::positiveSign(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->positiveSign()); -} - -void PythonQtWrapper_QLocale::static_QLocale_setDefault(const QLocale& locale) -{ - (QLocale::setDefault(locale)); -} - -void PythonQtWrapper_QLocale::setNumberOptions(QLocale* theWrappedObject, QLocale::NumberOptions options) -{ - ( theWrappedObject->setNumberOptions(options)); -} - -QString PythonQtWrapper_QLocale::standaloneDayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const -{ - return ( theWrappedObject->standaloneDayName(arg__1, format)); -} - -QString PythonQtWrapper_QLocale::standaloneMonthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format) const -{ - return ( theWrappedObject->standaloneMonthName(arg__1, format)); -} - -QLocale PythonQtWrapper_QLocale::static_QLocale_system() -{ - return (QLocale::system()); -} - -QString PythonQtWrapper_QLocale::timeFormat(QLocale* theWrappedObject, QLocale::FormatType format) const -{ - return ( theWrappedObject->timeFormat(format)); -} - -QDate PythonQtWrapper_QLocale::toDate(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2) const -{ - return ( theWrappedObject->toDate(string, arg__2)); -} - -QDate PythonQtWrapper_QLocale::toDate(QLocale* theWrappedObject, const QString& string, const QString& format) const -{ - return ( theWrappedObject->toDate(string, format)); -} - -QDateTime PythonQtWrapper_QLocale::toDateTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType format) const -{ - return ( theWrappedObject->toDateTime(string, format)); -} - -QDateTime PythonQtWrapper_QLocale::toDateTime(QLocale* theWrappedObject, const QString& string, const QString& format) const -{ - return ( theWrappedObject->toDateTime(string, format)); -} - -double PythonQtWrapper_QLocale::toDouble(QLocale* theWrappedObject, const QString& s, bool* ok) const -{ - return ( theWrappedObject->toDouble(s, ok)); -} - -float PythonQtWrapper_QLocale::toFloat(QLocale* theWrappedObject, const QString& s, bool* ok) const -{ - return ( theWrappedObject->toFloat(s, ok)); -} - -int PythonQtWrapper_QLocale::toInt(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const -{ - return ( theWrappedObject->toInt(s, ok, base)); -} - -qlonglong PythonQtWrapper_QLocale::toLongLong(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const -{ - return ( theWrappedObject->toLongLong(s, ok, base)); -} - -short PythonQtWrapper_QLocale::toShort(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const -{ - return ( theWrappedObject->toShort(s, ok, base)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDate& date, QLocale::FormatType format) const -{ - return ( theWrappedObject->toString(date, format)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDate& date, const QString& formatStr) const -{ - return ( theWrappedObject->toString(date, formatStr)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDateTime& dateTime, QLocale::FormatType format) const -{ - return ( theWrappedObject->toString(dateTime, format)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QDateTime& dateTime, const QString& format) const -{ - return ( theWrappedObject->toString(dateTime, format)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QTime& time, QLocale::FormatType format) const -{ - return ( theWrappedObject->toString(time, format)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, const QTime& time, const QString& formatStr) const -{ - return ( theWrappedObject->toString(time, formatStr)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, double i, char f, int prec) const -{ - return ( theWrappedObject->toString(i, f, prec)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, float i, char f, int prec) const -{ - return ( theWrappedObject->toString(i, f, prec)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, int i) const -{ - return ( theWrappedObject->toString(i)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, qlonglong i) const -{ - return ( theWrappedObject->toString(i)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, qulonglong i) const -{ - return ( theWrappedObject->toString(i)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, short i) const -{ - return ( theWrappedObject->toString(i)); -} - -QString PythonQtWrapper_QLocale::toString(QLocale* theWrappedObject, ushort i) const -{ - return ( theWrappedObject->toString(i)); -} - -QTime PythonQtWrapper_QLocale::toTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2) const -{ - return ( theWrappedObject->toTime(string, arg__2)); -} - -QTime PythonQtWrapper_QLocale::toTime(QLocale* theWrappedObject, const QString& string, const QString& format) const -{ - return ( theWrappedObject->toTime(string, format)); -} - -ushort PythonQtWrapper_QLocale::toUShort(QLocale* theWrappedObject, const QString& s, bool* ok, int base) const -{ - return ( theWrappedObject->toUShort(s, ok, base)); -} - -QChar PythonQtWrapper_QLocale::zeroDigit(QLocale* theWrappedObject) const -{ - return ( theWrappedObject->zeroDigit()); -} - - - -QPoint* PythonQtWrapper_QPoint::new_QPoint() -{ -return new QPoint(); } - -QPoint* PythonQtWrapper_QPoint::new_QPoint(int xpos, int ypos) -{ -return new QPoint(xpos, ypos); } - -bool PythonQtWrapper_QPoint::isNull(QPoint* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -int PythonQtWrapper_QPoint::manhattanLength(QPoint* theWrappedObject) const -{ - return ( theWrappedObject->manhattanLength()); -} - -QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, const QMatrix4x4& matrix) -{ - return ( (*theWrappedObject)* matrix); -} - -QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -const QPoint PythonQtWrapper_QPoint::__mul__(QPoint* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)* c); -} - -QPoint* PythonQtWrapper_QPoint::__imul__(QPoint* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)*= c); -} - -const QPoint PythonQtWrapper_QPoint::__add__(QPoint* theWrappedObject, const QPoint& p2) -{ - return ( (*theWrappedObject)+ p2); -} - -QPoint* PythonQtWrapper_QPoint::__iadd__(QPoint* theWrappedObject, const QPoint& p) -{ - return &( (*theWrappedObject)+= p); -} - -const QPoint PythonQtWrapper_QPoint::__sub__(QPoint* theWrappedObject, const QPoint& p2) -{ - return ( (*theWrappedObject)- p2); -} - -QPoint* PythonQtWrapper_QPoint::__isub__(QPoint* theWrappedObject, const QPoint& p) -{ - return &( (*theWrappedObject)-= p); -} - -const QPoint PythonQtWrapper_QPoint::__div__(QPoint* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)/ c); -} - -QPoint* PythonQtWrapper_QPoint::__idiv__(QPoint* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)/= c); -} - -void PythonQtWrapper_QPoint::writeTo(QPoint* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QPoint::__eq__(QPoint* theWrappedObject, const QPoint& p2) -{ - return ( (*theWrappedObject)== p2); -} - -void PythonQtWrapper_QPoint::readFrom(QPoint* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QPoint::setX(QPoint* theWrappedObject, int x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QPoint::setY(QPoint* theWrappedObject, int y) -{ - ( theWrappedObject->setY(y)); -} - -int PythonQtWrapper_QPoint::x(QPoint* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QPoint::y(QPoint* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -QString PythonQtWrapper_QPoint::py_toString(QPoint* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QPointF* PythonQtWrapper_QPointF::new_QPointF() -{ -return new QPointF(); } - -QPointF* PythonQtWrapper_QPointF::new_QPointF(const QPoint& p) -{ -return new QPointF(p); } - -QPointF* PythonQtWrapper_QPointF::new_QPointF(qreal xpos, qreal ypos) -{ -return new QPointF(xpos, ypos); } - -bool PythonQtWrapper_QPointF::isNull(QPointF* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -qreal PythonQtWrapper_QPointF::manhattanLength(QPointF* theWrappedObject) const -{ - return ( theWrappedObject->manhattanLength()); -} - -QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, const QMatrix4x4& matrix) -{ - return ( (*theWrappedObject)* matrix); -} - -QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -const QPointF PythonQtWrapper_QPointF::__mul__(QPointF* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)* c); -} - -QPointF* PythonQtWrapper_QPointF::__imul__(QPointF* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)*= c); -} - -const QPointF PythonQtWrapper_QPointF::__add__(QPointF* theWrappedObject, const QPointF& p2) -{ - return ( (*theWrappedObject)+ p2); -} - -QPointF* PythonQtWrapper_QPointF::__iadd__(QPointF* theWrappedObject, const QPointF& p) -{ - return &( (*theWrappedObject)+= p); -} - -const QPointF PythonQtWrapper_QPointF::__sub__(QPointF* theWrappedObject, const QPointF& p2) -{ - return ( (*theWrappedObject)- p2); -} - -QPointF* PythonQtWrapper_QPointF::__isub__(QPointF* theWrappedObject, const QPointF& p) -{ - return &( (*theWrappedObject)-= p); -} - -const QPointF PythonQtWrapper_QPointF::__div__(QPointF* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)/ c); -} - -QPointF* PythonQtWrapper_QPointF::__idiv__(QPointF* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)/= c); -} - -void PythonQtWrapper_QPointF::writeTo(QPointF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QPointF::__eq__(QPointF* theWrappedObject, const QPointF& p2) -{ - return ( (*theWrappedObject)== p2); -} - -void PythonQtWrapper_QPointF::readFrom(QPointF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QPointF::setX(QPointF* theWrappedObject, qreal x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QPointF::setY(QPointF* theWrappedObject, qreal y) -{ - ( theWrappedObject->setY(y)); -} - -QPoint PythonQtWrapper_QPointF::toPoint(QPointF* theWrappedObject) const -{ - return ( theWrappedObject->toPoint()); -} - -qreal PythonQtWrapper_QPointF::x(QPointF* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -qreal PythonQtWrapper_QPointF::y(QPointF* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -QString PythonQtWrapper_QPointF::py_toString(QPointF* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QRect* PythonQtWrapper_QRect::new_QRect() -{ -return new QRect(); } - -QRect* PythonQtWrapper_QRect::new_QRect(const QPoint& topleft, const QPoint& bottomright) -{ -return new QRect(topleft, bottomright); } - -QRect* PythonQtWrapper_QRect::new_QRect(const QPoint& topleft, const QSize& size) -{ -return new QRect(topleft, size); } - -QRect* PythonQtWrapper_QRect::new_QRect(int left, int top, int width, int height) -{ -return new QRect(left, top, width, height); } - -void PythonQtWrapper_QRect::adjust(QRect* theWrappedObject, int x1, int y1, int x2, int y2) -{ - ( theWrappedObject->adjust(x1, y1, x2, y2)); -} - -QRect PythonQtWrapper_QRect::adjusted(QRect* theWrappedObject, int x1, int y1, int x2, int y2) const -{ - return ( theWrappedObject->adjusted(x1, y1, x2, y2)); -} - -int PythonQtWrapper_QRect::bottom(QRect* theWrappedObject) const -{ - return ( theWrappedObject->bottom()); -} - -QPoint PythonQtWrapper_QRect::bottomLeft(QRect* theWrappedObject) const -{ - return ( theWrappedObject->bottomLeft()); -} - -QPoint PythonQtWrapper_QRect::bottomRight(QRect* theWrappedObject) const -{ - return ( theWrappedObject->bottomRight()); -} - -QPoint PythonQtWrapper_QRect::center(QRect* theWrappedObject) const -{ - return ( theWrappedObject->center()); -} - -bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, const QPoint& p, bool proper) const -{ - return ( theWrappedObject->contains(p, proper)); -} - -bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, const QRect& r, bool proper) const -{ - return ( theWrappedObject->contains(r, proper)); -} - -bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->contains(x, y)); -} - -bool PythonQtWrapper_QRect::contains(QRect* theWrappedObject, int x, int y, bool proper) const -{ - return ( theWrappedObject->contains(x, y, proper)); -} - -int PythonQtWrapper_QRect::height(QRect* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -QRect PythonQtWrapper_QRect::intersected(QRect* theWrappedObject, const QRect& other) const -{ - return ( theWrappedObject->intersected(other)); -} - -bool PythonQtWrapper_QRect::intersects(QRect* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->intersects(r)); -} - -bool PythonQtWrapper_QRect::isEmpty(QRect* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QRect::isNull(QRect* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QRect::isValid(QRect* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -int PythonQtWrapper_QRect::left(QRect* theWrappedObject) const -{ - return ( theWrappedObject->left()); -} - -void PythonQtWrapper_QRect::moveBottom(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->moveBottom(pos)); -} - -void PythonQtWrapper_QRect::moveBottomLeft(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->moveBottomLeft(p)); -} - -void PythonQtWrapper_QRect::moveBottomRight(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->moveBottomRight(p)); -} - -void PythonQtWrapper_QRect::moveCenter(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->moveCenter(p)); -} - -void PythonQtWrapper_QRect::moveLeft(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->moveLeft(pos)); -} - -void PythonQtWrapper_QRect::moveRight(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->moveRight(pos)); -} - -void PythonQtWrapper_QRect::moveTo(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->moveTo(p)); -} - -void PythonQtWrapper_QRect::moveTo(QRect* theWrappedObject, int x, int t) -{ - ( theWrappedObject->moveTo(x, t)); -} - -void PythonQtWrapper_QRect::moveTop(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->moveTop(pos)); -} - -void PythonQtWrapper_QRect::moveTopLeft(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->moveTopLeft(p)); -} - -void PythonQtWrapper_QRect::moveTopRight(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->moveTopRight(p)); -} - -QRect PythonQtWrapper_QRect::normalized(QRect* theWrappedObject) const -{ - return ( theWrappedObject->normalized()); -} - -void PythonQtWrapper_QRect::writeTo(QRect* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QRect::__eq__(QRect* theWrappedObject, const QRect& arg__2) -{ - return ( (*theWrappedObject)== arg__2); -} - -void PythonQtWrapper_QRect::readFrom(QRect* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -int PythonQtWrapper_QRect::right(QRect* theWrappedObject) const -{ - return ( theWrappedObject->right()); -} - -void PythonQtWrapper_QRect::setBottom(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->setBottom(pos)); -} - -void PythonQtWrapper_QRect::setBottomLeft(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->setBottomLeft(p)); -} - -void PythonQtWrapper_QRect::setBottomRight(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->setBottomRight(p)); -} - -void PythonQtWrapper_QRect::setCoords(QRect* theWrappedObject, int x1, int y1, int x2, int y2) -{ - ( theWrappedObject->setCoords(x1, y1, x2, y2)); -} - -void PythonQtWrapper_QRect::setHeight(QRect* theWrappedObject, int h) -{ - ( theWrappedObject->setHeight(h)); -} - -void PythonQtWrapper_QRect::setLeft(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->setLeft(pos)); -} - -void PythonQtWrapper_QRect::setRect(QRect* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->setRect(x, y, w, h)); -} - -void PythonQtWrapper_QRect::setRight(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->setRight(pos)); -} - -void PythonQtWrapper_QRect::setSize(QRect* theWrappedObject, const QSize& s) -{ - ( theWrappedObject->setSize(s)); -} - -void PythonQtWrapper_QRect::setTop(QRect* theWrappedObject, int pos) -{ - ( theWrappedObject->setTop(pos)); -} - -void PythonQtWrapper_QRect::setTopLeft(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->setTopLeft(p)); -} - -void PythonQtWrapper_QRect::setTopRight(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->setTopRight(p)); -} - -void PythonQtWrapper_QRect::setWidth(QRect* theWrappedObject, int w) -{ - ( theWrappedObject->setWidth(w)); -} - -void PythonQtWrapper_QRect::setX(QRect* theWrappedObject, int x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QRect::setY(QRect* theWrappedObject, int y) -{ - ( theWrappedObject->setY(y)); -} - -QSize PythonQtWrapper_QRect::size(QRect* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -int PythonQtWrapper_QRect::top(QRect* theWrappedObject) const -{ - return ( theWrappedObject->top()); -} - -QPoint PythonQtWrapper_QRect::topLeft(QRect* theWrappedObject) const -{ - return ( theWrappedObject->topLeft()); -} - -QPoint PythonQtWrapper_QRect::topRight(QRect* theWrappedObject) const -{ - return ( theWrappedObject->topRight()); -} - -void PythonQtWrapper_QRect::translate(QRect* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->translate(p)); -} - -void PythonQtWrapper_QRect::translate(QRect* theWrappedObject, int dx, int dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QRect PythonQtWrapper_QRect::translated(QRect* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->translated(p)); -} - -QRect PythonQtWrapper_QRect::translated(QRect* theWrappedObject, int dx, int dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -QRect PythonQtWrapper_QRect::united(QRect* theWrappedObject, const QRect& other) const -{ - return ( theWrappedObject->united(other)); -} - -int PythonQtWrapper_QRect::width(QRect* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -int PythonQtWrapper_QRect::x(QRect* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QRect::y(QRect* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -QString PythonQtWrapper_QRect::py_toString(QRect* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QRectF* PythonQtWrapper_QRectF::new_QRectF() -{ -return new QRectF(); } - -QRectF* PythonQtWrapper_QRectF::new_QRectF(const QPointF& topleft, const QPointF& bottomRight) -{ -return new QRectF(topleft, bottomRight); } - -QRectF* PythonQtWrapper_QRectF::new_QRectF(const QPointF& topleft, const QSizeF& size) -{ -return new QRectF(topleft, size); } - -QRectF* PythonQtWrapper_QRectF::new_QRectF(const QRect& rect) -{ -return new QRectF(rect); } - -QRectF* PythonQtWrapper_QRectF::new_QRectF(qreal left, qreal top, qreal width, qreal height) -{ -return new QRectF(left, top, width, height); } - -void PythonQtWrapper_QRectF::adjust(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) -{ - ( theWrappedObject->adjust(x1, y1, x2, y2)); -} - -QRectF PythonQtWrapper_QRectF::adjusted(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) const -{ - return ( theWrappedObject->adjusted(x1, y1, x2, y2)); -} - -qreal PythonQtWrapper_QRectF::bottom(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->bottom()); -} - -QPointF PythonQtWrapper_QRectF::bottomLeft(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->bottomLeft()); -} - -QPointF PythonQtWrapper_QRectF::bottomRight(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->bottomRight()); -} - -QPointF PythonQtWrapper_QRectF::center(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->center()); -} - -bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, const QPointF& p) const -{ - return ( theWrappedObject->contains(p)); -} - -bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, const QRectF& r) const -{ - return ( theWrappedObject->contains(r)); -} - -bool PythonQtWrapper_QRectF::contains(QRectF* theWrappedObject, qreal x, qreal y) const -{ - return ( theWrappedObject->contains(x, y)); -} - -void PythonQtWrapper_QRectF::getCoords(QRectF* theWrappedObject, qreal* x1, qreal* y1, qreal* x2, qreal* y2) const -{ - ( theWrappedObject->getCoords(x1, y1, x2, y2)); -} - -void PythonQtWrapper_QRectF::getRect(QRectF* theWrappedObject, qreal* x, qreal* y, qreal* w, qreal* h) const -{ - ( theWrappedObject->getRect(x, y, w, h)); -} - -qreal PythonQtWrapper_QRectF::height(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -QRectF PythonQtWrapper_QRectF::intersected(QRectF* theWrappedObject, const QRectF& other) const -{ - return ( theWrappedObject->intersected(other)); -} - -bool PythonQtWrapper_QRectF::intersects(QRectF* theWrappedObject, const QRectF& r) const -{ - return ( theWrappedObject->intersects(r)); -} - -bool PythonQtWrapper_QRectF::isEmpty(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QRectF::isNull(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QRectF::isValid(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -qreal PythonQtWrapper_QRectF::left(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->left()); -} - -void PythonQtWrapper_QRectF::moveBottom(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->moveBottom(pos)); -} - -void PythonQtWrapper_QRectF::moveBottomLeft(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->moveBottomLeft(p)); -} - -void PythonQtWrapper_QRectF::moveBottomRight(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->moveBottomRight(p)); -} - -void PythonQtWrapper_QRectF::moveCenter(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->moveCenter(p)); -} - -void PythonQtWrapper_QRectF::moveLeft(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->moveLeft(pos)); -} - -void PythonQtWrapper_QRectF::moveRight(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->moveRight(pos)); -} - -void PythonQtWrapper_QRectF::moveTo(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->moveTo(p)); -} - -void PythonQtWrapper_QRectF::moveTo(QRectF* theWrappedObject, qreal x, qreal t) -{ - ( theWrappedObject->moveTo(x, t)); -} - -void PythonQtWrapper_QRectF::moveTop(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->moveTop(pos)); -} - -void PythonQtWrapper_QRectF::moveTopLeft(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->moveTopLeft(p)); -} - -void PythonQtWrapper_QRectF::moveTopRight(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->moveTopRight(p)); -} - -QRectF PythonQtWrapper_QRectF::normalized(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->normalized()); -} - -void PythonQtWrapper_QRectF::writeTo(QRectF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QRectF::__eq__(QRectF* theWrappedObject, const QRectF& arg__2) -{ - return ( (*theWrappedObject)== arg__2); -} - -void PythonQtWrapper_QRectF::readFrom(QRectF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -qreal PythonQtWrapper_QRectF::right(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->right()); -} - -void PythonQtWrapper_QRectF::setBottom(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->setBottom(pos)); -} - -void PythonQtWrapper_QRectF::setBottomLeft(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->setBottomLeft(p)); -} - -void PythonQtWrapper_QRectF::setBottomRight(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->setBottomRight(p)); -} - -void PythonQtWrapper_QRectF::setCoords(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) -{ - ( theWrappedObject->setCoords(x1, y1, x2, y2)); -} - -void PythonQtWrapper_QRectF::setHeight(QRectF* theWrappedObject, qreal h) -{ - ( theWrappedObject->setHeight(h)); -} - -void PythonQtWrapper_QRectF::setLeft(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->setLeft(pos)); -} - -void PythonQtWrapper_QRectF::setRect(QRectF* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->setRect(x, y, w, h)); -} - -void PythonQtWrapper_QRectF::setRight(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->setRight(pos)); -} - -void PythonQtWrapper_QRectF::setSize(QRectF* theWrappedObject, const QSizeF& s) -{ - ( theWrappedObject->setSize(s)); -} - -void PythonQtWrapper_QRectF::setTop(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->setTop(pos)); -} - -void PythonQtWrapper_QRectF::setTopLeft(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->setTopLeft(p)); -} - -void PythonQtWrapper_QRectF::setTopRight(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->setTopRight(p)); -} - -void PythonQtWrapper_QRectF::setWidth(QRectF* theWrappedObject, qreal w) -{ - ( theWrappedObject->setWidth(w)); -} - -void PythonQtWrapper_QRectF::setX(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->setX(pos)); -} - -void PythonQtWrapper_QRectF::setY(QRectF* theWrappedObject, qreal pos) -{ - ( theWrappedObject->setY(pos)); -} - -QSizeF PythonQtWrapper_QRectF::size(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QRect PythonQtWrapper_QRectF::toAlignedRect(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->toAlignedRect()); -} - -QRect PythonQtWrapper_QRectF::toRect(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->toRect()); -} - -qreal PythonQtWrapper_QRectF::top(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->top()); -} - -QPointF PythonQtWrapper_QRectF::topLeft(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->topLeft()); -} - -QPointF PythonQtWrapper_QRectF::topRight(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->topRight()); -} - -void PythonQtWrapper_QRectF::translate(QRectF* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->translate(p)); -} - -void PythonQtWrapper_QRectF::translate(QRectF* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QRectF PythonQtWrapper_QRectF::translated(QRectF* theWrappedObject, const QPointF& p) const -{ - return ( theWrappedObject->translated(p)); -} - -QRectF PythonQtWrapper_QRectF::translated(QRectF* theWrappedObject, qreal dx, qreal dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -QRectF PythonQtWrapper_QRectF::united(QRectF* theWrappedObject, const QRectF& other) const -{ - return ( theWrappedObject->united(other)); -} - -qreal PythonQtWrapper_QRectF::width(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -qreal PythonQtWrapper_QRectF::x(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -qreal PythonQtWrapper_QRectF::y(QRectF* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -QString PythonQtWrapper_QRectF::py_toString(QRectF* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QRegExp* PythonQtWrapper_QRegExp::new_QRegExp() -{ -return new QRegExp(); } - -QRegExp* PythonQtWrapper_QRegExp::new_QRegExp(const QRegExp& rx) -{ -return new QRegExp(rx); } - -QRegExp* PythonQtWrapper_QRegExp::new_QRegExp(const QString& pattern, Qt::CaseSensitivity cs, QRegExp::PatternSyntax syntax) -{ -return new QRegExp(pattern, cs, syntax); } - -QString PythonQtWrapper_QRegExp::cap(QRegExp* theWrappedObject, int nth) -{ - return ( theWrappedObject->cap(nth)); -} - -int PythonQtWrapper_QRegExp::captureCount(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->captureCount()); -} - -QStringList PythonQtWrapper_QRegExp::capturedTexts(QRegExp* theWrappedObject) -{ - return ( theWrappedObject->capturedTexts()); -} - -Qt::CaseSensitivity PythonQtWrapper_QRegExp::caseSensitivity(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->caseSensitivity()); -} - -QString PythonQtWrapper_QRegExp::errorString(QRegExp* theWrappedObject) -{ - return ( theWrappedObject->errorString()); -} - -QString PythonQtWrapper_QRegExp::static_QRegExp_escape(const QString& str) -{ - return (QRegExp::escape(str)); -} - -bool PythonQtWrapper_QRegExp::exactMatch(QRegExp* theWrappedObject, const QString& str) const -{ - return ( theWrappedObject->exactMatch(str)); -} - -int PythonQtWrapper_QRegExp::indexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const -{ - return ( theWrappedObject->indexIn(str, offset, caretMode)); -} - -bool PythonQtWrapper_QRegExp::isEmpty(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QRegExp::isMinimal(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->isMinimal()); -} - -bool PythonQtWrapper_QRegExp::isValid(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -int PythonQtWrapper_QRegExp::lastIndexIn(QRegExp* theWrappedObject, const QString& str, int offset, QRegExp::CaretMode caretMode) const -{ - return ( theWrappedObject->lastIndexIn(str, offset, caretMode)); -} - -int PythonQtWrapper_QRegExp::matchedLength(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->matchedLength()); -} - -int PythonQtWrapper_QRegExp::numCaptures(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->numCaptures()); -} - -bool PythonQtWrapper_QRegExp::__ne__(QRegExp* theWrappedObject, const QRegExp& rx) const -{ - return ( (*theWrappedObject)!= rx); -} - -void PythonQtWrapper_QRegExp::writeTo(QRegExp* theWrappedObject, QDataStream& out) -{ - out << (*theWrappedObject); -} - -bool PythonQtWrapper_QRegExp::__eq__(QRegExp* theWrappedObject, const QRegExp& rx) const -{ - return ( (*theWrappedObject)== rx); -} - -void PythonQtWrapper_QRegExp::readFrom(QRegExp* theWrappedObject, QDataStream& in) -{ - in >> (*theWrappedObject); -} - -QString PythonQtWrapper_QRegExp::pattern(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->pattern()); -} - -QRegExp::PatternSyntax PythonQtWrapper_QRegExp::patternSyntax(QRegExp* theWrappedObject) const -{ - return ( theWrappedObject->patternSyntax()); -} - -int PythonQtWrapper_QRegExp::pos(QRegExp* theWrappedObject, int nth) -{ - return ( theWrappedObject->pos(nth)); -} - -void PythonQtWrapper_QRegExp::setCaseSensitivity(QRegExp* theWrappedObject, Qt::CaseSensitivity cs) -{ - ( theWrappedObject->setCaseSensitivity(cs)); -} - -void PythonQtWrapper_QRegExp::setMinimal(QRegExp* theWrappedObject, bool minimal) -{ - ( theWrappedObject->setMinimal(minimal)); -} - -void PythonQtWrapper_QRegExp::setPattern(QRegExp* theWrappedObject, const QString& pattern) -{ - ( theWrappedObject->setPattern(pattern)); -} - -void PythonQtWrapper_QRegExp::setPatternSyntax(QRegExp* theWrappedObject, QRegExp::PatternSyntax syntax) -{ - ( theWrappedObject->setPatternSyntax(syntax)); -} - - - -QSize* PythonQtWrapper_QSize::new_QSize() -{ -return new QSize(); } - -QSize* PythonQtWrapper_QSize::new_QSize(int w, int h) -{ -return new QSize(w, h); } - -QSize PythonQtWrapper_QSize::boundedTo(QSize* theWrappedObject, const QSize& arg__1) const -{ - return ( theWrappedObject->boundedTo(arg__1)); -} - -QSize PythonQtWrapper_QSize::expandedTo(QSize* theWrappedObject, const QSize& arg__1) const -{ - return ( theWrappedObject->expandedTo(arg__1)); -} - -int PythonQtWrapper_QSize::height(QSize* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QSize::isEmpty(QSize* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QSize::isNull(QSize* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QSize::isValid(QSize* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -const QSize PythonQtWrapper_QSize::__mul__(QSize* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)* c); -} - -QSize* PythonQtWrapper_QSize::__imul__(QSize* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)*= c); -} - -const QSize PythonQtWrapper_QSize::__add__(QSize* theWrappedObject, const QSize& s2) -{ - return ( (*theWrappedObject)+ s2); -} - -QSize* PythonQtWrapper_QSize::__iadd__(QSize* theWrappedObject, const QSize& arg__1) -{ - return &( (*theWrappedObject)+= arg__1); -} - -const QSize PythonQtWrapper_QSize::__sub__(QSize* theWrappedObject, const QSize& s2) -{ - return ( (*theWrappedObject)- s2); -} - -QSize* PythonQtWrapper_QSize::__isub__(QSize* theWrappedObject, const QSize& arg__1) -{ - return &( (*theWrappedObject)-= arg__1); -} - -const QSize PythonQtWrapper_QSize::__div__(QSize* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)/ c); -} - -QSize* PythonQtWrapper_QSize::__idiv__(QSize* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)/= c); -} - -void PythonQtWrapper_QSize::writeTo(QSize* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QSize::__eq__(QSize* theWrappedObject, const QSize& s2) -{ - return ( (*theWrappedObject)== s2); -} - -void PythonQtWrapper_QSize::readFrom(QSize* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QSize::scale(QSize* theWrappedObject, const QSize& s, Qt::AspectRatioMode mode) -{ - ( theWrappedObject->scale(s, mode)); -} - -void PythonQtWrapper_QSize::scale(QSize* theWrappedObject, int w, int h, Qt::AspectRatioMode mode) -{ - ( theWrappedObject->scale(w, h, mode)); -} - -void PythonQtWrapper_QSize::setHeight(QSize* theWrappedObject, int h) -{ - ( theWrappedObject->setHeight(h)); -} - -void PythonQtWrapper_QSize::setWidth(QSize* theWrappedObject, int w) -{ - ( theWrappedObject->setWidth(w)); -} - -void PythonQtWrapper_QSize::transpose(QSize* theWrappedObject) -{ - ( theWrappedObject->transpose()); -} - -int PythonQtWrapper_QSize::width(QSize* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -QString PythonQtWrapper_QSize::py_toString(QSize* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QSizeF* PythonQtWrapper_QSizeF::new_QSizeF() -{ -return new QSizeF(); } - -QSizeF* PythonQtWrapper_QSizeF::new_QSizeF(const QSize& sz) -{ -return new QSizeF(sz); } - -QSizeF* PythonQtWrapper_QSizeF::new_QSizeF(qreal w, qreal h) -{ -return new QSizeF(w, h); } - -QSizeF PythonQtWrapper_QSizeF::boundedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const -{ - return ( theWrappedObject->boundedTo(arg__1)); -} - -QSizeF PythonQtWrapper_QSizeF::expandedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const -{ - return ( theWrappedObject->expandedTo(arg__1)); -} - -qreal PythonQtWrapper_QSizeF::height(QSizeF* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QSizeF::isEmpty(QSizeF* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QSizeF::isNull(QSizeF* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QSizeF::isValid(QSizeF* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -const QSizeF PythonQtWrapper_QSizeF::__mul__(QSizeF* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)* c); -} - -QSizeF* PythonQtWrapper_QSizeF::__imul__(QSizeF* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)*= c); -} - -const QSizeF PythonQtWrapper_QSizeF::__add__(QSizeF* theWrappedObject, const QSizeF& s2) -{ - return ( (*theWrappedObject)+ s2); -} - -QSizeF* PythonQtWrapper_QSizeF::__iadd__(QSizeF* theWrappedObject, const QSizeF& arg__1) -{ - return &( (*theWrappedObject)+= arg__1); -} - -const QSizeF PythonQtWrapper_QSizeF::__sub__(QSizeF* theWrappedObject, const QSizeF& s2) -{ - return ( (*theWrappedObject)- s2); -} - -QSizeF* PythonQtWrapper_QSizeF::__isub__(QSizeF* theWrappedObject, const QSizeF& arg__1) -{ - return &( (*theWrappedObject)-= arg__1); -} - -const QSizeF PythonQtWrapper_QSizeF::__div__(QSizeF* theWrappedObject, qreal c) -{ - return ( (*theWrappedObject)/ c); -} - -QSizeF* PythonQtWrapper_QSizeF::__idiv__(QSizeF* theWrappedObject, qreal c) -{ - return &( (*theWrappedObject)/= c); -} - -void PythonQtWrapper_QSizeF::writeTo(QSizeF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QSizeF::__eq__(QSizeF* theWrappedObject, const QSizeF& s2) -{ - return ( (*theWrappedObject)== s2); -} - -void PythonQtWrapper_QSizeF::readFrom(QSizeF* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QSizeF::scale(QSizeF* theWrappedObject, const QSizeF& s, Qt::AspectRatioMode mode) -{ - ( theWrappedObject->scale(s, mode)); -} - -void PythonQtWrapper_QSizeF::scale(QSizeF* theWrappedObject, qreal w, qreal h, Qt::AspectRatioMode mode) -{ - ( theWrappedObject->scale(w, h, mode)); -} - -void PythonQtWrapper_QSizeF::setHeight(QSizeF* theWrappedObject, qreal h) -{ - ( theWrappedObject->setHeight(h)); -} - -void PythonQtWrapper_QSizeF::setWidth(QSizeF* theWrappedObject, qreal w) -{ - ( theWrappedObject->setWidth(w)); -} - -QSize PythonQtWrapper_QSizeF::toSize(QSizeF* theWrappedObject) const -{ - return ( theWrappedObject->toSize()); -} - -void PythonQtWrapper_QSizeF::transpose(QSizeF* theWrappedObject) -{ - ( theWrappedObject->transpose()); -} - -qreal PythonQtWrapper_QSizeF::width(QSizeF* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -QString PythonQtWrapper_QSizeF::py_toString(QSizeF* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QTime* PythonQtWrapper_QTime::new_QTime() -{ -return new QTime(); } - -QTime* PythonQtWrapper_QTime::new_QTime(int h, int m, int s, int ms) -{ -return new QTime(h, m, s, ms); } - -QTime PythonQtWrapper_QTime::addMSecs(QTime* theWrappedObject, int ms) const -{ - return ( theWrappedObject->addMSecs(ms)); -} - -QTime PythonQtWrapper_QTime::addSecs(QTime* theWrappedObject, int secs) const -{ - return ( theWrappedObject->addSecs(secs)); -} - -QTime PythonQtWrapper_QTime::static_QTime_currentTime() -{ - return (QTime::currentTime()); -} - -int PythonQtWrapper_QTime::elapsed(QTime* theWrappedObject) const -{ - return ( theWrappedObject->elapsed()); -} - -QTime PythonQtWrapper_QTime::static_QTime_fromString(const QString& s, Qt::DateFormat f) -{ - return (QTime::fromString(s, f)); -} - -QTime PythonQtWrapper_QTime::static_QTime_fromString(const QString& s, const QString& format) -{ - return (QTime::fromString(s, format)); -} - -int PythonQtWrapper_QTime::hour(QTime* theWrappedObject) const -{ - return ( theWrappedObject->hour()); -} - -bool PythonQtWrapper_QTime::isNull(QTime* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QTime::isValid(QTime* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -bool PythonQtWrapper_QTime::static_QTime_isValid(int h, int m, int s, int ms) -{ - return (QTime::isValid(h, m, s, ms)); -} - -int PythonQtWrapper_QTime::minute(QTime* theWrappedObject) const -{ - return ( theWrappedObject->minute()); -} - -int PythonQtWrapper_QTime::msec(QTime* theWrappedObject) const -{ - return ( theWrappedObject->msec()); -} - -int PythonQtWrapper_QTime::msecsTo(QTime* theWrappedObject, const QTime& arg__1) const -{ - return ( theWrappedObject->msecsTo(arg__1)); -} - -bool PythonQtWrapper_QTime::__ne__(QTime* theWrappedObject, const QTime& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QTime::__lt__(QTime* theWrappedObject, const QTime& other) const -{ - return ( (*theWrappedObject)< other); -} - -void PythonQtWrapper_QTime::writeTo(QTime* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QTime::__le__(QTime* theWrappedObject, const QTime& other) const -{ - return ( (*theWrappedObject)<= other); -} - -bool PythonQtWrapper_QTime::__eq__(QTime* theWrappedObject, const QTime& other) const -{ - return ( (*theWrappedObject)== other); -} - -bool PythonQtWrapper_QTime::__gt__(QTime* theWrappedObject, const QTime& other) const -{ - return ( (*theWrappedObject)> other); -} - -bool PythonQtWrapper_QTime::__ge__(QTime* theWrappedObject, const QTime& other) const -{ - return ( (*theWrappedObject)>= other); -} - -void PythonQtWrapper_QTime::readFrom(QTime* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -int PythonQtWrapper_QTime::restart(QTime* theWrappedObject) -{ - return ( theWrappedObject->restart()); -} - -int PythonQtWrapper_QTime::second(QTime* theWrappedObject) const -{ - return ( theWrappedObject->second()); -} - -int PythonQtWrapper_QTime::secsTo(QTime* theWrappedObject, const QTime& arg__1) const -{ - return ( theWrappedObject->secsTo(arg__1)); -} - -bool PythonQtWrapper_QTime::setHMS(QTime* theWrappedObject, int h, int m, int s, int ms) -{ - return ( theWrappedObject->setHMS(h, m, s, ms)); -} - -void PythonQtWrapper_QTime::start(QTime* theWrappedObject) -{ - ( theWrappedObject->start()); -} - -QString PythonQtWrapper_QTime::toString(QTime* theWrappedObject, Qt::DateFormat f) const -{ - return ( theWrappedObject->toString(f)); -} - -QString PythonQtWrapper_QTime::toString(QTime* theWrappedObject, const QString& format) const -{ - return ( theWrappedObject->toString(format)); -} - -QString PythonQtWrapper_QTime::py_toString(QTime* obj) { return obj->toString(); } - - -QUrl* PythonQtWrapper_QUrl::new_QUrl() -{ -return new QUrl(); } - -QUrl* PythonQtWrapper_QUrl::new_QUrl(const QString& url) -{ -return new QUrl(url); } - -QUrl* PythonQtWrapper_QUrl::new_QUrl(const QString& url, QUrl::ParsingMode mode) -{ -return new QUrl(url, mode); } - -QUrl* PythonQtWrapper_QUrl::new_QUrl(const QUrl& copy) -{ -return new QUrl(copy); } - -void PythonQtWrapper_QUrl::addEncodedQueryItem(QUrl* theWrappedObject, const QByteArray& key, const QByteArray& value) -{ - ( theWrappedObject->addEncodedQueryItem(key, value)); -} - -void PythonQtWrapper_QUrl::addQueryItem(QUrl* theWrappedObject, const QString& key, const QString& value) -{ - ( theWrappedObject->addQueryItem(key, value)); -} - -QList PythonQtWrapper_QUrl::allEncodedQueryItemValues(QUrl* theWrappedObject, const QByteArray& key) const -{ - return ( theWrappedObject->allEncodedQueryItemValues(key)); -} - -QStringList PythonQtWrapper_QUrl::allQueryItemValues(QUrl* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->allQueryItemValues(key)); -} - -QString PythonQtWrapper_QUrl::authority(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->authority()); -} - -void PythonQtWrapper_QUrl::clear(QUrl* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -QByteArray PythonQtWrapper_QUrl::encodedFragment(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->encodedFragment()); -} - -QByteArray PythonQtWrapper_QUrl::encodedHost(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->encodedHost()); -} - -QByteArray PythonQtWrapper_QUrl::encodedPassword(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->encodedPassword()); -} - -QByteArray PythonQtWrapper_QUrl::encodedPath(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->encodedPath()); -} - -QByteArray PythonQtWrapper_QUrl::encodedQuery(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->encodedQuery()); -} - -QByteArray PythonQtWrapper_QUrl::encodedQueryItemValue(QUrl* theWrappedObject, const QByteArray& key) const -{ - return ( theWrappedObject->encodedQueryItemValue(key)); -} - -QList > PythonQtWrapper_QUrl::encodedQueryItems(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->encodedQueryItems()); -} - -QByteArray PythonQtWrapper_QUrl::encodedUserName(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->encodedUserName()); -} - -QString PythonQtWrapper_QUrl::errorString(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -QString PythonQtWrapper_QUrl::fragment(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->fragment()); -} - -QString PythonQtWrapper_QUrl::static_QUrl_fromAce(const QByteArray& arg__1) -{ - return (QUrl::fromAce(arg__1)); -} - -QUrl PythonQtWrapper_QUrl::static_QUrl_fromEncoded(const QByteArray& url) -{ - return (QUrl::fromEncoded(url)); -} - -QUrl PythonQtWrapper_QUrl::static_QUrl_fromEncoded(const QByteArray& url, QUrl::ParsingMode mode) -{ - return (QUrl::fromEncoded(url, mode)); -} - -QUrl PythonQtWrapper_QUrl::static_QUrl_fromLocalFile(const QString& localfile) -{ - return (QUrl::fromLocalFile(localfile)); -} - -QString PythonQtWrapper_QUrl::static_QUrl_fromPercentEncoding(const QByteArray& arg__1) -{ - return (QUrl::fromPercentEncoding(arg__1)); -} - -QUrl PythonQtWrapper_QUrl::static_QUrl_fromUserInput(const QString& userInput) -{ - return (QUrl::fromUserInput(userInput)); -} - -bool PythonQtWrapper_QUrl::hasEncodedQueryItem(QUrl* theWrappedObject, const QByteArray& key) const -{ - return ( theWrappedObject->hasEncodedQueryItem(key)); -} - -bool PythonQtWrapper_QUrl::hasFragment(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->hasFragment()); -} - -bool PythonQtWrapper_QUrl::hasQuery(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->hasQuery()); -} - -bool PythonQtWrapper_QUrl::hasQueryItem(QUrl* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->hasQueryItem(key)); -} - -QString PythonQtWrapper_QUrl::host(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->host()); -} - -QStringList PythonQtWrapper_QUrl::static_QUrl_idnWhitelist() -{ - return (QUrl::idnWhitelist()); -} - -bool PythonQtWrapper_QUrl::isEmpty(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QUrl::isParentOf(QUrl* theWrappedObject, const QUrl& url) const -{ - return ( theWrappedObject->isParentOf(url)); -} - -bool PythonQtWrapper_QUrl::isRelative(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->isRelative()); -} - -bool PythonQtWrapper_QUrl::isValid(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -bool PythonQtWrapper_QUrl::__ne__(QUrl* theWrappedObject, const QUrl& url) const -{ - return ( (*theWrappedObject)!= url); -} - -bool PythonQtWrapper_QUrl::__lt__(QUrl* theWrappedObject, const QUrl& url) const -{ - return ( (*theWrappedObject)< url); -} - -void PythonQtWrapper_QUrl::writeTo(QUrl* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QUrl::__eq__(QUrl* theWrappedObject, const QUrl& url) const -{ - return ( (*theWrappedObject)== url); -} - -void PythonQtWrapper_QUrl::readFrom(QUrl* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QString PythonQtWrapper_QUrl::password(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->password()); -} - -QString PythonQtWrapper_QUrl::path(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->path()); -} - -int PythonQtWrapper_QUrl::port(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->port()); -} - -int PythonQtWrapper_QUrl::port(QUrl* theWrappedObject, int defaultPort) const -{ - return ( theWrappedObject->port(defaultPort)); -} - -QString PythonQtWrapper_QUrl::queryItemValue(QUrl* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->queryItemValue(key)); -} - -QList > PythonQtWrapper_QUrl::queryItems(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->queryItems()); -} - -char PythonQtWrapper_QUrl::queryPairDelimiter(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->queryPairDelimiter()); -} - -char PythonQtWrapper_QUrl::queryValueDelimiter(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->queryValueDelimiter()); -} - -void PythonQtWrapper_QUrl::removeAllEncodedQueryItems(QUrl* theWrappedObject, const QByteArray& key) -{ - ( theWrappedObject->removeAllEncodedQueryItems(key)); -} - -void PythonQtWrapper_QUrl::removeAllQueryItems(QUrl* theWrappedObject, const QString& key) -{ - ( theWrappedObject->removeAllQueryItems(key)); -} - -void PythonQtWrapper_QUrl::removeEncodedQueryItem(QUrl* theWrappedObject, const QByteArray& key) -{ - ( theWrappedObject->removeEncodedQueryItem(key)); -} - -void PythonQtWrapper_QUrl::removeQueryItem(QUrl* theWrappedObject, const QString& key) -{ - ( theWrappedObject->removeQueryItem(key)); -} - -QUrl PythonQtWrapper_QUrl::resolved(QUrl* theWrappedObject, const QUrl& relative) const -{ - return ( theWrappedObject->resolved(relative)); -} - -QString PythonQtWrapper_QUrl::scheme(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->scheme()); -} - -void PythonQtWrapper_QUrl::setAuthority(QUrl* theWrappedObject, const QString& authority) -{ - ( theWrappedObject->setAuthority(authority)); -} - -void PythonQtWrapper_QUrl::setEncodedFragment(QUrl* theWrappedObject, const QByteArray& fragment) -{ - ( theWrappedObject->setEncodedFragment(fragment)); -} - -void PythonQtWrapper_QUrl::setEncodedHost(QUrl* theWrappedObject, const QByteArray& host) -{ - ( theWrappedObject->setEncodedHost(host)); -} - -void PythonQtWrapper_QUrl::setEncodedPassword(QUrl* theWrappedObject, const QByteArray& password) -{ - ( theWrappedObject->setEncodedPassword(password)); -} - -void PythonQtWrapper_QUrl::setEncodedPath(QUrl* theWrappedObject, const QByteArray& path) -{ - ( theWrappedObject->setEncodedPath(path)); -} - -void PythonQtWrapper_QUrl::setEncodedQuery(QUrl* theWrappedObject, const QByteArray& query) -{ - ( theWrappedObject->setEncodedQuery(query)); -} - -void PythonQtWrapper_QUrl::setEncodedQueryItems(QUrl* theWrappedObject, const QList >& query) -{ - ( theWrappedObject->setEncodedQueryItems(query)); -} - -void PythonQtWrapper_QUrl::setEncodedUrl(QUrl* theWrappedObject, const QByteArray& url) -{ - ( theWrappedObject->setEncodedUrl(url)); -} - -void PythonQtWrapper_QUrl::setEncodedUrl(QUrl* theWrappedObject, const QByteArray& url, QUrl::ParsingMode mode) -{ - ( theWrappedObject->setEncodedUrl(url, mode)); -} - -void PythonQtWrapper_QUrl::setEncodedUserName(QUrl* theWrappedObject, const QByteArray& userName) -{ - ( theWrappedObject->setEncodedUserName(userName)); -} - -void PythonQtWrapper_QUrl::setFragment(QUrl* theWrappedObject, const QString& fragment) -{ - ( theWrappedObject->setFragment(fragment)); -} - -void PythonQtWrapper_QUrl::setHost(QUrl* theWrappedObject, const QString& host) -{ - ( theWrappedObject->setHost(host)); -} - -void PythonQtWrapper_QUrl::static_QUrl_setIdnWhitelist(const QStringList& arg__1) -{ - (QUrl::setIdnWhitelist(arg__1)); -} - -void PythonQtWrapper_QUrl::setPassword(QUrl* theWrappedObject, const QString& password) -{ - ( theWrappedObject->setPassword(password)); -} - -void PythonQtWrapper_QUrl::setPath(QUrl* theWrappedObject, const QString& path) -{ - ( theWrappedObject->setPath(path)); -} - -void PythonQtWrapper_QUrl::setPort(QUrl* theWrappedObject, int port) -{ - ( theWrappedObject->setPort(port)); -} - -void PythonQtWrapper_QUrl::setQueryDelimiters(QUrl* theWrappedObject, char valueDelimiter, char pairDelimiter) -{ - ( theWrappedObject->setQueryDelimiters(valueDelimiter, pairDelimiter)); -} - -void PythonQtWrapper_QUrl::setQueryItems(QUrl* theWrappedObject, const QList >& query) -{ - ( theWrappedObject->setQueryItems(query)); -} - -void PythonQtWrapper_QUrl::setScheme(QUrl* theWrappedObject, const QString& scheme) -{ - ( theWrappedObject->setScheme(scheme)); -} - -void PythonQtWrapper_QUrl::setUrl(QUrl* theWrappedObject, const QString& url) -{ - ( theWrappedObject->setUrl(url)); -} - -void PythonQtWrapper_QUrl::setUrl(QUrl* theWrappedObject, const QString& url, QUrl::ParsingMode mode) -{ - ( theWrappedObject->setUrl(url, mode)); -} - -void PythonQtWrapper_QUrl::setUserInfo(QUrl* theWrappedObject, const QString& userInfo) -{ - ( theWrappedObject->setUserInfo(userInfo)); -} - -void PythonQtWrapper_QUrl::setUserName(QUrl* theWrappedObject, const QString& userName) -{ - ( theWrappedObject->setUserName(userName)); -} - -QByteArray PythonQtWrapper_QUrl::static_QUrl_toAce(const QString& arg__1) -{ - return (QUrl::toAce(arg__1)); -} - -QByteArray PythonQtWrapper_QUrl::toEncoded(QUrl* theWrappedObject, QUrl::FormattingOptions options) const -{ - return ( theWrappedObject->toEncoded(options)); -} - -QString PythonQtWrapper_QUrl::toLocalFile(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->toLocalFile()); -} - -QByteArray PythonQtWrapper_QUrl::static_QUrl_toPercentEncoding(const QString& arg__1, const QByteArray& exclude, const QByteArray& include) -{ - return (QUrl::toPercentEncoding(arg__1, exclude, include)); -} - -QString PythonQtWrapper_QUrl::toString(QUrl* theWrappedObject, QUrl::FormattingOptions options) const -{ - return ( theWrappedObject->toString(options)); -} - -QString PythonQtWrapper_QUrl::userInfo(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->userInfo()); -} - -QString PythonQtWrapper_QUrl::userName(QUrl* theWrappedObject) const -{ - return ( theWrappedObject->userName()); -} - -QString PythonQtWrapper_QUrl::py_toString(QUrl* obj) { return obj->toString(); } - - -QTextCodec* PythonQtWrapper_Qt::static_Qt_codecForHtml(const QByteArray& ba) -{ - return (Qt::codecForHtml(ba)); -} - -QString PythonQtWrapper_Qt::static_Qt_convertFromPlainText(const QString& plain, Qt::WhiteSpaceMode mode) -{ - return (Qt::convertFromPlainText(plain, mode)); -} - -QString PythonQtWrapper_Qt::static_Qt_escape(const QString& plain) -{ - return (Qt::escape(plain)); -} - -bool PythonQtWrapper_Qt::static_Qt_mightBeRichText(const QString& arg__1) -{ - return (Qt::mightBeRichText(arg__1)); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h deleted file mode 100644 index 9be4d90f3..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h +++ /dev/null @@ -1,1205 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtWrapper_QBitArray : public QObject -{ Q_OBJECT -public: -public slots: -QBitArray* new_QBitArray(); -QBitArray* new_QBitArray(const QBitArray& other); -QBitArray* new_QBitArray(int size, bool val = false); -void delete_QBitArray(QBitArray* obj) { delete obj; } - bool at(QBitArray* theWrappedObject, int i) const; - void clear(QBitArray* theWrappedObject); - void clearBit(QBitArray* theWrappedObject, int i); - int count(QBitArray* theWrappedObject) const; - int count(QBitArray* theWrappedObject, bool on) const; - void fill(QBitArray* theWrappedObject, bool val, int first, int last); - bool fill(QBitArray* theWrappedObject, bool val, int size = -1); - bool isEmpty(QBitArray* theWrappedObject) const; - bool isNull(QBitArray* theWrappedObject) const; - bool __ne__(QBitArray* theWrappedObject, const QBitArray& a) const; - QBitArray __and__(QBitArray* theWrappedObject, const QBitArray& arg__2); - QBitArray* __iand__(QBitArray* theWrappedObject, const QBitArray& arg__1); - void writeTo(QBitArray* theWrappedObject, QDataStream& arg__1); - QBitArray* operator_assign(QBitArray* theWrappedObject, const QBitArray& other); - bool __eq__(QBitArray* theWrappedObject, const QBitArray& a) const; - void readFrom(QBitArray* theWrappedObject, QDataStream& arg__1); - QBitArray __xor__(QBitArray* theWrappedObject, const QBitArray& arg__2); - QBitArray* __ixor__(QBitArray* theWrappedObject, const QBitArray& arg__1); - QBitArray __or__(QBitArray* theWrappedObject, const QBitArray& arg__2); - QBitArray* __ior__(QBitArray* theWrappedObject, const QBitArray& arg__1); - QBitArray __invert__(QBitArray* theWrappedObject) const; - void resize(QBitArray* theWrappedObject, int size); - void setBit(QBitArray* theWrappedObject, int i); - void setBit(QBitArray* theWrappedObject, int i, bool val); - int size(QBitArray* theWrappedObject) const; - bool testBit(QBitArray* theWrappedObject, int i) const; - bool toggleBit(QBitArray* theWrappedObject, int i); - void truncate(QBitArray* theWrappedObject, int pos); - bool __nonzero__(QBitArray* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QByteArray : public QObject -{ Q_OBJECT -public: -public slots: -QByteArray* new_QByteArray(); -QByteArray* new_QByteArray(const QByteArray& arg__1); -QByteArray* new_QByteArray(int size, char c); -void delete_QByteArray(QByteArray* obj) { delete obj; } - QByteArray* append(QByteArray* theWrappedObject, char c); - QByteArray* append(QByteArray* theWrappedObject, const QByteArray& a); -#ifndef QT_NO_CAST_TO_ASCII - QByteArray* append(QByteArray* theWrappedObject, const QString& s); -#endif - QByteArray* append(QByteArray* theWrappedObject, const char* s, int len); - char at(QByteArray* theWrappedObject, int i) const; - int capacity(QByteArray* theWrappedObject) const; - void chop(QByteArray* theWrappedObject, int n); - void clear(QByteArray* theWrappedObject); - QBool contains(QByteArray* theWrappedObject, char c) const; - QBool contains(QByteArray* theWrappedObject, const QByteArray& a) const; - QBool contains(QByteArray* theWrappedObject, const char* a) const; - int count(QByteArray* theWrappedObject, char c) const; - int count(QByteArray* theWrappedObject, const QByteArray& a) const; - bool endsWith(QByteArray* theWrappedObject, char c) const; - bool endsWith(QByteArray* theWrappedObject, const QByteArray& a) const; - QByteArray* fill(QByteArray* theWrappedObject, char c, int size = -1); - QByteArray static_QByteArray_fromBase64(const QByteArray& base64); - QByteArray static_QByteArray_fromHex(const QByteArray& hexEncoded); - QByteArray static_QByteArray_fromPercentEncoding(const QByteArray& pctEncoded, char percent = '%'); - int indexOf(QByteArray* theWrappedObject, char c, int from = 0) const; - int indexOf(QByteArray* theWrappedObject, const QByteArray& a, int from = 0) const; -#ifndef QT_NO_CAST_TO_ASCII - int indexOf(QByteArray* theWrappedObject, const QString& s, int from = 0) const; -#endif - QByteArray* insert(QByteArray* theWrappedObject, int i, char c); - QByteArray* insert(QByteArray* theWrappedObject, int i, const QByteArray& a); -#ifndef QT_NO_CAST_TO_ASCII - QByteArray* insert(QByteArray* theWrappedObject, int i, const QString& s); -#endif - QByteArray* insert(QByteArray* theWrappedObject, int i, const char* s, int len); - bool isEmpty(QByteArray* theWrappedObject) const; - bool isNull(QByteArray* theWrappedObject) const; - int lastIndexOf(QByteArray* theWrappedObject, char c, int from = -1) const; - int lastIndexOf(QByteArray* theWrappedObject, const QByteArray& a, int from = -1) const; -#ifndef QT_NO_CAST_TO_ASCII - int lastIndexOf(QByteArray* theWrappedObject, const QString& s, int from = -1) const; -#endif - QByteArray left(QByteArray* theWrappedObject, int len) const; - QByteArray leftJustified(QByteArray* theWrappedObject, int width, char fill = ' ', bool truncate = false) const; - int length(QByteArray* theWrappedObject) const; - QByteArray mid(QByteArray* theWrappedObject, int index, int len = -1) const; - QByteArray static_QByteArray_number(double arg__1, char f = 'g', int prec = 6); - QByteArray static_QByteArray_number(int arg__1, int base = 10); - QByteArray static_QByteArray_number(qlonglong arg__1, int base = 10); - QByteArray static_QByteArray_number(qulonglong arg__1, int base = 10); - const QByteArray __add__(QByteArray* theWrappedObject, char a2); - const QByteArray __add__(QByteArray* theWrappedObject, const QByteArray& a2); - const QString __add__(QByteArray* theWrappedObject, const QString& s); - const QByteArray __add__(QByteArray* theWrappedObject, const char* a2); - QByteArray* __iadd__(QByteArray* theWrappedObject, const QByteArray& a); - bool __lt__(QByteArray* theWrappedObject, const QByteArray& a2); - bool __lt__(QByteArray* theWrappedObject, const QString& s2) const; - void writeTo(QByteArray* theWrappedObject, QDataStream& arg__1); - bool __le__(QByteArray* theWrappedObject, const QByteArray& a2); - bool __le__(QByteArray* theWrappedObject, const QString& s2) const; - QByteArray* operator_assign(QByteArray* theWrappedObject, const QByteArray& arg__1); - bool __eq__(QByteArray* theWrappedObject, const QByteArray& a2); - bool __eq__(QByteArray* theWrappedObject, const QString& s2) const; - bool __gt__(QByteArray* theWrappedObject, const QByteArray& a2); - bool __gt__(QByteArray* theWrappedObject, const QString& s2) const; - bool __ge__(QByteArray* theWrappedObject, const QByteArray& a2); - bool __ge__(QByteArray* theWrappedObject, const QString& s2) const; - void readFrom(QByteArray* theWrappedObject, QDataStream& arg__1); - QByteArray* prepend(QByteArray* theWrappedObject, char c); - QByteArray* prepend(QByteArray* theWrappedObject, const QByteArray& a); - QByteArray* prepend(QByteArray* theWrappedObject, const char* s, int len); - void push_back(QByteArray* theWrappedObject, const QByteArray& a); - void push_front(QByteArray* theWrappedObject, const QByteArray& a); - QByteArray* remove(QByteArray* theWrappedObject, int index, int len); - QByteArray repeated(QByteArray* theWrappedObject, int times) const; - QByteArray* replace(QByteArray* theWrappedObject, char before, char after); - QByteArray* replace(QByteArray* theWrappedObject, char before, const QByteArray& after); -#ifndef QT_NO_CAST_TO_ASCII - QByteArray* replace(QByteArray* theWrappedObject, char c, const QString& after); -#endif - QByteArray* replace(QByteArray* theWrappedObject, const QByteArray& before, const QByteArray& after); -#ifndef QT_NO_CAST_TO_ASCII - QByteArray* replace(QByteArray* theWrappedObject, const QString& before, const QByteArray& after); -#endif - QByteArray* replace(QByteArray* theWrappedObject, const char* before, int bsize, const char* after, int asize); - QByteArray* replace(QByteArray* theWrappedObject, int index, int len, const QByteArray& s); - void reserve(QByteArray* theWrappedObject, int size); - void resize(QByteArray* theWrappedObject, int size); - QByteArray right(QByteArray* theWrappedObject, int len) const; - QByteArray rightJustified(QByteArray* theWrappedObject, int width, char fill = ' ', bool truncate = false) const; - QByteArray* setNum(QByteArray* theWrappedObject, double arg__1, char f = 'g', int prec = 6); - QByteArray* setNum(QByteArray* theWrappedObject, float arg__1, char f = 'g', int prec = 6); - QByteArray* setNum(QByteArray* theWrappedObject, int arg__1, int base = 10); - QByteArray* setNum(QByteArray* theWrappedObject, qlonglong arg__1, int base = 10); - QByteArray* setNum(QByteArray* theWrappedObject, qulonglong arg__1, int base = 10); - QByteArray* setNum(QByteArray* theWrappedObject, short arg__1, int base = 10); - QByteArray* setNum(QByteArray* theWrappedObject, ushort arg__1, int base = 10); - QByteArray simplified(QByteArray* theWrappedObject) const; - int size(QByteArray* theWrappedObject) const; - QList split(QByteArray* theWrappedObject, char sep) const; - void squeeze(QByteArray* theWrappedObject); - bool startsWith(QByteArray* theWrappedObject, char c) const; - bool startsWith(QByteArray* theWrappedObject, const QByteArray& a) const; - QByteArray toBase64(QByteArray* theWrappedObject) const; - double toDouble(QByteArray* theWrappedObject, bool* ok = 0) const; - float toFloat(QByteArray* theWrappedObject, bool* ok = 0) const; - QByteArray toHex(QByteArray* theWrappedObject) const; - int toInt(QByteArray* theWrappedObject, bool* ok = 0, int base = 10) const; - QByteArray toLower(QByteArray* theWrappedObject) const; - QByteArray toPercentEncoding(QByteArray* theWrappedObject, const QByteArray& exclude = QByteArray(), const QByteArray& include = QByteArray(), char percent = '%') const; - ushort toUShort(QByteArray* theWrappedObject, bool* ok = 0, int base = 10) const; - QByteArray toUpper(QByteArray* theWrappedObject) const; - QByteArray trimmed(QByteArray* theWrappedObject) const; - void truncate(QByteArray* theWrappedObject, int pos); - bool __nonzero__(QByteArray* obj) { return !obj->isNull(); } - - PyObject* data(QByteArray* b) { - if (b->data()) { - return PyString_FromStringAndSize(b->data(), b->size()); - } else { - Py_INCREF(Py_None); - return Py_None; - } - } - -}; - - - - - -class PythonQtWrapper_QDate : public QObject -{ Q_OBJECT -public: -Q_ENUMS(MonthNameType ) -enum MonthNameType{ - DateFormat = QDate::DateFormat, StandaloneFormat = QDate::StandaloneFormat}; -public slots: -QDate* new_QDate(); -QDate* new_QDate(int y, int m, int d); -QDate* new_QDate(const QDate& other) { -QDate* a = new QDate(); -*((QDate*)a) = other; -return a; } -void delete_QDate(QDate* obj) { delete obj; } - QDate addDays(QDate* theWrappedObject, int days) const; - QDate addMonths(QDate* theWrappedObject, int months) const; - QDate addYears(QDate* theWrappedObject, int years) const; - QDate static_QDate_currentDate(); - int day(QDate* theWrappedObject) const; - int dayOfWeek(QDate* theWrappedObject) const; - int dayOfYear(QDate* theWrappedObject) const; - int daysInMonth(QDate* theWrappedObject) const; - int daysInYear(QDate* theWrappedObject) const; - int daysTo(QDate* theWrappedObject, const QDate& arg__1) const; - QDate static_QDate_fromJulianDay(int jd); - QDate static_QDate_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); - QDate static_QDate_fromString(const QString& s, const QString& format); - void getDate(QDate* theWrappedObject, int* year, int* month, int* day); - uint static_QDate_gregorianToJulian(int y, int m, int d); - bool static_QDate_isLeapYear(int year); - bool isNull(QDate* theWrappedObject) const; - bool isValid(QDate* theWrappedObject) const; - bool static_QDate_isValid(int y, int m, int d); - QString static_QDate_longDayName(int weekday); - QString static_QDate_longDayName(int weekday, QDate::MonthNameType type); - QString static_QDate_longMonthName(int month); - QString static_QDate_longMonthName(int month, QDate::MonthNameType type); - int month(QDate* theWrappedObject) const; - bool __ne__(QDate* theWrappedObject, const QDate& other) const; - bool __lt__(QDate* theWrappedObject, const QDate& other) const; - void writeTo(QDate* theWrappedObject, QDataStream& arg__1); - bool __le__(QDate* theWrappedObject, const QDate& other) const; - bool __eq__(QDate* theWrappedObject, const QDate& other) const; - bool __gt__(QDate* theWrappedObject, const QDate& other) const; - bool __ge__(QDate* theWrappedObject, const QDate& other) const; - void readFrom(QDate* theWrappedObject, QDataStream& arg__1); - bool setDate(QDate* theWrappedObject, int year, int month, int day); - QString static_QDate_shortDayName(int weekday); - QString static_QDate_shortDayName(int weekday, QDate::MonthNameType type); - QString static_QDate_shortMonthName(int month); - QString static_QDate_shortMonthName(int month, QDate::MonthNameType type); - int toJulianDay(QDate* theWrappedObject) const; - QString toString(QDate* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; - QString toString(QDate* theWrappedObject, const QString& format) const; - int weekNumber(QDate* theWrappedObject, int* yearNum = 0) const; - int year(QDate* theWrappedObject) const; - QString py_toString(QDate*); - bool __nonzero__(QDate* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QDateTime : public QObject -{ Q_OBJECT -public: -public slots: -QDateTime* new_QDateTime(); -QDateTime* new_QDateTime(const QDate& arg__1); -QDateTime* new_QDateTime(const QDate& arg__1, const QTime& arg__2, Qt::TimeSpec spec = Qt::LocalTime); -QDateTime* new_QDateTime(const QDateTime& other); -void delete_QDateTime(QDateTime* obj) { delete obj; } - QDateTime addDays(QDateTime* theWrappedObject, int days) const; - QDateTime addMSecs(QDateTime* theWrappedObject, qint64 msecs) const; - QDateTime addMonths(QDateTime* theWrappedObject, int months) const; - QDateTime addSecs(QDateTime* theWrappedObject, int secs) const; - QDateTime addYears(QDateTime* theWrappedObject, int years) const; - QDateTime static_QDateTime_currentDateTime(); - QDate date(QDateTime* theWrappedObject) const; - int daysTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const; - QDateTime static_QDateTime_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); - QDateTime static_QDateTime_fromString(const QString& s, const QString& format); - QDateTime static_QDateTime_fromTime_t(uint secsSince1Jan1970UTC); - bool isNull(QDateTime* theWrappedObject) const; - bool isValid(QDateTime* theWrappedObject) const; - bool __ne__(QDateTime* theWrappedObject, const QDateTime& other) const; - bool __lt__(QDateTime* theWrappedObject, const QDateTime& other) const; - void writeTo(QDateTime* theWrappedObject, QDataStream& arg__1); - bool __le__(QDateTime* theWrappedObject, const QDateTime& other) const; - bool __eq__(QDateTime* theWrappedObject, const QDateTime& other) const; - bool __gt__(QDateTime* theWrappedObject, const QDateTime& other) const; - bool __ge__(QDateTime* theWrappedObject, const QDateTime& other) const; - void readFrom(QDateTime* theWrappedObject, QDataStream& arg__1); - int secsTo(QDateTime* theWrappedObject, const QDateTime& arg__1) const; - void setDate(QDateTime* theWrappedObject, const QDate& date); - void setTime(QDateTime* theWrappedObject, const QTime& time); - void setTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec); - void setTime_t(QDateTime* theWrappedObject, uint secsSince1Jan1970UTC); - void setUtcOffset(QDateTime* theWrappedObject, int seconds); - QTime time(QDateTime* theWrappedObject) const; - Qt::TimeSpec timeSpec(QDateTime* theWrappedObject) const; - QDateTime toLocalTime(QDateTime* theWrappedObject) const; - QString toString(QDateTime* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; - QString toString(QDateTime* theWrappedObject, const QString& format) const; - QDateTime toTimeSpec(QDateTime* theWrappedObject, Qt::TimeSpec spec) const; - uint toTime_t(QDateTime* theWrappedObject) const; - QDateTime toUTC(QDateTime* theWrappedObject) const; - int utcOffset(QDateTime* theWrappedObject) const; - QString py_toString(QDateTime*); - bool __nonzero__(QDateTime* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QLine : public QObject -{ Q_OBJECT -public: -public slots: -QLine* new_QLine(); -QLine* new_QLine(const QPoint& pt1, const QPoint& pt2); -QLine* new_QLine(int x1, int y1, int x2, int y2); -QLine* new_QLine(const QLine& other) { -QLine* a = new QLine(); -*((QLine*)a) = other; -return a; } -void delete_QLine(QLine* obj) { delete obj; } - int dx(QLine* theWrappedObject) const; - int dy(QLine* theWrappedObject) const; - bool isNull(QLine* theWrappedObject) const; - bool __ne__(QLine* theWrappedObject, const QLine& d) const; - QLine __mul__(QLine* theWrappedObject, const QMatrix& m); - QLine __mul__(QLine* theWrappedObject, const QTransform& m); - void writeTo(QLine* theWrappedObject, QDataStream& arg__1); - bool __eq__(QLine* theWrappedObject, const QLine& d) const; - void readFrom(QLine* theWrappedObject, QDataStream& arg__1); - QPoint p1(QLine* theWrappedObject) const; - QPoint p2(QLine* theWrappedObject) const; - void setLine(QLine* theWrappedObject, int x1, int y1, int x2, int y2); - void setP1(QLine* theWrappedObject, const QPoint& p1); - void setP2(QLine* theWrappedObject, const QPoint& p2); - void setPoints(QLine* theWrappedObject, const QPoint& p1, const QPoint& p2); - void translate(QLine* theWrappedObject, const QPoint& p); - void translate(QLine* theWrappedObject, int dx, int dy); - QLine translated(QLine* theWrappedObject, const QPoint& p) const; - QLine translated(QLine* theWrappedObject, int dx, int dy) const; - int x1(QLine* theWrappedObject) const; - int x2(QLine* theWrappedObject) const; - int y1(QLine* theWrappedObject) const; - int y2(QLine* theWrappedObject) const; - QString py_toString(QLine*); - bool __nonzero__(QLine* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QLineF : public QObject -{ Q_OBJECT -public: -Q_ENUMS(IntersectType ) -enum IntersectType{ - NoIntersection = QLineF::NoIntersection, BoundedIntersection = QLineF::BoundedIntersection, UnboundedIntersection = QLineF::UnboundedIntersection}; -public slots: -QLineF* new_QLineF(); -QLineF* new_QLineF(const QLine& line); -QLineF* new_QLineF(const QPointF& pt1, const QPointF& pt2); -QLineF* new_QLineF(qreal x1, qreal y1, qreal x2, qreal y2); -QLineF* new_QLineF(const QLineF& other) { -QLineF* a = new QLineF(); -*((QLineF*)a) = other; -return a; } -void delete_QLineF(QLineF* obj) { delete obj; } - qreal angle(QLineF* theWrappedObject) const; - qreal angle(QLineF* theWrappedObject, const QLineF& l) const; - qreal angleTo(QLineF* theWrappedObject, const QLineF& l) const; - qreal dx(QLineF* theWrappedObject) const; - qreal dy(QLineF* theWrappedObject) const; - QLineF static_QLineF_fromPolar(qreal length, qreal angle); - QLineF::IntersectType intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const; - bool isNull(QLineF* theWrappedObject) const; - qreal length(QLineF* theWrappedObject) const; - QLineF normalVector(QLineF* theWrappedObject) const; - bool __ne__(QLineF* theWrappedObject, const QLineF& d) const; - QLineF __mul__(QLineF* theWrappedObject, const QMatrix& m); - QLineF __mul__(QLineF* theWrappedObject, const QTransform& m); - void writeTo(QLineF* theWrappedObject, QDataStream& arg__1); - bool __eq__(QLineF* theWrappedObject, const QLineF& d) const; - void readFrom(QLineF* theWrappedObject, QDataStream& arg__1); - QPointF p1(QLineF* theWrappedObject) const; - QPointF p2(QLineF* theWrappedObject) const; - QPointF pointAt(QLineF* theWrappedObject, qreal t) const; - void setAngle(QLineF* theWrappedObject, qreal angle); - void setLength(QLineF* theWrappedObject, qreal len); - void setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); - void setP1(QLineF* theWrappedObject, const QPointF& p1); - void setP2(QLineF* theWrappedObject, const QPointF& p2); - void setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2); - QLine toLine(QLineF* theWrappedObject) const; - void translate(QLineF* theWrappedObject, const QPointF& p); - void translate(QLineF* theWrappedObject, qreal dx, qreal dy); - QLineF translated(QLineF* theWrappedObject, const QPointF& p) const; - QLineF translated(QLineF* theWrappedObject, qreal dx, qreal dy) const; - QLineF unitVector(QLineF* theWrappedObject) const; - qreal x1(QLineF* theWrappedObject) const; - qreal x2(QLineF* theWrappedObject) const; - qreal y1(QLineF* theWrappedObject) const; - qreal y2(QLineF* theWrappedObject) const; - QString py_toString(QLineF*); - bool __nonzero__(QLineF* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QLocale : public QObject -{ Q_OBJECT -public: -Q_ENUMS(MeasurementSystem NumberOption FormatType Country Language ) -Q_FLAGS(NumberOptions ) -enum MeasurementSystem{ - MetricSystem = QLocale::MetricSystem, ImperialSystem = QLocale::ImperialSystem}; -enum NumberOption{ - OmitGroupSeparator = QLocale::OmitGroupSeparator, RejectGroupSeparator = QLocale::RejectGroupSeparator}; -enum FormatType{ - LongFormat = QLocale::LongFormat, ShortFormat = QLocale::ShortFormat, NarrowFormat = QLocale::NarrowFormat}; -enum Country{ - AnyCountry = QLocale::AnyCountry, Afghanistan = QLocale::Afghanistan, Albania = QLocale::Albania, Algeria = QLocale::Algeria, AmericanSamoa = QLocale::AmericanSamoa, Andorra = QLocale::Andorra, Angola = QLocale::Angola, Anguilla = QLocale::Anguilla, Antarctica = QLocale::Antarctica, AntiguaAndBarbuda = QLocale::AntiguaAndBarbuda, Argentina = QLocale::Argentina, Armenia = QLocale::Armenia, Aruba = QLocale::Aruba, Australia = QLocale::Australia, Austria = QLocale::Austria, Azerbaijan = QLocale::Azerbaijan, Bahamas = QLocale::Bahamas, Bahrain = QLocale::Bahrain, Bangladesh = QLocale::Bangladesh, Barbados = QLocale::Barbados, Belarus = QLocale::Belarus, Belgium = QLocale::Belgium, Belize = QLocale::Belize, Benin = QLocale::Benin, Bermuda = QLocale::Bermuda, Bhutan = QLocale::Bhutan, Bolivia = QLocale::Bolivia, BosniaAndHerzegowina = QLocale::BosniaAndHerzegowina, Botswana = QLocale::Botswana, BouvetIsland = QLocale::BouvetIsland, Brazil = QLocale::Brazil, BritishIndianOceanTerritory = QLocale::BritishIndianOceanTerritory, BruneiDarussalam = QLocale::BruneiDarussalam, Bulgaria = QLocale::Bulgaria, BurkinaFaso = QLocale::BurkinaFaso, Burundi = QLocale::Burundi, Cambodia = QLocale::Cambodia, Cameroon = QLocale::Cameroon, Canada = QLocale::Canada, CapeVerde = QLocale::CapeVerde, CaymanIslands = QLocale::CaymanIslands, CentralAfricanRepublic = QLocale::CentralAfricanRepublic, Chad = QLocale::Chad, Chile = QLocale::Chile, China = QLocale::China, ChristmasIsland = QLocale::ChristmasIsland, CocosIslands = QLocale::CocosIslands, Colombia = QLocale::Colombia, Comoros = QLocale::Comoros, DemocraticRepublicOfCongo = QLocale::DemocraticRepublicOfCongo, PeoplesRepublicOfCongo = QLocale::PeoplesRepublicOfCongo, CookIslands = QLocale::CookIslands, CostaRica = QLocale::CostaRica, IvoryCoast = QLocale::IvoryCoast, Croatia = QLocale::Croatia, Cuba = QLocale::Cuba, Cyprus = QLocale::Cyprus, CzechRepublic = QLocale::CzechRepublic, Denmark = QLocale::Denmark, Djibouti = QLocale::Djibouti, Dominica = QLocale::Dominica, DominicanRepublic = QLocale::DominicanRepublic, EastTimor = QLocale::EastTimor, Ecuador = QLocale::Ecuador, Egypt = QLocale::Egypt, ElSalvador = QLocale::ElSalvador, EquatorialGuinea = QLocale::EquatorialGuinea, Eritrea = QLocale::Eritrea, Estonia = QLocale::Estonia, Ethiopia = QLocale::Ethiopia, FalklandIslands = QLocale::FalklandIslands, FaroeIslands = QLocale::FaroeIslands, FijiCountry = QLocale::FijiCountry, Finland = QLocale::Finland, France = QLocale::France, MetropolitanFrance = QLocale::MetropolitanFrance, FrenchGuiana = QLocale::FrenchGuiana, FrenchPolynesia = QLocale::FrenchPolynesia, FrenchSouthernTerritories = QLocale::FrenchSouthernTerritories, Gabon = QLocale::Gabon, Gambia = QLocale::Gambia, Georgia = QLocale::Georgia, Germany = QLocale::Germany, Ghana = QLocale::Ghana, Gibraltar = QLocale::Gibraltar, Greece = QLocale::Greece, Greenland = QLocale::Greenland, Grenada = QLocale::Grenada, Guadeloupe = QLocale::Guadeloupe, Guam = QLocale::Guam, Guatemala = QLocale::Guatemala, Guinea = QLocale::Guinea, GuineaBissau = QLocale::GuineaBissau, Guyana = QLocale::Guyana, Haiti = QLocale::Haiti, HeardAndMcDonaldIslands = QLocale::HeardAndMcDonaldIslands, Honduras = QLocale::Honduras, HongKong = QLocale::HongKong, Hungary = QLocale::Hungary, Iceland = QLocale::Iceland, India = QLocale::India, Indonesia = QLocale::Indonesia, Iran = QLocale::Iran, Iraq = QLocale::Iraq, Ireland = QLocale::Ireland, Israel = QLocale::Israel, Italy = QLocale::Italy, Jamaica = QLocale::Jamaica, Japan = QLocale::Japan, Jordan = QLocale::Jordan, Kazakhstan = QLocale::Kazakhstan, Kenya = QLocale::Kenya, Kiribati = QLocale::Kiribati, DemocraticRepublicOfKorea = QLocale::DemocraticRepublicOfKorea, RepublicOfKorea = QLocale::RepublicOfKorea, Kuwait = QLocale::Kuwait, Kyrgyzstan = QLocale::Kyrgyzstan, Lao = QLocale::Lao, Latvia = QLocale::Latvia, Lebanon = QLocale::Lebanon, Lesotho = QLocale::Lesotho, Liberia = QLocale::Liberia, LibyanArabJamahiriya = QLocale::LibyanArabJamahiriya, Liechtenstein = QLocale::Liechtenstein, Lithuania = QLocale::Lithuania, Luxembourg = QLocale::Luxembourg, Macau = QLocale::Macau, Macedonia = QLocale::Macedonia, Madagascar = QLocale::Madagascar, Malawi = QLocale::Malawi, Malaysia = QLocale::Malaysia, Maldives = QLocale::Maldives, Mali = QLocale::Mali, Malta = QLocale::Malta, MarshallIslands = QLocale::MarshallIslands, Martinique = QLocale::Martinique, Mauritania = QLocale::Mauritania, Mauritius = QLocale::Mauritius, Mayotte = QLocale::Mayotte, Mexico = QLocale::Mexico, Micronesia = QLocale::Micronesia, Moldova = QLocale::Moldova, Monaco = QLocale::Monaco, Mongolia = QLocale::Mongolia, Montserrat = QLocale::Montserrat, Morocco = QLocale::Morocco, Mozambique = QLocale::Mozambique, Myanmar = QLocale::Myanmar, Namibia = QLocale::Namibia, NauruCountry = QLocale::NauruCountry, Nepal = QLocale::Nepal, Netherlands = QLocale::Netherlands, NetherlandsAntilles = QLocale::NetherlandsAntilles, NewCaledonia = QLocale::NewCaledonia, NewZealand = QLocale::NewZealand, Nicaragua = QLocale::Nicaragua, Niger = QLocale::Niger, Nigeria = QLocale::Nigeria, Niue = QLocale::Niue, NorfolkIsland = QLocale::NorfolkIsland, NorthernMarianaIslands = QLocale::NorthernMarianaIslands, Norway = QLocale::Norway, Oman = QLocale::Oman, Pakistan = QLocale::Pakistan, Palau = QLocale::Palau, PalestinianTerritory = QLocale::PalestinianTerritory, Panama = QLocale::Panama, PapuaNewGuinea = QLocale::PapuaNewGuinea, Paraguay = QLocale::Paraguay, Peru = QLocale::Peru, Philippines = QLocale::Philippines, Pitcairn = QLocale::Pitcairn, Poland = QLocale::Poland, Portugal = QLocale::Portugal, PuertoRico = QLocale::PuertoRico, Qatar = QLocale::Qatar, Reunion = QLocale::Reunion, Romania = QLocale::Romania, RussianFederation = QLocale::RussianFederation, Rwanda = QLocale::Rwanda, SaintKittsAndNevis = QLocale::SaintKittsAndNevis, StLucia = QLocale::StLucia, StVincentAndTheGrenadines = QLocale::StVincentAndTheGrenadines, Samoa = QLocale::Samoa, SanMarino = QLocale::SanMarino, SaoTomeAndPrincipe = QLocale::SaoTomeAndPrincipe, SaudiArabia = QLocale::SaudiArabia, Senegal = QLocale::Senegal, Seychelles = QLocale::Seychelles, SierraLeone = QLocale::SierraLeone, Singapore = QLocale::Singapore, Slovakia = QLocale::Slovakia, Slovenia = QLocale::Slovenia, SolomonIslands = QLocale::SolomonIslands, Somalia = QLocale::Somalia, SouthAfrica = QLocale::SouthAfrica, SouthGeorgiaAndTheSouthSandwichIslands = QLocale::SouthGeorgiaAndTheSouthSandwichIslands, Spain = QLocale::Spain, SriLanka = QLocale::SriLanka, StHelena = QLocale::StHelena, StPierreAndMiquelon = QLocale::StPierreAndMiquelon, Sudan = QLocale::Sudan, Suriname = QLocale::Suriname, SvalbardAndJanMayenIslands = QLocale::SvalbardAndJanMayenIslands, Swaziland = QLocale::Swaziland, Sweden = QLocale::Sweden, Switzerland = QLocale::Switzerland, SyrianArabRepublic = QLocale::SyrianArabRepublic, Taiwan = QLocale::Taiwan, Tajikistan = QLocale::Tajikistan, Tanzania = QLocale::Tanzania, Thailand = QLocale::Thailand, Togo = QLocale::Togo, Tokelau = QLocale::Tokelau, TongaCountry = QLocale::TongaCountry, TrinidadAndTobago = QLocale::TrinidadAndTobago, Tunisia = QLocale::Tunisia, Turkey = QLocale::Turkey, Turkmenistan = QLocale::Turkmenistan, TurksAndCaicosIslands = QLocale::TurksAndCaicosIslands, Tuvalu = QLocale::Tuvalu, Uganda = QLocale::Uganda, Ukraine = QLocale::Ukraine, UnitedArabEmirates = QLocale::UnitedArabEmirates, UnitedKingdom = QLocale::UnitedKingdom, UnitedStates = QLocale::UnitedStates, UnitedStatesMinorOutlyingIslands = QLocale::UnitedStatesMinorOutlyingIslands, Uruguay = QLocale::Uruguay, Uzbekistan = QLocale::Uzbekistan, Vanuatu = QLocale::Vanuatu, VaticanCityState = QLocale::VaticanCityState, Venezuela = QLocale::Venezuela, VietNam = QLocale::VietNam, BritishVirginIslands = QLocale::BritishVirginIslands, USVirginIslands = QLocale::USVirginIslands, WallisAndFutunaIslands = QLocale::WallisAndFutunaIslands, WesternSahara = QLocale::WesternSahara, Yemen = QLocale::Yemen, Yugoslavia = QLocale::Yugoslavia, Zambia = QLocale::Zambia, Zimbabwe = QLocale::Zimbabwe, SerbiaAndMontenegro = QLocale::SerbiaAndMontenegro, LastCountry = QLocale::LastCountry}; -enum Language{ - C = QLocale::C, Abkhazian = QLocale::Abkhazian, Afan = QLocale::Afan, Afar = QLocale::Afar, Afrikaans = QLocale::Afrikaans, Albanian = QLocale::Albanian, Amharic = QLocale::Amharic, Arabic = QLocale::Arabic, Armenian = QLocale::Armenian, Assamese = QLocale::Assamese, Aymara = QLocale::Aymara, Azerbaijani = QLocale::Azerbaijani, Bashkir = QLocale::Bashkir, Basque = QLocale::Basque, Bengali = QLocale::Bengali, Bhutani = QLocale::Bhutani, Bihari = QLocale::Bihari, Bislama = QLocale::Bislama, Breton = QLocale::Breton, Bulgarian = QLocale::Bulgarian, Burmese = QLocale::Burmese, Byelorussian = QLocale::Byelorussian, Cambodian = QLocale::Cambodian, Catalan = QLocale::Catalan, Chinese = QLocale::Chinese, Corsican = QLocale::Corsican, Croatian = QLocale::Croatian, Czech = QLocale::Czech, Danish = QLocale::Danish, Dutch = QLocale::Dutch, English = QLocale::English, Esperanto = QLocale::Esperanto, Estonian = QLocale::Estonian, Faroese = QLocale::Faroese, FijiLanguage = QLocale::FijiLanguage, Finnish = QLocale::Finnish, French = QLocale::French, Frisian = QLocale::Frisian, Gaelic = QLocale::Gaelic, Galician = QLocale::Galician, Georgian = QLocale::Georgian, German = QLocale::German, Greek = QLocale::Greek, Greenlandic = QLocale::Greenlandic, Guarani = QLocale::Guarani, Gujarati = QLocale::Gujarati, Hausa = QLocale::Hausa, Hebrew = QLocale::Hebrew, Hindi = QLocale::Hindi, Hungarian = QLocale::Hungarian, Icelandic = QLocale::Icelandic, Indonesian = QLocale::Indonesian, Interlingua = QLocale::Interlingua, Interlingue = QLocale::Interlingue, Inuktitut = QLocale::Inuktitut, Inupiak = QLocale::Inupiak, Irish = QLocale::Irish, Italian = QLocale::Italian, Japanese = QLocale::Japanese, Javanese = QLocale::Javanese, Kannada = QLocale::Kannada, Kashmiri = QLocale::Kashmiri, Kazakh = QLocale::Kazakh, Kinyarwanda = QLocale::Kinyarwanda, Kirghiz = QLocale::Kirghiz, Korean = QLocale::Korean, Kurdish = QLocale::Kurdish, Kurundi = QLocale::Kurundi, Laothian = QLocale::Laothian, Latin = QLocale::Latin, Latvian = QLocale::Latvian, Lingala = QLocale::Lingala, Lithuanian = QLocale::Lithuanian, Macedonian = QLocale::Macedonian, Malagasy = QLocale::Malagasy, Malay = QLocale::Malay, Malayalam = QLocale::Malayalam, Maltese = QLocale::Maltese, Maori = QLocale::Maori, Marathi = QLocale::Marathi, Moldavian = QLocale::Moldavian, Mongolian = QLocale::Mongolian, NauruLanguage = QLocale::NauruLanguage, Nepali = QLocale::Nepali, Norwegian = QLocale::Norwegian, NorwegianBokmal = QLocale::NorwegianBokmal, Occitan = QLocale::Occitan, Oriya = QLocale::Oriya, Pashto = QLocale::Pashto, Persian = QLocale::Persian, Polish = QLocale::Polish, Portuguese = QLocale::Portuguese, Punjabi = QLocale::Punjabi, Quechua = QLocale::Quechua, RhaetoRomance = QLocale::RhaetoRomance, Romanian = QLocale::Romanian, Russian = QLocale::Russian, Samoan = QLocale::Samoan, Sangho = QLocale::Sangho, Sanskrit = QLocale::Sanskrit, Serbian = QLocale::Serbian, SerboCroatian = QLocale::SerboCroatian, Sesotho = QLocale::Sesotho, Setswana = QLocale::Setswana, Shona = QLocale::Shona, Sindhi = QLocale::Sindhi, Singhalese = QLocale::Singhalese, Siswati = QLocale::Siswati, Slovak = QLocale::Slovak, Slovenian = QLocale::Slovenian, Somali = QLocale::Somali, Spanish = QLocale::Spanish, Sundanese = QLocale::Sundanese, Swahili = QLocale::Swahili, Swedish = QLocale::Swedish, Tagalog = QLocale::Tagalog, Tajik = QLocale::Tajik, Tamil = QLocale::Tamil, Tatar = QLocale::Tatar, Telugu = QLocale::Telugu, Thai = QLocale::Thai, Tibetan = QLocale::Tibetan, Tigrinya = QLocale::Tigrinya, TongaLanguage = QLocale::TongaLanguage, Tsonga = QLocale::Tsonga, Turkish = QLocale::Turkish, Turkmen = QLocale::Turkmen, Twi = QLocale::Twi, Uigur = QLocale::Uigur, Ukrainian = QLocale::Ukrainian, Urdu = QLocale::Urdu, Uzbek = QLocale::Uzbek, Vietnamese = QLocale::Vietnamese, Volapuk = QLocale::Volapuk, Welsh = QLocale::Welsh, Wolof = QLocale::Wolof, Xhosa = QLocale::Xhosa, Yiddish = QLocale::Yiddish, Yoruba = QLocale::Yoruba, Zhuang = QLocale::Zhuang, Zulu = QLocale::Zulu, NorwegianNynorsk = QLocale::NorwegianNynorsk, Nynorsk = QLocale::Nynorsk, Bosnian = QLocale::Bosnian, Divehi = QLocale::Divehi, Manx = QLocale::Manx, Cornish = QLocale::Cornish, Akan = QLocale::Akan, Konkani = QLocale::Konkani, Ga = QLocale::Ga, Igbo = QLocale::Igbo, Kamba = QLocale::Kamba, Syriac = QLocale::Syriac, Blin = QLocale::Blin, Geez = QLocale::Geez, Koro = QLocale::Koro, Sidamo = QLocale::Sidamo, Atsam = QLocale::Atsam, Tigre = QLocale::Tigre, Jju = QLocale::Jju, Friulian = QLocale::Friulian, Venda = QLocale::Venda, Ewe = QLocale::Ewe, Walamo = QLocale::Walamo, Hawaiian = QLocale::Hawaiian, Tyap = QLocale::Tyap, Chewa = QLocale::Chewa, LastLanguage = QLocale::LastLanguage}; -Q_DECLARE_FLAGS(NumberOptions, NumberOption) -public slots: -QLocale* new_QLocale(); -QLocale* new_QLocale(QLocale::Language language, QLocale::Country country = QLocale::AnyCountry); -QLocale* new_QLocale(const QLocale& other); -QLocale* new_QLocale(const QString& name); -void delete_QLocale(QLocale* obj) { delete obj; } - QString amText(QLocale* theWrappedObject) const; - QLocale static_QLocale_c(); - QList static_QLocale_countriesForLanguage(QLocale::Language lang); - QLocale::Country country(QLocale* theWrappedObject) const; - QString static_QLocale_countryToString(QLocale::Country country); - QString dateFormat(QLocale* theWrappedObject, QLocale::FormatType format = QLocale::LongFormat) const; - QString dateTimeFormat(QLocale* theWrappedObject, QLocale::FormatType format = QLocale::LongFormat) const; - QString dayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; - QChar decimalPoint(QLocale* theWrappedObject) const; - QChar exponential(QLocale* theWrappedObject) const; - QChar groupSeparator(QLocale* theWrappedObject) const; - QLocale::Language language(QLocale* theWrappedObject) const; - QString static_QLocale_languageToString(QLocale::Language language); - QLocale::MeasurementSystem measurementSystem(QLocale* theWrappedObject) const; - QString monthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; - QString name(QLocale* theWrappedObject) const; - QChar negativeSign(QLocale* theWrappedObject) const; - QLocale::NumberOptions numberOptions(QLocale* theWrappedObject) const; - bool __ne__(QLocale* theWrappedObject, const QLocale& other) const; - void writeTo(QLocale* theWrappedObject, QDataStream& arg__1); - bool __eq__(QLocale* theWrappedObject, const QLocale& other) const; - void readFrom(QLocale* theWrappedObject, QDataStream& arg__1); - QChar percent(QLocale* theWrappedObject) const; - QString pmText(QLocale* theWrappedObject) const; - QChar positiveSign(QLocale* theWrappedObject) const; - void static_QLocale_setDefault(const QLocale& locale); - void setNumberOptions(QLocale* theWrappedObject, QLocale::NumberOptions options); - QString standaloneDayName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; - QString standaloneMonthName(QLocale* theWrappedObject, int arg__1, QLocale::FormatType format = QLocale::LongFormat) const; - QLocale static_QLocale_system(); - QString timeFormat(QLocale* theWrappedObject, QLocale::FormatType format = QLocale::LongFormat) const; - QDate toDate(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2 = QLocale::LongFormat) const; - QDate toDate(QLocale* theWrappedObject, const QString& string, const QString& format) const; - QDateTime toDateTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType format = QLocale::LongFormat) const; - QDateTime toDateTime(QLocale* theWrappedObject, const QString& string, const QString& format) const; - double toDouble(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; - float toFloat(QLocale* theWrappedObject, const QString& s, bool* ok = 0) const; - int toInt(QLocale* theWrappedObject, const QString& s, bool* ok = 0, int base = 0) const; - qlonglong toLongLong(QLocale* theWrappedObject, const QString& s, bool* ok = 0, int base = 0) const; - short toShort(QLocale* theWrappedObject, const QString& s, bool* ok = 0, int base = 0) const; - QString toString(QLocale* theWrappedObject, const QDate& date, QLocale::FormatType format = QLocale::LongFormat) const; - QString toString(QLocale* theWrappedObject, const QDate& date, const QString& formatStr) const; - QString toString(QLocale* theWrappedObject, const QDateTime& dateTime, QLocale::FormatType format = QLocale::LongFormat) const; - QString toString(QLocale* theWrappedObject, const QDateTime& dateTime, const QString& format) const; - QString toString(QLocale* theWrappedObject, const QTime& time, QLocale::FormatType format = QLocale::LongFormat) const; - QString toString(QLocale* theWrappedObject, const QTime& time, const QString& formatStr) const; - QString toString(QLocale* theWrappedObject, double i, char f = 'g', int prec = 6) const; - QString toString(QLocale* theWrappedObject, float i, char f = 'g', int prec = 6) const; - QString toString(QLocale* theWrappedObject, int i) const; - QString toString(QLocale* theWrappedObject, qlonglong i) const; - QString toString(QLocale* theWrappedObject, qulonglong i) const; - QString toString(QLocale* theWrappedObject, short i) const; - QString toString(QLocale* theWrappedObject, ushort i) const; - QTime toTime(QLocale* theWrappedObject, const QString& string, QLocale::FormatType arg__2 = QLocale::LongFormat) const; - QTime toTime(QLocale* theWrappedObject, const QString& string, const QString& format) const; - ushort toUShort(QLocale* theWrappedObject, const QString& s, bool* ok = 0, int base = 0) const; - QChar zeroDigit(QLocale* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QPoint : public QObject -{ Q_OBJECT -public: -public slots: -QPoint* new_QPoint(); -QPoint* new_QPoint(int xpos, int ypos); -QPoint* new_QPoint(const QPoint& other) { -QPoint* a = new QPoint(); -*((QPoint*)a) = other; -return a; } -void delete_QPoint(QPoint* obj) { delete obj; } - bool isNull(QPoint* theWrappedObject) const; - int manhattanLength(QPoint* theWrappedObject) const; - QPoint __mul__(QPoint* theWrappedObject, const QMatrix& m); - QPoint __mul__(QPoint* theWrappedObject, const QMatrix4x4& matrix); - QPoint __mul__(QPoint* theWrappedObject, const QTransform& m); - const QPoint __mul__(QPoint* theWrappedObject, qreal c); - QPoint* __imul__(QPoint* theWrappedObject, qreal c); - const QPoint __add__(QPoint* theWrappedObject, const QPoint& p2); - QPoint* __iadd__(QPoint* theWrappedObject, const QPoint& p); - const QPoint __sub__(QPoint* theWrappedObject, const QPoint& p2); - QPoint* __isub__(QPoint* theWrappedObject, const QPoint& p); - const QPoint __div__(QPoint* theWrappedObject, qreal c); - QPoint* __idiv__(QPoint* theWrappedObject, qreal c); - void writeTo(QPoint* theWrappedObject, QDataStream& arg__1); - bool __eq__(QPoint* theWrappedObject, const QPoint& p2); - void readFrom(QPoint* theWrappedObject, QDataStream& arg__1); - void setX(QPoint* theWrappedObject, int x); - void setY(QPoint* theWrappedObject, int y); - int x(QPoint* theWrappedObject) const; - int y(QPoint* theWrappedObject) const; - QString py_toString(QPoint*); - bool __nonzero__(QPoint* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QPointF : public QObject -{ Q_OBJECT -public: -public slots: -QPointF* new_QPointF(); -QPointF* new_QPointF(const QPoint& p); -QPointF* new_QPointF(qreal xpos, qreal ypos); -QPointF* new_QPointF(const QPointF& other) { -QPointF* a = new QPointF(); -*((QPointF*)a) = other; -return a; } -void delete_QPointF(QPointF* obj) { delete obj; } - bool isNull(QPointF* theWrappedObject) const; - qreal manhattanLength(QPointF* theWrappedObject) const; - QPointF __mul__(QPointF* theWrappedObject, const QMatrix& m); - QPointF __mul__(QPointF* theWrappedObject, const QMatrix4x4& matrix); - QPointF __mul__(QPointF* theWrappedObject, const QTransform& m); - const QPointF __mul__(QPointF* theWrappedObject, qreal c); - QPointF* __imul__(QPointF* theWrappedObject, qreal c); - const QPointF __add__(QPointF* theWrappedObject, const QPointF& p2); - QPointF* __iadd__(QPointF* theWrappedObject, const QPointF& p); - const QPointF __sub__(QPointF* theWrappedObject, const QPointF& p2); - QPointF* __isub__(QPointF* theWrappedObject, const QPointF& p); - const QPointF __div__(QPointF* theWrappedObject, qreal c); - QPointF* __idiv__(QPointF* theWrappedObject, qreal c); - void writeTo(QPointF* theWrappedObject, QDataStream& arg__1); - bool __eq__(QPointF* theWrappedObject, const QPointF& p2); - void readFrom(QPointF* theWrappedObject, QDataStream& arg__1); - void setX(QPointF* theWrappedObject, qreal x); - void setY(QPointF* theWrappedObject, qreal y); - QPoint toPoint(QPointF* theWrappedObject) const; - qreal x(QPointF* theWrappedObject) const; - qreal y(QPointF* theWrappedObject) const; - QString py_toString(QPointF*); - bool __nonzero__(QPointF* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QRect : public QObject -{ Q_OBJECT -public: -public slots: -QRect* new_QRect(); -QRect* new_QRect(const QPoint& topleft, const QPoint& bottomright); -QRect* new_QRect(const QPoint& topleft, const QSize& size); -QRect* new_QRect(int left, int top, int width, int height); -QRect* new_QRect(const QRect& other) { -QRect* a = new QRect(); -*((QRect*)a) = other; -return a; } -void delete_QRect(QRect* obj) { delete obj; } - void adjust(QRect* theWrappedObject, int x1, int y1, int x2, int y2); - QRect adjusted(QRect* theWrappedObject, int x1, int y1, int x2, int y2) const; - int bottom(QRect* theWrappedObject) const; - QPoint bottomLeft(QRect* theWrappedObject) const; - QPoint bottomRight(QRect* theWrappedObject) const; - QPoint center(QRect* theWrappedObject) const; - bool contains(QRect* theWrappedObject, const QPoint& p, bool proper = false) const; - bool contains(QRect* theWrappedObject, const QRect& r, bool proper = false) const; - bool contains(QRect* theWrappedObject, int x, int y) const; - bool contains(QRect* theWrappedObject, int x, int y, bool proper) const; - int height(QRect* theWrappedObject) const; - QRect intersected(QRect* theWrappedObject, const QRect& other) const; - bool intersects(QRect* theWrappedObject, const QRect& r) const; - bool isEmpty(QRect* theWrappedObject) const; - bool isNull(QRect* theWrappedObject) const; - bool isValid(QRect* theWrappedObject) const; - int left(QRect* theWrappedObject) const; - void moveBottom(QRect* theWrappedObject, int pos); - void moveBottomLeft(QRect* theWrappedObject, const QPoint& p); - void moveBottomRight(QRect* theWrappedObject, const QPoint& p); - void moveCenter(QRect* theWrappedObject, const QPoint& p); - void moveLeft(QRect* theWrappedObject, int pos); - void moveRight(QRect* theWrappedObject, int pos); - void moveTo(QRect* theWrappedObject, const QPoint& p); - void moveTo(QRect* theWrappedObject, int x, int t); - void moveTop(QRect* theWrappedObject, int pos); - void moveTopLeft(QRect* theWrappedObject, const QPoint& p); - void moveTopRight(QRect* theWrappedObject, const QPoint& p); - QRect normalized(QRect* theWrappedObject) const; - void writeTo(QRect* theWrappedObject, QDataStream& arg__1); - bool __eq__(QRect* theWrappedObject, const QRect& arg__2); - void readFrom(QRect* theWrappedObject, QDataStream& arg__1); - int right(QRect* theWrappedObject) const; - void setBottom(QRect* theWrappedObject, int pos); - void setBottomLeft(QRect* theWrappedObject, const QPoint& p); - void setBottomRight(QRect* theWrappedObject, const QPoint& p); - void setCoords(QRect* theWrappedObject, int x1, int y1, int x2, int y2); - void setHeight(QRect* theWrappedObject, int h); - void setLeft(QRect* theWrappedObject, int pos); - void setRect(QRect* theWrappedObject, int x, int y, int w, int h); - void setRight(QRect* theWrappedObject, int pos); - void setSize(QRect* theWrappedObject, const QSize& s); - void setTop(QRect* theWrappedObject, int pos); - void setTopLeft(QRect* theWrappedObject, const QPoint& p); - void setTopRight(QRect* theWrappedObject, const QPoint& p); - void setWidth(QRect* theWrappedObject, int w); - void setX(QRect* theWrappedObject, int x); - void setY(QRect* theWrappedObject, int y); - QSize size(QRect* theWrappedObject) const; - int top(QRect* theWrappedObject) const; - QPoint topLeft(QRect* theWrappedObject) const; - QPoint topRight(QRect* theWrappedObject) const; - void translate(QRect* theWrappedObject, const QPoint& p); - void translate(QRect* theWrappedObject, int dx, int dy); - QRect translated(QRect* theWrappedObject, const QPoint& p) const; - QRect translated(QRect* theWrappedObject, int dx, int dy) const; - QRect united(QRect* theWrappedObject, const QRect& other) const; - int width(QRect* theWrappedObject) const; - int x(QRect* theWrappedObject) const; - int y(QRect* theWrappedObject) const; - QString py_toString(QRect*); - bool __nonzero__(QRect* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QRectF : public QObject -{ Q_OBJECT -public: -public slots: -QRectF* new_QRectF(); -QRectF* new_QRectF(const QPointF& topleft, const QPointF& bottomRight); -QRectF* new_QRectF(const QPointF& topleft, const QSizeF& size); -QRectF* new_QRectF(const QRect& rect); -QRectF* new_QRectF(qreal left, qreal top, qreal width, qreal height); -QRectF* new_QRectF(const QRectF& other) { -QRectF* a = new QRectF(); -*((QRectF*)a) = other; -return a; } -void delete_QRectF(QRectF* obj) { delete obj; } - void adjust(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); - QRectF adjusted(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) const; - qreal bottom(QRectF* theWrappedObject) const; - QPointF bottomLeft(QRectF* theWrappedObject) const; - QPointF bottomRight(QRectF* theWrappedObject) const; - QPointF center(QRectF* theWrappedObject) const; - bool contains(QRectF* theWrappedObject, const QPointF& p) const; - bool contains(QRectF* theWrappedObject, const QRectF& r) const; - bool contains(QRectF* theWrappedObject, qreal x, qreal y) const; - void getCoords(QRectF* theWrappedObject, qreal* x1, qreal* y1, qreal* x2, qreal* y2) const; - void getRect(QRectF* theWrappedObject, qreal* x, qreal* y, qreal* w, qreal* h) const; - qreal height(QRectF* theWrappedObject) const; - QRectF intersected(QRectF* theWrappedObject, const QRectF& other) const; - bool intersects(QRectF* theWrappedObject, const QRectF& r) const; - bool isEmpty(QRectF* theWrappedObject) const; - bool isNull(QRectF* theWrappedObject) const; - bool isValid(QRectF* theWrappedObject) const; - qreal left(QRectF* theWrappedObject) const; - void moveBottom(QRectF* theWrappedObject, qreal pos); - void moveBottomLeft(QRectF* theWrappedObject, const QPointF& p); - void moveBottomRight(QRectF* theWrappedObject, const QPointF& p); - void moveCenter(QRectF* theWrappedObject, const QPointF& p); - void moveLeft(QRectF* theWrappedObject, qreal pos); - void moveRight(QRectF* theWrappedObject, qreal pos); - void moveTo(QRectF* theWrappedObject, const QPointF& p); - void moveTo(QRectF* theWrappedObject, qreal x, qreal t); - void moveTop(QRectF* theWrappedObject, qreal pos); - void moveTopLeft(QRectF* theWrappedObject, const QPointF& p); - void moveTopRight(QRectF* theWrappedObject, const QPointF& p); - QRectF normalized(QRectF* theWrappedObject) const; - void writeTo(QRectF* theWrappedObject, QDataStream& arg__1); - bool __eq__(QRectF* theWrappedObject, const QRectF& arg__2); - void readFrom(QRectF* theWrappedObject, QDataStream& arg__1); - qreal right(QRectF* theWrappedObject) const; - void setBottom(QRectF* theWrappedObject, qreal pos); - void setBottomLeft(QRectF* theWrappedObject, const QPointF& p); - void setBottomRight(QRectF* theWrappedObject, const QPointF& p); - void setCoords(QRectF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); - void setHeight(QRectF* theWrappedObject, qreal h); - void setLeft(QRectF* theWrappedObject, qreal pos); - void setRect(QRectF* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - void setRight(QRectF* theWrappedObject, qreal pos); - void setSize(QRectF* theWrappedObject, const QSizeF& s); - void setTop(QRectF* theWrappedObject, qreal pos); - void setTopLeft(QRectF* theWrappedObject, const QPointF& p); - void setTopRight(QRectF* theWrappedObject, const QPointF& p); - void setWidth(QRectF* theWrappedObject, qreal w); - void setX(QRectF* theWrappedObject, qreal pos); - void setY(QRectF* theWrappedObject, qreal pos); - QSizeF size(QRectF* theWrappedObject) const; - QRect toAlignedRect(QRectF* theWrappedObject) const; - QRect toRect(QRectF* theWrappedObject) const; - qreal top(QRectF* theWrappedObject) const; - QPointF topLeft(QRectF* theWrappedObject) const; - QPointF topRight(QRectF* theWrappedObject) const; - void translate(QRectF* theWrappedObject, const QPointF& p); - void translate(QRectF* theWrappedObject, qreal dx, qreal dy); - QRectF translated(QRectF* theWrappedObject, const QPointF& p) const; - QRectF translated(QRectF* theWrappedObject, qreal dx, qreal dy) const; - QRectF united(QRectF* theWrappedObject, const QRectF& other) const; - qreal width(QRectF* theWrappedObject) const; - qreal x(QRectF* theWrappedObject) const; - qreal y(QRectF* theWrappedObject) const; - QString py_toString(QRectF*); - bool __nonzero__(QRectF* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QRegExp : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PatternSyntax CaretMode ) -enum PatternSyntax{ - RegExp = QRegExp::RegExp, Wildcard = QRegExp::Wildcard, FixedString = QRegExp::FixedString, RegExp2 = QRegExp::RegExp2, WildcardUnix = QRegExp::WildcardUnix, W3CXmlSchema11 = QRegExp::W3CXmlSchema11}; -enum CaretMode{ - CaretAtZero = QRegExp::CaretAtZero, CaretAtOffset = QRegExp::CaretAtOffset, CaretWontMatch = QRegExp::CaretWontMatch}; -public slots: -QRegExp* new_QRegExp(); -QRegExp* new_QRegExp(const QRegExp& rx); -QRegExp* new_QRegExp(const QString& pattern, Qt::CaseSensitivity cs = Qt::CaseSensitive, QRegExp::PatternSyntax syntax = QRegExp::RegExp); -void delete_QRegExp(QRegExp* obj) { delete obj; } - QString cap(QRegExp* theWrappedObject, int nth = 0); - int captureCount(QRegExp* theWrappedObject) const; - QStringList capturedTexts(QRegExp* theWrappedObject); - Qt::CaseSensitivity caseSensitivity(QRegExp* theWrappedObject) const; - QString errorString(QRegExp* theWrappedObject); - QString static_QRegExp_escape(const QString& str); - bool exactMatch(QRegExp* theWrappedObject, const QString& str) const; - int indexIn(QRegExp* theWrappedObject, const QString& str, int offset = 0, QRegExp::CaretMode caretMode = QRegExp::CaretAtZero) const; - bool isEmpty(QRegExp* theWrappedObject) const; - bool isMinimal(QRegExp* theWrappedObject) const; - bool isValid(QRegExp* theWrappedObject) const; - int lastIndexIn(QRegExp* theWrappedObject, const QString& str, int offset = -1, QRegExp::CaretMode caretMode = QRegExp::CaretAtZero) const; - int matchedLength(QRegExp* theWrappedObject) const; - int numCaptures(QRegExp* theWrappedObject) const; - bool __ne__(QRegExp* theWrappedObject, const QRegExp& rx) const; - void writeTo(QRegExp* theWrappedObject, QDataStream& out); - bool __eq__(QRegExp* theWrappedObject, const QRegExp& rx) const; - void readFrom(QRegExp* theWrappedObject, QDataStream& in); - QString pattern(QRegExp* theWrappedObject) const; - QRegExp::PatternSyntax patternSyntax(QRegExp* theWrappedObject) const; - int pos(QRegExp* theWrappedObject, int nth = 0); - void setCaseSensitivity(QRegExp* theWrappedObject, Qt::CaseSensitivity cs); - void setMinimal(QRegExp* theWrappedObject, bool minimal); - void setPattern(QRegExp* theWrappedObject, const QString& pattern); - void setPatternSyntax(QRegExp* theWrappedObject, QRegExp::PatternSyntax syntax); -}; - - - - - -class PythonQtWrapper_QSize : public QObject -{ Q_OBJECT -public: -public slots: -QSize* new_QSize(); -QSize* new_QSize(int w, int h); -QSize* new_QSize(const QSize& other) { -QSize* a = new QSize(); -*((QSize*)a) = other; -return a; } -void delete_QSize(QSize* obj) { delete obj; } - QSize boundedTo(QSize* theWrappedObject, const QSize& arg__1) const; - QSize expandedTo(QSize* theWrappedObject, const QSize& arg__1) const; - int height(QSize* theWrappedObject) const; - bool isEmpty(QSize* theWrappedObject) const; - bool isNull(QSize* theWrappedObject) const; - bool isValid(QSize* theWrappedObject) const; - const QSize __mul__(QSize* theWrappedObject, qreal c); - QSize* __imul__(QSize* theWrappedObject, qreal c); - const QSize __add__(QSize* theWrappedObject, const QSize& s2); - QSize* __iadd__(QSize* theWrappedObject, const QSize& arg__1); - const QSize __sub__(QSize* theWrappedObject, const QSize& s2); - QSize* __isub__(QSize* theWrappedObject, const QSize& arg__1); - const QSize __div__(QSize* theWrappedObject, qreal c); - QSize* __idiv__(QSize* theWrappedObject, qreal c); - void writeTo(QSize* theWrappedObject, QDataStream& arg__1); - bool __eq__(QSize* theWrappedObject, const QSize& s2); - void readFrom(QSize* theWrappedObject, QDataStream& arg__1); - void scale(QSize* theWrappedObject, const QSize& s, Qt::AspectRatioMode mode); - void scale(QSize* theWrappedObject, int w, int h, Qt::AspectRatioMode mode); - void setHeight(QSize* theWrappedObject, int h); - void setWidth(QSize* theWrappedObject, int w); - void transpose(QSize* theWrappedObject); - int width(QSize* theWrappedObject) const; - QString py_toString(QSize*); - bool __nonzero__(QSize* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QSizeF : public QObject -{ Q_OBJECT -public: -public slots: -QSizeF* new_QSizeF(); -QSizeF* new_QSizeF(const QSize& sz); -QSizeF* new_QSizeF(qreal w, qreal h); -QSizeF* new_QSizeF(const QSizeF& other) { -QSizeF* a = new QSizeF(); -*((QSizeF*)a) = other; -return a; } -void delete_QSizeF(QSizeF* obj) { delete obj; } - QSizeF boundedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const; - QSizeF expandedTo(QSizeF* theWrappedObject, const QSizeF& arg__1) const; - qreal height(QSizeF* theWrappedObject) const; - bool isEmpty(QSizeF* theWrappedObject) const; - bool isNull(QSizeF* theWrappedObject) const; - bool isValid(QSizeF* theWrappedObject) const; - const QSizeF __mul__(QSizeF* theWrappedObject, qreal c); - QSizeF* __imul__(QSizeF* theWrappedObject, qreal c); - const QSizeF __add__(QSizeF* theWrappedObject, const QSizeF& s2); - QSizeF* __iadd__(QSizeF* theWrappedObject, const QSizeF& arg__1); - const QSizeF __sub__(QSizeF* theWrappedObject, const QSizeF& s2); - QSizeF* __isub__(QSizeF* theWrappedObject, const QSizeF& arg__1); - const QSizeF __div__(QSizeF* theWrappedObject, qreal c); - QSizeF* __idiv__(QSizeF* theWrappedObject, qreal c); - void writeTo(QSizeF* theWrappedObject, QDataStream& arg__1); - bool __eq__(QSizeF* theWrappedObject, const QSizeF& s2); - void readFrom(QSizeF* theWrappedObject, QDataStream& arg__1); - void scale(QSizeF* theWrappedObject, const QSizeF& s, Qt::AspectRatioMode mode); - void scale(QSizeF* theWrappedObject, qreal w, qreal h, Qt::AspectRatioMode mode); - void setHeight(QSizeF* theWrappedObject, qreal h); - void setWidth(QSizeF* theWrappedObject, qreal w); - QSize toSize(QSizeF* theWrappedObject) const; - void transpose(QSizeF* theWrappedObject); - qreal width(QSizeF* theWrappedObject) const; - QString py_toString(QSizeF*); - bool __nonzero__(QSizeF* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QTime : public QObject -{ Q_OBJECT -public: -public slots: -QTime* new_QTime(); -QTime* new_QTime(int h, int m, int s = 0, int ms = 0); -QTime* new_QTime(const QTime& other) { -QTime* a = new QTime(); -*((QTime*)a) = other; -return a; } -void delete_QTime(QTime* obj) { delete obj; } - QTime addMSecs(QTime* theWrappedObject, int ms) const; - QTime addSecs(QTime* theWrappedObject, int secs) const; - QTime static_QTime_currentTime(); - int elapsed(QTime* theWrappedObject) const; - QTime static_QTime_fromString(const QString& s, Qt::DateFormat f = Qt::TextDate); - QTime static_QTime_fromString(const QString& s, const QString& format); - int hour(QTime* theWrappedObject) const; - bool isNull(QTime* theWrappedObject) const; - bool isValid(QTime* theWrappedObject) const; - bool static_QTime_isValid(int h, int m, int s, int ms = 0); - int minute(QTime* theWrappedObject) const; - int msec(QTime* theWrappedObject) const; - int msecsTo(QTime* theWrappedObject, const QTime& arg__1) const; - bool __ne__(QTime* theWrappedObject, const QTime& other) const; - bool __lt__(QTime* theWrappedObject, const QTime& other) const; - void writeTo(QTime* theWrappedObject, QDataStream& arg__1); - bool __le__(QTime* theWrappedObject, const QTime& other) const; - bool __eq__(QTime* theWrappedObject, const QTime& other) const; - bool __gt__(QTime* theWrappedObject, const QTime& other) const; - bool __ge__(QTime* theWrappedObject, const QTime& other) const; - void readFrom(QTime* theWrappedObject, QDataStream& arg__1); - int restart(QTime* theWrappedObject); - int second(QTime* theWrappedObject) const; - int secsTo(QTime* theWrappedObject, const QTime& arg__1) const; - bool setHMS(QTime* theWrappedObject, int h, int m, int s, int ms = 0); - void start(QTime* theWrappedObject); - QString toString(QTime* theWrappedObject, Qt::DateFormat f = Qt::TextDate) const; - QString toString(QTime* theWrappedObject, const QString& format) const; - QString py_toString(QTime*); - bool __nonzero__(QTime* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QUrl : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ParsingMode FormattingOption ) -Q_FLAGS(FormattingOptions ) -enum ParsingMode{ - TolerantMode = QUrl::TolerantMode, StrictMode = QUrl::StrictMode}; -enum FormattingOption{ - None = QUrl::None, RemoveScheme = QUrl::RemoveScheme, RemovePassword = QUrl::RemovePassword, RemoveUserInfo = QUrl::RemoveUserInfo, RemovePort = QUrl::RemovePort, RemoveAuthority = QUrl::RemoveAuthority, RemovePath = QUrl::RemovePath, RemoveQuery = QUrl::RemoveQuery, RemoveFragment = QUrl::RemoveFragment, StripTrailingSlash = QUrl::StripTrailingSlash}; -Q_DECLARE_FLAGS(FormattingOptions, FormattingOption) -public slots: -QUrl* new_QUrl(); -QUrl* new_QUrl(const QString& url); -QUrl* new_QUrl(const QString& url, QUrl::ParsingMode mode); -QUrl* new_QUrl(const QUrl& copy); -void delete_QUrl(QUrl* obj) { delete obj; } - void addEncodedQueryItem(QUrl* theWrappedObject, const QByteArray& key, const QByteArray& value); - void addQueryItem(QUrl* theWrappedObject, const QString& key, const QString& value); - QList allEncodedQueryItemValues(QUrl* theWrappedObject, const QByteArray& key) const; - QStringList allQueryItemValues(QUrl* theWrappedObject, const QString& key) const; - QString authority(QUrl* theWrappedObject) const; - void clear(QUrl* theWrappedObject); - QByteArray encodedFragment(QUrl* theWrappedObject) const; - QByteArray encodedHost(QUrl* theWrappedObject) const; - QByteArray encodedPassword(QUrl* theWrappedObject) const; - QByteArray encodedPath(QUrl* theWrappedObject) const; - QByteArray encodedQuery(QUrl* theWrappedObject) const; - QByteArray encodedQueryItemValue(QUrl* theWrappedObject, const QByteArray& key) const; - QList > encodedQueryItems(QUrl* theWrappedObject) const; - QByteArray encodedUserName(QUrl* theWrappedObject) const; - QString errorString(QUrl* theWrappedObject) const; - QString fragment(QUrl* theWrappedObject) const; - QString static_QUrl_fromAce(const QByteArray& arg__1); - QUrl static_QUrl_fromEncoded(const QByteArray& url); - QUrl static_QUrl_fromEncoded(const QByteArray& url, QUrl::ParsingMode mode); - QUrl static_QUrl_fromLocalFile(const QString& localfile); - QString static_QUrl_fromPercentEncoding(const QByteArray& arg__1); - QUrl static_QUrl_fromUserInput(const QString& userInput); - bool hasEncodedQueryItem(QUrl* theWrappedObject, const QByteArray& key) const; - bool hasFragment(QUrl* theWrappedObject) const; - bool hasQuery(QUrl* theWrappedObject) const; - bool hasQueryItem(QUrl* theWrappedObject, const QString& key) const; - QString host(QUrl* theWrappedObject) const; - QStringList static_QUrl_idnWhitelist(); - bool isEmpty(QUrl* theWrappedObject) const; - bool isParentOf(QUrl* theWrappedObject, const QUrl& url) const; - bool isRelative(QUrl* theWrappedObject) const; - bool isValid(QUrl* theWrappedObject) const; - bool __ne__(QUrl* theWrappedObject, const QUrl& url) const; - bool __lt__(QUrl* theWrappedObject, const QUrl& url) const; - void writeTo(QUrl* theWrappedObject, QDataStream& arg__1); - bool __eq__(QUrl* theWrappedObject, const QUrl& url) const; - void readFrom(QUrl* theWrappedObject, QDataStream& arg__1); - QString password(QUrl* theWrappedObject) const; - QString path(QUrl* theWrappedObject) const; - int port(QUrl* theWrappedObject) const; - int port(QUrl* theWrappedObject, int defaultPort) const; - QString queryItemValue(QUrl* theWrappedObject, const QString& key) const; - QList > queryItems(QUrl* theWrappedObject) const; - char queryPairDelimiter(QUrl* theWrappedObject) const; - char queryValueDelimiter(QUrl* theWrappedObject) const; - void removeAllEncodedQueryItems(QUrl* theWrappedObject, const QByteArray& key); - void removeAllQueryItems(QUrl* theWrappedObject, const QString& key); - void removeEncodedQueryItem(QUrl* theWrappedObject, const QByteArray& key); - void removeQueryItem(QUrl* theWrappedObject, const QString& key); - QUrl resolved(QUrl* theWrappedObject, const QUrl& relative) const; - QString scheme(QUrl* theWrappedObject) const; - void setAuthority(QUrl* theWrappedObject, const QString& authority); - void setEncodedFragment(QUrl* theWrappedObject, const QByteArray& fragment); - void setEncodedHost(QUrl* theWrappedObject, const QByteArray& host); - void setEncodedPassword(QUrl* theWrappedObject, const QByteArray& password); - void setEncodedPath(QUrl* theWrappedObject, const QByteArray& path); - void setEncodedQuery(QUrl* theWrappedObject, const QByteArray& query); - void setEncodedQueryItems(QUrl* theWrappedObject, const QList >& query); - void setEncodedUrl(QUrl* theWrappedObject, const QByteArray& url); - void setEncodedUrl(QUrl* theWrappedObject, const QByteArray& url, QUrl::ParsingMode mode); - void setEncodedUserName(QUrl* theWrappedObject, const QByteArray& userName); - void setFragment(QUrl* theWrappedObject, const QString& fragment); - void setHost(QUrl* theWrappedObject, const QString& host); - void static_QUrl_setIdnWhitelist(const QStringList& arg__1); - void setPassword(QUrl* theWrappedObject, const QString& password); - void setPath(QUrl* theWrappedObject, const QString& path); - void setPort(QUrl* theWrappedObject, int port); - void setQueryDelimiters(QUrl* theWrappedObject, char valueDelimiter, char pairDelimiter); - void setQueryItems(QUrl* theWrappedObject, const QList >& query); - void setScheme(QUrl* theWrappedObject, const QString& scheme); - void setUrl(QUrl* theWrappedObject, const QString& url); - void setUrl(QUrl* theWrappedObject, const QString& url, QUrl::ParsingMode mode); - void setUserInfo(QUrl* theWrappedObject, const QString& userInfo); - void setUserName(QUrl* theWrappedObject, const QString& userName); - QByteArray static_QUrl_toAce(const QString& arg__1); - QByteArray toEncoded(QUrl* theWrappedObject, QUrl::FormattingOptions options = QUrl::None) const; - QString toLocalFile(QUrl* theWrappedObject) const; - QByteArray static_QUrl_toPercentEncoding(const QString& arg__1, const QByteArray& exclude = QByteArray(), const QByteArray& include = QByteArray()); - QString toString(QUrl* theWrappedObject, QUrl::FormattingOptions options = QUrl::None) const; - QString userInfo(QUrl* theWrappedObject) const; - QString userName(QUrl* theWrappedObject) const; - QString py_toString(QUrl*); -}; - - - - - -class PythonQtWrapper_Qt : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ShortcutContext CheckState FocusPolicy DropAction WindowType DateFormat TextFormat PenJoinStyle CaseSensitivity EventPriority ImageConversionFlag GestureState BGMode ConnectionType ToolBarArea CoordinateSystem SizeMode FocusReason TileRule WhiteSpaceMode AspectRatioMode SizeHint AlignmentFlag ContextMenuPolicy DockWidgetArea UIEffect AnchorPoint GlobalColor KeyboardModifier NavigationMode ItemDataRole ScrollBarPolicy InputMethodHint AnchorAttribute WindowModality SortOrder PenStyle ItemFlag Axis TransformationMode WindowFrameSection HitTestAccuracy CursorShape ItemSelectionMode Orientation InputMethodQuery TimeSpec ArrowType FillRule MaskMode WindowState ToolBarAreaSizes Corner DayOfWeek ClipOperation LayoutDirection ToolButtonStyle DockWidgetAreaSizes Key ApplicationAttribute TextFlag BrushStyle WidgetAttribute TouchPointState TextInteractionFlag MouseButton MatchFlag PenCapStyle TextElideMode ) -Q_FLAGS(DropActions WindowFlags ImageConversionFlags ToolBarAreas Alignment DockWidgetAreas KeyboardModifiers InputMethodHints ItemFlags Orientations WindowStates TouchPointStates TextInteractionFlags MouseButtons MatchFlags ) -enum ShortcutContext{ - WidgetShortcut = Qt::WidgetShortcut, WindowShortcut = Qt::WindowShortcut, ApplicationShortcut = Qt::ApplicationShortcut, WidgetWithChildrenShortcut = Qt::WidgetWithChildrenShortcut}; -enum CheckState{ - Unchecked = Qt::Unchecked, PartiallyChecked = Qt::PartiallyChecked, Checked = Qt::Checked}; -enum FocusPolicy{ - NoFocus = Qt::NoFocus, TabFocus = Qt::TabFocus, ClickFocus = Qt::ClickFocus, StrongFocus = Qt::StrongFocus, WheelFocus = Qt::WheelFocus}; -enum DropAction{ - CopyAction = Qt::CopyAction, MoveAction = Qt::MoveAction, LinkAction = Qt::LinkAction, ActionMask = Qt::ActionMask, TargetMoveAction = Qt::TargetMoveAction, IgnoreAction = Qt::IgnoreAction}; -enum WindowType{ - Widget = Qt::Widget, Window = Qt::Window, Dialog = Qt::Dialog, Sheet = Qt::Sheet, Drawer = Qt::Drawer, Popup = Qt::Popup, Tool = Qt::Tool, ToolTip = Qt::ToolTip, SplashScreen = Qt::SplashScreen, Desktop = Qt::Desktop, SubWindow = Qt::SubWindow, WindowType_Mask = Qt::WindowType_Mask, MSWindowsFixedSizeDialogHint = Qt::MSWindowsFixedSizeDialogHint, MSWindowsOwnDC = Qt::MSWindowsOwnDC, X11BypassWindowManagerHint = Qt::X11BypassWindowManagerHint, FramelessWindowHint = Qt::FramelessWindowHint, WindowTitleHint = Qt::WindowTitleHint, WindowSystemMenuHint = Qt::WindowSystemMenuHint, WindowMinimizeButtonHint = Qt::WindowMinimizeButtonHint, WindowMaximizeButtonHint = Qt::WindowMaximizeButtonHint, WindowMinMaxButtonsHint = Qt::WindowMinMaxButtonsHint, WindowContextHelpButtonHint = Qt::WindowContextHelpButtonHint, WindowShadeButtonHint = Qt::WindowShadeButtonHint, WindowStaysOnTopHint = Qt::WindowStaysOnTopHint, CustomizeWindowHint = Qt::CustomizeWindowHint, WindowStaysOnBottomHint = Qt::WindowStaysOnBottomHint, WindowCloseButtonHint = Qt::WindowCloseButtonHint, MacWindowToolBarButtonHint = Qt::MacWindowToolBarButtonHint, BypassGraphicsProxyWidget = Qt::BypassGraphicsProxyWidget, WindowOkButtonHint = Qt::WindowOkButtonHint, WindowCancelButtonHint = Qt::WindowCancelButtonHint}; -enum DateFormat{ - TextDate = Qt::TextDate, ISODate = Qt::ISODate, SystemLocaleDate = Qt::SystemLocaleDate, LocalDate = Qt::LocalDate, LocaleDate = Qt::LocaleDate, SystemLocaleShortDate = Qt::SystemLocaleShortDate, SystemLocaleLongDate = Qt::SystemLocaleLongDate, DefaultLocaleShortDate = Qt::DefaultLocaleShortDate, DefaultLocaleLongDate = Qt::DefaultLocaleLongDate}; -enum TextFormat{ - PlainText = Qt::PlainText, RichText = Qt::RichText, AutoText = Qt::AutoText, LogText = Qt::LogText}; -enum PenJoinStyle{ - MiterJoin = Qt::MiterJoin, BevelJoin = Qt::BevelJoin, RoundJoin = Qt::RoundJoin, SvgMiterJoin = Qt::SvgMiterJoin, MPenJoinStyle = Qt::MPenJoinStyle}; -enum CaseSensitivity{ - CaseInsensitive = Qt::CaseInsensitive, CaseSensitive = Qt::CaseSensitive}; -enum EventPriority{ - HighEventPriority = Qt::HighEventPriority, NormalEventPriority = Qt::NormalEventPriority, LowEventPriority = Qt::LowEventPriority}; -enum ImageConversionFlag{ - ColorMode_Mask = Qt::ColorMode_Mask, AutoColor = Qt::AutoColor, ColorOnly = Qt::ColorOnly, MonoOnly = Qt::MonoOnly, AlphaDither_Mask = Qt::AlphaDither_Mask, ThresholdAlphaDither = Qt::ThresholdAlphaDither, OrderedAlphaDither = Qt::OrderedAlphaDither, DiffuseAlphaDither = Qt::DiffuseAlphaDither, NoAlpha = Qt::NoAlpha, Dither_Mask = Qt::Dither_Mask, DiffuseDither = Qt::DiffuseDither, OrderedDither = Qt::OrderedDither, ThresholdDither = Qt::ThresholdDither, DitherMode_Mask = Qt::DitherMode_Mask, AutoDither = Qt::AutoDither, PreferDither = Qt::PreferDither, AvoidDither = Qt::AvoidDither, NoOpaqueDetection = Qt::NoOpaqueDetection}; -enum GestureState{ - NoGesture = Qt::NoGesture, GestureStarted = Qt::GestureStarted, GestureUpdated = Qt::GestureUpdated, GestureFinished = Qt::GestureFinished, GestureCanceled = Qt::GestureCanceled}; -enum BGMode{ - TransparentMode = Qt::TransparentMode, OpaqueMode = Qt::OpaqueMode}; -enum ConnectionType{ - AutoConnection = Qt::AutoConnection, DirectConnection = Qt::DirectConnection, QueuedConnection = Qt::QueuedConnection, AutoCompatConnection = Qt::AutoCompatConnection, BlockingQueuedConnection = Qt::BlockingQueuedConnection, UniqueConnection = Qt::UniqueConnection}; -enum ToolBarArea{ - LeftToolBarArea = Qt::LeftToolBarArea, RightToolBarArea = Qt::RightToolBarArea, TopToolBarArea = Qt::TopToolBarArea, BottomToolBarArea = Qt::BottomToolBarArea, ToolBarArea_Mask = Qt::ToolBarArea_Mask, AllToolBarAreas = Qt::AllToolBarAreas, NoToolBarArea = Qt::NoToolBarArea}; -enum CoordinateSystem{ - DeviceCoordinates = Qt::DeviceCoordinates, LogicalCoordinates = Qt::LogicalCoordinates}; -enum SizeMode{ - AbsoluteSize = Qt::AbsoluteSize, RelativeSize = Qt::RelativeSize}; -enum FocusReason{ - MouseFocusReason = Qt::MouseFocusReason, TabFocusReason = Qt::TabFocusReason, BacktabFocusReason = Qt::BacktabFocusReason, ActiveWindowFocusReason = Qt::ActiveWindowFocusReason, PopupFocusReason = Qt::PopupFocusReason, ShortcutFocusReason = Qt::ShortcutFocusReason, MenuBarFocusReason = Qt::MenuBarFocusReason, OtherFocusReason = Qt::OtherFocusReason, NoFocusReason = Qt::NoFocusReason}; -enum TileRule{ - StretchTile = Qt::StretchTile, RepeatTile = Qt::RepeatTile, RoundTile = Qt::RoundTile}; -enum WhiteSpaceMode{ - WhiteSpaceNormal = Qt::WhiteSpaceNormal, WhiteSpacePre = Qt::WhiteSpacePre, WhiteSpaceNoWrap = Qt::WhiteSpaceNoWrap, WhiteSpaceModeUndefined = Qt::WhiteSpaceModeUndefined}; -enum AspectRatioMode{ - IgnoreAspectRatio = Qt::IgnoreAspectRatio, KeepAspectRatio = Qt::KeepAspectRatio, KeepAspectRatioByExpanding = Qt::KeepAspectRatioByExpanding}; -enum SizeHint{ - MinimumSize = Qt::MinimumSize, PreferredSize = Qt::PreferredSize, MaximumSize = Qt::MaximumSize, MinimumDescent = Qt::MinimumDescent, NSizeHints = Qt::NSizeHints}; -enum AlignmentFlag{ - AlignLeft = Qt::AlignLeft, AlignLeading = Qt::AlignLeading, AlignRight = Qt::AlignRight, AlignTrailing = Qt::AlignTrailing, AlignHCenter = Qt::AlignHCenter, AlignJustify = Qt::AlignJustify, AlignAbsolute = Qt::AlignAbsolute, AlignHorizontal_Mask = Qt::AlignHorizontal_Mask, AlignTop = Qt::AlignTop, AlignBottom = Qt::AlignBottom, AlignVCenter = Qt::AlignVCenter, AlignVertical_Mask = Qt::AlignVertical_Mask, AlignCenter = Qt::AlignCenter}; -enum ContextMenuPolicy{ - NoContextMenu = Qt::NoContextMenu, DefaultContextMenu = Qt::DefaultContextMenu, ActionsContextMenu = Qt::ActionsContextMenu, CustomContextMenu = Qt::CustomContextMenu, PreventContextMenu = Qt::PreventContextMenu}; -enum DockWidgetArea{ - LeftDockWidgetArea = Qt::LeftDockWidgetArea, RightDockWidgetArea = Qt::RightDockWidgetArea, TopDockWidgetArea = Qt::TopDockWidgetArea, BottomDockWidgetArea = Qt::BottomDockWidgetArea, DockWidgetArea_Mask = Qt::DockWidgetArea_Mask, AllDockWidgetAreas = Qt::AllDockWidgetAreas, NoDockWidgetArea = Qt::NoDockWidgetArea}; -enum UIEffect{ - UI_General = Qt::UI_General, UI_AnimateMenu = Qt::UI_AnimateMenu, UI_FadeMenu = Qt::UI_FadeMenu, UI_AnimateCombo = Qt::UI_AnimateCombo, UI_AnimateTooltip = Qt::UI_AnimateTooltip, UI_FadeTooltip = Qt::UI_FadeTooltip, UI_AnimateToolBox = Qt::UI_AnimateToolBox}; -enum AnchorPoint{ - AnchorLeft = Qt::AnchorLeft, AnchorHorizontalCenter = Qt::AnchorHorizontalCenter, AnchorRight = Qt::AnchorRight, AnchorTop = Qt::AnchorTop, AnchorVerticalCenter = Qt::AnchorVerticalCenter, AnchorBottom = Qt::AnchorBottom}; -enum GlobalColor{ - color0 = Qt::color0, color1 = Qt::color1, black = Qt::black, white = Qt::white, darkGray = Qt::darkGray, gray = Qt::gray, lightGray = Qt::lightGray, red = Qt::red, green = Qt::green, blue = Qt::blue, cyan = Qt::cyan, magenta = Qt::magenta, yellow = Qt::yellow, darkRed = Qt::darkRed, darkGreen = Qt::darkGreen, darkBlue = Qt::darkBlue, darkCyan = Qt::darkCyan, darkMagenta = Qt::darkMagenta, darkYellow = Qt::darkYellow, transparent = Qt::transparent}; -enum KeyboardModifier{ - NoModifier = Qt::NoModifier, ShiftModifier = Qt::ShiftModifier, ControlModifier = Qt::ControlModifier, AltModifier = Qt::AltModifier, MetaModifier = Qt::MetaModifier, KeypadModifier = Qt::KeypadModifier, GroupSwitchModifier = Qt::GroupSwitchModifier, KeyboardModifierMask = Qt::KeyboardModifierMask}; -enum NavigationMode{ - NavigationModeNone = Qt::NavigationModeNone, NavigationModeKeypadTabOrder = Qt::NavigationModeKeypadTabOrder, NavigationModeKeypadDirectional = Qt::NavigationModeKeypadDirectional, NavigationModeCursorAuto = Qt::NavigationModeCursorAuto, NavigationModeCursorForceVisible = Qt::NavigationModeCursorForceVisible}; -enum ItemDataRole{ - DisplayRole = Qt::DisplayRole, DecorationRole = Qt::DecorationRole, EditRole = Qt::EditRole, ToolTipRole = Qt::ToolTipRole, StatusTipRole = Qt::StatusTipRole, WhatsThisRole = Qt::WhatsThisRole, FontRole = Qt::FontRole, TextAlignmentRole = Qt::TextAlignmentRole, BackgroundColorRole = Qt::BackgroundColorRole, BackgroundRole = Qt::BackgroundRole, TextColorRole = Qt::TextColorRole, ForegroundRole = Qt::ForegroundRole, CheckStateRole = Qt::CheckStateRole, AccessibleTextRole = Qt::AccessibleTextRole, AccessibleDescriptionRole = Qt::AccessibleDescriptionRole, SizeHintRole = Qt::SizeHintRole, DisplayPropertyRole = Qt::DisplayPropertyRole, DecorationPropertyRole = Qt::DecorationPropertyRole, ToolTipPropertyRole = Qt::ToolTipPropertyRole, StatusTipPropertyRole = Qt::StatusTipPropertyRole, WhatsThisPropertyRole = Qt::WhatsThisPropertyRole, UserRole = Qt::UserRole}; -enum ScrollBarPolicy{ - ScrollBarAsNeeded = Qt::ScrollBarAsNeeded, ScrollBarAlwaysOff = Qt::ScrollBarAlwaysOff, ScrollBarAlwaysOn = Qt::ScrollBarAlwaysOn}; -enum InputMethodHint{ - ImhNone = Qt::ImhNone, ImhHiddenText = Qt::ImhHiddenText, ImhNoAutoUppercase = Qt::ImhNoAutoUppercase, ImhPreferNumbers = Qt::ImhPreferNumbers, ImhPreferUppercase = Qt::ImhPreferUppercase, ImhPreferLowercase = Qt::ImhPreferLowercase, ImhNoPredictiveText = Qt::ImhNoPredictiveText, ImhDigitsOnly = Qt::ImhDigitsOnly, ImhFormattedNumbersOnly = Qt::ImhFormattedNumbersOnly, ImhUppercaseOnly = Qt::ImhUppercaseOnly, ImhLowercaseOnly = Qt::ImhLowercaseOnly, ImhDialableCharactersOnly = Qt::ImhDialableCharactersOnly, ImhEmailCharactersOnly = Qt::ImhEmailCharactersOnly, ImhUrlCharactersOnly = Qt::ImhUrlCharactersOnly, ImhExclusiveInputMask = Qt::ImhExclusiveInputMask}; -enum AnchorAttribute{ - AnchorName = Qt::AnchorName, AnchorHref = Qt::AnchorHref}; -enum WindowModality{ - NonModal = Qt::NonModal, WindowModal = Qt::WindowModal, ApplicationModal = Qt::ApplicationModal}; -enum SortOrder{ - AscendingOrder = Qt::AscendingOrder, DescendingOrder = Qt::DescendingOrder}; -enum PenStyle{ - NoPen = Qt::NoPen, SolidLine = Qt::SolidLine, DashLine = Qt::DashLine, DotLine = Qt::DotLine, DashDotLine = Qt::DashDotLine, DashDotDotLine = Qt::DashDotDotLine, CustomDashLine = Qt::CustomDashLine, MPenStyle = Qt::MPenStyle}; -enum ItemFlag{ - NoItemFlags = Qt::NoItemFlags, ItemIsSelectable = Qt::ItemIsSelectable, ItemIsEditable = Qt::ItemIsEditable, ItemIsDragEnabled = Qt::ItemIsDragEnabled, ItemIsDropEnabled = Qt::ItemIsDropEnabled, ItemIsUserCheckable = Qt::ItemIsUserCheckable, ItemIsEnabled = Qt::ItemIsEnabled, ItemIsTristate = Qt::ItemIsTristate}; -enum Axis{ - XAxis = Qt::XAxis, YAxis = Qt::YAxis, ZAxis = Qt::ZAxis}; -enum TransformationMode{ - FastTransformation = Qt::FastTransformation, SmoothTransformation = Qt::SmoothTransformation}; -enum WindowFrameSection{ - NoSection = Qt::NoSection, LeftSection = Qt::LeftSection, TopLeftSection = Qt::TopLeftSection, TopSection = Qt::TopSection, TopRightSection = Qt::TopRightSection, RightSection = Qt::RightSection, BottomRightSection = Qt::BottomRightSection, BottomSection = Qt::BottomSection, BottomLeftSection = Qt::BottomLeftSection, TitleBarArea = Qt::TitleBarArea}; -enum HitTestAccuracy{ - ExactHit = Qt::ExactHit, FuzzyHit = Qt::FuzzyHit}; -enum CursorShape{ - ArrowCursor = Qt::ArrowCursor, UpArrowCursor = Qt::UpArrowCursor, CrossCursor = Qt::CrossCursor, WaitCursor = Qt::WaitCursor, IBeamCursor = Qt::IBeamCursor, SizeVerCursor = Qt::SizeVerCursor, SizeHorCursor = Qt::SizeHorCursor, SizeBDiagCursor = Qt::SizeBDiagCursor, SizeFDiagCursor = Qt::SizeFDiagCursor, SizeAllCursor = Qt::SizeAllCursor, BlankCursor = Qt::BlankCursor, SplitVCursor = Qt::SplitVCursor, SplitHCursor = Qt::SplitHCursor, PointingHandCursor = Qt::PointingHandCursor, ForbiddenCursor = Qt::ForbiddenCursor, WhatsThisCursor = Qt::WhatsThisCursor, BusyCursor = Qt::BusyCursor, OpenHandCursor = Qt::OpenHandCursor, ClosedHandCursor = Qt::ClosedHandCursor, LastCursor = Qt::LastCursor, BitmapCursor = Qt::BitmapCursor, CustomCursor = Qt::CustomCursor}; -enum ItemSelectionMode{ - ContainsItemShape = Qt::ContainsItemShape, IntersectsItemShape = Qt::IntersectsItemShape, ContainsItemBoundingRect = Qt::ContainsItemBoundingRect, IntersectsItemBoundingRect = Qt::IntersectsItemBoundingRect}; -enum Orientation{ - Horizontal = Qt::Horizontal, Vertical = Qt::Vertical}; -enum InputMethodQuery{ - ImMicroFocus = Qt::ImMicroFocus, ImFont = Qt::ImFont, ImCursorPosition = Qt::ImCursorPosition, ImSurroundingText = Qt::ImSurroundingText, ImCurrentSelection = Qt::ImCurrentSelection, ImMaximumTextLength = Qt::ImMaximumTextLength, ImAnchorPosition = Qt::ImAnchorPosition}; -enum TimeSpec{ - LocalTime = Qt::LocalTime, UTC = Qt::UTC, OffsetFromUTC = Qt::OffsetFromUTC}; -enum ArrowType{ - NoArrow = Qt::NoArrow, UpArrow = Qt::UpArrow, DownArrow = Qt::DownArrow, LeftArrow = Qt::LeftArrow, RightArrow = Qt::RightArrow}; -enum FillRule{ - OddEvenFill = Qt::OddEvenFill, WindingFill = Qt::WindingFill}; -enum MaskMode{ - MaskInColor = Qt::MaskInColor, MaskOutColor = Qt::MaskOutColor}; -enum WindowState{ - WindowNoState = Qt::WindowNoState, WindowMinimized = Qt::WindowMinimized, WindowMaximized = Qt::WindowMaximized, WindowFullScreen = Qt::WindowFullScreen, WindowActive = Qt::WindowActive}; -enum ToolBarAreaSizes{ - NToolBarAreas = Qt::NToolBarAreas}; -enum Corner{ - TopLeftCorner = Qt::TopLeftCorner, TopRightCorner = Qt::TopRightCorner, BottomLeftCorner = Qt::BottomLeftCorner, BottomRightCorner = Qt::BottomRightCorner}; -enum DayOfWeek{ - Monday = Qt::Monday, Tuesday = Qt::Tuesday, Wednesday = Qt::Wednesday, Thursday = Qt::Thursday, Friday = Qt::Friday, Saturday = Qt::Saturday, Sunday = Qt::Sunday}; -enum ClipOperation{ - NoClip = Qt::NoClip, ReplaceClip = Qt::ReplaceClip, IntersectClip = Qt::IntersectClip, UniteClip = Qt::UniteClip}; -enum LayoutDirection{ - LeftToRight = Qt::LeftToRight, RightToLeft = Qt::RightToLeft}; -enum ToolButtonStyle{ - ToolButtonIconOnly = Qt::ToolButtonIconOnly, ToolButtonTextOnly = Qt::ToolButtonTextOnly, ToolButtonTextBesideIcon = Qt::ToolButtonTextBesideIcon, ToolButtonTextUnderIcon = Qt::ToolButtonTextUnderIcon, ToolButtonFollowStyle = Qt::ToolButtonFollowStyle}; -enum DockWidgetAreaSizes{ - NDockWidgetAreas = Qt::NDockWidgetAreas}; -enum Key{ - Key_Escape = Qt::Key_Escape, Key_Tab = Qt::Key_Tab, Key_Backtab = Qt::Key_Backtab, Key_Backspace = Qt::Key_Backspace, Key_Return = Qt::Key_Return, Key_Enter = Qt::Key_Enter, Key_Insert = Qt::Key_Insert, Key_Delete = Qt::Key_Delete, Key_Pause = Qt::Key_Pause, Key_Print = Qt::Key_Print, Key_SysReq = Qt::Key_SysReq, Key_Clear = Qt::Key_Clear, Key_Home = Qt::Key_Home, Key_End = Qt::Key_End, Key_Left = Qt::Key_Left, Key_Up = Qt::Key_Up, Key_Right = Qt::Key_Right, Key_Down = Qt::Key_Down, Key_PageUp = Qt::Key_PageUp, Key_PageDown = Qt::Key_PageDown, Key_Shift = Qt::Key_Shift, Key_Control = Qt::Key_Control, Key_Meta = Qt::Key_Meta, Key_Alt = Qt::Key_Alt, Key_CapsLock = Qt::Key_CapsLock, Key_NumLock = Qt::Key_NumLock, Key_ScrollLock = Qt::Key_ScrollLock, Key_F1 = Qt::Key_F1, Key_F2 = Qt::Key_F2, Key_F3 = Qt::Key_F3, Key_F4 = Qt::Key_F4, Key_F5 = Qt::Key_F5, Key_F6 = Qt::Key_F6, Key_F7 = Qt::Key_F7, Key_F8 = Qt::Key_F8, Key_F9 = Qt::Key_F9, Key_F10 = Qt::Key_F10, Key_F11 = Qt::Key_F11, Key_F12 = Qt::Key_F12, Key_F13 = Qt::Key_F13, Key_F14 = Qt::Key_F14, Key_F15 = Qt::Key_F15, Key_F16 = Qt::Key_F16, Key_F17 = Qt::Key_F17, Key_F18 = Qt::Key_F18, Key_F19 = Qt::Key_F19, Key_F20 = Qt::Key_F20, Key_F21 = Qt::Key_F21, Key_F22 = Qt::Key_F22, Key_F23 = Qt::Key_F23, Key_F24 = Qt::Key_F24, Key_F25 = Qt::Key_F25, Key_F26 = Qt::Key_F26, Key_F27 = Qt::Key_F27, Key_F28 = Qt::Key_F28, Key_F29 = Qt::Key_F29, Key_F30 = Qt::Key_F30, Key_F31 = Qt::Key_F31, Key_F32 = Qt::Key_F32, Key_F33 = Qt::Key_F33, Key_F34 = Qt::Key_F34, Key_F35 = Qt::Key_F35, Key_Super_L = Qt::Key_Super_L, Key_Super_R = Qt::Key_Super_R, Key_Menu = Qt::Key_Menu, Key_Hyper_L = Qt::Key_Hyper_L, Key_Hyper_R = Qt::Key_Hyper_R, Key_Help = Qt::Key_Help, Key_Direction_L = Qt::Key_Direction_L, Key_Direction_R = Qt::Key_Direction_R, Key_Space = Qt::Key_Space, Key_Any = Qt::Key_Any, Key_Exclam = Qt::Key_Exclam, Key_QuoteDbl = Qt::Key_QuoteDbl, Key_NumberSign = Qt::Key_NumberSign, Key_Dollar = Qt::Key_Dollar, Key_Percent = Qt::Key_Percent, Key_Ampersand = Qt::Key_Ampersand, Key_Apostrophe = Qt::Key_Apostrophe, Key_ParenLeft = Qt::Key_ParenLeft, Key_ParenRight = Qt::Key_ParenRight, Key_Asterisk = Qt::Key_Asterisk, Key_Plus = Qt::Key_Plus, Key_Comma = Qt::Key_Comma, Key_Minus = Qt::Key_Minus, Key_Period = Qt::Key_Period, Key_Slash = Qt::Key_Slash, Key_0 = Qt::Key_0, Key_1 = Qt::Key_1, Key_2 = Qt::Key_2, Key_3 = Qt::Key_3, Key_4 = Qt::Key_4, Key_5 = Qt::Key_5, Key_6 = Qt::Key_6, Key_7 = Qt::Key_7, Key_8 = Qt::Key_8, Key_9 = Qt::Key_9, Key_Colon = Qt::Key_Colon, Key_Semicolon = Qt::Key_Semicolon, Key_Less = Qt::Key_Less, Key_Equal = Qt::Key_Equal, Key_Greater = Qt::Key_Greater, Key_Question = Qt::Key_Question, Key_At = Qt::Key_At, Key_A = Qt::Key_A, Key_B = Qt::Key_B, Key_C = Qt::Key_C, Key_D = Qt::Key_D, Key_E = Qt::Key_E, Key_F = Qt::Key_F, Key_G = Qt::Key_G, Key_H = Qt::Key_H, Key_I = Qt::Key_I, Key_J = Qt::Key_J, Key_K = Qt::Key_K, Key_L = Qt::Key_L, Key_M = Qt::Key_M, Key_N = Qt::Key_N, Key_O = Qt::Key_O, Key_P = Qt::Key_P, Key_Q = Qt::Key_Q, Key_R = Qt::Key_R, Key_S = Qt::Key_S, Key_T = Qt::Key_T, Key_U = Qt::Key_U, Key_V = Qt::Key_V, Key_W = Qt::Key_W, Key_X = Qt::Key_X, Key_Y = Qt::Key_Y, Key_Z = Qt::Key_Z, Key_BracketLeft = Qt::Key_BracketLeft, Key_Backslash = Qt::Key_Backslash, Key_BracketRight = Qt::Key_BracketRight, Key_AsciiCircum = Qt::Key_AsciiCircum, Key_Underscore = Qt::Key_Underscore, Key_QuoteLeft = Qt::Key_QuoteLeft, Key_BraceLeft = Qt::Key_BraceLeft, Key_Bar = Qt::Key_Bar, Key_BraceRight = Qt::Key_BraceRight, Key_AsciiTilde = Qt::Key_AsciiTilde, Key_nobreakspace = Qt::Key_nobreakspace, Key_exclamdown = Qt::Key_exclamdown, Key_cent = Qt::Key_cent, Key_sterling = Qt::Key_sterling, Key_currency = Qt::Key_currency, Key_yen = Qt::Key_yen, Key_brokenbar = Qt::Key_brokenbar, Key_section = Qt::Key_section, Key_diaeresis = Qt::Key_diaeresis, Key_copyright = Qt::Key_copyright, Key_ordfeminine = Qt::Key_ordfeminine, Key_guillemotleft = Qt::Key_guillemotleft, Key_notsign = Qt::Key_notsign, Key_hyphen = Qt::Key_hyphen, Key_registered = Qt::Key_registered, Key_macron = Qt::Key_macron, Key_degree = Qt::Key_degree, Key_plusminus = Qt::Key_plusminus, Key_twosuperior = Qt::Key_twosuperior, Key_threesuperior = Qt::Key_threesuperior, Key_acute = Qt::Key_acute, Key_mu = Qt::Key_mu, Key_paragraph = Qt::Key_paragraph, Key_periodcentered = Qt::Key_periodcentered, Key_cedilla = Qt::Key_cedilla, Key_onesuperior = Qt::Key_onesuperior, Key_masculine = Qt::Key_masculine, Key_guillemotright = Qt::Key_guillemotright, Key_onequarter = Qt::Key_onequarter, Key_onehalf = Qt::Key_onehalf, Key_threequarters = Qt::Key_threequarters, Key_questiondown = Qt::Key_questiondown, Key_Agrave = Qt::Key_Agrave, Key_Aacute = Qt::Key_Aacute, Key_Acircumflex = Qt::Key_Acircumflex, Key_Atilde = Qt::Key_Atilde, Key_Adiaeresis = Qt::Key_Adiaeresis, Key_Aring = Qt::Key_Aring, Key_AE = Qt::Key_AE, Key_Ccedilla = Qt::Key_Ccedilla, Key_Egrave = Qt::Key_Egrave, Key_Eacute = Qt::Key_Eacute, Key_Ecircumflex = Qt::Key_Ecircumflex, Key_Ediaeresis = Qt::Key_Ediaeresis, Key_Igrave = Qt::Key_Igrave, Key_Iacute = Qt::Key_Iacute, Key_Icircumflex = Qt::Key_Icircumflex, Key_Idiaeresis = Qt::Key_Idiaeresis, Key_ETH = Qt::Key_ETH, Key_Ntilde = Qt::Key_Ntilde, Key_Ograve = Qt::Key_Ograve, Key_Oacute = Qt::Key_Oacute, Key_Ocircumflex = Qt::Key_Ocircumflex, Key_Otilde = Qt::Key_Otilde, Key_Odiaeresis = Qt::Key_Odiaeresis, Key_multiply = Qt::Key_multiply, Key_Ooblique = Qt::Key_Ooblique, Key_Ugrave = Qt::Key_Ugrave, Key_Uacute = Qt::Key_Uacute, Key_Ucircumflex = Qt::Key_Ucircumflex, Key_Udiaeresis = Qt::Key_Udiaeresis, Key_Yacute = Qt::Key_Yacute, Key_THORN = Qt::Key_THORN, Key_ssharp = Qt::Key_ssharp, Key_division = Qt::Key_division, Key_ydiaeresis = Qt::Key_ydiaeresis, Key_AltGr = Qt::Key_AltGr, Key_Multi_key = Qt::Key_Multi_key, Key_Codeinput = Qt::Key_Codeinput, Key_SingleCandidate = Qt::Key_SingleCandidate, Key_MultipleCandidate = Qt::Key_MultipleCandidate, Key_PreviousCandidate = Qt::Key_PreviousCandidate, Key_Mode_switch = Qt::Key_Mode_switch, Key_Kanji = Qt::Key_Kanji, Key_Muhenkan = Qt::Key_Muhenkan, Key_Henkan = Qt::Key_Henkan, Key_Romaji = Qt::Key_Romaji, Key_Hiragana = Qt::Key_Hiragana, Key_Katakana = Qt::Key_Katakana, Key_Hiragana_Katakana = Qt::Key_Hiragana_Katakana, Key_Zenkaku = Qt::Key_Zenkaku, Key_Hankaku = Qt::Key_Hankaku, Key_Zenkaku_Hankaku = Qt::Key_Zenkaku_Hankaku, Key_Touroku = Qt::Key_Touroku, Key_Massyo = Qt::Key_Massyo, Key_Kana_Lock = Qt::Key_Kana_Lock, Key_Kana_Shift = Qt::Key_Kana_Shift, Key_Eisu_Shift = Qt::Key_Eisu_Shift, Key_Eisu_toggle = Qt::Key_Eisu_toggle, Key_Hangul = Qt::Key_Hangul, Key_Hangul_Start = Qt::Key_Hangul_Start, Key_Hangul_End = Qt::Key_Hangul_End, Key_Hangul_Hanja = Qt::Key_Hangul_Hanja, Key_Hangul_Jamo = Qt::Key_Hangul_Jamo, Key_Hangul_Romaja = Qt::Key_Hangul_Romaja, Key_Hangul_Jeonja = Qt::Key_Hangul_Jeonja, Key_Hangul_Banja = Qt::Key_Hangul_Banja, Key_Hangul_PreHanja = Qt::Key_Hangul_PreHanja, Key_Hangul_PostHanja = Qt::Key_Hangul_PostHanja, Key_Hangul_Special = Qt::Key_Hangul_Special, Key_Dead_Grave = Qt::Key_Dead_Grave, Key_Dead_Acute = Qt::Key_Dead_Acute, Key_Dead_Circumflex = Qt::Key_Dead_Circumflex, Key_Dead_Tilde = Qt::Key_Dead_Tilde, Key_Dead_Macron = Qt::Key_Dead_Macron, Key_Dead_Breve = Qt::Key_Dead_Breve, Key_Dead_Abovedot = Qt::Key_Dead_Abovedot, Key_Dead_Diaeresis = Qt::Key_Dead_Diaeresis, Key_Dead_Abovering = Qt::Key_Dead_Abovering, Key_Dead_Doubleacute = Qt::Key_Dead_Doubleacute, Key_Dead_Caron = Qt::Key_Dead_Caron, Key_Dead_Cedilla = Qt::Key_Dead_Cedilla, Key_Dead_Ogonek = Qt::Key_Dead_Ogonek, Key_Dead_Iota = Qt::Key_Dead_Iota, Key_Dead_Voiced_Sound = Qt::Key_Dead_Voiced_Sound, Key_Dead_Semivoiced_Sound = Qt::Key_Dead_Semivoiced_Sound, Key_Dead_Belowdot = Qt::Key_Dead_Belowdot, Key_Dead_Hook = Qt::Key_Dead_Hook, Key_Dead_Horn = Qt::Key_Dead_Horn, Key_Back = Qt::Key_Back, Key_Forward = Qt::Key_Forward, Key_Stop = Qt::Key_Stop, Key_Refresh = Qt::Key_Refresh, Key_VolumeDown = Qt::Key_VolumeDown, Key_VolumeMute = Qt::Key_VolumeMute, Key_VolumeUp = Qt::Key_VolumeUp, Key_BassBoost = Qt::Key_BassBoost, Key_BassUp = Qt::Key_BassUp, Key_BassDown = Qt::Key_BassDown, Key_TrebleUp = Qt::Key_TrebleUp, Key_TrebleDown = Qt::Key_TrebleDown, Key_MediaPlay = Qt::Key_MediaPlay, Key_MediaStop = Qt::Key_MediaStop, Key_MediaPrevious = Qt::Key_MediaPrevious, Key_MediaNext = Qt::Key_MediaNext, Key_MediaRecord = Qt::Key_MediaRecord, Key_HomePage = Qt::Key_HomePage, Key_Favorites = Qt::Key_Favorites, Key_Search = Qt::Key_Search, Key_Standby = Qt::Key_Standby, Key_OpenUrl = Qt::Key_OpenUrl, Key_LaunchMail = Qt::Key_LaunchMail, Key_LaunchMedia = Qt::Key_LaunchMedia, Key_Launch0 = Qt::Key_Launch0, Key_Launch1 = Qt::Key_Launch1, Key_Launch2 = Qt::Key_Launch2, Key_Launch3 = Qt::Key_Launch3, Key_Launch4 = Qt::Key_Launch4, Key_Launch5 = Qt::Key_Launch5, Key_Launch6 = Qt::Key_Launch6, Key_Launch7 = Qt::Key_Launch7, Key_Launch8 = Qt::Key_Launch8, Key_Launch9 = Qt::Key_Launch9, Key_LaunchA = Qt::Key_LaunchA, Key_LaunchB = Qt::Key_LaunchB, Key_LaunchC = Qt::Key_LaunchC, Key_LaunchD = Qt::Key_LaunchD, Key_LaunchE = Qt::Key_LaunchE, Key_LaunchF = Qt::Key_LaunchF, Key_MonBrightnessUp = Qt::Key_MonBrightnessUp, Key_MonBrightnessDown = Qt::Key_MonBrightnessDown, Key_KeyboardLightOnOff = Qt::Key_KeyboardLightOnOff, Key_KeyboardBrightnessUp = Qt::Key_KeyboardBrightnessUp, Key_KeyboardBrightnessDown = Qt::Key_KeyboardBrightnessDown, Key_PowerOff = Qt::Key_PowerOff, Key_WakeUp = Qt::Key_WakeUp, Key_Eject = Qt::Key_Eject, Key_ScreenSaver = Qt::Key_ScreenSaver, Key_WWW = Qt::Key_WWW, Key_Memo = Qt::Key_Memo, Key_LightBulb = Qt::Key_LightBulb, Key_Shop = Qt::Key_Shop, Key_History = Qt::Key_History, Key_AddFavorite = Qt::Key_AddFavorite, Key_HotLinks = Qt::Key_HotLinks, Key_BrightnessAdjust = Qt::Key_BrightnessAdjust, Key_Finance = Qt::Key_Finance, Key_Community = Qt::Key_Community, Key_AudioRewind = Qt::Key_AudioRewind, Key_BackForward = Qt::Key_BackForward, Key_ApplicationLeft = Qt::Key_ApplicationLeft, Key_ApplicationRight = Qt::Key_ApplicationRight, Key_Book = Qt::Key_Book, Key_CD = Qt::Key_CD, Key_Calculator = Qt::Key_Calculator, Key_ToDoList = Qt::Key_ToDoList, Key_ClearGrab = Qt::Key_ClearGrab, Key_Close = Qt::Key_Close, Key_Copy = Qt::Key_Copy, Key_Cut = Qt::Key_Cut, Key_Display = Qt::Key_Display, Key_DOS = Qt::Key_DOS, Key_Documents = Qt::Key_Documents, Key_Excel = Qt::Key_Excel, Key_Explorer = Qt::Key_Explorer, Key_Game = Qt::Key_Game, Key_Go = Qt::Key_Go, Key_iTouch = Qt::Key_iTouch, Key_LogOff = Qt::Key_LogOff, Key_Market = Qt::Key_Market, Key_Meeting = Qt::Key_Meeting, Key_MenuKB = Qt::Key_MenuKB, Key_MenuPB = Qt::Key_MenuPB, Key_MySites = Qt::Key_MySites, Key_News = Qt::Key_News, Key_OfficeHome = Qt::Key_OfficeHome, Key_Option = Qt::Key_Option, Key_Paste = Qt::Key_Paste, Key_Phone = Qt::Key_Phone, Key_Calendar = Qt::Key_Calendar, Key_Reply = Qt::Key_Reply, Key_Reload = Qt::Key_Reload, Key_RotateWindows = Qt::Key_RotateWindows, Key_RotationPB = Qt::Key_RotationPB, Key_RotationKB = Qt::Key_RotationKB, Key_Save = Qt::Key_Save, Key_Send = Qt::Key_Send, Key_Spell = Qt::Key_Spell, Key_SplitScreen = Qt::Key_SplitScreen, Key_Support = Qt::Key_Support, Key_TaskPane = Qt::Key_TaskPane, Key_Terminal = Qt::Key_Terminal, Key_Tools = Qt::Key_Tools, Key_Travel = Qt::Key_Travel, Key_Video = Qt::Key_Video, Key_Word = Qt::Key_Word, Key_Xfer = Qt::Key_Xfer, Key_ZoomIn = Qt::Key_ZoomIn, Key_ZoomOut = Qt::Key_ZoomOut, Key_Away = Qt::Key_Away, Key_Messenger = Qt::Key_Messenger, Key_WebCam = Qt::Key_WebCam, Key_MailForward = Qt::Key_MailForward, Key_Pictures = Qt::Key_Pictures, Key_Music = Qt::Key_Music, Key_Battery = Qt::Key_Battery, Key_Bluetooth = Qt::Key_Bluetooth, Key_WLAN = Qt::Key_WLAN, Key_UWB = Qt::Key_UWB, Key_AudioForward = Qt::Key_AudioForward, Key_AudioRepeat = Qt::Key_AudioRepeat, Key_AudioRandomPlay = Qt::Key_AudioRandomPlay, Key_Subtitle = Qt::Key_Subtitle, Key_AudioCycleTrack = Qt::Key_AudioCycleTrack, Key_Time = Qt::Key_Time, Key_Hibernate = Qt::Key_Hibernate, Key_View = Qt::Key_View, Key_TopMenu = Qt::Key_TopMenu, Key_PowerDown = Qt::Key_PowerDown, Key_Suspend = Qt::Key_Suspend, Key_ContrastAdjust = Qt::Key_ContrastAdjust, Key_MediaLast = Qt::Key_MediaLast, Key_Select = Qt::Key_Select, Key_Yes = Qt::Key_Yes, Key_No = Qt::Key_No, Key_Cancel = Qt::Key_Cancel, Key_Printer = Qt::Key_Printer, Key_Execute = Qt::Key_Execute, Key_Sleep = Qt::Key_Sleep, Key_Play = Qt::Key_Play, Key_Zoom = Qt::Key_Zoom, Key_Context1 = Qt::Key_Context1, Key_Context2 = Qt::Key_Context2, Key_Context3 = Qt::Key_Context3, Key_Context4 = Qt::Key_Context4, Key_Call = Qt::Key_Call, Key_Hangup = Qt::Key_Hangup, Key_Flip = Qt::Key_Flip, Key_unknown = Qt::Key_unknown}; -enum ApplicationAttribute{ - AA_ImmediateWidgetCreation = Qt::AA_ImmediateWidgetCreation, AA_MSWindowsUseDirect3DByDefault = Qt::AA_MSWindowsUseDirect3DByDefault, AA_DontShowIconsInMenus = Qt::AA_DontShowIconsInMenus, AA_NativeWindows = Qt::AA_NativeWindows, AA_DontCreateNativeWidgetSiblings = Qt::AA_DontCreateNativeWidgetSiblings, AA_MacPluginApplication = Qt::AA_MacPluginApplication, AA_DontUseNativeMenuBar = Qt::AA_DontUseNativeMenuBar, AA_MacDontSwapCtrlAndMeta = Qt::AA_MacDontSwapCtrlAndMeta, AA_S60DontConstructApplicationPanes = Qt::AA_S60DontConstructApplicationPanes, AA_AttributeCount = Qt::AA_AttributeCount}; -enum TextFlag{ - TextSingleLine = Qt::TextSingleLine, TextDontClip = Qt::TextDontClip, TextExpandTabs = Qt::TextExpandTabs, TextShowMnemonic = Qt::TextShowMnemonic, TextWordWrap = Qt::TextWordWrap, TextWrapAnywhere = Qt::TextWrapAnywhere, TextDontPrint = Qt::TextDontPrint, TextIncludeTrailingSpaces = Qt::TextIncludeTrailingSpaces, TextHideMnemonic = Qt::TextHideMnemonic, TextJustificationForced = Qt::TextJustificationForced, TextForceLeftToRight = Qt::TextForceLeftToRight, TextForceRightToLeft = Qt::TextForceRightToLeft, TextLongestVariant = Qt::TextLongestVariant}; -enum BrushStyle{ - NoBrush = Qt::NoBrush, SolidPattern = Qt::SolidPattern, Dense1Pattern = Qt::Dense1Pattern, Dense2Pattern = Qt::Dense2Pattern, Dense3Pattern = Qt::Dense3Pattern, Dense4Pattern = Qt::Dense4Pattern, Dense5Pattern = Qt::Dense5Pattern, Dense6Pattern = Qt::Dense6Pattern, Dense7Pattern = Qt::Dense7Pattern, HorPattern = Qt::HorPattern, VerPattern = Qt::VerPattern, CrossPattern = Qt::CrossPattern, BDiagPattern = Qt::BDiagPattern, FDiagPattern = Qt::FDiagPattern, DiagCrossPattern = Qt::DiagCrossPattern, LinearGradientPattern = Qt::LinearGradientPattern, RadialGradientPattern = Qt::RadialGradientPattern, ConicalGradientPattern = Qt::ConicalGradientPattern, TexturePattern = Qt::TexturePattern}; -enum WidgetAttribute{ - WA_Disabled = Qt::WA_Disabled, WA_UnderMouse = Qt::WA_UnderMouse, WA_MouseTracking = Qt::WA_MouseTracking, WA_ContentsPropagated = Qt::WA_ContentsPropagated, WA_OpaquePaintEvent = Qt::WA_OpaquePaintEvent, WA_NoBackground = Qt::WA_NoBackground, WA_StaticContents = Qt::WA_StaticContents, WA_LaidOut = Qt::WA_LaidOut, WA_PaintOnScreen = Qt::WA_PaintOnScreen, WA_NoSystemBackground = Qt::WA_NoSystemBackground, WA_UpdatesDisabled = Qt::WA_UpdatesDisabled, WA_Mapped = Qt::WA_Mapped, WA_MacNoClickThrough = Qt::WA_MacNoClickThrough, WA_PaintOutsidePaintEvent = Qt::WA_PaintOutsidePaintEvent, WA_InputMethodEnabled = Qt::WA_InputMethodEnabled, WA_WState_Visible = Qt::WA_WState_Visible, WA_WState_Hidden = Qt::WA_WState_Hidden, WA_ForceDisabled = Qt::WA_ForceDisabled, WA_KeyCompression = Qt::WA_KeyCompression, WA_PendingMoveEvent = Qt::WA_PendingMoveEvent, WA_PendingResizeEvent = Qt::WA_PendingResizeEvent, WA_SetPalette = Qt::WA_SetPalette, WA_SetFont = Qt::WA_SetFont, WA_SetCursor = Qt::WA_SetCursor, WA_NoChildEventsFromChildren = Qt::WA_NoChildEventsFromChildren, WA_WindowModified = Qt::WA_WindowModified, WA_Resized = Qt::WA_Resized, WA_Moved = Qt::WA_Moved, WA_PendingUpdate = Qt::WA_PendingUpdate, WA_InvalidSize = Qt::WA_InvalidSize, WA_MacBrushedMetal = Qt::WA_MacBrushedMetal, WA_MacMetalStyle = Qt::WA_MacMetalStyle, WA_CustomWhatsThis = Qt::WA_CustomWhatsThis, WA_LayoutOnEntireRect = Qt::WA_LayoutOnEntireRect, WA_OutsideWSRange = Qt::WA_OutsideWSRange, WA_GrabbedShortcut = Qt::WA_GrabbedShortcut, WA_TransparentForMouseEvents = Qt::WA_TransparentForMouseEvents, WA_PaintUnclipped = Qt::WA_PaintUnclipped, WA_SetWindowIcon = Qt::WA_SetWindowIcon, WA_NoMouseReplay = Qt::WA_NoMouseReplay, WA_DeleteOnClose = Qt::WA_DeleteOnClose, WA_RightToLeft = Qt::WA_RightToLeft, WA_SetLayoutDirection = Qt::WA_SetLayoutDirection, WA_NoChildEventsForParent = Qt::WA_NoChildEventsForParent, WA_ForceUpdatesDisabled = Qt::WA_ForceUpdatesDisabled, WA_WState_Created = Qt::WA_WState_Created, WA_WState_CompressKeys = Qt::WA_WState_CompressKeys, WA_WState_InPaintEvent = Qt::WA_WState_InPaintEvent, WA_WState_Reparented = Qt::WA_WState_Reparented, WA_WState_ConfigPending = Qt::WA_WState_ConfigPending, WA_WState_Polished = Qt::WA_WState_Polished, WA_WState_DND = Qt::WA_WState_DND, WA_WState_OwnSizePolicy = Qt::WA_WState_OwnSizePolicy, WA_WState_ExplicitShowHide = Qt::WA_WState_ExplicitShowHide, WA_ShowModal = Qt::WA_ShowModal, WA_MouseNoMask = Qt::WA_MouseNoMask, WA_GroupLeader = Qt::WA_GroupLeader, WA_NoMousePropagation = Qt::WA_NoMousePropagation, WA_Hover = Qt::WA_Hover, WA_InputMethodTransparent = Qt::WA_InputMethodTransparent, WA_QuitOnClose = Qt::WA_QuitOnClose, WA_KeyboardFocusChange = Qt::WA_KeyboardFocusChange, WA_AcceptDrops = Qt::WA_AcceptDrops, WA_DropSiteRegistered = Qt::WA_DropSiteRegistered, WA_ForceAcceptDrops = Qt::WA_ForceAcceptDrops, WA_WindowPropagation = Qt::WA_WindowPropagation, WA_NoX11EventCompression = Qt::WA_NoX11EventCompression, WA_TintedBackground = Qt::WA_TintedBackground, WA_X11OpenGLOverlay = Qt::WA_X11OpenGLOverlay, WA_AlwaysShowToolTips = Qt::WA_AlwaysShowToolTips, WA_MacOpaqueSizeGrip = Qt::WA_MacOpaqueSizeGrip, WA_SetStyle = Qt::WA_SetStyle, WA_SetLocale = Qt::WA_SetLocale, WA_MacShowFocusRect = Qt::WA_MacShowFocusRect, WA_MacNormalSize = Qt::WA_MacNormalSize, WA_MacSmallSize = Qt::WA_MacSmallSize, WA_MacMiniSize = Qt::WA_MacMiniSize, WA_LayoutUsesWidgetRect = Qt::WA_LayoutUsesWidgetRect, WA_StyledBackground = Qt::WA_StyledBackground, WA_MSWindowsUseDirect3D = Qt::WA_MSWindowsUseDirect3D, WA_CanHostQMdiSubWindowTitleBar = Qt::WA_CanHostQMdiSubWindowTitleBar, WA_MacAlwaysShowToolWindow = Qt::WA_MacAlwaysShowToolWindow, WA_StyleSheet = Qt::WA_StyleSheet, WA_ShowWithoutActivating = Qt::WA_ShowWithoutActivating, WA_X11BypassTransientForHint = Qt::WA_X11BypassTransientForHint, WA_NativeWindow = Qt::WA_NativeWindow, WA_DontCreateNativeAncestors = Qt::WA_DontCreateNativeAncestors, WA_MacVariableSize = Qt::WA_MacVariableSize, WA_DontShowOnScreen = Qt::WA_DontShowOnScreen, WA_X11NetWmWindowTypeDesktop = Qt::WA_X11NetWmWindowTypeDesktop, WA_X11NetWmWindowTypeDock = Qt::WA_X11NetWmWindowTypeDock, WA_X11NetWmWindowTypeToolBar = Qt::WA_X11NetWmWindowTypeToolBar, WA_X11NetWmWindowTypeMenu = Qt::WA_X11NetWmWindowTypeMenu, WA_X11NetWmWindowTypeUtility = Qt::WA_X11NetWmWindowTypeUtility, WA_X11NetWmWindowTypeSplash = Qt::WA_X11NetWmWindowTypeSplash, WA_X11NetWmWindowTypeDialog = Qt::WA_X11NetWmWindowTypeDialog, WA_X11NetWmWindowTypeDropDownMenu = Qt::WA_X11NetWmWindowTypeDropDownMenu, WA_X11NetWmWindowTypePopupMenu = Qt::WA_X11NetWmWindowTypePopupMenu, WA_X11NetWmWindowTypeToolTip = Qt::WA_X11NetWmWindowTypeToolTip, WA_X11NetWmWindowTypeNotification = Qt::WA_X11NetWmWindowTypeNotification, WA_X11NetWmWindowTypeCombo = Qt::WA_X11NetWmWindowTypeCombo, WA_X11NetWmWindowTypeDND = Qt::WA_X11NetWmWindowTypeDND, WA_MacFrameworkScaled = Qt::WA_MacFrameworkScaled, WA_SetWindowModality = Qt::WA_SetWindowModality, WA_WState_WindowOpacitySet = Qt::WA_WState_WindowOpacitySet, WA_TranslucentBackground = Qt::WA_TranslucentBackground, WA_AcceptTouchEvents = Qt::WA_AcceptTouchEvents, WA_WState_AcceptedTouchBeginEvent = Qt::WA_WState_AcceptedTouchBeginEvent, WA_TouchPadAcceptSingleTouchEvents = Qt::WA_TouchPadAcceptSingleTouchEvents, WA_AttributeCount = Qt::WA_AttributeCount}; -enum TouchPointState{ - TouchPointPressed = Qt::TouchPointPressed, TouchPointMoved = Qt::TouchPointMoved, TouchPointStationary = Qt::TouchPointStationary, TouchPointReleased = Qt::TouchPointReleased, TouchPointStateMask = Qt::TouchPointStateMask, TouchPointPrimary = Qt::TouchPointPrimary}; -enum TextInteractionFlag{ - NoTextInteraction = Qt::NoTextInteraction, TextSelectableByMouse = Qt::TextSelectableByMouse, TextSelectableByKeyboard = Qt::TextSelectableByKeyboard, LinksAccessibleByMouse = Qt::LinksAccessibleByMouse, LinksAccessibleByKeyboard = Qt::LinksAccessibleByKeyboard, TextEditable = Qt::TextEditable, TextEditorInteraction = Qt::TextEditorInteraction, TextBrowserInteraction = Qt::TextBrowserInteraction}; -enum MouseButton{ - NoButton = Qt::NoButton, LeftButton = Qt::LeftButton, RightButton = Qt::RightButton, MidButton = Qt::MidButton, XButton1 = Qt::XButton1, XButton2 = Qt::XButton2, MouseButtonMask = Qt::MouseButtonMask}; -enum MatchFlag{ - MatchExactly = Qt::MatchExactly, MatchContains = Qt::MatchContains, MatchStartsWith = Qt::MatchStartsWith, MatchEndsWith = Qt::MatchEndsWith, MatchRegExp = Qt::MatchRegExp, MatchWildcard = Qt::MatchWildcard, MatchFixedString = Qt::MatchFixedString, MatchCaseSensitive = Qt::MatchCaseSensitive, MatchWrap = Qt::MatchWrap, MatchRecursive = Qt::MatchRecursive}; -enum PenCapStyle{ - FlatCap = Qt::FlatCap, SquareCap = Qt::SquareCap, RoundCap = Qt::RoundCap, MPenCapStyle = Qt::MPenCapStyle}; -enum TextElideMode{ - ElideLeft = Qt::ElideLeft, ElideRight = Qt::ElideRight, ElideMiddle = Qt::ElideMiddle, ElideNone = Qt::ElideNone}; -Q_DECLARE_FLAGS(DropActions, DropAction) -Q_DECLARE_FLAGS(WindowFlags, WindowType) -Q_DECLARE_FLAGS(ImageConversionFlags, ImageConversionFlag) -Q_DECLARE_FLAGS(ToolBarAreas, ToolBarArea) -Q_DECLARE_FLAGS(Alignment, AlignmentFlag) -Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea) -Q_DECLARE_FLAGS(KeyboardModifiers, KeyboardModifier) -Q_DECLARE_FLAGS(InputMethodHints, InputMethodHint) -Q_DECLARE_FLAGS(ItemFlags, ItemFlag) -Q_DECLARE_FLAGS(Orientations, Orientation) -Q_DECLARE_FLAGS(WindowStates, WindowState) -Q_DECLARE_FLAGS(TouchPointStates, TouchPointState) -Q_DECLARE_FLAGS(TextInteractionFlags, TextInteractionFlag) -Q_DECLARE_FLAGS(MouseButtons, MouseButton) -Q_DECLARE_FLAGS(MatchFlags, MatchFlag) -public slots: - QTextCodec* static_Qt_codecForHtml(const QByteArray& ba); - QString static_Qt_convertFromPlainText(const QString& plain, Qt::WhiteSpaceMode mode = Qt::WhiteSpacePre); - QString static_Qt_escape(const QString& plain); - bool static_Qt_mightBeRichText(const QString& arg__1); -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp deleted file mode 100644 index 5b92d2e25..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin_init.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include "com_trolltech_qt_core_builtin0.h" - -void PythonQt_init_QtCoreBuiltin(PyObject* module) { -PythonQt::priv()->registerCPPClass("QBitArray", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_And|PythonQt::Type_NonZero|PythonQt::Type_InplaceXor|PythonQt::Type_InplaceOr|PythonQt::Type_Xor|PythonQt::Type_RichCompare|PythonQt::Type_Or|PythonQt::Type_InplaceAnd|PythonQt::Type_Invert); -PythonQt::priv()->registerCPPClass("QByteArray", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QDate", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QDateTime", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QLine", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare|PythonQt::Type_Multiply); -PythonQt::priv()->registerCPPClass("QLineF", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare|PythonQt::Type_Multiply); -PythonQt::priv()->registerCPPClass("QLocale", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QPoint", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QPointF", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QRect", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_And|PythonQt::Type_NonZero|PythonQt::Type_InplaceOr|PythonQt::Type_RichCompare|PythonQt::Type_Or|PythonQt::Type_InplaceAnd); -PythonQt::priv()->registerCPPClass("QRectF", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_And|PythonQt::Type_NonZero|PythonQt::Type_InplaceOr|PythonQt::Type_RichCompare|PythonQt::Type_Or|PythonQt::Type_InplaceAnd); -PythonQt::priv()->registerCPPClass("QRegExp", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QSize", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QSizeF", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QTime", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QUrl", "", "QtCore", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("Qt", "", "QtCore", PythonQtCreateObject, NULL, module, 0); - -} diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui.pri b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui.pri deleted file mode 100644 index 753be3ba3..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui.pri +++ /dev/null @@ -1,26 +0,0 @@ -HEADERS += \ - $$PWD/com_trolltech_qt_gui0.h \ - $$PWD/com_trolltech_qt_gui1.h \ - $$PWD/com_trolltech_qt_gui2.h \ - $$PWD/com_trolltech_qt_gui3.h \ - $$PWD/com_trolltech_qt_gui4.h \ - $$PWD/com_trolltech_qt_gui5.h \ - $$PWD/com_trolltech_qt_gui6.h \ - $$PWD/com_trolltech_qt_gui7.h \ - $$PWD/com_trolltech_qt_gui8.h \ - $$PWD/com_trolltech_qt_gui9.h \ - $$PWD/com_trolltech_qt_gui10.h \ - -SOURCES += \ - $$PWD/com_trolltech_qt_gui0.cpp \ - $$PWD/com_trolltech_qt_gui1.cpp \ - $$PWD/com_trolltech_qt_gui2.cpp \ - $$PWD/com_trolltech_qt_gui3.cpp \ - $$PWD/com_trolltech_qt_gui4.cpp \ - $$PWD/com_trolltech_qt_gui5.cpp \ - $$PWD/com_trolltech_qt_gui6.cpp \ - $$PWD/com_trolltech_qt_gui7.cpp \ - $$PWD/com_trolltech_qt_gui8.cpp \ - $$PWD/com_trolltech_qt_gui9.cpp \ - $$PWD/com_trolltech_qt_gui10.cpp \ - $$PWD/com_trolltech_qt_gui_init.cpp diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp deleted file mode 100644 index ed2c90387..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp +++ /dev/null @@ -1,17524 +0,0 @@ -#include "com_trolltech_qt_gui0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QAbstractButton::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::actionEvent(arg__1); -} -void PythonQtShell_QAbstractButton::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::changeEvent(e); -} -void PythonQtShell_QAbstractButton::checkStateSet() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::checkStateSet(); -} -void PythonQtShell_QAbstractButton::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::childEvent(arg__1); -} -void PythonQtShell_QAbstractButton::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::closeEvent(arg__1); -} -void PythonQtShell_QAbstractButton::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::contextMenuEvent(arg__1); -} -void PythonQtShell_QAbstractButton::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::customEvent(arg__1); -} -int PythonQtShell_QAbstractButton::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::devType(); -} -void PythonQtShell_QAbstractButton::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::dragEnterEvent(arg__1); -} -void PythonQtShell_QAbstractButton::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::dragLeaveEvent(arg__1); -} -void PythonQtShell_QAbstractButton::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::dragMoveEvent(arg__1); -} -void PythonQtShell_QAbstractButton::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::dropEvent(arg__1); -} -void PythonQtShell_QAbstractButton::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::enterEvent(arg__1); -} -bool PythonQtShell_QAbstractButton::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::event(e); -} -bool PythonQtShell_QAbstractButton::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractButton::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::focusInEvent(e); -} -bool PythonQtShell_QAbstractButton::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::focusNextPrevChild(next); -} -void PythonQtShell_QAbstractButton::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::focusOutEvent(e); -} -int PythonQtShell_QAbstractButton::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::heightForWidth(arg__1); -} -void PythonQtShell_QAbstractButton::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::hideEvent(arg__1); -} -bool PythonQtShell_QAbstractButton::hitButton(const QPoint& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::hitButton(pos); -} -void PythonQtShell_QAbstractButton::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QAbstractButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::inputMethodQuery(arg__1); -} -void PythonQtShell_QAbstractButton::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::keyPressEvent(e); -} -void PythonQtShell_QAbstractButton::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::keyReleaseEvent(e); -} -void PythonQtShell_QAbstractButton::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::languageChange(); -} -void PythonQtShell_QAbstractButton::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::leaveEvent(arg__1); -} -int PythonQtShell_QAbstractButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::metric(arg__1); -} -QSize PythonQtShell_QAbstractButton::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::minimumSizeHint(); -} -void PythonQtShell_QAbstractButton::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QAbstractButton::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::mouseMoveEvent(e); -} -void PythonQtShell_QAbstractButton::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::mousePressEvent(e); -} -void PythonQtShell_QAbstractButton::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::mouseReleaseEvent(e); -} -void PythonQtShell_QAbstractButton::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::moveEvent(arg__1); -} -void PythonQtShell_QAbstractButton::nextCheckState() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::nextCheckState(); -} -QPaintEngine* PythonQtShell_QAbstractButton::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::paintEngine(); -} -void PythonQtShell_QAbstractButton::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractButton::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::resizeEvent(arg__1); -} -void PythonQtShell_QAbstractButton::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::showEvent(arg__1); -} -QSize PythonQtShell_QAbstractButton::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractButton::sizeHint(); -} -void PythonQtShell_QAbstractButton::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::tabletEvent(arg__1); -} -void PythonQtShell_QAbstractButton::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::timerEvent(e); -} -void PythonQtShell_QAbstractButton::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractButton::wheelEvent(arg__1); -} -QAbstractButton* PythonQtWrapper_QAbstractButton::new_QAbstractButton(QWidget* parent) -{ -return new PythonQtShell_QAbstractButton(parent); } - -bool PythonQtWrapper_QAbstractButton::autoExclusive(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->autoExclusive()); -} - -bool PythonQtWrapper_QAbstractButton::autoRepeat(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->autoRepeat()); -} - -int PythonQtWrapper_QAbstractButton::autoRepeatDelay(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->autoRepeatDelay()); -} - -int PythonQtWrapper_QAbstractButton::autoRepeatInterval(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->autoRepeatInterval()); -} - -void PythonQtWrapper_QAbstractButton::changeEvent(QAbstractButton* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_changeEvent(e)); -} - -void PythonQtWrapper_QAbstractButton::checkStateSet(QAbstractButton* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_checkStateSet()); -} - -bool PythonQtWrapper_QAbstractButton::event(QAbstractButton* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_event(e)); -} - -void PythonQtWrapper_QAbstractButton::focusInEvent(QAbstractButton* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_focusInEvent(e)); -} - -void PythonQtWrapper_QAbstractButton::focusOutEvent(QAbstractButton* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_focusOutEvent(e)); -} - -QButtonGroup* PythonQtWrapper_QAbstractButton::group(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->group()); -} - -bool PythonQtWrapper_QAbstractButton::hitButton(QAbstractButton* theWrappedObject, const QPoint& pos) const -{ - return ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_hitButton(pos)); -} - -QIcon PythonQtWrapper_QAbstractButton::icon(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -QSize PythonQtWrapper_QAbstractButton::iconSize(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->iconSize()); -} - -bool PythonQtWrapper_QAbstractButton::isCheckable(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->isCheckable()); -} - -bool PythonQtWrapper_QAbstractButton::isChecked(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->isChecked()); -} - -bool PythonQtWrapper_QAbstractButton::isDown(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->isDown()); -} - -void PythonQtWrapper_QAbstractButton::keyPressEvent(QAbstractButton* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_keyPressEvent(e)); -} - -void PythonQtWrapper_QAbstractButton::keyReleaseEvent(QAbstractButton* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_keyReleaseEvent(e)); -} - -void PythonQtWrapper_QAbstractButton::mouseMoveEvent(QAbstractButton* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_mouseMoveEvent(e)); -} - -void PythonQtWrapper_QAbstractButton::mousePressEvent(QAbstractButton* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_mousePressEvent(e)); -} - -void PythonQtWrapper_QAbstractButton::mouseReleaseEvent(QAbstractButton* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_mouseReleaseEvent(e)); -} - -void PythonQtWrapper_QAbstractButton::nextCheckState(QAbstractButton* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_nextCheckState()); -} - -void PythonQtWrapper_QAbstractButton::setAutoExclusive(QAbstractButton* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setAutoExclusive(arg__1)); -} - -void PythonQtWrapper_QAbstractButton::setAutoRepeat(QAbstractButton* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setAutoRepeat(arg__1)); -} - -void PythonQtWrapper_QAbstractButton::setAutoRepeatDelay(QAbstractButton* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setAutoRepeatDelay(arg__1)); -} - -void PythonQtWrapper_QAbstractButton::setAutoRepeatInterval(QAbstractButton* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setAutoRepeatInterval(arg__1)); -} - -void PythonQtWrapper_QAbstractButton::setCheckable(QAbstractButton* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setCheckable(arg__1)); -} - -void PythonQtWrapper_QAbstractButton::setDown(QAbstractButton* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setDown(arg__1)); -} - -void PythonQtWrapper_QAbstractButton::setIcon(QAbstractButton* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setIcon(icon)); -} - -void PythonQtWrapper_QAbstractButton::setShortcut(QAbstractButton* theWrappedObject, const QKeySequence& key) -{ - ( theWrappedObject->setShortcut(key)); -} - -void PythonQtWrapper_QAbstractButton::setText(QAbstractButton* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -QKeySequence PythonQtWrapper_QAbstractButton::shortcut(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->shortcut()); -} - -QString PythonQtWrapper_QAbstractButton::text(QAbstractButton* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -void PythonQtWrapper_QAbstractButton::timerEvent(QAbstractButton* theWrappedObject, QTimerEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractButton*)theWrappedObject)->promoted_timerEvent(e)); -} - - - -void PythonQtShell_QAbstractGraphicsShapeItem::advance(int phase) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&phase}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::advance(phase); -} -QRectF PythonQtShell_QAbstractGraphicsShapeItem::boundingRect() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRectF returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRectF(); -} -bool PythonQtShell_QAbstractGraphicsShapeItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::collidesWithItem(other, mode); -} -bool PythonQtShell_QAbstractGraphicsShapeItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::collidesWithPath(path, mode); -} -bool PythonQtShell_QAbstractGraphicsShapeItem::contains(const QPointF& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::contains(point); -} -void PythonQtShell_QAbstractGraphicsShapeItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::contextMenuEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::dragEnterEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::dragLeaveEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::dragMoveEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::dropEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::dropEvent(event); -} -QVariant PythonQtShell_QAbstractGraphicsShapeItem::extension(const QVariant& variant) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::extension(variant); -} -void PythonQtShell_QAbstractGraphicsShapeItem::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::focusInEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::focusOutEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::hoverEnterEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::hoverLeaveEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::hoverMoveEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::inputMethodEvent(event); -} -QVariant PythonQtShell_QAbstractGraphicsShapeItem::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::inputMethodQuery(query); -} -bool PythonQtShell_QAbstractGraphicsShapeItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::isObscuredBy(item); -} -QVariant PythonQtShell_QAbstractGraphicsShapeItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&change, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::itemChange(change, value); -} -void PythonQtShell_QAbstractGraphicsShapeItem::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::keyPressEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::keyReleaseEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::mouseDoubleClickEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::mouseMoveEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::mousePressEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::mousePressEvent(event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::mouseReleaseEvent(event); -} -QPainterPath PythonQtShell_QAbstractGraphicsShapeItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::opaqueArea(); -} -void PythonQtShell_QAbstractGraphicsShapeItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -bool PythonQtShell_QAbstractGraphicsShapeItem::sceneEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::sceneEvent(event); -} -bool PythonQtShell_QAbstractGraphicsShapeItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::sceneEventFilter(watched, event); -} -void PythonQtShell_QAbstractGraphicsShapeItem::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&extension, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::setExtension(extension, variant); -} -QPainterPath PythonQtShell_QAbstractGraphicsShapeItem::shape() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::shape(); -} -bool PythonQtShell_QAbstractGraphicsShapeItem::supportsExtension(QGraphicsItem::Extension extension) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::supportsExtension(extension); -} -int PythonQtShell_QAbstractGraphicsShapeItem::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractGraphicsShapeItem::type(); -} -void PythonQtShell_QAbstractGraphicsShapeItem::wheelEvent(QGraphicsSceneWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractGraphicsShapeItem::wheelEvent(event); -} -QAbstractGraphicsShapeItem* PythonQtWrapper_QAbstractGraphicsShapeItem::new_QAbstractGraphicsShapeItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QAbstractGraphicsShapeItem(parent, scene); } - -QBrush PythonQtWrapper_QAbstractGraphicsShapeItem::brush(QAbstractGraphicsShapeItem* theWrappedObject) const -{ - return ( theWrappedObject->brush()); -} - -bool PythonQtWrapper_QAbstractGraphicsShapeItem::isObscuredBy(QAbstractGraphicsShapeItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QAbstractGraphicsShapeItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QAbstractGraphicsShapeItem::opaqueArea(QAbstractGraphicsShapeItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractGraphicsShapeItem*)theWrappedObject)->promoted_opaqueArea()); -} - -QPen PythonQtWrapper_QAbstractGraphicsShapeItem::pen(QAbstractGraphicsShapeItem* theWrappedObject) const -{ - return ( theWrappedObject->pen()); -} - -void PythonQtWrapper_QAbstractGraphicsShapeItem::setBrush(QAbstractGraphicsShapeItem* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBrush(brush)); -} - -void PythonQtWrapper_QAbstractGraphicsShapeItem::setPen(QAbstractGraphicsShapeItem* theWrappedObject, const QPen& pen) -{ - ( theWrappedObject->setPen(pen)); -} - - - -void PythonQtShell_QAbstractItemDelegate::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemDelegate::childEvent(arg__1); -} -QWidget* PythonQtShell_QAbstractItemDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QWidget* returnValue = 0; - void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemDelegate::createEditor(parent, option, index); -} -void PythonQtShell_QAbstractItemDelegate::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemDelegate::customEvent(arg__1); -} -bool PythonQtShell_QAbstractItemDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("editorEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemDelegate::editorEvent(event, model, option, index); -} -bool PythonQtShell_QAbstractItemDelegate::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemDelegate::event(arg__1); -} -bool PythonQtShell_QAbstractItemDelegate::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemDelegate::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemDelegate::setEditorData(editor, index); -} -void PythonQtShell_QAbstractItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModelData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemModel*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&editor, (void*)&model, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemDelegate::setModelData(editor, model, index); -} -QSize PythonQtShell_QAbstractItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QSize returnValue; - void* args[3] = {NULL, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSize(); -} -void PythonQtShell_QAbstractItemDelegate::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemDelegate::timerEvent(arg__1); -} -void PythonQtShell_QAbstractItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&editor, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemDelegate::updateEditorGeometry(editor, option, index); -} -QAbstractItemDelegate* PythonQtWrapper_QAbstractItemDelegate::new_QAbstractItemDelegate(QObject* parent) -{ -return new PythonQtShell_QAbstractItemDelegate(parent); } - -QWidget* PythonQtWrapper_QAbstractItemDelegate::createEditor(QAbstractItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_createEditor(parent, option, index)); -} - -bool PythonQtWrapper_QAbstractItemDelegate::editorEvent(QAbstractItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_editorEvent(event, model, option, index)); -} - -void PythonQtWrapper_QAbstractItemDelegate::setEditorData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_setEditorData(editor, index)); -} - -void PythonQtWrapper_QAbstractItemDelegate::setModelData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_setModelData(editor, model, index)); -} - -void PythonQtWrapper_QAbstractItemDelegate::updateEditorGeometry(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QAbstractItemDelegate*)theWrappedObject)->promoted_updateEditorGeometry(editor, option, index)); -} - - - -void PythonQtShell_QAbstractItemView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::actionEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::changeEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::childEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::closeEditor(editor, hint); -} -void PythonQtShell_QAbstractItemView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::closeEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::commitData(editor); -} -void PythonQtShell_QAbstractItemView::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::contextMenuEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::currentChanged(current, previous); -} -void PythonQtShell_QAbstractItemView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::customEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QAbstractItemView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::devType(); -} -void PythonQtShell_QAbstractItemView::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::doItemsLayout(); -} -void PythonQtShell_QAbstractItemView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractItemView::dragEnterEvent(event); -} -void PythonQtShell_QAbstractItemView::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractItemView::dragLeaveEvent(event); -} -void PythonQtShell_QAbstractItemView::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractItemView::dragMoveEvent(event); -} -void PythonQtShell_QAbstractItemView::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractItemView::dropEvent(event); -} -bool PythonQtShell_QAbstractItemView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::edit(index, trigger, event); -} -void PythonQtShell_QAbstractItemView::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::editorDestroyed(editor); -} -void PythonQtShell_QAbstractItemView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::enterEvent(arg__1); -} -bool PythonQtShell_QAbstractItemView::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::event(event); -} -bool PythonQtShell_QAbstractItemView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractItemView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::focusInEvent(event); -} -bool PythonQtShell_QAbstractItemView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::focusNextPrevChild(next); -} -void PythonQtShell_QAbstractItemView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::focusOutEvent(event); -} -int PythonQtShell_QAbstractItemView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::heightForWidth(arg__1); -} -void PythonQtShell_QAbstractItemView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::hideEvent(arg__1); -} -int PythonQtShell_QAbstractItemView::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QAbstractItemView::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::horizontalScrollbarAction(action); -} -void PythonQtShell_QAbstractItemView::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QAbstractItemView::indexAt(const QPoint& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QModelIndex(); -} -void PythonQtShell_QAbstractItemView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QAbstractItemView::inputMethodEvent(event); -} -QVariant PythonQtShell_QAbstractItemView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::inputMethodQuery(query); -} -bool PythonQtShell_QAbstractItemView::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -void PythonQtShell_QAbstractItemView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::keyPressEvent(event); -} -void PythonQtShell_QAbstractItemView::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::keyReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::keyboardSearch(search); -} -void PythonQtShell_QAbstractItemView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::languageChange(); -} -void PythonQtShell_QAbstractItemView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::leaveEvent(arg__1); -} -int PythonQtShell_QAbstractItemView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::metric(arg__1); -} -void PythonQtShell_QAbstractItemView::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::mouseDoubleClickEvent(event); -} -void PythonQtShell_QAbstractItemView::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::mouseMoveEvent(event); -} -void PythonQtShell_QAbstractItemView::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::mousePressEvent(event); -} -void PythonQtShell_QAbstractItemView::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::mouseReleaseEvent(event); -} -QModelIndex PythonQtShell_QAbstractItemView::moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveCursor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "QAbstractItemView::CursorAction" , "Qt::KeyboardModifiers"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QModelIndex returnValue; - void* args[3] = {NULL, (void*)&cursorAction, (void*)&modifiers}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("moveCursor", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QModelIndex(); -} -void PythonQtShell_QAbstractItemView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QAbstractItemView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::paintEngine(); -} -void PythonQtShell_QAbstractItemView::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::paintEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::reset(); -} -void PythonQtShell_QAbstractItemView::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::resizeEvent(event); -} -void PythonQtShell_QAbstractItemView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QAbstractItemView::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::rowsInserted(parent, start, end); -} -void PythonQtShell_QAbstractItemView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractItemView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QAbstractItemView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractItemView::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::selectAll(); -} -QList PythonQtShell_QAbstractItemView::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::selectedIndexes(); -} -void PythonQtShell_QAbstractItemView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QAbstractItemView::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::selectionCommand(index, event); -} -void PythonQtShell_QAbstractItemView::setModel(QAbstractItemModel* model) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractItemModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&model}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::setModel(model); -} -void PythonQtShell_QAbstractItemView::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::setRootIndex(index); -} -void PythonQtShell_QAbstractItemView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractItemView::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::setSelectionModel(selectionModel); -} -void PythonQtShell_QAbstractItemView::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::showEvent(arg__1); -} -int PythonQtShell_QAbstractItemView::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::sizeHintForColumn(column); -} -int PythonQtShell_QAbstractItemView::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::sizeHintForRow(row); -} -void PythonQtShell_QAbstractItemView::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::startDrag(supportedActions); -} -void PythonQtShell_QAbstractItemView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::tabletEvent(arg__1); -} -void PythonQtShell_QAbstractItemView::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::timerEvent(event); -} -void PythonQtShell_QAbstractItemView::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::updateEditorData(); -} -void PythonQtShell_QAbstractItemView::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::updateEditorGeometries(); -} -void PythonQtShell_QAbstractItemView::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::updateGeometries(); -} -int PythonQtShell_QAbstractItemView::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QAbstractItemView::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::verticalScrollbarAction(action); -} -void PythonQtShell_QAbstractItemView::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QAbstractItemView::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::viewOptions(); -} -bool PythonQtShell_QAbstractItemView::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractItemView::viewportEvent(event); -} -QRect PythonQtShell_QAbstractItemView::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRect(); -} -QRegion PythonQtShell_QAbstractItemView::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRegion(); -} -void PythonQtShell_QAbstractItemView::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractItemView::wheelEvent(arg__1); -} -QAbstractItemView* PythonQtWrapper_QAbstractItemView::new_QAbstractItemView(QWidget* parent) -{ -return new PythonQtShell_QAbstractItemView(parent); } - -bool PythonQtWrapper_QAbstractItemView::alternatingRowColors(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->alternatingRowColors()); -} - -int PythonQtWrapper_QAbstractItemView::autoScrollMargin(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->autoScrollMargin()); -} - -void PythonQtWrapper_QAbstractItemView::closePersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index) -{ - ( theWrappedObject->closePersistentEditor(index)); -} - -QModelIndex PythonQtWrapper_QAbstractItemView::currentIndex(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -Qt::DropAction PythonQtWrapper_QAbstractItemView::defaultDropAction(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->defaultDropAction()); -} - -QAbstractItemView::DragDropMode PythonQtWrapper_QAbstractItemView::dragDropMode(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->dragDropMode()); -} - -bool PythonQtWrapper_QAbstractItemView::dragDropOverwriteMode(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->dragDropOverwriteMode()); -} - -bool PythonQtWrapper_QAbstractItemView::dragEnabled(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->dragEnabled()); -} - -void PythonQtWrapper_QAbstractItemView::dragEnterEvent(QAbstractItemView* theWrappedObject, QDragEnterEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dragEnterEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::dragLeaveEvent(QAbstractItemView* theWrappedObject, QDragLeaveEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dragLeaveEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::dragMoveEvent(QAbstractItemView* theWrappedObject, QDragMoveEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dragMoveEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::dropEvent(QAbstractItemView* theWrappedObject, QDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_dropEvent(event)); -} - -bool PythonQtWrapper_QAbstractItemView::edit(QAbstractItemView* theWrappedObject, const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_edit(index, trigger, event)); -} - -QAbstractItemView::EditTriggers PythonQtWrapper_QAbstractItemView::editTriggers(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->editTriggers()); -} - -bool PythonQtWrapper_QAbstractItemView::event(QAbstractItemView* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QAbstractItemView::focusInEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_focusInEvent(event)); -} - -bool PythonQtWrapper_QAbstractItemView::focusNextPrevChild(QAbstractItemView* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QAbstractItemView::focusOutEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_focusOutEvent(event)); -} - -bool PythonQtWrapper_QAbstractItemView::hasAutoScroll(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->hasAutoScroll()); -} - -QAbstractItemView::ScrollMode PythonQtWrapper_QAbstractItemView::horizontalScrollMode(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->horizontalScrollMode()); -} - -QSize PythonQtWrapper_QAbstractItemView::iconSize(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->iconSize()); -} - -QWidget* PythonQtWrapper_QAbstractItemView::indexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->indexWidget(index)); -} - -void PythonQtWrapper_QAbstractItemView::inputMethodEvent(QAbstractItemView* theWrappedObject, QInputMethodEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_inputMethodEvent(event)); -} - -QVariant PythonQtWrapper_QAbstractItemView::inputMethodQuery(QAbstractItemView* theWrappedObject, Qt::InputMethodQuery query) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_inputMethodQuery(query)); -} - -QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegate(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->itemDelegate()); -} - -QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegate(QAbstractItemView* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->itemDelegate(index)); -} - -QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegateForColumn(QAbstractItemView* theWrappedObject, int column) const -{ - return ( theWrappedObject->itemDelegateForColumn(column)); -} - -QAbstractItemDelegate* PythonQtWrapper_QAbstractItemView::itemDelegateForRow(QAbstractItemView* theWrappedObject, int row) const -{ - return ( theWrappedObject->itemDelegateForRow(row)); -} - -void PythonQtWrapper_QAbstractItemView::keyPressEvent(QAbstractItemView* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::keyboardSearch(QAbstractItemView* theWrappedObject, const QString& search) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_keyboardSearch(search)); -} - -QAbstractItemModel* PythonQtWrapper_QAbstractItemView::model(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -void PythonQtWrapper_QAbstractItemView::mouseDoubleClickEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::mouseMoveEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mouseMoveEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::mousePressEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::mouseReleaseEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_mouseReleaseEvent(event)); -} - -void PythonQtWrapper_QAbstractItemView::openPersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index) -{ - ( theWrappedObject->openPersistentEditor(index)); -} - -void PythonQtWrapper_QAbstractItemView::resizeEvent(QAbstractItemView* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_resizeEvent(event)); -} - -QModelIndex PythonQtWrapper_QAbstractItemView::rootIndex(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->rootIndex()); -} - -QList PythonQtWrapper_QAbstractItemView::selectedIndexes(QAbstractItemView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_selectedIndexes()); -} - -QAbstractItemView::SelectionBehavior PythonQtWrapper_QAbstractItemView::selectionBehavior(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->selectionBehavior()); -} - -QItemSelectionModel::SelectionFlags PythonQtWrapper_QAbstractItemView::selectionCommand(QAbstractItemView* theWrappedObject, const QModelIndex& index, const QEvent* event) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_selectionCommand(index, event)); -} - -QAbstractItemView::SelectionMode PythonQtWrapper_QAbstractItemView::selectionMode(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->selectionMode()); -} - -QItemSelectionModel* PythonQtWrapper_QAbstractItemView::selectionModel(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->selectionModel()); -} - -void PythonQtWrapper_QAbstractItemView::setAlternatingRowColors(QAbstractItemView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setAlternatingRowColors(enable)); -} - -void PythonQtWrapper_QAbstractItemView::setAutoScroll(QAbstractItemView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setAutoScroll(enable)); -} - -void PythonQtWrapper_QAbstractItemView::setAutoScrollMargin(QAbstractItemView* theWrappedObject, int margin) -{ - ( theWrappedObject->setAutoScrollMargin(margin)); -} - -void PythonQtWrapper_QAbstractItemView::setDefaultDropAction(QAbstractItemView* theWrappedObject, Qt::DropAction dropAction) -{ - ( theWrappedObject->setDefaultDropAction(dropAction)); -} - -void PythonQtWrapper_QAbstractItemView::setDragDropMode(QAbstractItemView* theWrappedObject, QAbstractItemView::DragDropMode behavior) -{ - ( theWrappedObject->setDragDropMode(behavior)); -} - -void PythonQtWrapper_QAbstractItemView::setDragDropOverwriteMode(QAbstractItemView* theWrappedObject, bool overwrite) -{ - ( theWrappedObject->setDragDropOverwriteMode(overwrite)); -} - -void PythonQtWrapper_QAbstractItemView::setDragEnabled(QAbstractItemView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setDragEnabled(enable)); -} - -void PythonQtWrapper_QAbstractItemView::setDropIndicatorShown(QAbstractItemView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setDropIndicatorShown(enable)); -} - -void PythonQtWrapper_QAbstractItemView::setEditTriggers(QAbstractItemView* theWrappedObject, QAbstractItemView::EditTriggers triggers) -{ - ( theWrappedObject->setEditTriggers(triggers)); -} - -void PythonQtWrapper_QAbstractItemView::setHorizontalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode) -{ - ( theWrappedObject->setHorizontalScrollMode(mode)); -} - -void PythonQtWrapper_QAbstractItemView::setIconSize(QAbstractItemView* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setIconSize(size)); -} - -void PythonQtWrapper_QAbstractItemView::setIndexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index, QWidget* widget) -{ - ( theWrappedObject->setIndexWidget(index, widget)); -} - -void PythonQtWrapper_QAbstractItemView::setItemDelegate(QAbstractItemView* theWrappedObject, QAbstractItemDelegate* delegate) -{ - ( theWrappedObject->setItemDelegate(delegate)); -} - -void PythonQtWrapper_QAbstractItemView::setItemDelegateForColumn(QAbstractItemView* theWrappedObject, int column, QAbstractItemDelegate* delegate) -{ - ( theWrappedObject->setItemDelegateForColumn(column, delegate)); -} - -void PythonQtWrapper_QAbstractItemView::setItemDelegateForRow(QAbstractItemView* theWrappedObject, int row, QAbstractItemDelegate* delegate) -{ - ( theWrappedObject->setItemDelegateForRow(row, delegate)); -} - -void PythonQtWrapper_QAbstractItemView::setModel(QAbstractItemView* theWrappedObject, QAbstractItemModel* model) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_setModel(model)); -} - -void PythonQtWrapper_QAbstractItemView::setSelectionBehavior(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionBehavior behavior) -{ - ( theWrappedObject->setSelectionBehavior(behavior)); -} - -void PythonQtWrapper_QAbstractItemView::setSelectionMode(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionMode mode) -{ - ( theWrappedObject->setSelectionMode(mode)); -} - -void PythonQtWrapper_QAbstractItemView::setSelectionModel(QAbstractItemView* theWrappedObject, QItemSelectionModel* selectionModel) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); -} - -void PythonQtWrapper_QAbstractItemView::setTabKeyNavigation(QAbstractItemView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setTabKeyNavigation(enable)); -} - -void PythonQtWrapper_QAbstractItemView::setTextElideMode(QAbstractItemView* theWrappedObject, Qt::TextElideMode mode) -{ - ( theWrappedObject->setTextElideMode(mode)); -} - -void PythonQtWrapper_QAbstractItemView::setVerticalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode) -{ - ( theWrappedObject->setVerticalScrollMode(mode)); -} - -bool PythonQtWrapper_QAbstractItemView::showDropIndicator(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->showDropIndicator()); -} - -int PythonQtWrapper_QAbstractItemView::sizeHintForColumn(QAbstractItemView* theWrappedObject, int column) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_sizeHintForColumn(column)); -} - -QSize PythonQtWrapper_QAbstractItemView::sizeHintForIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->sizeHintForIndex(index)); -} - -int PythonQtWrapper_QAbstractItemView::sizeHintForRow(QAbstractItemView* theWrappedObject, int row) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_sizeHintForRow(row)); -} - -void PythonQtWrapper_QAbstractItemView::startDrag(QAbstractItemView* theWrappedObject, Qt::DropActions supportedActions) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_startDrag(supportedActions)); -} - -bool PythonQtWrapper_QAbstractItemView::tabKeyNavigation(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->tabKeyNavigation()); -} - -Qt::TextElideMode PythonQtWrapper_QAbstractItemView::textElideMode(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->textElideMode()); -} - -void PythonQtWrapper_QAbstractItemView::timerEvent(QAbstractItemView* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_timerEvent(event)); -} - -QAbstractItemView::ScrollMode PythonQtWrapper_QAbstractItemView::verticalScrollMode(QAbstractItemView* theWrappedObject) const -{ - return ( theWrappedObject->verticalScrollMode()); -} - -QStyleOptionViewItem PythonQtWrapper_QAbstractItemView::viewOptions(QAbstractItemView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_viewOptions()); -} - -bool PythonQtWrapper_QAbstractItemView::viewportEvent(QAbstractItemView* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QAbstractItemView*)theWrappedObject)->promoted_viewportEvent(event)); -} - - - -void PythonQtShell_QAbstractPageSetupDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::accept(); -} -void PythonQtShell_QAbstractPageSetupDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::actionEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::changeEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::childEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::closeEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::customEvent(arg__1); -} -int PythonQtShell_QAbstractPageSetupDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::devType(); -} -void PythonQtShell_QAbstractPageSetupDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::done(result); -} -void PythonQtShell_QAbstractPageSetupDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::dropEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::enterEvent(arg__1); -} -bool PythonQtShell_QAbstractPageSetupDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::event(arg__1); -} -bool PythonQtShell_QAbstractPageSetupDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::eventFilter(arg__1, arg__2); -} -int PythonQtShell_QAbstractPageSetupDialog::exec() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QAbstractPageSetupDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QAbstractPageSetupDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::focusNextPrevChild(next); -} -void PythonQtShell_QAbstractPageSetupDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QAbstractPageSetupDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::heightForWidth(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::hideEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QAbstractPageSetupDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::languageChange(); -} -void PythonQtShell_QAbstractPageSetupDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::leaveEvent(arg__1); -} -int PythonQtShell_QAbstractPageSetupDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::metric(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QAbstractPageSetupDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPageSetupDialog::paintEngine(); -} -void PythonQtShell_QAbstractPageSetupDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::paintEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::reject(); -} -void PythonQtShell_QAbstractPageSetupDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::resizeEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::showEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::tabletEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::timerEvent(arg__1); -} -void PythonQtShell_QAbstractPageSetupDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPageSetupDialog::wheelEvent(arg__1); -} -QAbstractPageSetupDialog* PythonQtWrapper_QAbstractPageSetupDialog::new_QAbstractPageSetupDialog(QPrinter* printer, QWidget* parent) -{ -return new PythonQtShell_QAbstractPageSetupDialog(printer, parent); } - -void PythonQtWrapper_QAbstractPageSetupDialog::done(QAbstractPageSetupDialog* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QAbstractPageSetupDialog*)theWrappedObject)->promoted_done(result)); -} - -QPrinter* PythonQtWrapper_QAbstractPageSetupDialog::printer(QAbstractPageSetupDialog* theWrappedObject) -{ - return ( theWrappedObject->printer()); -} - - - -void PythonQtShell_QAbstractPrintDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::accept(); -} -void PythonQtShell_QAbstractPrintDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::actionEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::changeEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::childEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::closeEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::customEvent(arg__1); -} -int PythonQtShell_QAbstractPrintDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::devType(); -} -void PythonQtShell_QAbstractPrintDialog::done(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::done(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::dropEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::enterEvent(arg__1); -} -bool PythonQtShell_QAbstractPrintDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::event(arg__1); -} -bool PythonQtShell_QAbstractPrintDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::eventFilter(arg__1, arg__2); -} -int PythonQtShell_QAbstractPrintDialog::exec() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QAbstractPrintDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QAbstractPrintDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::focusNextPrevChild(next); -} -void PythonQtShell_QAbstractPrintDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QAbstractPrintDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::heightForWidth(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::hideEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QAbstractPrintDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::languageChange(); -} -void PythonQtShell_QAbstractPrintDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::leaveEvent(arg__1); -} -int PythonQtShell_QAbstractPrintDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::metric(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QAbstractPrintDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractPrintDialog::paintEngine(); -} -void PythonQtShell_QAbstractPrintDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::paintEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::reject(); -} -void PythonQtShell_QAbstractPrintDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::resizeEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::showEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::tabletEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::timerEvent(arg__1); -} -void PythonQtShell_QAbstractPrintDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractPrintDialog::wheelEvent(arg__1); -} -QAbstractPrintDialog* PythonQtWrapper_QAbstractPrintDialog::new_QAbstractPrintDialog(QPrinter* printer, QWidget* parent) -{ -return new PythonQtShell_QAbstractPrintDialog(printer, parent); } - -void PythonQtWrapper_QAbstractPrintDialog::addEnabledOption(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) -{ - ( theWrappedObject->addEnabledOption(option)); -} - -QAbstractPrintDialog::PrintDialogOptions PythonQtWrapper_QAbstractPrintDialog::enabledOptions(QAbstractPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->enabledOptions()); -} - -int PythonQtWrapper_QAbstractPrintDialog::fromPage(QAbstractPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->fromPage()); -} - -bool PythonQtWrapper_QAbstractPrintDialog::isOptionEnabled(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const -{ - return ( theWrappedObject->isOptionEnabled(option)); -} - -int PythonQtWrapper_QAbstractPrintDialog::maxPage(QAbstractPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->maxPage()); -} - -int PythonQtWrapper_QAbstractPrintDialog::minPage(QAbstractPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->minPage()); -} - -QAbstractPrintDialog::PrintRange PythonQtWrapper_QAbstractPrintDialog::printRange(QAbstractPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->printRange()); -} - -QPrinter* PythonQtWrapper_QAbstractPrintDialog::printer(QAbstractPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->printer()); -} - -void PythonQtWrapper_QAbstractPrintDialog::setEnabledOptions(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options) -{ - ( theWrappedObject->setEnabledOptions(options)); -} - -void PythonQtWrapper_QAbstractPrintDialog::setFromTo(QAbstractPrintDialog* theWrappedObject, int fromPage, int toPage) -{ - ( theWrappedObject->setFromTo(fromPage, toPage)); -} - -void PythonQtWrapper_QAbstractPrintDialog::setMinMax(QAbstractPrintDialog* theWrappedObject, int min, int max) -{ - ( theWrappedObject->setMinMax(min, max)); -} - -void PythonQtWrapper_QAbstractPrintDialog::setOptionTabs(QAbstractPrintDialog* theWrappedObject, const QList& tabs) -{ - ( theWrappedObject->setOptionTabs(tabs)); -} - -void PythonQtWrapper_QAbstractPrintDialog::setPrintRange(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintRange range) -{ - ( theWrappedObject->setPrintRange(range)); -} - -int PythonQtWrapper_QAbstractPrintDialog::toPage(QAbstractPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->toPage()); -} - - - -void PythonQtShell_QAbstractScrollArea::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::actionEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::changeEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::childEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::closeEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::contextMenuEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::customEvent(arg__1); -} -int PythonQtShell_QAbstractScrollArea::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::devType(); -} -void PythonQtShell_QAbstractScrollArea::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::dragEnterEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::dragLeaveEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::dragMoveEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::dropEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::enterEvent(arg__1); -} -bool PythonQtShell_QAbstractScrollArea::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::event(arg__1); -} -bool PythonQtShell_QAbstractScrollArea::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractScrollArea::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::focusInEvent(arg__1); -} -bool PythonQtShell_QAbstractScrollArea::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::focusNextPrevChild(next); -} -void PythonQtShell_QAbstractScrollArea::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::focusOutEvent(arg__1); -} -int PythonQtShell_QAbstractScrollArea::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::heightForWidth(arg__1); -} -void PythonQtShell_QAbstractScrollArea::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::hideEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QAbstractScrollArea::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::inputMethodQuery(arg__1); -} -void PythonQtShell_QAbstractScrollArea::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::keyPressEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::keyReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::languageChange(); -} -void PythonQtShell_QAbstractScrollArea::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::leaveEvent(arg__1); -} -int PythonQtShell_QAbstractScrollArea::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::metric(arg__1); -} -void PythonQtShell_QAbstractScrollArea::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::mouseMoveEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::mousePressEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QAbstractScrollArea::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::paintEngine(); -} -void PythonQtShell_QAbstractScrollArea::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::paintEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::resizeEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::scrollContentsBy(dx, dy); -} -void PythonQtShell_QAbstractScrollArea::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::showEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::tabletEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::timerEvent(arg__1); -} -bool PythonQtShell_QAbstractScrollArea::viewportEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractScrollArea::viewportEvent(arg__1); -} -void PythonQtShell_QAbstractScrollArea::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractScrollArea::wheelEvent(arg__1); -} -QAbstractScrollArea* PythonQtWrapper_QAbstractScrollArea::new_QAbstractScrollArea(QWidget* parent) -{ -return new PythonQtShell_QAbstractScrollArea(parent); } - -void PythonQtWrapper_QAbstractScrollArea::addScrollBarWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget, Qt::Alignment alignment) -{ - ( theWrappedObject->addScrollBarWidget(widget, alignment)); -} - -void PythonQtWrapper_QAbstractScrollArea::contextMenuEvent(QAbstractScrollArea* theWrappedObject, QContextMenuEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); -} - -QWidget* PythonQtWrapper_QAbstractScrollArea::cornerWidget(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->cornerWidget()); -} - -void PythonQtWrapper_QAbstractScrollArea::dragEnterEvent(QAbstractScrollArea* theWrappedObject, QDragEnterEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::dragLeaveEvent(QAbstractScrollArea* theWrappedObject, QDragLeaveEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dragLeaveEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::dragMoveEvent(QAbstractScrollArea* theWrappedObject, QDragMoveEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dragMoveEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::dropEvent(QAbstractScrollArea* theWrappedObject, QDropEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_dropEvent(arg__1)); -} - -bool PythonQtWrapper_QAbstractScrollArea::event(QAbstractScrollArea* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_event(arg__1)); -} - -QScrollBar* PythonQtWrapper_QAbstractScrollArea::horizontalScrollBar(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->horizontalScrollBar()); -} - -Qt::ScrollBarPolicy PythonQtWrapper_QAbstractScrollArea::horizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->horizontalScrollBarPolicy()); -} - -void PythonQtWrapper_QAbstractScrollArea::keyPressEvent(QAbstractScrollArea* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -QSize PythonQtWrapper_QAbstractScrollArea::maximumViewportSize(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->maximumViewportSize()); -} - -QSize PythonQtWrapper_QAbstractScrollArea::minimumSizeHint(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QAbstractScrollArea::mouseDoubleClickEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::mouseMoveEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::mousePressEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::mouseReleaseEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::paintEvent(QAbstractScrollArea* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::resizeEvent(QAbstractScrollArea* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -QList PythonQtWrapper_QAbstractScrollArea::scrollBarWidgets(QAbstractScrollArea* theWrappedObject, Qt::Alignment alignment) -{ - return ( theWrappedObject->scrollBarWidgets(alignment)); -} - -void PythonQtWrapper_QAbstractScrollArea::scrollContentsBy(QAbstractScrollArea* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QAbstractScrollArea::setCornerWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setCornerWidget(widget)); -} - -void PythonQtWrapper_QAbstractScrollArea::setHorizontalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar) -{ - ( theWrappedObject->setHorizontalScrollBar(scrollbar)); -} - -void PythonQtWrapper_QAbstractScrollArea::setHorizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1) -{ - ( theWrappedObject->setHorizontalScrollBarPolicy(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::setVerticalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar) -{ - ( theWrappedObject->setVerticalScrollBar(scrollbar)); -} - -void PythonQtWrapper_QAbstractScrollArea::setVerticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1) -{ - ( theWrappedObject->setVerticalScrollBarPolicy(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::setViewport(QAbstractScrollArea* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setViewport(widget)); -} - -QSize PythonQtWrapper_QAbstractScrollArea::sizeHint(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QScrollBar* PythonQtWrapper_QAbstractScrollArea::verticalScrollBar(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->verticalScrollBar()); -} - -Qt::ScrollBarPolicy PythonQtWrapper_QAbstractScrollArea::verticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->verticalScrollBarPolicy()); -} - -QWidget* PythonQtWrapper_QAbstractScrollArea::viewport(QAbstractScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->viewport()); -} - -bool PythonQtWrapper_QAbstractScrollArea::viewportEvent(QAbstractScrollArea* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_viewportEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractScrollArea::wheelEvent(QAbstractScrollArea* theWrappedObject, QWheelEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractScrollArea*)theWrappedObject)->promoted_wheelEvent(arg__1)); -} - - - -void PythonQtShell_QAbstractSlider::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::actionEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::changeEvent(e); -} -void PythonQtShell_QAbstractSlider::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::childEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::closeEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::contextMenuEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::customEvent(arg__1); -} -int PythonQtShell_QAbstractSlider::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::devType(); -} -void PythonQtShell_QAbstractSlider::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::dragEnterEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::dragLeaveEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::dragMoveEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::dropEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::enterEvent(arg__1); -} -bool PythonQtShell_QAbstractSlider::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::event(e); -} -bool PythonQtShell_QAbstractSlider::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractSlider::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::focusInEvent(arg__1); -} -bool PythonQtShell_QAbstractSlider::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::focusNextPrevChild(next); -} -void PythonQtShell_QAbstractSlider::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::focusOutEvent(arg__1); -} -int PythonQtShell_QAbstractSlider::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::heightForWidth(arg__1); -} -void PythonQtShell_QAbstractSlider::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::hideEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QAbstractSlider::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::inputMethodQuery(arg__1); -} -void PythonQtShell_QAbstractSlider::keyPressEvent(QKeyEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::keyPressEvent(ev); -} -void PythonQtShell_QAbstractSlider::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::keyReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::languageChange(); -} -void PythonQtShell_QAbstractSlider::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::leaveEvent(arg__1); -} -int PythonQtShell_QAbstractSlider::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::metric(arg__1); -} -QSize PythonQtShell_QAbstractSlider::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::minimumSizeHint(); -} -void PythonQtShell_QAbstractSlider::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::mouseMoveEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::mousePressEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QAbstractSlider::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::paintEngine(); -} -void PythonQtShell_QAbstractSlider::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::paintEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::resizeEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::showEvent(arg__1); -} -QSize PythonQtShell_QAbstractSlider::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSlider::sizeHint(); -} -void PythonQtShell_QAbstractSlider::sliderChange(QAbstractSlider::SliderChange change) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sliderChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractSlider::SliderChange"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&change}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::sliderChange(change); -} -void PythonQtShell_QAbstractSlider::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::tabletEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::timerEvent(arg__1); -} -void PythonQtShell_QAbstractSlider::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSlider::wheelEvent(e); -} -QAbstractSlider* PythonQtWrapper_QAbstractSlider::new_QAbstractSlider(QWidget* parent) -{ -return new PythonQtShell_QAbstractSlider(parent); } - -void PythonQtWrapper_QAbstractSlider::changeEvent(QAbstractSlider* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_changeEvent(e)); -} - -bool PythonQtWrapper_QAbstractSlider::event(QAbstractSlider* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QAbstractSlider::hasTracking(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->hasTracking()); -} - -bool PythonQtWrapper_QAbstractSlider::invertedAppearance(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->invertedAppearance()); -} - -bool PythonQtWrapper_QAbstractSlider::invertedControls(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->invertedControls()); -} - -bool PythonQtWrapper_QAbstractSlider::isSliderDown(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->isSliderDown()); -} - -void PythonQtWrapper_QAbstractSlider::keyPressEvent(QAbstractSlider* theWrappedObject, QKeyEvent* ev) -{ - ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_keyPressEvent(ev)); -} - -int PythonQtWrapper_QAbstractSlider::maximum(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->maximum()); -} - -int PythonQtWrapper_QAbstractSlider::minimum(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->minimum()); -} - -Qt::Orientation PythonQtWrapper_QAbstractSlider::orientation(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -int PythonQtWrapper_QAbstractSlider::pageStep(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->pageStep()); -} - -void PythonQtWrapper_QAbstractSlider::setInvertedAppearance(QAbstractSlider* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setInvertedAppearance(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setInvertedControls(QAbstractSlider* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setInvertedControls(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setMaximum(QAbstractSlider* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setMaximum(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setMinimum(QAbstractSlider* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setMinimum(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setPageStep(QAbstractSlider* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setPageStep(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setRange(QAbstractSlider* theWrappedObject, int min, int max) -{ - ( theWrappedObject->setRange(min, max)); -} - -void PythonQtWrapper_QAbstractSlider::setSingleStep(QAbstractSlider* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setSingleStep(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setSliderDown(QAbstractSlider* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setSliderDown(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setSliderPosition(QAbstractSlider* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setSliderPosition(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::setTracking(QAbstractSlider* theWrappedObject, bool enable) -{ - ( theWrappedObject->setTracking(enable)); -} - -int PythonQtWrapper_QAbstractSlider::singleStep(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->singleStep()); -} - -int PythonQtWrapper_QAbstractSlider::sliderPosition(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->sliderPosition()); -} - -void PythonQtWrapper_QAbstractSlider::timerEvent(QAbstractSlider* theWrappedObject, QTimerEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_timerEvent(arg__1)); -} - -void PythonQtWrapper_QAbstractSlider::triggerAction(QAbstractSlider* theWrappedObject, QAbstractSlider::SliderAction action) -{ - ( theWrappedObject->triggerAction(action)); -} - -int PythonQtWrapper_QAbstractSlider::value(QAbstractSlider* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - -void PythonQtWrapper_QAbstractSlider::wheelEvent(QAbstractSlider* theWrappedObject, QWheelEvent* e) -{ - ( ((PythonQtPublicPromoter_QAbstractSlider*)theWrappedObject)->promoted_wheelEvent(e)); -} - - - -void PythonQtShell_QAbstractSpinBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::actionEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::changeEvent(event); -} -void PythonQtShell_QAbstractSpinBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::childEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::clear(); -} -void PythonQtShell_QAbstractSpinBox::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::closeEvent(event); -} -void PythonQtShell_QAbstractSpinBox::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::contextMenuEvent(event); -} -void PythonQtShell_QAbstractSpinBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::customEvent(arg__1); -} -int PythonQtShell_QAbstractSpinBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::devType(); -} -void PythonQtShell_QAbstractSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::dropEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::enterEvent(arg__1); -} -bool PythonQtShell_QAbstractSpinBox::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::event(event); -} -bool PythonQtShell_QAbstractSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractSpinBox::fixup(QString& input) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&input}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::fixup(input); -} -void PythonQtShell_QAbstractSpinBox::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::focusInEvent(event); -} -bool PythonQtShell_QAbstractSpinBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::focusNextPrevChild(next); -} -void PythonQtShell_QAbstractSpinBox::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::focusOutEvent(event); -} -int PythonQtShell_QAbstractSpinBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::heightForWidth(arg__1); -} -void PythonQtShell_QAbstractSpinBox::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::hideEvent(event); -} -void PythonQtShell_QAbstractSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QAbstractSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QAbstractSpinBox::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::keyPressEvent(event); -} -void PythonQtShell_QAbstractSpinBox::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::keyReleaseEvent(event); -} -void PythonQtShell_QAbstractSpinBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::languageChange(); -} -void PythonQtShell_QAbstractSpinBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::leaveEvent(arg__1); -} -int PythonQtShell_QAbstractSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::metric(arg__1); -} -void PythonQtShell_QAbstractSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::mouseMoveEvent(event); -} -void PythonQtShell_QAbstractSpinBox::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::mousePressEvent(event); -} -void PythonQtShell_QAbstractSpinBox::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::mouseReleaseEvent(event); -} -void PythonQtShell_QAbstractSpinBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QAbstractSpinBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::paintEngine(); -} -void PythonQtShell_QAbstractSpinBox::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::paintEvent(event); -} -void PythonQtShell_QAbstractSpinBox::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::resizeEvent(event); -} -void PythonQtShell_QAbstractSpinBox::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::showEvent(event); -} -void PythonQtShell_QAbstractSpinBox::stepBy(int steps) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::stepBy(steps); -} -QAbstractSpinBox::StepEnabled PythonQtShell_QAbstractSpinBox::stepEnabled() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); - } else { - returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::stepEnabled(); -} -void PythonQtShell_QAbstractSpinBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::tabletEvent(arg__1); -} -void PythonQtShell_QAbstractSpinBox::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::timerEvent(event); -} -QValidator::State PythonQtShell_QAbstractSpinBox::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSpinBox::validate(input, pos); -} -void PythonQtShell_QAbstractSpinBox::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QAbstractSpinBox::wheelEvent(event); -} -QAbstractSpinBox* PythonQtWrapper_QAbstractSpinBox::new_QAbstractSpinBox(QWidget* parent) -{ -return new PythonQtShell_QAbstractSpinBox(parent); } - -Qt::Alignment PythonQtWrapper_QAbstractSpinBox::alignment(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -QAbstractSpinBox::ButtonSymbols PythonQtWrapper_QAbstractSpinBox::buttonSymbols(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->buttonSymbols()); -} - -void PythonQtWrapper_QAbstractSpinBox::changeEvent(QAbstractSpinBox* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_changeEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::closeEvent(QAbstractSpinBox* theWrappedObject, QCloseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_closeEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::contextMenuEvent(QAbstractSpinBox* theWrappedObject, QContextMenuEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_contextMenuEvent(event)); -} - -QAbstractSpinBox::CorrectionMode PythonQtWrapper_QAbstractSpinBox::correctionMode(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->correctionMode()); -} - -bool PythonQtWrapper_QAbstractSpinBox::event(QAbstractSpinBox* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::fixup(QAbstractSpinBox* theWrappedObject, QString& input) const -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_fixup(input)); -} - -void PythonQtWrapper_QAbstractSpinBox::focusInEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_focusInEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::focusOutEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_focusOutEvent(event)); -} - -bool PythonQtWrapper_QAbstractSpinBox::hasAcceptableInput(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->hasAcceptableInput()); -} - -bool PythonQtWrapper_QAbstractSpinBox::hasFrame(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->hasFrame()); -} - -void PythonQtWrapper_QAbstractSpinBox::hideEvent(QAbstractSpinBox* theWrappedObject, QHideEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_hideEvent(event)); -} - -QVariant PythonQtWrapper_QAbstractSpinBox::inputMethodQuery(QAbstractSpinBox* theWrappedObject, Qt::InputMethodQuery arg__1) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); -} - -void PythonQtWrapper_QAbstractSpinBox::interpretText(QAbstractSpinBox* theWrappedObject) -{ - ( theWrappedObject->interpretText()); -} - -bool PythonQtWrapper_QAbstractSpinBox::isAccelerated(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->isAccelerated()); -} - -bool PythonQtWrapper_QAbstractSpinBox::isReadOnly(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->isReadOnly()); -} - -void PythonQtWrapper_QAbstractSpinBox::keyPressEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::keyReleaseEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_keyReleaseEvent(event)); -} - -bool PythonQtWrapper_QAbstractSpinBox::keyboardTracking(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->keyboardTracking()); -} - -QSize PythonQtWrapper_QAbstractSpinBox::minimumSizeHint(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QAbstractSpinBox::mouseMoveEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_mouseMoveEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::mousePressEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::mouseReleaseEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_mouseReleaseEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::paintEvent(QAbstractSpinBox* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_paintEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::resizeEvent(QAbstractSpinBox* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QAbstractSpinBox::setAccelerated(QAbstractSpinBox* theWrappedObject, bool on) -{ - ( theWrappedObject->setAccelerated(on)); -} - -void PythonQtWrapper_QAbstractSpinBox::setAlignment(QAbstractSpinBox* theWrappedObject, Qt::Alignment flag) -{ - ( theWrappedObject->setAlignment(flag)); -} - -void PythonQtWrapper_QAbstractSpinBox::setButtonSymbols(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::ButtonSymbols bs) -{ - ( theWrappedObject->setButtonSymbols(bs)); -} - -void PythonQtWrapper_QAbstractSpinBox::setCorrectionMode(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::CorrectionMode cm) -{ - ( theWrappedObject->setCorrectionMode(cm)); -} - -void PythonQtWrapper_QAbstractSpinBox::setFrame(QAbstractSpinBox* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setFrame(arg__1)); -} - -void PythonQtWrapper_QAbstractSpinBox::setKeyboardTracking(QAbstractSpinBox* theWrappedObject, bool kt) -{ - ( theWrappedObject->setKeyboardTracking(kt)); -} - -void PythonQtWrapper_QAbstractSpinBox::setReadOnly(QAbstractSpinBox* theWrappedObject, bool r) -{ - ( theWrappedObject->setReadOnly(r)); -} - -void PythonQtWrapper_QAbstractSpinBox::setSpecialValueText(QAbstractSpinBox* theWrappedObject, const QString& txt) -{ - ( theWrappedObject->setSpecialValueText(txt)); -} - -void PythonQtWrapper_QAbstractSpinBox::setWrapping(QAbstractSpinBox* theWrappedObject, bool w) -{ - ( theWrappedObject->setWrapping(w)); -} - -void PythonQtWrapper_QAbstractSpinBox::showEvent(QAbstractSpinBox* theWrappedObject, QShowEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_showEvent(event)); -} - -QSize PythonQtWrapper_QAbstractSpinBox::sizeHint(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QString PythonQtWrapper_QAbstractSpinBox::specialValueText(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->specialValueText()); -} - -void PythonQtWrapper_QAbstractSpinBox::stepBy(QAbstractSpinBox* theWrappedObject, int steps) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_stepBy(steps)); -} - -QAbstractSpinBox::StepEnabled PythonQtWrapper_QAbstractSpinBox::stepEnabled(QAbstractSpinBox* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_stepEnabled()); -} - -QString PythonQtWrapper_QAbstractSpinBox::text(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -void PythonQtWrapper_QAbstractSpinBox::timerEvent(QAbstractSpinBox* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_timerEvent(event)); -} - -QValidator::State PythonQtWrapper_QAbstractSpinBox::validate(QAbstractSpinBox* theWrappedObject, QString& input, int& pos) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_validate(input, pos)); -} - -void PythonQtWrapper_QAbstractSpinBox::wheelEvent(QAbstractSpinBox* theWrappedObject, QWheelEvent* event) -{ - ( ((PythonQtPublicPromoter_QAbstractSpinBox*)theWrappedObject)->promoted_wheelEvent(event)); -} - -bool PythonQtWrapper_QAbstractSpinBox::wrapping(QAbstractSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->wrapping()); -} - - - -QModelIndex PythonQtShell_QAbstractTableModel::buddy(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::buddy(index); -} -bool PythonQtShell_QAbstractTableModel::canFetchMore(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::canFetchMore(parent); -} -void PythonQtShell_QAbstractTableModel::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTableModel::childEvent(arg__1); -} -int PythonQtShell_QAbstractTableModel::columnCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QAbstractTableModel::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTableModel::customEvent(arg__1); -} -QVariant PythonQtShell_QAbstractTableModel::data(const QModelIndex& index, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&index, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariant(); -} -bool PythonQtShell_QAbstractTableModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::dropMimeData(data, action, row, column, parent); -} -bool PythonQtShell_QAbstractTableModel::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::event(arg__1); -} -bool PythonQtShell_QAbstractTableModel::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractTableModel::fetchMore(const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTableModel::fetchMore(parent); -} -Qt::ItemFlags PythonQtShell_QAbstractTableModel::flags(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); - } else { - returnValue = *((Qt::ItemFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::flags(index); -} -QVariant PythonQtShell_QAbstractTableModel::headerData(int section, Qt::Orientation orientation, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::headerData(section, orientation, role); -} -QModelIndex PythonQtShell_QAbstractTableModel::index(int row, int column, const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QModelIndex returnValue; - void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::index(row, column, parent); -} -bool PythonQtShell_QAbstractTableModel::insertColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::insertColumns(column, count, parent); -} -bool PythonQtShell_QAbstractTableModel::insertRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::insertRows(row, count, parent); -} -QMap PythonQtShell_QAbstractTableModel::itemData(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMap returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); - } else { - returnValue = *((QMap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::itemData(index); -} -QList PythonQtShell_QAbstractTableModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - QList returnValue; - void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::match(start, role, value, hits, flags); -} -QMimeData* PythonQtShell_QAbstractTableModel::mimeData(const QList& indexes) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::mimeData(indexes); -} -QStringList PythonQtShell_QAbstractTableModel::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::mimeTypes(); -} -bool PythonQtShell_QAbstractTableModel::removeColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::removeColumns(column, count, parent); -} -bool PythonQtShell_QAbstractTableModel::removeRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::removeRows(row, count, parent); -} -void PythonQtShell_QAbstractTableModel::revert() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTableModel::revert(); -} -int PythonQtShell_QAbstractTableModel::rowCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAbstractTableModel::setData(const QModelIndex& index, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::setData(index, value, role); -} -bool PythonQtShell_QAbstractTableModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::setHeaderData(section, orientation, value, role); -} -bool PythonQtShell_QAbstractTableModel::setItemData(const QModelIndex& index, const QMap& roles) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::setItemData(index, roles); -} -void PythonQtShell_QAbstractTableModel::sort(int column, Qt::SortOrder order) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&column, (void*)&order}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTableModel::sort(column, order); -} -QSize PythonQtShell_QAbstractTableModel::span(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::span(index); -} -bool PythonQtShell_QAbstractTableModel::submit() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::submit(); -} -Qt::DropActions PythonQtShell_QAbstractTableModel::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractTableModel::supportedDropActions(); -} -void PythonQtShell_QAbstractTableModel::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractTableModel::timerEvent(arg__1); -} -QAbstractTableModel* PythonQtWrapper_QAbstractTableModel::new_QAbstractTableModel(QObject* parent) -{ -return new PythonQtShell_QAbstractTableModel(parent); } - -bool PythonQtWrapper_QAbstractTableModel::dropMimeData(QAbstractTableModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QAbstractTableModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); -} - -QModelIndex PythonQtWrapper_QAbstractTableModel::index(QAbstractTableModel* theWrappedObject, int row, int column, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QAbstractTableModel*)theWrappedObject)->promoted_index(row, column, parent)); -} - - - -QAccessible* PythonQtWrapper_QAccessible::new_QAccessible() -{ -return new PythonQtShell_QAccessible(); } - -bool PythonQtWrapper_QAccessible::static_QAccessible_isActive() -{ - return (QAccessible::isActive()); -} - -QAccessibleInterface* PythonQtWrapper_QAccessible::static_QAccessible_queryAccessibleInterface(QObject* arg__1) -{ - return (QAccessible::queryAccessibleInterface(arg__1)); -} - -void PythonQtWrapper_QAccessible::static_QAccessible_setRootObject(QObject* arg__1) -{ - (QAccessible::setRootObject(arg__1)); -} - -void PythonQtWrapper_QAccessible::static_QAccessible_updateAccessibility(QObject* arg__1, int who, QAccessible::Event reason) -{ - (QAccessible::updateAccessibility(arg__1, who, reason)); -} - - - -QAccessible2Interface* PythonQtWrapper_QAccessible2Interface::new_QAccessible2Interface() -{ -return new PythonQtShell_QAccessible2Interface(); } - - - -void PythonQtShell_QAccessibleBridge::notifyAccessibilityUpdate(int arg__1, QAccessibleInterface* arg__2, int arg__3) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notifyAccessibilityUpdate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&arg__1, (void*)&arg__2, (void*)&arg__3}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAccessibleBridge::setRootObject(QAccessibleInterface* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootObject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QAccessibleBridge* PythonQtWrapper_QAccessibleBridge::new_QAccessibleBridge() -{ -return new PythonQtShell_QAccessibleBridge(); } - - - -QAccessibleEvent* PythonQtWrapper_QAccessibleEvent::new_QAccessibleEvent(QEvent::Type type, int child) -{ -return new QAccessibleEvent(type, child); } - -int PythonQtWrapper_QAccessibleEvent::child(QAccessibleEvent* theWrappedObject) const -{ - return ( theWrappedObject->child()); -} - -void PythonQtWrapper_QAccessibleEvent::setValue(QAccessibleEvent* theWrappedObject, const QString& aText) -{ - ( theWrappedObject->setValue(aText)); -} - -QString PythonQtWrapper_QAccessibleEvent::value(QAccessibleEvent* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - - - -QString PythonQtShell_QAccessibleInterface::actionText(int action, QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&action, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actionText", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -int PythonQtShell_QAccessibleInterface::childAt(int x, int y) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childAt", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleInterface::childCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAccessibleInterface::doAction(int action, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("doAction", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -int PythonQtShell_QAccessibleInterface::indexOfChild(const QAccessibleInterface* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOfChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOfChild", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAccessibleInterface::isValid() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isValid"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isValid", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -int PythonQtShell_QAccessibleInterface::navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "navigate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("navigate", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QObject* PythonQtShell_QAccessibleInterface::object() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "object"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("object", methodInfo, result); - } else { - returnValue = *((QObject**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QRect PythonQtShell_QAccessibleInterface::rect(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRect(); -} -QAccessible::Relation PythonQtShell_QAccessibleInterface::relationTo(int child, const QAccessibleInterface* other, int otherChild) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "relationTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("relationTo", methodInfo, result); - } else { - returnValue = *((QAccessible::Relation*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Relation(); -} -QAccessible::Role PythonQtShell_QAccessibleInterface::role(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "role"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Role" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::Role returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("role", methodInfo, result); - } else { - returnValue = *((QAccessible::Role*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Role(); -} -void PythonQtShell_QAccessibleInterface::setText(QAccessible::Text t, int child, const QString& text) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAccessible::Text" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&t, (void*)&child, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QAccessible::State PythonQtShell_QAccessibleInterface::state(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "state"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("state", methodInfo, result); - } else { - returnValue = *((QAccessible::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::State(); -} -QString PythonQtShell_QAccessibleInterface::text(QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -int PythonQtShell_QAccessibleInterface::userActionCount(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "userActionCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("userActionCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QAccessibleInterface* PythonQtWrapper_QAccessibleInterface::new_QAccessibleInterface() -{ -return new PythonQtShell_QAccessibleInterface(); } - -QVariant PythonQtWrapper_QAccessibleInterface::invokeMethod(QAccessibleInterface* theWrappedObject, QAccessible::Method method, int child, const QList& params) -{ - return ( theWrappedObject->invokeMethod(method, child, params)); -} - -QSet PythonQtWrapper_QAccessibleInterface::supportedMethods(QAccessibleInterface* theWrappedObject) -{ - return ( theWrappedObject->supportedMethods()); -} - - - -QString PythonQtShell_QAccessibleInterfaceEx::actionText(int action, QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&action, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actionText", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -int PythonQtShell_QAccessibleInterfaceEx::childAt(int x, int y) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childAt", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleInterfaceEx::childCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAccessibleInterfaceEx::doAction(int action, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("doAction", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -int PythonQtShell_QAccessibleInterfaceEx::indexOfChild(const QAccessibleInterface* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOfChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOfChild", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QVariant PythonQtShell_QAccessibleInterfaceEx::invokeMethodEx(QAccessible::Method method, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invokeMethodEx"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QAccessible::Method" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)&method, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("invokeMethodEx", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariant(); -} -bool PythonQtShell_QAccessibleInterfaceEx::isValid() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isValid"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isValid", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -int PythonQtShell_QAccessibleInterfaceEx::navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "navigate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("navigate", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QObject* PythonQtShell_QAccessibleInterfaceEx::object() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "object"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("object", methodInfo, result); - } else { - returnValue = *((QObject**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QRect PythonQtShell_QAccessibleInterfaceEx::rect(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRect(); -} -QAccessible::Relation PythonQtShell_QAccessibleInterfaceEx::relationTo(int child, const QAccessibleInterface* other, int otherChild) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "relationTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("relationTo", methodInfo, result); - } else { - returnValue = *((QAccessible::Relation*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Relation(); -} -QAccessible::Role PythonQtShell_QAccessibleInterfaceEx::role(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "role"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Role" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::Role returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("role", methodInfo, result); - } else { - returnValue = *((QAccessible::Role*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Role(); -} -void PythonQtShell_QAccessibleInterfaceEx::setText(QAccessible::Text t, int child, const QString& text) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAccessible::Text" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&t, (void*)&child, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QAccessible::State PythonQtShell_QAccessibleInterfaceEx::state(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "state"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("state", methodInfo, result); - } else { - returnValue = *((QAccessible::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::State(); -} -QString PythonQtShell_QAccessibleInterfaceEx::text(QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -int PythonQtShell_QAccessibleInterfaceEx::userActionCount(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "userActionCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("userActionCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QVariant PythonQtShell_QAccessibleInterfaceEx::virtual_hook(const QVariant& data) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "virtual_hook"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&data}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("virtual_hook", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleInterfaceEx::virtual_hook(data); -} -QAccessibleInterfaceEx* PythonQtWrapper_QAccessibleInterfaceEx::new_QAccessibleInterfaceEx() -{ -return new PythonQtShell_QAccessibleInterfaceEx(); } - -QVariant PythonQtWrapper_QAccessibleInterfaceEx::virtual_hook(QAccessibleInterfaceEx* theWrappedObject, const QVariant& data) -{ - return ( ((PythonQtPublicPromoter_QAccessibleInterfaceEx*)theWrappedObject)->promoted_virtual_hook(data)); -} - - - -QString PythonQtShell_QAccessibleObject::actionText(int action, QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&action, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actionText", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObject::actionText(action, t, child); -} -int PythonQtShell_QAccessibleObject::childAt(int x, int y) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childAt", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleObject::childCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAccessibleObject::doAction(int action, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("doAction", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObject::doAction(action, child, params); -} -int PythonQtShell_QAccessibleObject::indexOfChild(const QAccessibleInterface* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOfChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOfChild", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAccessibleObject::isValid() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isValid"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isValid", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObject::isValid(); -} -int PythonQtShell_QAccessibleObject::navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "navigate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("navigate", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QObject* PythonQtShell_QAccessibleObject::object() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "object"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("object", methodInfo, result); - } else { - returnValue = *((QObject**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObject::object(); -} -QRect PythonQtShell_QAccessibleObject::rect(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObject::rect(child); -} -QAccessible::Relation PythonQtShell_QAccessibleObject::relationTo(int child, const QAccessibleInterface* other, int otherChild) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "relationTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("relationTo", methodInfo, result); - } else { - returnValue = *((QAccessible::Relation*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Relation(); -} -QAccessible::Role PythonQtShell_QAccessibleObject::role(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "role"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Role" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::Role returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("role", methodInfo, result); - } else { - returnValue = *((QAccessible::Role*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Role(); -} -void PythonQtShell_QAccessibleObject::setText(QAccessible::Text t, int child, const QString& text) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAccessible::Text" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&t, (void*)&child, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAccessibleObject::setText(t, child, text); -} -QAccessible::State PythonQtShell_QAccessibleObject::state(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "state"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("state", methodInfo, result); - } else { - returnValue = *((QAccessible::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::State(); -} -QString PythonQtShell_QAccessibleObject::text(QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -int PythonQtShell_QAccessibleObject::userActionCount(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "userActionCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("userActionCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObject::userActionCount(child); -} -QAccessibleObject* PythonQtWrapper_QAccessibleObject::new_QAccessibleObject(QObject* object) -{ -return new PythonQtShell_QAccessibleObject(object); } - -QString PythonQtWrapper_QAccessibleObject::actionText(QAccessibleObject* theWrappedObject, int action, QAccessible::Text t, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObject*)theWrappedObject)->promoted_actionText(action, t, child)); -} - -bool PythonQtWrapper_QAccessibleObject::doAction(QAccessibleObject* theWrappedObject, int action, int child, const QList& params) -{ - return ( ((PythonQtPublicPromoter_QAccessibleObject*)theWrappedObject)->promoted_doAction(action, child, params)); -} - -bool PythonQtWrapper_QAccessibleObject::isValid(QAccessibleObject* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObject*)theWrappedObject)->promoted_isValid()); -} - -QObject* PythonQtWrapper_QAccessibleObject::object(QAccessibleObject* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObject*)theWrappedObject)->promoted_object()); -} - -QRect PythonQtWrapper_QAccessibleObject::rect(QAccessibleObject* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObject*)theWrappedObject)->promoted_rect(child)); -} - -void PythonQtWrapper_QAccessibleObject::setText(QAccessibleObject* theWrappedObject, QAccessible::Text t, int child, const QString& text) -{ - ( ((PythonQtPublicPromoter_QAccessibleObject*)theWrappedObject)->promoted_setText(t, child, text)); -} - -int PythonQtWrapper_QAccessibleObject::userActionCount(QAccessibleObject* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObject*)theWrappedObject)->promoted_userActionCount(child)); -} - - - -QString PythonQtShell_QAccessibleObjectEx::actionText(int action, QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&action, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actionText", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObjectEx::actionText(action, t, child); -} -int PythonQtShell_QAccessibleObjectEx::childAt(int x, int y) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childAt", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleObjectEx::childCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAccessibleObjectEx::doAction(int action, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("doAction", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObjectEx::doAction(action, child, params); -} -int PythonQtShell_QAccessibleObjectEx::indexOfChild(const QAccessibleInterface* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOfChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOfChild", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QVariant PythonQtShell_QAccessibleObjectEx::invokeMethodEx(QAccessible::Method method, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invokeMethodEx"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QAccessible::Method" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)&method, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("invokeMethodEx", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariant(); -} -bool PythonQtShell_QAccessibleObjectEx::isValid() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isValid"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isValid", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObjectEx::isValid(); -} -int PythonQtShell_QAccessibleObjectEx::navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "navigate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("navigate", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QObject* PythonQtShell_QAccessibleObjectEx::object() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "object"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("object", methodInfo, result); - } else { - returnValue = *((QObject**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObjectEx::object(); -} -QRect PythonQtShell_QAccessibleObjectEx::rect(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObjectEx::rect(child); -} -QAccessible::Relation PythonQtShell_QAccessibleObjectEx::relationTo(int child, const QAccessibleInterface* other, int otherChild) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "relationTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("relationTo", methodInfo, result); - } else { - returnValue = *((QAccessible::Relation*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Relation(); -} -QAccessible::Role PythonQtShell_QAccessibleObjectEx::role(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "role"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Role" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::Role returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("role", methodInfo, result); - } else { - returnValue = *((QAccessible::Role*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::Role(); -} -void PythonQtShell_QAccessibleObjectEx::setText(QAccessible::Text t, int child, const QString& text) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAccessible::Text" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&t, (void*)&child, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAccessibleObjectEx::setText(t, child, text); -} -QAccessible::State PythonQtShell_QAccessibleObjectEx::state(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "state"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("state", methodInfo, result); - } else { - returnValue = *((QAccessible::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessible::State(); -} -QString PythonQtShell_QAccessibleObjectEx::text(QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -int PythonQtShell_QAccessibleObjectEx::userActionCount(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "userActionCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("userActionCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObjectEx::userActionCount(child); -} -QVariant PythonQtShell_QAccessibleObjectEx::virtual_hook(const QVariant& data) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "virtual_hook"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&data}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("virtual_hook", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleObjectEx::virtual_hook(data); -} -QAccessibleObjectEx* PythonQtWrapper_QAccessibleObjectEx::new_QAccessibleObjectEx(QObject* object) -{ -return new PythonQtShell_QAccessibleObjectEx(object); } - -QString PythonQtWrapper_QAccessibleObjectEx::actionText(QAccessibleObjectEx* theWrappedObject, int action, QAccessible::Text t, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObjectEx*)theWrappedObject)->promoted_actionText(action, t, child)); -} - -bool PythonQtWrapper_QAccessibleObjectEx::doAction(QAccessibleObjectEx* theWrappedObject, int action, int child, const QList& params) -{ - return ( ((PythonQtPublicPromoter_QAccessibleObjectEx*)theWrappedObject)->promoted_doAction(action, child, params)); -} - -bool PythonQtWrapper_QAccessibleObjectEx::isValid(QAccessibleObjectEx* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObjectEx*)theWrappedObject)->promoted_isValid()); -} - -QObject* PythonQtWrapper_QAccessibleObjectEx::object(QAccessibleObjectEx* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObjectEx*)theWrappedObject)->promoted_object()); -} - -QRect PythonQtWrapper_QAccessibleObjectEx::rect(QAccessibleObjectEx* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObjectEx*)theWrappedObject)->promoted_rect(child)); -} - -void PythonQtWrapper_QAccessibleObjectEx::setText(QAccessibleObjectEx* theWrappedObject, QAccessible::Text t, int child, const QString& text) -{ - ( ((PythonQtPublicPromoter_QAccessibleObjectEx*)theWrappedObject)->promoted_setText(t, child, text)); -} - -int PythonQtWrapper_QAccessibleObjectEx::userActionCount(QAccessibleObjectEx* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleObjectEx*)theWrappedObject)->promoted_userActionCount(child)); -} - - - -void PythonQtShell_QAccessiblePlugin::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAccessiblePlugin::childEvent(arg__1); -} -QAccessibleInterface* PythonQtShell_QAccessiblePlugin::create(const QString& key, QObject* object) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*" , "const QString&" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QAccessibleInterface* returnValue = 0; - void* args[3] = {NULL, (void*)&key, (void*)&object}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); - } else { - returnValue = *((QAccessibleInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QAccessiblePlugin::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAccessiblePlugin::customEvent(arg__1); -} -bool PythonQtShell_QAccessiblePlugin::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessiblePlugin::event(arg__1); -} -bool PythonQtShell_QAccessiblePlugin::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessiblePlugin::eventFilter(arg__1, arg__2); -} -QStringList PythonQtShell_QAccessiblePlugin::keys() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keys"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("keys", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -void PythonQtShell_QAccessiblePlugin::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAccessiblePlugin::timerEvent(arg__1); -} -QAccessiblePlugin* PythonQtWrapper_QAccessiblePlugin::new_QAccessiblePlugin(QObject* parent) -{ -return new PythonQtShell_QAccessiblePlugin(parent); } - - - -QAccessibleInterface* PythonQtShell_QAccessibleTableInterface::accessibleAt(int row, int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accessibleAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QAccessibleInterface* returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("accessibleAt", methodInfo, result); - } else { - returnValue = *((QAccessibleInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QAccessibleInterface* PythonQtShell_QAccessibleTableInterface::caption() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "caption"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("caption", methodInfo, result); - } else { - returnValue = *((QAccessibleInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QAccessibleTableInterface::cellAtIndex(int index, int* row, int* column, int* rowSpan, int* columnSpan, bool* isSelected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cellAtIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "int*" , "int*" , "int*" , "int*" , "bool*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(7, argumentList); - void* args[7] = {NULL, (void*)&index, (void*)&row, (void*)&column, (void*)&rowSpan, (void*)&columnSpan, (void*)&isSelected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -int PythonQtShell_QAccessibleTableInterface::childIndex(int rowIndex, int columnIndex) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&rowIndex, (void*)&columnIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childIndex", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleTableInterface::columnCount() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QString PythonQtShell_QAccessibleTableInterface::columnDescription(int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnDescription"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnDescription", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -QAccessibleInterface* PythonQtShell_QAccessibleTableInterface::columnHeader() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnHeader"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnHeader", methodInfo, result); - } else { - returnValue = *((QAccessibleInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -int PythonQtShell_QAccessibleTableInterface::columnIndex(int childIndex) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&childIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnIndex", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleTableInterface::columnSpan(int row, int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnSpan"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnSpan", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QAccessibleTableInterface::isColumnSelected(int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isColumnSelected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isColumnSelected", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -bool PythonQtShell_QAccessibleTableInterface::isRowSelected(int row) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isRowSelected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isRowSelected", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -bool PythonQtShell_QAccessibleTableInterface::isSelected(int row, int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSelected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSelected", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -int PythonQtShell_QAccessibleTableInterface::rowCount() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QString PythonQtShell_QAccessibleTableInterface::rowDescription(int row) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowDescription"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowDescription", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -QAccessibleInterface* PythonQtShell_QAccessibleTableInterface::rowHeader() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowHeader"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowHeader", methodInfo, result); - } else { - returnValue = *((QAccessibleInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -int PythonQtShell_QAccessibleTableInterface::rowIndex(int childIndex) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&childIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowIndex", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleTableInterface::rowSpan(int row, int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowSpan"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowSpan", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QAccessibleTableInterface::selectColumn(int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAccessibleTableInterface::selectRow(int row) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -int PythonQtShell_QAccessibleTableInterface::selectedColumnCount() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedColumnCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedColumnCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleTableInterface::selectedColumns(int maxColumns, QList* columns) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "QList*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&maxColumns, (void*)&columns}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedColumns", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleTableInterface::selectedRowCount() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedRowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedRowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QAccessibleTableInterface::selectedRows(int maxRows, QList* rows) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "QList*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&maxRows, (void*)&rows}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedRows", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QAccessibleInterface* PythonQtShell_QAccessibleTableInterface::summary() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "summary"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("summary", methodInfo, result); - } else { - returnValue = *((QAccessibleInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QAccessibleTableInterface::unselectColumn(int column) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unselectColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAccessibleTableInterface::unselectRow(int row) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unselectRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QAccessibleTableInterface* PythonQtWrapper_QAccessibleTableInterface::new_QAccessibleTableInterface() -{ -return new PythonQtShell_QAccessibleTableInterface(); } - - - -QString PythonQtShell_QAccessibleWidget::actionText(int action, QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&action, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actionText", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::actionText(action, t, child); -} -int PythonQtShell_QAccessibleWidget::childAt(int x, int y) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childAt", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::childAt(x, y); -} -int PythonQtShell_QAccessibleWidget::childCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::childCount(); -} -bool PythonQtShell_QAccessibleWidget::doAction(int action, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("doAction", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::doAction(action, child, params); -} -int PythonQtShell_QAccessibleWidget::indexOfChild(const QAccessibleInterface* child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOfChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOfChild", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::indexOfChild(child); -} -bool PythonQtShell_QAccessibleWidget::isValid() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isValid"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isValid", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::isValid(); -} -int PythonQtShell_QAccessibleWidget::navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "navigate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&rel, (void*)&entry, (void*)&target}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("navigate", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::navigate(rel, entry, target); -} -QObject* PythonQtShell_QAccessibleWidget::object() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "object"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("object", methodInfo, result); - } else { - returnValue = *((QObject**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::object(); -} -QRect PythonQtShell_QAccessibleWidget::rect(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::rect(child); -} -QAccessible::Relation PythonQtShell_QAccessibleWidget::relationTo(int child, const QAccessibleInterface* other, int otherChild) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "relationTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("relationTo", methodInfo, result); - } else { - returnValue = *((QAccessible::Relation*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::relationTo(child, other, otherChild); -} -QAccessible::Role PythonQtShell_QAccessibleWidget::role(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "role"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Role" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::Role returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("role", methodInfo, result); - } else { - returnValue = *((QAccessible::Role*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::role(child); -} -void PythonQtShell_QAccessibleWidget::setText(QAccessible::Text t, int child, const QString& text) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAccessible::Text" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&t, (void*)&child, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAccessibleWidget::setText(t, child, text); -} -QAccessible::State PythonQtShell_QAccessibleWidget::state(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "state"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("state", methodInfo, result); - } else { - returnValue = *((QAccessible::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::state(child); -} -QString PythonQtShell_QAccessibleWidget::text(QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::text(t, child); -} -int PythonQtShell_QAccessibleWidget::userActionCount(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "userActionCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("userActionCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidget::userActionCount(child); -} -QAccessibleWidget* PythonQtWrapper_QAccessibleWidget::new_QAccessibleWidget(QWidget* o, QAccessible::Role r, const QString& name) -{ -return new PythonQtShell_QAccessibleWidget(o, r, name); } - -QString PythonQtWrapper_QAccessibleWidget::actionText(QAccessibleWidget* theWrappedObject, int action, QAccessible::Text t, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_actionText(action, t, child)); -} - -int PythonQtWrapper_QAccessibleWidget::childAt(QAccessibleWidget* theWrappedObject, int x, int y) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_childAt(x, y)); -} - -int PythonQtWrapper_QAccessibleWidget::childCount(QAccessibleWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_childCount()); -} - -bool PythonQtWrapper_QAccessibleWidget::doAction(QAccessibleWidget* theWrappedObject, int action, int child, const QList& params) -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_doAction(action, child, params)); -} - -int PythonQtWrapper_QAccessibleWidget::indexOfChild(QAccessibleWidget* theWrappedObject, const QAccessibleInterface* child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_indexOfChild(child)); -} - -int PythonQtWrapper_QAccessibleWidget::navigate(QAccessibleWidget* theWrappedObject, QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_navigate(rel, entry, target)); -} - -QRect PythonQtWrapper_QAccessibleWidget::rect(QAccessibleWidget* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_rect(child)); -} - -QAccessible::Relation PythonQtWrapper_QAccessibleWidget::relationTo(QAccessibleWidget* theWrappedObject, int child, const QAccessibleInterface* other, int otherChild) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_relationTo(child, other, otherChild)); -} - -QAccessible::Role PythonQtWrapper_QAccessibleWidget::role(QAccessibleWidget* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_role(child)); -} - -QAccessible::State PythonQtWrapper_QAccessibleWidget::state(QAccessibleWidget* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_state(child)); -} - -QString PythonQtWrapper_QAccessibleWidget::text(QAccessibleWidget* theWrappedObject, QAccessible::Text t, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_text(t, child)); -} - -int PythonQtWrapper_QAccessibleWidget::userActionCount(QAccessibleWidget* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidget*)theWrappedObject)->promoted_userActionCount(child)); -} - - - -QString PythonQtShell_QAccessibleWidgetEx::actionText(int action, QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QString returnValue; - void* args[4] = {NULL, (void*)&action, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actionText", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::actionText(action, t, child); -} -int PythonQtShell_QAccessibleWidgetEx::childAt(int x, int y) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childAt", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::childAt(x, y); -} -int PythonQtShell_QAccessibleWidgetEx::childCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("childCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::childCount(); -} -bool PythonQtShell_QAccessibleWidgetEx::doAction(int action, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("doAction", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::doAction(action, child, params); -} -int PythonQtShell_QAccessibleWidgetEx::indexOfChild(const QAccessibleInterface* child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOfChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOfChild", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::indexOfChild(child); -} -QVariant PythonQtShell_QAccessibleWidgetEx::invokeMethodEx(QAccessible::Method method, int child, const QList& params) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invokeMethodEx"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QAccessible::Method" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)&method, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("invokeMethodEx", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::invokeMethodEx(method, child, params); -} -bool PythonQtShell_QAccessibleWidgetEx::isValid() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isValid"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isValid", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::isValid(); -} -int PythonQtShell_QAccessibleWidgetEx::navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "navigate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&rel, (void*)&entry, (void*)&target}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("navigate", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::navigate(rel, entry, target); -} -QObject* PythonQtShell_QAccessibleWidgetEx::object() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "object"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("object", methodInfo, result); - } else { - returnValue = *((QObject**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::object(); -} -QRect PythonQtShell_QAccessibleWidgetEx::rect(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::rect(child); -} -QAccessible::Relation PythonQtShell_QAccessibleWidgetEx::relationTo(int child, const QAccessibleInterface* other, int otherChild) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "relationTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("relationTo", methodInfo, result); - } else { - returnValue = *((QAccessible::Relation*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::relationTo(child, other, otherChild); -} -QAccessible::Role PythonQtShell_QAccessibleWidgetEx::role(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "role"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Role" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::Role returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("role", methodInfo, result); - } else { - returnValue = *((QAccessible::Role*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::role(child); -} -void PythonQtShell_QAccessibleWidgetEx::setText(QAccessible::Text t, int child, const QString& text) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAccessible::Text" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&t, (void*)&child, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAccessibleWidgetEx::setText(t, child, text); -} -QAccessible::State PythonQtShell_QAccessibleWidgetEx::state(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "state"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("state", methodInfo, result); - } else { - returnValue = *((QAccessible::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::state(child); -} -QString PythonQtShell_QAccessibleWidgetEx::text(QAccessible::Text t, int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "QAccessible::Text" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&t, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::text(t, child); -} -int PythonQtShell_QAccessibleWidgetEx::userActionCount(int child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "userActionCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("userActionCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::userActionCount(child); -} -QVariant PythonQtShell_QAccessibleWidgetEx::virtual_hook(const QVariant& data) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "virtual_hook"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&data}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("virtual_hook", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAccessibleWidgetEx::virtual_hook(data); -} -QAccessibleWidgetEx* PythonQtWrapper_QAccessibleWidgetEx::new_QAccessibleWidgetEx(QWidget* o, QAccessible::Role r, const QString& name) -{ -return new PythonQtShell_QAccessibleWidgetEx(o, r, name); } - -QString PythonQtWrapper_QAccessibleWidgetEx::actionText(QAccessibleWidgetEx* theWrappedObject, int action, QAccessible::Text t, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_actionText(action, t, child)); -} - -int PythonQtWrapper_QAccessibleWidgetEx::childAt(QAccessibleWidgetEx* theWrappedObject, int x, int y) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_childAt(x, y)); -} - -int PythonQtWrapper_QAccessibleWidgetEx::childCount(QAccessibleWidgetEx* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_childCount()); -} - -bool PythonQtWrapper_QAccessibleWidgetEx::doAction(QAccessibleWidgetEx* theWrappedObject, int action, int child, const QList& params) -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_doAction(action, child, params)); -} - -int PythonQtWrapper_QAccessibleWidgetEx::indexOfChild(QAccessibleWidgetEx* theWrappedObject, const QAccessibleInterface* child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_indexOfChild(child)); -} - -QVariant PythonQtWrapper_QAccessibleWidgetEx::invokeMethodEx(QAccessibleWidgetEx* theWrappedObject, QAccessible::Method method, int child, const QList& params) -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_invokeMethodEx(method, child, params)); -} - -int PythonQtWrapper_QAccessibleWidgetEx::navigate(QAccessibleWidgetEx* theWrappedObject, QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_navigate(rel, entry, target)); -} - -QRect PythonQtWrapper_QAccessibleWidgetEx::rect(QAccessibleWidgetEx* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_rect(child)); -} - -QAccessible::Relation PythonQtWrapper_QAccessibleWidgetEx::relationTo(QAccessibleWidgetEx* theWrappedObject, int child, const QAccessibleInterface* other, int otherChild) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_relationTo(child, other, otherChild)); -} - -QAccessible::Role PythonQtWrapper_QAccessibleWidgetEx::role(QAccessibleWidgetEx* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_role(child)); -} - -QAccessible::State PythonQtWrapper_QAccessibleWidgetEx::state(QAccessibleWidgetEx* theWrappedObject, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_state(child)); -} - -QString PythonQtWrapper_QAccessibleWidgetEx::text(QAccessibleWidgetEx* theWrappedObject, QAccessible::Text t, int child) const -{ - return ( ((PythonQtPublicPromoter_QAccessibleWidgetEx*)theWrappedObject)->promoted_text(t, child)); -} - - - -void PythonQtShell_QAction::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAction::childEvent(arg__1); -} -void PythonQtShell_QAction::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAction::customEvent(arg__1); -} -bool PythonQtShell_QAction::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAction::event(arg__1); -} -bool PythonQtShell_QAction::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAction::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAction::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAction::timerEvent(arg__1); -} -QAction* PythonQtWrapper_QAction::new_QAction(QObject* parent) -{ -return new PythonQtShell_QAction(parent); } - -QAction* PythonQtWrapper_QAction::new_QAction(const QIcon& icon, const QString& text, QObject* parent) -{ -return new PythonQtShell_QAction(icon, text, parent); } - -QAction* PythonQtWrapper_QAction::new_QAction(const QString& text, QObject* parent) -{ -return new PythonQtShell_QAction(text, parent); } - -QActionGroup* PythonQtWrapper_QAction::actionGroup(QAction* theWrappedObject) const -{ - return ( theWrappedObject->actionGroup()); -} - -void PythonQtWrapper_QAction::activate(QAction* theWrappedObject, QAction::ActionEvent event) -{ - ( theWrappedObject->activate(event)); -} - -QList PythonQtWrapper_QAction::associatedGraphicsWidgets(QAction* theWrappedObject) const -{ - return ( theWrappedObject->associatedGraphicsWidgets()); -} - -QList PythonQtWrapper_QAction::associatedWidgets(QAction* theWrappedObject) const -{ - return ( theWrappedObject->associatedWidgets()); -} - -bool PythonQtWrapper_QAction::autoRepeat(QAction* theWrappedObject) const -{ - return ( theWrappedObject->autoRepeat()); -} - -QVariant PythonQtWrapper_QAction::data(QAction* theWrappedObject) const -{ - return ( theWrappedObject->data()); -} - -bool PythonQtWrapper_QAction::event(QAction* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QAction*)theWrappedObject)->promoted_event(arg__1)); -} - -QFont PythonQtWrapper_QAction::font(QAction* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -QIcon PythonQtWrapper_QAction::icon(QAction* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -QString PythonQtWrapper_QAction::iconText(QAction* theWrappedObject) const -{ - return ( theWrappedObject->iconText()); -} - -bool PythonQtWrapper_QAction::isCheckable(QAction* theWrappedObject) const -{ - return ( theWrappedObject->isCheckable()); -} - -bool PythonQtWrapper_QAction::isChecked(QAction* theWrappedObject) const -{ - return ( theWrappedObject->isChecked()); -} - -bool PythonQtWrapper_QAction::isEnabled(QAction* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -bool PythonQtWrapper_QAction::isIconVisibleInMenu(QAction* theWrappedObject) const -{ - return ( theWrappedObject->isIconVisibleInMenu()); -} - -bool PythonQtWrapper_QAction::isSeparator(QAction* theWrappedObject) const -{ - return ( theWrappedObject->isSeparator()); -} - -bool PythonQtWrapper_QAction::isVisible(QAction* theWrappedObject) const -{ - return ( theWrappedObject->isVisible()); -} - -QMenu* PythonQtWrapper_QAction::menu(QAction* theWrappedObject) const -{ - return ( theWrappedObject->menu()); -} - -QAction::MenuRole PythonQtWrapper_QAction::menuRole(QAction* theWrappedObject) const -{ - return ( theWrappedObject->menuRole()); -} - -QWidget* PythonQtWrapper_QAction::parentWidget(QAction* theWrappedObject) const -{ - return ( theWrappedObject->parentWidget()); -} - -QAction::Priority PythonQtWrapper_QAction::priority(QAction* theWrappedObject) const -{ - return ( theWrappedObject->priority()); -} - -void PythonQtWrapper_QAction::setActionGroup(QAction* theWrappedObject, QActionGroup* group) -{ - ( theWrappedObject->setActionGroup(group)); -} - -void PythonQtWrapper_QAction::setAutoRepeat(QAction* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setAutoRepeat(arg__1)); -} - -void PythonQtWrapper_QAction::setCheckable(QAction* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setCheckable(arg__1)); -} - -void PythonQtWrapper_QAction::setData(QAction* theWrappedObject, const QVariant& var) -{ - ( theWrappedObject->setData(var)); -} - -void PythonQtWrapper_QAction::setFont(QAction* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QAction::setIcon(QAction* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setIcon(icon)); -} - -void PythonQtWrapper_QAction::setIconText(QAction* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setIconText(text)); -} - -void PythonQtWrapper_QAction::setIconVisibleInMenu(QAction* theWrappedObject, bool visible) -{ - ( theWrappedObject->setIconVisibleInMenu(visible)); -} - -void PythonQtWrapper_QAction::setMenu(QAction* theWrappedObject, QMenu* menu) -{ - ( theWrappedObject->setMenu(menu)); -} - -void PythonQtWrapper_QAction::setMenuRole(QAction* theWrappedObject, QAction::MenuRole menuRole) -{ - ( theWrappedObject->setMenuRole(menuRole)); -} - -void PythonQtWrapper_QAction::setPriority(QAction* theWrappedObject, QAction::Priority priority) -{ - ( theWrappedObject->setPriority(priority)); -} - -void PythonQtWrapper_QAction::setSeparator(QAction* theWrappedObject, bool b) -{ - ( theWrappedObject->setSeparator(b)); -} - -void PythonQtWrapper_QAction::setShortcut(QAction* theWrappedObject, const QKeySequence& shortcut) -{ - ( theWrappedObject->setShortcut(shortcut)); -} - -void PythonQtWrapper_QAction::setShortcutContext(QAction* theWrappedObject, Qt::ShortcutContext context) -{ - ( theWrappedObject->setShortcutContext(context)); -} - -void PythonQtWrapper_QAction::setShortcuts(QAction* theWrappedObject, QKeySequence::StandardKey arg__1) -{ - ( theWrappedObject->setShortcuts(arg__1)); -} - -void PythonQtWrapper_QAction::setShortcuts(QAction* theWrappedObject, const QList& shortcuts) -{ - ( theWrappedObject->setShortcuts(shortcuts)); -} - -void PythonQtWrapper_QAction::setSoftKeyRole(QAction* theWrappedObject, QAction::SoftKeyRole softKeyRole) -{ - ( theWrappedObject->setSoftKeyRole(softKeyRole)); -} - -void PythonQtWrapper_QAction::setStatusTip(QAction* theWrappedObject, const QString& statusTip) -{ - ( theWrappedObject->setStatusTip(statusTip)); -} - -void PythonQtWrapper_QAction::setText(QAction* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -void PythonQtWrapper_QAction::setToolTip(QAction* theWrappedObject, const QString& tip) -{ - ( theWrappedObject->setToolTip(tip)); -} - -void PythonQtWrapper_QAction::setWhatsThis(QAction* theWrappedObject, const QString& what) -{ - ( theWrappedObject->setWhatsThis(what)); -} - -QKeySequence PythonQtWrapper_QAction::shortcut(QAction* theWrappedObject) const -{ - return ( theWrappedObject->shortcut()); -} - -Qt::ShortcutContext PythonQtWrapper_QAction::shortcutContext(QAction* theWrappedObject) const -{ - return ( theWrappedObject->shortcutContext()); -} - -QList PythonQtWrapper_QAction::shortcuts(QAction* theWrappedObject) const -{ - return ( theWrappedObject->shortcuts()); -} - -bool PythonQtWrapper_QAction::showStatusText(QAction* theWrappedObject, QWidget* widget) -{ - return ( theWrappedObject->showStatusText(widget)); -} - -QAction::SoftKeyRole PythonQtWrapper_QAction::softKeyRole(QAction* theWrappedObject) const -{ - return ( theWrappedObject->softKeyRole()); -} - -QString PythonQtWrapper_QAction::statusTip(QAction* theWrappedObject) const -{ - return ( theWrappedObject->statusTip()); -} - -QString PythonQtWrapper_QAction::text(QAction* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -QString PythonQtWrapper_QAction::toolTip(QAction* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - -QString PythonQtWrapper_QAction::whatsThis(QAction* theWrappedObject) const -{ - return ( theWrappedObject->whatsThis()); -} - - - -QActionEvent* PythonQtWrapper_QActionEvent::new_QActionEvent(int type, QAction* action, QAction* before) -{ -return new QActionEvent(type, action, before); } - -QAction* PythonQtWrapper_QActionEvent::action(QActionEvent* theWrappedObject) const -{ - return ( theWrappedObject->action()); -} - -QAction* PythonQtWrapper_QActionEvent::before(QActionEvent* theWrappedObject) const -{ - return ( theWrappedObject->before()); -} - - - -void PythonQtShell_QActionGroup::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QActionGroup::childEvent(arg__1); -} -void PythonQtShell_QActionGroup::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QActionGroup::customEvent(arg__1); -} -bool PythonQtShell_QActionGroup::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QActionGroup::event(arg__1); -} -bool PythonQtShell_QActionGroup::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QActionGroup::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QActionGroup::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QActionGroup::timerEvent(arg__1); -} -QActionGroup* PythonQtWrapper_QActionGroup::new_QActionGroup(QObject* parent) -{ -return new PythonQtShell_QActionGroup(parent); } - -QList PythonQtWrapper_QActionGroup::actions(QActionGroup* theWrappedObject) const -{ - return ( theWrappedObject->actions()); -} - -QAction* PythonQtWrapper_QActionGroup::addAction(QActionGroup* theWrappedObject, QAction* a) -{ - return ( theWrappedObject->addAction(a)); -} - -QAction* PythonQtWrapper_QActionGroup::addAction(QActionGroup* theWrappedObject, const QIcon& icon, const QString& text) -{ - return ( theWrappedObject->addAction(icon, text)); -} - -QAction* PythonQtWrapper_QActionGroup::addAction(QActionGroup* theWrappedObject, const QString& text) -{ - return ( theWrappedObject->addAction(text)); -} - -QAction* PythonQtWrapper_QActionGroup::checkedAction(QActionGroup* theWrappedObject) const -{ - return ( theWrappedObject->checkedAction()); -} - -bool PythonQtWrapper_QActionGroup::isEnabled(QActionGroup* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -bool PythonQtWrapper_QActionGroup::isExclusive(QActionGroup* theWrappedObject) const -{ - return ( theWrappedObject->isExclusive()); -} - -bool PythonQtWrapper_QActionGroup::isVisible(QActionGroup* theWrappedObject) const -{ - return ( theWrappedObject->isVisible()); -} - -void PythonQtWrapper_QActionGroup::removeAction(QActionGroup* theWrappedObject, QAction* a) -{ - ( theWrappedObject->removeAction(a)); -} - - - -void PythonQtShell_QApplication::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QApplication::childEvent(arg__1); -} -void PythonQtShell_QApplication::commitData(QSessionManager& sm) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QSessionManager&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&sm}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QApplication::commitData(sm); -} -void PythonQtShell_QApplication::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QApplication::customEvent(arg__1); -} -bool PythonQtShell_QApplication::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QApplication::event(arg__1); -} -bool PythonQtShell_QApplication::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QApplication::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QApplication::notify(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "notify"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("notify", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QApplication::notify(arg__1, arg__2); -} -void PythonQtShell_QApplication::saveState(QSessionManager& sm) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "saveState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QSessionManager&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&sm}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QApplication::saveState(sm); -} -void PythonQtShell_QApplication::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QApplication::timerEvent(arg__1); -} -QWidget* PythonQtWrapper_QApplication::static_QApplication_activeModalWidget() -{ - return (QApplication::activeModalWidget()); -} - -QWidget* PythonQtWrapper_QApplication::static_QApplication_activePopupWidget() -{ - return (QApplication::activePopupWidget()); -} - -QWidget* PythonQtWrapper_QApplication::static_QApplication_activeWindow() -{ - return (QApplication::activeWindow()); -} - -void PythonQtWrapper_QApplication::static_QApplication_alert(QWidget* widget, int duration) -{ - (QApplication::alert(widget, duration)); -} - -QList PythonQtWrapper_QApplication::static_QApplication_allWidgets() -{ - return (QApplication::allWidgets()); -} - -void PythonQtWrapper_QApplication::static_QApplication_beep() -{ - (QApplication::beep()); -} - -void PythonQtWrapper_QApplication::static_QApplication_changeOverrideCursor(const QCursor& arg__1) -{ - (QApplication::changeOverrideCursor(arg__1)); -} - -QClipboard* PythonQtWrapper_QApplication::static_QApplication_clipboard() -{ - return (QApplication::clipboard()); -} - -int PythonQtWrapper_QApplication::static_QApplication_colorSpec() -{ - return (QApplication::colorSpec()); -} - -int PythonQtWrapper_QApplication::static_QApplication_cursorFlashTime() -{ - return (QApplication::cursorFlashTime()); -} - -QDesktopWidget* PythonQtWrapper_QApplication::static_QApplication_desktop() -{ - return (QApplication::desktop()); -} - -bool PythonQtWrapper_QApplication::static_QApplication_desktopSettingsAware() -{ - return (QApplication::desktopSettingsAware()); -} - -int PythonQtWrapper_QApplication::static_QApplication_doubleClickInterval() -{ - return (QApplication::doubleClickInterval()); -} - -bool PythonQtWrapper_QApplication::event(QApplication* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QApplication*)theWrappedObject)->promoted_event(arg__1)); -} - -int PythonQtWrapper_QApplication::static_QApplication_exec() -{ - return (QApplication::exec()); -} - -QWidget* PythonQtWrapper_QApplication::static_QApplication_focusWidget() -{ - return (QApplication::focusWidget()); -} - -QFont PythonQtWrapper_QApplication::static_QApplication_font() -{ - return (QApplication::font()); -} - -QFont PythonQtWrapper_QApplication::static_QApplication_font(const QWidget* arg__1) -{ - return (QApplication::font(arg__1)); -} - -QSize PythonQtWrapper_QApplication::static_QApplication_globalStrut() -{ - return (QApplication::globalStrut()); -} - -QInputContext* PythonQtWrapper_QApplication::inputContext(QApplication* theWrappedObject) const -{ - return ( theWrappedObject->inputContext()); -} - -bool PythonQtWrapper_QApplication::static_QApplication_isEffectEnabled(Qt::UIEffect arg__1) -{ - return (QApplication::isEffectEnabled(arg__1)); -} - -bool PythonQtWrapper_QApplication::static_QApplication_isLeftToRight() -{ - return (QApplication::isLeftToRight()); -} - -bool PythonQtWrapper_QApplication::static_QApplication_isRightToLeft() -{ - return (QApplication::isRightToLeft()); -} - -bool PythonQtWrapper_QApplication::isSessionRestored(QApplication* theWrappedObject) const -{ - return ( theWrappedObject->isSessionRestored()); -} - -Qt::LayoutDirection PythonQtWrapper_QApplication::static_QApplication_keyboardInputDirection() -{ - return (QApplication::keyboardInputDirection()); -} - -int PythonQtWrapper_QApplication::static_QApplication_keyboardInputInterval() -{ - return (QApplication::keyboardInputInterval()); -} - -QLocale PythonQtWrapper_QApplication::static_QApplication_keyboardInputLocale() -{ - return (QApplication::keyboardInputLocale()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QApplication::static_QApplication_keyboardModifiers() -{ - return (QApplication::keyboardModifiers()); -} - -Qt::LayoutDirection PythonQtWrapper_QApplication::static_QApplication_layoutDirection() -{ - return (QApplication::layoutDirection()); -} - -Qt::MouseButtons PythonQtWrapper_QApplication::static_QApplication_mouseButtons() -{ - return (QApplication::mouseButtons()); -} - -bool PythonQtWrapper_QApplication::notify(QApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QApplication*)theWrappedObject)->promoted_notify(arg__1, arg__2)); -} - -QCursor* PythonQtWrapper_QApplication::static_QApplication_overrideCursor() -{ - return (QApplication::overrideCursor()); -} - -QPalette PythonQtWrapper_QApplication::static_QApplication_palette() -{ - return (QApplication::palette()); -} - -QPalette PythonQtWrapper_QApplication::static_QApplication_palette(const QWidget* arg__1) -{ - return (QApplication::palette(arg__1)); -} - -bool PythonQtWrapper_QApplication::static_QApplication_quitOnLastWindowClosed() -{ - return (QApplication::quitOnLastWindowClosed()); -} - -void PythonQtWrapper_QApplication::static_QApplication_restoreOverrideCursor() -{ - (QApplication::restoreOverrideCursor()); -} - -QString PythonQtWrapper_QApplication::sessionId(QApplication* theWrappedObject) const -{ - return ( theWrappedObject->sessionId()); -} - -QString PythonQtWrapper_QApplication::sessionKey(QApplication* theWrappedObject) const -{ - return ( theWrappedObject->sessionKey()); -} - -void PythonQtWrapper_QApplication::static_QApplication_setActiveWindow(QWidget* act) -{ - (QApplication::setActiveWindow(act)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setColorSpec(int arg__1) -{ - (QApplication::setColorSpec(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setCursorFlashTime(int arg__1) -{ - (QApplication::setCursorFlashTime(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setDesktopSettingsAware(bool arg__1) -{ - (QApplication::setDesktopSettingsAware(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setDoubleClickInterval(int arg__1) -{ - (QApplication::setDoubleClickInterval(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setEffectEnabled(Qt::UIEffect arg__1, bool enable) -{ - (QApplication::setEffectEnabled(arg__1, enable)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setFont(const QFont& arg__1, const char* className) -{ - (QApplication::setFont(arg__1, className)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setGlobalStrut(const QSize& arg__1) -{ - (QApplication::setGlobalStrut(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setGraphicsSystem(const QString& arg__1) -{ - (QApplication::setGraphicsSystem(arg__1)); -} - -void PythonQtWrapper_QApplication::setInputContext(QApplication* theWrappedObject, QInputContext* arg__1) -{ - ( theWrappedObject->setInputContext(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setKeyboardInputInterval(int arg__1) -{ - (QApplication::setKeyboardInputInterval(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setLayoutDirection(Qt::LayoutDirection direction) -{ - (QApplication::setLayoutDirection(direction)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setOverrideCursor(const QCursor& arg__1) -{ - (QApplication::setOverrideCursor(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setPalette(const QPalette& arg__1, const char* className) -{ - (QApplication::setPalette(arg__1, className)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setQuitOnLastWindowClosed(bool quit) -{ - (QApplication::setQuitOnLastWindowClosed(quit)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setStartDragDistance(int l) -{ - (QApplication::setStartDragDistance(l)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setStartDragTime(int ms) -{ - (QApplication::setStartDragTime(ms)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setStyle(QStyle* arg__1) -{ - (QApplication::setStyle(arg__1)); -} - -QStyle* PythonQtWrapper_QApplication::static_QApplication_setStyle(const QString& arg__1) -{ - return (QApplication::setStyle(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setWheelScrollLines(int arg__1) -{ - (QApplication::setWheelScrollLines(arg__1)); -} - -void PythonQtWrapper_QApplication::static_QApplication_setWindowIcon(const QIcon& icon) -{ - (QApplication::setWindowIcon(icon)); -} - -int PythonQtWrapper_QApplication::static_QApplication_startDragDistance() -{ - return (QApplication::startDragDistance()); -} - -int PythonQtWrapper_QApplication::static_QApplication_startDragTime() -{ - return (QApplication::startDragTime()); -} - -QStyle* PythonQtWrapper_QApplication::static_QApplication_style() -{ - return (QApplication::style()); -} - -QString PythonQtWrapper_QApplication::styleSheet(QApplication* theWrappedObject) const -{ - return ( theWrappedObject->styleSheet()); -} - -void PythonQtWrapper_QApplication::static_QApplication_syncX() -{ - (QApplication::syncX()); -} - -QWidget* PythonQtWrapper_QApplication::static_QApplication_topLevelAt(const QPoint& p) -{ - return (QApplication::topLevelAt(p)); -} - -QWidget* PythonQtWrapper_QApplication::static_QApplication_topLevelAt(int x, int y) -{ - return (QApplication::topLevelAt(x, y)); -} - -QList PythonQtWrapper_QApplication::static_QApplication_topLevelWidgets() -{ - return (QApplication::topLevelWidgets()); -} - -QApplication::Type PythonQtWrapper_QApplication::static_QApplication_type() -{ - return (QApplication::type()); -} - -int PythonQtWrapper_QApplication::static_QApplication_wheelScrollLines() -{ - return (QApplication::wheelScrollLines()); -} - -QWidget* PythonQtWrapper_QApplication::static_QApplication_widgetAt(const QPoint& p) -{ - return (QApplication::widgetAt(p)); -} - -QWidget* PythonQtWrapper_QApplication::static_QApplication_widgetAt(int x, int y) -{ - return (QApplication::widgetAt(x, y)); -} - -QIcon PythonQtWrapper_QApplication::static_QApplication_windowIcon() -{ - return (QApplication::windowIcon()); -} - - - -void PythonQtShell_QBoxLayout::addItem(QLayoutItem* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QLayoutItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBoxLayout::addItem(arg__1); -} -void PythonQtShell_QBoxLayout::childEvent(QChildEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBoxLayout::childEvent(e); -} -int PythonQtShell_QBoxLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::count(); -} -void PythonQtShell_QBoxLayout::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBoxLayout::customEvent(arg__1); -} -bool PythonQtShell_QBoxLayout::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::event(arg__1); -} -bool PythonQtShell_QBoxLayout::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::eventFilter(arg__1, arg__2); -} -Qt::Orientations PythonQtShell_QBoxLayout::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::expandingDirections(); -} -QRect PythonQtShell_QBoxLayout::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::geometry(); -} -int PythonQtShell_QBoxLayout::indexOf(QWidget* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::indexOf(arg__1); -} -void PythonQtShell_QBoxLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBoxLayout::invalidate(); -} -bool PythonQtShell_QBoxLayout::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::isEmpty(); -} -QLayoutItem* PythonQtShell_QBoxLayout::itemAt(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::itemAt(arg__1); -} -QLayout* PythonQtShell_QBoxLayout::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::layout(); -} -QSize PythonQtShell_QBoxLayout::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::maximumSize(); -} -QSize PythonQtShell_QBoxLayout::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::minimumSize(); -} -void PythonQtShell_QBoxLayout::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBoxLayout::setGeometry(arg__1); -} -QLayoutItem* PythonQtShell_QBoxLayout::takeAt(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBoxLayout::takeAt(arg__1); -} -void PythonQtShell_QBoxLayout::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QBoxLayout::timerEvent(arg__1); -} -QBoxLayout* PythonQtWrapper_QBoxLayout::new_QBoxLayout(QBoxLayout::Direction arg__1, QWidget* parent) -{ -return new PythonQtShell_QBoxLayout(arg__1, parent); } - -void PythonQtWrapper_QBoxLayout::addItem(QBoxLayout* theWrappedObject, QLayoutItem* arg__1) -{ - ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_addItem(arg__1)); -} - -void PythonQtWrapper_QBoxLayout::addLayout(QBoxLayout* theWrappedObject, QLayout* layout, int stretch) -{ - ( theWrappedObject->addLayout(layout, stretch)); -} - -void PythonQtWrapper_QBoxLayout::addSpacerItem(QBoxLayout* theWrappedObject, QSpacerItem* spacerItem) -{ - ( theWrappedObject->addSpacerItem(spacerItem)); -} - -void PythonQtWrapper_QBoxLayout::addSpacing(QBoxLayout* theWrappedObject, int size) -{ - ( theWrappedObject->addSpacing(size)); -} - -void PythonQtWrapper_QBoxLayout::addStretch(QBoxLayout* theWrappedObject, int stretch) -{ - ( theWrappedObject->addStretch(stretch)); -} - -void PythonQtWrapper_QBoxLayout::addStrut(QBoxLayout* theWrappedObject, int arg__1) -{ - ( theWrappedObject->addStrut(arg__1)); -} - -void PythonQtWrapper_QBoxLayout::addWidget(QBoxLayout* theWrappedObject, QWidget* arg__1, int stretch, Qt::Alignment alignment) -{ - ( theWrappedObject->addWidget(arg__1, stretch, alignment)); -} - -int PythonQtWrapper_QBoxLayout::count(QBoxLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_count()); -} - -QBoxLayout::Direction PythonQtWrapper_QBoxLayout::direction(QBoxLayout* theWrappedObject) const -{ - return ( theWrappedObject->direction()); -} - -Qt::Orientations PythonQtWrapper_QBoxLayout::expandingDirections(QBoxLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_expandingDirections()); -} - -bool PythonQtWrapper_QBoxLayout::hasHeightForWidth(QBoxLayout* theWrappedObject) const -{ - return ( theWrappedObject->hasHeightForWidth()); -} - -int PythonQtWrapper_QBoxLayout::heightForWidth(QBoxLayout* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->heightForWidth(arg__1)); -} - -void PythonQtWrapper_QBoxLayout::insertLayout(QBoxLayout* theWrappedObject, int index, QLayout* layout, int stretch) -{ - ( theWrappedObject->insertLayout(index, layout, stretch)); -} - -void PythonQtWrapper_QBoxLayout::insertSpacerItem(QBoxLayout* theWrappedObject, int index, QSpacerItem* spacerItem) -{ - ( theWrappedObject->insertSpacerItem(index, spacerItem)); -} - -void PythonQtWrapper_QBoxLayout::insertSpacing(QBoxLayout* theWrappedObject, int index, int size) -{ - ( theWrappedObject->insertSpacing(index, size)); -} - -void PythonQtWrapper_QBoxLayout::insertStretch(QBoxLayout* theWrappedObject, int index, int stretch) -{ - ( theWrappedObject->insertStretch(index, stretch)); -} - -void PythonQtWrapper_QBoxLayout::insertWidget(QBoxLayout* theWrappedObject, int index, QWidget* widget, int stretch, Qt::Alignment alignment) -{ - ( theWrappedObject->insertWidget(index, widget, stretch, alignment)); -} - -void PythonQtWrapper_QBoxLayout::invalidate(QBoxLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_invalidate()); -} - -QLayoutItem* PythonQtWrapper_QBoxLayout::itemAt(QBoxLayout* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_itemAt(arg__1)); -} - -QSize PythonQtWrapper_QBoxLayout::maximumSize(QBoxLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_maximumSize()); -} - -int PythonQtWrapper_QBoxLayout::minimumHeightForWidth(QBoxLayout* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->minimumHeightForWidth(arg__1)); -} - -QSize PythonQtWrapper_QBoxLayout::minimumSize(QBoxLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_minimumSize()); -} - -void PythonQtWrapper_QBoxLayout::setDirection(QBoxLayout* theWrappedObject, QBoxLayout::Direction arg__1) -{ - ( theWrappedObject->setDirection(arg__1)); -} - -void PythonQtWrapper_QBoxLayout::setGeometry(QBoxLayout* theWrappedObject, const QRect& arg__1) -{ - ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_setGeometry(arg__1)); -} - -void PythonQtWrapper_QBoxLayout::setSpacing(QBoxLayout* theWrappedObject, int spacing) -{ - ( theWrappedObject->setSpacing(spacing)); -} - -void PythonQtWrapper_QBoxLayout::setStretch(QBoxLayout* theWrappedObject, int index, int stretch) -{ - ( theWrappedObject->setStretch(index, stretch)); -} - -bool PythonQtWrapper_QBoxLayout::setStretchFactor(QBoxLayout* theWrappedObject, QLayout* l, int stretch) -{ - return ( theWrappedObject->setStretchFactor(l, stretch)); -} - -bool PythonQtWrapper_QBoxLayout::setStretchFactor(QBoxLayout* theWrappedObject, QWidget* w, int stretch) -{ - return ( theWrappedObject->setStretchFactor(w, stretch)); -} - -QSize PythonQtWrapper_QBoxLayout::sizeHint(QBoxLayout* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QBoxLayout::spacing(QBoxLayout* theWrappedObject) const -{ - return ( theWrappedObject->spacing()); -} - -int PythonQtWrapper_QBoxLayout::stretch(QBoxLayout* theWrappedObject, int index) const -{ - return ( theWrappedObject->stretch(index)); -} - -QLayoutItem* PythonQtWrapper_QBoxLayout::takeAt(QBoxLayout* theWrappedObject, int arg__1) -{ - return ( ((PythonQtPublicPromoter_QBoxLayout*)theWrappedObject)->promoted_takeAt(arg__1)); -} - - - -void PythonQtShell_QButtonGroup::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QButtonGroup::childEvent(arg__1); -} -void PythonQtShell_QButtonGroup::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QButtonGroup::customEvent(arg__1); -} -bool PythonQtShell_QButtonGroup::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QButtonGroup::event(arg__1); -} -bool PythonQtShell_QButtonGroup::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QButtonGroup::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QButtonGroup::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QButtonGroup::timerEvent(arg__1); -} -QButtonGroup* PythonQtWrapper_QButtonGroup::new_QButtonGroup(QObject* parent) -{ -return new PythonQtShell_QButtonGroup(parent); } - -void PythonQtWrapper_QButtonGroup::addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1) -{ - ( theWrappedObject->addButton(arg__1)); -} - -void PythonQtWrapper_QButtonGroup::addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1, int id) -{ - ( theWrappedObject->addButton(arg__1, id)); -} - -QAbstractButton* PythonQtWrapper_QButtonGroup::button(QButtonGroup* theWrappedObject, int id) const -{ - return ( theWrappedObject->button(id)); -} - -QList PythonQtWrapper_QButtonGroup::buttons(QButtonGroup* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -QAbstractButton* PythonQtWrapper_QButtonGroup::checkedButton(QButtonGroup* theWrappedObject) const -{ - return ( theWrappedObject->checkedButton()); -} - -int PythonQtWrapper_QButtonGroup::checkedId(QButtonGroup* theWrappedObject) const -{ - return ( theWrappedObject->checkedId()); -} - -bool PythonQtWrapper_QButtonGroup::exclusive(QButtonGroup* theWrappedObject) const -{ - return ( theWrappedObject->exclusive()); -} - -int PythonQtWrapper_QButtonGroup::id(QButtonGroup* theWrappedObject, QAbstractButton* button) const -{ - return ( theWrappedObject->id(button)); -} - -void PythonQtWrapper_QButtonGroup::removeButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1) -{ - ( theWrappedObject->removeButton(arg__1)); -} - -void PythonQtWrapper_QButtonGroup::setExclusive(QButtonGroup* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setExclusive(arg__1)); -} - -void PythonQtWrapper_QButtonGroup::setId(QButtonGroup* theWrappedObject, QAbstractButton* button, int id) -{ - ( theWrappedObject->setId(button, id)); -} - - - -void PythonQtShell_QCDEStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::childEvent(arg__1); -} -void PythonQtShell_QCDEStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::customEvent(arg__1); -} -void PythonQtShell_QCDEStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::drawComplexControl(cc, opt, p, w); -} -void PythonQtShell_QCDEStyle::drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::drawControl(element, opt, p, w); -} -void PythonQtShell_QCDEStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QCDEStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QCDEStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&pe, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::drawPrimitive(pe, opt, p, w); -} -bool PythonQtShell_QCDEStyle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::event(arg__1); -} -bool PythonQtShell_QCDEStyle::eventFilter(QObject* o, QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::eventFilter(o, e); -} -QPixmap PythonQtShell_QCDEStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::generatedIconPixmap(iconMode, pixmap, opt); -} -QStyle::SubControl PythonQtShell_QCDEStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::hitTestComplexControl(cc, opt, pt, w); -} -QRect PythonQtShell_QCDEStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::itemPixmapRect(r, flags, pixmap); -} -int PythonQtShell_QCDEStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::pixelMetric(metric, option, widget); -} -void PythonQtShell_QCDEStyle::polish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::polish(arg__1); -} -void PythonQtShell_QCDEStyle::polish(QPalette& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::polish(arg__1); -} -void PythonQtShell_QCDEStyle::polish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::polish(arg__1); -} -QSize PythonQtShell_QCDEStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&ct, (void*)&opt, (void*)&contentsSize, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::sizeFromContents(ct, opt, contentsSize, widget); -} -QPalette PythonQtShell_QCDEStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::standardPalette(); -} -QPixmap PythonQtShell_QCDEStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -int PythonQtShell_QCDEStyle::styleHint(QStyle::StyleHint hint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::styleHint(hint, opt, widget, returnData); -} -QRect PythonQtShell_QCDEStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::subControlRect(cc, opt, sc, widget); -} -QRect PythonQtShell_QCDEStyle::subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCDEStyle::subElementRect(r, opt, widget); -} -void PythonQtShell_QCDEStyle::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::timerEvent(event); -} -void PythonQtShell_QCDEStyle::unpolish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::unpolish(arg__1); -} -void PythonQtShell_QCDEStyle::unpolish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCDEStyle::unpolish(arg__1); -} -QCDEStyle* PythonQtWrapper_QCDEStyle::new_QCDEStyle(bool useHighlightCols) -{ -return new PythonQtShell_QCDEStyle(useHighlightCols); } - -void PythonQtWrapper_QCDEStyle::drawControl(QCDEStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QCDEStyle*)theWrappedObject)->promoted_drawControl(element, opt, p, w)); -} - -void PythonQtWrapper_QCDEStyle::drawPrimitive(QCDEStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QCDEStyle*)theWrappedObject)->promoted_drawPrimitive(pe, opt, p, w)); -} - -int PythonQtWrapper_QCDEStyle::pixelMetric(QCDEStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCDEStyle*)theWrappedObject)->promoted_pixelMetric(metric, option, widget)); -} - -QPalette PythonQtWrapper_QCDEStyle::standardPalette(QCDEStyle* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QCDEStyle*)theWrappedObject)->promoted_standardPalette()); -} - - - -void PythonQtShell_QCalendarWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::actionEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::changeEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::childEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::closeEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::customEvent(arg__1); -} -int PythonQtShell_QCalendarWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::devType(); -} -void PythonQtShell_QCalendarWidget::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::dragEnterEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::dragLeaveEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::dragMoveEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::dropEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::enterEvent(arg__1); -} -bool PythonQtShell_QCalendarWidget::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::event(event); -} -bool PythonQtShell_QCalendarWidget::eventFilter(QObject* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::eventFilter(watched, event); -} -void PythonQtShell_QCalendarWidget::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::focusInEvent(arg__1); -} -bool PythonQtShell_QCalendarWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::focusNextPrevChild(next); -} -void PythonQtShell_QCalendarWidget::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::focusOutEvent(arg__1); -} -int PythonQtShell_QCalendarWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::heightForWidth(arg__1); -} -void PythonQtShell_QCalendarWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::hideEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QCalendarWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::inputMethodQuery(arg__1); -} -void PythonQtShell_QCalendarWidget::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QCalendarWidget::keyPressEvent(event); -} -void PythonQtShell_QCalendarWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::languageChange(); -} -void PythonQtShell_QCalendarWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::leaveEvent(arg__1); -} -int PythonQtShell_QCalendarWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::metric(arg__1); -} -QSize PythonQtShell_QCalendarWidget::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::minimumSizeHint(); -} -void PythonQtShell_QCalendarWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::mouseMoveEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QCalendarWidget::mousePressEvent(event); -} -void PythonQtShell_QCalendarWidget::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::moveEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::paintCell(QPainter* painter, const QRect& rect, const QDate& date) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintCell"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "const QDate&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&date}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::paintCell(painter, rect, date); -} -QPaintEngine* PythonQtShell_QCalendarWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::paintEngine(); -} -void PythonQtShell_QCalendarWidget::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::paintEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QCalendarWidget::resizeEvent(event); -} -void PythonQtShell_QCalendarWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::showEvent(arg__1); -} -QSize PythonQtShell_QCalendarWidget::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCalendarWidget::sizeHint(); -} -void PythonQtShell_QCalendarWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::tabletEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::timerEvent(arg__1); -} -void PythonQtShell_QCalendarWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCalendarWidget::wheelEvent(arg__1); -} -QCalendarWidget* PythonQtWrapper_QCalendarWidget::new_QCalendarWidget(QWidget* parent) -{ -return new PythonQtShell_QCalendarWidget(parent); } - -int PythonQtWrapper_QCalendarWidget::dateEditAcceptDelay(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->dateEditAcceptDelay()); -} - -QMap PythonQtWrapper_QCalendarWidget::dateTextFormat(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->dateTextFormat()); -} - -QTextCharFormat PythonQtWrapper_QCalendarWidget::dateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date) const -{ - return ( theWrappedObject->dateTextFormat(date)); -} - -bool PythonQtWrapper_QCalendarWidget::event(QCalendarWidget* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_event(event)); -} - -bool PythonQtWrapper_QCalendarWidget::eventFilter(QCalendarWidget* theWrappedObject, QObject* watched, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_eventFilter(watched, event)); -} - -Qt::DayOfWeek PythonQtWrapper_QCalendarWidget::firstDayOfWeek(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->firstDayOfWeek()); -} - -QTextCharFormat PythonQtWrapper_QCalendarWidget::headerTextFormat(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->headerTextFormat()); -} - -QCalendarWidget::HorizontalHeaderFormat PythonQtWrapper_QCalendarWidget::horizontalHeaderFormat(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->horizontalHeaderFormat()); -} - -bool PythonQtWrapper_QCalendarWidget::isDateEditEnabled(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->isDateEditEnabled()); -} - -bool PythonQtWrapper_QCalendarWidget::isGridVisible(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->isGridVisible()); -} - -bool PythonQtWrapper_QCalendarWidget::isNavigationBarVisible(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->isNavigationBarVisible()); -} - -void PythonQtWrapper_QCalendarWidget::keyPressEvent(QCalendarWidget* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -QDate PythonQtWrapper_QCalendarWidget::maximumDate(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->maximumDate()); -} - -QDate PythonQtWrapper_QCalendarWidget::minimumDate(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->minimumDate()); -} - -QSize PythonQtWrapper_QCalendarWidget::minimumSizeHint(QCalendarWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_minimumSizeHint()); -} - -int PythonQtWrapper_QCalendarWidget::monthShown(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->monthShown()); -} - -void PythonQtWrapper_QCalendarWidget::mousePressEvent(QCalendarWidget* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QCalendarWidget::paintCell(QCalendarWidget* theWrappedObject, QPainter* painter, const QRect& rect, const QDate& date) const -{ - ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_paintCell(painter, rect, date)); -} - -void PythonQtWrapper_QCalendarWidget::resizeEvent(QCalendarWidget* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_resizeEvent(event)); -} - -QDate PythonQtWrapper_QCalendarWidget::selectedDate(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->selectedDate()); -} - -QCalendarWidget::SelectionMode PythonQtWrapper_QCalendarWidget::selectionMode(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->selectionMode()); -} - -void PythonQtWrapper_QCalendarWidget::setDateEditAcceptDelay(QCalendarWidget* theWrappedObject, int delay) -{ - ( theWrappedObject->setDateEditAcceptDelay(delay)); -} - -void PythonQtWrapper_QCalendarWidget::setDateEditEnabled(QCalendarWidget* theWrappedObject, bool enable) -{ - ( theWrappedObject->setDateEditEnabled(enable)); -} - -void PythonQtWrapper_QCalendarWidget::setDateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date, const QTextCharFormat& format) -{ - ( theWrappedObject->setDateTextFormat(date, format)); -} - -void PythonQtWrapper_QCalendarWidget::setFirstDayOfWeek(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek) -{ - ( theWrappedObject->setFirstDayOfWeek(dayOfWeek)); -} - -void PythonQtWrapper_QCalendarWidget::setHeaderTextFormat(QCalendarWidget* theWrappedObject, const QTextCharFormat& format) -{ - ( theWrappedObject->setHeaderTextFormat(format)); -} - -void PythonQtWrapper_QCalendarWidget::setHorizontalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::HorizontalHeaderFormat format) -{ - ( theWrappedObject->setHorizontalHeaderFormat(format)); -} - -void PythonQtWrapper_QCalendarWidget::setMaximumDate(QCalendarWidget* theWrappedObject, const QDate& date) -{ - ( theWrappedObject->setMaximumDate(date)); -} - -void PythonQtWrapper_QCalendarWidget::setMinimumDate(QCalendarWidget* theWrappedObject, const QDate& date) -{ - ( theWrappedObject->setMinimumDate(date)); -} - -void PythonQtWrapper_QCalendarWidget::setSelectionMode(QCalendarWidget* theWrappedObject, QCalendarWidget::SelectionMode mode) -{ - ( theWrappedObject->setSelectionMode(mode)); -} - -void PythonQtWrapper_QCalendarWidget::setVerticalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::VerticalHeaderFormat format) -{ - ( theWrappedObject->setVerticalHeaderFormat(format)); -} - -void PythonQtWrapper_QCalendarWidget::setWeekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek, const QTextCharFormat& format) -{ - ( theWrappedObject->setWeekdayTextFormat(dayOfWeek, format)); -} - -QSize PythonQtWrapper_QCalendarWidget::sizeHint(QCalendarWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QCalendarWidget*)theWrappedObject)->promoted_sizeHint()); -} - -QCalendarWidget::VerticalHeaderFormat PythonQtWrapper_QCalendarWidget::verticalHeaderFormat(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->verticalHeaderFormat()); -} - -QTextCharFormat PythonQtWrapper_QCalendarWidget::weekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek) const -{ - return ( theWrappedObject->weekdayTextFormat(dayOfWeek)); -} - -int PythonQtWrapper_QCalendarWidget::yearShown(QCalendarWidget* theWrappedObject) const -{ - return ( theWrappedObject->yearShown()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.h deleted file mode 100644 index 68cfdc6a7..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.h +++ /dev/null @@ -1,2159 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QAbstractButton : public QAbstractButton -{ -public: - PythonQtShell_QAbstractButton(QWidget* parent = 0):QAbstractButton(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void checkStateSet(); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual bool hitButton(const QPoint& pos) const; -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual void nextCheckState(); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractButton : public QAbstractButton -{ public: -inline void promoted_changeEvent(QEvent* e) { QAbstractButton::changeEvent(e); } -inline void promoted_checkStateSet() { QAbstractButton::checkStateSet(); } -inline bool promoted_event(QEvent* e) { return QAbstractButton::event(e); } -inline void promoted_focusInEvent(QFocusEvent* e) { QAbstractButton::focusInEvent(e); } -inline void promoted_focusOutEvent(QFocusEvent* e) { QAbstractButton::focusOutEvent(e); } -inline bool promoted_hitButton(const QPoint& pos) const { return QAbstractButton::hitButton(pos); } -inline void promoted_keyPressEvent(QKeyEvent* e) { QAbstractButton::keyPressEvent(e); } -inline void promoted_keyReleaseEvent(QKeyEvent* e) { QAbstractButton::keyReleaseEvent(e); } -inline void promoted_mouseMoveEvent(QMouseEvent* e) { QAbstractButton::mouseMoveEvent(e); } -inline void promoted_mousePressEvent(QMouseEvent* e) { QAbstractButton::mousePressEvent(e); } -inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QAbstractButton::mouseReleaseEvent(e); } -inline void promoted_nextCheckState() { QAbstractButton::nextCheckState(); } -inline void promoted_timerEvent(QTimerEvent* e) { QAbstractButton::timerEvent(e); } -}; - -class PythonQtWrapper_QAbstractButton : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractButton* new_QAbstractButton(QWidget* parent = 0); -void delete_QAbstractButton(QAbstractButton* obj) { delete obj; } - bool autoExclusive(QAbstractButton* theWrappedObject) const; - bool autoRepeat(QAbstractButton* theWrappedObject) const; - int autoRepeatDelay(QAbstractButton* theWrappedObject) const; - int autoRepeatInterval(QAbstractButton* theWrappedObject) const; - void changeEvent(QAbstractButton* theWrappedObject, QEvent* e); - void checkStateSet(QAbstractButton* theWrappedObject); - bool event(QAbstractButton* theWrappedObject, QEvent* e); - void focusInEvent(QAbstractButton* theWrappedObject, QFocusEvent* e); - void focusOutEvent(QAbstractButton* theWrappedObject, QFocusEvent* e); - QButtonGroup* group(QAbstractButton* theWrappedObject) const; - bool hitButton(QAbstractButton* theWrappedObject, const QPoint& pos) const; - QIcon icon(QAbstractButton* theWrappedObject) const; - QSize iconSize(QAbstractButton* theWrappedObject) const; - bool isCheckable(QAbstractButton* theWrappedObject) const; - bool isChecked(QAbstractButton* theWrappedObject) const; - bool isDown(QAbstractButton* theWrappedObject) const; - void keyPressEvent(QAbstractButton* theWrappedObject, QKeyEvent* e); - void keyReleaseEvent(QAbstractButton* theWrappedObject, QKeyEvent* e); - void mouseMoveEvent(QAbstractButton* theWrappedObject, QMouseEvent* e); - void mousePressEvent(QAbstractButton* theWrappedObject, QMouseEvent* e); - void mouseReleaseEvent(QAbstractButton* theWrappedObject, QMouseEvent* e); - void nextCheckState(QAbstractButton* theWrappedObject); - void setAutoExclusive(QAbstractButton* theWrappedObject, bool arg__1); - void setAutoRepeat(QAbstractButton* theWrappedObject, bool arg__1); - void setAutoRepeatDelay(QAbstractButton* theWrappedObject, int arg__1); - void setAutoRepeatInterval(QAbstractButton* theWrappedObject, int arg__1); - void setCheckable(QAbstractButton* theWrappedObject, bool arg__1); - void setDown(QAbstractButton* theWrappedObject, bool arg__1); - void setIcon(QAbstractButton* theWrappedObject, const QIcon& icon); - void setShortcut(QAbstractButton* theWrappedObject, const QKeySequence& key); - void setText(QAbstractButton* theWrappedObject, const QString& text); - QKeySequence shortcut(QAbstractButton* theWrappedObject) const; - QString text(QAbstractButton* theWrappedObject) const; - void timerEvent(QAbstractButton* theWrappedObject, QTimerEvent* e); -}; - - - - - -class PythonQtShell_QAbstractGraphicsShapeItem : public QAbstractGraphicsShapeItem -{ -public: - PythonQtShell_QAbstractGraphicsShapeItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QAbstractGraphicsShapeItem(parent, scene),_wrapper(NULL) {}; - -virtual void advance(int phase); -virtual QRectF boundingRect() const; -virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; -virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; -virtual bool contains(const QPointF& point) const; -virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); -virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dropEvent(QGraphicsSceneDragDropEvent* event); -virtual QVariant extension(const QVariant& variant) const; -virtual void focusInEvent(QFocusEvent* event); -virtual void focusOutEvent(QFocusEvent* event); -virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); -virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); -virtual QPainterPath opaqueArea() const; -virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); -virtual bool sceneEvent(QEvent* event); -virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); -virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); -virtual QPainterPath shape() const; -virtual bool supportsExtension(QGraphicsItem::Extension extension) const; -virtual int type() const; -virtual void wheelEvent(QGraphicsSceneWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractGraphicsShapeItem : public QAbstractGraphicsShapeItem -{ public: -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QAbstractGraphicsShapeItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QAbstractGraphicsShapeItem::opaqueArea(); } -}; - -class PythonQtWrapper_QAbstractGraphicsShapeItem : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractGraphicsShapeItem* new_QAbstractGraphicsShapeItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QAbstractGraphicsShapeItem(QAbstractGraphicsShapeItem* obj) { delete obj; } - QBrush brush(QAbstractGraphicsShapeItem* theWrappedObject) const; - bool isObscuredBy(QAbstractGraphicsShapeItem* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QAbstractGraphicsShapeItem* theWrappedObject) const; - QPen pen(QAbstractGraphicsShapeItem* theWrappedObject) const; - void setBrush(QAbstractGraphicsShapeItem* theWrappedObject, const QBrush& brush); - void setPen(QAbstractGraphicsShapeItem* theWrappedObject, const QPen& pen); -}; - - - - - -class PythonQtShell_QAbstractItemDelegate : public QAbstractItemDelegate -{ -public: - PythonQtShell_QAbstractItemDelegate(QObject* parent = 0):QAbstractItemDelegate(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void customEvent(QEvent* arg__1); -virtual bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void setEditorData(QWidget* editor, const QModelIndex& index) const; -virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; -virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractItemDelegate : public QAbstractItemDelegate -{ public: -inline QWidget* promoted_createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const { return QAbstractItemDelegate::createEditor(parent, option, index); } -inline bool promoted_editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) { return QAbstractItemDelegate::editorEvent(event, model, option, index); } -inline void promoted_setEditorData(QWidget* editor, const QModelIndex& index) const { QAbstractItemDelegate::setEditorData(editor, index); } -inline void promoted_setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const { QAbstractItemDelegate::setModelData(editor, model, index); } -inline void promoted_updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const { QAbstractItemDelegate::updateEditorGeometry(editor, option, index); } -}; - -class PythonQtWrapper_QAbstractItemDelegate : public QObject -{ Q_OBJECT -public: -Q_ENUMS(EndEditHint ) -enum EndEditHint{ - NoHint = QAbstractItemDelegate::NoHint, EditNextItem = QAbstractItemDelegate::EditNextItem, EditPreviousItem = QAbstractItemDelegate::EditPreviousItem, SubmitModelCache = QAbstractItemDelegate::SubmitModelCache, RevertModelCache = QAbstractItemDelegate::RevertModelCache}; -public slots: -QAbstractItemDelegate* new_QAbstractItemDelegate(QObject* parent = 0); -void delete_QAbstractItemDelegate(QAbstractItemDelegate* obj) { delete obj; } - QWidget* createEditor(QAbstractItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; - bool editorEvent(QAbstractItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); - void setEditorData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; - void setModelData(QAbstractItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; - void updateEditorGeometry(QAbstractItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; -}; - - - - - -class PythonQtShell_QAbstractItemView : public QAbstractItemView -{ -public: - PythonQtShell_QAbstractItemView(QWidget* parent = 0):QAbstractItemView(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void dropEvent(QDropEvent* event); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& point) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* event); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event = 0) const; -virtual void setModel(QAbstractItemModel* model); -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractItemView : public QAbstractItemView -{ public: -inline void promoted_closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) { QAbstractItemView::closeEditor(editor, hint); } -inline void promoted_commitData(QWidget* editor) { QAbstractItemView::commitData(editor); } -inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QAbstractItemView::currentChanged(current, previous); } -inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QAbstractItemView::dataChanged(topLeft, bottomRight); } -inline void promoted_doItemsLayout() { QAbstractItemView::doItemsLayout(); } -inline void promoted_dragEnterEvent(QDragEnterEvent* event) { QAbstractItemView::dragEnterEvent(event); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* event) { QAbstractItemView::dragLeaveEvent(event); } -inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QAbstractItemView::dragMoveEvent(event); } -inline void promoted_dropEvent(QDropEvent* event) { QAbstractItemView::dropEvent(event); } -inline bool promoted_edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) { return QAbstractItemView::edit(index, trigger, event); } -inline void promoted_editorDestroyed(QObject* editor) { QAbstractItemView::editorDestroyed(editor); } -inline bool promoted_event(QEvent* event) { return QAbstractItemView::event(event); } -inline void promoted_focusInEvent(QFocusEvent* event) { QAbstractItemView::focusInEvent(event); } -inline bool promoted_focusNextPrevChild(bool next) { return QAbstractItemView::focusNextPrevChild(next); } -inline void promoted_focusOutEvent(QFocusEvent* event) { QAbstractItemView::focusOutEvent(event); } -inline void promoted_horizontalScrollbarAction(int action) { QAbstractItemView::horizontalScrollbarAction(action); } -inline void promoted_horizontalScrollbarValueChanged(int value) { QAbstractItemView::horizontalScrollbarValueChanged(value); } -inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QAbstractItemView::inputMethodEvent(event); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QAbstractItemView::inputMethodQuery(query); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QAbstractItemView::keyPressEvent(event); } -inline void promoted_keyboardSearch(const QString& search) { QAbstractItemView::keyboardSearch(search); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QAbstractItemView::mouseDoubleClickEvent(event); } -inline void promoted_mouseMoveEvent(QMouseEvent* event) { QAbstractItemView::mouseMoveEvent(event); } -inline void promoted_mousePressEvent(QMouseEvent* event) { QAbstractItemView::mousePressEvent(event); } -inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QAbstractItemView::mouseReleaseEvent(event); } -inline void promoted_reset() { QAbstractItemView::reset(); } -inline void promoted_resizeEvent(QResizeEvent* event) { QAbstractItemView::resizeEvent(event); } -inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QAbstractItemView::rowsAboutToBeRemoved(parent, start, end); } -inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QAbstractItemView::rowsInserted(parent, start, end); } -inline void promoted_selectAll() { QAbstractItemView::selectAll(); } -inline QList promoted_selectedIndexes() const { return QAbstractItemView::selectedIndexes(); } -inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QAbstractItemView::selectionChanged(selected, deselected); } -inline QItemSelectionModel::SelectionFlags promoted_selectionCommand(const QModelIndex& index, const QEvent* event = 0) const { return QAbstractItemView::selectionCommand(index, event); } -inline void promoted_setModel(QAbstractItemModel* model) { QAbstractItemView::setModel(model); } -inline void promoted_setRootIndex(const QModelIndex& index) { QAbstractItemView::setRootIndex(index); } -inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QAbstractItemView::setSelectionModel(selectionModel); } -inline int promoted_sizeHintForColumn(int column) const { return QAbstractItemView::sizeHintForColumn(column); } -inline int promoted_sizeHintForRow(int row) const { return QAbstractItemView::sizeHintForRow(row); } -inline void promoted_startDrag(Qt::DropActions supportedActions) { QAbstractItemView::startDrag(supportedActions); } -inline void promoted_timerEvent(QTimerEvent* event) { QAbstractItemView::timerEvent(event); } -inline void promoted_updateEditorData() { QAbstractItemView::updateEditorData(); } -inline void promoted_updateEditorGeometries() { QAbstractItemView::updateEditorGeometries(); } -inline void promoted_updateGeometries() { QAbstractItemView::updateGeometries(); } -inline void promoted_verticalScrollbarAction(int action) { QAbstractItemView::verticalScrollbarAction(action); } -inline void promoted_verticalScrollbarValueChanged(int value) { QAbstractItemView::verticalScrollbarValueChanged(value); } -inline QStyleOptionViewItem promoted_viewOptions() const { return QAbstractItemView::viewOptions(); } -inline bool promoted_viewportEvent(QEvent* event) { return QAbstractItemView::viewportEvent(event); } -}; - -class PythonQtWrapper_QAbstractItemView : public QObject -{ Q_OBJECT -public: -Q_ENUMS(EditTrigger ) -Q_FLAGS(EditTriggers ) -enum EditTrigger{ - NoEditTriggers = QAbstractItemView::NoEditTriggers, CurrentChanged = QAbstractItemView::CurrentChanged, DoubleClicked = QAbstractItemView::DoubleClicked, SelectedClicked = QAbstractItemView::SelectedClicked, EditKeyPressed = QAbstractItemView::EditKeyPressed, AnyKeyPressed = QAbstractItemView::AnyKeyPressed, AllEditTriggers = QAbstractItemView::AllEditTriggers}; -Q_DECLARE_FLAGS(EditTriggers, EditTrigger) -public slots: -QAbstractItemView* new_QAbstractItemView(QWidget* parent = 0); -void delete_QAbstractItemView(QAbstractItemView* obj) { delete obj; } - bool alternatingRowColors(QAbstractItemView* theWrappedObject) const; - int autoScrollMargin(QAbstractItemView* theWrappedObject) const; - void closePersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index); - QModelIndex currentIndex(QAbstractItemView* theWrappedObject) const; - Qt::DropAction defaultDropAction(QAbstractItemView* theWrappedObject) const; - QAbstractItemView::DragDropMode dragDropMode(QAbstractItemView* theWrappedObject) const; - bool dragDropOverwriteMode(QAbstractItemView* theWrappedObject) const; - bool dragEnabled(QAbstractItemView* theWrappedObject) const; - void dragEnterEvent(QAbstractItemView* theWrappedObject, QDragEnterEvent* event); - void dragLeaveEvent(QAbstractItemView* theWrappedObject, QDragLeaveEvent* event); - void dragMoveEvent(QAbstractItemView* theWrappedObject, QDragMoveEvent* event); - void dropEvent(QAbstractItemView* theWrappedObject, QDropEvent* event); - bool edit(QAbstractItemView* theWrappedObject, const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); - QAbstractItemView::EditTriggers editTriggers(QAbstractItemView* theWrappedObject) const; - bool event(QAbstractItemView* theWrappedObject, QEvent* event); - void focusInEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event); - bool focusNextPrevChild(QAbstractItemView* theWrappedObject, bool next); - void focusOutEvent(QAbstractItemView* theWrappedObject, QFocusEvent* event); - bool hasAutoScroll(QAbstractItemView* theWrappedObject) const; - QAbstractItemView::ScrollMode horizontalScrollMode(QAbstractItemView* theWrappedObject) const; - QSize iconSize(QAbstractItemView* theWrappedObject) const; - QWidget* indexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; - void inputMethodEvent(QAbstractItemView* theWrappedObject, QInputMethodEvent* event); - QVariant inputMethodQuery(QAbstractItemView* theWrappedObject, Qt::InputMethodQuery query) const; - QAbstractItemDelegate* itemDelegate(QAbstractItemView* theWrappedObject) const; - QAbstractItemDelegate* itemDelegate(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; - QAbstractItemDelegate* itemDelegateForColumn(QAbstractItemView* theWrappedObject, int column) const; - QAbstractItemDelegate* itemDelegateForRow(QAbstractItemView* theWrappedObject, int row) const; - void keyPressEvent(QAbstractItemView* theWrappedObject, QKeyEvent* event); - void keyboardSearch(QAbstractItemView* theWrappedObject, const QString& search); - QAbstractItemModel* model(QAbstractItemView* theWrappedObject) const; - void mouseDoubleClickEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); - void mouseMoveEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); - void mousePressEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); - void mouseReleaseEvent(QAbstractItemView* theWrappedObject, QMouseEvent* event); - void openPersistentEditor(QAbstractItemView* theWrappedObject, const QModelIndex& index); - void resizeEvent(QAbstractItemView* theWrappedObject, QResizeEvent* event); - QModelIndex rootIndex(QAbstractItemView* theWrappedObject) const; - QList selectedIndexes(QAbstractItemView* theWrappedObject) const; - QAbstractItemView::SelectionBehavior selectionBehavior(QAbstractItemView* theWrappedObject) const; - QItemSelectionModel::SelectionFlags selectionCommand(QAbstractItemView* theWrappedObject, const QModelIndex& index, const QEvent* event = 0) const; - QAbstractItemView::SelectionMode selectionMode(QAbstractItemView* theWrappedObject) const; - QItemSelectionModel* selectionModel(QAbstractItemView* theWrappedObject) const; - void setAlternatingRowColors(QAbstractItemView* theWrappedObject, bool enable); - void setAutoScroll(QAbstractItemView* theWrappedObject, bool enable); - void setAutoScrollMargin(QAbstractItemView* theWrappedObject, int margin); - void setDefaultDropAction(QAbstractItemView* theWrappedObject, Qt::DropAction dropAction); - void setDragDropMode(QAbstractItemView* theWrappedObject, QAbstractItemView::DragDropMode behavior); - void setDragDropOverwriteMode(QAbstractItemView* theWrappedObject, bool overwrite); - void setDragEnabled(QAbstractItemView* theWrappedObject, bool enable); - void setDropIndicatorShown(QAbstractItemView* theWrappedObject, bool enable); - void setEditTriggers(QAbstractItemView* theWrappedObject, QAbstractItemView::EditTriggers triggers); - void setHorizontalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode); - void setIconSize(QAbstractItemView* theWrappedObject, const QSize& size); - void setIndexWidget(QAbstractItemView* theWrappedObject, const QModelIndex& index, QWidget* widget); - void setItemDelegate(QAbstractItemView* theWrappedObject, QAbstractItemDelegate* delegate); - void setItemDelegateForColumn(QAbstractItemView* theWrappedObject, int column, QAbstractItemDelegate* delegate); - void setItemDelegateForRow(QAbstractItemView* theWrappedObject, int row, QAbstractItemDelegate* delegate); - void setModel(QAbstractItemView* theWrappedObject, QAbstractItemModel* model); - void setSelectionBehavior(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionBehavior behavior); - void setSelectionMode(QAbstractItemView* theWrappedObject, QAbstractItemView::SelectionMode mode); - void setSelectionModel(QAbstractItemView* theWrappedObject, QItemSelectionModel* selectionModel); - void setTabKeyNavigation(QAbstractItemView* theWrappedObject, bool enable); - void setTextElideMode(QAbstractItemView* theWrappedObject, Qt::TextElideMode mode); - void setVerticalScrollMode(QAbstractItemView* theWrappedObject, QAbstractItemView::ScrollMode mode); - bool showDropIndicator(QAbstractItemView* theWrappedObject) const; - int sizeHintForColumn(QAbstractItemView* theWrappedObject, int column) const; - QSize sizeHintForIndex(QAbstractItemView* theWrappedObject, const QModelIndex& index) const; - int sizeHintForRow(QAbstractItemView* theWrappedObject, int row) const; - void startDrag(QAbstractItemView* theWrappedObject, Qt::DropActions supportedActions); - bool tabKeyNavigation(QAbstractItemView* theWrappedObject) const; - Qt::TextElideMode textElideMode(QAbstractItemView* theWrappedObject) const; - void timerEvent(QAbstractItemView* theWrappedObject, QTimerEvent* event); - QAbstractItemView::ScrollMode verticalScrollMode(QAbstractItemView* theWrappedObject) const; - QStyleOptionViewItem viewOptions(QAbstractItemView* theWrappedObject) const; - bool viewportEvent(QAbstractItemView* theWrappedObject, QEvent* event); -}; - - - - - -class PythonQtShell_QAbstractPageSetupDialog : public QAbstractPageSetupDialog -{ -public: - PythonQtShell_QAbstractPageSetupDialog(QPrinter* printer, QWidget* parent = 0):QAbstractPageSetupDialog(printer, parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual int exec(); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractPageSetupDialog : public QAbstractPageSetupDialog -{ public: -inline void promoted_done(int result) { QAbstractPageSetupDialog::done(result); } -}; - -class PythonQtWrapper_QAbstractPageSetupDialog : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractPageSetupDialog* new_QAbstractPageSetupDialog(QPrinter* printer, QWidget* parent = 0); -void delete_QAbstractPageSetupDialog(QAbstractPageSetupDialog* obj) { delete obj; } - void done(QAbstractPageSetupDialog* theWrappedObject, int result); - QPrinter* printer(QAbstractPageSetupDialog* theWrappedObject); -}; - - - - - -class PythonQtShell_QAbstractPrintDialog : public QAbstractPrintDialog -{ -public: - PythonQtShell_QAbstractPrintDialog(QPrinter* printer, QWidget* parent = 0):QAbstractPrintDialog(printer, parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int arg__1); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual int exec(); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAbstractPrintDialog : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PrintRange PrintDialogOption ) -Q_FLAGS(PrintDialogOptions ) -enum PrintRange{ - AllPages = QAbstractPrintDialog::AllPages, Selection = QAbstractPrintDialog::Selection, PageRange = QAbstractPrintDialog::PageRange}; -enum PrintDialogOption{ - None = QAbstractPrintDialog::None, PrintToFile = QAbstractPrintDialog::PrintToFile, PrintSelection = QAbstractPrintDialog::PrintSelection, PrintPageRange = QAbstractPrintDialog::PrintPageRange, PrintShowPageSize = QAbstractPrintDialog::PrintShowPageSize, PrintCollateCopies = QAbstractPrintDialog::PrintCollateCopies, DontUseSheet = QAbstractPrintDialog::DontUseSheet}; -Q_DECLARE_FLAGS(PrintDialogOptions, PrintDialogOption) -public slots: -QAbstractPrintDialog* new_QAbstractPrintDialog(QPrinter* printer, QWidget* parent = 0); -void delete_QAbstractPrintDialog(QAbstractPrintDialog* obj) { delete obj; } - void addEnabledOption(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option); - QAbstractPrintDialog::PrintDialogOptions enabledOptions(QAbstractPrintDialog* theWrappedObject) const; - int fromPage(QAbstractPrintDialog* theWrappedObject) const; - bool isOptionEnabled(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const; - int maxPage(QAbstractPrintDialog* theWrappedObject) const; - int minPage(QAbstractPrintDialog* theWrappedObject) const; - QAbstractPrintDialog::PrintRange printRange(QAbstractPrintDialog* theWrappedObject) const; - QPrinter* printer(QAbstractPrintDialog* theWrappedObject) const; - void setEnabledOptions(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options); - void setFromTo(QAbstractPrintDialog* theWrappedObject, int fromPage, int toPage); - void setMinMax(QAbstractPrintDialog* theWrappedObject, int min, int max); - void setOptionTabs(QAbstractPrintDialog* theWrappedObject, const QList& tabs); - void setPrintRange(QAbstractPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintRange range); - int toPage(QAbstractPrintDialog* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QAbstractScrollArea : public QAbstractScrollArea -{ -public: - PythonQtShell_QAbstractScrollArea(QWidget* parent = 0):QAbstractScrollArea(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void scrollContentsBy(int dx, int dy); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool viewportEvent(QEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractScrollArea : public QAbstractScrollArea -{ public: -inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QAbstractScrollArea::contextMenuEvent(arg__1); } -inline void promoted_dragEnterEvent(QDragEnterEvent* arg__1) { QAbstractScrollArea::dragEnterEvent(arg__1); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* arg__1) { QAbstractScrollArea::dragLeaveEvent(arg__1); } -inline void promoted_dragMoveEvent(QDragMoveEvent* arg__1) { QAbstractScrollArea::dragMoveEvent(arg__1); } -inline void promoted_dropEvent(QDropEvent* arg__1) { QAbstractScrollArea::dropEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QAbstractScrollArea::event(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QAbstractScrollArea::keyPressEvent(arg__1); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mouseDoubleClickEvent(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QAbstractScrollArea::mouseReleaseEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QAbstractScrollArea::paintEvent(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QAbstractScrollArea::resizeEvent(arg__1); } -inline void promoted_scrollContentsBy(int dx, int dy) { QAbstractScrollArea::scrollContentsBy(dx, dy); } -inline bool promoted_viewportEvent(QEvent* arg__1) { return QAbstractScrollArea::viewportEvent(arg__1); } -inline void promoted_wheelEvent(QWheelEvent* arg__1) { QAbstractScrollArea::wheelEvent(arg__1); } -}; - -class PythonQtWrapper_QAbstractScrollArea : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractScrollArea* new_QAbstractScrollArea(QWidget* parent = 0); -void delete_QAbstractScrollArea(QAbstractScrollArea* obj) { delete obj; } - void addScrollBarWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget, Qt::Alignment alignment); - void contextMenuEvent(QAbstractScrollArea* theWrappedObject, QContextMenuEvent* arg__1); - QWidget* cornerWidget(QAbstractScrollArea* theWrappedObject) const; - void dragEnterEvent(QAbstractScrollArea* theWrappedObject, QDragEnterEvent* arg__1); - void dragLeaveEvent(QAbstractScrollArea* theWrappedObject, QDragLeaveEvent* arg__1); - void dragMoveEvent(QAbstractScrollArea* theWrappedObject, QDragMoveEvent* arg__1); - void dropEvent(QAbstractScrollArea* theWrappedObject, QDropEvent* arg__1); - bool event(QAbstractScrollArea* theWrappedObject, QEvent* arg__1); - QScrollBar* horizontalScrollBar(QAbstractScrollArea* theWrappedObject) const; - Qt::ScrollBarPolicy horizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const; - void keyPressEvent(QAbstractScrollArea* theWrappedObject, QKeyEvent* arg__1); - QSize maximumViewportSize(QAbstractScrollArea* theWrappedObject) const; - QSize minimumSizeHint(QAbstractScrollArea* theWrappedObject) const; - void mouseDoubleClickEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); - void mouseMoveEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QAbstractScrollArea* theWrappedObject, QMouseEvent* arg__1); - void paintEvent(QAbstractScrollArea* theWrappedObject, QPaintEvent* arg__1); - void resizeEvent(QAbstractScrollArea* theWrappedObject, QResizeEvent* arg__1); - QList scrollBarWidgets(QAbstractScrollArea* theWrappedObject, Qt::Alignment alignment); - void scrollContentsBy(QAbstractScrollArea* theWrappedObject, int dx, int dy); - void setCornerWidget(QAbstractScrollArea* theWrappedObject, QWidget* widget); - void setHorizontalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar); - void setHorizontalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1); - void setVerticalScrollBar(QAbstractScrollArea* theWrappedObject, QScrollBar* scrollbar); - void setVerticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject, Qt::ScrollBarPolicy arg__1); - void setViewport(QAbstractScrollArea* theWrappedObject, QWidget* widget); - QSize sizeHint(QAbstractScrollArea* theWrappedObject) const; - QScrollBar* verticalScrollBar(QAbstractScrollArea* theWrappedObject) const; - Qt::ScrollBarPolicy verticalScrollBarPolicy(QAbstractScrollArea* theWrappedObject) const; - QWidget* viewport(QAbstractScrollArea* theWrappedObject) const; - bool viewportEvent(QAbstractScrollArea* theWrappedObject, QEvent* arg__1); - void wheelEvent(QAbstractScrollArea* theWrappedObject, QWheelEvent* arg__1); -}; - - - - - -class PythonQtShell_QAbstractSlider : public QAbstractSlider -{ -public: - PythonQtShell_QAbstractSlider(QWidget* parent = 0):QAbstractSlider(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* ev); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void sliderChange(QAbstractSlider::SliderChange change); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractSlider : public QAbstractSlider -{ public: -inline void promoted_changeEvent(QEvent* e) { QAbstractSlider::changeEvent(e); } -inline bool promoted_event(QEvent* e) { return QAbstractSlider::event(e); } -inline void promoted_keyPressEvent(QKeyEvent* ev) { QAbstractSlider::keyPressEvent(ev); } -inline void promoted_timerEvent(QTimerEvent* arg__1) { QAbstractSlider::timerEvent(arg__1); } -inline void promoted_wheelEvent(QWheelEvent* e) { QAbstractSlider::wheelEvent(e); } -}; - -class PythonQtWrapper_QAbstractSlider : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SliderAction ) -enum SliderAction{ - SliderNoAction = QAbstractSlider::SliderNoAction, SliderSingleStepAdd = QAbstractSlider::SliderSingleStepAdd, SliderSingleStepSub = QAbstractSlider::SliderSingleStepSub, SliderPageStepAdd = QAbstractSlider::SliderPageStepAdd, SliderPageStepSub = QAbstractSlider::SliderPageStepSub, SliderToMinimum = QAbstractSlider::SliderToMinimum, SliderToMaximum = QAbstractSlider::SliderToMaximum, SliderMove = QAbstractSlider::SliderMove}; -public slots: -QAbstractSlider* new_QAbstractSlider(QWidget* parent = 0); -void delete_QAbstractSlider(QAbstractSlider* obj) { delete obj; } - void changeEvent(QAbstractSlider* theWrappedObject, QEvent* e); - bool event(QAbstractSlider* theWrappedObject, QEvent* e); - bool hasTracking(QAbstractSlider* theWrappedObject) const; - bool invertedAppearance(QAbstractSlider* theWrappedObject) const; - bool invertedControls(QAbstractSlider* theWrappedObject) const; - bool isSliderDown(QAbstractSlider* theWrappedObject) const; - void keyPressEvent(QAbstractSlider* theWrappedObject, QKeyEvent* ev); - int maximum(QAbstractSlider* theWrappedObject) const; - int minimum(QAbstractSlider* theWrappedObject) const; - Qt::Orientation orientation(QAbstractSlider* theWrappedObject) const; - int pageStep(QAbstractSlider* theWrappedObject) const; - void setInvertedAppearance(QAbstractSlider* theWrappedObject, bool arg__1); - void setInvertedControls(QAbstractSlider* theWrappedObject, bool arg__1); - void setMaximum(QAbstractSlider* theWrappedObject, int arg__1); - void setMinimum(QAbstractSlider* theWrappedObject, int arg__1); - void setPageStep(QAbstractSlider* theWrappedObject, int arg__1); - void setRange(QAbstractSlider* theWrappedObject, int min, int max); - void setSingleStep(QAbstractSlider* theWrappedObject, int arg__1); - void setSliderDown(QAbstractSlider* theWrappedObject, bool arg__1); - void setSliderPosition(QAbstractSlider* theWrappedObject, int arg__1); - void setTracking(QAbstractSlider* theWrappedObject, bool enable); - int singleStep(QAbstractSlider* theWrappedObject) const; - int sliderPosition(QAbstractSlider* theWrappedObject) const; - void timerEvent(QAbstractSlider* theWrappedObject, QTimerEvent* arg__1); - void triggerAction(QAbstractSlider* theWrappedObject, QAbstractSlider::SliderAction action); - int value(QAbstractSlider* theWrappedObject) const; - void wheelEvent(QAbstractSlider* theWrappedObject, QWheelEvent* e); -}; - - - - - -class PythonQtShell_QAbstractSpinBox : public QAbstractSpinBox -{ -public: - PythonQtShell_QAbstractSpinBox(QWidget* parent = 0):QAbstractSpinBox(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& input) const; -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void stepBy(int steps); -virtual QAbstractSpinBox::StepEnabled stepEnabled() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual QValidator::State validate(QString& input, int& pos) const; -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractSpinBox : public QAbstractSpinBox -{ public: -inline void promoted_changeEvent(QEvent* event) { QAbstractSpinBox::changeEvent(event); } -inline void promoted_clear() { QAbstractSpinBox::clear(); } -inline void promoted_closeEvent(QCloseEvent* event) { QAbstractSpinBox::closeEvent(event); } -inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QAbstractSpinBox::contextMenuEvent(event); } -inline bool promoted_event(QEvent* event) { return QAbstractSpinBox::event(event); } -inline void promoted_fixup(QString& input) const { QAbstractSpinBox::fixup(input); } -inline void promoted_focusInEvent(QFocusEvent* event) { QAbstractSpinBox::focusInEvent(event); } -inline void promoted_focusOutEvent(QFocusEvent* event) { QAbstractSpinBox::focusOutEvent(event); } -inline void promoted_hideEvent(QHideEvent* event) { QAbstractSpinBox::hideEvent(event); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QAbstractSpinBox::inputMethodQuery(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QAbstractSpinBox::keyPressEvent(event); } -inline void promoted_keyReleaseEvent(QKeyEvent* event) { QAbstractSpinBox::keyReleaseEvent(event); } -inline void promoted_mouseMoveEvent(QMouseEvent* event) { QAbstractSpinBox::mouseMoveEvent(event); } -inline void promoted_mousePressEvent(QMouseEvent* event) { QAbstractSpinBox::mousePressEvent(event); } -inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QAbstractSpinBox::mouseReleaseEvent(event); } -inline void promoted_paintEvent(QPaintEvent* event) { QAbstractSpinBox::paintEvent(event); } -inline void promoted_resizeEvent(QResizeEvent* event) { QAbstractSpinBox::resizeEvent(event); } -inline void promoted_showEvent(QShowEvent* event) { QAbstractSpinBox::showEvent(event); } -inline void promoted_stepBy(int steps) { QAbstractSpinBox::stepBy(steps); } -inline QAbstractSpinBox::StepEnabled promoted_stepEnabled() const { return QAbstractSpinBox::stepEnabled(); } -inline void promoted_timerEvent(QTimerEvent* event) { QAbstractSpinBox::timerEvent(event); } -inline QValidator::State promoted_validate(QString& input, int& pos) const { return QAbstractSpinBox::validate(input, pos); } -inline void promoted_wheelEvent(QWheelEvent* event) { QAbstractSpinBox::wheelEvent(event); } -}; - -class PythonQtWrapper_QAbstractSpinBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StepEnabledFlag ) -Q_FLAGS(StepEnabled ) -enum StepEnabledFlag{ - StepNone = QAbstractSpinBox::StepNone, StepUpEnabled = QAbstractSpinBox::StepUpEnabled, StepDownEnabled = QAbstractSpinBox::StepDownEnabled}; -Q_DECLARE_FLAGS(StepEnabled, StepEnabledFlag) -public slots: -QAbstractSpinBox* new_QAbstractSpinBox(QWidget* parent = 0); -void delete_QAbstractSpinBox(QAbstractSpinBox* obj) { delete obj; } - Qt::Alignment alignment(QAbstractSpinBox* theWrappedObject) const; - QAbstractSpinBox::ButtonSymbols buttonSymbols(QAbstractSpinBox* theWrappedObject) const; - void changeEvent(QAbstractSpinBox* theWrappedObject, QEvent* event); - void closeEvent(QAbstractSpinBox* theWrappedObject, QCloseEvent* event); - void contextMenuEvent(QAbstractSpinBox* theWrappedObject, QContextMenuEvent* event); - QAbstractSpinBox::CorrectionMode correctionMode(QAbstractSpinBox* theWrappedObject) const; - bool event(QAbstractSpinBox* theWrappedObject, QEvent* event); - void fixup(QAbstractSpinBox* theWrappedObject, QString& input) const; - void focusInEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event); - void focusOutEvent(QAbstractSpinBox* theWrappedObject, QFocusEvent* event); - bool hasAcceptableInput(QAbstractSpinBox* theWrappedObject) const; - bool hasFrame(QAbstractSpinBox* theWrappedObject) const; - void hideEvent(QAbstractSpinBox* theWrappedObject, QHideEvent* event); - QVariant inputMethodQuery(QAbstractSpinBox* theWrappedObject, Qt::InputMethodQuery arg__1) const; - void interpretText(QAbstractSpinBox* theWrappedObject); - bool isAccelerated(QAbstractSpinBox* theWrappedObject) const; - bool isReadOnly(QAbstractSpinBox* theWrappedObject) const; - void keyPressEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event); - void keyReleaseEvent(QAbstractSpinBox* theWrappedObject, QKeyEvent* event); - bool keyboardTracking(QAbstractSpinBox* theWrappedObject) const; - QSize minimumSizeHint(QAbstractSpinBox* theWrappedObject) const; - void mouseMoveEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event); - void mousePressEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event); - void mouseReleaseEvent(QAbstractSpinBox* theWrappedObject, QMouseEvent* event); - void paintEvent(QAbstractSpinBox* theWrappedObject, QPaintEvent* event); - void resizeEvent(QAbstractSpinBox* theWrappedObject, QResizeEvent* event); - void setAccelerated(QAbstractSpinBox* theWrappedObject, bool on); - void setAlignment(QAbstractSpinBox* theWrappedObject, Qt::Alignment flag); - void setButtonSymbols(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::ButtonSymbols bs); - void setCorrectionMode(QAbstractSpinBox* theWrappedObject, QAbstractSpinBox::CorrectionMode cm); - void setFrame(QAbstractSpinBox* theWrappedObject, bool arg__1); - void setKeyboardTracking(QAbstractSpinBox* theWrappedObject, bool kt); - void setReadOnly(QAbstractSpinBox* theWrappedObject, bool r); - void setSpecialValueText(QAbstractSpinBox* theWrappedObject, const QString& txt); - void setWrapping(QAbstractSpinBox* theWrappedObject, bool w); - void showEvent(QAbstractSpinBox* theWrappedObject, QShowEvent* event); - QSize sizeHint(QAbstractSpinBox* theWrappedObject) const; - QString specialValueText(QAbstractSpinBox* theWrappedObject) const; - void stepBy(QAbstractSpinBox* theWrappedObject, int steps); - QAbstractSpinBox::StepEnabled stepEnabled(QAbstractSpinBox* theWrappedObject) const; - QString text(QAbstractSpinBox* theWrappedObject) const; - void timerEvent(QAbstractSpinBox* theWrappedObject, QTimerEvent* event); - QValidator::State validate(QAbstractSpinBox* theWrappedObject, QString& input, int& pos) const; - void wheelEvent(QAbstractSpinBox* theWrappedObject, QWheelEvent* event); - bool wrapping(QAbstractSpinBox* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QAbstractTableModel : public QAbstractTableModel -{ -public: - PythonQtShell_QAbstractTableModel(QObject* parent = 0):QAbstractTableModel(parent),_wrapper(NULL) {}; - -virtual QModelIndex buddy(const QModelIndex& index) const; -virtual bool canFetchMore(const QModelIndex& parent) const; -virtual void childEvent(QChildEvent* arg__1); -virtual int columnCount(const QModelIndex& parent) const; -virtual void customEvent(QEvent* arg__1); -virtual QVariant data(const QModelIndex& index, int role) const; -virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fetchMore(const QModelIndex& parent); -virtual Qt::ItemFlags flags(const QModelIndex& index) const; -virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; -virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; -virtual bool insertColumns(int column, int count, const QModelIndex& parent); -virtual bool insertRows(int row, int count, const QModelIndex& parent); -virtual QMap itemData(const QModelIndex& index) const; -virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; -virtual QMimeData* mimeData(const QList& indexes) const; -virtual QStringList mimeTypes() const; -virtual bool removeColumns(int column, int count, const QModelIndex& parent); -virtual bool removeRows(int row, int count, const QModelIndex& parent); -virtual void revert(); -virtual int rowCount(const QModelIndex& parent) const; -virtual bool setData(const QModelIndex& index, const QVariant& value, int role); -virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role); -virtual bool setItemData(const QModelIndex& index, const QMap& roles); -virtual void sort(int column, Qt::SortOrder order); -virtual QSize span(const QModelIndex& index) const; -virtual bool submit(); -virtual Qt::DropActions supportedDropActions() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractTableModel : public QAbstractTableModel -{ public: -inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QAbstractTableModel::dropMimeData(data, action, row, column, parent); } -inline QModelIndex promoted_index(int row, int column, const QModelIndex& parent = QModelIndex()) const { return QAbstractTableModel::index(row, column, parent); } -}; - -class PythonQtWrapper_QAbstractTableModel : public QObject -{ Q_OBJECT -public: -public slots: -QAbstractTableModel* new_QAbstractTableModel(QObject* parent = 0); -void delete_QAbstractTableModel(QAbstractTableModel* obj) { delete obj; } - bool dropMimeData(QAbstractTableModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); - QModelIndex index(QAbstractTableModel* theWrappedObject, int row, int column, const QModelIndex& parent = QModelIndex()) const; -}; - - - - - -class PythonQtShell_QAccessible : public QAccessible -{ -public: - PythonQtShell_QAccessible():QAccessible(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAccessible : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Method Role Action Event RelationFlag StateFlag Text ) -Q_FLAGS(Relation State ) -enum Method{ - ListSupportedMethods = QAccessible::ListSupportedMethods, SetCursorPosition = QAccessible::SetCursorPosition, GetCursorPosition = QAccessible::GetCursorPosition, ForegroundColor = QAccessible::ForegroundColor, BackgroundColor = QAccessible::BackgroundColor}; -enum Role{ - NoRole = QAccessible::NoRole, TitleBar = QAccessible::TitleBar, MenuBar = QAccessible::MenuBar, ScrollBar = QAccessible::ScrollBar, Grip = QAccessible::Grip, Sound = QAccessible::Sound, Cursor = QAccessible::Cursor, Caret = QAccessible::Caret, AlertMessage = QAccessible::AlertMessage, Window = QAccessible::Window, Client = QAccessible::Client, PopupMenu = QAccessible::PopupMenu, MenuItem = QAccessible::MenuItem, ToolTip = QAccessible::ToolTip, Application = QAccessible::Application, Document = QAccessible::Document, Pane = QAccessible::Pane, Chart = QAccessible::Chart, Dialog = QAccessible::Dialog, Border = QAccessible::Border, Grouping = QAccessible::Grouping, Separator = QAccessible::Separator, ToolBar = QAccessible::ToolBar, StatusBar = QAccessible::StatusBar, Table = QAccessible::Table, ColumnHeader = QAccessible::ColumnHeader, RowHeader = QAccessible::RowHeader, Column = QAccessible::Column, Row = QAccessible::Row, Cell = QAccessible::Cell, Link = QAccessible::Link, HelpBalloon = QAccessible::HelpBalloon, Assistant = QAccessible::Assistant, List = QAccessible::List, ListItem = QAccessible::ListItem, Tree = QAccessible::Tree, TreeItem = QAccessible::TreeItem, PageTab = QAccessible::PageTab, PropertyPage = QAccessible::PropertyPage, Indicator = QAccessible::Indicator, Graphic = QAccessible::Graphic, StaticText = QAccessible::StaticText, EditableText = QAccessible::EditableText, PushButton = QAccessible::PushButton, CheckBox = QAccessible::CheckBox, RadioButton = QAccessible::RadioButton, ComboBox = QAccessible::ComboBox, ProgressBar = QAccessible::ProgressBar, Dial = QAccessible::Dial, HotkeyField = QAccessible::HotkeyField, Slider = QAccessible::Slider, SpinBox = QAccessible::SpinBox, Canvas = QAccessible::Canvas, Animation = QAccessible::Animation, Equation = QAccessible::Equation, ButtonDropDown = QAccessible::ButtonDropDown, ButtonMenu = QAccessible::ButtonMenu, ButtonDropGrid = QAccessible::ButtonDropGrid, Whitespace = QAccessible::Whitespace, PageTabList = QAccessible::PageTabList, Clock = QAccessible::Clock, Splitter = QAccessible::Splitter, LayeredPane = QAccessible::LayeredPane, UserRole = QAccessible::UserRole}; -enum Action{ - DefaultAction = QAccessible::DefaultAction, Press = QAccessible::Press, FirstStandardAction = QAccessible::FirstStandardAction, SetFocus = QAccessible::SetFocus, Increase = QAccessible::Increase, Decrease = QAccessible::Decrease, Accept = QAccessible::Accept, Cancel = QAccessible::Cancel, Select = QAccessible::Select, ClearSelection = QAccessible::ClearSelection, RemoveSelection = QAccessible::RemoveSelection, ExtendSelection = QAccessible::ExtendSelection, AddToSelection = QAccessible::AddToSelection, LastStandardAction = QAccessible::LastStandardAction}; -enum Event{ - SoundPlayed = QAccessible::SoundPlayed, Alert = QAccessible::Alert, ForegroundChanged = QAccessible::ForegroundChanged, MenuStart = QAccessible::MenuStart, MenuEnd = QAccessible::MenuEnd, PopupMenuStart = QAccessible::PopupMenuStart, PopupMenuEnd = QAccessible::PopupMenuEnd, ContextHelpStart = QAccessible::ContextHelpStart, ContextHelpEnd = QAccessible::ContextHelpEnd, DragDropStart = QAccessible::DragDropStart, DragDropEnd = QAccessible::DragDropEnd, DialogStart = QAccessible::DialogStart, DialogEnd = QAccessible::DialogEnd, ScrollingStart = QAccessible::ScrollingStart, ScrollingEnd = QAccessible::ScrollingEnd, MenuCommand = QAccessible::MenuCommand, ObjectCreated = QAccessible::ObjectCreated, ObjectDestroyed = QAccessible::ObjectDestroyed, ObjectShow = QAccessible::ObjectShow, ObjectHide = QAccessible::ObjectHide, ObjectReorder = QAccessible::ObjectReorder, Focus = QAccessible::Focus, Selection = QAccessible::Selection, SelectionAdd = QAccessible::SelectionAdd, SelectionRemove = QAccessible::SelectionRemove, SelectionWithin = QAccessible::SelectionWithin, StateChanged = QAccessible::StateChanged, LocationChanged = QAccessible::LocationChanged, NameChanged = QAccessible::NameChanged, DescriptionChanged = QAccessible::DescriptionChanged, ValueChanged = QAccessible::ValueChanged, ParentChanged = QAccessible::ParentChanged, HelpChanged = QAccessible::HelpChanged, DefaultActionChanged = QAccessible::DefaultActionChanged, AcceleratorChanged = QAccessible::AcceleratorChanged}; -enum RelationFlag{ - Unrelated = QAccessible::Unrelated, Self = QAccessible::Self, Ancestor = QAccessible::Ancestor, Child = QAccessible::Child, Descendent = QAccessible::Descendent, Sibling = QAccessible::Sibling, HierarchyMask = QAccessible::HierarchyMask, Up = QAccessible::Up, Down = QAccessible::Down, Left = QAccessible::Left, Right = QAccessible::Right, Covers = QAccessible::Covers, Covered = QAccessible::Covered, GeometryMask = QAccessible::GeometryMask, FocusChild = QAccessible::FocusChild, Label = QAccessible::Label, Labelled = QAccessible::Labelled, Controller = QAccessible::Controller, Controlled = QAccessible::Controlled, LogicalMask = QAccessible::LogicalMask}; -enum StateFlag{ - Normal = QAccessible::Normal, Unavailable = QAccessible::Unavailable, Selected = QAccessible::Selected, Focused = QAccessible::Focused, Pressed = QAccessible::Pressed, Checked = QAccessible::Checked, Mixed = QAccessible::Mixed, ReadOnly = QAccessible::ReadOnly, HotTracked = QAccessible::HotTracked, DefaultButton = QAccessible::DefaultButton, Expanded = QAccessible::Expanded, Collapsed = QAccessible::Collapsed, Busy = QAccessible::Busy, Marqueed = QAccessible::Marqueed, Animated = QAccessible::Animated, Invisible = QAccessible::Invisible, Offscreen = QAccessible::Offscreen, Sizeable = QAccessible::Sizeable, Movable = QAccessible::Movable, SelfVoicing = QAccessible::SelfVoicing, Focusable = QAccessible::Focusable, Selectable = QAccessible::Selectable, Linked = QAccessible::Linked, Traversed = QAccessible::Traversed, MultiSelectable = QAccessible::MultiSelectable, ExtSelectable = QAccessible::ExtSelectable, Protected = QAccessible::Protected, HasPopup = QAccessible::HasPopup, Modal = QAccessible::Modal, HasInvokeExtension = QAccessible::HasInvokeExtension}; -enum Text{ - Name = QAccessible::Name, Description = QAccessible::Description, Value = QAccessible::Value, Help = QAccessible::Help, Accelerator = QAccessible::Accelerator, UserText = QAccessible::UserText}; -Q_DECLARE_FLAGS(Relation, RelationFlag) -Q_DECLARE_FLAGS(State, StateFlag) -public slots: -QAccessible* new_QAccessible(); -void delete_QAccessible(QAccessible* obj) { delete obj; } - bool static_QAccessible_isActive(); - QAccessibleInterface* static_QAccessible_queryAccessibleInterface(QObject* arg__1); - void static_QAccessible_setRootObject(QObject* arg__1); - void static_QAccessible_updateAccessibility(QObject* arg__1, int who, QAccessible::Event reason); -}; - - - - - -class PythonQtShell_QAccessible2Interface : public QAccessible2Interface -{ -public: - PythonQtShell_QAccessible2Interface():QAccessible2Interface(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAccessible2Interface : public QObject -{ Q_OBJECT -public: -public slots: -QAccessible2Interface* new_QAccessible2Interface(); -void delete_QAccessible2Interface(QAccessible2Interface* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QAccessibleBridge : public QAccessibleBridge -{ -public: - PythonQtShell_QAccessibleBridge():QAccessibleBridge(),_wrapper(NULL) {}; - -virtual void notifyAccessibilityUpdate(int arg__1, QAccessibleInterface* arg__2, int arg__3); -virtual void setRootObject(QAccessibleInterface* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAccessibleBridge : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleBridge* new_QAccessibleBridge(); -void delete_QAccessibleBridge(QAccessibleBridge* obj) { delete obj; } -}; - - - - - -class PythonQtWrapper_QAccessibleEvent : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleEvent* new_QAccessibleEvent(QEvent::Type type, int child); -void delete_QAccessibleEvent(QAccessibleEvent* obj) { delete obj; } - int child(QAccessibleEvent* theWrappedObject) const; - void setValue(QAccessibleEvent* theWrappedObject, const QString& aText); - QString value(QAccessibleEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QAccessibleInterface : public QAccessibleInterface -{ -public: - PythonQtShell_QAccessibleInterface():QAccessibleInterface(),_wrapper(NULL) {}; - -virtual QString actionText(int action, QAccessible::Text t, int child) const; -virtual int childAt(int x, int y) const; -virtual int childCount() const; -virtual bool doAction(int action, int child, const QList& params = QVariantList()); -virtual int indexOfChild(const QAccessibleInterface* arg__1) const; -virtual bool isValid() const; -virtual int navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const; -virtual QObject* object() const; -virtual QRect rect(int child) const; -virtual QAccessible::Relation relationTo(int child, const QAccessibleInterface* other, int otherChild) const; -virtual QAccessible::Role role(int child) const; -virtual void setText(QAccessible::Text t, int child, const QString& text); -virtual QAccessible::State state(int child) const; -virtual QString text(QAccessible::Text t, int child) const; -virtual int userActionCount(int child) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAccessibleInterface : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleInterface* new_QAccessibleInterface(); -void delete_QAccessibleInterface(QAccessibleInterface* obj) { delete obj; } - QVariant invokeMethod(QAccessibleInterface* theWrappedObject, QAccessible::Method method, int child = 0, const QList& params = QVariantList()); - QSet supportedMethods(QAccessibleInterface* theWrappedObject); -}; - - - - - -class PythonQtShell_QAccessibleInterfaceEx : public QAccessibleInterfaceEx -{ -public: - PythonQtShell_QAccessibleInterfaceEx():QAccessibleInterfaceEx(),_wrapper(NULL) {}; - -virtual QString actionText(int action, QAccessible::Text t, int child) const; -virtual int childAt(int x, int y) const; -virtual int childCount() const; -virtual bool doAction(int action, int child, const QList& params); -virtual int indexOfChild(const QAccessibleInterface* arg__1) const; -virtual QVariant invokeMethodEx(QAccessible::Method method, int child, const QList& params); -virtual bool isValid() const; -virtual int navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const; -virtual QObject* object() const; -virtual QRect rect(int child) const; -virtual QAccessible::Relation relationTo(int child, const QAccessibleInterface* other, int otherChild) const; -virtual QAccessible::Role role(int child) const; -virtual void setText(QAccessible::Text t, int child, const QString& text); -virtual QAccessible::State state(int child) const; -virtual QString text(QAccessible::Text t, int child) const; -virtual int userActionCount(int child) const; -virtual QVariant virtual_hook(const QVariant& data); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAccessibleInterfaceEx : public QAccessibleInterfaceEx -{ public: -inline QVariant promoted_virtual_hook(const QVariant& data) { return QAccessibleInterfaceEx::virtual_hook(data); } -}; - -class PythonQtWrapper_QAccessibleInterfaceEx : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleInterfaceEx* new_QAccessibleInterfaceEx(); -void delete_QAccessibleInterfaceEx(QAccessibleInterfaceEx* obj) { delete obj; } - QVariant virtual_hook(QAccessibleInterfaceEx* theWrappedObject, const QVariant& data); -}; - - - - - -class PythonQtShell_QAccessibleObject : public QAccessibleObject -{ -public: - PythonQtShell_QAccessibleObject(QObject* object):QAccessibleObject(object),_wrapper(NULL) {}; - -virtual QString actionText(int action, QAccessible::Text t, int child) const; -virtual int childAt(int x, int y) const; -virtual int childCount() const; -virtual bool doAction(int action, int child, const QList& params); -virtual int indexOfChild(const QAccessibleInterface* arg__1) const; -virtual bool isValid() const; -virtual int navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const; -virtual QObject* object() const; -virtual QRect rect(int child) const; -virtual QAccessible::Relation relationTo(int child, const QAccessibleInterface* other, int otherChild) const; -virtual QAccessible::Role role(int child) const; -virtual void setText(QAccessible::Text t, int child, const QString& text); -virtual QAccessible::State state(int child) const; -virtual QString text(QAccessible::Text t, int child) const; -virtual int userActionCount(int child) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAccessibleObject : public QAccessibleObject -{ public: -inline QString promoted_actionText(int action, QAccessible::Text t, int child) const { return QAccessibleObject::actionText(action, t, child); } -inline bool promoted_doAction(int action, int child, const QList& params) { return QAccessibleObject::doAction(action, child, params); } -inline bool promoted_isValid() const { return QAccessibleObject::isValid(); } -inline QObject* promoted_object() const { return QAccessibleObject::object(); } -inline QRect promoted_rect(int child) const { return QAccessibleObject::rect(child); } -inline void promoted_setText(QAccessible::Text t, int child, const QString& text) { QAccessibleObject::setText(t, child, text); } -inline int promoted_userActionCount(int child) const { return QAccessibleObject::userActionCount(child); } -}; - -class PythonQtWrapper_QAccessibleObject : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleObject* new_QAccessibleObject(QObject* object); - QString actionText(QAccessibleObject* theWrappedObject, int action, QAccessible::Text t, int child) const; - bool doAction(QAccessibleObject* theWrappedObject, int action, int child, const QList& params); - bool isValid(QAccessibleObject* theWrappedObject) const; - QObject* object(QAccessibleObject* theWrappedObject) const; - QRect rect(QAccessibleObject* theWrappedObject, int child) const; - void setText(QAccessibleObject* theWrappedObject, QAccessible::Text t, int child, const QString& text); - int userActionCount(QAccessibleObject* theWrappedObject, int child) const; -}; - - - - - -class PythonQtShell_QAccessibleObjectEx : public QAccessibleObjectEx -{ -public: - PythonQtShell_QAccessibleObjectEx(QObject* object):QAccessibleObjectEx(object),_wrapper(NULL) {}; - -virtual QString actionText(int action, QAccessible::Text t, int child) const; -virtual int childAt(int x, int y) const; -virtual int childCount() const; -virtual bool doAction(int action, int child, const QList& params); -virtual int indexOfChild(const QAccessibleInterface* arg__1) const; -virtual QVariant invokeMethodEx(QAccessible::Method method, int child, const QList& params); -virtual bool isValid() const; -virtual int navigate(QAccessible::RelationFlag relation, int index, QAccessibleInterface** iface) const; -virtual QObject* object() const; -virtual QRect rect(int child) const; -virtual QAccessible::Relation relationTo(int child, const QAccessibleInterface* other, int otherChild) const; -virtual QAccessible::Role role(int child) const; -virtual void setText(QAccessible::Text t, int child, const QString& text); -virtual QAccessible::State state(int child) const; -virtual QString text(QAccessible::Text t, int child) const; -virtual int userActionCount(int child) const; -virtual QVariant virtual_hook(const QVariant& data); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAccessibleObjectEx : public QAccessibleObjectEx -{ public: -inline QString promoted_actionText(int action, QAccessible::Text t, int child) const { return QAccessibleObjectEx::actionText(action, t, child); } -inline bool promoted_doAction(int action, int child, const QList& params) { return QAccessibleObjectEx::doAction(action, child, params); } -inline bool promoted_isValid() const { return QAccessibleObjectEx::isValid(); } -inline QObject* promoted_object() const { return QAccessibleObjectEx::object(); } -inline QRect promoted_rect(int child) const { return QAccessibleObjectEx::rect(child); } -inline void promoted_setText(QAccessible::Text t, int child, const QString& text) { QAccessibleObjectEx::setText(t, child, text); } -inline int promoted_userActionCount(int child) const { return QAccessibleObjectEx::userActionCount(child); } -}; - -class PythonQtWrapper_QAccessibleObjectEx : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleObjectEx* new_QAccessibleObjectEx(QObject* object); - QString actionText(QAccessibleObjectEx* theWrappedObject, int action, QAccessible::Text t, int child) const; - bool doAction(QAccessibleObjectEx* theWrappedObject, int action, int child, const QList& params); - bool isValid(QAccessibleObjectEx* theWrappedObject) const; - QObject* object(QAccessibleObjectEx* theWrappedObject) const; - QRect rect(QAccessibleObjectEx* theWrappedObject, int child) const; - void setText(QAccessibleObjectEx* theWrappedObject, QAccessible::Text t, int child, const QString& text); - int userActionCount(QAccessibleObjectEx* theWrappedObject, int child) const; -}; - - - - - -class PythonQtShell_QAccessiblePlugin : public QAccessiblePlugin -{ -public: - PythonQtShell_QAccessiblePlugin(QObject* parent = 0):QAccessiblePlugin(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QAccessibleInterface* create(const QString& key, QObject* object); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QStringList keys() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAccessiblePlugin : public QObject -{ Q_OBJECT -public: -public slots: -QAccessiblePlugin* new_QAccessiblePlugin(QObject* parent = 0); -void delete_QAccessiblePlugin(QAccessiblePlugin* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QAccessibleTableInterface : public QAccessibleTableInterface -{ -public: - PythonQtShell_QAccessibleTableInterface():QAccessibleTableInterface(),_wrapper(NULL) {}; - -virtual QAccessibleInterface* accessibleAt(int row, int column); -virtual QAccessibleInterface* caption(); -virtual void cellAtIndex(int index, int* row, int* column, int* rowSpan, int* columnSpan, bool* isSelected); -virtual int childIndex(int rowIndex, int columnIndex); -virtual int columnCount(); -virtual QString columnDescription(int column); -virtual QAccessibleInterface* columnHeader(); -virtual int columnIndex(int childIndex); -virtual int columnSpan(int row, int column); -virtual bool isColumnSelected(int column); -virtual bool isRowSelected(int row); -virtual bool isSelected(int row, int column); -virtual int rowCount(); -virtual QString rowDescription(int row); -virtual QAccessibleInterface* rowHeader(); -virtual int rowIndex(int childIndex); -virtual int rowSpan(int row, int column); -virtual void selectColumn(int column); -virtual void selectRow(int row); -virtual int selectedColumnCount(); -virtual int selectedColumns(int maxColumns, QList* columns); -virtual int selectedRowCount(); -virtual int selectedRows(int maxRows, QList* rows); -virtual QAccessibleInterface* summary(); -virtual void unselectColumn(int column); -virtual void unselectRow(int row); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAccessibleTableInterface : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleTableInterface* new_QAccessibleTableInterface(); -void delete_QAccessibleTableInterface(QAccessibleTableInterface* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QAccessibleWidget : public QAccessibleWidget -{ -public: - PythonQtShell_QAccessibleWidget(QWidget* o, QAccessible::Role r = QAccessible::Client, const QString& name = QString()):QAccessibleWidget(o, r, name),_wrapper(NULL) {}; - -virtual QString actionText(int action, QAccessible::Text t, int child) const; -virtual int childAt(int x, int y) const; -virtual int childCount() const; -virtual bool doAction(int action, int child, const QList& params); -virtual int indexOfChild(const QAccessibleInterface* child) const; -virtual bool isValid() const; -virtual int navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const; -virtual QObject* object() const; -virtual QRect rect(int child) const; -virtual QAccessible::Relation relationTo(int child, const QAccessibleInterface* other, int otherChild) const; -virtual QAccessible::Role role(int child) const; -virtual void setText(QAccessible::Text t, int child, const QString& text); -virtual QAccessible::State state(int child) const; -virtual QString text(QAccessible::Text t, int child) const; -virtual int userActionCount(int child) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAccessibleWidget : public QAccessibleWidget -{ public: -inline QString promoted_actionText(int action, QAccessible::Text t, int child) const { return QAccessibleWidget::actionText(action, t, child); } -inline int promoted_childAt(int x, int y) const { return QAccessibleWidget::childAt(x, y); } -inline int promoted_childCount() const { return QAccessibleWidget::childCount(); } -inline bool promoted_doAction(int action, int child, const QList& params) { return QAccessibleWidget::doAction(action, child, params); } -inline int promoted_indexOfChild(const QAccessibleInterface* child) const { return QAccessibleWidget::indexOfChild(child); } -inline int promoted_navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const { return QAccessibleWidget::navigate(rel, entry, target); } -inline QRect promoted_rect(int child) const { return QAccessibleWidget::rect(child); } -inline QAccessible::Relation promoted_relationTo(int child, const QAccessibleInterface* other, int otherChild) const { return QAccessibleWidget::relationTo(child, other, otherChild); } -inline QAccessible::Role promoted_role(int child) const { return QAccessibleWidget::role(child); } -inline QAccessible::State promoted_state(int child) const { return QAccessibleWidget::state(child); } -inline QString promoted_text(QAccessible::Text t, int child) const { return QAccessibleWidget::text(t, child); } -inline int promoted_userActionCount(int child) const { return QAccessibleWidget::userActionCount(child); } -}; - -class PythonQtWrapper_QAccessibleWidget : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleWidget* new_QAccessibleWidget(QWidget* o, QAccessible::Role r = QAccessible::Client, const QString& name = QString()); - QString actionText(QAccessibleWidget* theWrappedObject, int action, QAccessible::Text t, int child) const; - int childAt(QAccessibleWidget* theWrappedObject, int x, int y) const; - int childCount(QAccessibleWidget* theWrappedObject) const; - bool doAction(QAccessibleWidget* theWrappedObject, int action, int child, const QList& params); - int indexOfChild(QAccessibleWidget* theWrappedObject, const QAccessibleInterface* child) const; - int navigate(QAccessibleWidget* theWrappedObject, QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const; - QRect rect(QAccessibleWidget* theWrappedObject, int child) const; - QAccessible::Relation relationTo(QAccessibleWidget* theWrappedObject, int child, const QAccessibleInterface* other, int otherChild) const; - QAccessible::Role role(QAccessibleWidget* theWrappedObject, int child) const; - QAccessible::State state(QAccessibleWidget* theWrappedObject, int child) const; - QString text(QAccessibleWidget* theWrappedObject, QAccessible::Text t, int child) const; - int userActionCount(QAccessibleWidget* theWrappedObject, int child) const; -}; - - - - - -class PythonQtShell_QAccessibleWidgetEx : public QAccessibleWidgetEx -{ -public: - PythonQtShell_QAccessibleWidgetEx(QWidget* o, QAccessible::Role r = QAccessible::Client, const QString& name = QString()):QAccessibleWidgetEx(o, r, name),_wrapper(NULL) {}; - -virtual QString actionText(int action, QAccessible::Text t, int child) const; -virtual int childAt(int x, int y) const; -virtual int childCount() const; -virtual bool doAction(int action, int child, const QList& params); -virtual int indexOfChild(const QAccessibleInterface* child) const; -virtual QVariant invokeMethodEx(QAccessible::Method method, int child, const QList& params); -virtual bool isValid() const; -virtual int navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const; -virtual QObject* object() const; -virtual QRect rect(int child) const; -virtual QAccessible::Relation relationTo(int child, const QAccessibleInterface* other, int otherChild) const; -virtual QAccessible::Role role(int child) const; -virtual void setText(QAccessible::Text t, int child, const QString& text); -virtual QAccessible::State state(int child) const; -virtual QString text(QAccessible::Text t, int child) const; -virtual int userActionCount(int child) const; -virtual QVariant virtual_hook(const QVariant& data); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAccessibleWidgetEx : public QAccessibleWidgetEx -{ public: -inline QString promoted_actionText(int action, QAccessible::Text t, int child) const { return QAccessibleWidgetEx::actionText(action, t, child); } -inline int promoted_childAt(int x, int y) const { return QAccessibleWidgetEx::childAt(x, y); } -inline int promoted_childCount() const { return QAccessibleWidgetEx::childCount(); } -inline bool promoted_doAction(int action, int child, const QList& params) { return QAccessibleWidgetEx::doAction(action, child, params); } -inline int promoted_indexOfChild(const QAccessibleInterface* child) const { return QAccessibleWidgetEx::indexOfChild(child); } -inline QVariant promoted_invokeMethodEx(QAccessible::Method method, int child, const QList& params) { return QAccessibleWidgetEx::invokeMethodEx(method, child, params); } -inline int promoted_navigate(QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const { return QAccessibleWidgetEx::navigate(rel, entry, target); } -inline QRect promoted_rect(int child) const { return QAccessibleWidgetEx::rect(child); } -inline QAccessible::Relation promoted_relationTo(int child, const QAccessibleInterface* other, int otherChild) const { return QAccessibleWidgetEx::relationTo(child, other, otherChild); } -inline QAccessible::Role promoted_role(int child) const { return QAccessibleWidgetEx::role(child); } -inline QAccessible::State promoted_state(int child) const { return QAccessibleWidgetEx::state(child); } -inline QString promoted_text(QAccessible::Text t, int child) const { return QAccessibleWidgetEx::text(t, child); } -}; - -class PythonQtWrapper_QAccessibleWidgetEx : public QObject -{ Q_OBJECT -public: -public slots: -QAccessibleWidgetEx* new_QAccessibleWidgetEx(QWidget* o, QAccessible::Role r = QAccessible::Client, const QString& name = QString()); - QString actionText(QAccessibleWidgetEx* theWrappedObject, int action, QAccessible::Text t, int child) const; - int childAt(QAccessibleWidgetEx* theWrappedObject, int x, int y) const; - int childCount(QAccessibleWidgetEx* theWrappedObject) const; - bool doAction(QAccessibleWidgetEx* theWrappedObject, int action, int child, const QList& params); - int indexOfChild(QAccessibleWidgetEx* theWrappedObject, const QAccessibleInterface* child) const; - QVariant invokeMethodEx(QAccessibleWidgetEx* theWrappedObject, QAccessible::Method method, int child, const QList& params); - int navigate(QAccessibleWidgetEx* theWrappedObject, QAccessible::RelationFlag rel, int entry, QAccessibleInterface** target) const; - QRect rect(QAccessibleWidgetEx* theWrappedObject, int child) const; - QAccessible::Relation relationTo(QAccessibleWidgetEx* theWrappedObject, int child, const QAccessibleInterface* other, int otherChild) const; - QAccessible::Role role(QAccessibleWidgetEx* theWrappedObject, int child) const; - QAccessible::State state(QAccessibleWidgetEx* theWrappedObject, int child) const; - QString text(QAccessibleWidgetEx* theWrappedObject, QAccessible::Text t, int child) const; -}; - - - - - -class PythonQtShell_QAction : public QAction -{ -public: - PythonQtShell_QAction(QObject* parent):QAction(parent),_wrapper(NULL) {}; - PythonQtShell_QAction(const QIcon& icon, const QString& text, QObject* parent):QAction(icon, text, parent),_wrapper(NULL) {}; - PythonQtShell_QAction(const QString& text, QObject* parent):QAction(text, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAction : public QAction -{ public: -inline bool promoted_event(QEvent* arg__1) { return QAction::event(arg__1); } -}; - -class PythonQtWrapper_QAction : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ActionEvent ) -enum ActionEvent{ - Trigger = QAction::Trigger, Hover = QAction::Hover}; -public slots: -QAction* new_QAction(QObject* parent); -QAction* new_QAction(const QIcon& icon, const QString& text, QObject* parent); -QAction* new_QAction(const QString& text, QObject* parent); -void delete_QAction(QAction* obj) { delete obj; } - QActionGroup* actionGroup(QAction* theWrappedObject) const; - void activate(QAction* theWrappedObject, QAction::ActionEvent event); - QList associatedGraphicsWidgets(QAction* theWrappedObject) const; - QList associatedWidgets(QAction* theWrappedObject) const; - bool autoRepeat(QAction* theWrappedObject) const; - QVariant data(QAction* theWrappedObject) const; - bool event(QAction* theWrappedObject, QEvent* arg__1); - QFont font(QAction* theWrappedObject) const; - QIcon icon(QAction* theWrappedObject) const; - QString iconText(QAction* theWrappedObject) const; - bool isCheckable(QAction* theWrappedObject) const; - bool isChecked(QAction* theWrappedObject) const; - bool isEnabled(QAction* theWrappedObject) const; - bool isIconVisibleInMenu(QAction* theWrappedObject) const; - bool isSeparator(QAction* theWrappedObject) const; - bool isVisible(QAction* theWrappedObject) const; - QMenu* menu(QAction* theWrappedObject) const; - QAction::MenuRole menuRole(QAction* theWrappedObject) const; - QWidget* parentWidget(QAction* theWrappedObject) const; - QAction::Priority priority(QAction* theWrappedObject) const; - void setActionGroup(QAction* theWrappedObject, QActionGroup* group); - void setAutoRepeat(QAction* theWrappedObject, bool arg__1); - void setCheckable(QAction* theWrappedObject, bool arg__1); - void setData(QAction* theWrappedObject, const QVariant& var); - void setFont(QAction* theWrappedObject, const QFont& font); - void setIcon(QAction* theWrappedObject, const QIcon& icon); - void setIconText(QAction* theWrappedObject, const QString& text); - void setIconVisibleInMenu(QAction* theWrappedObject, bool visible); - void setMenu(QAction* theWrappedObject, QMenu* menu); - void setMenuRole(QAction* theWrappedObject, QAction::MenuRole menuRole); - void setPriority(QAction* theWrappedObject, QAction::Priority priority); - void setSeparator(QAction* theWrappedObject, bool b); - void setShortcut(QAction* theWrappedObject, const QKeySequence& shortcut); - void setShortcutContext(QAction* theWrappedObject, Qt::ShortcutContext context); - void setShortcuts(QAction* theWrappedObject, QKeySequence::StandardKey arg__1); - void setShortcuts(QAction* theWrappedObject, const QList& shortcuts); - void setSoftKeyRole(QAction* theWrappedObject, QAction::SoftKeyRole softKeyRole); - void setStatusTip(QAction* theWrappedObject, const QString& statusTip); - void setText(QAction* theWrappedObject, const QString& text); - void setToolTip(QAction* theWrappedObject, const QString& tip); - void setWhatsThis(QAction* theWrappedObject, const QString& what); - QKeySequence shortcut(QAction* theWrappedObject) const; - Qt::ShortcutContext shortcutContext(QAction* theWrappedObject) const; - QList shortcuts(QAction* theWrappedObject) const; - bool showStatusText(QAction* theWrappedObject, QWidget* widget = 0); - QAction::SoftKeyRole softKeyRole(QAction* theWrappedObject) const; - QString statusTip(QAction* theWrappedObject) const; - QString text(QAction* theWrappedObject) const; - QString toolTip(QAction* theWrappedObject) const; - QString whatsThis(QAction* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QActionEvent : public QObject -{ Q_OBJECT -public: -public slots: -QActionEvent* new_QActionEvent(int type, QAction* action, QAction* before = 0); -void delete_QActionEvent(QActionEvent* obj) { delete obj; } - QAction* action(QActionEvent* theWrappedObject) const; - QAction* before(QActionEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QActionGroup : public QActionGroup -{ -public: - PythonQtShell_QActionGroup(QObject* parent):QActionGroup(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QActionGroup : public QObject -{ Q_OBJECT -public: -public slots: -QActionGroup* new_QActionGroup(QObject* parent); -void delete_QActionGroup(QActionGroup* obj) { delete obj; } - QList actions(QActionGroup* theWrappedObject) const; - QAction* addAction(QActionGroup* theWrappedObject, QAction* a); - QAction* addAction(QActionGroup* theWrappedObject, const QIcon& icon, const QString& text); - QAction* addAction(QActionGroup* theWrappedObject, const QString& text); - QAction* checkedAction(QActionGroup* theWrappedObject) const; - bool isEnabled(QActionGroup* theWrappedObject) const; - bool isExclusive(QActionGroup* theWrappedObject) const; - bool isVisible(QActionGroup* theWrappedObject) const; - void removeAction(QActionGroup* theWrappedObject, QAction* a); -}; - - - - - -class PythonQtShell_QApplication : public QApplication -{ -public: - -virtual void childEvent(QChildEvent* arg__1); -virtual void commitData(QSessionManager& sm); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool notify(QObject* arg__1, QEvent* arg__2); -virtual void saveState(QSessionManager& sm); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QApplication : public QApplication -{ public: -inline bool promoted_event(QEvent* arg__1) { return QApplication::event(arg__1); } -inline bool promoted_notify(QObject* arg__1, QEvent* arg__2) { return QApplication::notify(arg__1, arg__2); } -}; - -class PythonQtWrapper_QApplication : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Type ColorSpec ) -enum Type{ - Tty = QApplication::Tty, GuiClient = QApplication::GuiClient, GuiServer = QApplication::GuiServer}; -enum ColorSpec{ - NormalColor = QApplication::NormalColor, CustomColor = QApplication::CustomColor, ManyColor = QApplication::ManyColor}; -public slots: -void delete_QApplication(QApplication* obj) { delete obj; } - QWidget* static_QApplication_activeModalWidget(); - QWidget* static_QApplication_activePopupWidget(); - QWidget* static_QApplication_activeWindow(); - void static_QApplication_alert(QWidget* widget, int duration = 0); - QList static_QApplication_allWidgets(); - void static_QApplication_beep(); - void static_QApplication_changeOverrideCursor(const QCursor& arg__1); - QClipboard* static_QApplication_clipboard(); - int static_QApplication_colorSpec(); - int static_QApplication_cursorFlashTime(); - QDesktopWidget* static_QApplication_desktop(); - bool static_QApplication_desktopSettingsAware(); - int static_QApplication_doubleClickInterval(); - bool event(QApplication* theWrappedObject, QEvent* arg__1); - int static_QApplication_exec(); - QWidget* static_QApplication_focusWidget(); - QFont static_QApplication_font(); - QFont static_QApplication_font(const QWidget* arg__1); - QSize static_QApplication_globalStrut(); - QInputContext* inputContext(QApplication* theWrappedObject) const; - bool static_QApplication_isEffectEnabled(Qt::UIEffect arg__1); - bool static_QApplication_isLeftToRight(); - bool static_QApplication_isRightToLeft(); - bool isSessionRestored(QApplication* theWrappedObject) const; - Qt::LayoutDirection static_QApplication_keyboardInputDirection(); - int static_QApplication_keyboardInputInterval(); - QLocale static_QApplication_keyboardInputLocale(); - Qt::KeyboardModifiers static_QApplication_keyboardModifiers(); - Qt::LayoutDirection static_QApplication_layoutDirection(); - Qt::MouseButtons static_QApplication_mouseButtons(); - bool notify(QApplication* theWrappedObject, QObject* arg__1, QEvent* arg__2); - QCursor* static_QApplication_overrideCursor(); - QPalette static_QApplication_palette(); - QPalette static_QApplication_palette(const QWidget* arg__1); - bool static_QApplication_quitOnLastWindowClosed(); - void static_QApplication_restoreOverrideCursor(); - QString sessionId(QApplication* theWrappedObject) const; - QString sessionKey(QApplication* theWrappedObject) const; - void static_QApplication_setActiveWindow(QWidget* act); - void static_QApplication_setColorSpec(int arg__1); - void static_QApplication_setCursorFlashTime(int arg__1); - void static_QApplication_setDesktopSettingsAware(bool arg__1); - void static_QApplication_setDoubleClickInterval(int arg__1); - void static_QApplication_setEffectEnabled(Qt::UIEffect arg__1, bool enable = true); - void static_QApplication_setFont(const QFont& arg__1, const char* className = 0); - void static_QApplication_setGlobalStrut(const QSize& arg__1); - void static_QApplication_setGraphicsSystem(const QString& arg__1); - void setInputContext(QApplication* theWrappedObject, QInputContext* arg__1); - void static_QApplication_setKeyboardInputInterval(int arg__1); - void static_QApplication_setLayoutDirection(Qt::LayoutDirection direction); - void static_QApplication_setOverrideCursor(const QCursor& arg__1); - void static_QApplication_setPalette(const QPalette& arg__1, const char* className = 0); - void static_QApplication_setQuitOnLastWindowClosed(bool quit); - void static_QApplication_setStartDragDistance(int l); - void static_QApplication_setStartDragTime(int ms); - void static_QApplication_setStyle(QStyle* arg__1); - QStyle* static_QApplication_setStyle(const QString& arg__1); - void static_QApplication_setWheelScrollLines(int arg__1); - void static_QApplication_setWindowIcon(const QIcon& icon); - int static_QApplication_startDragDistance(); - int static_QApplication_startDragTime(); - QStyle* static_QApplication_style(); - QString styleSheet(QApplication* theWrappedObject) const; - void static_QApplication_syncX(); - QWidget* static_QApplication_topLevelAt(const QPoint& p); - QWidget* static_QApplication_topLevelAt(int x, int y); - QList static_QApplication_topLevelWidgets(); - QApplication::Type static_QApplication_type(); - int static_QApplication_wheelScrollLines(); - QWidget* static_QApplication_widgetAt(const QPoint& p); - QWidget* static_QApplication_widgetAt(int x, int y); - QIcon static_QApplication_windowIcon(); -}; - - - - - -class PythonQtShell_QBoxLayout : public QBoxLayout -{ -public: - PythonQtShell_QBoxLayout(QBoxLayout::Direction arg__1, QWidget* parent = 0):QBoxLayout(arg__1, parent),_wrapper(NULL) {}; - -virtual void addItem(QLayoutItem* arg__1); -virtual void childEvent(QChildEvent* e); -virtual int count() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual int indexOf(QWidget* arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayoutItem* itemAt(int arg__1) const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QLayoutItem* takeAt(int arg__1); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QBoxLayout : public QBoxLayout -{ public: -inline void promoted_addItem(QLayoutItem* arg__1) { QBoxLayout::addItem(arg__1); } -inline int promoted_count() const { return QBoxLayout::count(); } -inline Qt::Orientations promoted_expandingDirections() const { return QBoxLayout::expandingDirections(); } -inline void promoted_invalidate() { QBoxLayout::invalidate(); } -inline QLayoutItem* promoted_itemAt(int arg__1) const { return QBoxLayout::itemAt(arg__1); } -inline QSize promoted_maximumSize() const { return QBoxLayout::maximumSize(); } -inline QSize promoted_minimumSize() const { return QBoxLayout::minimumSize(); } -inline void promoted_setGeometry(const QRect& arg__1) { QBoxLayout::setGeometry(arg__1); } -inline QLayoutItem* promoted_takeAt(int arg__1) { return QBoxLayout::takeAt(arg__1); } -}; - -class PythonQtWrapper_QBoxLayout : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Direction ) -enum Direction{ - LeftToRight = QBoxLayout::LeftToRight, RightToLeft = QBoxLayout::RightToLeft, TopToBottom = QBoxLayout::TopToBottom, BottomToTop = QBoxLayout::BottomToTop, Down = QBoxLayout::Down, Up = QBoxLayout::Up}; -public slots: -QBoxLayout* new_QBoxLayout(QBoxLayout::Direction arg__1, QWidget* parent = 0); -void delete_QBoxLayout(QBoxLayout* obj) { delete obj; } - void addItem(QBoxLayout* theWrappedObject, QLayoutItem* arg__1); - void addLayout(QBoxLayout* theWrappedObject, QLayout* layout, int stretch = 0); - void addSpacerItem(QBoxLayout* theWrappedObject, QSpacerItem* spacerItem); - void addSpacing(QBoxLayout* theWrappedObject, int size); - void addStretch(QBoxLayout* theWrappedObject, int stretch = 0); - void addStrut(QBoxLayout* theWrappedObject, int arg__1); - void addWidget(QBoxLayout* theWrappedObject, QWidget* arg__1, int stretch = 0, Qt::Alignment alignment = 0); - int count(QBoxLayout* theWrappedObject) const; - QBoxLayout::Direction direction(QBoxLayout* theWrappedObject) const; - Qt::Orientations expandingDirections(QBoxLayout* theWrappedObject) const; - bool hasHeightForWidth(QBoxLayout* theWrappedObject) const; - int heightForWidth(QBoxLayout* theWrappedObject, int arg__1) const; - void insertLayout(QBoxLayout* theWrappedObject, int index, QLayout* layout, int stretch = 0); - void insertSpacerItem(QBoxLayout* theWrappedObject, int index, QSpacerItem* spacerItem); - void insertSpacing(QBoxLayout* theWrappedObject, int index, int size); - void insertStretch(QBoxLayout* theWrappedObject, int index, int stretch = 0); - void insertWidget(QBoxLayout* theWrappedObject, int index, QWidget* widget, int stretch = 0, Qt::Alignment alignment = 0); - void invalidate(QBoxLayout* theWrappedObject); - QLayoutItem* itemAt(QBoxLayout* theWrappedObject, int arg__1) const; - QSize maximumSize(QBoxLayout* theWrappedObject) const; - int minimumHeightForWidth(QBoxLayout* theWrappedObject, int arg__1) const; - QSize minimumSize(QBoxLayout* theWrappedObject) const; - void setDirection(QBoxLayout* theWrappedObject, QBoxLayout::Direction arg__1); - void setGeometry(QBoxLayout* theWrappedObject, const QRect& arg__1); - void setSpacing(QBoxLayout* theWrappedObject, int spacing); - void setStretch(QBoxLayout* theWrappedObject, int index, int stretch); - bool setStretchFactor(QBoxLayout* theWrappedObject, QLayout* l, int stretch); - bool setStretchFactor(QBoxLayout* theWrappedObject, QWidget* w, int stretch); - QSize sizeHint(QBoxLayout* theWrappedObject) const; - int spacing(QBoxLayout* theWrappedObject) const; - int stretch(QBoxLayout* theWrappedObject, int index) const; - QLayoutItem* takeAt(QBoxLayout* theWrappedObject, int arg__1); -}; - - - - - -class PythonQtShell_QButtonGroup : public QButtonGroup -{ -public: - PythonQtShell_QButtonGroup(QObject* parent = 0):QButtonGroup(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QButtonGroup : public QObject -{ Q_OBJECT -public: -public slots: -QButtonGroup* new_QButtonGroup(QObject* parent = 0); -void delete_QButtonGroup(QButtonGroup* obj) { delete obj; } - void addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1); - void addButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1, int id); - QAbstractButton* button(QButtonGroup* theWrappedObject, int id) const; - QList buttons(QButtonGroup* theWrappedObject) const; - QAbstractButton* checkedButton(QButtonGroup* theWrappedObject) const; - int checkedId(QButtonGroup* theWrappedObject) const; - bool exclusive(QButtonGroup* theWrappedObject) const; - int id(QButtonGroup* theWrappedObject, QAbstractButton* button) const; - void removeButton(QButtonGroup* theWrappedObject, QAbstractButton* arg__1); - void setExclusive(QButtonGroup* theWrappedObject, bool arg__1); - void setId(QButtonGroup* theWrappedObject, QAbstractButton* button, int id); -}; - - - - - -class PythonQtShell_QCDEStyle : public QCDEStyle -{ -public: - PythonQtShell_QCDEStyle(bool useHighlightCols = false):QCDEStyle(useHighlightCols),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const; -virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* o, QEvent* e); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* arg__1); -virtual void polish(QPalette& arg__1); -virtual void polish(QWidget* arg__1); -virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const; -virtual int styleHint(QStyle::StyleHint hint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const; -virtual QRect subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const; -virtual void timerEvent(QTimerEvent* event); -virtual void unpolish(QApplication* arg__1); -virtual void unpolish(QWidget* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCDEStyle : public QCDEStyle -{ public: -inline void promoted_drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QCDEStyle::drawControl(element, opt, p, w); } -inline void promoted_drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QCDEStyle::drawPrimitive(pe, opt, p, w); } -inline int promoted_pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const { return QCDEStyle::pixelMetric(metric, option, widget); } -inline QPalette promoted_standardPalette() const { return QCDEStyle::standardPalette(); } -}; - -class PythonQtWrapper_QCDEStyle : public QObject -{ Q_OBJECT -public: -public slots: -QCDEStyle* new_QCDEStyle(bool useHighlightCols = false); -void delete_QCDEStyle(QCDEStyle* obj) { delete obj; } - void drawControl(QCDEStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - void drawPrimitive(QCDEStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - int pixelMetric(QCDEStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; - QPalette standardPalette(QCDEStyle* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QCalendarWidget : public QCalendarWidget -{ -public: - PythonQtShell_QCalendarWidget(QWidget* parent = 0):QCalendarWidget(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* watched, QEvent* event); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual void paintCell(QPainter* painter, const QRect& rect, const QDate& date) const; -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCalendarWidget : public QCalendarWidget -{ public: -inline bool promoted_event(QEvent* event) { return QCalendarWidget::event(event); } -inline bool promoted_eventFilter(QObject* watched, QEvent* event) { return QCalendarWidget::eventFilter(watched, event); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QCalendarWidget::keyPressEvent(event); } -inline QSize promoted_minimumSizeHint() const { return QCalendarWidget::minimumSizeHint(); } -inline void promoted_mousePressEvent(QMouseEvent* event) { QCalendarWidget::mousePressEvent(event); } -inline void promoted_paintCell(QPainter* painter, const QRect& rect, const QDate& date) const { QCalendarWidget::paintCell(painter, rect, date); } -inline void promoted_resizeEvent(QResizeEvent* event) { QCalendarWidget::resizeEvent(event); } -inline QSize promoted_sizeHint() const { return QCalendarWidget::sizeHint(); } -}; - -class PythonQtWrapper_QCalendarWidget : public QObject -{ Q_OBJECT -public: -public slots: -QCalendarWidget* new_QCalendarWidget(QWidget* parent = 0); -void delete_QCalendarWidget(QCalendarWidget* obj) { delete obj; } - int dateEditAcceptDelay(QCalendarWidget* theWrappedObject) const; - QMap dateTextFormat(QCalendarWidget* theWrappedObject) const; - QTextCharFormat dateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date) const; - bool event(QCalendarWidget* theWrappedObject, QEvent* event); - bool eventFilter(QCalendarWidget* theWrappedObject, QObject* watched, QEvent* event); - Qt::DayOfWeek firstDayOfWeek(QCalendarWidget* theWrappedObject) const; - QTextCharFormat headerTextFormat(QCalendarWidget* theWrappedObject) const; - QCalendarWidget::HorizontalHeaderFormat horizontalHeaderFormat(QCalendarWidget* theWrappedObject) const; - bool isDateEditEnabled(QCalendarWidget* theWrappedObject) const; - bool isGridVisible(QCalendarWidget* theWrappedObject) const; - bool isNavigationBarVisible(QCalendarWidget* theWrappedObject) const; - void keyPressEvent(QCalendarWidget* theWrappedObject, QKeyEvent* event); - QDate maximumDate(QCalendarWidget* theWrappedObject) const; - QDate minimumDate(QCalendarWidget* theWrappedObject) const; - QSize minimumSizeHint(QCalendarWidget* theWrappedObject) const; - int monthShown(QCalendarWidget* theWrappedObject) const; - void mousePressEvent(QCalendarWidget* theWrappedObject, QMouseEvent* event); - void paintCell(QCalendarWidget* theWrappedObject, QPainter* painter, const QRect& rect, const QDate& date) const; - void resizeEvent(QCalendarWidget* theWrappedObject, QResizeEvent* event); - QDate selectedDate(QCalendarWidget* theWrappedObject) const; - QCalendarWidget::SelectionMode selectionMode(QCalendarWidget* theWrappedObject) const; - void setDateEditAcceptDelay(QCalendarWidget* theWrappedObject, int delay); - void setDateEditEnabled(QCalendarWidget* theWrappedObject, bool enable); - void setDateTextFormat(QCalendarWidget* theWrappedObject, const QDate& date, const QTextCharFormat& format); - void setFirstDayOfWeek(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek); - void setHeaderTextFormat(QCalendarWidget* theWrappedObject, const QTextCharFormat& format); - void setHorizontalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::HorizontalHeaderFormat format); - void setMaximumDate(QCalendarWidget* theWrappedObject, const QDate& date); - void setMinimumDate(QCalendarWidget* theWrappedObject, const QDate& date); - void setSelectionMode(QCalendarWidget* theWrappedObject, QCalendarWidget::SelectionMode mode); - void setVerticalHeaderFormat(QCalendarWidget* theWrappedObject, QCalendarWidget::VerticalHeaderFormat format); - void setWeekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek, const QTextCharFormat& format); - QSize sizeHint(QCalendarWidget* theWrappedObject) const; - QCalendarWidget::VerticalHeaderFormat verticalHeaderFormat(QCalendarWidget* theWrappedObject) const; - QTextCharFormat weekdayTextFormat(QCalendarWidget* theWrappedObject, Qt::DayOfWeek dayOfWeek) const; - int yearShown(QCalendarWidget* theWrappedObject) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp deleted file mode 100644 index 9d050f8a2..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp +++ /dev/null @@ -1,16127 +0,0 @@ -#include "com_trolltech_qt_gui1.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QCheckBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::actionEvent(arg__1); -} -void PythonQtShell_QCheckBox::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::changeEvent(e); -} -void PythonQtShell_QCheckBox::checkStateSet() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::checkStateSet(); -} -void PythonQtShell_QCheckBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::childEvent(arg__1); -} -void PythonQtShell_QCheckBox::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::closeEvent(arg__1); -} -void PythonQtShell_QCheckBox::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::contextMenuEvent(arg__1); -} -void PythonQtShell_QCheckBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::customEvent(arg__1); -} -int PythonQtShell_QCheckBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::devType(); -} -void PythonQtShell_QCheckBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QCheckBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QCheckBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QCheckBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::dropEvent(arg__1); -} -void PythonQtShell_QCheckBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::enterEvent(arg__1); -} -bool PythonQtShell_QCheckBox::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::event(e); -} -bool PythonQtShell_QCheckBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QCheckBox::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::focusInEvent(e); -} -bool PythonQtShell_QCheckBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::focusNextPrevChild(next); -} -void PythonQtShell_QCheckBox::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::focusOutEvent(e); -} -int PythonQtShell_QCheckBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::heightForWidth(arg__1); -} -void PythonQtShell_QCheckBox::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::hideEvent(arg__1); -} -bool PythonQtShell_QCheckBox::hitButton(const QPoint& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::hitButton(pos); -} -void PythonQtShell_QCheckBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QCheckBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QCheckBox::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::keyPressEvent(e); -} -void PythonQtShell_QCheckBox::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::keyReleaseEvent(e); -} -void PythonQtShell_QCheckBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::languageChange(); -} -void PythonQtShell_QCheckBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::leaveEvent(arg__1); -} -int PythonQtShell_QCheckBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::metric(arg__1); -} -QSize PythonQtShell_QCheckBox::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::minimumSizeHint(); -} -void PythonQtShell_QCheckBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QCheckBox::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::mouseMoveEvent(arg__1); -} -void PythonQtShell_QCheckBox::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::mousePressEvent(e); -} -void PythonQtShell_QCheckBox::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::mouseReleaseEvent(e); -} -void PythonQtShell_QCheckBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::moveEvent(arg__1); -} -void PythonQtShell_QCheckBox::nextCheckState() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::nextCheckState(); -} -QPaintEngine* PythonQtShell_QCheckBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCheckBox::paintEngine(); -} -void PythonQtShell_QCheckBox::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::paintEvent(arg__1); -} -void PythonQtShell_QCheckBox::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::resizeEvent(arg__1); -} -void PythonQtShell_QCheckBox::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::showEvent(arg__1); -} -void PythonQtShell_QCheckBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::tabletEvent(arg__1); -} -void PythonQtShell_QCheckBox::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::timerEvent(e); -} -void PythonQtShell_QCheckBox::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCheckBox::wheelEvent(arg__1); -} -QCheckBox* PythonQtWrapper_QCheckBox::new_QCheckBox(QWidget* parent) -{ -return new PythonQtShell_QCheckBox(parent); } - -QCheckBox* PythonQtWrapper_QCheckBox::new_QCheckBox(const QString& text, QWidget* parent) -{ -return new PythonQtShell_QCheckBox(text, parent); } - -Qt::CheckState PythonQtWrapper_QCheckBox::checkState(QCheckBox* theWrappedObject) const -{ - return ( theWrappedObject->checkState()); -} - -void PythonQtWrapper_QCheckBox::checkStateSet(QCheckBox* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_checkStateSet()); -} - -bool PythonQtWrapper_QCheckBox::event(QCheckBox* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QCheckBox::hitButton(QCheckBox* theWrappedObject, const QPoint& pos) const -{ - return ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_hitButton(pos)); -} - -bool PythonQtWrapper_QCheckBox::isTristate(QCheckBox* theWrappedObject) const -{ - return ( theWrappedObject->isTristate()); -} - -void PythonQtWrapper_QCheckBox::mouseMoveEvent(QCheckBox* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QCheckBox::nextCheckState(QCheckBox* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_nextCheckState()); -} - -void PythonQtWrapper_QCheckBox::paintEvent(QCheckBox* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QCheckBox*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QCheckBox::setCheckState(QCheckBox* theWrappedObject, Qt::CheckState state) -{ - ( theWrappedObject->setCheckState(state)); -} - -void PythonQtWrapper_QCheckBox::setTristate(QCheckBox* theWrappedObject, bool y) -{ - ( theWrappedObject->setTristate(y)); -} - -QSize PythonQtWrapper_QCheckBox::sizeHint(QCheckBox* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - - - -void PythonQtShell_QCleanlooksStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::childEvent(arg__1); -} -void PythonQtShell_QCleanlooksStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::customEvent(arg__1); -} -void PythonQtShell_QCleanlooksStyle::drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&control, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::drawComplexControl(control, option, painter, widget); -} -void PythonQtShell_QCleanlooksStyle::drawControl(QStyle::ControlElement ce, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&ce, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::drawControl(ce, option, painter, widget); -} -void PythonQtShell_QCleanlooksStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QCleanlooksStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QCleanlooksStyle::drawPrimitive(QStyle::PrimitiveElement elem, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&elem, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::drawPrimitive(elem, option, painter, widget); -} -bool PythonQtShell_QCleanlooksStyle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::event(arg__1); -} -bool PythonQtShell_QCleanlooksStyle::eventFilter(QObject* o, QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::eventFilter(o, e); -} -QPixmap PythonQtShell_QCleanlooksStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::generatedIconPixmap(iconMode, pixmap, opt); -} -QStyle::SubControl PythonQtShell_QCleanlooksStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::hitTestComplexControl(cc, opt, pt, w); -} -QRect PythonQtShell_QCleanlooksStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::itemPixmapRect(r, flags, pixmap); -} -int PythonQtShell_QCleanlooksStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::pixelMetric(metric, option, widget); -} -void PythonQtShell_QCleanlooksStyle::polish(QApplication* app) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&app}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::polish(app); -} -void PythonQtShell_QCleanlooksStyle::polish(QPalette& pal) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&pal}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::polish(pal); -} -void PythonQtShell_QCleanlooksStyle::polish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::polish(widget); -} -QSize PythonQtShell_QCleanlooksStyle::sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&type, (void*)&option, (void*)&size, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::sizeFromContents(type, option, size, widget); -} -QPalette PythonQtShell_QCleanlooksStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::standardPalette(); -} -QPixmap PythonQtShell_QCleanlooksStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -int PythonQtShell_QCleanlooksStyle::styleHint(QStyle::StyleHint hint, const QStyleOption* option, const QWidget* widget, QStyleHintReturn* returnData) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&option, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::styleHint(hint, option, widget, returnData); -} -QRect PythonQtShell_QCleanlooksStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::subControlRect(cc, opt, sc, widget); -} -QRect PythonQtShell_QCleanlooksStyle::subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCleanlooksStyle::subElementRect(r, opt, widget); -} -void PythonQtShell_QCleanlooksStyle::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::timerEvent(event); -} -void PythonQtShell_QCleanlooksStyle::unpolish(QApplication* app) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&app}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::unpolish(app); -} -void PythonQtShell_QCleanlooksStyle::unpolish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCleanlooksStyle::unpolish(widget); -} -QCleanlooksStyle* PythonQtWrapper_QCleanlooksStyle::new_QCleanlooksStyle() -{ -return new PythonQtShell_QCleanlooksStyle(); } - -void PythonQtWrapper_QCleanlooksStyle::drawComplexControl(QCleanlooksStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_drawComplexControl(control, option, painter, widget)); -} - -void PythonQtWrapper_QCleanlooksStyle::drawControl(QCleanlooksStyle* theWrappedObject, QStyle::ControlElement ce, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_drawControl(ce, option, painter, widget)); -} - -void PythonQtWrapper_QCleanlooksStyle::drawItemPixmap(QCleanlooksStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_drawItemPixmap(painter, rect, alignment, pixmap)); -} - -void PythonQtWrapper_QCleanlooksStyle::drawItemText(QCleanlooksStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_drawItemText(painter, rect, flags, pal, enabled, text, textRole)); -} - -void PythonQtWrapper_QCleanlooksStyle::drawPrimitive(QCleanlooksStyle* theWrappedObject, QStyle::PrimitiveElement elem, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_drawPrimitive(elem, option, painter, widget)); -} - -QPixmap PythonQtWrapper_QCleanlooksStyle::generatedIconPixmap(QCleanlooksStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_generatedIconPixmap(iconMode, pixmap, opt)); -} - -QStyle::SubControl PythonQtWrapper_QCleanlooksStyle::hitTestComplexControl(QCleanlooksStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_hitTestComplexControl(cc, opt, pt, w)); -} - -QRect PythonQtWrapper_QCleanlooksStyle::itemPixmapRect(QCleanlooksStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_itemPixmapRect(r, flags, pixmap)); -} - -int PythonQtWrapper_QCleanlooksStyle::pixelMetric(QCleanlooksStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_pixelMetric(metric, option, widget)); -} - -void PythonQtWrapper_QCleanlooksStyle::polish(QCleanlooksStyle* theWrappedObject, QApplication* app) -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_polish(app)); -} - -void PythonQtWrapper_QCleanlooksStyle::polish(QCleanlooksStyle* theWrappedObject, QPalette& pal) -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_polish(pal)); -} - -void PythonQtWrapper_QCleanlooksStyle::polish(QCleanlooksStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_polish(widget)); -} - -QSize PythonQtWrapper_QCleanlooksStyle::sizeFromContents(QCleanlooksStyle* theWrappedObject, QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_sizeFromContents(type, option, size, widget)); -} - -QPalette PythonQtWrapper_QCleanlooksStyle::standardPalette(QCleanlooksStyle* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_standardPalette()); -} - -int PythonQtWrapper_QCleanlooksStyle::styleHint(QCleanlooksStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* option, const QWidget* widget, QStyleHintReturn* returnData) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_styleHint(hint, option, widget, returnData)); -} - -QRect PythonQtWrapper_QCleanlooksStyle::subControlRect(QCleanlooksStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_subControlRect(cc, opt, sc, widget)); -} - -QRect PythonQtWrapper_QCleanlooksStyle::subElementRect(QCleanlooksStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_subElementRect(r, opt, widget)); -} - -void PythonQtWrapper_QCleanlooksStyle::unpolish(QCleanlooksStyle* theWrappedObject, QApplication* app) -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_unpolish(app)); -} - -void PythonQtWrapper_QCleanlooksStyle::unpolish(QCleanlooksStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QCleanlooksStyle*)theWrappedObject)->promoted_unpolish(widget)); -} - - - -void PythonQtWrapper_QClipboard::clear(QClipboard* theWrappedObject, QClipboard::Mode mode) -{ - ( theWrappedObject->clear(mode)); -} - -bool PythonQtWrapper_QClipboard::event(QClipboard* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QClipboard*)theWrappedObject)->promoted_event(arg__1)); -} - -QImage PythonQtWrapper_QClipboard::image(QClipboard* theWrappedObject, QClipboard::Mode mode) const -{ - return ( theWrappedObject->image(mode)); -} - -const QMimeData* PythonQtWrapper_QClipboard::mimeData(QClipboard* theWrappedObject, QClipboard::Mode mode) const -{ - return ( theWrappedObject->mimeData(mode)); -} - -bool PythonQtWrapper_QClipboard::ownsClipboard(QClipboard* theWrappedObject) const -{ - return ( theWrappedObject->ownsClipboard()); -} - -bool PythonQtWrapper_QClipboard::ownsFindBuffer(QClipboard* theWrappedObject) const -{ - return ( theWrappedObject->ownsFindBuffer()); -} - -bool PythonQtWrapper_QClipboard::ownsSelection(QClipboard* theWrappedObject) const -{ - return ( theWrappedObject->ownsSelection()); -} - -QPixmap PythonQtWrapper_QClipboard::pixmap(QClipboard* theWrappedObject, QClipboard::Mode mode) const -{ - return ( theWrappedObject->pixmap(mode)); -} - -void PythonQtWrapper_QClipboard::setImage(QClipboard* theWrappedObject, const QImage& arg__1, QClipboard::Mode mode) -{ - ( theWrappedObject->setImage(arg__1, mode)); -} - -void PythonQtWrapper_QClipboard::setMimeData(QClipboard* theWrappedObject, QMimeData* data, QClipboard::Mode mode) -{ - ( theWrappedObject->setMimeData(data, mode)); -} - -void PythonQtWrapper_QClipboard::setPixmap(QClipboard* theWrappedObject, const QPixmap& arg__1, QClipboard::Mode mode) -{ - ( theWrappedObject->setPixmap(arg__1, mode)); -} - -void PythonQtWrapper_QClipboard::setText(QClipboard* theWrappedObject, const QString& arg__1, QClipboard::Mode mode) -{ - ( theWrappedObject->setText(arg__1, mode)); -} - -bool PythonQtWrapper_QClipboard::supportsFindBuffer(QClipboard* theWrappedObject) const -{ - return ( theWrappedObject->supportsFindBuffer()); -} - -bool PythonQtWrapper_QClipboard::supportsSelection(QClipboard* theWrappedObject) const -{ - return ( theWrappedObject->supportsSelection()); -} - -QString PythonQtWrapper_QClipboard::text(QClipboard* theWrappedObject, QClipboard::Mode mode) const -{ - return ( theWrappedObject->text(mode)); -} - -QString PythonQtWrapper_QClipboard::text(QClipboard* theWrappedObject, QString& subtype, QClipboard::Mode mode) const -{ - return ( theWrappedObject->text(subtype, mode)); -} - - - - - -QCloseEvent* PythonQtWrapper_QCloseEvent::new_QCloseEvent() -{ -return new QCloseEvent(); } - - - -void PythonQtShell_QColorDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::accept(); -} -void PythonQtShell_QColorDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::actionEvent(arg__1); -} -void PythonQtShell_QColorDialog::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::changeEvent(event); -} -void PythonQtShell_QColorDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::childEvent(arg__1); -} -void PythonQtShell_QColorDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::closeEvent(arg__1); -} -void PythonQtShell_QColorDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QColorDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::customEvent(arg__1); -} -int PythonQtShell_QColorDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::devType(); -} -void PythonQtShell_QColorDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::done(result); -} -void PythonQtShell_QColorDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QColorDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QColorDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QColorDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::dropEvent(arg__1); -} -void PythonQtShell_QColorDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::enterEvent(arg__1); -} -bool PythonQtShell_QColorDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::event(arg__1); -} -bool PythonQtShell_QColorDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QColorDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QColorDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::focusNextPrevChild(next); -} -void PythonQtShell_QColorDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QColorDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::heightForWidth(arg__1); -} -void PythonQtShell_QColorDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::hideEvent(arg__1); -} -void PythonQtShell_QColorDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QColorDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QColorDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QColorDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QColorDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::languageChange(); -} -void PythonQtShell_QColorDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::leaveEvent(arg__1); -} -int PythonQtShell_QColorDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::metric(arg__1); -} -void PythonQtShell_QColorDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QColorDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QColorDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QColorDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QColorDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QColorDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColorDialog::paintEngine(); -} -void PythonQtShell_QColorDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::paintEvent(arg__1); -} -void PythonQtShell_QColorDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::reject(); -} -void PythonQtShell_QColorDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::resizeEvent(arg__1); -} -void PythonQtShell_QColorDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::showEvent(arg__1); -} -void PythonQtShell_QColorDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::tabletEvent(arg__1); -} -void PythonQtShell_QColorDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::timerEvent(arg__1); -} -void PythonQtShell_QColorDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColorDialog::wheelEvent(arg__1); -} -QColorDialog* PythonQtWrapper_QColorDialog::new_QColorDialog(QWidget* parent) -{ -return new PythonQtShell_QColorDialog(parent); } - -QColorDialog* PythonQtWrapper_QColorDialog::new_QColorDialog(const QColor& initial, QWidget* parent) -{ -return new PythonQtShell_QColorDialog(initial, parent); } - -void PythonQtWrapper_QColorDialog::changeEvent(QColorDialog* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QColorDialog*)theWrappedObject)->promoted_changeEvent(event)); -} - -QColor PythonQtWrapper_QColorDialog::currentColor(QColorDialog* theWrappedObject) const -{ - return ( theWrappedObject->currentColor()); -} - -unsigned int PythonQtWrapper_QColorDialog::static_QColorDialog_customColor(int index) -{ - return (QColorDialog::customColor(index)); -} - -int PythonQtWrapper_QColorDialog::static_QColorDialog_customCount() -{ - return (QColorDialog::customCount()); -} - -void PythonQtWrapper_QColorDialog::done(QColorDialog* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QColorDialog*)theWrappedObject)->promoted_done(result)); -} - -QColor PythonQtWrapper_QColorDialog::static_QColorDialog_getColor(const QColor& initial, QWidget* parent) -{ - return (QColorDialog::getColor(initial, parent)); -} - -QColor PythonQtWrapper_QColorDialog::static_QColorDialog_getColor(const QColor& initial, QWidget* parent, const QString& title, QColorDialog::ColorDialogOptions options) -{ - return (QColorDialog::getColor(initial, parent, title, options)); -} - -unsigned int PythonQtWrapper_QColorDialog::static_QColorDialog_getRgba(unsigned int rgba, bool* ok, QWidget* parent) -{ - return (QColorDialog::getRgba(rgba, ok, parent)); -} - -void PythonQtWrapper_QColorDialog::open(QColorDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QColorDialog::open(QColorDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QColorDialog::ColorDialogOptions PythonQtWrapper_QColorDialog::options(QColorDialog* theWrappedObject) const -{ - return ( theWrappedObject->options()); -} - -QColor PythonQtWrapper_QColorDialog::selectedColor(QColorDialog* theWrappedObject) const -{ - return ( theWrappedObject->selectedColor()); -} - -void PythonQtWrapper_QColorDialog::setCurrentColor(QColorDialog* theWrappedObject, const QColor& color) -{ - ( theWrappedObject->setCurrentColor(color)); -} - -void PythonQtWrapper_QColorDialog::static_QColorDialog_setCustomColor(int index, unsigned int color) -{ - (QColorDialog::setCustomColor(index, color)); -} - -void PythonQtWrapper_QColorDialog::setOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QColorDialog::setOptions(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOptions options) -{ - ( theWrappedObject->setOptions(options)); -} - -void PythonQtWrapper_QColorDialog::static_QColorDialog_setStandardColor(int index, unsigned int color) -{ - (QColorDialog::setStandardColor(index, color)); -} - -void PythonQtWrapper_QColorDialog::setVisible(QColorDialog* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -bool PythonQtWrapper_QColorDialog::testOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option) const -{ - return ( theWrappedObject->testOption(option)); -} - - - -void PythonQtShell_QColumnView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::actionEvent(arg__1); -} -void PythonQtShell_QColumnView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::changeEvent(arg__1); -} -void PythonQtShell_QColumnView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::childEvent(arg__1); -} -void PythonQtShell_QColumnView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::closeEditor(editor, hint); -} -void PythonQtShell_QColumnView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::closeEvent(arg__1); -} -void PythonQtShell_QColumnView::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::commitData(editor); -} -void PythonQtShell_QColumnView::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::contextMenuEvent(arg__1); -} -QAbstractItemView* PythonQtShell_QColumnView::createColumn(const QModelIndex& rootIndex) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractItemView*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QAbstractItemView* returnValue = 0; - void* args[2] = {NULL, (void*)&rootIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createColumn", methodInfo, result); - } else { - returnValue = *((QAbstractItemView**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::createColumn(rootIndex); -} -void PythonQtShell_QColumnView::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::currentChanged(current, previous); -} -void PythonQtShell_QColumnView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::customEvent(arg__1); -} -void PythonQtShell_QColumnView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QColumnView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::devType(); -} -void PythonQtShell_QColumnView::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::doItemsLayout(); -} -void PythonQtShell_QColumnView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QColumnView::dragEnterEvent(event); -} -void PythonQtShell_QColumnView::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QColumnView::dragLeaveEvent(event); -} -void PythonQtShell_QColumnView::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QColumnView::dragMoveEvent(event); -} -void PythonQtShell_QColumnView::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QColumnView::dropEvent(event); -} -bool PythonQtShell_QColumnView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::edit(index, trigger, event); -} -void PythonQtShell_QColumnView::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::editorDestroyed(editor); -} -void PythonQtShell_QColumnView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::enterEvent(arg__1); -} -bool PythonQtShell_QColumnView::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::event(event); -} -bool PythonQtShell_QColumnView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QColumnView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::focusInEvent(event); -} -bool PythonQtShell_QColumnView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::focusNextPrevChild(next); -} -void PythonQtShell_QColumnView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::focusOutEvent(event); -} -int PythonQtShell_QColumnView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::heightForWidth(arg__1); -} -void PythonQtShell_QColumnView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::hideEvent(arg__1); -} -int PythonQtShell_QColumnView::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::horizontalOffset(); -} -void PythonQtShell_QColumnView::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::horizontalScrollbarAction(action); -} -void PythonQtShell_QColumnView::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QColumnView::indexAt(const QPoint& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::indexAt(point); -} -void PythonQtShell_QColumnView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QColumnView::inputMethodEvent(event); -} -QVariant PythonQtShell_QColumnView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::inputMethodQuery(query); -} -bool PythonQtShell_QColumnView::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::isIndexHidden(index); -} -void PythonQtShell_QColumnView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::keyPressEvent(event); -} -void PythonQtShell_QColumnView::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::keyReleaseEvent(arg__1); -} -void PythonQtShell_QColumnView::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::keyboardSearch(search); -} -void PythonQtShell_QColumnView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::languageChange(); -} -void PythonQtShell_QColumnView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::leaveEvent(arg__1); -} -int PythonQtShell_QColumnView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::metric(arg__1); -} -void PythonQtShell_QColumnView::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::mouseDoubleClickEvent(event); -} -void PythonQtShell_QColumnView::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::mouseMoveEvent(event); -} -void PythonQtShell_QColumnView::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::mousePressEvent(event); -} -void PythonQtShell_QColumnView::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::mouseReleaseEvent(event); -} -void PythonQtShell_QColumnView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QColumnView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::paintEngine(); -} -void PythonQtShell_QColumnView::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::paintEvent(arg__1); -} -void PythonQtShell_QColumnView::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::reset(); -} -void PythonQtShell_QColumnView::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::resizeEvent(event); -} -void PythonQtShell_QColumnView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QColumnView::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::rowsInserted(parent, start, end); -} -void PythonQtShell_QColumnView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QColumnView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QColumnView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::scrollTo(index, hint); -} -void PythonQtShell_QColumnView::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::selectAll(); -} -QList PythonQtShell_QColumnView::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::selectedIndexes(); -} -void PythonQtShell_QColumnView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QColumnView::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::selectionCommand(index, event); -} -void PythonQtShell_QColumnView::setModel(QAbstractItemModel* model) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractItemModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&model}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::setModel(model); -} -void PythonQtShell_QColumnView::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::setRootIndex(index); -} -void PythonQtShell_QColumnView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::setSelection(rect, command); -} -void PythonQtShell_QColumnView::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::setSelectionModel(selectionModel); -} -void PythonQtShell_QColumnView::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::showEvent(arg__1); -} -int PythonQtShell_QColumnView::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::sizeHintForColumn(column); -} -int PythonQtShell_QColumnView::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::sizeHintForRow(row); -} -void PythonQtShell_QColumnView::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::startDrag(supportedActions); -} -void PythonQtShell_QColumnView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::tabletEvent(arg__1); -} -void PythonQtShell_QColumnView::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::timerEvent(event); -} -void PythonQtShell_QColumnView::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::updateEditorData(); -} -void PythonQtShell_QColumnView::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::updateEditorGeometries(); -} -void PythonQtShell_QColumnView::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::updateGeometries(); -} -int PythonQtShell_QColumnView::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::verticalOffset(); -} -void PythonQtShell_QColumnView::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::verticalScrollbarAction(action); -} -void PythonQtShell_QColumnView::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QColumnView::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::viewOptions(); -} -bool PythonQtShell_QColumnView::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::viewportEvent(event); -} -QRect PythonQtShell_QColumnView::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::visualRect(index); -} -QRegion PythonQtShell_QColumnView::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QColumnView::visualRegionForSelection(selection); -} -void PythonQtShell_QColumnView::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QColumnView::wheelEvent(arg__1); -} -QColumnView* PythonQtWrapper_QColumnView::new_QColumnView(QWidget* parent) -{ -return new PythonQtShell_QColumnView(parent); } - -QList PythonQtWrapper_QColumnView::columnWidths(QColumnView* theWrappedObject) const -{ - return ( theWrappedObject->columnWidths()); -} - -QAbstractItemView* PythonQtWrapper_QColumnView::createColumn(QColumnView* theWrappedObject, const QModelIndex& rootIndex) -{ - return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_createColumn(rootIndex)); -} - -void PythonQtWrapper_QColumnView::currentChanged(QColumnView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_currentChanged(current, previous)); -} - -int PythonQtWrapper_QColumnView::horizontalOffset(QColumnView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_horizontalOffset()); -} - -QModelIndex PythonQtWrapper_QColumnView::indexAt(QColumnView* theWrappedObject, const QPoint& point) const -{ - return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_indexAt(point)); -} - -bool PythonQtWrapper_QColumnView::isIndexHidden(QColumnView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_isIndexHidden(index)); -} - -QWidget* PythonQtWrapper_QColumnView::previewWidget(QColumnView* theWrappedObject) const -{ - return ( theWrappedObject->previewWidget()); -} - -void PythonQtWrapper_QColumnView::resizeEvent(QColumnView* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_resizeEvent(event)); -} - -bool PythonQtWrapper_QColumnView::resizeGripsVisible(QColumnView* theWrappedObject) const -{ - return ( theWrappedObject->resizeGripsVisible()); -} - -void PythonQtWrapper_QColumnView::rowsInserted(QColumnView* theWrappedObject, const QModelIndex& parent, int start, int end) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); -} - -void PythonQtWrapper_QColumnView::scrollContentsBy(QColumnView* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QColumnView::scrollTo(QColumnView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_scrollTo(index, hint)); -} - -void PythonQtWrapper_QColumnView::selectAll(QColumnView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_selectAll()); -} - -void PythonQtWrapper_QColumnView::setColumnWidths(QColumnView* theWrappedObject, const QList& list) -{ - ( theWrappedObject->setColumnWidths(list)); -} - -void PythonQtWrapper_QColumnView::setModel(QColumnView* theWrappedObject, QAbstractItemModel* model) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setModel(model)); -} - -void PythonQtWrapper_QColumnView::setPreviewWidget(QColumnView* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setPreviewWidget(widget)); -} - -void PythonQtWrapper_QColumnView::setResizeGripsVisible(QColumnView* theWrappedObject, bool visible) -{ - ( theWrappedObject->setResizeGripsVisible(visible)); -} - -void PythonQtWrapper_QColumnView::setRootIndex(QColumnView* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setRootIndex(index)); -} - -void PythonQtWrapper_QColumnView::setSelection(QColumnView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setSelection(rect, command)); -} - -void PythonQtWrapper_QColumnView::setSelectionModel(QColumnView* theWrappedObject, QItemSelectionModel* selectionModel) -{ - ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); -} - -QSize PythonQtWrapper_QColumnView::sizeHint(QColumnView* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QColumnView::verticalOffset(QColumnView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_verticalOffset()); -} - -QRect PythonQtWrapper_QColumnView::visualRect(QColumnView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_visualRect(index)); -} - -QRegion PythonQtWrapper_QColumnView::visualRegionForSelection(QColumnView* theWrappedObject, const QItemSelection& selection) const -{ - return ( ((PythonQtPublicPromoter_QColumnView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); -} - - - -void PythonQtShell_QComboBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::actionEvent(arg__1); -} -void PythonQtShell_QComboBox::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::changeEvent(e); -} -void PythonQtShell_QComboBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::childEvent(arg__1); -} -void PythonQtShell_QComboBox::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::closeEvent(arg__1); -} -void PythonQtShell_QComboBox::contextMenuEvent(QContextMenuEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::contextMenuEvent(e); -} -void PythonQtShell_QComboBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::customEvent(arg__1); -} -int PythonQtShell_QComboBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::devType(); -} -void PythonQtShell_QComboBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QComboBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QComboBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QComboBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::dropEvent(arg__1); -} -void PythonQtShell_QComboBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::enterEvent(arg__1); -} -bool PythonQtShell_QComboBox::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::event(event); -} -bool PythonQtShell_QComboBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QComboBox::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::focusInEvent(e); -} -bool PythonQtShell_QComboBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::focusNextPrevChild(next); -} -void PythonQtShell_QComboBox::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::focusOutEvent(e); -} -int PythonQtShell_QComboBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::heightForWidth(arg__1); -} -void PythonQtShell_QComboBox::hideEvent(QHideEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::hideEvent(e); -} -void PythonQtShell_QComboBox::hidePopup() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hidePopup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::hidePopup(); -} -void PythonQtShell_QComboBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QComboBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QComboBox::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::keyPressEvent(e); -} -void PythonQtShell_QComboBox::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::keyReleaseEvent(e); -} -void PythonQtShell_QComboBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::languageChange(); -} -void PythonQtShell_QComboBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::leaveEvent(arg__1); -} -int PythonQtShell_QComboBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::metric(arg__1); -} -void PythonQtShell_QComboBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QComboBox::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::mouseMoveEvent(arg__1); -} -void PythonQtShell_QComboBox::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::mousePressEvent(e); -} -void PythonQtShell_QComboBox::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::mouseReleaseEvent(e); -} -void PythonQtShell_QComboBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QComboBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QComboBox::paintEngine(); -} -void PythonQtShell_QComboBox::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::paintEvent(e); -} -void PythonQtShell_QComboBox::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::resizeEvent(e); -} -void PythonQtShell_QComboBox::showEvent(QShowEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::showEvent(e); -} -void PythonQtShell_QComboBox::showPopup() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showPopup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::showPopup(); -} -void PythonQtShell_QComboBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::tabletEvent(arg__1); -} -void PythonQtShell_QComboBox::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::timerEvent(arg__1); -} -void PythonQtShell_QComboBox::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QComboBox::wheelEvent(e); -} -QComboBox* PythonQtWrapper_QComboBox::new_QComboBox(QWidget* parent) -{ -return new PythonQtShell_QComboBox(parent); } - -void PythonQtWrapper_QComboBox::addItem(QComboBox* theWrappedObject, const QIcon& icon, const QString& text, const QVariant& userData) -{ - ( theWrappedObject->addItem(icon, text, userData)); -} - -void PythonQtWrapper_QComboBox::addItem(QComboBox* theWrappedObject, const QString& text, const QVariant& userData) -{ - ( theWrappedObject->addItem(text, userData)); -} - -void PythonQtWrapper_QComboBox::addItems(QComboBox* theWrappedObject, const QStringList& texts) -{ - ( theWrappedObject->addItems(texts)); -} - -void PythonQtWrapper_QComboBox::changeEvent(QComboBox* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_changeEvent(e)); -} - -QCompleter* PythonQtWrapper_QComboBox::completer(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->completer()); -} - -void PythonQtWrapper_QComboBox::contextMenuEvent(QComboBox* theWrappedObject, QContextMenuEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_contextMenuEvent(e)); -} - -int PythonQtWrapper_QComboBox::count(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QComboBox::currentIndex(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -QString PythonQtWrapper_QComboBox::currentText(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->currentText()); -} - -bool PythonQtWrapper_QComboBox::duplicatesEnabled(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->duplicatesEnabled()); -} - -bool PythonQtWrapper_QComboBox::event(QComboBox* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_event(event)); -} - -int PythonQtWrapper_QComboBox::findData(QComboBox* theWrappedObject, const QVariant& data, int role, Qt::MatchFlags flags) const -{ - return ( theWrappedObject->findData(data, role, flags)); -} - -int PythonQtWrapper_QComboBox::findText(QComboBox* theWrappedObject, const QString& text, Qt::MatchFlags flags) const -{ - return ( theWrappedObject->findText(text, flags)); -} - -void PythonQtWrapper_QComboBox::focusInEvent(QComboBox* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_focusInEvent(e)); -} - -void PythonQtWrapper_QComboBox::focusOutEvent(QComboBox* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_focusOutEvent(e)); -} - -bool PythonQtWrapper_QComboBox::hasFrame(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->hasFrame()); -} - -void PythonQtWrapper_QComboBox::hideEvent(QComboBox* theWrappedObject, QHideEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_hideEvent(e)); -} - -void PythonQtWrapper_QComboBox::hidePopup(QComboBox* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_hidePopup()); -} - -QSize PythonQtWrapper_QComboBox::iconSize(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->iconSize()); -} - -void PythonQtWrapper_QComboBox::inputMethodEvent(QComboBox* theWrappedObject, QInputMethodEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); -} - -QVariant PythonQtWrapper_QComboBox::inputMethodQuery(QComboBox* theWrappedObject, Qt::InputMethodQuery arg__1) const -{ - return ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); -} - -void PythonQtWrapper_QComboBox::insertItem(QComboBox* theWrappedObject, int index, const QIcon& icon, const QString& text, const QVariant& userData) -{ - ( theWrappedObject->insertItem(index, icon, text, userData)); -} - -void PythonQtWrapper_QComboBox::insertItem(QComboBox* theWrappedObject, int index, const QString& text, const QVariant& userData) -{ - ( theWrappedObject->insertItem(index, text, userData)); -} - -void PythonQtWrapper_QComboBox::insertItems(QComboBox* theWrappedObject, int index, const QStringList& texts) -{ - ( theWrappedObject->insertItems(index, texts)); -} - -QComboBox::InsertPolicy PythonQtWrapper_QComboBox::insertPolicy(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->insertPolicy()); -} - -void PythonQtWrapper_QComboBox::insertSeparator(QComboBox* theWrappedObject, int index) -{ - ( theWrappedObject->insertSeparator(index)); -} - -bool PythonQtWrapper_QComboBox::isEditable(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->isEditable()); -} - -QVariant PythonQtWrapper_QComboBox::itemData(QComboBox* theWrappedObject, int index, int role) const -{ - return ( theWrappedObject->itemData(index, role)); -} - -QAbstractItemDelegate* PythonQtWrapper_QComboBox::itemDelegate(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->itemDelegate()); -} - -QIcon PythonQtWrapper_QComboBox::itemIcon(QComboBox* theWrappedObject, int index) const -{ - return ( theWrappedObject->itemIcon(index)); -} - -QString PythonQtWrapper_QComboBox::itemText(QComboBox* theWrappedObject, int index) const -{ - return ( theWrappedObject->itemText(index)); -} - -void PythonQtWrapper_QComboBox::keyPressEvent(QComboBox* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_keyPressEvent(e)); -} - -void PythonQtWrapper_QComboBox::keyReleaseEvent(QComboBox* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_keyReleaseEvent(e)); -} - -QLineEdit* PythonQtWrapper_QComboBox::lineEdit(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->lineEdit()); -} - -int PythonQtWrapper_QComboBox::maxCount(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->maxCount()); -} - -int PythonQtWrapper_QComboBox::maxVisibleItems(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->maxVisibleItems()); -} - -int PythonQtWrapper_QComboBox::minimumContentsLength(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->minimumContentsLength()); -} - -QSize PythonQtWrapper_QComboBox::minimumSizeHint(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -QAbstractItemModel* PythonQtWrapper_QComboBox::model(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -int PythonQtWrapper_QComboBox::modelColumn(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->modelColumn()); -} - -void PythonQtWrapper_QComboBox::mousePressEvent(QComboBox* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_mousePressEvent(e)); -} - -void PythonQtWrapper_QComboBox::mouseReleaseEvent(QComboBox* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_mouseReleaseEvent(e)); -} - -void PythonQtWrapper_QComboBox::paintEvent(QComboBox* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_paintEvent(e)); -} - -void PythonQtWrapper_QComboBox::removeItem(QComboBox* theWrappedObject, int index) -{ - ( theWrappedObject->removeItem(index)); -} - -void PythonQtWrapper_QComboBox::resizeEvent(QComboBox* theWrappedObject, QResizeEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_resizeEvent(e)); -} - -QModelIndex PythonQtWrapper_QComboBox::rootModelIndex(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->rootModelIndex()); -} - -void PythonQtWrapper_QComboBox::setCompleter(QComboBox* theWrappedObject, QCompleter* c) -{ - ( theWrappedObject->setCompleter(c)); -} - -void PythonQtWrapper_QComboBox::setDuplicatesEnabled(QComboBox* theWrappedObject, bool enable) -{ - ( theWrappedObject->setDuplicatesEnabled(enable)); -} - -void PythonQtWrapper_QComboBox::setEditable(QComboBox* theWrappedObject, bool editable) -{ - ( theWrappedObject->setEditable(editable)); -} - -void PythonQtWrapper_QComboBox::setFrame(QComboBox* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setFrame(arg__1)); -} - -void PythonQtWrapper_QComboBox::setIconSize(QComboBox* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setIconSize(size)); -} - -void PythonQtWrapper_QComboBox::setInsertPolicy(QComboBox* theWrappedObject, QComboBox::InsertPolicy policy) -{ - ( theWrappedObject->setInsertPolicy(policy)); -} - -void PythonQtWrapper_QComboBox::setItemData(QComboBox* theWrappedObject, int index, const QVariant& value, int role) -{ - ( theWrappedObject->setItemData(index, value, role)); -} - -void PythonQtWrapper_QComboBox::setItemDelegate(QComboBox* theWrappedObject, QAbstractItemDelegate* delegate) -{ - ( theWrappedObject->setItemDelegate(delegate)); -} - -void PythonQtWrapper_QComboBox::setItemIcon(QComboBox* theWrappedObject, int index, const QIcon& icon) -{ - ( theWrappedObject->setItemIcon(index, icon)); -} - -void PythonQtWrapper_QComboBox::setItemText(QComboBox* theWrappedObject, int index, const QString& text) -{ - ( theWrappedObject->setItemText(index, text)); -} - -void PythonQtWrapper_QComboBox::setLineEdit(QComboBox* theWrappedObject, QLineEdit* edit) -{ - ( theWrappedObject->setLineEdit(edit)); -} - -void PythonQtWrapper_QComboBox::setMaxCount(QComboBox* theWrappedObject, int max) -{ - ( theWrappedObject->setMaxCount(max)); -} - -void PythonQtWrapper_QComboBox::setMaxVisibleItems(QComboBox* theWrappedObject, int maxItems) -{ - ( theWrappedObject->setMaxVisibleItems(maxItems)); -} - -void PythonQtWrapper_QComboBox::setMinimumContentsLength(QComboBox* theWrappedObject, int characters) -{ - ( theWrappedObject->setMinimumContentsLength(characters)); -} - -void PythonQtWrapper_QComboBox::setModel(QComboBox* theWrappedObject, QAbstractItemModel* model) -{ - ( theWrappedObject->setModel(model)); -} - -void PythonQtWrapper_QComboBox::setModelColumn(QComboBox* theWrappedObject, int visibleColumn) -{ - ( theWrappedObject->setModelColumn(visibleColumn)); -} - -void PythonQtWrapper_QComboBox::setRootModelIndex(QComboBox* theWrappedObject, const QModelIndex& index) -{ - ( theWrappedObject->setRootModelIndex(index)); -} - -void PythonQtWrapper_QComboBox::setSizeAdjustPolicy(QComboBox* theWrappedObject, QComboBox::SizeAdjustPolicy policy) -{ - ( theWrappedObject->setSizeAdjustPolicy(policy)); -} - -void PythonQtWrapper_QComboBox::setValidator(QComboBox* theWrappedObject, const QValidator* v) -{ - ( theWrappedObject->setValidator(v)); -} - -void PythonQtWrapper_QComboBox::setView(QComboBox* theWrappedObject, QAbstractItemView* itemView) -{ - ( theWrappedObject->setView(itemView)); -} - -void PythonQtWrapper_QComboBox::showEvent(QComboBox* theWrappedObject, QShowEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_showEvent(e)); -} - -void PythonQtWrapper_QComboBox::showPopup(QComboBox* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_showPopup()); -} - -QComboBox::SizeAdjustPolicy PythonQtWrapper_QComboBox::sizeAdjustPolicy(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->sizeAdjustPolicy()); -} - -QSize PythonQtWrapper_QComboBox::sizeHint(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -const QValidator* PythonQtWrapper_QComboBox::validator(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->validator()); -} - -QAbstractItemView* PythonQtWrapper_QComboBox::view(QComboBox* theWrappedObject) const -{ - return ( theWrappedObject->view()); -} - -void PythonQtWrapper_QComboBox::wheelEvent(QComboBox* theWrappedObject, QWheelEvent* e) -{ - ( ((PythonQtPublicPromoter_QComboBox*)theWrappedObject)->promoted_wheelEvent(e)); -} - - - -void PythonQtShell_QCommandLinkButton::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::actionEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::changeEvent(e); -} -void PythonQtShell_QCommandLinkButton::checkStateSet() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::checkStateSet(); -} -void PythonQtShell_QCommandLinkButton::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::childEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::closeEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::contextMenuEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::customEvent(arg__1); -} -int PythonQtShell_QCommandLinkButton::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::devType(); -} -void PythonQtShell_QCommandLinkButton::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::dragEnterEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::dragLeaveEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::dragMoveEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::dropEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::enterEvent(arg__1); -} -bool PythonQtShell_QCommandLinkButton::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::event(e); -} -bool PythonQtShell_QCommandLinkButton::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QCommandLinkButton::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::focusInEvent(arg__1); -} -bool PythonQtShell_QCommandLinkButton::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::focusNextPrevChild(next); -} -void PythonQtShell_QCommandLinkButton::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::focusOutEvent(arg__1); -} -int PythonQtShell_QCommandLinkButton::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::heightForWidth(arg__1); -} -void PythonQtShell_QCommandLinkButton::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::hideEvent(arg__1); -} -bool PythonQtShell_QCommandLinkButton::hitButton(const QPoint& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::hitButton(pos); -} -void PythonQtShell_QCommandLinkButton::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QCommandLinkButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::inputMethodQuery(arg__1); -} -void PythonQtShell_QCommandLinkButton::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::keyPressEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::keyReleaseEvent(e); -} -void PythonQtShell_QCommandLinkButton::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::languageChange(); -} -void PythonQtShell_QCommandLinkButton::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::leaveEvent(arg__1); -} -int PythonQtShell_QCommandLinkButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::metric(arg__1); -} -void PythonQtShell_QCommandLinkButton::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::mouseMoveEvent(e); -} -void PythonQtShell_QCommandLinkButton::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::mousePressEvent(e); -} -void PythonQtShell_QCommandLinkButton::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::mouseReleaseEvent(e); -} -void PythonQtShell_QCommandLinkButton::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::moveEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::nextCheckState() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::nextCheckState(); -} -QPaintEngine* PythonQtShell_QCommandLinkButton::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommandLinkButton::paintEngine(); -} -void PythonQtShell_QCommandLinkButton::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::paintEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::resizeEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::showEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::tabletEvent(arg__1); -} -void PythonQtShell_QCommandLinkButton::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::timerEvent(e); -} -void PythonQtShell_QCommandLinkButton::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommandLinkButton::wheelEvent(arg__1); -} -QCommandLinkButton* PythonQtWrapper_QCommandLinkButton::new_QCommandLinkButton(QWidget* parent) -{ -return new PythonQtShell_QCommandLinkButton(parent); } - -QCommandLinkButton* PythonQtWrapper_QCommandLinkButton::new_QCommandLinkButton(const QString& text, QWidget* parent) -{ -return new PythonQtShell_QCommandLinkButton(text, parent); } - -QCommandLinkButton* PythonQtWrapper_QCommandLinkButton::new_QCommandLinkButton(const QString& text, const QString& description, QWidget* parent) -{ -return new PythonQtShell_QCommandLinkButton(text, description, parent); } - -QString PythonQtWrapper_QCommandLinkButton::description(QCommandLinkButton* theWrappedObject) const -{ - return ( theWrappedObject->description()); -} - -bool PythonQtWrapper_QCommandLinkButton::event(QCommandLinkButton* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QCommandLinkButton*)theWrappedObject)->promoted_event(e)); -} - -int PythonQtWrapper_QCommandLinkButton::heightForWidth(QCommandLinkButton* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QCommandLinkButton*)theWrappedObject)->promoted_heightForWidth(arg__1)); -} - -void PythonQtWrapper_QCommandLinkButton::paintEvent(QCommandLinkButton* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QCommandLinkButton*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QCommandLinkButton::setDescription(QCommandLinkButton* theWrappedObject, const QString& description) -{ - ( theWrappedObject->setDescription(description)); -} - - - -void PythonQtShell_QCommonStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::childEvent(arg__1); -} -void PythonQtShell_QCommonStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::customEvent(arg__1); -} -void PythonQtShell_QCommonStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::drawComplexControl(cc, opt, p, w); -} -void PythonQtShell_QCommonStyle::drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::drawControl(element, opt, p, w); -} -void PythonQtShell_QCommonStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QCommonStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QCommonStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&pe, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::drawPrimitive(pe, opt, p, w); -} -bool PythonQtShell_QCommonStyle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::event(arg__1); -} -bool PythonQtShell_QCommonStyle::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::eventFilter(arg__1, arg__2); -} -QPixmap PythonQtShell_QCommonStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::generatedIconPixmap(iconMode, pixmap, opt); -} -QStyle::SubControl PythonQtShell_QCommonStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::hitTestComplexControl(cc, opt, pt, w); -} -QRect PythonQtShell_QCommonStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::itemPixmapRect(r, flags, pixmap); -} -int PythonQtShell_QCommonStyle::pixelMetric(QStyle::PixelMetric m, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&m, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::pixelMetric(m, opt, widget); -} -void PythonQtShell_QCommonStyle::polish(QApplication* app) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&app}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::polish(app); -} -void PythonQtShell_QCommonStyle::polish(QPalette& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::polish(arg__1); -} -void PythonQtShell_QCommonStyle::polish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::polish(widget); -} -QSize PythonQtShell_QCommonStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&ct, (void*)&opt, (void*)&contentsSize, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget); -} -QPalette PythonQtShell_QCommonStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::standardPalette(); -} -QPixmap PythonQtShell_QCommonStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -int PythonQtShell_QCommonStyle::styleHint(QStyle::StyleHint sh, const QStyleOption* opt, const QWidget* w, QStyleHintReturn* shret) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&sh, (void*)&opt, (void*)&w, (void*)&shret}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::styleHint(sh, opt, w, shret); -} -QRect PythonQtShell_QCommonStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::subControlRect(cc, opt, sc, w); -} -QRect PythonQtShell_QCommonStyle::subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCommonStyle::subElementRect(r, opt, widget); -} -void PythonQtShell_QCommonStyle::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::timerEvent(arg__1); -} -void PythonQtShell_QCommonStyle::unpolish(QApplication* application) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&application}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::unpolish(application); -} -void PythonQtShell_QCommonStyle::unpolish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCommonStyle::unpolish(widget); -} -QCommonStyle* PythonQtWrapper_QCommonStyle::new_QCommonStyle() -{ -return new PythonQtShell_QCommonStyle(); } - -void PythonQtWrapper_QCommonStyle::drawComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_drawComplexControl(cc, opt, p, w)); -} - -void PythonQtWrapper_QCommonStyle::drawControl(QCommonStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_drawControl(element, opt, p, w)); -} - -void PythonQtWrapper_QCommonStyle::drawPrimitive(QCommonStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_drawPrimitive(pe, opt, p, w)); -} - -QPixmap PythonQtWrapper_QCommonStyle::generatedIconPixmap(QCommonStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ - return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_generatedIconPixmap(iconMode, pixmap, opt)); -} - -QStyle::SubControl PythonQtWrapper_QCommonStyle::hitTestComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const -{ - return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_hitTestComplexControl(cc, opt, pt, w)); -} - -int PythonQtWrapper_QCommonStyle::pixelMetric(QCommonStyle* theWrappedObject, QStyle::PixelMetric m, const QStyleOption* opt, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_pixelMetric(m, opt, widget)); -} - -void PythonQtWrapper_QCommonStyle::polish(QCommonStyle* theWrappedObject, QApplication* app) -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_polish(app)); -} - -void PythonQtWrapper_QCommonStyle::polish(QCommonStyle* theWrappedObject, QPalette& arg__1) -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QCommonStyle::polish(QCommonStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_polish(widget)); -} - -QSize PythonQtWrapper_QCommonStyle::sizeFromContents(QCommonStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_sizeFromContents(ct, opt, contentsSize, widget)); -} - -int PythonQtWrapper_QCommonStyle::styleHint(QCommonStyle* theWrappedObject, QStyle::StyleHint sh, const QStyleOption* opt, const QWidget* w, QStyleHintReturn* shret) const -{ - return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_styleHint(sh, opt, w, shret)); -} - -QRect PythonQtWrapper_QCommonStyle::subControlRect(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w) const -{ - return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_subControlRect(cc, opt, sc, w)); -} - -QRect PythonQtWrapper_QCommonStyle::subElementRect(QCommonStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_subElementRect(r, opt, widget)); -} - -void PythonQtWrapper_QCommonStyle::unpolish(QCommonStyle* theWrappedObject, QApplication* application) -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_unpolish(application)); -} - -void PythonQtWrapper_QCommonStyle::unpolish(QCommonStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QCommonStyle*)theWrappedObject)->promoted_unpolish(widget)); -} - - - -void PythonQtShell_QCompleter::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCompleter::childEvent(arg__1); -} -void PythonQtShell_QCompleter::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCompleter::customEvent(arg__1); -} -bool PythonQtShell_QCompleter::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCompleter::event(arg__1); -} -bool PythonQtShell_QCompleter::eventFilter(QObject* o, QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCompleter::eventFilter(o, e); -} -QString PythonQtShell_QCompleter::pathFromIndex(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pathFromIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pathFromIndex", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCompleter::pathFromIndex(index); -} -QStringList PythonQtShell_QCompleter::splitPath(const QString& path) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "splitPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QStringList returnValue; - void* args[2] = {NULL, (void*)&path}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("splitPath", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QCompleter::splitPath(path); -} -void PythonQtShell_QCompleter::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QCompleter::timerEvent(arg__1); -} -QCompleter* PythonQtWrapper_QCompleter::new_QCompleter(QAbstractItemModel* model, QObject* parent) -{ -return new PythonQtShell_QCompleter(model, parent); } - -QCompleter* PythonQtWrapper_QCompleter::new_QCompleter(QObject* parent) -{ -return new PythonQtShell_QCompleter(parent); } - -QCompleter* PythonQtWrapper_QCompleter::new_QCompleter(const QStringList& completions, QObject* parent) -{ -return new PythonQtShell_QCompleter(completions, parent); } - -Qt::CaseSensitivity PythonQtWrapper_QCompleter::caseSensitivity(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->caseSensitivity()); -} - -int PythonQtWrapper_QCompleter::completionColumn(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->completionColumn()); -} - -int PythonQtWrapper_QCompleter::completionCount(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->completionCount()); -} - -QCompleter::CompletionMode PythonQtWrapper_QCompleter::completionMode(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->completionMode()); -} - -QAbstractItemModel* PythonQtWrapper_QCompleter::completionModel(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->completionModel()); -} - -QString PythonQtWrapper_QCompleter::completionPrefix(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->completionPrefix()); -} - -int PythonQtWrapper_QCompleter::completionRole(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->completionRole()); -} - -QString PythonQtWrapper_QCompleter::currentCompletion(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->currentCompletion()); -} - -QModelIndex PythonQtWrapper_QCompleter::currentIndex(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -int PythonQtWrapper_QCompleter::currentRow(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->currentRow()); -} - -bool PythonQtWrapper_QCompleter::event(QCompleter* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QCompleter::eventFilter(QCompleter* theWrappedObject, QObject* o, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_eventFilter(o, e)); -} - -int PythonQtWrapper_QCompleter::maxVisibleItems(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->maxVisibleItems()); -} - -QAbstractItemModel* PythonQtWrapper_QCompleter::model(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -QCompleter::ModelSorting PythonQtWrapper_QCompleter::modelSorting(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->modelSorting()); -} - -QString PythonQtWrapper_QCompleter::pathFromIndex(QCompleter* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_pathFromIndex(index)); -} - -QAbstractItemView* PythonQtWrapper_QCompleter::popup(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->popup()); -} - -void PythonQtWrapper_QCompleter::setCaseSensitivity(QCompleter* theWrappedObject, Qt::CaseSensitivity caseSensitivity) -{ - ( theWrappedObject->setCaseSensitivity(caseSensitivity)); -} - -void PythonQtWrapper_QCompleter::setCompletionColumn(QCompleter* theWrappedObject, int column) -{ - ( theWrappedObject->setCompletionColumn(column)); -} - -void PythonQtWrapper_QCompleter::setCompletionMode(QCompleter* theWrappedObject, QCompleter::CompletionMode mode) -{ - ( theWrappedObject->setCompletionMode(mode)); -} - -void PythonQtWrapper_QCompleter::setCompletionRole(QCompleter* theWrappedObject, int role) -{ - ( theWrappedObject->setCompletionRole(role)); -} - -bool PythonQtWrapper_QCompleter::setCurrentRow(QCompleter* theWrappedObject, int row) -{ - return ( theWrappedObject->setCurrentRow(row)); -} - -void PythonQtWrapper_QCompleter::setMaxVisibleItems(QCompleter* theWrappedObject, int maxItems) -{ - ( theWrappedObject->setMaxVisibleItems(maxItems)); -} - -void PythonQtWrapper_QCompleter::setModel(QCompleter* theWrappedObject, QAbstractItemModel* c) -{ - ( theWrappedObject->setModel(c)); -} - -void PythonQtWrapper_QCompleter::setModelSorting(QCompleter* theWrappedObject, QCompleter::ModelSorting sorting) -{ - ( theWrappedObject->setModelSorting(sorting)); -} - -void PythonQtWrapper_QCompleter::setPopup(QCompleter* theWrappedObject, QAbstractItemView* popup) -{ - ( theWrappedObject->setPopup(popup)); -} - -void PythonQtWrapper_QCompleter::setWidget(QCompleter* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setWidget(widget)); -} - -QStringList PythonQtWrapper_QCompleter::splitPath(QCompleter* theWrappedObject, const QString& path) const -{ - return ( ((PythonQtPublicPromoter_QCompleter*)theWrappedObject)->promoted_splitPath(path)); -} - -QWidget* PythonQtWrapper_QCompleter::widget(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - -bool PythonQtWrapper_QCompleter::wrapAround(QCompleter* theWrappedObject) const -{ - return ( theWrappedObject->wrapAround()); -} - - - -QConicalGradient* PythonQtWrapper_QConicalGradient::new_QConicalGradient() -{ -return new QConicalGradient(); } - -QConicalGradient* PythonQtWrapper_QConicalGradient::new_QConicalGradient(const QPointF& center, qreal startAngle) -{ -return new QConicalGradient(center, startAngle); } - -QConicalGradient* PythonQtWrapper_QConicalGradient::new_QConicalGradient(qreal cx, qreal cy, qreal startAngle) -{ -return new QConicalGradient(cx, cy, startAngle); } - -qreal PythonQtWrapper_QConicalGradient::angle(QConicalGradient* theWrappedObject) const -{ - return ( theWrappedObject->angle()); -} - -QPointF PythonQtWrapper_QConicalGradient::center(QConicalGradient* theWrappedObject) const -{ - return ( theWrappedObject->center()); -} - -void PythonQtWrapper_QConicalGradient::setAngle(QConicalGradient* theWrappedObject, qreal angle) -{ - ( theWrappedObject->setAngle(angle)); -} - -void PythonQtWrapper_QConicalGradient::setCenter(QConicalGradient* theWrappedObject, const QPointF& center) -{ - ( theWrappedObject->setCenter(center)); -} - -void PythonQtWrapper_QConicalGradient::setCenter(QConicalGradient* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->setCenter(x, y)); -} - - - -QContextMenuEvent* PythonQtWrapper_QContextMenuEvent::new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos) -{ -return new PythonQtShell_QContextMenuEvent(reason, pos); } - -QContextMenuEvent* PythonQtWrapper_QContextMenuEvent::new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos) -{ -return new PythonQtShell_QContextMenuEvent(reason, pos, globalPos); } - -QContextMenuEvent* PythonQtWrapper_QContextMenuEvent::new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers) -{ -return new PythonQtShell_QContextMenuEvent(reason, pos, globalPos, modifiers); } - -const QPoint* PythonQtWrapper_QContextMenuEvent::globalPos(QContextMenuEvent* theWrappedObject) const -{ - return &( theWrappedObject->globalPos()); -} - -int PythonQtWrapper_QContextMenuEvent::globalX(QContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalX()); -} - -int PythonQtWrapper_QContextMenuEvent::globalY(QContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalY()); -} - -const QPoint* PythonQtWrapper_QContextMenuEvent::pos(QContextMenuEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - -QContextMenuEvent::Reason PythonQtWrapper_QContextMenuEvent::reason(QContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->reason()); -} - -int PythonQtWrapper_QContextMenuEvent::x(QContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QContextMenuEvent::y(QContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - - - -void PythonQtShell_QDataWidgetMapper::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDataWidgetMapper::childEvent(arg__1); -} -void PythonQtShell_QDataWidgetMapper::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDataWidgetMapper::customEvent(arg__1); -} -bool PythonQtShell_QDataWidgetMapper::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDataWidgetMapper::event(arg__1); -} -bool PythonQtShell_QDataWidgetMapper::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDataWidgetMapper::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDataWidgetMapper::setCurrentIndex(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setCurrentIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDataWidgetMapper::setCurrentIndex(index); -} -void PythonQtShell_QDataWidgetMapper::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDataWidgetMapper::timerEvent(arg__1); -} -QDataWidgetMapper* PythonQtWrapper_QDataWidgetMapper::new_QDataWidgetMapper(QObject* parent) -{ -return new PythonQtShell_QDataWidgetMapper(parent); } - -void PythonQtWrapper_QDataWidgetMapper::addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section) -{ - ( theWrappedObject->addMapping(widget, section)); -} - -void PythonQtWrapper_QDataWidgetMapper::addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section, const QByteArray& propertyName) -{ - ( theWrappedObject->addMapping(widget, section, propertyName)); -} - -void PythonQtWrapper_QDataWidgetMapper::clearMapping(QDataWidgetMapper* theWrappedObject) -{ - ( theWrappedObject->clearMapping()); -} - -int PythonQtWrapper_QDataWidgetMapper::currentIndex(QDataWidgetMapper* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -QAbstractItemDelegate* PythonQtWrapper_QDataWidgetMapper::itemDelegate(QDataWidgetMapper* theWrappedObject) const -{ - return ( theWrappedObject->itemDelegate()); -} - -QByteArray PythonQtWrapper_QDataWidgetMapper::mappedPropertyName(QDataWidgetMapper* theWrappedObject, QWidget* widget) const -{ - return ( theWrappedObject->mappedPropertyName(widget)); -} - -int PythonQtWrapper_QDataWidgetMapper::mappedSection(QDataWidgetMapper* theWrappedObject, QWidget* widget) const -{ - return ( theWrappedObject->mappedSection(widget)); -} - -QWidget* PythonQtWrapper_QDataWidgetMapper::mappedWidgetAt(QDataWidgetMapper* theWrappedObject, int section) const -{ - return ( theWrappedObject->mappedWidgetAt(section)); -} - -QAbstractItemModel* PythonQtWrapper_QDataWidgetMapper::model(QDataWidgetMapper* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -Qt::Orientation PythonQtWrapper_QDataWidgetMapper::orientation(QDataWidgetMapper* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QDataWidgetMapper::removeMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->removeMapping(widget)); -} - -QModelIndex PythonQtWrapper_QDataWidgetMapper::rootIndex(QDataWidgetMapper* theWrappedObject) const -{ - return ( theWrappedObject->rootIndex()); -} - -void PythonQtWrapper_QDataWidgetMapper::setItemDelegate(QDataWidgetMapper* theWrappedObject, QAbstractItemDelegate* delegate) -{ - ( theWrappedObject->setItemDelegate(delegate)); -} - -void PythonQtWrapper_QDataWidgetMapper::setModel(QDataWidgetMapper* theWrappedObject, QAbstractItemModel* model) -{ - ( theWrappedObject->setModel(model)); -} - -void PythonQtWrapper_QDataWidgetMapper::setOrientation(QDataWidgetMapper* theWrappedObject, Qt::Orientation aOrientation) -{ - ( theWrappedObject->setOrientation(aOrientation)); -} - -void PythonQtWrapper_QDataWidgetMapper::setRootIndex(QDataWidgetMapper* theWrappedObject, const QModelIndex& index) -{ - ( theWrappedObject->setRootIndex(index)); -} - -void PythonQtWrapper_QDataWidgetMapper::setSubmitPolicy(QDataWidgetMapper* theWrappedObject, QDataWidgetMapper::SubmitPolicy policy) -{ - ( theWrappedObject->setSubmitPolicy(policy)); -} - -QDataWidgetMapper::SubmitPolicy PythonQtWrapper_QDataWidgetMapper::submitPolicy(QDataWidgetMapper* theWrappedObject) const -{ - return ( theWrappedObject->submitPolicy()); -} - - - -void PythonQtShell_QDateEdit::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::actionEvent(arg__1); -} -void PythonQtShell_QDateEdit::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::changeEvent(event); -} -void PythonQtShell_QDateEdit::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::childEvent(arg__1); -} -void PythonQtShell_QDateEdit::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::clear(); -} -void PythonQtShell_QDateEdit::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::closeEvent(event); -} -void PythonQtShell_QDateEdit::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::contextMenuEvent(event); -} -void PythonQtShell_QDateEdit::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::customEvent(arg__1); -} -QDateTime PythonQtShell_QDateEdit::dateTimeFromText(const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dateTimeFromText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QDateTime" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QDateTime returnValue; - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dateTimeFromText", methodInfo, result); - } else { - returnValue = *((QDateTime*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::dateTimeFromText(text); -} -int PythonQtShell_QDateEdit::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::devType(); -} -void PythonQtShell_QDateEdit::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::dragEnterEvent(arg__1); -} -void PythonQtShell_QDateEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDateEdit::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::dragMoveEvent(arg__1); -} -void PythonQtShell_QDateEdit::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::dropEvent(arg__1); -} -void PythonQtShell_QDateEdit::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::enterEvent(arg__1); -} -bool PythonQtShell_QDateEdit::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::event(event); -} -bool PythonQtShell_QDateEdit::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDateEdit::fixup(QString& input) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&input}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::fixup(input); -} -void PythonQtShell_QDateEdit::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::focusInEvent(event); -} -bool PythonQtShell_QDateEdit::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::focusNextPrevChild(next); -} -void PythonQtShell_QDateEdit::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::focusOutEvent(event); -} -int PythonQtShell_QDateEdit::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::heightForWidth(arg__1); -} -void PythonQtShell_QDateEdit::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::hideEvent(event); -} -void PythonQtShell_QDateEdit::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDateEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::inputMethodQuery(arg__1); -} -void PythonQtShell_QDateEdit::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::keyPressEvent(event); -} -void PythonQtShell_QDateEdit::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::keyReleaseEvent(event); -} -void PythonQtShell_QDateEdit::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::languageChange(); -} -void PythonQtShell_QDateEdit::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::leaveEvent(arg__1); -} -int PythonQtShell_QDateEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::metric(arg__1); -} -void PythonQtShell_QDateEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDateEdit::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::mouseMoveEvent(event); -} -void PythonQtShell_QDateEdit::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::mousePressEvent(event); -} -void PythonQtShell_QDateEdit::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::mouseReleaseEvent(event); -} -void PythonQtShell_QDateEdit::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDateEdit::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::paintEngine(); -} -void PythonQtShell_QDateEdit::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::paintEvent(event); -} -void PythonQtShell_QDateEdit::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::resizeEvent(event); -} -void PythonQtShell_QDateEdit::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::showEvent(event); -} -void PythonQtShell_QDateEdit::stepBy(int steps) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::stepBy(steps); -} -QAbstractSpinBox::StepEnabled PythonQtShell_QDateEdit::stepEnabled() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); - } else { - returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::stepEnabled(); -} -void PythonQtShell_QDateEdit::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::tabletEvent(arg__1); -} -QString PythonQtShell_QDateEdit::textFromDateTime(const QDateTime& dt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromDateTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QDateTime&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&dt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("textFromDateTime", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::textFromDateTime(dt); -} -void PythonQtShell_QDateEdit::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateEdit::timerEvent(event); -} -QValidator::State PythonQtShell_QDateEdit::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateEdit::validate(input, pos); -} -void PythonQtShell_QDateEdit::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateEdit::wheelEvent(event); -} -QDateEdit* PythonQtWrapper_QDateEdit::new_QDateEdit(QWidget* parent) -{ -return new PythonQtShell_QDateEdit(parent); } - -QDateEdit* PythonQtWrapper_QDateEdit::new_QDateEdit(const QDate& date, QWidget* parent) -{ -return new PythonQtShell_QDateEdit(date, parent); } - - - -void PythonQtShell_QDateTimeEdit::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::actionEvent(arg__1); -} -void PythonQtShell_QDateTimeEdit::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::changeEvent(event); -} -void PythonQtShell_QDateTimeEdit::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::childEvent(arg__1); -} -void PythonQtShell_QDateTimeEdit::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::clear(); -} -void PythonQtShell_QDateTimeEdit::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::closeEvent(event); -} -void PythonQtShell_QDateTimeEdit::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::contextMenuEvent(event); -} -void PythonQtShell_QDateTimeEdit::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::customEvent(arg__1); -} -QDateTime PythonQtShell_QDateTimeEdit::dateTimeFromText(const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dateTimeFromText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QDateTime" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QDateTime returnValue; - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dateTimeFromText", methodInfo, result); - } else { - returnValue = *((QDateTime*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::dateTimeFromText(text); -} -int PythonQtShell_QDateTimeEdit::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::devType(); -} -void PythonQtShell_QDateTimeEdit::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::dragEnterEvent(arg__1); -} -void PythonQtShell_QDateTimeEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDateTimeEdit::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::dragMoveEvent(arg__1); -} -void PythonQtShell_QDateTimeEdit::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::dropEvent(arg__1); -} -void PythonQtShell_QDateTimeEdit::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::enterEvent(arg__1); -} -bool PythonQtShell_QDateTimeEdit::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::event(event); -} -bool PythonQtShell_QDateTimeEdit::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDateTimeEdit::fixup(QString& input) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&input}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::fixup(input); -} -void PythonQtShell_QDateTimeEdit::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::focusInEvent(event); -} -bool PythonQtShell_QDateTimeEdit::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::focusNextPrevChild(next); -} -void PythonQtShell_QDateTimeEdit::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::focusOutEvent(event); -} -int PythonQtShell_QDateTimeEdit::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::heightForWidth(arg__1); -} -void PythonQtShell_QDateTimeEdit::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::hideEvent(event); -} -void PythonQtShell_QDateTimeEdit::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDateTimeEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::inputMethodQuery(arg__1); -} -void PythonQtShell_QDateTimeEdit::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::keyPressEvent(event); -} -void PythonQtShell_QDateTimeEdit::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::keyReleaseEvent(event); -} -void PythonQtShell_QDateTimeEdit::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::languageChange(); -} -void PythonQtShell_QDateTimeEdit::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::leaveEvent(arg__1); -} -int PythonQtShell_QDateTimeEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::metric(arg__1); -} -void PythonQtShell_QDateTimeEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDateTimeEdit::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::mouseMoveEvent(event); -} -void PythonQtShell_QDateTimeEdit::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::mousePressEvent(event); -} -void PythonQtShell_QDateTimeEdit::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::mouseReleaseEvent(event); -} -void PythonQtShell_QDateTimeEdit::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDateTimeEdit::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::paintEngine(); -} -void PythonQtShell_QDateTimeEdit::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::paintEvent(event); -} -void PythonQtShell_QDateTimeEdit::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::resizeEvent(event); -} -void PythonQtShell_QDateTimeEdit::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::showEvent(event); -} -void PythonQtShell_QDateTimeEdit::stepBy(int steps) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::stepBy(steps); -} -QAbstractSpinBox::StepEnabled PythonQtShell_QDateTimeEdit::stepEnabled() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); - } else { - returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::stepEnabled(); -} -void PythonQtShell_QDateTimeEdit::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::tabletEvent(arg__1); -} -QString PythonQtShell_QDateTimeEdit::textFromDateTime(const QDateTime& dt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromDateTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QDateTime&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&dt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("textFromDateTime", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::textFromDateTime(dt); -} -void PythonQtShell_QDateTimeEdit::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDateTimeEdit::timerEvent(event); -} -QValidator::State PythonQtShell_QDateTimeEdit::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDateTimeEdit::validate(input, pos); -} -void PythonQtShell_QDateTimeEdit::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDateTimeEdit::wheelEvent(event); -} -QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(QWidget* parent) -{ -return new PythonQtShell_QDateTimeEdit(parent); } - -QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(const QDate& d, QWidget* parent) -{ -return new PythonQtShell_QDateTimeEdit(d, parent); } - -QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(const QDateTime& dt, QWidget* parent) -{ -return new PythonQtShell_QDateTimeEdit(dt, parent); } - -QDateTimeEdit* PythonQtWrapper_QDateTimeEdit::new_QDateTimeEdit(const QTime& t, QWidget* parent) -{ -return new PythonQtShell_QDateTimeEdit(t, parent); } - -bool PythonQtWrapper_QDateTimeEdit::calendarPopup(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->calendarPopup()); -} - -QCalendarWidget* PythonQtWrapper_QDateTimeEdit::calendarWidget(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->calendarWidget()); -} - -void PythonQtWrapper_QDateTimeEdit::clear(QDateTimeEdit* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_clear()); -} - -void PythonQtWrapper_QDateTimeEdit::clearMaximumDate(QDateTimeEdit* theWrappedObject) -{ - ( theWrappedObject->clearMaximumDate()); -} - -void PythonQtWrapper_QDateTimeEdit::clearMaximumDateTime(QDateTimeEdit* theWrappedObject) -{ - ( theWrappedObject->clearMaximumDateTime()); -} - -void PythonQtWrapper_QDateTimeEdit::clearMaximumTime(QDateTimeEdit* theWrappedObject) -{ - ( theWrappedObject->clearMaximumTime()); -} - -void PythonQtWrapper_QDateTimeEdit::clearMinimumDate(QDateTimeEdit* theWrappedObject) -{ - ( theWrappedObject->clearMinimumDate()); -} - -void PythonQtWrapper_QDateTimeEdit::clearMinimumDateTime(QDateTimeEdit* theWrappedObject) -{ - ( theWrappedObject->clearMinimumDateTime()); -} - -void PythonQtWrapper_QDateTimeEdit::clearMinimumTime(QDateTimeEdit* theWrappedObject) -{ - ( theWrappedObject->clearMinimumTime()); -} - -QDateTimeEdit::Section PythonQtWrapper_QDateTimeEdit::currentSection(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->currentSection()); -} - -int PythonQtWrapper_QDateTimeEdit::currentSectionIndex(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->currentSectionIndex()); -} - -QDate PythonQtWrapper_QDateTimeEdit::date(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->date()); -} - -QDateTime PythonQtWrapper_QDateTimeEdit::dateTime(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->dateTime()); -} - -QDateTime PythonQtWrapper_QDateTimeEdit::dateTimeFromText(QDateTimeEdit* theWrappedObject, const QString& text) const -{ - return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_dateTimeFromText(text)); -} - -QString PythonQtWrapper_QDateTimeEdit::displayFormat(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->displayFormat()); -} - -QDateTimeEdit::Sections PythonQtWrapper_QDateTimeEdit::displayedSections(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->displayedSections()); -} - -bool PythonQtWrapper_QDateTimeEdit::event(QDateTimeEdit* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QDateTimeEdit::fixup(QDateTimeEdit* theWrappedObject, QString& input) const -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_fixup(input)); -} - -void PythonQtWrapper_QDateTimeEdit::focusInEvent(QDateTimeEdit* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_focusInEvent(event)); -} - -bool PythonQtWrapper_QDateTimeEdit::focusNextPrevChild(QDateTimeEdit* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QDateTimeEdit::keyPressEvent(QDateTimeEdit* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -QDate PythonQtWrapper_QDateTimeEdit::maximumDate(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->maximumDate()); -} - -QDateTime PythonQtWrapper_QDateTimeEdit::maximumDateTime(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->maximumDateTime()); -} - -QTime PythonQtWrapper_QDateTimeEdit::maximumTime(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->maximumTime()); -} - -QDate PythonQtWrapper_QDateTimeEdit::minimumDate(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->minimumDate()); -} - -QDateTime PythonQtWrapper_QDateTimeEdit::minimumDateTime(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->minimumDateTime()); -} - -QTime PythonQtWrapper_QDateTimeEdit::minimumTime(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->minimumTime()); -} - -void PythonQtWrapper_QDateTimeEdit::mousePressEvent(QDateTimeEdit* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QDateTimeEdit::paintEvent(QDateTimeEdit* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_paintEvent(event)); -} - -QDateTimeEdit::Section PythonQtWrapper_QDateTimeEdit::sectionAt(QDateTimeEdit* theWrappedObject, int index) const -{ - return ( theWrappedObject->sectionAt(index)); -} - -int PythonQtWrapper_QDateTimeEdit::sectionCount(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->sectionCount()); -} - -QString PythonQtWrapper_QDateTimeEdit::sectionText(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) const -{ - return ( theWrappedObject->sectionText(section)); -} - -void PythonQtWrapper_QDateTimeEdit::setCalendarPopup(QDateTimeEdit* theWrappedObject, bool enable) -{ - ( theWrappedObject->setCalendarPopup(enable)); -} - -void PythonQtWrapper_QDateTimeEdit::setCalendarWidget(QDateTimeEdit* theWrappedObject, QCalendarWidget* calendarWidget) -{ - ( theWrappedObject->setCalendarWidget(calendarWidget)); -} - -void PythonQtWrapper_QDateTimeEdit::setCurrentSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) -{ - ( theWrappedObject->setCurrentSection(section)); -} - -void PythonQtWrapper_QDateTimeEdit::setCurrentSectionIndex(QDateTimeEdit* theWrappedObject, int index) -{ - ( theWrappedObject->setCurrentSectionIndex(index)); -} - -void PythonQtWrapper_QDateTimeEdit::setDateRange(QDateTimeEdit* theWrappedObject, const QDate& min, const QDate& max) -{ - ( theWrappedObject->setDateRange(min, max)); -} - -void PythonQtWrapper_QDateTimeEdit::setDateTimeRange(QDateTimeEdit* theWrappedObject, const QDateTime& min, const QDateTime& max) -{ - ( theWrappedObject->setDateTimeRange(min, max)); -} - -void PythonQtWrapper_QDateTimeEdit::setDisplayFormat(QDateTimeEdit* theWrappedObject, const QString& format) -{ - ( theWrappedObject->setDisplayFormat(format)); -} - -void PythonQtWrapper_QDateTimeEdit::setMaximumDate(QDateTimeEdit* theWrappedObject, const QDate& max) -{ - ( theWrappedObject->setMaximumDate(max)); -} - -void PythonQtWrapper_QDateTimeEdit::setMaximumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) -{ - ( theWrappedObject->setMaximumDateTime(dt)); -} - -void PythonQtWrapper_QDateTimeEdit::setMaximumTime(QDateTimeEdit* theWrappedObject, const QTime& max) -{ - ( theWrappedObject->setMaximumTime(max)); -} - -void PythonQtWrapper_QDateTimeEdit::setMinimumDate(QDateTimeEdit* theWrappedObject, const QDate& min) -{ - ( theWrappedObject->setMinimumDate(min)); -} - -void PythonQtWrapper_QDateTimeEdit::setMinimumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) -{ - ( theWrappedObject->setMinimumDateTime(dt)); -} - -void PythonQtWrapper_QDateTimeEdit::setMinimumTime(QDateTimeEdit* theWrappedObject, const QTime& min) -{ - ( theWrappedObject->setMinimumTime(min)); -} - -void PythonQtWrapper_QDateTimeEdit::setSelectedSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) -{ - ( theWrappedObject->setSelectedSection(section)); -} - -void PythonQtWrapper_QDateTimeEdit::setTimeRange(QDateTimeEdit* theWrappedObject, const QTime& min, const QTime& max) -{ - ( theWrappedObject->setTimeRange(min, max)); -} - -void PythonQtWrapper_QDateTimeEdit::setTimeSpec(QDateTimeEdit* theWrappedObject, Qt::TimeSpec spec) -{ - ( theWrappedObject->setTimeSpec(spec)); -} - -QSize PythonQtWrapper_QDateTimeEdit::sizeHint(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -void PythonQtWrapper_QDateTimeEdit::stepBy(QDateTimeEdit* theWrappedObject, int steps) -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_stepBy(steps)); -} - -QAbstractSpinBox::StepEnabled PythonQtWrapper_QDateTimeEdit::stepEnabled(QDateTimeEdit* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_stepEnabled()); -} - -QString PythonQtWrapper_QDateTimeEdit::textFromDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) const -{ - return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_textFromDateTime(dt)); -} - -QTime PythonQtWrapper_QDateTimeEdit::time(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->time()); -} - -Qt::TimeSpec PythonQtWrapper_QDateTimeEdit::timeSpec(QDateTimeEdit* theWrappedObject) const -{ - return ( theWrappedObject->timeSpec()); -} - -QValidator::State PythonQtWrapper_QDateTimeEdit::validate(QDateTimeEdit* theWrappedObject, QString& input, int& pos) const -{ - return ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_validate(input, pos)); -} - -void PythonQtWrapper_QDateTimeEdit::wheelEvent(QDateTimeEdit* theWrappedObject, QWheelEvent* event) -{ - ( ((PythonQtPublicPromoter_QDateTimeEdit*)theWrappedObject)->promoted_wheelEvent(event)); -} - - - -QDesktopServices* PythonQtWrapper_QDesktopServices::new_QDesktopServices() -{ -return new PythonQtShell_QDesktopServices(); } - -QString PythonQtWrapper_QDesktopServices::static_QDesktopServices_displayName(QDesktopServices::StandardLocation type) -{ - return (QDesktopServices::displayName(type)); -} - -bool PythonQtWrapper_QDesktopServices::static_QDesktopServices_openUrl(const QUrl& url) -{ - return (QDesktopServices::openUrl(url)); -} - -void PythonQtWrapper_QDesktopServices::static_QDesktopServices_setUrlHandler(const QString& scheme, QObject* receiver, const char* method) -{ - (QDesktopServices::setUrlHandler(scheme, receiver, method)); -} - -QString PythonQtWrapper_QDesktopServices::static_QDesktopServices_storageLocation(QDesktopServices::StandardLocation type) -{ - return (QDesktopServices::storageLocation(type)); -} - -void PythonQtWrapper_QDesktopServices::static_QDesktopServices_unsetUrlHandler(const QString& scheme) -{ - (QDesktopServices::unsetUrlHandler(scheme)); -} - - - -void PythonQtShell_QDesktopWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::actionEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::changeEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::childEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::closeEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::customEvent(arg__1); -} -int PythonQtShell_QDesktopWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::devType(); -} -void PythonQtShell_QDesktopWidget::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::dragEnterEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::dragMoveEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::dropEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::enterEvent(arg__1); -} -bool PythonQtShell_QDesktopWidget::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::event(arg__1); -} -bool PythonQtShell_QDesktopWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDesktopWidget::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::focusInEvent(arg__1); -} -bool PythonQtShell_QDesktopWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::focusNextPrevChild(next); -} -void PythonQtShell_QDesktopWidget::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::focusOutEvent(arg__1); -} -int PythonQtShell_QDesktopWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::heightForWidth(arg__1); -} -void PythonQtShell_QDesktopWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::hideEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDesktopWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::inputMethodQuery(arg__1); -} -void PythonQtShell_QDesktopWidget::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::keyPressEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::languageChange(); -} -void PythonQtShell_QDesktopWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::leaveEvent(arg__1); -} -int PythonQtShell_QDesktopWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::metric(arg__1); -} -QSize PythonQtShell_QDesktopWidget::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::minimumSizeHint(); -} -void PythonQtShell_QDesktopWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::mouseMoveEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::mousePressEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDesktopWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::paintEngine(); -} -void PythonQtShell_QDesktopWidget::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::paintEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::resizeEvent(e); -} -void PythonQtShell_QDesktopWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::showEvent(arg__1); -} -QSize PythonQtShell_QDesktopWidget::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDesktopWidget::sizeHint(); -} -void PythonQtShell_QDesktopWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::tabletEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::timerEvent(arg__1); -} -void PythonQtShell_QDesktopWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDesktopWidget::wheelEvent(arg__1); -} -QDesktopWidget* PythonQtWrapper_QDesktopWidget::new_QDesktopWidget() -{ -return new PythonQtShell_QDesktopWidget(); } - -const QRect PythonQtWrapper_QDesktopWidget::availableGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const -{ - return ( theWrappedObject->availableGeometry(point)); -} - -const QRect PythonQtWrapper_QDesktopWidget::availableGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const -{ - return ( theWrappedObject->availableGeometry(widget)); -} - -const QRect PythonQtWrapper_QDesktopWidget::availableGeometry(QDesktopWidget* theWrappedObject, int screen) const -{ - return ( theWrappedObject->availableGeometry(screen)); -} - -bool PythonQtWrapper_QDesktopWidget::isVirtualDesktop(QDesktopWidget* theWrappedObject) const -{ - return ( theWrappedObject->isVirtualDesktop()); -} - -int PythonQtWrapper_QDesktopWidget::numScreens(QDesktopWidget* theWrappedObject) const -{ - return ( theWrappedObject->numScreens()); -} - -int PythonQtWrapper_QDesktopWidget::primaryScreen(QDesktopWidget* theWrappedObject) const -{ - return ( theWrappedObject->primaryScreen()); -} - -void PythonQtWrapper_QDesktopWidget::resizeEvent(QDesktopWidget* theWrappedObject, QResizeEvent* e) -{ - ( ((PythonQtPublicPromoter_QDesktopWidget*)theWrappedObject)->promoted_resizeEvent(e)); -} - -QWidget* PythonQtWrapper_QDesktopWidget::screen(QDesktopWidget* theWrappedObject, int screen) -{ - return ( theWrappedObject->screen(screen)); -} - -int PythonQtWrapper_QDesktopWidget::screenCount(QDesktopWidget* theWrappedObject) const -{ - return ( theWrappedObject->screenCount()); -} - -const QRect PythonQtWrapper_QDesktopWidget::screenGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const -{ - return ( theWrappedObject->screenGeometry(point)); -} - -const QRect PythonQtWrapper_QDesktopWidget::screenGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const -{ - return ( theWrappedObject->screenGeometry(widget)); -} - -const QRect PythonQtWrapper_QDesktopWidget::screenGeometry(QDesktopWidget* theWrappedObject, int screen) const -{ - return ( theWrappedObject->screenGeometry(screen)); -} - -int PythonQtWrapper_QDesktopWidget::screenNumber(QDesktopWidget* theWrappedObject, const QPoint& arg__1) const -{ - return ( theWrappedObject->screenNumber(arg__1)); -} - -int PythonQtWrapper_QDesktopWidget::screenNumber(QDesktopWidget* theWrappedObject, const QWidget* widget) const -{ - return ( theWrappedObject->screenNumber(widget)); -} - - - -void PythonQtShell_QDial::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::actionEvent(arg__1); -} -void PythonQtShell_QDial::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::changeEvent(e); -} -void PythonQtShell_QDial::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::childEvent(arg__1); -} -void PythonQtShell_QDial::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::closeEvent(arg__1); -} -void PythonQtShell_QDial::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::contextMenuEvent(arg__1); -} -void PythonQtShell_QDial::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::customEvent(arg__1); -} -int PythonQtShell_QDial::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::devType(); -} -void PythonQtShell_QDial::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::dragEnterEvent(arg__1); -} -void PythonQtShell_QDial::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDial::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::dragMoveEvent(arg__1); -} -void PythonQtShell_QDial::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::dropEvent(arg__1); -} -void PythonQtShell_QDial::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::enterEvent(arg__1); -} -bool PythonQtShell_QDial::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::event(e); -} -bool PythonQtShell_QDial::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDial::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::focusInEvent(arg__1); -} -bool PythonQtShell_QDial::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::focusNextPrevChild(next); -} -void PythonQtShell_QDial::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::focusOutEvent(arg__1); -} -int PythonQtShell_QDial::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::heightForWidth(arg__1); -} -void PythonQtShell_QDial::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::hideEvent(arg__1); -} -void PythonQtShell_QDial::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDial::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::inputMethodQuery(arg__1); -} -void PythonQtShell_QDial::keyPressEvent(QKeyEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::keyPressEvent(ev); -} -void PythonQtShell_QDial::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::keyReleaseEvent(arg__1); -} -void PythonQtShell_QDial::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::languageChange(); -} -void PythonQtShell_QDial::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::leaveEvent(arg__1); -} -int PythonQtShell_QDial::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::metric(arg__1); -} -void PythonQtShell_QDial::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDial::mouseMoveEvent(QMouseEvent* me) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&me}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::mouseMoveEvent(me); -} -void PythonQtShell_QDial::mousePressEvent(QMouseEvent* me) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&me}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::mousePressEvent(me); -} -void PythonQtShell_QDial::mouseReleaseEvent(QMouseEvent* me) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&me}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::mouseReleaseEvent(me); -} -void PythonQtShell_QDial::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDial::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDial::paintEngine(); -} -void PythonQtShell_QDial::paintEvent(QPaintEvent* pe) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&pe}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::paintEvent(pe); -} -void PythonQtShell_QDial::resizeEvent(QResizeEvent* re) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&re}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::resizeEvent(re); -} -void PythonQtShell_QDial::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::showEvent(arg__1); -} -void PythonQtShell_QDial::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::tabletEvent(arg__1); -} -void PythonQtShell_QDial::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::timerEvent(arg__1); -} -void PythonQtShell_QDial::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDial::wheelEvent(e); -} -QDial* PythonQtWrapper_QDial::new_QDial(QWidget* parent) -{ -return new PythonQtShell_QDial(parent); } - -bool PythonQtWrapper_QDial::event(QDial* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_event(e)); -} - -QSize PythonQtWrapper_QDial::minimumSizeHint(QDial* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QDial::mouseMoveEvent(QDial* theWrappedObject, QMouseEvent* me) -{ - ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_mouseMoveEvent(me)); -} - -void PythonQtWrapper_QDial::mousePressEvent(QDial* theWrappedObject, QMouseEvent* me) -{ - ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_mousePressEvent(me)); -} - -void PythonQtWrapper_QDial::mouseReleaseEvent(QDial* theWrappedObject, QMouseEvent* me) -{ - ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_mouseReleaseEvent(me)); -} - -int PythonQtWrapper_QDial::notchSize(QDial* theWrappedObject) const -{ - return ( theWrappedObject->notchSize()); -} - -qreal PythonQtWrapper_QDial::notchTarget(QDial* theWrappedObject) const -{ - return ( theWrappedObject->notchTarget()); -} - -bool PythonQtWrapper_QDial::notchesVisible(QDial* theWrappedObject) const -{ - return ( theWrappedObject->notchesVisible()); -} - -void PythonQtWrapper_QDial::paintEvent(QDial* theWrappedObject, QPaintEvent* pe) -{ - ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_paintEvent(pe)); -} - -void PythonQtWrapper_QDial::resizeEvent(QDial* theWrappedObject, QResizeEvent* re) -{ - ( ((PythonQtPublicPromoter_QDial*)theWrappedObject)->promoted_resizeEvent(re)); -} - -void PythonQtWrapper_QDial::setNotchTarget(QDial* theWrappedObject, double target) -{ - ( theWrappedObject->setNotchTarget(target)); -} - -QSize PythonQtWrapper_QDial::sizeHint(QDial* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -bool PythonQtWrapper_QDial::wrapping(QDial* theWrappedObject) const -{ - return ( theWrappedObject->wrapping()); -} - - - -void PythonQtShell_QDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::accept(); -} -void PythonQtShell_QDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::actionEvent(arg__1); -} -void PythonQtShell_QDialog::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::changeEvent(arg__1); -} -void PythonQtShell_QDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::childEvent(arg__1); -} -void PythonQtShell_QDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::closeEvent(arg__1); -} -void PythonQtShell_QDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::customEvent(arg__1); -} -int PythonQtShell_QDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::devType(); -} -void PythonQtShell_QDialog::done(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::done(arg__1); -} -void PythonQtShell_QDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::dropEvent(arg__1); -} -void PythonQtShell_QDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::enterEvent(arg__1); -} -bool PythonQtShell_QDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::event(arg__1); -} -bool PythonQtShell_QDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::focusNextPrevChild(next); -} -void PythonQtShell_QDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::heightForWidth(arg__1); -} -void PythonQtShell_QDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::hideEvent(arg__1); -} -void PythonQtShell_QDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::languageChange(); -} -void PythonQtShell_QDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::leaveEvent(arg__1); -} -int PythonQtShell_QDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::metric(arg__1); -} -void PythonQtShell_QDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialog::paintEngine(); -} -void PythonQtShell_QDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::paintEvent(arg__1); -} -void PythonQtShell_QDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::reject(); -} -void PythonQtShell_QDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::resizeEvent(arg__1); -} -void PythonQtShell_QDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::showEvent(arg__1); -} -void PythonQtShell_QDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::tabletEvent(arg__1); -} -void PythonQtShell_QDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::timerEvent(arg__1); -} -void PythonQtShell_QDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialog::wheelEvent(arg__1); -} -QDialog* PythonQtWrapper_QDialog::new_QDialog(QWidget* parent, Qt::WindowFlags f) -{ -return new PythonQtShell_QDialog(parent, f); } - -void PythonQtWrapper_QDialog::closeEvent(QDialog* theWrappedObject, QCloseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_closeEvent(arg__1)); -} - -void PythonQtWrapper_QDialog::contextMenuEvent(QDialog* theWrappedObject, QContextMenuEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); -} - -bool PythonQtWrapper_QDialog::eventFilter(QDialog* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -bool PythonQtWrapper_QDialog::isSizeGripEnabled(QDialog* theWrappedObject) const -{ - return ( theWrappedObject->isSizeGripEnabled()); -} - -void PythonQtWrapper_QDialog::keyPressEvent(QDialog* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -QSize PythonQtWrapper_QDialog::minimumSizeHint(QDialog* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QDialog::resizeEvent(QDialog* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -int PythonQtWrapper_QDialog::result(QDialog* theWrappedObject) const -{ - return ( theWrappedObject->result()); -} - -void PythonQtWrapper_QDialog::setModal(QDialog* theWrappedObject, bool modal) -{ - ( theWrappedObject->setModal(modal)); -} - -void PythonQtWrapper_QDialog::setResult(QDialog* theWrappedObject, int r) -{ - ( theWrappedObject->setResult(r)); -} - -void PythonQtWrapper_QDialog::setSizeGripEnabled(QDialog* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setSizeGripEnabled(arg__1)); -} - -void PythonQtWrapper_QDialog::setVisible(QDialog* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -void PythonQtWrapper_QDialog::showEvent(QDialog* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QDialog*)theWrappedObject)->promoted_showEvent(arg__1)); -} - -QSize PythonQtWrapper_QDialog::sizeHint(QDialog* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - - - -void PythonQtShell_QDialogButtonBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::actionEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::changeEvent(event); -} -void PythonQtShell_QDialogButtonBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::childEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::closeEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::contextMenuEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::customEvent(arg__1); -} -int PythonQtShell_QDialogButtonBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::devType(); -} -void PythonQtShell_QDialogButtonBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::dropEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::enterEvent(arg__1); -} -bool PythonQtShell_QDialogButtonBox::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::event(event); -} -bool PythonQtShell_QDialogButtonBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDialogButtonBox::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::focusInEvent(arg__1); -} -bool PythonQtShell_QDialogButtonBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::focusNextPrevChild(next); -} -void PythonQtShell_QDialogButtonBox::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::focusOutEvent(arg__1); -} -int PythonQtShell_QDialogButtonBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::heightForWidth(arg__1); -} -void PythonQtShell_QDialogButtonBox::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::hideEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDialogButtonBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QDialogButtonBox::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::keyPressEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::keyReleaseEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::languageChange(); -} -void PythonQtShell_QDialogButtonBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::leaveEvent(arg__1); -} -int PythonQtShell_QDialogButtonBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::metric(arg__1); -} -QSize PythonQtShell_QDialogButtonBox::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::minimumSizeHint(); -} -void PythonQtShell_QDialogButtonBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::mouseMoveEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::mousePressEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDialogButtonBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::paintEngine(); -} -void PythonQtShell_QDialogButtonBox::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::paintEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::resizeEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::showEvent(arg__1); -} -QSize PythonQtShell_QDialogButtonBox::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDialogButtonBox::sizeHint(); -} -void PythonQtShell_QDialogButtonBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::tabletEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::timerEvent(arg__1); -} -void PythonQtShell_QDialogButtonBox::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDialogButtonBox::wheelEvent(arg__1); -} -QDialogButtonBox* PythonQtWrapper_QDialogButtonBox::new_QDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation, QWidget* parent) -{ -return new PythonQtShell_QDialogButtonBox(buttons, orientation, parent); } - -QDialogButtonBox* PythonQtWrapper_QDialogButtonBox::new_QDialogButtonBox(QWidget* parent) -{ -return new PythonQtShell_QDialogButtonBox(parent); } - -QDialogButtonBox* PythonQtWrapper_QDialogButtonBox::new_QDialogButtonBox(Qt::Orientation orientation, QWidget* parent) -{ -return new PythonQtShell_QDialogButtonBox(orientation, parent); } - -void PythonQtWrapper_QDialogButtonBox::addButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button, QDialogButtonBox::ButtonRole role) -{ - ( theWrappedObject->addButton(button, role)); -} - -QPushButton* PythonQtWrapper_QDialogButtonBox::addButton(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton button) -{ - return ( theWrappedObject->addButton(button)); -} - -QPushButton* PythonQtWrapper_QDialogButtonBox::addButton(QDialogButtonBox* theWrappedObject, const QString& text, QDialogButtonBox::ButtonRole role) -{ - return ( theWrappedObject->addButton(text, role)); -} - -QPushButton* PythonQtWrapper_QDialogButtonBox::button(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton which) const -{ - return ( theWrappedObject->button(which)); -} - -QDialogButtonBox::ButtonRole PythonQtWrapper_QDialogButtonBox::buttonRole(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const -{ - return ( theWrappedObject->buttonRole(button)); -} - -QList PythonQtWrapper_QDialogButtonBox::buttons(QDialogButtonBox* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -bool PythonQtWrapper_QDialogButtonBox::centerButtons(QDialogButtonBox* theWrappedObject) const -{ - return ( theWrappedObject->centerButtons()); -} - -void PythonQtWrapper_QDialogButtonBox::changeEvent(QDialogButtonBox* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QDialogButtonBox*)theWrappedObject)->promoted_changeEvent(event)); -} - -void PythonQtWrapper_QDialogButtonBox::clear(QDialogButtonBox* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QDialogButtonBox::event(QDialogButtonBox* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QDialogButtonBox*)theWrappedObject)->promoted_event(event)); -} - -Qt::Orientation PythonQtWrapper_QDialogButtonBox::orientation(QDialogButtonBox* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QDialogButtonBox::removeButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button) -{ - ( theWrappedObject->removeButton(button)); -} - -void PythonQtWrapper_QDialogButtonBox::setCenterButtons(QDialogButtonBox* theWrappedObject, bool center) -{ - ( theWrappedObject->setCenterButtons(center)); -} - -void PythonQtWrapper_QDialogButtonBox::setOrientation(QDialogButtonBox* theWrappedObject, Qt::Orientation orientation) -{ - ( theWrappedObject->setOrientation(orientation)); -} - -void PythonQtWrapper_QDialogButtonBox::setStandardButtons(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButtons buttons) -{ - ( theWrappedObject->setStandardButtons(buttons)); -} - -QDialogButtonBox::StandardButton PythonQtWrapper_QDialogButtonBox::standardButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const -{ - return ( theWrappedObject->standardButton(button)); -} - -QDialogButtonBox::StandardButtons PythonQtWrapper_QDialogButtonBox::standardButtons(QDialogButtonBox* theWrappedObject) const -{ - return ( theWrappedObject->standardButtons()); -} - - - -void PythonQtShell_QDockWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::actionEvent(arg__1); -} -void PythonQtShell_QDockWidget::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::changeEvent(event); -} -void PythonQtShell_QDockWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::childEvent(arg__1); -} -void PythonQtShell_QDockWidget::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDockWidget::closeEvent(event); -} -void PythonQtShell_QDockWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QDockWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::customEvent(arg__1); -} -int PythonQtShell_QDockWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::devType(); -} -void PythonQtShell_QDockWidget::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::dragEnterEvent(arg__1); -} -void PythonQtShell_QDockWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDockWidget::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::dragMoveEvent(arg__1); -} -void PythonQtShell_QDockWidget::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::dropEvent(arg__1); -} -void PythonQtShell_QDockWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::enterEvent(arg__1); -} -bool PythonQtShell_QDockWidget::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::event(event); -} -bool PythonQtShell_QDockWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDockWidget::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::focusInEvent(arg__1); -} -bool PythonQtShell_QDockWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::focusNextPrevChild(next); -} -void PythonQtShell_QDockWidget::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::focusOutEvent(arg__1); -} -int PythonQtShell_QDockWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::heightForWidth(arg__1); -} -void PythonQtShell_QDockWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::hideEvent(arg__1); -} -void PythonQtShell_QDockWidget::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDockWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::inputMethodQuery(arg__1); -} -void PythonQtShell_QDockWidget::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::keyPressEvent(arg__1); -} -void PythonQtShell_QDockWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QDockWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::languageChange(); -} -void PythonQtShell_QDockWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::leaveEvent(arg__1); -} -int PythonQtShell_QDockWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::metric(arg__1); -} -QSize PythonQtShell_QDockWidget::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::minimumSizeHint(); -} -void PythonQtShell_QDockWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDockWidget::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::mouseMoveEvent(arg__1); -} -void PythonQtShell_QDockWidget::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::mousePressEvent(arg__1); -} -void PythonQtShell_QDockWidget::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QDockWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDockWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::paintEngine(); -} -void PythonQtShell_QDockWidget::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDockWidget::paintEvent(event); -} -void PythonQtShell_QDockWidget::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::resizeEvent(arg__1); -} -void PythonQtShell_QDockWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::showEvent(arg__1); -} -QSize PythonQtShell_QDockWidget::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDockWidget::sizeHint(); -} -void PythonQtShell_QDockWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::tabletEvent(arg__1); -} -void PythonQtShell_QDockWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::timerEvent(arg__1); -} -void PythonQtShell_QDockWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDockWidget::wheelEvent(arg__1); -} -QDockWidget* PythonQtWrapper_QDockWidget::new_QDockWidget(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QDockWidget(parent, flags); } - -QDockWidget* PythonQtWrapper_QDockWidget::new_QDockWidget(const QString& title, QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QDockWidget(title, parent, flags); } - -Qt::DockWidgetAreas PythonQtWrapper_QDockWidget::allowedAreas(QDockWidget* theWrappedObject) const -{ - return ( theWrappedObject->allowedAreas()); -} - -void PythonQtWrapper_QDockWidget::changeEvent(QDockWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_changeEvent(event)); -} - -void PythonQtWrapper_QDockWidget::closeEvent(QDockWidget* theWrappedObject, QCloseEvent* event) -{ - ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_closeEvent(event)); -} - -bool PythonQtWrapper_QDockWidget::event(QDockWidget* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_event(event)); -} - -QDockWidget::DockWidgetFeatures PythonQtWrapper_QDockWidget::features(QDockWidget* theWrappedObject) const -{ - return ( theWrappedObject->features()); -} - -bool PythonQtWrapper_QDockWidget::isAreaAllowed(QDockWidget* theWrappedObject, Qt::DockWidgetArea area) const -{ - return ( theWrappedObject->isAreaAllowed(area)); -} - -bool PythonQtWrapper_QDockWidget::isFloating(QDockWidget* theWrappedObject) const -{ - return ( theWrappedObject->isFloating()); -} - -void PythonQtWrapper_QDockWidget::paintEvent(QDockWidget* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QDockWidget*)theWrappedObject)->promoted_paintEvent(event)); -} - -void PythonQtWrapper_QDockWidget::setAllowedAreas(QDockWidget* theWrappedObject, Qt::DockWidgetAreas areas) -{ - ( theWrappedObject->setAllowedAreas(areas)); -} - -void PythonQtWrapper_QDockWidget::setFeatures(QDockWidget* theWrappedObject, QDockWidget::DockWidgetFeatures features) -{ - ( theWrappedObject->setFeatures(features)); -} - -void PythonQtWrapper_QDockWidget::setFloating(QDockWidget* theWrappedObject, bool floating) -{ - ( theWrappedObject->setFloating(floating)); -} - -void PythonQtWrapper_QDockWidget::setTitleBarWidget(QDockWidget* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setTitleBarWidget(widget)); -} - -void PythonQtWrapper_QDockWidget::setWidget(QDockWidget* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setWidget(widget)); -} - -QWidget* PythonQtWrapper_QDockWidget::titleBarWidget(QDockWidget* theWrappedObject) const -{ - return ( theWrappedObject->titleBarWidget()); -} - -QAction* PythonQtWrapper_QDockWidget::toggleViewAction(QDockWidget* theWrappedObject) const -{ - return ( theWrappedObject->toggleViewAction()); -} - -QWidget* PythonQtWrapper_QDockWidget::widget(QDockWidget* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - - - -void PythonQtShell_QDoubleSpinBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::actionEvent(arg__1); -} -void PythonQtShell_QDoubleSpinBox::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::changeEvent(event); -} -void PythonQtShell_QDoubleSpinBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::childEvent(arg__1); -} -void PythonQtShell_QDoubleSpinBox::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::clear(); -} -void PythonQtShell_QDoubleSpinBox::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::closeEvent(event); -} -void PythonQtShell_QDoubleSpinBox::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::contextMenuEvent(event); -} -void PythonQtShell_QDoubleSpinBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::customEvent(arg__1); -} -int PythonQtShell_QDoubleSpinBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::devType(); -} -void PythonQtShell_QDoubleSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QDoubleSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QDoubleSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QDoubleSpinBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::dropEvent(arg__1); -} -void PythonQtShell_QDoubleSpinBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::enterEvent(arg__1); -} -bool PythonQtShell_QDoubleSpinBox::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::event(event); -} -bool PythonQtShell_QDoubleSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDoubleSpinBox::fixup(QString& str) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::fixup(str); -} -void PythonQtShell_QDoubleSpinBox::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::focusInEvent(event); -} -bool PythonQtShell_QDoubleSpinBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::focusNextPrevChild(next); -} -void PythonQtShell_QDoubleSpinBox::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::focusOutEvent(event); -} -int PythonQtShell_QDoubleSpinBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::heightForWidth(arg__1); -} -void PythonQtShell_QDoubleSpinBox::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::hideEvent(event); -} -void PythonQtShell_QDoubleSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QDoubleSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QDoubleSpinBox::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::keyPressEvent(event); -} -void PythonQtShell_QDoubleSpinBox::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::keyReleaseEvent(event); -} -void PythonQtShell_QDoubleSpinBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::languageChange(); -} -void PythonQtShell_QDoubleSpinBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::leaveEvent(arg__1); -} -int PythonQtShell_QDoubleSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::metric(arg__1); -} -void PythonQtShell_QDoubleSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QDoubleSpinBox::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::mouseMoveEvent(event); -} -void PythonQtShell_QDoubleSpinBox::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::mousePressEvent(event); -} -void PythonQtShell_QDoubleSpinBox::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::mouseReleaseEvent(event); -} -void PythonQtShell_QDoubleSpinBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QDoubleSpinBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::paintEngine(); -} -void PythonQtShell_QDoubleSpinBox::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::paintEvent(event); -} -void PythonQtShell_QDoubleSpinBox::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::resizeEvent(event); -} -void PythonQtShell_QDoubleSpinBox::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::showEvent(event); -} -void PythonQtShell_QDoubleSpinBox::stepBy(int steps) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::stepBy(steps); -} -QAbstractSpinBox::StepEnabled PythonQtShell_QDoubleSpinBox::stepEnabled() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); - } else { - returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::stepEnabled(); -} -void PythonQtShell_QDoubleSpinBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::tabletEvent(arg__1); -} -QString PythonQtShell_QDoubleSpinBox::textFromValue(double val) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "double"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&val}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::textFromValue(val); -} -void PythonQtShell_QDoubleSpinBox::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::timerEvent(event); -} -QValidator::State PythonQtShell_QDoubleSpinBox::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::validate(input, pos); -} -double PythonQtShell_QDoubleSpinBox::valueFromText(const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"double" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - double returnValue = 0; - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result); - } else { - returnValue = *((double*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleSpinBox::valueFromText(text); -} -void PythonQtShell_QDoubleSpinBox::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QDoubleSpinBox::wheelEvent(event); -} -QDoubleSpinBox* PythonQtWrapper_QDoubleSpinBox::new_QDoubleSpinBox(QWidget* parent) -{ -return new PythonQtShell_QDoubleSpinBox(parent); } - -QString PythonQtWrapper_QDoubleSpinBox::cleanText(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->cleanText()); -} - -int PythonQtWrapper_QDoubleSpinBox::decimals(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->decimals()); -} - -void PythonQtWrapper_QDoubleSpinBox::fixup(QDoubleSpinBox* theWrappedObject, QString& str) const -{ - ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_fixup(str)); -} - -double PythonQtWrapper_QDoubleSpinBox::maximum(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->maximum()); -} - -double PythonQtWrapper_QDoubleSpinBox::minimum(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->minimum()); -} - -QString PythonQtWrapper_QDoubleSpinBox::prefix(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->prefix()); -} - -void PythonQtWrapper_QDoubleSpinBox::setDecimals(QDoubleSpinBox* theWrappedObject, int prec) -{ - ( theWrappedObject->setDecimals(prec)); -} - -void PythonQtWrapper_QDoubleSpinBox::setMaximum(QDoubleSpinBox* theWrappedObject, double max) -{ - ( theWrappedObject->setMaximum(max)); -} - -void PythonQtWrapper_QDoubleSpinBox::setMinimum(QDoubleSpinBox* theWrappedObject, double min) -{ - ( theWrappedObject->setMinimum(min)); -} - -void PythonQtWrapper_QDoubleSpinBox::setPrefix(QDoubleSpinBox* theWrappedObject, const QString& prefix) -{ - ( theWrappedObject->setPrefix(prefix)); -} - -void PythonQtWrapper_QDoubleSpinBox::setRange(QDoubleSpinBox* theWrappedObject, double min, double max) -{ - ( theWrappedObject->setRange(min, max)); -} - -void PythonQtWrapper_QDoubleSpinBox::setSingleStep(QDoubleSpinBox* theWrappedObject, double val) -{ - ( theWrappedObject->setSingleStep(val)); -} - -void PythonQtWrapper_QDoubleSpinBox::setSuffix(QDoubleSpinBox* theWrappedObject, const QString& suffix) -{ - ( theWrappedObject->setSuffix(suffix)); -} - -double PythonQtWrapper_QDoubleSpinBox::singleStep(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->singleStep()); -} - -QString PythonQtWrapper_QDoubleSpinBox::suffix(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->suffix()); -} - -QString PythonQtWrapper_QDoubleSpinBox::textFromValue(QDoubleSpinBox* theWrappedObject, double val) const -{ - return ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_textFromValue(val)); -} - -QValidator::State PythonQtWrapper_QDoubleSpinBox::validate(QDoubleSpinBox* theWrappedObject, QString& input, int& pos) const -{ - return ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_validate(input, pos)); -} - -double PythonQtWrapper_QDoubleSpinBox::value(QDoubleSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - -double PythonQtWrapper_QDoubleSpinBox::valueFromText(QDoubleSpinBox* theWrappedObject, const QString& text) const -{ - return ( ((PythonQtPublicPromoter_QDoubleSpinBox*)theWrappedObject)->promoted_valueFromText(text)); -} - - - -void PythonQtShell_QDoubleValidator::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleValidator::childEvent(arg__1); -} -void PythonQtShell_QDoubleValidator::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleValidator::customEvent(arg__1); -} -bool PythonQtShell_QDoubleValidator::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleValidator::event(arg__1); -} -bool PythonQtShell_QDoubleValidator::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleValidator::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDoubleValidator::fixup(QString& arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleValidator::fixup(arg__1); -} -void PythonQtShell_QDoubleValidator::setRange(double bottom, double top, int decimals) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "double" , "double" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&bottom, (void*)&top, (void*)&decimals}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleValidator::setRange(bottom, top, decimals); -} -void PythonQtShell_QDoubleValidator::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDoubleValidator::timerEvent(arg__1); -} -QValidator::State PythonQtShell_QDoubleValidator::validate(QString& arg__1, int& arg__2) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDoubleValidator::validate(arg__1, arg__2); -} -QDoubleValidator* PythonQtWrapper_QDoubleValidator::new_QDoubleValidator(QObject* parent) -{ -return new PythonQtShell_QDoubleValidator(parent); } - -QDoubleValidator* PythonQtWrapper_QDoubleValidator::new_QDoubleValidator(double bottom, double top, int decimals, QObject* parent) -{ -return new PythonQtShell_QDoubleValidator(bottom, top, decimals, parent); } - -double PythonQtWrapper_QDoubleValidator::bottom(QDoubleValidator* theWrappedObject) const -{ - return ( theWrappedObject->bottom()); -} - -int PythonQtWrapper_QDoubleValidator::decimals(QDoubleValidator* theWrappedObject) const -{ - return ( theWrappedObject->decimals()); -} - -QDoubleValidator::Notation PythonQtWrapper_QDoubleValidator::notation(QDoubleValidator* theWrappedObject) const -{ - return ( theWrappedObject->notation()); -} - -void PythonQtWrapper_QDoubleValidator::setBottom(QDoubleValidator* theWrappedObject, double arg__1) -{ - ( theWrappedObject->setBottom(arg__1)); -} - -void PythonQtWrapper_QDoubleValidator::setDecimals(QDoubleValidator* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setDecimals(arg__1)); -} - -void PythonQtWrapper_QDoubleValidator::setNotation(QDoubleValidator* theWrappedObject, QDoubleValidator::Notation arg__1) -{ - ( theWrappedObject->setNotation(arg__1)); -} - -void PythonQtWrapper_QDoubleValidator::setRange(QDoubleValidator* theWrappedObject, double bottom, double top, int decimals) -{ - ( ((PythonQtPublicPromoter_QDoubleValidator*)theWrappedObject)->promoted_setRange(bottom, top, decimals)); -} - -void PythonQtWrapper_QDoubleValidator::setTop(QDoubleValidator* theWrappedObject, double arg__1) -{ - ( theWrappedObject->setTop(arg__1)); -} - -double PythonQtWrapper_QDoubleValidator::top(QDoubleValidator* theWrappedObject) const -{ - return ( theWrappedObject->top()); -} - -QValidator::State PythonQtWrapper_QDoubleValidator::validate(QDoubleValidator* theWrappedObject, QString& arg__1, int& arg__2) const -{ - return ( ((PythonQtPublicPromoter_QDoubleValidator*)theWrappedObject)->promoted_validate(arg__1, arg__2)); -} - - - -void PythonQtShell_QDrag::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDrag::childEvent(arg__1); -} -void PythonQtShell_QDrag::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDrag::customEvent(arg__1); -} -bool PythonQtShell_QDrag::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDrag::event(arg__1); -} -bool PythonQtShell_QDrag::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QDrag::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QDrag::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QDrag::timerEvent(arg__1); -} -QDrag* PythonQtWrapper_QDrag::new_QDrag(QWidget* dragSource) -{ -return new PythonQtShell_QDrag(dragSource); } - -Qt::DropAction PythonQtWrapper_QDrag::exec(QDrag* theWrappedObject, Qt::DropActions supportedActions) -{ - return ( theWrappedObject->exec(supportedActions)); -} - -Qt::DropAction PythonQtWrapper_QDrag::exec(QDrag* theWrappedObject, Qt::DropActions supportedActions, Qt::DropAction defaultAction) -{ - return ( theWrappedObject->exec(supportedActions, defaultAction)); -} - -QPoint PythonQtWrapper_QDrag::hotSpot(QDrag* theWrappedObject) const -{ - return ( theWrappedObject->hotSpot()); -} - -QMimeData* PythonQtWrapper_QDrag::mimeData(QDrag* theWrappedObject) const -{ - return ( theWrappedObject->mimeData()); -} - -QPixmap PythonQtWrapper_QDrag::pixmap(QDrag* theWrappedObject) const -{ - return ( theWrappedObject->pixmap()); -} - -void PythonQtWrapper_QDrag::setDragCursor(QDrag* theWrappedObject, const QPixmap& cursor, Qt::DropAction action) -{ - ( theWrappedObject->setDragCursor(cursor, action)); -} - -void PythonQtWrapper_QDrag::setHotSpot(QDrag* theWrappedObject, const QPoint& hotspot) -{ - ( theWrappedObject->setHotSpot(hotspot)); -} - -void PythonQtWrapper_QDrag::setMimeData(QDrag* theWrappedObject, QMimeData* data) -{ - ( theWrappedObject->setMimeData(data)); -} - -void PythonQtWrapper_QDrag::setPixmap(QDrag* theWrappedObject, const QPixmap& arg__1) -{ - ( theWrappedObject->setPixmap(arg__1)); -} - -QWidget* PythonQtWrapper_QDrag::source(QDrag* theWrappedObject) const -{ - return ( theWrappedObject->source()); -} - -QWidget* PythonQtWrapper_QDrag::target(QDrag* theWrappedObject) const -{ - return ( theWrappedObject->target()); -} - - - -QDragEnterEvent* PythonQtWrapper_QDragEnterEvent::new_QDragEnterEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) -{ -return new QDragEnterEvent(pos, actions, data, buttons, modifiers); } - - - -QDragLeaveEvent* PythonQtWrapper_QDragLeaveEvent::new_QDragLeaveEvent() -{ -return new QDragLeaveEvent(); } - - - -QDragMoveEvent* PythonQtWrapper_QDragMoveEvent::new_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type) -{ -return new PythonQtShell_QDragMoveEvent(pos, actions, data, buttons, modifiers, type); } - -void PythonQtWrapper_QDragMoveEvent::accept(QDragMoveEvent* theWrappedObject, const QRect& r) -{ - ( theWrappedObject->accept(r)); -} - -QRect PythonQtWrapper_QDragMoveEvent::answerRect(QDragMoveEvent* theWrappedObject) const -{ - return ( theWrappedObject->answerRect()); -} - -void PythonQtWrapper_QDragMoveEvent::ignore(QDragMoveEvent* theWrappedObject, const QRect& r) -{ - ( theWrappedObject->ignore(r)); -} - - - -QDragResponseEvent* PythonQtWrapper_QDragResponseEvent::new_QDragResponseEvent(bool accepted) -{ -return new PythonQtShell_QDragResponseEvent(accepted); } - -bool PythonQtWrapper_QDragResponseEvent::dragAccepted(QDragResponseEvent* theWrappedObject) const -{ - return ( theWrappedObject->dragAccepted()); -} - - - -QDropEvent* PythonQtWrapper_QDropEvent::new_QDropEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type) -{ -return new PythonQtShell_QDropEvent(pos, actions, data, buttons, modifiers, type); } - -void PythonQtWrapper_QDropEvent::acceptProposedAction(QDropEvent* theWrappedObject) -{ - ( theWrappedObject->acceptProposedAction()); -} - -Qt::DropAction PythonQtWrapper_QDropEvent::dropAction(QDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->dropAction()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QDropEvent::keyboardModifiers(QDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->keyboardModifiers()); -} - -const QMimeData* PythonQtWrapper_QDropEvent::mimeData(QDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->mimeData()); -} - -Qt::MouseButtons PythonQtWrapper_QDropEvent::mouseButtons(QDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->mouseButtons()); -} - -const QPoint* PythonQtWrapper_QDropEvent::pos(QDropEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - -Qt::DropActions PythonQtWrapper_QDropEvent::possibleActions(QDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->possibleActions()); -} - -Qt::DropAction PythonQtWrapper_QDropEvent::proposedAction(QDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->proposedAction()); -} - -void PythonQtWrapper_QDropEvent::setDropAction(QDropEvent* theWrappedObject, Qt::DropAction action) -{ - ( theWrappedObject->setDropAction(action)); -} - -QWidget* PythonQtWrapper_QDropEvent::source(QDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->source()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.h deleted file mode 100644 index 68138d728..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.h +++ /dev/null @@ -1,2007 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QCheckBox : public QCheckBox -{ -public: - PythonQtShell_QCheckBox(QWidget* parent = 0):QCheckBox(parent),_wrapper(NULL) {}; - PythonQtShell_QCheckBox(const QString& text, QWidget* parent = 0):QCheckBox(text, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void checkStateSet(); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual bool hitButton(const QPoint& pos) const; -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual void nextCheckState(); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCheckBox : public QCheckBox -{ public: -inline void promoted_checkStateSet() { QCheckBox::checkStateSet(); } -inline bool promoted_event(QEvent* e) { return QCheckBox::event(e); } -inline bool promoted_hitButton(const QPoint& pos) const { return QCheckBox::hitButton(pos); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QCheckBox::mouseMoveEvent(arg__1); } -inline void promoted_nextCheckState() { QCheckBox::nextCheckState(); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QCheckBox::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QCheckBox : public QObject -{ Q_OBJECT -public: -public slots: -QCheckBox* new_QCheckBox(QWidget* parent = 0); -QCheckBox* new_QCheckBox(const QString& text, QWidget* parent = 0); -void delete_QCheckBox(QCheckBox* obj) { delete obj; } - Qt::CheckState checkState(QCheckBox* theWrappedObject) const; - void checkStateSet(QCheckBox* theWrappedObject); - bool event(QCheckBox* theWrappedObject, QEvent* e); - bool hitButton(QCheckBox* theWrappedObject, const QPoint& pos) const; - bool isTristate(QCheckBox* theWrappedObject) const; - void mouseMoveEvent(QCheckBox* theWrappedObject, QMouseEvent* arg__1); - void nextCheckState(QCheckBox* theWrappedObject); - void paintEvent(QCheckBox* theWrappedObject, QPaintEvent* arg__1); - void setCheckState(QCheckBox* theWrappedObject, Qt::CheckState state); - void setTristate(QCheckBox* theWrappedObject, bool y = true); - QSize sizeHint(QCheckBox* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QCleanlooksStyle : public QCleanlooksStyle -{ -public: - PythonQtShell_QCleanlooksStyle():QCleanlooksStyle(),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const; -virtual void drawControl(QStyle::ControlElement ce, const QStyleOption* option, QPainter* painter, const QWidget* widget) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement elem, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* o, QEvent* e); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* app); -virtual void polish(QPalette& pal); -virtual void polish(QWidget* widget); -virtual QSize sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const; -virtual int styleHint(QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const; -virtual QRect subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; -virtual void timerEvent(QTimerEvent* event); -virtual void unpolish(QApplication* app); -virtual void unpolish(QWidget* widget); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCleanlooksStyle : public QCleanlooksStyle -{ public: -inline void promoted_drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const { QCleanlooksStyle::drawComplexControl(control, option, painter, widget); } -inline void promoted_drawControl(QStyle::ControlElement ce, const QStyleOption* option, QPainter* painter, const QWidget* widget) const { QCleanlooksStyle::drawControl(ce, option, painter, widget); } -inline void promoted_drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const { QCleanlooksStyle::drawItemPixmap(painter, rect, alignment, pixmap); } -inline void promoted_drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const { QCleanlooksStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); } -inline void promoted_drawPrimitive(QStyle::PrimitiveElement elem, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const { QCleanlooksStyle::drawPrimitive(elem, option, painter, widget); } -inline QPixmap promoted_generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const { return QCleanlooksStyle::generatedIconPixmap(iconMode, pixmap, opt); } -inline QStyle::SubControl promoted_hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const { return QCleanlooksStyle::hitTestComplexControl(cc, opt, pt, w); } -inline QRect promoted_itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const { return QCleanlooksStyle::itemPixmapRect(r, flags, pixmap); } -inline int promoted_pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const { return QCleanlooksStyle::pixelMetric(metric, option, widget); } -inline void promoted_polish(QApplication* app) { QCleanlooksStyle::polish(app); } -inline void promoted_polish(QPalette& pal) { QCleanlooksStyle::polish(pal); } -inline void promoted_polish(QWidget* widget) { QCleanlooksStyle::polish(widget); } -inline QSize promoted_sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const { return QCleanlooksStyle::sizeFromContents(type, option, size, widget); } -inline QPalette promoted_standardPalette() const { return QCleanlooksStyle::standardPalette(); } -inline int promoted_styleHint(QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const { return QCleanlooksStyle::styleHint(hint, option, widget, returnData); } -inline QRect promoted_subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const { return QCleanlooksStyle::subControlRect(cc, opt, sc, widget); } -inline QRect promoted_subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const { return QCleanlooksStyle::subElementRect(r, opt, widget); } -inline void promoted_unpolish(QApplication* app) { QCleanlooksStyle::unpolish(app); } -inline void promoted_unpolish(QWidget* widget) { QCleanlooksStyle::unpolish(widget); } -}; - -class PythonQtWrapper_QCleanlooksStyle : public QObject -{ Q_OBJECT -public: -public slots: -QCleanlooksStyle* new_QCleanlooksStyle(); -void delete_QCleanlooksStyle(QCleanlooksStyle* obj) { delete obj; } - void drawComplexControl(QCleanlooksStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const; - void drawControl(QCleanlooksStyle* theWrappedObject, QStyle::ControlElement ce, const QStyleOption* option, QPainter* painter, const QWidget* widget) const; - void drawItemPixmap(QCleanlooksStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; - void drawItemText(QCleanlooksStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; - void drawPrimitive(QCleanlooksStyle* theWrappedObject, QStyle::PrimitiveElement elem, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; - QPixmap generatedIconPixmap(QCleanlooksStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; - QStyle::SubControl hitTestComplexControl(QCleanlooksStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const; - QRect itemPixmapRect(QCleanlooksStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const; - int pixelMetric(QCleanlooksStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; - void polish(QCleanlooksStyle* theWrappedObject, QApplication* app); - void polish(QCleanlooksStyle* theWrappedObject, QPalette& pal); - void polish(QCleanlooksStyle* theWrappedObject, QWidget* widget); - QSize sizeFromContents(QCleanlooksStyle* theWrappedObject, QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const; - QPalette standardPalette(QCleanlooksStyle* theWrappedObject) const; - int styleHint(QCleanlooksStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; - QRect subControlRect(QCleanlooksStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const; - QRect subElementRect(QCleanlooksStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; - void unpolish(QCleanlooksStyle* theWrappedObject, QApplication* app); - void unpolish(QCleanlooksStyle* theWrappedObject, QWidget* widget); -}; - - - - - -class PythonQtPublicPromoter_QClipboard : public QClipboard -{ public: -inline bool promoted_event(QEvent* arg__1) { return QClipboard::event(arg__1); } -}; - -class PythonQtWrapper_QClipboard : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Mode ) -enum Mode{ - Clipboard = QClipboard::Clipboard, Selection = QClipboard::Selection, FindBuffer = QClipboard::FindBuffer, LastMode = QClipboard::LastMode}; -public slots: - void clear(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard); - bool event(QClipboard* theWrappedObject, QEvent* arg__1); - QImage image(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; - const QMimeData* mimeData(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; - bool ownsClipboard(QClipboard* theWrappedObject) const; - bool ownsFindBuffer(QClipboard* theWrappedObject) const; - bool ownsSelection(QClipboard* theWrappedObject) const; - QPixmap pixmap(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; - void setImage(QClipboard* theWrappedObject, const QImage& arg__1, QClipboard::Mode mode = QClipboard::Clipboard); - void setMimeData(QClipboard* theWrappedObject, QMimeData* data, QClipboard::Mode mode = QClipboard::Clipboard); - void setPixmap(QClipboard* theWrappedObject, const QPixmap& arg__1, QClipboard::Mode mode = QClipboard::Clipboard); - void setText(QClipboard* theWrappedObject, const QString& arg__1, QClipboard::Mode mode = QClipboard::Clipboard); - bool supportsFindBuffer(QClipboard* theWrappedObject) const; - bool supportsSelection(QClipboard* theWrappedObject) const; - QString text(QClipboard* theWrappedObject, QClipboard::Mode mode = QClipboard::Clipboard) const; - QString text(QClipboard* theWrappedObject, QString& subtype, QClipboard::Mode mode = QClipboard::Clipboard) const; -}; - - - - - -class PythonQtWrapper_QClipboardEvent : public QObject -{ Q_OBJECT -public: -public slots: -void delete_QClipboardEvent(QClipboardEvent* obj) { delete obj; } -}; - - - - - -class PythonQtWrapper_QCloseEvent : public QObject -{ Q_OBJECT -public: -public slots: -QCloseEvent* new_QCloseEvent(); -void delete_QCloseEvent(QCloseEvent* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QColorDialog : public QColorDialog -{ -public: - PythonQtShell_QColorDialog(QWidget* parent = 0):QColorDialog(parent),_wrapper(NULL) {}; - PythonQtShell_QColorDialog(const QColor& initial, QWidget* parent = 0):QColorDialog(initial, parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QColorDialog : public QColorDialog -{ public: -inline void promoted_changeEvent(QEvent* event) { QColorDialog::changeEvent(event); } -inline void promoted_done(int result) { QColorDialog::done(result); } -}; - -class PythonQtWrapper_QColorDialog : public QObject -{ Q_OBJECT -public: -public slots: -QColorDialog* new_QColorDialog(QWidget* parent = 0); -QColorDialog* new_QColorDialog(const QColor& initial, QWidget* parent = 0); -void delete_QColorDialog(QColorDialog* obj) { delete obj; } - void changeEvent(QColorDialog* theWrappedObject, QEvent* event); - QColor currentColor(QColorDialog* theWrappedObject) const; - unsigned int static_QColorDialog_customColor(int index); - int static_QColorDialog_customCount(); - void done(QColorDialog* theWrappedObject, int result); - QColor static_QColorDialog_getColor(const QColor& initial = Qt::white, QWidget* parent = 0); - QColor static_QColorDialog_getColor(const QColor& initial, QWidget* parent, const QString& title, QColorDialog::ColorDialogOptions options = 0); - unsigned int static_QColorDialog_getRgba(unsigned int rgba = 0xffffffff, bool* ok = 0, QWidget* parent = 0); - void open(QColorDialog* theWrappedObject); - void open(QColorDialog* theWrappedObject, QObject* receiver, const char* member); - QColorDialog::ColorDialogOptions options(QColorDialog* theWrappedObject) const; - QColor selectedColor(QColorDialog* theWrappedObject) const; - void setCurrentColor(QColorDialog* theWrappedObject, const QColor& color); - void static_QColorDialog_setCustomColor(int index, unsigned int color); - void setOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option, bool on = true); - void setOptions(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOptions options); - void static_QColorDialog_setStandardColor(int index, unsigned int color); - void setVisible(QColorDialog* theWrappedObject, bool visible); - bool testOption(QColorDialog* theWrappedObject, QColorDialog::ColorDialogOption option) const; -}; - - - - - -class PythonQtShell_QColumnView : public QColumnView -{ -public: - PythonQtShell_QColumnView(QWidget* parent = 0):QColumnView(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual QAbstractItemView* createColumn(const QModelIndex& rootIndex); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void dropEvent(QDropEvent* event); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& point) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* event); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setModel(QAbstractItemModel* model); -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QColumnView : public QColumnView -{ public: -inline QAbstractItemView* promoted_createColumn(const QModelIndex& rootIndex) { return QColumnView::createColumn(rootIndex); } -inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QColumnView::currentChanged(current, previous); } -inline int promoted_horizontalOffset() const { return QColumnView::horizontalOffset(); } -inline QModelIndex promoted_indexAt(const QPoint& point) const { return QColumnView::indexAt(point); } -inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QColumnView::isIndexHidden(index); } -inline void promoted_resizeEvent(QResizeEvent* event) { QColumnView::resizeEvent(event); } -inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QColumnView::rowsInserted(parent, start, end); } -inline void promoted_scrollContentsBy(int dx, int dy) { QColumnView::scrollContentsBy(dx, dy); } -inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QColumnView::scrollTo(index, hint); } -inline void promoted_selectAll() { QColumnView::selectAll(); } -inline void promoted_setModel(QAbstractItemModel* model) { QColumnView::setModel(model); } -inline void promoted_setRootIndex(const QModelIndex& index) { QColumnView::setRootIndex(index); } -inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QColumnView::setSelection(rect, command); } -inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QColumnView::setSelectionModel(selectionModel); } -inline int promoted_verticalOffset() const { return QColumnView::verticalOffset(); } -inline QRect promoted_visualRect(const QModelIndex& index) const { return QColumnView::visualRect(index); } -inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QColumnView::visualRegionForSelection(selection); } -}; - -class PythonQtWrapper_QColumnView : public QObject -{ Q_OBJECT -public: -public slots: -QColumnView* new_QColumnView(QWidget* parent = 0); -void delete_QColumnView(QColumnView* obj) { delete obj; } - QList columnWidths(QColumnView* theWrappedObject) const; - QAbstractItemView* createColumn(QColumnView* theWrappedObject, const QModelIndex& rootIndex); - void currentChanged(QColumnView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); - int horizontalOffset(QColumnView* theWrappedObject) const; - QModelIndex indexAt(QColumnView* theWrappedObject, const QPoint& point) const; - bool isIndexHidden(QColumnView* theWrappedObject, const QModelIndex& index) const; - QWidget* previewWidget(QColumnView* theWrappedObject) const; - void resizeEvent(QColumnView* theWrappedObject, QResizeEvent* event); - bool resizeGripsVisible(QColumnView* theWrappedObject) const; - void rowsInserted(QColumnView* theWrappedObject, const QModelIndex& parent, int start, int end); - void scrollContentsBy(QColumnView* theWrappedObject, int dx, int dy); - void scrollTo(QColumnView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); - void selectAll(QColumnView* theWrappedObject); - void setColumnWidths(QColumnView* theWrappedObject, const QList& list); - void setModel(QColumnView* theWrappedObject, QAbstractItemModel* model); - void setPreviewWidget(QColumnView* theWrappedObject, QWidget* widget); - void setResizeGripsVisible(QColumnView* theWrappedObject, bool visible); - void setRootIndex(QColumnView* theWrappedObject, const QModelIndex& index); - void setSelection(QColumnView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); - void setSelectionModel(QColumnView* theWrappedObject, QItemSelectionModel* selectionModel); - QSize sizeHint(QColumnView* theWrappedObject) const; - int verticalOffset(QColumnView* theWrappedObject) const; - QRect visualRect(QColumnView* theWrappedObject, const QModelIndex& index) const; - QRegion visualRegionForSelection(QColumnView* theWrappedObject, const QItemSelection& selection) const; -}; - - - - - -class PythonQtShell_QComboBox : public QComboBox -{ -public: - PythonQtShell_QComboBox(QWidget* parent = 0):QComboBox(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* e); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* e); -virtual void hidePopup(); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void resizeEvent(QResizeEvent* e); -virtual void showEvent(QShowEvent* e); -virtual void showPopup(); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QComboBox : public QComboBox -{ public: -inline void promoted_changeEvent(QEvent* e) { QComboBox::changeEvent(e); } -inline void promoted_contextMenuEvent(QContextMenuEvent* e) { QComboBox::contextMenuEvent(e); } -inline bool promoted_event(QEvent* event) { return QComboBox::event(event); } -inline void promoted_focusInEvent(QFocusEvent* e) { QComboBox::focusInEvent(e); } -inline void promoted_focusOutEvent(QFocusEvent* e) { QComboBox::focusOutEvent(e); } -inline void promoted_hideEvent(QHideEvent* e) { QComboBox::hideEvent(e); } -inline void promoted_hidePopup() { QComboBox::hidePopup(); } -inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QComboBox::inputMethodEvent(arg__1); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QComboBox::inputMethodQuery(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* e) { QComboBox::keyPressEvent(e); } -inline void promoted_keyReleaseEvent(QKeyEvent* e) { QComboBox::keyReleaseEvent(e); } -inline void promoted_mousePressEvent(QMouseEvent* e) { QComboBox::mousePressEvent(e); } -inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QComboBox::mouseReleaseEvent(e); } -inline void promoted_paintEvent(QPaintEvent* e) { QComboBox::paintEvent(e); } -inline void promoted_resizeEvent(QResizeEvent* e) { QComboBox::resizeEvent(e); } -inline void promoted_showEvent(QShowEvent* e) { QComboBox::showEvent(e); } -inline void promoted_showPopup() { QComboBox::showPopup(); } -inline void promoted_wheelEvent(QWheelEvent* e) { QComboBox::wheelEvent(e); } -}; - -class PythonQtWrapper_QComboBox : public QObject -{ Q_OBJECT -public: -public slots: -QComboBox* new_QComboBox(QWidget* parent = 0); -void delete_QComboBox(QComboBox* obj) { delete obj; } - void addItem(QComboBox* theWrappedObject, const QIcon& icon, const QString& text, const QVariant& userData = QVariant()); - void addItem(QComboBox* theWrappedObject, const QString& text, const QVariant& userData = QVariant()); - void addItems(QComboBox* theWrappedObject, const QStringList& texts); - void changeEvent(QComboBox* theWrappedObject, QEvent* e); - QCompleter* completer(QComboBox* theWrappedObject) const; - void contextMenuEvent(QComboBox* theWrappedObject, QContextMenuEvent* e); - int count(QComboBox* theWrappedObject) const; - int currentIndex(QComboBox* theWrappedObject) const; - QString currentText(QComboBox* theWrappedObject) const; - bool duplicatesEnabled(QComboBox* theWrappedObject) const; - bool event(QComboBox* theWrappedObject, QEvent* event); - int findData(QComboBox* theWrappedObject, const QVariant& data, int role = Qt::UserRole, Qt::MatchFlags flags = Qt::MatchExactly|Qt::MatchCaseSensitive) const; - int findText(QComboBox* theWrappedObject, const QString& text, Qt::MatchFlags flags = Qt::MatchExactly|Qt::MatchCaseSensitive) const; - void focusInEvent(QComboBox* theWrappedObject, QFocusEvent* e); - void focusOutEvent(QComboBox* theWrappedObject, QFocusEvent* e); - bool hasFrame(QComboBox* theWrappedObject) const; - void hideEvent(QComboBox* theWrappedObject, QHideEvent* e); - void hidePopup(QComboBox* theWrappedObject); - QSize iconSize(QComboBox* theWrappedObject) const; - void inputMethodEvent(QComboBox* theWrappedObject, QInputMethodEvent* arg__1); - QVariant inputMethodQuery(QComboBox* theWrappedObject, Qt::InputMethodQuery arg__1) const; - void insertItem(QComboBox* theWrappedObject, int index, const QIcon& icon, const QString& text, const QVariant& userData = QVariant()); - void insertItem(QComboBox* theWrappedObject, int index, const QString& text, const QVariant& userData = QVariant()); - void insertItems(QComboBox* theWrappedObject, int index, const QStringList& texts); - QComboBox::InsertPolicy insertPolicy(QComboBox* theWrappedObject) const; - void insertSeparator(QComboBox* theWrappedObject, int index); - bool isEditable(QComboBox* theWrappedObject) const; - QVariant itemData(QComboBox* theWrappedObject, int index, int role = Qt::UserRole) const; - QAbstractItemDelegate* itemDelegate(QComboBox* theWrappedObject) const; - QIcon itemIcon(QComboBox* theWrappedObject, int index) const; - QString itemText(QComboBox* theWrappedObject, int index) const; - void keyPressEvent(QComboBox* theWrappedObject, QKeyEvent* e); - void keyReleaseEvent(QComboBox* theWrappedObject, QKeyEvent* e); - QLineEdit* lineEdit(QComboBox* theWrappedObject) const; - int maxCount(QComboBox* theWrappedObject) const; - int maxVisibleItems(QComboBox* theWrappedObject) const; - int minimumContentsLength(QComboBox* theWrappedObject) const; - QSize minimumSizeHint(QComboBox* theWrappedObject) const; - QAbstractItemModel* model(QComboBox* theWrappedObject) const; - int modelColumn(QComboBox* theWrappedObject) const; - void mousePressEvent(QComboBox* theWrappedObject, QMouseEvent* e); - void mouseReleaseEvent(QComboBox* theWrappedObject, QMouseEvent* e); - void paintEvent(QComboBox* theWrappedObject, QPaintEvent* e); - void removeItem(QComboBox* theWrappedObject, int index); - void resizeEvent(QComboBox* theWrappedObject, QResizeEvent* e); - QModelIndex rootModelIndex(QComboBox* theWrappedObject) const; - void setCompleter(QComboBox* theWrappedObject, QCompleter* c); - void setDuplicatesEnabled(QComboBox* theWrappedObject, bool enable); - void setEditable(QComboBox* theWrappedObject, bool editable); - void setFrame(QComboBox* theWrappedObject, bool arg__1); - void setIconSize(QComboBox* theWrappedObject, const QSize& size); - void setInsertPolicy(QComboBox* theWrappedObject, QComboBox::InsertPolicy policy); - void setItemData(QComboBox* theWrappedObject, int index, const QVariant& value, int role = Qt::UserRole); - void setItemDelegate(QComboBox* theWrappedObject, QAbstractItemDelegate* delegate); - void setItemIcon(QComboBox* theWrappedObject, int index, const QIcon& icon); - void setItemText(QComboBox* theWrappedObject, int index, const QString& text); - void setLineEdit(QComboBox* theWrappedObject, QLineEdit* edit); - void setMaxCount(QComboBox* theWrappedObject, int max); - void setMaxVisibleItems(QComboBox* theWrappedObject, int maxItems); - void setMinimumContentsLength(QComboBox* theWrappedObject, int characters); - void setModel(QComboBox* theWrappedObject, QAbstractItemModel* model); - void setModelColumn(QComboBox* theWrappedObject, int visibleColumn); - void setRootModelIndex(QComboBox* theWrappedObject, const QModelIndex& index); - void setSizeAdjustPolicy(QComboBox* theWrappedObject, QComboBox::SizeAdjustPolicy policy); - void setValidator(QComboBox* theWrappedObject, const QValidator* v); - void setView(QComboBox* theWrappedObject, QAbstractItemView* itemView); - void showEvent(QComboBox* theWrappedObject, QShowEvent* e); - void showPopup(QComboBox* theWrappedObject); - QComboBox::SizeAdjustPolicy sizeAdjustPolicy(QComboBox* theWrappedObject) const; - QSize sizeHint(QComboBox* theWrappedObject) const; - const QValidator* validator(QComboBox* theWrappedObject) const; - QAbstractItemView* view(QComboBox* theWrappedObject) const; - void wheelEvent(QComboBox* theWrappedObject, QWheelEvent* e); -}; - - - - - -class PythonQtShell_QCommandLinkButton : public QCommandLinkButton -{ -public: - PythonQtShell_QCommandLinkButton(QWidget* parent = 0):QCommandLinkButton(parent),_wrapper(NULL) {}; - PythonQtShell_QCommandLinkButton(const QString& text, QWidget* parent = 0):QCommandLinkButton(text, parent),_wrapper(NULL) {}; - PythonQtShell_QCommandLinkButton(const QString& text, const QString& description, QWidget* parent = 0):QCommandLinkButton(text, description, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void checkStateSet(); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual bool hitButton(const QPoint& pos) const; -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual void nextCheckState(); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCommandLinkButton : public QCommandLinkButton -{ public: -inline bool promoted_event(QEvent* e) { return QCommandLinkButton::event(e); } -inline int promoted_heightForWidth(int arg__1) const { return QCommandLinkButton::heightForWidth(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QCommandLinkButton::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QCommandLinkButton : public QObject -{ Q_OBJECT -public: -public slots: -QCommandLinkButton* new_QCommandLinkButton(QWidget* parent = 0); -QCommandLinkButton* new_QCommandLinkButton(const QString& text, QWidget* parent = 0); -QCommandLinkButton* new_QCommandLinkButton(const QString& text, const QString& description, QWidget* parent = 0); -void delete_QCommandLinkButton(QCommandLinkButton* obj) { delete obj; } - QString description(QCommandLinkButton* theWrappedObject) const; - bool event(QCommandLinkButton* theWrappedObject, QEvent* e); - int heightForWidth(QCommandLinkButton* theWrappedObject, int arg__1) const; - void paintEvent(QCommandLinkButton* theWrappedObject, QPaintEvent* arg__1); - void setDescription(QCommandLinkButton* theWrappedObject, const QString& description); -}; - - - - - -class PythonQtShell_QCommonStyle : public QCommonStyle -{ -public: - PythonQtShell_QCommonStyle():QCommonStyle(),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual int pixelMetric(QStyle::PixelMetric m, const QStyleOption* opt = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* app); -virtual void polish(QPalette& arg__1); -virtual void polish(QWidget* widget); -virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const; -virtual int styleHint(QStyle::StyleHint sh, const QStyleOption* opt = 0, const QWidget* w = 0, QStyleHintReturn* shret = 0) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w = 0) const; -virtual QRect subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void unpolish(QApplication* application); -virtual void unpolish(QWidget* widget); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCommonStyle : public QCommonStyle -{ public: -inline void promoted_drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const { QCommonStyle::drawComplexControl(cc, opt, p, w); } -inline void promoted_drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QCommonStyle::drawControl(element, opt, p, w); } -inline void promoted_drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QCommonStyle::drawPrimitive(pe, opt, p, w); } -inline QPixmap promoted_generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const { return QCommonStyle::generatedIconPixmap(iconMode, pixmap, opt); } -inline QStyle::SubControl promoted_hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const { return QCommonStyle::hitTestComplexControl(cc, opt, pt, w); } -inline int promoted_pixelMetric(QStyle::PixelMetric m, const QStyleOption* opt = 0, const QWidget* widget = 0) const { return QCommonStyle::pixelMetric(m, opt, widget); } -inline void promoted_polish(QApplication* app) { QCommonStyle::polish(app); } -inline void promoted_polish(QPalette& arg__1) { QCommonStyle::polish(arg__1); } -inline void promoted_polish(QWidget* widget) { QCommonStyle::polish(widget); } -inline QSize promoted_sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const { return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget); } -inline int promoted_styleHint(QStyle::StyleHint sh, const QStyleOption* opt = 0, const QWidget* w = 0, QStyleHintReturn* shret = 0) const { return QCommonStyle::styleHint(sh, opt, w, shret); } -inline QRect promoted_subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w = 0) const { return QCommonStyle::subControlRect(cc, opt, sc, w); } -inline QRect promoted_subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const { return QCommonStyle::subElementRect(r, opt, widget); } -inline void promoted_unpolish(QApplication* application) { QCommonStyle::unpolish(application); } -inline void promoted_unpolish(QWidget* widget) { QCommonStyle::unpolish(widget); } -}; - -class PythonQtWrapper_QCommonStyle : public QObject -{ Q_OBJECT -public: -public slots: -QCommonStyle* new_QCommonStyle(); -void delete_QCommonStyle(QCommonStyle* obj) { delete obj; } - void drawComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; - void drawControl(QCommonStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - void drawPrimitive(QCommonStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - QPixmap generatedIconPixmap(QCommonStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; - QStyle::SubControl hitTestComplexControl(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w = 0) const; - int pixelMetric(QCommonStyle* theWrappedObject, QStyle::PixelMetric m, const QStyleOption* opt = 0, const QWidget* widget = 0) const; - void polish(QCommonStyle* theWrappedObject, QApplication* app); - void polish(QCommonStyle* theWrappedObject, QPalette& arg__1); - void polish(QCommonStyle* theWrappedObject, QWidget* widget); - QSize sizeFromContents(QCommonStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; - int styleHint(QCommonStyle* theWrappedObject, QStyle::StyleHint sh, const QStyleOption* opt = 0, const QWidget* w = 0, QStyleHintReturn* shret = 0) const; - QRect subControlRect(QCommonStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w = 0) const; - QRect subElementRect(QCommonStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; - void unpolish(QCommonStyle* theWrappedObject, QApplication* application); - void unpolish(QCommonStyle* theWrappedObject, QWidget* widget); -}; - - - - - -class PythonQtShell_QCompleter : public QCompleter -{ -public: - PythonQtShell_QCompleter(QAbstractItemModel* model, QObject* parent = 0):QCompleter(model, parent),_wrapper(NULL) {}; - PythonQtShell_QCompleter(QObject* parent = 0):QCompleter(parent),_wrapper(NULL) {}; - PythonQtShell_QCompleter(const QStringList& completions, QObject* parent = 0):QCompleter(completions, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* o, QEvent* e); -virtual QString pathFromIndex(const QModelIndex& index) const; -virtual QStringList splitPath(const QString& path) const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QCompleter : public QCompleter -{ public: -inline bool promoted_event(QEvent* arg__1) { return QCompleter::event(arg__1); } -inline bool promoted_eventFilter(QObject* o, QEvent* e) { return QCompleter::eventFilter(o, e); } -inline QString promoted_pathFromIndex(const QModelIndex& index) const { return QCompleter::pathFromIndex(index); } -inline QStringList promoted_splitPath(const QString& path) const { return QCompleter::splitPath(path); } -}; - -class PythonQtWrapper_QCompleter : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ModelSorting CompletionMode ) -enum ModelSorting{ - UnsortedModel = QCompleter::UnsortedModel, CaseSensitivelySortedModel = QCompleter::CaseSensitivelySortedModel, CaseInsensitivelySortedModel = QCompleter::CaseInsensitivelySortedModel}; -enum CompletionMode{ - PopupCompletion = QCompleter::PopupCompletion, UnfilteredPopupCompletion = QCompleter::UnfilteredPopupCompletion, InlineCompletion = QCompleter::InlineCompletion}; -public slots: -QCompleter* new_QCompleter(QAbstractItemModel* model, QObject* parent = 0); -QCompleter* new_QCompleter(QObject* parent = 0); -QCompleter* new_QCompleter(const QStringList& completions, QObject* parent = 0); -void delete_QCompleter(QCompleter* obj) { delete obj; } - Qt::CaseSensitivity caseSensitivity(QCompleter* theWrappedObject) const; - int completionColumn(QCompleter* theWrappedObject) const; - int completionCount(QCompleter* theWrappedObject) const; - QCompleter::CompletionMode completionMode(QCompleter* theWrappedObject) const; - QAbstractItemModel* completionModel(QCompleter* theWrappedObject) const; - QString completionPrefix(QCompleter* theWrappedObject) const; - int completionRole(QCompleter* theWrappedObject) const; - QString currentCompletion(QCompleter* theWrappedObject) const; - QModelIndex currentIndex(QCompleter* theWrappedObject) const; - int currentRow(QCompleter* theWrappedObject) const; - bool event(QCompleter* theWrappedObject, QEvent* arg__1); - bool eventFilter(QCompleter* theWrappedObject, QObject* o, QEvent* e); - int maxVisibleItems(QCompleter* theWrappedObject) const; - QAbstractItemModel* model(QCompleter* theWrappedObject) const; - QCompleter::ModelSorting modelSorting(QCompleter* theWrappedObject) const; - QString pathFromIndex(QCompleter* theWrappedObject, const QModelIndex& index) const; - QAbstractItemView* popup(QCompleter* theWrappedObject) const; - void setCaseSensitivity(QCompleter* theWrappedObject, Qt::CaseSensitivity caseSensitivity); - void setCompletionColumn(QCompleter* theWrappedObject, int column); - void setCompletionMode(QCompleter* theWrappedObject, QCompleter::CompletionMode mode); - void setCompletionRole(QCompleter* theWrappedObject, int role); - bool setCurrentRow(QCompleter* theWrappedObject, int row); - void setMaxVisibleItems(QCompleter* theWrappedObject, int maxItems); - void setModel(QCompleter* theWrappedObject, QAbstractItemModel* c); - void setModelSorting(QCompleter* theWrappedObject, QCompleter::ModelSorting sorting); - void setPopup(QCompleter* theWrappedObject, QAbstractItemView* popup); - void setWidget(QCompleter* theWrappedObject, QWidget* widget); - QStringList splitPath(QCompleter* theWrappedObject, const QString& path) const; - QWidget* widget(QCompleter* theWrappedObject) const; - bool wrapAround(QCompleter* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QConicalGradient : public QObject -{ Q_OBJECT -public: -public slots: -QConicalGradient* new_QConicalGradient(); -QConicalGradient* new_QConicalGradient(const QPointF& center, qreal startAngle); -QConicalGradient* new_QConicalGradient(qreal cx, qreal cy, qreal startAngle); -QConicalGradient* new_QConicalGradient(const QConicalGradient& other) { -QConicalGradient* a = new QConicalGradient(); -*((QConicalGradient*)a) = other; -return a; } -void delete_QConicalGradient(QConicalGradient* obj) { delete obj; } - qreal angle(QConicalGradient* theWrappedObject) const; - QPointF center(QConicalGradient* theWrappedObject) const; - void setAngle(QConicalGradient* theWrappedObject, qreal angle); - void setCenter(QConicalGradient* theWrappedObject, const QPointF& center); - void setCenter(QConicalGradient* theWrappedObject, qreal x, qreal y); -}; - - - - - -class PythonQtShell_QContextMenuEvent : public QContextMenuEvent -{ -public: - PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos):QContextMenuEvent(reason, pos),_wrapper(NULL) {}; - PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos):QContextMenuEvent(reason, pos, globalPos),_wrapper(NULL) {}; - PythonQtShell_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers):QContextMenuEvent(reason, pos, globalPos, modifiers),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QContextMenuEvent : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Reason ) -enum Reason{ - Mouse = QContextMenuEvent::Mouse, Keyboard = QContextMenuEvent::Keyboard, Other = QContextMenuEvent::Other}; -public slots: -QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos); -QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos); -QContextMenuEvent* new_QContextMenuEvent(QContextMenuEvent::Reason reason, const QPoint& pos, const QPoint& globalPos, Qt::KeyboardModifiers modifiers); -void delete_QContextMenuEvent(QContextMenuEvent* obj) { delete obj; } - const QPoint* globalPos(QContextMenuEvent* theWrappedObject) const; - int globalX(QContextMenuEvent* theWrappedObject) const; - int globalY(QContextMenuEvent* theWrappedObject) const; - const QPoint* pos(QContextMenuEvent* theWrappedObject) const; - QContextMenuEvent::Reason reason(QContextMenuEvent* theWrappedObject) const; - int x(QContextMenuEvent* theWrappedObject) const; - int y(QContextMenuEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDataWidgetMapper : public QDataWidgetMapper -{ -public: - PythonQtShell_QDataWidgetMapper(QObject* parent = 0):QDataWidgetMapper(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void setCurrentIndex(int index); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDataWidgetMapper : public QDataWidgetMapper -{ public: -inline void promoted_setCurrentIndex(int index) { QDataWidgetMapper::setCurrentIndex(index); } -}; - -class PythonQtWrapper_QDataWidgetMapper : public QObject -{ Q_OBJECT -public: -public slots: -QDataWidgetMapper* new_QDataWidgetMapper(QObject* parent = 0); -void delete_QDataWidgetMapper(QDataWidgetMapper* obj) { delete obj; } - void addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section); - void addMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget, int section, const QByteArray& propertyName); - void clearMapping(QDataWidgetMapper* theWrappedObject); - int currentIndex(QDataWidgetMapper* theWrappedObject) const; - QAbstractItemDelegate* itemDelegate(QDataWidgetMapper* theWrappedObject) const; - QByteArray mappedPropertyName(QDataWidgetMapper* theWrappedObject, QWidget* widget) const; - int mappedSection(QDataWidgetMapper* theWrappedObject, QWidget* widget) const; - QWidget* mappedWidgetAt(QDataWidgetMapper* theWrappedObject, int section) const; - QAbstractItemModel* model(QDataWidgetMapper* theWrappedObject) const; - Qt::Orientation orientation(QDataWidgetMapper* theWrappedObject) const; - void removeMapping(QDataWidgetMapper* theWrappedObject, QWidget* widget); - QModelIndex rootIndex(QDataWidgetMapper* theWrappedObject) const; - void setItemDelegate(QDataWidgetMapper* theWrappedObject, QAbstractItemDelegate* delegate); - void setModel(QDataWidgetMapper* theWrappedObject, QAbstractItemModel* model); - void setOrientation(QDataWidgetMapper* theWrappedObject, Qt::Orientation aOrientation); - void setRootIndex(QDataWidgetMapper* theWrappedObject, const QModelIndex& index); - void setSubmitPolicy(QDataWidgetMapper* theWrappedObject, QDataWidgetMapper::SubmitPolicy policy); - QDataWidgetMapper::SubmitPolicy submitPolicy(QDataWidgetMapper* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDateEdit : public QDateEdit -{ -public: - PythonQtShell_QDateEdit(QWidget* parent = 0):QDateEdit(parent),_wrapper(NULL) {}; - PythonQtShell_QDateEdit(const QDate& date, QWidget* parent = 0):QDateEdit(date, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual QDateTime dateTimeFromText(const QString& text) const; -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& input) const; -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void stepBy(int steps); -virtual QAbstractSpinBox::StepEnabled stepEnabled() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual QString textFromDateTime(const QDateTime& dt) const; -virtual void timerEvent(QTimerEvent* event); -virtual QValidator::State validate(QString& input, int& pos) const; -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDateEdit : public QObject -{ Q_OBJECT -public: -public slots: -QDateEdit* new_QDateEdit(QWidget* parent = 0); -QDateEdit* new_QDateEdit(const QDate& date, QWidget* parent = 0); -void delete_QDateEdit(QDateEdit* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QDateTimeEdit : public QDateTimeEdit -{ -public: - PythonQtShell_QDateTimeEdit(QWidget* parent = 0):QDateTimeEdit(parent),_wrapper(NULL) {}; - PythonQtShell_QDateTimeEdit(const QDate& d, QWidget* parent = 0):QDateTimeEdit(d, parent),_wrapper(NULL) {}; - PythonQtShell_QDateTimeEdit(const QDateTime& dt, QWidget* parent = 0):QDateTimeEdit(dt, parent),_wrapper(NULL) {}; - PythonQtShell_QDateTimeEdit(const QTime& t, QWidget* parent = 0):QDateTimeEdit(t, parent),_wrapper(NULL) {}; - PythonQtShell_QDateTimeEdit(const QVariant& val, QVariant::Type parserType, QWidget* parent = 0):QDateTimeEdit(val, parserType, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual QDateTime dateTimeFromText(const QString& text) const; -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& input) const; -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void stepBy(int steps); -virtual QAbstractSpinBox::StepEnabled stepEnabled() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual QString textFromDateTime(const QDateTime& dt) const; -virtual void timerEvent(QTimerEvent* event); -virtual QValidator::State validate(QString& input, int& pos) const; -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDateTimeEdit : public QDateTimeEdit -{ public: -inline void promoted_clear() { QDateTimeEdit::clear(); } -inline QDateTime promoted_dateTimeFromText(const QString& text) const { return QDateTimeEdit::dateTimeFromText(text); } -inline bool promoted_event(QEvent* event) { return QDateTimeEdit::event(event); } -inline void promoted_fixup(QString& input) const { QDateTimeEdit::fixup(input); } -inline void promoted_focusInEvent(QFocusEvent* event) { QDateTimeEdit::focusInEvent(event); } -inline bool promoted_focusNextPrevChild(bool next) { return QDateTimeEdit::focusNextPrevChild(next); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QDateTimeEdit::keyPressEvent(event); } -inline void promoted_mousePressEvent(QMouseEvent* event) { QDateTimeEdit::mousePressEvent(event); } -inline void promoted_paintEvent(QPaintEvent* event) { QDateTimeEdit::paintEvent(event); } -inline void promoted_stepBy(int steps) { QDateTimeEdit::stepBy(steps); } -inline QAbstractSpinBox::StepEnabled promoted_stepEnabled() const { return QDateTimeEdit::stepEnabled(); } -inline QString promoted_textFromDateTime(const QDateTime& dt) const { return QDateTimeEdit::textFromDateTime(dt); } -inline QValidator::State promoted_validate(QString& input, int& pos) const { return QDateTimeEdit::validate(input, pos); } -inline void promoted_wheelEvent(QWheelEvent* event) { QDateTimeEdit::wheelEvent(event); } -}; - -class PythonQtWrapper_QDateTimeEdit : public QObject -{ Q_OBJECT -public: -public slots: -QDateTimeEdit* new_QDateTimeEdit(QWidget* parent = 0); -QDateTimeEdit* new_QDateTimeEdit(const QDate& d, QWidget* parent = 0); -QDateTimeEdit* new_QDateTimeEdit(const QDateTime& dt, QWidget* parent = 0); -QDateTimeEdit* new_QDateTimeEdit(const QTime& t, QWidget* parent = 0); -void delete_QDateTimeEdit(QDateTimeEdit* obj) { delete obj; } - bool calendarPopup(QDateTimeEdit* theWrappedObject) const; - QCalendarWidget* calendarWidget(QDateTimeEdit* theWrappedObject) const; - void clear(QDateTimeEdit* theWrappedObject); - void clearMaximumDate(QDateTimeEdit* theWrappedObject); - void clearMaximumDateTime(QDateTimeEdit* theWrappedObject); - void clearMaximumTime(QDateTimeEdit* theWrappedObject); - void clearMinimumDate(QDateTimeEdit* theWrappedObject); - void clearMinimumDateTime(QDateTimeEdit* theWrappedObject); - void clearMinimumTime(QDateTimeEdit* theWrappedObject); - QDateTimeEdit::Section currentSection(QDateTimeEdit* theWrappedObject) const; - int currentSectionIndex(QDateTimeEdit* theWrappedObject) const; - QDate date(QDateTimeEdit* theWrappedObject) const; - QDateTime dateTime(QDateTimeEdit* theWrappedObject) const; - QDateTime dateTimeFromText(QDateTimeEdit* theWrappedObject, const QString& text) const; - QString displayFormat(QDateTimeEdit* theWrappedObject) const; - QDateTimeEdit::Sections displayedSections(QDateTimeEdit* theWrappedObject) const; - bool event(QDateTimeEdit* theWrappedObject, QEvent* event); - void fixup(QDateTimeEdit* theWrappedObject, QString& input) const; - void focusInEvent(QDateTimeEdit* theWrappedObject, QFocusEvent* event); - bool focusNextPrevChild(QDateTimeEdit* theWrappedObject, bool next); - void keyPressEvent(QDateTimeEdit* theWrappedObject, QKeyEvent* event); - QDate maximumDate(QDateTimeEdit* theWrappedObject) const; - QDateTime maximumDateTime(QDateTimeEdit* theWrappedObject) const; - QTime maximumTime(QDateTimeEdit* theWrappedObject) const; - QDate minimumDate(QDateTimeEdit* theWrappedObject) const; - QDateTime minimumDateTime(QDateTimeEdit* theWrappedObject) const; - QTime minimumTime(QDateTimeEdit* theWrappedObject) const; - void mousePressEvent(QDateTimeEdit* theWrappedObject, QMouseEvent* event); - void paintEvent(QDateTimeEdit* theWrappedObject, QPaintEvent* event); - QDateTimeEdit::Section sectionAt(QDateTimeEdit* theWrappedObject, int index) const; - int sectionCount(QDateTimeEdit* theWrappedObject) const; - QString sectionText(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section) const; - void setCalendarPopup(QDateTimeEdit* theWrappedObject, bool enable); - void setCalendarWidget(QDateTimeEdit* theWrappedObject, QCalendarWidget* calendarWidget); - void setCurrentSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section); - void setCurrentSectionIndex(QDateTimeEdit* theWrappedObject, int index); - void setDateRange(QDateTimeEdit* theWrappedObject, const QDate& min, const QDate& max); - void setDateTimeRange(QDateTimeEdit* theWrappedObject, const QDateTime& min, const QDateTime& max); - void setDisplayFormat(QDateTimeEdit* theWrappedObject, const QString& format); - void setMaximumDate(QDateTimeEdit* theWrappedObject, const QDate& max); - void setMaximumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt); - void setMaximumTime(QDateTimeEdit* theWrappedObject, const QTime& max); - void setMinimumDate(QDateTimeEdit* theWrappedObject, const QDate& min); - void setMinimumDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt); - void setMinimumTime(QDateTimeEdit* theWrappedObject, const QTime& min); - void setSelectedSection(QDateTimeEdit* theWrappedObject, QDateTimeEdit::Section section); - void setTimeRange(QDateTimeEdit* theWrappedObject, const QTime& min, const QTime& max); - void setTimeSpec(QDateTimeEdit* theWrappedObject, Qt::TimeSpec spec); - QSize sizeHint(QDateTimeEdit* theWrappedObject) const; - void stepBy(QDateTimeEdit* theWrappedObject, int steps); - QAbstractSpinBox::StepEnabled stepEnabled(QDateTimeEdit* theWrappedObject) const; - QString textFromDateTime(QDateTimeEdit* theWrappedObject, const QDateTime& dt) const; - QTime time(QDateTimeEdit* theWrappedObject) const; - Qt::TimeSpec timeSpec(QDateTimeEdit* theWrappedObject) const; - QValidator::State validate(QDateTimeEdit* theWrappedObject, QString& input, int& pos) const; - void wheelEvent(QDateTimeEdit* theWrappedObject, QWheelEvent* event); -}; - - - - - -class PythonQtShell_QDesktopServices : public QDesktopServices -{ -public: - PythonQtShell_QDesktopServices():QDesktopServices(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDesktopServices : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StandardLocation ) -enum StandardLocation{ - DesktopLocation = QDesktopServices::DesktopLocation, DocumentsLocation = QDesktopServices::DocumentsLocation, FontsLocation = QDesktopServices::FontsLocation, ApplicationsLocation = QDesktopServices::ApplicationsLocation, MusicLocation = QDesktopServices::MusicLocation, MoviesLocation = QDesktopServices::MoviesLocation, PicturesLocation = QDesktopServices::PicturesLocation, TempLocation = QDesktopServices::TempLocation, HomeLocation = QDesktopServices::HomeLocation, DataLocation = QDesktopServices::DataLocation, CacheLocation = QDesktopServices::CacheLocation}; -public slots: -QDesktopServices* new_QDesktopServices(); -void delete_QDesktopServices(QDesktopServices* obj) { delete obj; } - QString static_QDesktopServices_displayName(QDesktopServices::StandardLocation type); - bool static_QDesktopServices_openUrl(const QUrl& url); - void static_QDesktopServices_setUrlHandler(const QString& scheme, QObject* receiver, const char* method); - QString static_QDesktopServices_storageLocation(QDesktopServices::StandardLocation type); - void static_QDesktopServices_unsetUrlHandler(const QString& scheme); -}; - - - - - -class PythonQtShell_QDesktopWidget : public QDesktopWidget -{ -public: - PythonQtShell_QDesktopWidget():QDesktopWidget(),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* e); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDesktopWidget : public QDesktopWidget -{ public: -inline void promoted_resizeEvent(QResizeEvent* e) { QDesktopWidget::resizeEvent(e); } -}; - -class PythonQtWrapper_QDesktopWidget : public QObject -{ Q_OBJECT -public: -public slots: -QDesktopWidget* new_QDesktopWidget(); -void delete_QDesktopWidget(QDesktopWidget* obj) { delete obj; } - const QRect availableGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const; - const QRect availableGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const; - const QRect availableGeometry(QDesktopWidget* theWrappedObject, int screen = -1) const; - bool isVirtualDesktop(QDesktopWidget* theWrappedObject) const; - int numScreens(QDesktopWidget* theWrappedObject) const; - int primaryScreen(QDesktopWidget* theWrappedObject) const; - void resizeEvent(QDesktopWidget* theWrappedObject, QResizeEvent* e); - QWidget* screen(QDesktopWidget* theWrappedObject, int screen = -1); - int screenCount(QDesktopWidget* theWrappedObject) const; - const QRect screenGeometry(QDesktopWidget* theWrappedObject, const QPoint& point) const; - const QRect screenGeometry(QDesktopWidget* theWrappedObject, const QWidget* widget) const; - const QRect screenGeometry(QDesktopWidget* theWrappedObject, int screen = -1) const; - int screenNumber(QDesktopWidget* theWrappedObject, const QPoint& arg__1) const; - int screenNumber(QDesktopWidget* theWrappedObject, const QWidget* widget = 0) const; -}; - - - - - -class PythonQtShell_QDial : public QDial -{ -public: - PythonQtShell_QDial(QWidget* parent = 0):QDial(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* ev); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* me); -virtual void mousePressEvent(QMouseEvent* me); -virtual void mouseReleaseEvent(QMouseEvent* me); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* pe); -virtual void resizeEvent(QResizeEvent* re); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDial : public QDial -{ public: -inline bool promoted_event(QEvent* e) { return QDial::event(e); } -inline void promoted_mouseMoveEvent(QMouseEvent* me) { QDial::mouseMoveEvent(me); } -inline void promoted_mousePressEvent(QMouseEvent* me) { QDial::mousePressEvent(me); } -inline void promoted_mouseReleaseEvent(QMouseEvent* me) { QDial::mouseReleaseEvent(me); } -inline void promoted_paintEvent(QPaintEvent* pe) { QDial::paintEvent(pe); } -inline void promoted_resizeEvent(QResizeEvent* re) { QDial::resizeEvent(re); } -}; - -class PythonQtWrapper_QDial : public QObject -{ Q_OBJECT -public: -public slots: -QDial* new_QDial(QWidget* parent = 0); -void delete_QDial(QDial* obj) { delete obj; } - bool event(QDial* theWrappedObject, QEvent* e); - QSize minimumSizeHint(QDial* theWrappedObject) const; - void mouseMoveEvent(QDial* theWrappedObject, QMouseEvent* me); - void mousePressEvent(QDial* theWrappedObject, QMouseEvent* me); - void mouseReleaseEvent(QDial* theWrappedObject, QMouseEvent* me); - int notchSize(QDial* theWrappedObject) const; - qreal notchTarget(QDial* theWrappedObject) const; - bool notchesVisible(QDial* theWrappedObject) const; - void paintEvent(QDial* theWrappedObject, QPaintEvent* pe); - void resizeEvent(QDial* theWrappedObject, QResizeEvent* re); - void setNotchTarget(QDial* theWrappedObject, double target); - QSize sizeHint(QDial* theWrappedObject) const; - bool wrapping(QDial* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDialog : public QDialog -{ -public: - PythonQtShell_QDialog(QWidget* parent = 0, Qt::WindowFlags f = 0):QDialog(parent, f),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int arg__1); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDialog : public QDialog -{ public: -inline void promoted_accept() { QDialog::accept(); } -inline void promoted_closeEvent(QCloseEvent* arg__1) { QDialog::closeEvent(arg__1); } -inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QDialog::contextMenuEvent(arg__1); } -inline void promoted_done(int arg__1) { QDialog::done(arg__1); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QDialog::eventFilter(arg__1, arg__2); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QDialog::keyPressEvent(arg__1); } -inline void promoted_reject() { QDialog::reject(); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QDialog::resizeEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* arg__1) { QDialog::showEvent(arg__1); } -}; - -class PythonQtWrapper_QDialog : public QObject -{ Q_OBJECT -public: -Q_ENUMS(DialogCode ) -enum DialogCode{ - Rejected = QDialog::Rejected, Accepted = QDialog::Accepted}; -public slots: -QDialog* new_QDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); -void delete_QDialog(QDialog* obj) { delete obj; } - void closeEvent(QDialog* theWrappedObject, QCloseEvent* arg__1); - void contextMenuEvent(QDialog* theWrappedObject, QContextMenuEvent* arg__1); - bool eventFilter(QDialog* theWrappedObject, QObject* arg__1, QEvent* arg__2); - bool isSizeGripEnabled(QDialog* theWrappedObject) const; - void keyPressEvent(QDialog* theWrappedObject, QKeyEvent* arg__1); - QSize minimumSizeHint(QDialog* theWrappedObject) const; - void resizeEvent(QDialog* theWrappedObject, QResizeEvent* arg__1); - int result(QDialog* theWrappedObject) const; - void setModal(QDialog* theWrappedObject, bool modal); - void setResult(QDialog* theWrappedObject, int r); - void setSizeGripEnabled(QDialog* theWrappedObject, bool arg__1); - void setVisible(QDialog* theWrappedObject, bool visible); - void showEvent(QDialog* theWrappedObject, QShowEvent* arg__1); - QSize sizeHint(QDialog* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDialogButtonBox : public QDialogButtonBox -{ -public: - PythonQtShell_QDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation = Qt::Horizontal, QWidget* parent = 0):QDialogButtonBox(buttons, orientation, parent),_wrapper(NULL) {}; - PythonQtShell_QDialogButtonBox(QWidget* parent = 0):QDialogButtonBox(parent),_wrapper(NULL) {}; - PythonQtShell_QDialogButtonBox(Qt::Orientation orientation, QWidget* parent = 0):QDialogButtonBox(orientation, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDialogButtonBox : public QDialogButtonBox -{ public: -inline void promoted_changeEvent(QEvent* event) { QDialogButtonBox::changeEvent(event); } -inline bool promoted_event(QEvent* event) { return QDialogButtonBox::event(event); } -}; - -class PythonQtWrapper_QDialogButtonBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ButtonLayout ButtonRole StandardButton ) -Q_FLAGS(StandardButtons ) -enum ButtonLayout{ - WinLayout = QDialogButtonBox::WinLayout, MacLayout = QDialogButtonBox::MacLayout, KdeLayout = QDialogButtonBox::KdeLayout, GnomeLayout = QDialogButtonBox::GnomeLayout}; -enum ButtonRole{ - InvalidRole = QDialogButtonBox::InvalidRole, AcceptRole = QDialogButtonBox::AcceptRole, RejectRole = QDialogButtonBox::RejectRole, DestructiveRole = QDialogButtonBox::DestructiveRole, ActionRole = QDialogButtonBox::ActionRole, HelpRole = QDialogButtonBox::HelpRole, YesRole = QDialogButtonBox::YesRole, NoRole = QDialogButtonBox::NoRole, ResetRole = QDialogButtonBox::ResetRole, ApplyRole = QDialogButtonBox::ApplyRole, NRoles = QDialogButtonBox::NRoles}; -enum StandardButton{ - NoButton = QDialogButtonBox::NoButton, Ok = QDialogButtonBox::Ok, Save = QDialogButtonBox::Save, SaveAll = QDialogButtonBox::SaveAll, Open = QDialogButtonBox::Open, Yes = QDialogButtonBox::Yes, YesToAll = QDialogButtonBox::YesToAll, No = QDialogButtonBox::No, NoToAll = QDialogButtonBox::NoToAll, Abort = QDialogButtonBox::Abort, Retry = QDialogButtonBox::Retry, Ignore = QDialogButtonBox::Ignore, Close = QDialogButtonBox::Close, Cancel = QDialogButtonBox::Cancel, Discard = QDialogButtonBox::Discard, Help = QDialogButtonBox::Help, Apply = QDialogButtonBox::Apply, Reset = QDialogButtonBox::Reset, RestoreDefaults = QDialogButtonBox::RestoreDefaults, FirstButton = QDialogButtonBox::FirstButton, LastButton = QDialogButtonBox::LastButton}; -Q_DECLARE_FLAGS(StandardButtons, StandardButton) -public slots: -QDialogButtonBox* new_QDialogButtonBox(QDialogButtonBox::StandardButtons buttons, Qt::Orientation orientation = Qt::Horizontal, QWidget* parent = 0); -QDialogButtonBox* new_QDialogButtonBox(QWidget* parent = 0); -QDialogButtonBox* new_QDialogButtonBox(Qt::Orientation orientation, QWidget* parent = 0); -void delete_QDialogButtonBox(QDialogButtonBox* obj) { delete obj; } - void addButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button, QDialogButtonBox::ButtonRole role); - QPushButton* addButton(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton button); - QPushButton* addButton(QDialogButtonBox* theWrappedObject, const QString& text, QDialogButtonBox::ButtonRole role); - QPushButton* button(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButton which) const; - QDialogButtonBox::ButtonRole buttonRole(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const; - QList buttons(QDialogButtonBox* theWrappedObject) const; - bool centerButtons(QDialogButtonBox* theWrappedObject) const; - void changeEvent(QDialogButtonBox* theWrappedObject, QEvent* event); - void clear(QDialogButtonBox* theWrappedObject); - bool event(QDialogButtonBox* theWrappedObject, QEvent* event); - Qt::Orientation orientation(QDialogButtonBox* theWrappedObject) const; - void removeButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button); - void setCenterButtons(QDialogButtonBox* theWrappedObject, bool center); - void setOrientation(QDialogButtonBox* theWrappedObject, Qt::Orientation orientation); - void setStandardButtons(QDialogButtonBox* theWrappedObject, QDialogButtonBox::StandardButtons buttons); - QDialogButtonBox::StandardButton standardButton(QDialogButtonBox* theWrappedObject, QAbstractButton* button) const; - QDialogButtonBox::StandardButtons standardButtons(QDialogButtonBox* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDockWidget : public QDockWidget -{ -public: - PythonQtShell_QDockWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0):QDockWidget(parent, flags),_wrapper(NULL) {}; - PythonQtShell_QDockWidget(const QString& title, QWidget* parent = 0, Qt::WindowFlags flags = 0):QDockWidget(title, parent, flags),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDockWidget : public QDockWidget -{ public: -inline void promoted_changeEvent(QEvent* event) { QDockWidget::changeEvent(event); } -inline void promoted_closeEvent(QCloseEvent* event) { QDockWidget::closeEvent(event); } -inline bool promoted_event(QEvent* event) { return QDockWidget::event(event); } -inline void promoted_paintEvent(QPaintEvent* event) { QDockWidget::paintEvent(event); } -}; - -class PythonQtWrapper_QDockWidget : public QObject -{ Q_OBJECT -public: -Q_ENUMS(DockWidgetFeature ) -Q_FLAGS(DockWidgetFeatures ) -enum DockWidgetFeature{ - DockWidgetClosable = QDockWidget::DockWidgetClosable, DockWidgetMovable = QDockWidget::DockWidgetMovable, DockWidgetFloatable = QDockWidget::DockWidgetFloatable, DockWidgetVerticalTitleBar = QDockWidget::DockWidgetVerticalTitleBar, DockWidgetFeatureMask = QDockWidget::DockWidgetFeatureMask, AllDockWidgetFeatures = QDockWidget::AllDockWidgetFeatures, NoDockWidgetFeatures = QDockWidget::NoDockWidgetFeatures, Reserved = QDockWidget::Reserved}; -Q_DECLARE_FLAGS(DockWidgetFeatures, DockWidgetFeature) -public slots: -QDockWidget* new_QDockWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0); -QDockWidget* new_QDockWidget(const QString& title, QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QDockWidget(QDockWidget* obj) { delete obj; } - Qt::DockWidgetAreas allowedAreas(QDockWidget* theWrappedObject) const; - void changeEvent(QDockWidget* theWrappedObject, QEvent* event); - void closeEvent(QDockWidget* theWrappedObject, QCloseEvent* event); - bool event(QDockWidget* theWrappedObject, QEvent* event); - QDockWidget::DockWidgetFeatures features(QDockWidget* theWrappedObject) const; - bool isAreaAllowed(QDockWidget* theWrappedObject, Qt::DockWidgetArea area) const; - bool isFloating(QDockWidget* theWrappedObject) const; - void paintEvent(QDockWidget* theWrappedObject, QPaintEvent* event); - void setAllowedAreas(QDockWidget* theWrappedObject, Qt::DockWidgetAreas areas); - void setFeatures(QDockWidget* theWrappedObject, QDockWidget::DockWidgetFeatures features); - void setFloating(QDockWidget* theWrappedObject, bool floating); - void setTitleBarWidget(QDockWidget* theWrappedObject, QWidget* widget); - void setWidget(QDockWidget* theWrappedObject, QWidget* widget); - QWidget* titleBarWidget(QDockWidget* theWrappedObject) const; - QAction* toggleViewAction(QDockWidget* theWrappedObject) const; - QWidget* widget(QDockWidget* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDoubleSpinBox : public QDoubleSpinBox -{ -public: - PythonQtShell_QDoubleSpinBox(QWidget* parent = 0):QDoubleSpinBox(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& str) const; -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void stepBy(int steps); -virtual QAbstractSpinBox::StepEnabled stepEnabled() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual QString textFromValue(double val) const; -virtual void timerEvent(QTimerEvent* event); -virtual QValidator::State validate(QString& input, int& pos) const; -virtual double valueFromText(const QString& text) const; -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDoubleSpinBox : public QDoubleSpinBox -{ public: -inline void promoted_fixup(QString& str) const { QDoubleSpinBox::fixup(str); } -inline QString promoted_textFromValue(double val) const { return QDoubleSpinBox::textFromValue(val); } -inline QValidator::State promoted_validate(QString& input, int& pos) const { return QDoubleSpinBox::validate(input, pos); } -inline double promoted_valueFromText(const QString& text) const { return QDoubleSpinBox::valueFromText(text); } -}; - -class PythonQtWrapper_QDoubleSpinBox : public QObject -{ Q_OBJECT -public: -public slots: -QDoubleSpinBox* new_QDoubleSpinBox(QWidget* parent = 0); -void delete_QDoubleSpinBox(QDoubleSpinBox* obj) { delete obj; } - QString cleanText(QDoubleSpinBox* theWrappedObject) const; - int decimals(QDoubleSpinBox* theWrappedObject) const; - void fixup(QDoubleSpinBox* theWrappedObject, QString& str) const; - double maximum(QDoubleSpinBox* theWrappedObject) const; - double minimum(QDoubleSpinBox* theWrappedObject) const; - QString prefix(QDoubleSpinBox* theWrappedObject) const; - void setDecimals(QDoubleSpinBox* theWrappedObject, int prec); - void setMaximum(QDoubleSpinBox* theWrappedObject, double max); - void setMinimum(QDoubleSpinBox* theWrappedObject, double min); - void setPrefix(QDoubleSpinBox* theWrappedObject, const QString& prefix); - void setRange(QDoubleSpinBox* theWrappedObject, double min, double max); - void setSingleStep(QDoubleSpinBox* theWrappedObject, double val); - void setSuffix(QDoubleSpinBox* theWrappedObject, const QString& suffix); - double singleStep(QDoubleSpinBox* theWrappedObject) const; - QString suffix(QDoubleSpinBox* theWrappedObject) const; - QString textFromValue(QDoubleSpinBox* theWrappedObject, double val) const; - QValidator::State validate(QDoubleSpinBox* theWrappedObject, QString& input, int& pos) const; - double value(QDoubleSpinBox* theWrappedObject) const; - double valueFromText(QDoubleSpinBox* theWrappedObject, const QString& text) const; -}; - - - - - -class PythonQtShell_QDoubleValidator : public QDoubleValidator -{ -public: - PythonQtShell_QDoubleValidator(QObject* parent):QDoubleValidator(parent),_wrapper(NULL) {}; - PythonQtShell_QDoubleValidator(double bottom, double top, int decimals, QObject* parent):QDoubleValidator(bottom, top, decimals, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& arg__1) const; -virtual void setRange(double bottom, double top, int decimals = 0); -virtual void timerEvent(QTimerEvent* arg__1); -virtual QValidator::State validate(QString& arg__1, int& arg__2) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QDoubleValidator : public QDoubleValidator -{ public: -inline void promoted_setRange(double bottom, double top, int decimals = 0) { QDoubleValidator::setRange(bottom, top, decimals); } -inline QValidator::State promoted_validate(QString& arg__1, int& arg__2) const { return QDoubleValidator::validate(arg__1, arg__2); } -}; - -class PythonQtWrapper_QDoubleValidator : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Notation ) -enum Notation{ - StandardNotation = QDoubleValidator::StandardNotation, ScientificNotation = QDoubleValidator::ScientificNotation}; -public slots: -QDoubleValidator* new_QDoubleValidator(QObject* parent); -QDoubleValidator* new_QDoubleValidator(double bottom, double top, int decimals, QObject* parent); -void delete_QDoubleValidator(QDoubleValidator* obj) { delete obj; } - double bottom(QDoubleValidator* theWrappedObject) const; - int decimals(QDoubleValidator* theWrappedObject) const; - QDoubleValidator::Notation notation(QDoubleValidator* theWrappedObject) const; - void setBottom(QDoubleValidator* theWrappedObject, double arg__1); - void setDecimals(QDoubleValidator* theWrappedObject, int arg__1); - void setNotation(QDoubleValidator* theWrappedObject, QDoubleValidator::Notation arg__1); - void setRange(QDoubleValidator* theWrappedObject, double bottom, double top, int decimals = 0); - void setTop(QDoubleValidator* theWrappedObject, double arg__1); - double top(QDoubleValidator* theWrappedObject) const; - QValidator::State validate(QDoubleValidator* theWrappedObject, QString& arg__1, int& arg__2) const; -}; - - - - - -class PythonQtShell_QDrag : public QDrag -{ -public: - PythonQtShell_QDrag(QWidget* dragSource):QDrag(dragSource),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDrag : public QObject -{ Q_OBJECT -public: -public slots: -QDrag* new_QDrag(QWidget* dragSource); -void delete_QDrag(QDrag* obj) { delete obj; } - Qt::DropAction exec(QDrag* theWrappedObject, Qt::DropActions supportedActions = Qt::MoveAction); - Qt::DropAction exec(QDrag* theWrappedObject, Qt::DropActions supportedActions, Qt::DropAction defaultAction); - QPoint hotSpot(QDrag* theWrappedObject) const; - QMimeData* mimeData(QDrag* theWrappedObject) const; - QPixmap pixmap(QDrag* theWrappedObject) const; - void setDragCursor(QDrag* theWrappedObject, const QPixmap& cursor, Qt::DropAction action); - void setHotSpot(QDrag* theWrappedObject, const QPoint& hotspot); - void setMimeData(QDrag* theWrappedObject, QMimeData* data); - void setPixmap(QDrag* theWrappedObject, const QPixmap& arg__1); - QWidget* source(QDrag* theWrappedObject) const; - QWidget* target(QDrag* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QDragEnterEvent : public QObject -{ Q_OBJECT -public: -public slots: -QDragEnterEvent* new_QDragEnterEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); -void delete_QDragEnterEvent(QDragEnterEvent* obj) { delete obj; } -}; - - - - - -class PythonQtWrapper_QDragLeaveEvent : public QObject -{ Q_OBJECT -public: -public slots: -QDragLeaveEvent* new_QDragLeaveEvent(); -void delete_QDragLeaveEvent(QDragLeaveEvent* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QDragMoveEvent : public QDragMoveEvent -{ -public: - PythonQtShell_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::DragMove):QDragMoveEvent(pos, actions, data, buttons, modifiers, type),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDragMoveEvent : public QObject -{ Q_OBJECT -public: -public slots: -QDragMoveEvent* new_QDragMoveEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::DragMove); -void delete_QDragMoveEvent(QDragMoveEvent* obj) { delete obj; } - void accept(QDragMoveEvent* theWrappedObject, const QRect& r); - QRect answerRect(QDragMoveEvent* theWrappedObject) const; - void ignore(QDragMoveEvent* theWrappedObject, const QRect& r); -}; - - - - - -class PythonQtShell_QDragResponseEvent : public QDragResponseEvent -{ -public: - PythonQtShell_QDragResponseEvent(bool accepted):QDragResponseEvent(accepted),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDragResponseEvent : public QObject -{ Q_OBJECT -public: -public slots: -QDragResponseEvent* new_QDragResponseEvent(bool accepted); -void delete_QDragResponseEvent(QDragResponseEvent* obj) { delete obj; } - bool dragAccepted(QDragResponseEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QDropEvent : public QDropEvent -{ -public: - PythonQtShell_QDropEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::Drop):QDropEvent(pos, actions, data, buttons, modifiers, type),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QDropEvent : public QObject -{ Q_OBJECT -public: -public slots: -QDropEvent* new_QDropEvent(const QPoint& pos, Qt::DropActions actions, const QMimeData* data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, QEvent::Type type = QEvent::Drop); -void delete_QDropEvent(QDropEvent* obj) { delete obj; } - void acceptProposedAction(QDropEvent* theWrappedObject); - Qt::DropAction dropAction(QDropEvent* theWrappedObject) const; - Qt::KeyboardModifiers keyboardModifiers(QDropEvent* theWrappedObject) const; - const QMimeData* mimeData(QDropEvent* theWrappedObject) const; - Qt::MouseButtons mouseButtons(QDropEvent* theWrappedObject) const; - const QPoint* pos(QDropEvent* theWrappedObject) const; - Qt::DropActions possibleActions(QDropEvent* theWrappedObject) const; - Qt::DropAction proposedAction(QDropEvent* theWrappedObject) const; - void setDropAction(QDropEvent* theWrappedObject, Qt::DropAction action); - QWidget* source(QDropEvent* theWrappedObject) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp deleted file mode 100644 index 04c50d7f7..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp +++ /dev/null @@ -1,15211 +0,0 @@ -#include "com_trolltech_qt_gui10.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QFont PythonQtWrapper_QToolTip::static_QToolTip_font() -{ - return (QToolTip::font()); -} - -void PythonQtWrapper_QToolTip::static_QToolTip_hideText() -{ - (QToolTip::hideText()); -} - -bool PythonQtWrapper_QToolTip::static_QToolTip_isVisible() -{ - return (QToolTip::isVisible()); -} - -QPalette PythonQtWrapper_QToolTip::static_QToolTip_palette() -{ - return (QToolTip::palette()); -} - -void PythonQtWrapper_QToolTip::static_QToolTip_setFont(const QFont& arg__1) -{ - (QToolTip::setFont(arg__1)); -} - -void PythonQtWrapper_QToolTip::static_QToolTip_setPalette(const QPalette& arg__1) -{ - (QToolTip::setPalette(arg__1)); -} - -void PythonQtWrapper_QToolTip::static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w) -{ - (QToolTip::showText(pos, text, w)); -} - -void PythonQtWrapper_QToolTip::static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w, const QRect& rect) -{ - (QToolTip::showText(pos, text, w, rect)); -} - -QString PythonQtWrapper_QToolTip::static_QToolTip_text() -{ - return (QToolTip::text()); -} - - - -QTouchEvent* PythonQtWrapper_QTouchEvent::new_QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType, Qt::KeyboardModifiers modifiers, Qt::TouchPointStates touchPointStates, const QList& touchPoints) -{ -return new PythonQtShell_QTouchEvent(eventType, deviceType, modifiers, touchPointStates, touchPoints); } - -QTouchEvent::DeviceType PythonQtWrapper_QTouchEvent::deviceType(QTouchEvent* theWrappedObject) const -{ - return ( theWrappedObject->deviceType()); -} - -void PythonQtWrapper_QTouchEvent::setDeviceType(QTouchEvent* theWrappedObject, QTouchEvent::DeviceType adeviceType) -{ - ( theWrappedObject->setDeviceType(adeviceType)); -} - -void PythonQtWrapper_QTouchEvent::setTouchPointStates(QTouchEvent* theWrappedObject, Qt::TouchPointStates aTouchPointStates) -{ - ( theWrappedObject->setTouchPointStates(aTouchPointStates)); -} - -void PythonQtWrapper_QTouchEvent::setTouchPoints(QTouchEvent* theWrappedObject, const QList& atouchPoints) -{ - ( theWrappedObject->setTouchPoints(atouchPoints)); -} - -void PythonQtWrapper_QTouchEvent::setWidget(QTouchEvent* theWrappedObject, QWidget* awidget) -{ - ( theWrappedObject->setWidget(awidget)); -} - -Qt::TouchPointStates PythonQtWrapper_QTouchEvent::touchPointStates(QTouchEvent* theWrappedObject) const -{ - return ( theWrappedObject->touchPointStates()); -} - -const QList* PythonQtWrapper_QTouchEvent::touchPoints(QTouchEvent* theWrappedObject) const -{ - return &( theWrappedObject->touchPoints()); -} - -QWidget* PythonQtWrapper_QTouchEvent::widget(QTouchEvent* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - - - -QTouchEvent::TouchPoint* PythonQtWrapper_QTouchEvent_TouchPoint::new_QTouchEvent_TouchPoint(const QTouchEvent::TouchPoint& other) -{ -return new QTouchEvent::TouchPoint(other); } - -QTouchEvent::TouchPoint* PythonQtWrapper_QTouchEvent_TouchPoint::new_QTouchEvent_TouchPoint(int id) -{ -return new QTouchEvent::TouchPoint(id); } - -int PythonQtWrapper_QTouchEvent_TouchPoint::id(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->id()); -} - -bool PythonQtWrapper_QTouchEvent_TouchPoint::isPrimary(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->isPrimary()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->lastNormalizedPos()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->lastPos()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastScenePos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->lastScenePos()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::lastScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->lastScreenPos()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::normalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->normalizedPos()); -} - -QTouchEvent::TouchPoint* PythonQtWrapper_QTouchEvent_TouchPoint::operator_assign(QTouchEvent::TouchPoint* theWrappedObject, const QTouchEvent::TouchPoint& other) -{ - return &( (*theWrappedObject)= other); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::pos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -qreal PythonQtWrapper_QTouchEvent_TouchPoint::pressure(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->pressure()); -} - -QRectF PythonQtWrapper_QTouchEvent_TouchPoint::rect(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::scenePos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QRectF PythonQtWrapper_QTouchEvent_TouchPoint::sceneRect(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->sceneRect()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::screenPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->screenPos()); -} - -QRectF PythonQtWrapper_QTouchEvent_TouchPoint::screenRect(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->screenRect()); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setId(QTouchEvent::TouchPoint* theWrappedObject, int id) -{ - ( theWrappedObject->setId(id)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setLastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastNormalizedPos) -{ - ( theWrappedObject->setLastNormalizedPos(lastNormalizedPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setLastPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastPos) -{ - ( theWrappedObject->setLastPos(lastPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setLastScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScenePos) -{ - ( theWrappedObject->setLastScenePos(lastScenePos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setLastScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScreenPos) -{ - ( theWrappedObject->setLastScreenPos(lastScreenPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& normalizedPos) -{ - ( theWrappedObject->setNormalizedPos(normalizedPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPos(pos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setPressure(QTouchEvent::TouchPoint* theWrappedObject, qreal pressure) -{ - ( theWrappedObject->setPressure(pressure)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setRect(rect)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& scenePos) -{ - ( theWrappedObject->setScenePos(scenePos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setSceneRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& sceneRect) -{ - ( theWrappedObject->setSceneRect(sceneRect)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& screenPos) -{ - ( theWrappedObject->setScreenPos(screenPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setScreenRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& screenRect) -{ - ( theWrappedObject->setScreenRect(screenRect)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setStartNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startNormalizedPos) -{ - ( theWrappedObject->setStartNormalizedPos(startNormalizedPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setStartPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startPos) -{ - ( theWrappedObject->setStartPos(startPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setStartScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScenePos) -{ - ( theWrappedObject->setStartScenePos(startScenePos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setStartScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScreenPos) -{ - ( theWrappedObject->setStartScreenPos(startScreenPos)); -} - -void PythonQtWrapper_QTouchEvent_TouchPoint::setState(QTouchEvent::TouchPoint* theWrappedObject, Qt::TouchPointStates state) -{ - ( theWrappedObject->setState(state)); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->startNormalizedPos()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->startPos()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startScenePos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->startScenePos()); -} - -QPointF PythonQtWrapper_QTouchEvent_TouchPoint::startScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->startScreenPos()); -} - -Qt::TouchPointState PythonQtWrapper_QTouchEvent_TouchPoint::state(QTouchEvent::TouchPoint* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - - - -QTransform* PythonQtWrapper_QTransform::new_QTransform() -{ -return new QTransform(); } - -QTransform* PythonQtWrapper_QTransform::new_QTransform(const QMatrix& mtx) -{ -return new QTransform(mtx); } - -QTransform* PythonQtWrapper_QTransform::new_QTransform(qreal h11, qreal h12, qreal h13, qreal h21, qreal h22, qreal h23, qreal h31, qreal h32, qreal h33) -{ -return new QTransform(h11, h12, h13, h21, h22, h23, h31, h32, h33); } - -QTransform* PythonQtWrapper_QTransform::new_QTransform(qreal h11, qreal h12, qreal h21, qreal h22, qreal dx, qreal dy) -{ -return new QTransform(h11, h12, h21, h22, dx, dy); } - -QTransform PythonQtWrapper_QTransform::adjoint(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->adjoint()); -} - -qreal PythonQtWrapper_QTransform::det(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->det()); -} - -qreal PythonQtWrapper_QTransform::determinant(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->determinant()); -} - -qreal PythonQtWrapper_QTransform::dx(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->dx()); -} - -qreal PythonQtWrapper_QTransform::dy(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->dy()); -} - -QTransform PythonQtWrapper_QTransform::static_QTransform_fromScale(qreal dx, qreal dy) -{ - return (QTransform::fromScale(dx, dy)); -} - -QTransform PythonQtWrapper_QTransform::static_QTransform_fromTranslate(qreal dx, qreal dy) -{ - return (QTransform::fromTranslate(dx, dy)); -} - -QTransform PythonQtWrapper_QTransform::inverted(QTransform* theWrappedObject, bool* invertible) const -{ - return ( theWrappedObject->inverted(invertible)); -} - -bool PythonQtWrapper_QTransform::isAffine(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->isAffine()); -} - -bool PythonQtWrapper_QTransform::isIdentity(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->isIdentity()); -} - -bool PythonQtWrapper_QTransform::isInvertible(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->isInvertible()); -} - -bool PythonQtWrapper_QTransform::isRotating(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->isRotating()); -} - -bool PythonQtWrapper_QTransform::isScaling(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->isScaling()); -} - -bool PythonQtWrapper_QTransform::isTranslating(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->isTranslating()); -} - -qreal PythonQtWrapper_QTransform::m11(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m11()); -} - -qreal PythonQtWrapper_QTransform::m12(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m12()); -} - -qreal PythonQtWrapper_QTransform::m13(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m13()); -} - -qreal PythonQtWrapper_QTransform::m21(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m21()); -} - -qreal PythonQtWrapper_QTransform::m22(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m22()); -} - -qreal PythonQtWrapper_QTransform::m23(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m23()); -} - -qreal PythonQtWrapper_QTransform::m31(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m31()); -} - -qreal PythonQtWrapper_QTransform::m32(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m32()); -} - -qreal PythonQtWrapper_QTransform::m33(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->m33()); -} - -QLine PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QLine& l) const -{ - return ( theWrappedObject->map(l)); -} - -QLineF PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QLineF& l) const -{ - return ( theWrappedObject->map(l)); -} - -QPainterPath PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPainterPath& p) const -{ - return ( theWrappedObject->map(p)); -} - -QPoint PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->map(p)); -} - -QPointF PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPointF& p) const -{ - return ( theWrappedObject->map(p)); -} - -QPolygon PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPolygon& a) const -{ - return ( theWrappedObject->map(a)); -} - -QPolygonF PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QPolygonF& a) const -{ - return ( theWrappedObject->map(a)); -} - -QRegion PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, const QRegion& r) const -{ - return ( theWrappedObject->map(r)); -} - -void PythonQtWrapper_QTransform::map(QTransform* theWrappedObject, qreal x, qreal y, qreal* tx, qreal* ty) const -{ - ( theWrappedObject->map(x, y, tx, ty)); -} - -QRect PythonQtWrapper_QTransform::mapRect(QTransform* theWrappedObject, const QRect& arg__1) const -{ - return ( theWrappedObject->mapRect(arg__1)); -} - -QRectF PythonQtWrapper_QTransform::mapRect(QTransform* theWrappedObject, const QRectF& arg__1) const -{ - return ( theWrappedObject->mapRect(arg__1)); -} - -QPolygon PythonQtWrapper_QTransform::mapToPolygon(QTransform* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->mapToPolygon(r)); -} - -bool PythonQtWrapper_QTransform::__ne__(QTransform* theWrappedObject, const QTransform& arg__1) const -{ - return ( (*theWrappedObject)!= arg__1); -} - -QTransform PythonQtWrapper_QTransform::multiplied(QTransform* theWrappedObject, const QTransform& o) const -{ - return ( (*theWrappedObject)* o); -} - -QTransform PythonQtWrapper_QTransform::__mul__(QTransform* theWrappedObject, qreal n) -{ - return ( (*theWrappedObject)* n); -} - -QTransform* PythonQtWrapper_QTransform::__imul__(QTransform* theWrappedObject, const QTransform& arg__1) -{ - return &( (*theWrappedObject)*= arg__1); -} - -QTransform* PythonQtWrapper_QTransform::__imul__(QTransform* theWrappedObject, qreal div) -{ - return &( (*theWrappedObject)*= div); -} - -QTransform PythonQtWrapper_QTransform::__add__(QTransform* theWrappedObject, qreal n) -{ - return ( (*theWrappedObject)+ n); -} - -QTransform* PythonQtWrapper_QTransform::__iadd__(QTransform* theWrappedObject, qreal div) -{ - return &( (*theWrappedObject)+= div); -} - -QTransform PythonQtWrapper_QTransform::__sub__(QTransform* theWrappedObject, qreal n) -{ - return ( (*theWrappedObject)- n); -} - -QTransform* PythonQtWrapper_QTransform::__isub__(QTransform* theWrappedObject, qreal div) -{ - return &( (*theWrappedObject)-= div); -} - -QTransform PythonQtWrapper_QTransform::__div__(QTransform* theWrappedObject, qreal n) -{ - return ( (*theWrappedObject)/ n); -} - -QTransform* PythonQtWrapper_QTransform::__idiv__(QTransform* theWrappedObject, qreal div) -{ - return &( (*theWrappedObject)/= div); -} - -void PythonQtWrapper_QTransform::writeTo(QTransform* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QTransform::__eq__(QTransform* theWrappedObject, const QTransform& arg__1) const -{ - return ( (*theWrappedObject)== arg__1); -} - -void PythonQtWrapper_QTransform::readFrom(QTransform* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -bool PythonQtWrapper_QTransform::static_QTransform_quadToQuad(const QPolygonF& one, const QPolygonF& two, QTransform& result) -{ - return (QTransform::quadToQuad(one, two, result)); -} - -bool PythonQtWrapper_QTransform::static_QTransform_quadToSquare(const QPolygonF& quad, QTransform& result) -{ - return (QTransform::quadToSquare(quad, result)); -} - -void PythonQtWrapper_QTransform::reset(QTransform* theWrappedObject) -{ - ( theWrappedObject->reset()); -} - -QTransform* PythonQtWrapper_QTransform::rotate(QTransform* theWrappedObject, qreal a, Qt::Axis axis) -{ - return &( theWrappedObject->rotate(a, axis)); -} - -QTransform* PythonQtWrapper_QTransform::rotateRadians(QTransform* theWrappedObject, qreal a, Qt::Axis axis) -{ - return &( theWrappedObject->rotateRadians(a, axis)); -} - -QTransform* PythonQtWrapper_QTransform::scale(QTransform* theWrappedObject, qreal sx, qreal sy) -{ - return &( theWrappedObject->scale(sx, sy)); -} - -void PythonQtWrapper_QTransform::setMatrix(QTransform* theWrappedObject, qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33) -{ - ( theWrappedObject->setMatrix(m11, m12, m13, m21, m22, m23, m31, m32, m33)); -} - -QTransform* PythonQtWrapper_QTransform::shear(QTransform* theWrappedObject, qreal sh, qreal sv) -{ - return &( theWrappedObject->shear(sh, sv)); -} - -bool PythonQtWrapper_QTransform::static_QTransform_squareToQuad(const QPolygonF& square, QTransform& result) -{ - return (QTransform::squareToQuad(square, result)); -} - -const QMatrix* PythonQtWrapper_QTransform::toAffine(QTransform* theWrappedObject) const -{ - return &( theWrappedObject->toAffine()); -} - -QTransform* PythonQtWrapper_QTransform::translate(QTransform* theWrappedObject, qreal dx, qreal dy) -{ - return &( theWrappedObject->translate(dx, dy)); -} - -QTransform PythonQtWrapper_QTransform::transposed(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->transposed()); -} - -QTransform::TransformationType PythonQtWrapper_QTransform::type(QTransform* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -QString PythonQtWrapper_QTransform::py_toString(QTransform* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -void PythonQtShell_QTreeView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::actionEvent(arg__1); -} -void PythonQtShell_QTreeView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::changeEvent(arg__1); -} -void PythonQtShell_QTreeView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::childEvent(arg__1); -} -void PythonQtShell_QTreeView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::closeEditor(editor, hint); -} -void PythonQtShell_QTreeView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::closeEvent(arg__1); -} -void PythonQtShell_QTreeView::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::commitData(editor); -} -void PythonQtShell_QTreeView::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::contextMenuEvent(arg__1); -} -void PythonQtShell_QTreeView::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::currentChanged(current, previous); -} -void PythonQtShell_QTreeView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::customEvent(arg__1); -} -void PythonQtShell_QTreeView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QTreeView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::devType(); -} -void PythonQtShell_QTreeView::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::doItemsLayout(); -} -void PythonQtShell_QTreeView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeView::dragEnterEvent(event); -} -void PythonQtShell_QTreeView::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeView::dragLeaveEvent(event); -} -void PythonQtShell_QTreeView::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeView::dragMoveEvent(event); -} -void PythonQtShell_QTreeView::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBranches"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::drawBranches(painter, rect, index); -} -void PythonQtShell_QTreeView::drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&options, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::drawRow(painter, options, index); -} -void PythonQtShell_QTreeView::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeView::dropEvent(event); -} -bool PythonQtShell_QTreeView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::edit(index, trigger, event); -} -void PythonQtShell_QTreeView::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::editorDestroyed(editor); -} -void PythonQtShell_QTreeView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::enterEvent(arg__1); -} -bool PythonQtShell_QTreeView::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::event(event); -} -bool PythonQtShell_QTreeView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTreeView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::focusInEvent(event); -} -bool PythonQtShell_QTreeView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::focusNextPrevChild(next); -} -void PythonQtShell_QTreeView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::focusOutEvent(event); -} -int PythonQtShell_QTreeView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::heightForWidth(arg__1); -} -void PythonQtShell_QTreeView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::hideEvent(arg__1); -} -int PythonQtShell_QTreeView::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::horizontalOffset(); -} -void PythonQtShell_QTreeView::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::horizontalScrollbarAction(action); -} -void PythonQtShell_QTreeView::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QTreeView::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::indexAt(p); -} -void PythonQtShell_QTreeView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeView::inputMethodEvent(event); -} -QVariant PythonQtShell_QTreeView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::inputMethodQuery(query); -} -bool PythonQtShell_QTreeView::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::isIndexHidden(index); -} -void PythonQtShell_QTreeView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::keyPressEvent(event); -} -void PythonQtShell_QTreeView::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::keyReleaseEvent(arg__1); -} -void PythonQtShell_QTreeView::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::keyboardSearch(search); -} -void PythonQtShell_QTreeView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::languageChange(); -} -void PythonQtShell_QTreeView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::leaveEvent(arg__1); -} -int PythonQtShell_QTreeView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::metric(arg__1); -} -void PythonQtShell_QTreeView::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::mouseDoubleClickEvent(event); -} -void PythonQtShell_QTreeView::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::mouseMoveEvent(event); -} -void PythonQtShell_QTreeView::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::mousePressEvent(event); -} -void PythonQtShell_QTreeView::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::mouseReleaseEvent(event); -} -void PythonQtShell_QTreeView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTreeView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::paintEngine(); -} -void PythonQtShell_QTreeView::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::paintEvent(event); -} -void PythonQtShell_QTreeView::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::reset(); -} -void PythonQtShell_QTreeView::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::resizeEvent(event); -} -void PythonQtShell_QTreeView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QTreeView::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::rowsInserted(parent, start, end); -} -void PythonQtShell_QTreeView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QTreeView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::scrollTo(index, hint); -} -void PythonQtShell_QTreeView::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::selectAll(); -} -QList PythonQtShell_QTreeView::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::selectedIndexes(); -} -void PythonQtShell_QTreeView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QTreeView::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::selectionCommand(index, event); -} -void PythonQtShell_QTreeView::setModel(QAbstractItemModel* model) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractItemModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&model}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::setModel(model); -} -void PythonQtShell_QTreeView::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::setRootIndex(index); -} -void PythonQtShell_QTreeView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::setSelection(rect, command); -} -void PythonQtShell_QTreeView::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::setSelectionModel(selectionModel); -} -void PythonQtShell_QTreeView::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::showEvent(arg__1); -} -int PythonQtShell_QTreeView::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::sizeHintForColumn(column); -} -int PythonQtShell_QTreeView::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::sizeHintForRow(row); -} -void PythonQtShell_QTreeView::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::startDrag(supportedActions); -} -void PythonQtShell_QTreeView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::tabletEvent(arg__1); -} -void PythonQtShell_QTreeView::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::timerEvent(event); -} -void PythonQtShell_QTreeView::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::updateEditorData(); -} -void PythonQtShell_QTreeView::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::updateEditorGeometries(); -} -void PythonQtShell_QTreeView::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::updateGeometries(); -} -int PythonQtShell_QTreeView::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::verticalOffset(); -} -void PythonQtShell_QTreeView::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::verticalScrollbarAction(action); -} -void PythonQtShell_QTreeView::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QTreeView::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::viewOptions(); -} -bool PythonQtShell_QTreeView::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::viewportEvent(event); -} -QRect PythonQtShell_QTreeView::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::visualRect(index); -} -QRegion PythonQtShell_QTreeView::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeView::visualRegionForSelection(selection); -} -void PythonQtShell_QTreeView::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeView::wheelEvent(arg__1); -} -QTreeView* PythonQtWrapper_QTreeView::new_QTreeView(QWidget* parent) -{ -return new PythonQtShell_QTreeView(parent); } - -bool PythonQtWrapper_QTreeView::allColumnsShowFocus(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->allColumnsShowFocus()); -} - -int PythonQtWrapper_QTreeView::autoExpandDelay(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->autoExpandDelay()); -} - -int PythonQtWrapper_QTreeView::columnAt(QTreeView* theWrappedObject, int x) const -{ - return ( theWrappedObject->columnAt(x)); -} - -int PythonQtWrapper_QTreeView::columnViewportPosition(QTreeView* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnViewportPosition(column)); -} - -int PythonQtWrapper_QTreeView::columnWidth(QTreeView* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnWidth(column)); -} - -void PythonQtWrapper_QTreeView::currentChanged(QTreeView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_currentChanged(current, previous)); -} - -void PythonQtWrapper_QTreeView::dataChanged(QTreeView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_dataChanged(topLeft, bottomRight)); -} - -void PythonQtWrapper_QTreeView::doItemsLayout(QTreeView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_doItemsLayout()); -} - -void PythonQtWrapper_QTreeView::dragMoveEvent(QTreeView* theWrappedObject, QDragMoveEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_dragMoveEvent(event)); -} - -void PythonQtWrapper_QTreeView::drawBranches(QTreeView* theWrappedObject, QPainter* painter, const QRect& rect, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_drawBranches(painter, rect, index)); -} - -void PythonQtWrapper_QTreeView::drawRow(QTreeView* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_drawRow(painter, options, index)); -} - -bool PythonQtWrapper_QTreeView::expandsOnDoubleClick(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->expandsOnDoubleClick()); -} - -QHeaderView* PythonQtWrapper_QTreeView::header(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->header()); -} - -int PythonQtWrapper_QTreeView::horizontalOffset(QTreeView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_horizontalOffset()); -} - -void PythonQtWrapper_QTreeView::horizontalScrollbarAction(QTreeView* theWrappedObject, int action) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_horizontalScrollbarAction(action)); -} - -int PythonQtWrapper_QTreeView::indentation(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->indentation()); -} - -QModelIndex PythonQtWrapper_QTreeView::indexAbove(QTreeView* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->indexAbove(index)); -} - -QModelIndex PythonQtWrapper_QTreeView::indexAt(QTreeView* theWrappedObject, const QPoint& p) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_indexAt(p)); -} - -QModelIndex PythonQtWrapper_QTreeView::indexBelow(QTreeView* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->indexBelow(index)); -} - -bool PythonQtWrapper_QTreeView::isAnimated(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->isAnimated()); -} - -bool PythonQtWrapper_QTreeView::isColumnHidden(QTreeView* theWrappedObject, int column) const -{ - return ( theWrappedObject->isColumnHidden(column)); -} - -bool PythonQtWrapper_QTreeView::isExpanded(QTreeView* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->isExpanded(index)); -} - -bool PythonQtWrapper_QTreeView::isFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const -{ - return ( theWrappedObject->isFirstColumnSpanned(row, parent)); -} - -bool PythonQtWrapper_QTreeView::isHeaderHidden(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->isHeaderHidden()); -} - -bool PythonQtWrapper_QTreeView::isIndexHidden(QTreeView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_isIndexHidden(index)); -} - -bool PythonQtWrapper_QTreeView::isRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const -{ - return ( theWrappedObject->isRowHidden(row, parent)); -} - -bool PythonQtWrapper_QTreeView::isSortingEnabled(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->isSortingEnabled()); -} - -bool PythonQtWrapper_QTreeView::itemsExpandable(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->itemsExpandable()); -} - -void PythonQtWrapper_QTreeView::keyPressEvent(QTreeView* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -void PythonQtWrapper_QTreeView::keyboardSearch(QTreeView* theWrappedObject, const QString& search) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_keyboardSearch(search)); -} - -void PythonQtWrapper_QTreeView::mouseDoubleClickEvent(QTreeView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); -} - -void PythonQtWrapper_QTreeView::mouseMoveEvent(QTreeView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mouseMoveEvent(event)); -} - -void PythonQtWrapper_QTreeView::mousePressEvent(QTreeView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QTreeView::mouseReleaseEvent(QTreeView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_mouseReleaseEvent(event)); -} - -void PythonQtWrapper_QTreeView::paintEvent(QTreeView* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_paintEvent(event)); -} - -void PythonQtWrapper_QTreeView::reset(QTreeView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_reset()); -} - -bool PythonQtWrapper_QTreeView::rootIsDecorated(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->rootIsDecorated()); -} - -void PythonQtWrapper_QTreeView::rowsAboutToBeRemoved(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_rowsAboutToBeRemoved(parent, start, end)); -} - -void PythonQtWrapper_QTreeView::rowsInserted(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); -} - -void PythonQtWrapper_QTreeView::scrollContentsBy(QTreeView* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QTreeView::scrollTo(QTreeView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_scrollTo(index, hint)); -} - -void PythonQtWrapper_QTreeView::selectAll(QTreeView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_selectAll()); -} - -QList PythonQtWrapper_QTreeView::selectedIndexes(QTreeView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_selectedIndexes()); -} - -void PythonQtWrapper_QTreeView::selectionChanged(QTreeView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_selectionChanged(selected, deselected)); -} - -void PythonQtWrapper_QTreeView::setAllColumnsShowFocus(QTreeView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setAllColumnsShowFocus(enable)); -} - -void PythonQtWrapper_QTreeView::setAnimated(QTreeView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setAnimated(enable)); -} - -void PythonQtWrapper_QTreeView::setAutoExpandDelay(QTreeView* theWrappedObject, int delay) -{ - ( theWrappedObject->setAutoExpandDelay(delay)); -} - -void PythonQtWrapper_QTreeView::setColumnHidden(QTreeView* theWrappedObject, int column, bool hide) -{ - ( theWrappedObject->setColumnHidden(column, hide)); -} - -void PythonQtWrapper_QTreeView::setColumnWidth(QTreeView* theWrappedObject, int column, int width) -{ - ( theWrappedObject->setColumnWidth(column, width)); -} - -void PythonQtWrapper_QTreeView::setExpanded(QTreeView* theWrappedObject, const QModelIndex& index, bool expand) -{ - ( theWrappedObject->setExpanded(index, expand)); -} - -void PythonQtWrapper_QTreeView::setExpandsOnDoubleClick(QTreeView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setExpandsOnDoubleClick(enable)); -} - -void PythonQtWrapper_QTreeView::setFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool span) -{ - ( theWrappedObject->setFirstColumnSpanned(row, parent, span)); -} - -void PythonQtWrapper_QTreeView::setHeader(QTreeView* theWrappedObject, QHeaderView* header) -{ - ( theWrappedObject->setHeader(header)); -} - -void PythonQtWrapper_QTreeView::setHeaderHidden(QTreeView* theWrappedObject, bool hide) -{ - ( theWrappedObject->setHeaderHidden(hide)); -} - -void PythonQtWrapper_QTreeView::setIndentation(QTreeView* theWrappedObject, int i) -{ - ( theWrappedObject->setIndentation(i)); -} - -void PythonQtWrapper_QTreeView::setItemsExpandable(QTreeView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setItemsExpandable(enable)); -} - -void PythonQtWrapper_QTreeView::setModel(QTreeView* theWrappedObject, QAbstractItemModel* model) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setModel(model)); -} - -void PythonQtWrapper_QTreeView::setRootIndex(QTreeView* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setRootIndex(index)); -} - -void PythonQtWrapper_QTreeView::setRootIsDecorated(QTreeView* theWrappedObject, bool show) -{ - ( theWrappedObject->setRootIsDecorated(show)); -} - -void PythonQtWrapper_QTreeView::setRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool hide) -{ - ( theWrappedObject->setRowHidden(row, parent, hide)); -} - -void PythonQtWrapper_QTreeView::setSelection(QTreeView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setSelection(rect, command)); -} - -void PythonQtWrapper_QTreeView::setSelectionModel(QTreeView* theWrappedObject, QItemSelectionModel* selectionModel) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); -} - -void PythonQtWrapper_QTreeView::setSortingEnabled(QTreeView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setSortingEnabled(enable)); -} - -void PythonQtWrapper_QTreeView::setUniformRowHeights(QTreeView* theWrappedObject, bool uniform) -{ - ( theWrappedObject->setUniformRowHeights(uniform)); -} - -void PythonQtWrapper_QTreeView::setWordWrap(QTreeView* theWrappedObject, bool on) -{ - ( theWrappedObject->setWordWrap(on)); -} - -int PythonQtWrapper_QTreeView::sizeHintForColumn(QTreeView* theWrappedObject, int column) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_sizeHintForColumn(column)); -} - -void PythonQtWrapper_QTreeView::sortByColumn(QTreeView* theWrappedObject, int column, Qt::SortOrder order) -{ - ( theWrappedObject->sortByColumn(column, order)); -} - -void PythonQtWrapper_QTreeView::timerEvent(QTreeView* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_timerEvent(event)); -} - -bool PythonQtWrapper_QTreeView::uniformRowHeights(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->uniformRowHeights()); -} - -void PythonQtWrapper_QTreeView::updateGeometries(QTreeView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_updateGeometries()); -} - -int PythonQtWrapper_QTreeView::verticalOffset(QTreeView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_verticalOffset()); -} - -bool PythonQtWrapper_QTreeView::viewportEvent(QTreeView* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_viewportEvent(event)); -} - -QRect PythonQtWrapper_QTreeView::visualRect(QTreeView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_visualRect(index)); -} - -QRegion PythonQtWrapper_QTreeView::visualRegionForSelection(QTreeView* theWrappedObject, const QItemSelection& selection) const -{ - return ( ((PythonQtPublicPromoter_QTreeView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); -} - -bool PythonQtWrapper_QTreeView::wordWrap(QTreeView* theWrappedObject) const -{ - return ( theWrappedObject->wordWrap()); -} - - - -void PythonQtShell_QTreeWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::actionEvent(arg__1); -} -void PythonQtShell_QTreeWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::changeEvent(arg__1); -} -void PythonQtShell_QTreeWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::childEvent(arg__1); -} -void PythonQtShell_QTreeWidget::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::closeEditor(editor, hint); -} -void PythonQtShell_QTreeWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::closeEvent(arg__1); -} -void PythonQtShell_QTreeWidget::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::commitData(editor); -} -void PythonQtShell_QTreeWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QTreeWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::currentChanged(current, previous); -} -void PythonQtShell_QTreeWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::customEvent(arg__1); -} -void PythonQtShell_QTreeWidget::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QTreeWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::devType(); -} -void PythonQtShell_QTreeWidget::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::doItemsLayout(); -} -void PythonQtShell_QTreeWidget::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeWidget::dragEnterEvent(event); -} -void PythonQtShell_QTreeWidget::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeWidget::dragLeaveEvent(event); -} -void PythonQtShell_QTreeWidget::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeWidget::dragMoveEvent(event); -} -void PythonQtShell_QTreeWidget::drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBranches"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::drawBranches(painter, rect, index); -} -void PythonQtShell_QTreeWidget::drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&options, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::drawRow(painter, options, index); -} -void PythonQtShell_QTreeWidget::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeWidget::dropEvent(event); -} -bool PythonQtShell_QTreeWidget::dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QTreeWidgetItem*" , "int" , "const QMimeData*" , "Qt::DropAction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)&parent, (void*)&index, (void*)&data, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::dropMimeData(parent, index, data, action); -} -bool PythonQtShell_QTreeWidget::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::edit(index, trigger, event); -} -void PythonQtShell_QTreeWidget::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::editorDestroyed(editor); -} -void PythonQtShell_QTreeWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::enterEvent(arg__1); -} -bool PythonQtShell_QTreeWidget::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::event(e); -} -bool PythonQtShell_QTreeWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTreeWidget::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::focusInEvent(event); -} -bool PythonQtShell_QTreeWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::focusNextPrevChild(next); -} -void PythonQtShell_QTreeWidget::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::focusOutEvent(event); -} -int PythonQtShell_QTreeWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::heightForWidth(arg__1); -} -void PythonQtShell_QTreeWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::hideEvent(arg__1); -} -int PythonQtShell_QTreeWidget::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::horizontalOffset(); -} -void PythonQtShell_QTreeWidget::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::horizontalScrollbarAction(action); -} -void PythonQtShell_QTreeWidget::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QTreeWidget::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::indexAt(p); -} -void PythonQtShell_QTreeWidget::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTreeWidget::inputMethodEvent(event); -} -QVariant PythonQtShell_QTreeWidget::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::inputMethodQuery(query); -} -bool PythonQtShell_QTreeWidget::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::isIndexHidden(index); -} -void PythonQtShell_QTreeWidget::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::keyPressEvent(event); -} -void PythonQtShell_QTreeWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QTreeWidget::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::keyboardSearch(search); -} -void PythonQtShell_QTreeWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::languageChange(); -} -void PythonQtShell_QTreeWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::leaveEvent(arg__1); -} -int PythonQtShell_QTreeWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::metric(arg__1); -} -QMimeData* PythonQtShell_QTreeWidget::mimeData(const QList items) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&items}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::mimeData(items); -} -QStringList PythonQtShell_QTreeWidget::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::mimeTypes(); -} -void PythonQtShell_QTreeWidget::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::mouseDoubleClickEvent(event); -} -void PythonQtShell_QTreeWidget::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::mouseMoveEvent(event); -} -void PythonQtShell_QTreeWidget::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::mousePressEvent(event); -} -void PythonQtShell_QTreeWidget::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::mouseReleaseEvent(event); -} -void PythonQtShell_QTreeWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTreeWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::paintEngine(); -} -void PythonQtShell_QTreeWidget::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::paintEvent(event); -} -void PythonQtShell_QTreeWidget::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::reset(); -} -void PythonQtShell_QTreeWidget::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::resizeEvent(event); -} -void PythonQtShell_QTreeWidget::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QTreeWidget::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::rowsInserted(parent, start, end); -} -void PythonQtShell_QTreeWidget::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTreeWidget::scrollContentsBy(dx, dy); -} -void PythonQtShell_QTreeWidget::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::scrollTo(index, hint); -} -void PythonQtShell_QTreeWidget::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::selectAll(); -} -QList PythonQtShell_QTreeWidget::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::selectedIndexes(); -} -void PythonQtShell_QTreeWidget::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QTreeWidget::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::selectionCommand(index, event); -} -void PythonQtShell_QTreeWidget::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::setRootIndex(index); -} -void PythonQtShell_QTreeWidget::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::setSelection(rect, command); -} -void PythonQtShell_QTreeWidget::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::setSelectionModel(selectionModel); -} -void PythonQtShell_QTreeWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::showEvent(arg__1); -} -int PythonQtShell_QTreeWidget::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::sizeHintForColumn(column); -} -int PythonQtShell_QTreeWidget::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::sizeHintForRow(row); -} -void PythonQtShell_QTreeWidget::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::startDrag(supportedActions); -} -Qt::DropActions PythonQtShell_QTreeWidget::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::supportedDropActions(); -} -void PythonQtShell_QTreeWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::tabletEvent(arg__1); -} -void PythonQtShell_QTreeWidget::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::timerEvent(event); -} -void PythonQtShell_QTreeWidget::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::updateEditorData(); -} -void PythonQtShell_QTreeWidget::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::updateEditorGeometries(); -} -void PythonQtShell_QTreeWidget::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::updateGeometries(); -} -int PythonQtShell_QTreeWidget::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::verticalOffset(); -} -void PythonQtShell_QTreeWidget::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::verticalScrollbarAction(action); -} -void PythonQtShell_QTreeWidget::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QTreeWidget::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::viewOptions(); -} -bool PythonQtShell_QTreeWidget::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::viewportEvent(event); -} -QRect PythonQtShell_QTreeWidget::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::visualRect(index); -} -QRegion PythonQtShell_QTreeWidget::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidget::visualRegionForSelection(selection); -} -void PythonQtShell_QTreeWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidget::wheelEvent(arg__1); -} -QTreeWidget* PythonQtWrapper_QTreeWidget::new_QTreeWidget(QWidget* parent) -{ -return new PythonQtShell_QTreeWidget(parent); } - -void PythonQtWrapper_QTreeWidget::addTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) -{ - ( theWrappedObject->addTopLevelItem(item)); -} - -void PythonQtWrapper_QTreeWidget::addTopLevelItems(QTreeWidget* theWrappedObject, const QList& items) -{ - ( theWrappedObject->addTopLevelItems(items)); -} - -void PythonQtWrapper_QTreeWidget::closePersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) -{ - ( theWrappedObject->closePersistentEditor(item, column)); -} - -int PythonQtWrapper_QTreeWidget::columnCount(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->columnCount()); -} - -int PythonQtWrapper_QTreeWidget::currentColumn(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentColumn()); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::currentItem(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentItem()); -} - -void PythonQtWrapper_QTreeWidget::dropEvent(QTreeWidget* theWrappedObject, QDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_dropEvent(event)); -} - -bool PythonQtWrapper_QTreeWidget::dropMimeData(QTreeWidget* theWrappedObject, QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action) -{ - return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_dropMimeData(parent, index, data, action)); -} - -void PythonQtWrapper_QTreeWidget::editItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) -{ - ( theWrappedObject->editItem(item, column)); -} - -bool PythonQtWrapper_QTreeWidget::event(QTreeWidget* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_event(e)); -} - -QList PythonQtWrapper_QTreeWidget::findItems(QTreeWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags, int column) const -{ - return ( theWrappedObject->findItems(text, flags, column)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::headerItem(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->headerItem()); -} - -int PythonQtWrapper_QTreeWidget::indexOfTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) const -{ - return ( theWrappedObject->indexOfTopLevelItem(item)); -} - -void PythonQtWrapper_QTreeWidget::insertTopLevelItem(QTreeWidget* theWrappedObject, int index, QTreeWidgetItem* item) -{ - ( theWrappedObject->insertTopLevelItem(index, item)); -} - -void PythonQtWrapper_QTreeWidget::insertTopLevelItems(QTreeWidget* theWrappedObject, int index, const QList& items) -{ - ( theWrappedObject->insertTopLevelItems(index, items)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::invisibleRootItem(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->invisibleRootItem()); -} - -bool PythonQtWrapper_QTreeWidget::isFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const -{ - return ( theWrappedObject->isFirstItemColumnSpanned(item)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemAbove(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const -{ - return ( theWrappedObject->itemAbove(item)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemAt(QTreeWidget* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->itemAt(p)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemAt(QTreeWidget* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->itemAt(x, y)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::itemBelow(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const -{ - return ( theWrappedObject->itemBelow(item)); -} - -QWidget* PythonQtWrapper_QTreeWidget::itemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) const -{ - return ( theWrappedObject->itemWidget(item, column)); -} - -QStringList PythonQtWrapper_QTreeWidget::mimeTypes(QTreeWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_mimeTypes()); -} - -void PythonQtWrapper_QTreeWidget::openPersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) -{ - ( theWrappedObject->openPersistentEditor(item, column)); -} - -void PythonQtWrapper_QTreeWidget::removeItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) -{ - ( theWrappedObject->removeItemWidget(item, column)); -} - -QList PythonQtWrapper_QTreeWidget::selectedItems(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->selectedItems()); -} - -void PythonQtWrapper_QTreeWidget::setColumnCount(QTreeWidget* theWrappedObject, int columns) -{ - ( theWrappedObject->setColumnCount(columns)); -} - -void PythonQtWrapper_QTreeWidget::setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) -{ - ( theWrappedObject->setCurrentItem(item)); -} - -void PythonQtWrapper_QTreeWidget::setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) -{ - ( theWrappedObject->setCurrentItem(item, column)); -} - -void PythonQtWrapper_QTreeWidget::setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QItemSelectionModel::SelectionFlags command) -{ - ( theWrappedObject->setCurrentItem(item, column, command)); -} - -void PythonQtWrapper_QTreeWidget::setFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item, bool span) -{ - ( theWrappedObject->setFirstItemColumnSpanned(item, span)); -} - -void PythonQtWrapper_QTreeWidget::setHeaderItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) -{ - ( theWrappedObject->setHeaderItem(item)); -} - -void PythonQtWrapper_QTreeWidget::setHeaderLabel(QTreeWidget* theWrappedObject, const QString& label) -{ - ( theWrappedObject->setHeaderLabel(label)); -} - -void PythonQtWrapper_QTreeWidget::setHeaderLabels(QTreeWidget* theWrappedObject, const QStringList& labels) -{ - ( theWrappedObject->setHeaderLabels(labels)); -} - -void PythonQtWrapper_QTreeWidget::setItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QWidget* widget) -{ - ( theWrappedObject->setItemWidget(item, column, widget)); -} - -void PythonQtWrapper_QTreeWidget::setSelectionModel(QTreeWidget* theWrappedObject, QItemSelectionModel* selectionModel) -{ - ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); -} - -int PythonQtWrapper_QTreeWidget::sortColumn(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->sortColumn()); -} - -void PythonQtWrapper_QTreeWidget::sortItems(QTreeWidget* theWrappedObject, int column, Qt::SortOrder order) -{ - ( theWrappedObject->sortItems(column, order)); -} - -Qt::DropActions PythonQtWrapper_QTreeWidget::supportedDropActions(QTreeWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTreeWidget*)theWrappedObject)->promoted_supportedDropActions()); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::takeTopLevelItem(QTreeWidget* theWrappedObject, int index) -{ - return ( theWrappedObject->takeTopLevelItem(index)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidget::topLevelItem(QTreeWidget* theWrappedObject, int index) const -{ - return ( theWrappedObject->topLevelItem(index)); -} - -int PythonQtWrapper_QTreeWidget::topLevelItemCount(QTreeWidget* theWrappedObject) const -{ - return ( theWrappedObject->topLevelItemCount()); -} - -QRect PythonQtWrapper_QTreeWidget::visualItemRect(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const -{ - return ( theWrappedObject->visualItemRect(item)); -} - - - -QTreeWidgetItem* PythonQtShell_QTreeWidgetItem::clone() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTreeWidgetItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QTreeWidgetItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); - } else { - returnValue = *((QTreeWidgetItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidgetItem::clone(); -} -QVariant PythonQtShell_QTreeWidgetItem::data(int column, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&column, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidgetItem::data(column, role); -} -bool PythonQtShell_QTreeWidgetItem::__lt__(const QTreeWidgetItem& other) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QTreeWidgetItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTreeWidgetItem::operator<(other); -} -void PythonQtShell_QTreeWidgetItem::read(QDataStream& in) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&in}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidgetItem::read(in); -} -void PythonQtShell_QTreeWidgetItem::setData(int column, int role, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "int" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&column, (void*)&role, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidgetItem::setData(column, role, value); -} -void PythonQtShell_QTreeWidgetItem::write(QDataStream& out) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&out}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTreeWidgetItem::write(out); -} -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidget* view, QTreeWidgetItem* after, int type) -{ -return new PythonQtShell_QTreeWidgetItem(view, after, type); } - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidget* view, const QStringList& strings, int type) -{ -return new PythonQtShell_QTreeWidgetItem(view, strings, type); } - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidget* view, int type) -{ -return new PythonQtShell_QTreeWidgetItem(view, type); } - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int type) -{ -return new PythonQtShell_QTreeWidgetItem(parent, after, type); } - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int type) -{ -return new PythonQtShell_QTreeWidgetItem(parent, strings, type); } - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(QTreeWidgetItem* parent, int type) -{ -return new PythonQtShell_QTreeWidgetItem(parent, type); } - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(const QStringList& strings, int type) -{ -return new PythonQtShell_QTreeWidgetItem(strings, type); } - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::new_QTreeWidgetItem(int type) -{ -return new PythonQtShell_QTreeWidgetItem(type); } - -void PythonQtWrapper_QTreeWidgetItem::addChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) -{ - ( theWrappedObject->addChild(child)); -} - -void PythonQtWrapper_QTreeWidgetItem::addChildren(QTreeWidgetItem* theWrappedObject, const QList& children) -{ - ( theWrappedObject->addChildren(children)); -} - -QBrush PythonQtWrapper_QTreeWidgetItem::background(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->background(column)); -} - -Qt::CheckState PythonQtWrapper_QTreeWidgetItem::checkState(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->checkState(column)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::child(QTreeWidgetItem* theWrappedObject, int index) const -{ - return ( theWrappedObject->child(index)); -} - -int PythonQtWrapper_QTreeWidgetItem::childCount(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->childCount()); -} - -QTreeWidgetItem::ChildIndicatorPolicy PythonQtWrapper_QTreeWidgetItem::childIndicatorPolicy(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->childIndicatorPolicy()); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::clone(QTreeWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTreeWidgetItem*)theWrappedObject)->promoted_clone()); -} - -int PythonQtWrapper_QTreeWidgetItem::columnCount(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->columnCount()); -} - -QVariant PythonQtWrapper_QTreeWidgetItem::data(QTreeWidgetItem* theWrappedObject, int column, int role) const -{ - return ( ((PythonQtPublicPromoter_QTreeWidgetItem*)theWrappedObject)->promoted_data(column, role)); -} - -Qt::ItemFlags PythonQtWrapper_QTreeWidgetItem::flags(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->flags()); -} - -QFont PythonQtWrapper_QTreeWidgetItem::font(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->font(column)); -} - -QBrush PythonQtWrapper_QTreeWidgetItem::foreground(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->foreground(column)); -} - -QIcon PythonQtWrapper_QTreeWidgetItem::icon(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->icon(column)); -} - -int PythonQtWrapper_QTreeWidgetItem::indexOfChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) const -{ - return ( theWrappedObject->indexOfChild(child)); -} - -void PythonQtWrapper_QTreeWidgetItem::insertChild(QTreeWidgetItem* theWrappedObject, int index, QTreeWidgetItem* child) -{ - ( theWrappedObject->insertChild(index, child)); -} - -void PythonQtWrapper_QTreeWidgetItem::insertChildren(QTreeWidgetItem* theWrappedObject, int index, const QList& children) -{ - ( theWrappedObject->insertChildren(index, children)); -} - -bool PythonQtWrapper_QTreeWidgetItem::isDisabled(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isDisabled()); -} - -bool PythonQtWrapper_QTreeWidgetItem::isExpanded(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isExpanded()); -} - -bool PythonQtWrapper_QTreeWidgetItem::isFirstColumnSpanned(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isFirstColumnSpanned()); -} - -bool PythonQtWrapper_QTreeWidgetItem::isHidden(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isHidden()); -} - -bool PythonQtWrapper_QTreeWidgetItem::isSelected(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isSelected()); -} - -void PythonQtWrapper_QTreeWidgetItem::writeTo(QTreeWidgetItem* theWrappedObject, QDataStream& out) -{ - out << (*theWrappedObject); -} - -void PythonQtWrapper_QTreeWidgetItem::readFrom(QTreeWidgetItem* theWrappedObject, QDataStream& in) -{ - in >> (*theWrappedObject); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::parent(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->parent()); -} - -void PythonQtWrapper_QTreeWidgetItem::removeChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) -{ - ( theWrappedObject->removeChild(child)); -} - -void PythonQtWrapper_QTreeWidgetItem::setBackground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush) -{ - ( theWrappedObject->setBackground(column, brush)); -} - -void PythonQtWrapper_QTreeWidgetItem::setCheckState(QTreeWidgetItem* theWrappedObject, int column, Qt::CheckState state) -{ - ( theWrappedObject->setCheckState(column, state)); -} - -void PythonQtWrapper_QTreeWidgetItem::setChildIndicatorPolicy(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem::ChildIndicatorPolicy policy) -{ - ( theWrappedObject->setChildIndicatorPolicy(policy)); -} - -void PythonQtWrapper_QTreeWidgetItem::setData(QTreeWidgetItem* theWrappedObject, int column, int role, const QVariant& value) -{ - ( ((PythonQtPublicPromoter_QTreeWidgetItem*)theWrappedObject)->promoted_setData(column, role, value)); -} - -void PythonQtWrapper_QTreeWidgetItem::setDisabled(QTreeWidgetItem* theWrappedObject, bool disabled) -{ - ( theWrappedObject->setDisabled(disabled)); -} - -void PythonQtWrapper_QTreeWidgetItem::setExpanded(QTreeWidgetItem* theWrappedObject, bool expand) -{ - ( theWrappedObject->setExpanded(expand)); -} - -void PythonQtWrapper_QTreeWidgetItem::setFirstColumnSpanned(QTreeWidgetItem* theWrappedObject, bool span) -{ - ( theWrappedObject->setFirstColumnSpanned(span)); -} - -void PythonQtWrapper_QTreeWidgetItem::setFlags(QTreeWidgetItem* theWrappedObject, Qt::ItemFlags flags) -{ - ( theWrappedObject->setFlags(flags)); -} - -void PythonQtWrapper_QTreeWidgetItem::setFont(QTreeWidgetItem* theWrappedObject, int column, const QFont& font) -{ - ( theWrappedObject->setFont(column, font)); -} - -void PythonQtWrapper_QTreeWidgetItem::setForeground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush) -{ - ( theWrappedObject->setForeground(column, brush)); -} - -void PythonQtWrapper_QTreeWidgetItem::setHidden(QTreeWidgetItem* theWrappedObject, bool hide) -{ - ( theWrappedObject->setHidden(hide)); -} - -void PythonQtWrapper_QTreeWidgetItem::setIcon(QTreeWidgetItem* theWrappedObject, int column, const QIcon& icon) -{ - ( theWrappedObject->setIcon(column, icon)); -} - -void PythonQtWrapper_QTreeWidgetItem::setSelected(QTreeWidgetItem* theWrappedObject, bool select) -{ - ( theWrappedObject->setSelected(select)); -} - -void PythonQtWrapper_QTreeWidgetItem::setSizeHint(QTreeWidgetItem* theWrappedObject, int column, const QSize& size) -{ - ( theWrappedObject->setSizeHint(column, size)); -} - -void PythonQtWrapper_QTreeWidgetItem::setStatusTip(QTreeWidgetItem* theWrappedObject, int column, const QString& statusTip) -{ - ( theWrappedObject->setStatusTip(column, statusTip)); -} - -void PythonQtWrapper_QTreeWidgetItem::setText(QTreeWidgetItem* theWrappedObject, int column, const QString& text) -{ - ( theWrappedObject->setText(column, text)); -} - -void PythonQtWrapper_QTreeWidgetItem::setTextAlignment(QTreeWidgetItem* theWrappedObject, int column, int alignment) -{ - ( theWrappedObject->setTextAlignment(column, alignment)); -} - -void PythonQtWrapper_QTreeWidgetItem::setToolTip(QTreeWidgetItem* theWrappedObject, int column, const QString& toolTip) -{ - ( theWrappedObject->setToolTip(column, toolTip)); -} - -void PythonQtWrapper_QTreeWidgetItem::setWhatsThis(QTreeWidgetItem* theWrappedObject, int column, const QString& whatsThis) -{ - ( theWrappedObject->setWhatsThis(column, whatsThis)); -} - -QSize PythonQtWrapper_QTreeWidgetItem::sizeHint(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->sizeHint(column)); -} - -void PythonQtWrapper_QTreeWidgetItem::sortChildren(QTreeWidgetItem* theWrappedObject, int column, Qt::SortOrder order) -{ - ( theWrappedObject->sortChildren(column, order)); -} - -QString PythonQtWrapper_QTreeWidgetItem::statusTip(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->statusTip(column)); -} - -QTreeWidgetItem* PythonQtWrapper_QTreeWidgetItem::takeChild(QTreeWidgetItem* theWrappedObject, int index) -{ - return ( theWrappedObject->takeChild(index)); -} - -QList PythonQtWrapper_QTreeWidgetItem::takeChildren(QTreeWidgetItem* theWrappedObject) -{ - return ( theWrappedObject->takeChildren()); -} - -QString PythonQtWrapper_QTreeWidgetItem::text(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->text(column)); -} - -int PythonQtWrapper_QTreeWidgetItem::textAlignment(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->textAlignment(column)); -} - -QString PythonQtWrapper_QTreeWidgetItem::toolTip(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->toolTip(column)); -} - -QTreeWidget* PythonQtWrapper_QTreeWidgetItem::treeWidget(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->treeWidget()); -} - -int PythonQtWrapper_QTreeWidgetItem::type(QTreeWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -QString PythonQtWrapper_QTreeWidgetItem::whatsThis(QTreeWidgetItem* theWrappedObject, int column) const -{ - return ( theWrappedObject->whatsThis(column)); -} - - - -int PythonQtShell_QUndoCommand::id() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "id"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("id", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoCommand::id(); -} -bool PythonQtShell_QUndoCommand::mergeWith(const QUndoCommand* other) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mergeWith"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QUndoCommand*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mergeWith", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoCommand::mergeWith(other); -} -void PythonQtShell_QUndoCommand::redo() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoCommand::redo(); -} -void PythonQtShell_QUndoCommand::undo() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "undo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoCommand::undo(); -} -QUndoCommand* PythonQtWrapper_QUndoCommand::new_QUndoCommand(QUndoCommand* parent) -{ -return new PythonQtShell_QUndoCommand(parent); } - -QUndoCommand* PythonQtWrapper_QUndoCommand::new_QUndoCommand(const QString& text, QUndoCommand* parent) -{ -return new PythonQtShell_QUndoCommand(text, parent); } - -const QUndoCommand* PythonQtWrapper_QUndoCommand::child(QUndoCommand* theWrappedObject, int index) const -{ - return ( theWrappedObject->child(index)); -} - -int PythonQtWrapper_QUndoCommand::childCount(QUndoCommand* theWrappedObject) const -{ - return ( theWrappedObject->childCount()); -} - -int PythonQtWrapper_QUndoCommand::id(QUndoCommand* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_id()); -} - -bool PythonQtWrapper_QUndoCommand::mergeWith(QUndoCommand* theWrappedObject, const QUndoCommand* other) -{ - return ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_mergeWith(other)); -} - -void PythonQtWrapper_QUndoCommand::redo(QUndoCommand* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_redo()); -} - -void PythonQtWrapper_QUndoCommand::setText(QUndoCommand* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -QString PythonQtWrapper_QUndoCommand::text(QUndoCommand* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -void PythonQtWrapper_QUndoCommand::undo(QUndoCommand* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QUndoCommand*)theWrappedObject)->promoted_undo()); -} - - - -void PythonQtShell_QUndoGroup::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoGroup::childEvent(arg__1); -} -void PythonQtShell_QUndoGroup::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoGroup::customEvent(arg__1); -} -bool PythonQtShell_QUndoGroup::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoGroup::event(arg__1); -} -bool PythonQtShell_QUndoGroup::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoGroup::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QUndoGroup::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoGroup::timerEvent(arg__1); -} -QUndoGroup* PythonQtWrapper_QUndoGroup::new_QUndoGroup(QObject* parent) -{ -return new PythonQtShell_QUndoGroup(parent); } - -QUndoStack* PythonQtWrapper_QUndoGroup::activeStack(QUndoGroup* theWrappedObject) const -{ - return ( theWrappedObject->activeStack()); -} - -void PythonQtWrapper_QUndoGroup::addStack(QUndoGroup* theWrappedObject, QUndoStack* stack) -{ - ( theWrappedObject->addStack(stack)); -} - -bool PythonQtWrapper_QUndoGroup::canRedo(QUndoGroup* theWrappedObject) const -{ - return ( theWrappedObject->canRedo()); -} - -bool PythonQtWrapper_QUndoGroup::canUndo(QUndoGroup* theWrappedObject) const -{ - return ( theWrappedObject->canUndo()); -} - -QAction* PythonQtWrapper_QUndoGroup::createRedoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix) const -{ - return ( theWrappedObject->createRedoAction(parent, prefix)); -} - -QAction* PythonQtWrapper_QUndoGroup::createUndoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix) const -{ - return ( theWrappedObject->createUndoAction(parent, prefix)); -} - -bool PythonQtWrapper_QUndoGroup::isClean(QUndoGroup* theWrappedObject) const -{ - return ( theWrappedObject->isClean()); -} - -QString PythonQtWrapper_QUndoGroup::redoText(QUndoGroup* theWrappedObject) const -{ - return ( theWrappedObject->redoText()); -} - -void PythonQtWrapper_QUndoGroup::removeStack(QUndoGroup* theWrappedObject, QUndoStack* stack) -{ - ( theWrappedObject->removeStack(stack)); -} - -QList PythonQtWrapper_QUndoGroup::stacks(QUndoGroup* theWrappedObject) const -{ - return ( theWrappedObject->stacks()); -} - -QString PythonQtWrapper_QUndoGroup::undoText(QUndoGroup* theWrappedObject) const -{ - return ( theWrappedObject->undoText()); -} - - - -void PythonQtShell_QUndoStack::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoStack::childEvent(arg__1); -} -void PythonQtShell_QUndoStack::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoStack::customEvent(arg__1); -} -bool PythonQtShell_QUndoStack::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoStack::event(arg__1); -} -bool PythonQtShell_QUndoStack::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoStack::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QUndoStack::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoStack::timerEvent(arg__1); -} -QUndoStack* PythonQtWrapper_QUndoStack::new_QUndoStack(QObject* parent) -{ -return new PythonQtShell_QUndoStack(parent); } - -void PythonQtWrapper_QUndoStack::beginMacro(QUndoStack* theWrappedObject, const QString& text) -{ - ( theWrappedObject->beginMacro(text)); -} - -bool PythonQtWrapper_QUndoStack::canRedo(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->canRedo()); -} - -bool PythonQtWrapper_QUndoStack::canUndo(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->canUndo()); -} - -int PythonQtWrapper_QUndoStack::cleanIndex(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->cleanIndex()); -} - -void PythonQtWrapper_QUndoStack::clear(QUndoStack* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -const QUndoCommand* PythonQtWrapper_QUndoStack::command(QUndoStack* theWrappedObject, int index) const -{ - return ( theWrappedObject->command(index)); -} - -int PythonQtWrapper_QUndoStack::count(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -QAction* PythonQtWrapper_QUndoStack::createRedoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix) const -{ - return ( theWrappedObject->createRedoAction(parent, prefix)); -} - -QAction* PythonQtWrapper_QUndoStack::createUndoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix) const -{ - return ( theWrappedObject->createUndoAction(parent, prefix)); -} - -void PythonQtWrapper_QUndoStack::endMacro(QUndoStack* theWrappedObject) -{ - ( theWrappedObject->endMacro()); -} - -int PythonQtWrapper_QUndoStack::index(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->index()); -} - -bool PythonQtWrapper_QUndoStack::isActive(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->isActive()); -} - -bool PythonQtWrapper_QUndoStack::isClean(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->isClean()); -} - -void PythonQtWrapper_QUndoStack::push(QUndoStack* theWrappedObject, QUndoCommand* cmd) -{ - ( theWrappedObject->push(cmd)); -} - -QString PythonQtWrapper_QUndoStack::redoText(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->redoText()); -} - -void PythonQtWrapper_QUndoStack::setUndoLimit(QUndoStack* theWrappedObject, int limit) -{ - ( theWrappedObject->setUndoLimit(limit)); -} - -QString PythonQtWrapper_QUndoStack::text(QUndoStack* theWrappedObject, int idx) const -{ - return ( theWrappedObject->text(idx)); -} - -int PythonQtWrapper_QUndoStack::undoLimit(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->undoLimit()); -} - -QString PythonQtWrapper_QUndoStack::undoText(QUndoStack* theWrappedObject) const -{ - return ( theWrappedObject->undoText()); -} - - - -void PythonQtShell_QUndoView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::actionEvent(arg__1); -} -void PythonQtShell_QUndoView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::changeEvent(arg__1); -} -void PythonQtShell_QUndoView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::childEvent(arg__1); -} -void PythonQtShell_QUndoView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::closeEditor(editor, hint); -} -void PythonQtShell_QUndoView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::closeEvent(arg__1); -} -void PythonQtShell_QUndoView::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::commitData(editor); -} -void PythonQtShell_QUndoView::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::contextMenuEvent(arg__1); -} -void PythonQtShell_QUndoView::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::currentChanged(current, previous); -} -void PythonQtShell_QUndoView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::customEvent(arg__1); -} -void PythonQtShell_QUndoView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QUndoView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::devType(); -} -void PythonQtShell_QUndoView::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::doItemsLayout(); -} -void PythonQtShell_QUndoView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QUndoView::dragEnterEvent(event); -} -void PythonQtShell_QUndoView::dragLeaveEvent(QDragLeaveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::dragLeaveEvent(e); -} -void PythonQtShell_QUndoView::dragMoveEvent(QDragMoveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::dragMoveEvent(e); -} -void PythonQtShell_QUndoView::dropEvent(QDropEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::dropEvent(e); -} -bool PythonQtShell_QUndoView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::edit(index, trigger, event); -} -void PythonQtShell_QUndoView::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::editorDestroyed(editor); -} -void PythonQtShell_QUndoView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::enterEvent(arg__1); -} -bool PythonQtShell_QUndoView::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::event(e); -} -bool PythonQtShell_QUndoView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QUndoView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QUndoView::focusInEvent(event); -} -bool PythonQtShell_QUndoView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::focusNextPrevChild(next); -} -void PythonQtShell_QUndoView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QUndoView::focusOutEvent(event); -} -int PythonQtShell_QUndoView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::heightForWidth(arg__1); -} -void PythonQtShell_QUndoView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::hideEvent(arg__1); -} -int PythonQtShell_QUndoView::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::horizontalOffset(); -} -void PythonQtShell_QUndoView::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::horizontalScrollbarAction(action); -} -void PythonQtShell_QUndoView::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QUndoView::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::indexAt(p); -} -void PythonQtShell_QUndoView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QUndoView::inputMethodEvent(event); -} -QVariant PythonQtShell_QUndoView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::inputMethodQuery(query); -} -bool PythonQtShell_QUndoView::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::isIndexHidden(index); -} -void PythonQtShell_QUndoView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QUndoView::keyPressEvent(event); -} -void PythonQtShell_QUndoView::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::keyReleaseEvent(arg__1); -} -void PythonQtShell_QUndoView::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::keyboardSearch(search); -} -void PythonQtShell_QUndoView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::languageChange(); -} -void PythonQtShell_QUndoView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::leaveEvent(arg__1); -} -int PythonQtShell_QUndoView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::metric(arg__1); -} -void PythonQtShell_QUndoView::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QUndoView::mouseDoubleClickEvent(event); -} -void PythonQtShell_QUndoView::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::mouseMoveEvent(e); -} -void PythonQtShell_QUndoView::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QUndoView::mousePressEvent(event); -} -void PythonQtShell_QUndoView::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::mouseReleaseEvent(e); -} -void PythonQtShell_QUndoView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QUndoView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::paintEngine(); -} -void PythonQtShell_QUndoView::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::paintEvent(e); -} -void PythonQtShell_QUndoView::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::reset(); -} -void PythonQtShell_QUndoView::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::resizeEvent(e); -} -void PythonQtShell_QUndoView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QUndoView::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::rowsInserted(parent, start, end); -} -void PythonQtShell_QUndoView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QUndoView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QUndoView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::scrollTo(index, hint); -} -void PythonQtShell_QUndoView::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::selectAll(); -} -QList PythonQtShell_QUndoView::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::selectedIndexes(); -} -void PythonQtShell_QUndoView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QUndoView::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::selectionCommand(index, event); -} -void PythonQtShell_QUndoView::setModel(QAbstractItemModel* model) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractItemModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&model}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::setModel(model); -} -void PythonQtShell_QUndoView::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::setRootIndex(index); -} -void PythonQtShell_QUndoView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::setSelection(rect, command); -} -void PythonQtShell_QUndoView::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::setSelectionModel(selectionModel); -} -void PythonQtShell_QUndoView::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::showEvent(arg__1); -} -int PythonQtShell_QUndoView::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::sizeHintForColumn(column); -} -int PythonQtShell_QUndoView::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::sizeHintForRow(row); -} -void PythonQtShell_QUndoView::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::startDrag(supportedActions); -} -void PythonQtShell_QUndoView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::tabletEvent(arg__1); -} -void PythonQtShell_QUndoView::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::timerEvent(e); -} -void PythonQtShell_QUndoView::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::updateEditorData(); -} -void PythonQtShell_QUndoView::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::updateEditorGeometries(); -} -void PythonQtShell_QUndoView::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::updateGeometries(); -} -int PythonQtShell_QUndoView::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::verticalOffset(); -} -void PythonQtShell_QUndoView::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::verticalScrollbarAction(action); -} -void PythonQtShell_QUndoView::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QUndoView::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::viewOptions(); -} -bool PythonQtShell_QUndoView::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::viewportEvent(event); -} -QRect PythonQtShell_QUndoView::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::visualRect(index); -} -QRegion PythonQtShell_QUndoView::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUndoView::visualRegionForSelection(selection); -} -void PythonQtShell_QUndoView::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUndoView::wheelEvent(arg__1); -} -QUndoView* PythonQtWrapper_QUndoView::new_QUndoView(QUndoGroup* group, QWidget* parent) -{ -return new PythonQtShell_QUndoView(group, parent); } - -QUndoView* PythonQtWrapper_QUndoView::new_QUndoView(QUndoStack* stack, QWidget* parent) -{ -return new PythonQtShell_QUndoView(stack, parent); } - -QUndoView* PythonQtWrapper_QUndoView::new_QUndoView(QWidget* parent) -{ -return new PythonQtShell_QUndoView(parent); } - -QIcon PythonQtWrapper_QUndoView::cleanIcon(QUndoView* theWrappedObject) const -{ - return ( theWrappedObject->cleanIcon()); -} - -QString PythonQtWrapper_QUndoView::emptyLabel(QUndoView* theWrappedObject) const -{ - return ( theWrappedObject->emptyLabel()); -} - -QUndoGroup* PythonQtWrapper_QUndoView::group(QUndoView* theWrappedObject) const -{ - return ( theWrappedObject->group()); -} - -void PythonQtWrapper_QUndoView::setCleanIcon(QUndoView* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setCleanIcon(icon)); -} - -void PythonQtWrapper_QUndoView::setEmptyLabel(QUndoView* theWrappedObject, const QString& label) -{ - ( theWrappedObject->setEmptyLabel(label)); -} - -QUndoStack* PythonQtWrapper_QUndoView::stack(QUndoView* theWrappedObject) const -{ - return ( theWrappedObject->stack()); -} - - - -void PythonQtShell_QVBoxLayout::addItem(QLayoutItem* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QLayoutItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVBoxLayout::addItem(arg__1); -} -void PythonQtShell_QVBoxLayout::childEvent(QChildEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVBoxLayout::childEvent(e); -} -int PythonQtShell_QVBoxLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::count(); -} -void PythonQtShell_QVBoxLayout::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVBoxLayout::customEvent(arg__1); -} -bool PythonQtShell_QVBoxLayout::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::event(arg__1); -} -bool PythonQtShell_QVBoxLayout::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::eventFilter(arg__1, arg__2); -} -Qt::Orientations PythonQtShell_QVBoxLayout::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::expandingDirections(); -} -QRect PythonQtShell_QVBoxLayout::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::geometry(); -} -int PythonQtShell_QVBoxLayout::indexOf(QWidget* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::indexOf(arg__1); -} -void PythonQtShell_QVBoxLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVBoxLayout::invalidate(); -} -bool PythonQtShell_QVBoxLayout::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::isEmpty(); -} -QLayoutItem* PythonQtShell_QVBoxLayout::itemAt(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::itemAt(arg__1); -} -QLayout* PythonQtShell_QVBoxLayout::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::layout(); -} -QSize PythonQtShell_QVBoxLayout::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::maximumSize(); -} -QSize PythonQtShell_QVBoxLayout::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::minimumSize(); -} -void PythonQtShell_QVBoxLayout::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVBoxLayout::setGeometry(arg__1); -} -QLayoutItem* PythonQtShell_QVBoxLayout::takeAt(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVBoxLayout::takeAt(arg__1); -} -void PythonQtShell_QVBoxLayout::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QVBoxLayout::timerEvent(arg__1); -} -QVBoxLayout* PythonQtWrapper_QVBoxLayout::new_QVBoxLayout() -{ -return new PythonQtShell_QVBoxLayout(); } - -QVBoxLayout* PythonQtWrapper_QVBoxLayout::new_QVBoxLayout(QWidget* parent) -{ -return new PythonQtShell_QVBoxLayout(parent); } - - - -void PythonQtShell_QValidator::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QValidator::childEvent(arg__1); -} -void PythonQtShell_QValidator::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QValidator::customEvent(arg__1); -} -bool PythonQtShell_QValidator::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QValidator::event(arg__1); -} -bool PythonQtShell_QValidator::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QValidator::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QValidator::fixup(QString& arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QValidator::fixup(arg__1); -} -void PythonQtShell_QValidator::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QValidator::timerEvent(arg__1); -} -QValidator::State PythonQtShell_QValidator::validate(QString& arg__1, int& arg__2) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QValidator::State(); -} -QValidator* PythonQtWrapper_QValidator::new_QValidator(QObject* parent) -{ -return new PythonQtShell_QValidator(parent); } - -void PythonQtWrapper_QValidator::fixup(QValidator* theWrappedObject, QString& arg__1) const -{ - ( ((PythonQtPublicPromoter_QValidator*)theWrappedObject)->promoted_fixup(arg__1)); -} - -QLocale PythonQtWrapper_QValidator::locale(QValidator* theWrappedObject) const -{ - return ( theWrappedObject->locale()); -} - -void PythonQtWrapper_QValidator::setLocale(QValidator* theWrappedObject, const QLocale& locale) -{ - ( theWrappedObject->setLocale(locale)); -} - - - -QVector2D* PythonQtWrapper_QVector2D::new_QVector2D() -{ -return new QVector2D(); } - -QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QPoint& point) -{ -return new QVector2D(point); } - -QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QPointF& point) -{ -return new QVector2D(point); } - -QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QVector3D& vector) -{ -return new QVector2D(vector); } - -QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(const QVector4D& vector) -{ -return new QVector2D(vector); } - -QVector2D* PythonQtWrapper_QVector2D::new_QVector2D(qreal xpos, qreal ypos) -{ -return new QVector2D(xpos, ypos); } - -qreal PythonQtWrapper_QVector2D::static_QVector2D_dotProduct(const QVector2D& v1, const QVector2D& v2) -{ - return (QVector2D::dotProduct(v1, v2)); -} - -bool PythonQtWrapper_QVector2D::isNull(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -qreal PythonQtWrapper_QVector2D::length(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -qreal PythonQtWrapper_QVector2D::lengthSquared(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->lengthSquared()); -} - -void PythonQtWrapper_QVector2D::normalize(QVector2D* theWrappedObject) -{ - ( theWrappedObject->normalize()); -} - -QVector2D PythonQtWrapper_QVector2D::normalized(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->normalized()); -} - -const QVector2D PythonQtWrapper_QVector2D::__mul__(QVector2D* theWrappedObject, const QVector2D& v2) -{ - return ( (*theWrappedObject)* v2); -} - -const QVector2D PythonQtWrapper_QVector2D::__mul__(QVector2D* theWrappedObject, qreal factor) -{ - return ( (*theWrappedObject)* factor); -} - -QVector2D* PythonQtWrapper_QVector2D::__imul__(QVector2D* theWrappedObject, const QVector2D& vector) -{ - return &( (*theWrappedObject)*= vector); -} - -QVector2D* PythonQtWrapper_QVector2D::__imul__(QVector2D* theWrappedObject, qreal factor) -{ - return &( (*theWrappedObject)*= factor); -} - -const QVector2D PythonQtWrapper_QVector2D::__add__(QVector2D* theWrappedObject, const QVector2D& v2) -{ - return ( (*theWrappedObject)+ v2); -} - -QVector2D* PythonQtWrapper_QVector2D::__iadd__(QVector2D* theWrappedObject, const QVector2D& vector) -{ - return &( (*theWrappedObject)+= vector); -} - -const QVector2D PythonQtWrapper_QVector2D::__sub__(QVector2D* theWrappedObject, const QVector2D& v2) -{ - return ( (*theWrappedObject)- v2); -} - -QVector2D* PythonQtWrapper_QVector2D::__isub__(QVector2D* theWrappedObject, const QVector2D& vector) -{ - return &( (*theWrappedObject)-= vector); -} - -const QVector2D PythonQtWrapper_QVector2D::__div__(QVector2D* theWrappedObject, qreal divisor) -{ - return ( (*theWrappedObject)/ divisor); -} - -QVector2D* PythonQtWrapper_QVector2D::__idiv__(QVector2D* theWrappedObject, qreal divisor) -{ - return &( (*theWrappedObject)/= divisor); -} - -void PythonQtWrapper_QVector2D::writeTo(QVector2D* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QVector2D::__eq__(QVector2D* theWrappedObject, const QVector2D& v2) -{ - return ( (*theWrappedObject)== v2); -} - -void PythonQtWrapper_QVector2D::readFrom(QVector2D* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QVector2D::setX(QVector2D* theWrappedObject, qreal x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QVector2D::setY(QVector2D* theWrappedObject, qreal y) -{ - ( theWrappedObject->setY(y)); -} - -QPoint PythonQtWrapper_QVector2D::toPoint(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->toPoint()); -} - -QPointF PythonQtWrapper_QVector2D::toPointF(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->toPointF()); -} - -QVector3D PythonQtWrapper_QVector2D::toVector3D(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->toVector3D()); -} - -QVector4D PythonQtWrapper_QVector2D::toVector4D(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->toVector4D()); -} - -qreal PythonQtWrapper_QVector2D::x(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -qreal PythonQtWrapper_QVector2D::y(QVector2D* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -QString PythonQtWrapper_QVector2D::py_toString(QVector2D* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QVector3D* PythonQtWrapper_QVector3D::new_QVector3D() -{ -return new QVector3D(); } - -QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QPoint& point) -{ -return new QVector3D(point); } - -QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QPointF& point) -{ -return new QVector3D(point); } - -QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QVector2D& vector) -{ -return new QVector3D(vector); } - -QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QVector2D& vector, qreal zpos) -{ -return new QVector3D(vector, zpos); } - -QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(const QVector4D& vector) -{ -return new QVector3D(vector); } - -QVector3D* PythonQtWrapper_QVector3D::new_QVector3D(qreal xpos, qreal ypos, qreal zpos) -{ -return new QVector3D(xpos, ypos, zpos); } - -QVector3D PythonQtWrapper_QVector3D::static_QVector3D_crossProduct(const QVector3D& v1, const QVector3D& v2) -{ - return (QVector3D::crossProduct(v1, v2)); -} - -qreal PythonQtWrapper_QVector3D::distanceToLine(QVector3D* theWrappedObject, const QVector3D& point, const QVector3D& direction) const -{ - return ( theWrappedObject->distanceToLine(point, direction)); -} - -qreal PythonQtWrapper_QVector3D::distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane, const QVector3D& normal) const -{ - return ( theWrappedObject->distanceToPlane(plane, normal)); -} - -qreal PythonQtWrapper_QVector3D::distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane1, const QVector3D& plane2, const QVector3D& plane3) const -{ - return ( theWrappedObject->distanceToPlane(plane1, plane2, plane3)); -} - -qreal PythonQtWrapper_QVector3D::static_QVector3D_dotProduct(const QVector3D& v1, const QVector3D& v2) -{ - return (QVector3D::dotProduct(v1, v2)); -} - -bool PythonQtWrapper_QVector3D::isNull(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -qreal PythonQtWrapper_QVector3D::length(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -qreal PythonQtWrapper_QVector3D::lengthSquared(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->lengthSquared()); -} - -QVector3D PythonQtWrapper_QVector3D::static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2) -{ - return (QVector3D::normal(v1, v2)); -} - -QVector3D PythonQtWrapper_QVector3D::static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2, const QVector3D& v3) -{ - return (QVector3D::normal(v1, v2, v3)); -} - -void PythonQtWrapper_QVector3D::normalize(QVector3D* theWrappedObject) -{ - ( theWrappedObject->normalize()); -} - -QVector3D PythonQtWrapper_QVector3D::normalized(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->normalized()); -} - -QVector3D PythonQtWrapper_QVector3D::__mul__(QVector3D* theWrappedObject, const QMatrix4x4& matrix) -{ - return ( (*theWrappedObject)* matrix); -} - -const QVector3D PythonQtWrapper_QVector3D::__mul__(QVector3D* theWrappedObject, const QVector3D& v2) -{ - return ( (*theWrappedObject)* v2); -} - -const QVector3D PythonQtWrapper_QVector3D::__mul__(QVector3D* theWrappedObject, qreal factor) -{ - return ( (*theWrappedObject)* factor); -} - -QVector3D* PythonQtWrapper_QVector3D::__imul__(QVector3D* theWrappedObject, const QVector3D& vector) -{ - return &( (*theWrappedObject)*= vector); -} - -QVector3D* PythonQtWrapper_QVector3D::__imul__(QVector3D* theWrappedObject, qreal factor) -{ - return &( (*theWrappedObject)*= factor); -} - -const QVector3D PythonQtWrapper_QVector3D::__add__(QVector3D* theWrappedObject, const QVector3D& v2) -{ - return ( (*theWrappedObject)+ v2); -} - -QVector3D* PythonQtWrapper_QVector3D::__iadd__(QVector3D* theWrappedObject, const QVector3D& vector) -{ - return &( (*theWrappedObject)+= vector); -} - -const QVector3D PythonQtWrapper_QVector3D::__sub__(QVector3D* theWrappedObject, const QVector3D& v2) -{ - return ( (*theWrappedObject)- v2); -} - -QVector3D* PythonQtWrapper_QVector3D::__isub__(QVector3D* theWrappedObject, const QVector3D& vector) -{ - return &( (*theWrappedObject)-= vector); -} - -const QVector3D PythonQtWrapper_QVector3D::__div__(QVector3D* theWrappedObject, qreal divisor) -{ - return ( (*theWrappedObject)/ divisor); -} - -QVector3D* PythonQtWrapper_QVector3D::__idiv__(QVector3D* theWrappedObject, qreal divisor) -{ - return &( (*theWrappedObject)/= divisor); -} - -void PythonQtWrapper_QVector3D::writeTo(QVector3D* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QVector3D::__eq__(QVector3D* theWrappedObject, const QVector3D& v2) -{ - return ( (*theWrappedObject)== v2); -} - -void PythonQtWrapper_QVector3D::readFrom(QVector3D* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QVector3D::setX(QVector3D* theWrappedObject, qreal x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QVector3D::setY(QVector3D* theWrappedObject, qreal y) -{ - ( theWrappedObject->setY(y)); -} - -void PythonQtWrapper_QVector3D::setZ(QVector3D* theWrappedObject, qreal z) -{ - ( theWrappedObject->setZ(z)); -} - -QPoint PythonQtWrapper_QVector3D::toPoint(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->toPoint()); -} - -QPointF PythonQtWrapper_QVector3D::toPointF(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->toPointF()); -} - -QVector2D PythonQtWrapper_QVector3D::toVector2D(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->toVector2D()); -} - -QVector4D PythonQtWrapper_QVector3D::toVector4D(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->toVector4D()); -} - -qreal PythonQtWrapper_QVector3D::x(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -qreal PythonQtWrapper_QVector3D::y(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -qreal PythonQtWrapper_QVector3D::z(QVector3D* theWrappedObject) const -{ - return ( theWrappedObject->z()); -} - -QString PythonQtWrapper_QVector3D::py_toString(QVector3D* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D() -{ -return new QVector4D(); } - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QPoint& point) -{ -return new QVector4D(point); } - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QPointF& point) -{ -return new QVector4D(point); } - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector2D& vector) -{ -return new QVector4D(vector); } - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector2D& vector, qreal zpos, qreal wpos) -{ -return new QVector4D(vector, zpos, wpos); } - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector3D& vector) -{ -return new QVector4D(vector); } - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(const QVector3D& vector, qreal wpos) -{ -return new QVector4D(vector, wpos); } - -QVector4D* PythonQtWrapper_QVector4D::new_QVector4D(qreal xpos, qreal ypos, qreal zpos, qreal wpos) -{ -return new QVector4D(xpos, ypos, zpos, wpos); } - -qreal PythonQtWrapper_QVector4D::static_QVector4D_dotProduct(const QVector4D& v1, const QVector4D& v2) -{ - return (QVector4D::dotProduct(v1, v2)); -} - -bool PythonQtWrapper_QVector4D::isNull(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -qreal PythonQtWrapper_QVector4D::length(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -qreal PythonQtWrapper_QVector4D::lengthSquared(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->lengthSquared()); -} - -void PythonQtWrapper_QVector4D::normalize(QVector4D* theWrappedObject) -{ - ( theWrappedObject->normalize()); -} - -QVector4D PythonQtWrapper_QVector4D::normalized(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->normalized()); -} - -QVector4D PythonQtWrapper_QVector4D::__mul__(QVector4D* theWrappedObject, const QMatrix4x4& matrix) -{ - return ( (*theWrappedObject)* matrix); -} - -const QVector4D PythonQtWrapper_QVector4D::__mul__(QVector4D* theWrappedObject, const QVector4D& v2) -{ - return ( (*theWrappedObject)* v2); -} - -const QVector4D PythonQtWrapper_QVector4D::__mul__(QVector4D* theWrappedObject, qreal factor) -{ - return ( (*theWrappedObject)* factor); -} - -QVector4D* PythonQtWrapper_QVector4D::__imul__(QVector4D* theWrappedObject, const QVector4D& vector) -{ - return &( (*theWrappedObject)*= vector); -} - -QVector4D* PythonQtWrapper_QVector4D::__imul__(QVector4D* theWrappedObject, qreal factor) -{ - return &( (*theWrappedObject)*= factor); -} - -const QVector4D PythonQtWrapper_QVector4D::__add__(QVector4D* theWrappedObject, const QVector4D& v2) -{ - return ( (*theWrappedObject)+ v2); -} - -QVector4D* PythonQtWrapper_QVector4D::__iadd__(QVector4D* theWrappedObject, const QVector4D& vector) -{ - return &( (*theWrappedObject)+= vector); -} - -const QVector4D PythonQtWrapper_QVector4D::__sub__(QVector4D* theWrappedObject, const QVector4D& v2) -{ - return ( (*theWrappedObject)- v2); -} - -QVector4D* PythonQtWrapper_QVector4D::__isub__(QVector4D* theWrappedObject, const QVector4D& vector) -{ - return &( (*theWrappedObject)-= vector); -} - -const QVector4D PythonQtWrapper_QVector4D::__div__(QVector4D* theWrappedObject, qreal divisor) -{ - return ( (*theWrappedObject)/ divisor); -} - -QVector4D* PythonQtWrapper_QVector4D::__idiv__(QVector4D* theWrappedObject, qreal divisor) -{ - return &( (*theWrappedObject)/= divisor); -} - -void PythonQtWrapper_QVector4D::writeTo(QVector4D* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QVector4D::__eq__(QVector4D* theWrappedObject, const QVector4D& v2) -{ - return ( (*theWrappedObject)== v2); -} - -void PythonQtWrapper_QVector4D::readFrom(QVector4D* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QVector4D::setW(QVector4D* theWrappedObject, qreal w) -{ - ( theWrappedObject->setW(w)); -} - -void PythonQtWrapper_QVector4D::setX(QVector4D* theWrappedObject, qreal x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QVector4D::setY(QVector4D* theWrappedObject, qreal y) -{ - ( theWrappedObject->setY(y)); -} - -void PythonQtWrapper_QVector4D::setZ(QVector4D* theWrappedObject, qreal z) -{ - ( theWrappedObject->setZ(z)); -} - -QPoint PythonQtWrapper_QVector4D::toPoint(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->toPoint()); -} - -QPointF PythonQtWrapper_QVector4D::toPointF(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->toPointF()); -} - -QVector2D PythonQtWrapper_QVector4D::toVector2D(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->toVector2D()); -} - -QVector2D PythonQtWrapper_QVector4D::toVector2DAffine(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->toVector2DAffine()); -} - -QVector3D PythonQtWrapper_QVector4D::toVector3D(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->toVector3D()); -} - -QVector3D PythonQtWrapper_QVector4D::toVector3DAffine(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->toVector3DAffine()); -} - -qreal PythonQtWrapper_QVector4D::w(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->w()); -} - -qreal PythonQtWrapper_QVector4D::x(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -qreal PythonQtWrapper_QVector4D::y(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -qreal PythonQtWrapper_QVector4D::z(QVector4D* theWrappedObject) const -{ - return ( theWrappedObject->z()); -} - -QString PythonQtWrapper_QVector4D::py_toString(QVector4D* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QAction* PythonQtWrapper_QWhatsThis::static_QWhatsThis_createAction(QObject* parent) -{ - return (QWhatsThis::createAction(parent)); -} - -void PythonQtWrapper_QWhatsThis::static_QWhatsThis_enterWhatsThisMode() -{ - (QWhatsThis::enterWhatsThisMode()); -} - -void PythonQtWrapper_QWhatsThis::static_QWhatsThis_hideText() -{ - (QWhatsThis::hideText()); -} - -bool PythonQtWrapper_QWhatsThis::static_QWhatsThis_inWhatsThisMode() -{ - return (QWhatsThis::inWhatsThisMode()); -} - -void PythonQtWrapper_QWhatsThis::static_QWhatsThis_leaveWhatsThisMode() -{ - (QWhatsThis::leaveWhatsThisMode()); -} - -void PythonQtWrapper_QWhatsThis::static_QWhatsThis_showText(const QPoint& pos, const QString& text, QWidget* w) -{ - (QWhatsThis::showText(pos, text, w)); -} - - - -QWhatsThisClickedEvent* PythonQtWrapper_QWhatsThisClickedEvent::new_QWhatsThisClickedEvent(const QString& href) -{ -return new QWhatsThisClickedEvent(href); } - -QString PythonQtWrapper_QWhatsThisClickedEvent::href(QWhatsThisClickedEvent* theWrappedObject) const -{ - return ( theWrappedObject->href()); -} - - - -QWheelEvent* PythonQtWrapper_QWheelEvent::new_QWheelEvent(const QPoint& pos, const QPoint& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient) -{ -return new PythonQtShell_QWheelEvent(pos, globalPos, delta, buttons, modifiers, orient); } - -QWheelEvent* PythonQtWrapper_QWheelEvent::new_QWheelEvent(const QPoint& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient) -{ -return new PythonQtShell_QWheelEvent(pos, delta, buttons, modifiers, orient); } - -Qt::MouseButtons PythonQtWrapper_QWheelEvent::buttons(QWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -int PythonQtWrapper_QWheelEvent::delta(QWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->delta()); -} - -const QPoint* PythonQtWrapper_QWheelEvent::globalPos(QWheelEvent* theWrappedObject) const -{ - return &( theWrappedObject->globalPos()); -} - -int PythonQtWrapper_QWheelEvent::globalX(QWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalX()); -} - -int PythonQtWrapper_QWheelEvent::globalY(QWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalY()); -} - -Qt::Orientation PythonQtWrapper_QWheelEvent::orientation(QWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -const QPoint* PythonQtWrapper_QWheelEvent::pos(QWheelEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - -int PythonQtWrapper_QWheelEvent::x(QWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QWheelEvent::y(QWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - - - -void PythonQtShell_QWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::actionEvent(arg__1); -} -void PythonQtShell_QWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::changeEvent(arg__1); -} -void PythonQtShell_QWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::childEvent(arg__1); -} -void PythonQtShell_QWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::closeEvent(arg__1); -} -void PythonQtShell_QWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::customEvent(arg__1); -} -int PythonQtShell_QWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::devType(); -} -void PythonQtShell_QWidget::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::dragEnterEvent(arg__1); -} -void PythonQtShell_QWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::dragLeaveEvent(arg__1); -} -void PythonQtShell_QWidget::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::dragMoveEvent(arg__1); -} -void PythonQtShell_QWidget::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::dropEvent(arg__1); -} -void PythonQtShell_QWidget::enabledChange(bool arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enabledChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::enabledChange(arg__1); -} -void PythonQtShell_QWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::enterEvent(arg__1); -} -bool PythonQtShell_QWidget::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::event(arg__1); -} -bool PythonQtShell_QWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QWidget::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::focusInEvent(arg__1); -} -bool PythonQtShell_QWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::focusNextPrevChild(next); -} -void PythonQtShell_QWidget::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::focusOutEvent(arg__1); -} -void PythonQtShell_QWidget::fontChange(const QFont& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fontChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QFont&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::fontChange(arg__1); -} -int PythonQtShell_QWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::heightForWidth(arg__1); -} -void PythonQtShell_QWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::hideEvent(arg__1); -} -void PythonQtShell_QWidget::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::inputMethodQuery(arg__1); -} -void PythonQtShell_QWidget::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::keyPressEvent(arg__1); -} -void PythonQtShell_QWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::languageChange(); -} -void PythonQtShell_QWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::leaveEvent(arg__1); -} -int PythonQtShell_QWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::metric(arg__1); -} -QSize PythonQtShell_QWidget::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::minimumSizeHint(); -} -void PythonQtShell_QWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QWidget::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::mouseMoveEvent(arg__1); -} -void PythonQtShell_QWidget::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::mousePressEvent(arg__1); -} -void PythonQtShell_QWidget::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::paintEngine(); -} -void PythonQtShell_QWidget::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::paintEvent(arg__1); -} -void PythonQtShell_QWidget::paletteChange(const QPalette& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paletteChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::paletteChange(arg__1); -} -void PythonQtShell_QWidget::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::resizeEvent(arg__1); -} -void PythonQtShell_QWidget::setVisible(bool visible) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setVisible"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&visible}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::setVisible(visible); -} -void PythonQtShell_QWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::showEvent(arg__1); -} -QSize PythonQtShell_QWidget::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidget::sizeHint(); -} -void PythonQtShell_QWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::tabletEvent(arg__1); -} -void PythonQtShell_QWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::timerEvent(arg__1); -} -void PythonQtShell_QWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::wheelEvent(arg__1); -} -void PythonQtShell_QWidget::windowActivationChange(bool arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowActivationChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidget::windowActivationChange(arg__1); -} -QWidget* PythonQtWrapper_QWidget::new_QWidget(QWidget* parent, Qt::WindowFlags f) -{ -return new PythonQtShell_QWidget(parent, f); } - -bool PythonQtWrapper_QWidget::acceptDrops(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->acceptDrops()); -} - -QString PythonQtWrapper_QWidget::accessibleDescription(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->accessibleDescription()); -} - -QString PythonQtWrapper_QWidget::accessibleName(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->accessibleName()); -} - -void PythonQtWrapper_QWidget::actionEvent(QWidget* theWrappedObject, QActionEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_actionEvent(arg__1)); -} - -QList PythonQtWrapper_QWidget::actions(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->actions()); -} - -void PythonQtWrapper_QWidget::activateWindow(QWidget* theWrappedObject) -{ - ( theWrappedObject->activateWindow()); -} - -void PythonQtWrapper_QWidget::addAction(QWidget* theWrappedObject, QAction* action) -{ - ( theWrappedObject->addAction(action)); -} - -void PythonQtWrapper_QWidget::addActions(QWidget* theWrappedObject, QList actions) -{ - ( theWrappedObject->addActions(actions)); -} - -void PythonQtWrapper_QWidget::adjustSize(QWidget* theWrappedObject) -{ - ( theWrappedObject->adjustSize()); -} - -bool PythonQtWrapper_QWidget::autoFillBackground(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->autoFillBackground()); -} - -QPalette::ColorRole PythonQtWrapper_QWidget::backgroundRole(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->backgroundRole()); -} - -QSize PythonQtWrapper_QWidget::baseSize(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->baseSize()); -} - -void PythonQtWrapper_QWidget::changeEvent(QWidget* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -QWidget* PythonQtWrapper_QWidget::childAt(QWidget* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->childAt(p)); -} - -QWidget* PythonQtWrapper_QWidget::childAt(QWidget* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->childAt(x, y)); -} - -QRect PythonQtWrapper_QWidget::childrenRect(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->childrenRect()); -} - -QRegion PythonQtWrapper_QWidget::childrenRegion(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->childrenRegion()); -} - -void PythonQtWrapper_QWidget::clearFocus(QWidget* theWrappedObject) -{ - ( theWrappedObject->clearFocus()); -} - -void PythonQtWrapper_QWidget::clearMask(QWidget* theWrappedObject) -{ - ( theWrappedObject->clearMask()); -} - -void PythonQtWrapper_QWidget::closeEvent(QWidget* theWrappedObject, QCloseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_closeEvent(arg__1)); -} - -QMargins PythonQtWrapper_QWidget::contentsMargins(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->contentsMargins()); -} - -QRect PythonQtWrapper_QWidget::contentsRect(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->contentsRect()); -} - -void PythonQtWrapper_QWidget::contextMenuEvent(QWidget* theWrappedObject, QContextMenuEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); -} - -Qt::ContextMenuPolicy PythonQtWrapper_QWidget::contextMenuPolicy(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->contextMenuPolicy()); -} - -void PythonQtWrapper_QWidget::createWinId(QWidget* theWrappedObject) -{ - ( theWrappedObject->createWinId()); -} - -QCursor PythonQtWrapper_QWidget::cursor(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->cursor()); -} - -int PythonQtWrapper_QWidget::devType(QWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_devType()); -} - -void PythonQtWrapper_QWidget::dragEnterEvent(QWidget* theWrappedObject, QDragEnterEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); -} - -void PythonQtWrapper_QWidget::dragLeaveEvent(QWidget* theWrappedObject, QDragLeaveEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dragLeaveEvent(arg__1)); -} - -void PythonQtWrapper_QWidget::dragMoveEvent(QWidget* theWrappedObject, QDragMoveEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dragMoveEvent(arg__1)); -} - -void PythonQtWrapper_QWidget::dropEvent(QWidget* theWrappedObject, QDropEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_dropEvent(arg__1)); -} - -WId PythonQtWrapper_QWidget::effectiveWinId(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->effectiveWinId()); -} - -void PythonQtWrapper_QWidget::ensurePolished(QWidget* theWrappedObject) const -{ - ( theWrappedObject->ensurePolished()); -} - -void PythonQtWrapper_QWidget::enterEvent(QWidget* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_enterEvent(arg__1)); -} - -bool PythonQtWrapper_QWidget::event(QWidget* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_event(arg__1)); -} - -void PythonQtWrapper_QWidget::focusInEvent(QWidget* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_focusInEvent(arg__1)); -} - -bool PythonQtWrapper_QWidget::focusNextPrevChild(QWidget* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QWidget::focusOutEvent(QWidget* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_focusOutEvent(arg__1)); -} - -Qt::FocusPolicy PythonQtWrapper_QWidget::focusPolicy(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->focusPolicy()); -} - -QWidget* PythonQtWrapper_QWidget::focusProxy(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->focusProxy()); -} - -QWidget* PythonQtWrapper_QWidget::focusWidget(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->focusWidget()); -} - -const QFont* PythonQtWrapper_QWidget::font(QWidget* theWrappedObject) const -{ - return &( theWrappedObject->font()); -} - -QPalette::ColorRole PythonQtWrapper_QWidget::foregroundRole(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->foregroundRole()); -} - -QRect PythonQtWrapper_QWidget::frameGeometry(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->frameGeometry()); -} - -QSize PythonQtWrapper_QWidget::frameSize(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->frameSize()); -} - -const QRect* PythonQtWrapper_QWidget::geometry(QWidget* theWrappedObject) const -{ - return &( theWrappedObject->geometry()); -} - -void PythonQtWrapper_QWidget::getContentsMargins(QWidget* theWrappedObject, int* left, int* top, int* right, int* bottom) const -{ - ( theWrappedObject->getContentsMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QWidget::grabKeyboard(QWidget* theWrappedObject) -{ - ( theWrappedObject->grabKeyboard()); -} - -void PythonQtWrapper_QWidget::grabMouse(QWidget* theWrappedObject) -{ - ( theWrappedObject->grabMouse()); -} - -void PythonQtWrapper_QWidget::grabMouse(QWidget* theWrappedObject, const QCursor& arg__1) -{ - ( theWrappedObject->grabMouse(arg__1)); -} - -int PythonQtWrapper_QWidget::grabShortcut(QWidget* theWrappedObject, const QKeySequence& key, Qt::ShortcutContext context) -{ - return ( theWrappedObject->grabShortcut(key, context)); -} - -QGraphicsEffect* PythonQtWrapper_QWidget::graphicsEffect(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->graphicsEffect()); -} - -QGraphicsProxyWidget* PythonQtWrapper_QWidget::graphicsProxyWidget(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->graphicsProxyWidget()); -} - -bool PythonQtWrapper_QWidget::hasFocus(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->hasFocus()); -} - -bool PythonQtWrapper_QWidget::hasMouseTracking(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->hasMouseTracking()); -} - -int PythonQtWrapper_QWidget::height(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -int PythonQtWrapper_QWidget::heightForWidth(QWidget* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_heightForWidth(arg__1)); -} - -void PythonQtWrapper_QWidget::hideEvent(QWidget* theWrappedObject, QHideEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_hideEvent(arg__1)); -} - -QInputContext* PythonQtWrapper_QWidget::inputContext(QWidget* theWrappedObject) -{ - return ( theWrappedObject->inputContext()); -} - -void PythonQtWrapper_QWidget::inputMethodEvent(QWidget* theWrappedObject, QInputMethodEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); -} - -Qt::InputMethodHints PythonQtWrapper_QWidget::inputMethodHints(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->inputMethodHints()); -} - -QVariant PythonQtWrapper_QWidget::inputMethodQuery(QWidget* theWrappedObject, Qt::InputMethodQuery arg__1) const -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); -} - -void PythonQtWrapper_QWidget::insertAction(QWidget* theWrappedObject, QAction* before, QAction* action) -{ - ( theWrappedObject->insertAction(before, action)); -} - -void PythonQtWrapper_QWidget::insertActions(QWidget* theWrappedObject, QAction* before, QList actions) -{ - ( theWrappedObject->insertActions(before, actions)); -} - -bool PythonQtWrapper_QWidget::isActiveWindow(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isActiveWindow()); -} - -bool PythonQtWrapper_QWidget::isAncestorOf(QWidget* theWrappedObject, const QWidget* child) const -{ - return ( theWrappedObject->isAncestorOf(child)); -} - -bool PythonQtWrapper_QWidget::isEnabled(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -bool PythonQtWrapper_QWidget::isEnabledTo(QWidget* theWrappedObject, QWidget* arg__1) const -{ - return ( theWrappedObject->isEnabledTo(arg__1)); -} - -bool PythonQtWrapper_QWidget::isFullScreen(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isFullScreen()); -} - -bool PythonQtWrapper_QWidget::isHidden(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isHidden()); -} - -bool PythonQtWrapper_QWidget::isLeftToRight(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isLeftToRight()); -} - -bool PythonQtWrapper_QWidget::isMaximized(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isMaximized()); -} - -bool PythonQtWrapper_QWidget::isMinimized(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isMinimized()); -} - -bool PythonQtWrapper_QWidget::isModal(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isModal()); -} - -bool PythonQtWrapper_QWidget::isRightToLeft(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isRightToLeft()); -} - -bool PythonQtWrapper_QWidget::isVisible(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isVisible()); -} - -bool PythonQtWrapper_QWidget::isVisibleTo(QWidget* theWrappedObject, QWidget* arg__1) const -{ - return ( theWrappedObject->isVisibleTo(arg__1)); -} - -bool PythonQtWrapper_QWidget::isWindow(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isWindow()); -} - -bool PythonQtWrapper_QWidget::isWindowModified(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->isWindowModified()); -} - -void PythonQtWrapper_QWidget::keyPressEvent(QWidget* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -void PythonQtWrapper_QWidget::keyReleaseEvent(QWidget* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_keyReleaseEvent(arg__1)); -} - -QWidget* PythonQtWrapper_QWidget::static_QWidget_keyboardGrabber() -{ - return (QWidget::keyboardGrabber()); -} - -void PythonQtWrapper_QWidget::languageChange(QWidget* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_languageChange()); -} - -QLayout* PythonQtWrapper_QWidget::layout(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->layout()); -} - -Qt::LayoutDirection PythonQtWrapper_QWidget::layoutDirection(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->layoutDirection()); -} - -void PythonQtWrapper_QWidget::leaveEvent(QWidget* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_leaveEvent(arg__1)); -} - -QLocale PythonQtWrapper_QWidget::locale(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->locale()); -} - -QPoint PythonQtWrapper_QWidget::mapFrom(QWidget* theWrappedObject, QWidget* arg__1, const QPoint& arg__2) const -{ - return ( theWrappedObject->mapFrom(arg__1, arg__2)); -} - -QPoint PythonQtWrapper_QWidget::mapFromGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const -{ - return ( theWrappedObject->mapFromGlobal(arg__1)); -} - -QPoint PythonQtWrapper_QWidget::mapFromParent(QWidget* theWrappedObject, const QPoint& arg__1) const -{ - return ( theWrappedObject->mapFromParent(arg__1)); -} - -QPoint PythonQtWrapper_QWidget::mapTo(QWidget* theWrappedObject, QWidget* arg__1, const QPoint& arg__2) const -{ - return ( theWrappedObject->mapTo(arg__1, arg__2)); -} - -QPoint PythonQtWrapper_QWidget::mapToGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const -{ - return ( theWrappedObject->mapToGlobal(arg__1)); -} - -QPoint PythonQtWrapper_QWidget::mapToParent(QWidget* theWrappedObject, const QPoint& arg__1) const -{ - return ( theWrappedObject->mapToParent(arg__1)); -} - -QRegion PythonQtWrapper_QWidget::mask(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->mask()); -} - -int PythonQtWrapper_QWidget::maximumHeight(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->maximumHeight()); -} - -QSize PythonQtWrapper_QWidget::maximumSize(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->maximumSize()); -} - -int PythonQtWrapper_QWidget::maximumWidth(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->maximumWidth()); -} - -int PythonQtWrapper_QWidget::metric(QWidget* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_metric(arg__1)); -} - -int PythonQtWrapper_QWidget::minimumHeight(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->minimumHeight()); -} - -QSize PythonQtWrapper_QWidget::minimumSize(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->minimumSize()); -} - -QSize PythonQtWrapper_QWidget::minimumSizeHint(QWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_minimumSizeHint()); -} - -int PythonQtWrapper_QWidget::minimumWidth(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->minimumWidth()); -} - -void PythonQtWrapper_QWidget::mouseDoubleClickEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); -} - -QWidget* PythonQtWrapper_QWidget::static_QWidget_mouseGrabber() -{ - return (QWidget::mouseGrabber()); -} - -void PythonQtWrapper_QWidget::mouseMoveEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QWidget::mousePressEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QWidget::mouseReleaseEvent(QWidget* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QWidget::move(QWidget* theWrappedObject, const QPoint& arg__1) -{ - ( theWrappedObject->move(arg__1)); -} - -void PythonQtWrapper_QWidget::move(QWidget* theWrappedObject, int x, int y) -{ - ( theWrappedObject->move(x, y)); -} - -void PythonQtWrapper_QWidget::moveEvent(QWidget* theWrappedObject, QMoveEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_moveEvent(arg__1)); -} - -QWidget* PythonQtWrapper_QWidget::nativeParentWidget(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->nativeParentWidget()); -} - -QWidget* PythonQtWrapper_QWidget::nextInFocusChain(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->nextInFocusChain()); -} - -QRect PythonQtWrapper_QWidget::normalGeometry(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->normalGeometry()); -} - -void PythonQtWrapper_QWidget::overrideWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type) -{ - ( theWrappedObject->overrideWindowFlags(type)); -} - -void PythonQtWrapper_QWidget::overrideWindowState(QWidget* theWrappedObject, Qt::WindowStates state) -{ - ( theWrappedObject->overrideWindowState(state)); -} - -QPaintEngine* PythonQtWrapper_QWidget::paintEngine(QWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_paintEngine()); -} - -void PythonQtWrapper_QWidget::paintEvent(QWidget* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -const QPalette* PythonQtWrapper_QWidget::palette(QWidget* theWrappedObject) const -{ - return &( theWrappedObject->palette()); -} - -QWidget* PythonQtWrapper_QWidget::parentWidget(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->parentWidget()); -} - -QPoint PythonQtWrapper_QWidget::pos(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -QWidget* PythonQtWrapper_QWidget::previousInFocusChain(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->previousInFocusChain()); -} - -QRect PythonQtWrapper_QWidget::rect(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -void PythonQtWrapper_QWidget::releaseKeyboard(QWidget* theWrappedObject) -{ - ( theWrappedObject->releaseKeyboard()); -} - -void PythonQtWrapper_QWidget::releaseMouse(QWidget* theWrappedObject) -{ - ( theWrappedObject->releaseMouse()); -} - -void PythonQtWrapper_QWidget::releaseShortcut(QWidget* theWrappedObject, int id) -{ - ( theWrappedObject->releaseShortcut(id)); -} - -void PythonQtWrapper_QWidget::removeAction(QWidget* theWrappedObject, QAction* action) -{ - ( theWrappedObject->removeAction(action)); -} - -void PythonQtWrapper_QWidget::render(QWidget* theWrappedObject, QPaintDevice* target, const QPoint& targetOffset, const QRegion& sourceRegion, QWidget::RenderFlags renderFlags) -{ - ( theWrappedObject->render(target, targetOffset, sourceRegion, renderFlags)); -} - -void PythonQtWrapper_QWidget::render(QWidget* theWrappedObject, QPainter* painter, const QPoint& targetOffset, const QRegion& sourceRegion, QWidget::RenderFlags renderFlags) -{ - ( theWrappedObject->render(painter, targetOffset, sourceRegion, renderFlags)); -} - -void PythonQtWrapper_QWidget::repaint(QWidget* theWrappedObject, const QRect& arg__1) -{ - ( theWrappedObject->repaint(arg__1)); -} - -void PythonQtWrapper_QWidget::repaint(QWidget* theWrappedObject, const QRegion& arg__1) -{ - ( theWrappedObject->repaint(arg__1)); -} - -void PythonQtWrapper_QWidget::repaint(QWidget* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->repaint(x, y, w, h)); -} - -void PythonQtWrapper_QWidget::resize(QWidget* theWrappedObject, const QSize& arg__1) -{ - ( theWrappedObject->resize(arg__1)); -} - -void PythonQtWrapper_QWidget::resize(QWidget* theWrappedObject, int w, int h) -{ - ( theWrappedObject->resize(w, h)); -} - -void PythonQtWrapper_QWidget::resizeEvent(QWidget* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -bool PythonQtWrapper_QWidget::restoreGeometry(QWidget* theWrappedObject, const QByteArray& geometry) -{ - return ( theWrappedObject->restoreGeometry(geometry)); -} - -QByteArray PythonQtWrapper_QWidget::saveGeometry(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->saveGeometry()); -} - -void PythonQtWrapper_QWidget::scroll(QWidget* theWrappedObject, int dx, int dy) -{ - ( theWrappedObject->scroll(dx, dy)); -} - -void PythonQtWrapper_QWidget::scroll(QWidget* theWrappedObject, int dx, int dy, const QRect& arg__3) -{ - ( theWrappedObject->scroll(dx, dy, arg__3)); -} - -void PythonQtWrapper_QWidget::setAcceptDrops(QWidget* theWrappedObject, bool on) -{ - ( theWrappedObject->setAcceptDrops(on)); -} - -void PythonQtWrapper_QWidget::setAccessibleDescription(QWidget* theWrappedObject, const QString& description) -{ - ( theWrappedObject->setAccessibleDescription(description)); -} - -void PythonQtWrapper_QWidget::setAccessibleName(QWidget* theWrappedObject, const QString& name) -{ - ( theWrappedObject->setAccessibleName(name)); -} - -void PythonQtWrapper_QWidget::setAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1, bool on) -{ - ( theWrappedObject->setAttribute(arg__1, on)); -} - -void PythonQtWrapper_QWidget::setAutoFillBackground(QWidget* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setAutoFillBackground(enabled)); -} - -void PythonQtWrapper_QWidget::setBackgroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1) -{ - ( theWrappedObject->setBackgroundRole(arg__1)); -} - -void PythonQtWrapper_QWidget::setBaseSize(QWidget* theWrappedObject, const QSize& arg__1) -{ - ( theWrappedObject->setBaseSize(arg__1)); -} - -void PythonQtWrapper_QWidget::setBaseSize(QWidget* theWrappedObject, int basew, int baseh) -{ - ( theWrappedObject->setBaseSize(basew, baseh)); -} - -void PythonQtWrapper_QWidget::setContentsMargins(QWidget* theWrappedObject, const QMargins& margins) -{ - ( theWrappedObject->setContentsMargins(margins)); -} - -void PythonQtWrapper_QWidget::setContentsMargins(QWidget* theWrappedObject, int left, int top, int right, int bottom) -{ - ( theWrappedObject->setContentsMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QWidget::setContextMenuPolicy(QWidget* theWrappedObject, Qt::ContextMenuPolicy policy) -{ - ( theWrappedObject->setContextMenuPolicy(policy)); -} - -void PythonQtWrapper_QWidget::setCursor(QWidget* theWrappedObject, const QCursor& arg__1) -{ - ( theWrappedObject->setCursor(arg__1)); -} - -void PythonQtWrapper_QWidget::setFixedHeight(QWidget* theWrappedObject, int h) -{ - ( theWrappedObject->setFixedHeight(h)); -} - -void PythonQtWrapper_QWidget::setFixedSize(QWidget* theWrappedObject, const QSize& arg__1) -{ - ( theWrappedObject->setFixedSize(arg__1)); -} - -void PythonQtWrapper_QWidget::setFixedSize(QWidget* theWrappedObject, int w, int h) -{ - ( theWrappedObject->setFixedSize(w, h)); -} - -void PythonQtWrapper_QWidget::setFixedWidth(QWidget* theWrappedObject, int w) -{ - ( theWrappedObject->setFixedWidth(w)); -} - -void PythonQtWrapper_QWidget::setFocus(QWidget* theWrappedObject, Qt::FocusReason reason) -{ - ( theWrappedObject->setFocus(reason)); -} - -void PythonQtWrapper_QWidget::setFocusPolicy(QWidget* theWrappedObject, Qt::FocusPolicy policy) -{ - ( theWrappedObject->setFocusPolicy(policy)); -} - -void PythonQtWrapper_QWidget::setFocusProxy(QWidget* theWrappedObject, QWidget* arg__1) -{ - ( theWrappedObject->setFocusProxy(arg__1)); -} - -void PythonQtWrapper_QWidget::setFont(QWidget* theWrappedObject, const QFont& arg__1) -{ - ( theWrappedObject->setFont(arg__1)); -} - -void PythonQtWrapper_QWidget::setForegroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1) -{ - ( theWrappedObject->setForegroundRole(arg__1)); -} - -void PythonQtWrapper_QWidget::setGeometry(QWidget* theWrappedObject, const QRect& arg__1) -{ - ( theWrappedObject->setGeometry(arg__1)); -} - -void PythonQtWrapper_QWidget::setGeometry(QWidget* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->setGeometry(x, y, w, h)); -} - -void PythonQtWrapper_QWidget::setGraphicsEffect(QWidget* theWrappedObject, QGraphicsEffect* effect) -{ - ( theWrappedObject->setGraphicsEffect(effect)); -} - -void PythonQtWrapper_QWidget::setInputContext(QWidget* theWrappedObject, QInputContext* arg__1) -{ - ( theWrappedObject->setInputContext(arg__1)); -} - -void PythonQtWrapper_QWidget::setInputMethodHints(QWidget* theWrappedObject, Qt::InputMethodHints hints) -{ - ( theWrappedObject->setInputMethodHints(hints)); -} - -void PythonQtWrapper_QWidget::setLayout(QWidget* theWrappedObject, QLayout* arg__1) -{ - ( theWrappedObject->setLayout(arg__1)); -} - -void PythonQtWrapper_QWidget::setLayoutDirection(QWidget* theWrappedObject, Qt::LayoutDirection direction) -{ - ( theWrappedObject->setLayoutDirection(direction)); -} - -void PythonQtWrapper_QWidget::setLocale(QWidget* theWrappedObject, const QLocale& locale) -{ - ( theWrappedObject->setLocale(locale)); -} - -void PythonQtWrapper_QWidget::setMask(QWidget* theWrappedObject, const QBitmap& arg__1) -{ - ( theWrappedObject->setMask(arg__1)); -} - -void PythonQtWrapper_QWidget::setMask(QWidget* theWrappedObject, const QRegion& arg__1) -{ - ( theWrappedObject->setMask(arg__1)); -} - -void PythonQtWrapper_QWidget::setMaximumHeight(QWidget* theWrappedObject, int maxh) -{ - ( theWrappedObject->setMaximumHeight(maxh)); -} - -void PythonQtWrapper_QWidget::setMaximumSize(QWidget* theWrappedObject, const QSize& arg__1) -{ - ( theWrappedObject->setMaximumSize(arg__1)); -} - -void PythonQtWrapper_QWidget::setMaximumSize(QWidget* theWrappedObject, int maxw, int maxh) -{ - ( theWrappedObject->setMaximumSize(maxw, maxh)); -} - -void PythonQtWrapper_QWidget::setMaximumWidth(QWidget* theWrappedObject, int maxw) -{ - ( theWrappedObject->setMaximumWidth(maxw)); -} - -void PythonQtWrapper_QWidget::setMinimumHeight(QWidget* theWrappedObject, int minh) -{ - ( theWrappedObject->setMinimumHeight(minh)); -} - -void PythonQtWrapper_QWidget::setMinimumSize(QWidget* theWrappedObject, const QSize& arg__1) -{ - ( theWrappedObject->setMinimumSize(arg__1)); -} - -void PythonQtWrapper_QWidget::setMinimumSize(QWidget* theWrappedObject, int minw, int minh) -{ - ( theWrappedObject->setMinimumSize(minw, minh)); -} - -void PythonQtWrapper_QWidget::setMinimumWidth(QWidget* theWrappedObject, int minw) -{ - ( theWrappedObject->setMinimumWidth(minw)); -} - -void PythonQtWrapper_QWidget::setMouseTracking(QWidget* theWrappedObject, bool enable) -{ - ( theWrappedObject->setMouseTracking(enable)); -} - -void PythonQtWrapper_QWidget::setPalette(QWidget* theWrappedObject, const QPalette& arg__1) -{ - ( theWrappedObject->setPalette(arg__1)); -} - -void PythonQtWrapper_QWidget::setParent(QWidget* theWrappedObject, QWidget* parent) -{ - ( theWrappedObject->setParent(parent)); -} - -void PythonQtWrapper_QWidget::setParent(QWidget* theWrappedObject, QWidget* parent, Qt::WindowFlags f) -{ - ( theWrappedObject->setParent(parent, f)); -} - -void PythonQtWrapper_QWidget::setShortcutAutoRepeat(QWidget* theWrappedObject, int id, bool enable) -{ - ( theWrappedObject->setShortcutAutoRepeat(id, enable)); -} - -void PythonQtWrapper_QWidget::setShortcutEnabled(QWidget* theWrappedObject, int id, bool enable) -{ - ( theWrappedObject->setShortcutEnabled(id, enable)); -} - -void PythonQtWrapper_QWidget::setSizeIncrement(QWidget* theWrappedObject, const QSize& arg__1) -{ - ( theWrappedObject->setSizeIncrement(arg__1)); -} - -void PythonQtWrapper_QWidget::setSizeIncrement(QWidget* theWrappedObject, int w, int h) -{ - ( theWrappedObject->setSizeIncrement(w, h)); -} - -void PythonQtWrapper_QWidget::setSizePolicy(QWidget* theWrappedObject, QSizePolicy arg__1) -{ - ( theWrappedObject->setSizePolicy(arg__1)); -} - -void PythonQtWrapper_QWidget::setSizePolicy(QWidget* theWrappedObject, QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) -{ - ( theWrappedObject->setSizePolicy(horizontal, vertical)); -} - -void PythonQtWrapper_QWidget::setStatusTip(QWidget* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setStatusTip(arg__1)); -} - -void PythonQtWrapper_QWidget::setStyle(QWidget* theWrappedObject, QStyle* arg__1) -{ - ( theWrappedObject->setStyle(arg__1)); -} - -void PythonQtWrapper_QWidget::static_QWidget_setTabOrder(QWidget* arg__1, QWidget* arg__2) -{ - (QWidget::setTabOrder(arg__1, arg__2)); -} - -void PythonQtWrapper_QWidget::setToolTip(QWidget* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setToolTip(arg__1)); -} - -void PythonQtWrapper_QWidget::setUpdatesEnabled(QWidget* theWrappedObject, bool enable) -{ - ( theWrappedObject->setUpdatesEnabled(enable)); -} - -void PythonQtWrapper_QWidget::setWhatsThis(QWidget* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setWhatsThis(arg__1)); -} - -void PythonQtWrapper_QWidget::setWindowFilePath(QWidget* theWrappedObject, const QString& filePath) -{ - ( theWrappedObject->setWindowFilePath(filePath)); -} - -void PythonQtWrapper_QWidget::setWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type) -{ - ( theWrappedObject->setWindowFlags(type)); -} - -void PythonQtWrapper_QWidget::setWindowIcon(QWidget* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setWindowIcon(icon)); -} - -void PythonQtWrapper_QWidget::setWindowIconText(QWidget* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setWindowIconText(arg__1)); -} - -void PythonQtWrapper_QWidget::setWindowModality(QWidget* theWrappedObject, Qt::WindowModality windowModality) -{ - ( theWrappedObject->setWindowModality(windowModality)); -} - -void PythonQtWrapper_QWidget::setWindowOpacity(QWidget* theWrappedObject, qreal level) -{ - ( theWrappedObject->setWindowOpacity(level)); -} - -void PythonQtWrapper_QWidget::setWindowRole(QWidget* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setWindowRole(arg__1)); -} - -void PythonQtWrapper_QWidget::setWindowState(QWidget* theWrappedObject, Qt::WindowStates state) -{ - ( theWrappedObject->setWindowState(state)); -} - -void PythonQtWrapper_QWidget::showEvent(QWidget* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_showEvent(arg__1)); -} - -QSize PythonQtWrapper_QWidget::size(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QSize PythonQtWrapper_QWidget::sizeHint(QWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_sizeHint()); -} - -QSize PythonQtWrapper_QWidget::sizeIncrement(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->sizeIncrement()); -} - -QSizePolicy PythonQtWrapper_QWidget::sizePolicy(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->sizePolicy()); -} - -void PythonQtWrapper_QWidget::stackUnder(QWidget* theWrappedObject, QWidget* arg__1) -{ - ( theWrappedObject->stackUnder(arg__1)); -} - -QString PythonQtWrapper_QWidget::statusTip(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->statusTip()); -} - -QStyle* PythonQtWrapper_QWidget::style(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - -QString PythonQtWrapper_QWidget::styleSheet(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->styleSheet()); -} - -void PythonQtWrapper_QWidget::tabletEvent(QWidget* theWrappedObject, QTabletEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_tabletEvent(arg__1)); -} - -bool PythonQtWrapper_QWidget::testAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1) const -{ - return ( theWrappedObject->testAttribute(arg__1)); -} - -QString PythonQtWrapper_QWidget::toolTip(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - -bool PythonQtWrapper_QWidget::underMouse(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->underMouse()); -} - -void PythonQtWrapper_QWidget::unsetCursor(QWidget* theWrappedObject) -{ - ( theWrappedObject->unsetCursor()); -} - -void PythonQtWrapper_QWidget::unsetLayoutDirection(QWidget* theWrappedObject) -{ - ( theWrappedObject->unsetLayoutDirection()); -} - -void PythonQtWrapper_QWidget::unsetLocale(QWidget* theWrappedObject) -{ - ( theWrappedObject->unsetLocale()); -} - -void PythonQtWrapper_QWidget::update(QWidget* theWrappedObject, const QRect& arg__1) -{ - ( theWrappedObject->update(arg__1)); -} - -void PythonQtWrapper_QWidget::update(QWidget* theWrappedObject, const QRegion& arg__1) -{ - ( theWrappedObject->update(arg__1)); -} - -void PythonQtWrapper_QWidget::update(QWidget* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->update(x, y, w, h)); -} - -void PythonQtWrapper_QWidget::updateGeometry(QWidget* theWrappedObject) -{ - ( theWrappedObject->updateGeometry()); -} - -bool PythonQtWrapper_QWidget::updatesEnabled(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->updatesEnabled()); -} - -QRegion PythonQtWrapper_QWidget::visibleRegion(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->visibleRegion()); -} - -QString PythonQtWrapper_QWidget::whatsThis(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->whatsThis()); -} - -void PythonQtWrapper_QWidget::wheelEvent(QWidget* theWrappedObject, QWheelEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWidget*)theWrappedObject)->promoted_wheelEvent(arg__1)); -} - -int PythonQtWrapper_QWidget::width(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -WId PythonQtWrapper_QWidget::winId(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->winId()); -} - -QWidget* PythonQtWrapper_QWidget::window(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->window()); -} - -QString PythonQtWrapper_QWidget::windowFilePath(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowFilePath()); -} - -Qt::WindowFlags PythonQtWrapper_QWidget::windowFlags(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowFlags()); -} - -QIcon PythonQtWrapper_QWidget::windowIcon(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowIcon()); -} - -QString PythonQtWrapper_QWidget::windowIconText(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowIconText()); -} - -Qt::WindowModality PythonQtWrapper_QWidget::windowModality(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowModality()); -} - -qreal PythonQtWrapper_QWidget::windowOpacity(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowOpacity()); -} - -QString PythonQtWrapper_QWidget::windowRole(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowRole()); -} - -Qt::WindowStates PythonQtWrapper_QWidget::windowState(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowState()); -} - -QString PythonQtWrapper_QWidget::windowTitle(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowTitle()); -} - -Qt::WindowType PythonQtWrapper_QWidget::windowType(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowType()); -} - -int PythonQtWrapper_QWidget::x(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QWidget::y(QWidget* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - - - -void PythonQtShell_QWidgetAction::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidgetAction::childEvent(arg__1); -} -QWidget* PythonQtShell_QWidgetAction::createWidget(QWidget* parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createWidget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QWidget* returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createWidget", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetAction::createWidget(parent); -} -void PythonQtShell_QWidgetAction::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidgetAction::customEvent(arg__1); -} -void PythonQtShell_QWidgetAction::deleteWidget(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "deleteWidget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidgetAction::deleteWidget(widget); -} -bool PythonQtShell_QWidgetAction::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetAction::event(arg__1); -} -bool PythonQtShell_QWidgetAction::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetAction::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QWidgetAction::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidgetAction::timerEvent(arg__1); -} -QWidgetAction* PythonQtWrapper_QWidgetAction::new_QWidgetAction(QObject* parent) -{ -return new PythonQtShell_QWidgetAction(parent); } - -QWidget* PythonQtWrapper_QWidgetAction::createWidget(QWidgetAction* theWrappedObject, QWidget* parent) -{ - return ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_createWidget(parent)); -} - -QWidget* PythonQtWrapper_QWidgetAction::defaultWidget(QWidgetAction* theWrappedObject) const -{ - return ( theWrappedObject->defaultWidget()); -} - -void PythonQtWrapper_QWidgetAction::deleteWidget(QWidgetAction* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_deleteWidget(widget)); -} - -bool PythonQtWrapper_QWidgetAction::event(QWidgetAction* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QWidgetAction::eventFilter(QWidgetAction* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QWidgetAction*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -void PythonQtWrapper_QWidgetAction::releaseWidget(QWidgetAction* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->releaseWidget(widget)); -} - -QWidget* PythonQtWrapper_QWidgetAction::requestWidget(QWidgetAction* theWrappedObject, QWidget* parent) -{ - return ( theWrappedObject->requestWidget(parent)); -} - -void PythonQtWrapper_QWidgetAction::setDefaultWidget(QWidgetAction* theWrappedObject, QWidget* w) -{ - ( theWrappedObject->setDefaultWidget(w)); -} - - - -Qt::Orientations PythonQtShell_QWidgetItem::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::expandingDirections(); -} -QRect PythonQtShell_QWidgetItem::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::geometry(); -} -bool PythonQtShell_QWidgetItem::hasHeightForWidth() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::hasHeightForWidth(); -} -int PythonQtShell_QWidgetItem::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::heightForWidth(arg__1); -} -void PythonQtShell_QWidgetItem::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidgetItem::invalidate(); -} -bool PythonQtShell_QWidgetItem::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::isEmpty(); -} -QLayout* PythonQtShell_QWidgetItem::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::layout(); -} -QSize PythonQtShell_QWidgetItem::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::maximumSize(); -} -int PythonQtShell_QWidgetItem::minimumHeightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::minimumHeightForWidth(arg__1); -} -QSize PythonQtShell_QWidgetItem::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::minimumSize(); -} -void PythonQtShell_QWidgetItem::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWidgetItem::setGeometry(arg__1); -} -QSize PythonQtShell_QWidgetItem::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::sizeHint(); -} -QSpacerItem* PythonQtShell_QWidgetItem::spacerItem() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); - } else { - returnValue = *((QSpacerItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::spacerItem(); -} -QWidget* PythonQtShell_QWidgetItem::widget() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWidgetItem::widget(); -} -QWidgetItem* PythonQtWrapper_QWidgetItem::new_QWidgetItem(QWidget* w) -{ -return new PythonQtShell_QWidgetItem(w); } - -Qt::Orientations PythonQtWrapper_QWidgetItem::expandingDirections(QWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_expandingDirections()); -} - -QRect PythonQtWrapper_QWidgetItem::geometry(QWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_geometry()); -} - -bool PythonQtWrapper_QWidgetItem::hasHeightForWidth(QWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_hasHeightForWidth()); -} - -int PythonQtWrapper_QWidgetItem::heightForWidth(QWidgetItem* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_heightForWidth(arg__1)); -} - -bool PythonQtWrapper_QWidgetItem::isEmpty(QWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_isEmpty()); -} - -QSize PythonQtWrapper_QWidgetItem::maximumSize(QWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_maximumSize()); -} - -QSize PythonQtWrapper_QWidgetItem::minimumSize(QWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_minimumSize()); -} - -void PythonQtWrapper_QWidgetItem::setGeometry(QWidgetItem* theWrappedObject, const QRect& arg__1) -{ - ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_setGeometry(arg__1)); -} - -QSize PythonQtWrapper_QWidgetItem::sizeHint(QWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_sizeHint()); -} - -QWidget* PythonQtWrapper_QWidgetItem::widget(QWidgetItem* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QWidgetItem*)theWrappedObject)->promoted_widget()); -} - - - -QWindowStateChangeEvent* PythonQtWrapper_QWindowStateChangeEvent::new_QWindowStateChangeEvent(Qt::WindowStates aOldState) -{ -return new QWindowStateChangeEvent(aOldState); } - -QWindowStateChangeEvent* PythonQtWrapper_QWindowStateChangeEvent::new_QWindowStateChangeEvent(Qt::WindowStates aOldState, bool isOverride) -{ -return new QWindowStateChangeEvent(aOldState, isOverride); } - -bool PythonQtWrapper_QWindowStateChangeEvent::isOverride(QWindowStateChangeEvent* theWrappedObject) const -{ - return ( theWrappedObject->isOverride()); -} - -Qt::WindowStates PythonQtWrapper_QWindowStateChangeEvent::oldState(QWindowStateChangeEvent* theWrappedObject) const -{ - return ( theWrappedObject->oldState()); -} - - - -void PythonQtShell_QWindowsStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::childEvent(arg__1); -} -void PythonQtShell_QWindowsStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::customEvent(arg__1); -} -void PythonQtShell_QWindowsStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::drawComplexControl(cc, opt, p, w); -} -void PythonQtShell_QWindowsStyle::drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::drawControl(element, opt, p, w); -} -void PythonQtShell_QWindowsStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QWindowsStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QWindowsStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&pe, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::drawPrimitive(pe, opt, p, w); -} -bool PythonQtShell_QWindowsStyle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::event(arg__1); -} -bool PythonQtShell_QWindowsStyle::eventFilter(QObject* o, QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::eventFilter(o, e); -} -QPixmap PythonQtShell_QWindowsStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::generatedIconPixmap(iconMode, pixmap, opt); -} -QStyle::SubControl PythonQtShell_QWindowsStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::hitTestComplexControl(cc, opt, pt, w); -} -QRect PythonQtShell_QWindowsStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::itemPixmapRect(r, flags, pixmap); -} -int PythonQtShell_QWindowsStyle::pixelMetric(QStyle::PixelMetric pm, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&pm, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::pixelMetric(pm, option, widget); -} -void PythonQtShell_QWindowsStyle::polish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::polish(arg__1); -} -void PythonQtShell_QWindowsStyle::polish(QPalette& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::polish(arg__1); -} -void PythonQtShell_QWindowsStyle::polish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::polish(arg__1); -} -QSize PythonQtShell_QWindowsStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&ct, (void*)&opt, (void*)&contentsSize, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::sizeFromContents(ct, opt, contentsSize, widget); -} -QPalette PythonQtShell_QWindowsStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::standardPalette(); -} -QPixmap PythonQtShell_QWindowsStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -int PythonQtShell_QWindowsStyle::styleHint(QStyle::StyleHint hint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::styleHint(hint, opt, widget, returnData); -} -QRect PythonQtShell_QWindowsStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::subControlRect(cc, opt, sc, w); -} -QRect PythonQtShell_QWindowsStyle::subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWindowsStyle::subElementRect(r, opt, widget); -} -void PythonQtShell_QWindowsStyle::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::timerEvent(event); -} -void PythonQtShell_QWindowsStyle::unpolish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::unpolish(arg__1); -} -void PythonQtShell_QWindowsStyle::unpolish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWindowsStyle::unpolish(arg__1); -} -QWindowsStyle* PythonQtWrapper_QWindowsStyle::new_QWindowsStyle() -{ -return new PythonQtShell_QWindowsStyle(); } - -void PythonQtWrapper_QWindowsStyle::drawComplexControl(QWindowsStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_drawComplexControl(cc, opt, p, w)); -} - -void PythonQtWrapper_QWindowsStyle::drawControl(QWindowsStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_drawControl(element, opt, p, w)); -} - -void PythonQtWrapper_QWindowsStyle::drawPrimitive(QWindowsStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_drawPrimitive(pe, opt, p, w)); -} - -bool PythonQtWrapper_QWindowsStyle::eventFilter(QWindowsStyle* theWrappedObject, QObject* o, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_eventFilter(o, e)); -} - -int PythonQtWrapper_QWindowsStyle::pixelMetric(QWindowsStyle* theWrappedObject, QStyle::PixelMetric pm, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_pixelMetric(pm, option, widget)); -} - -void PythonQtWrapper_QWindowsStyle::polish(QWindowsStyle* theWrappedObject, QApplication* arg__1) -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QWindowsStyle::polish(QWindowsStyle* theWrappedObject, QPalette& arg__1) -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QWindowsStyle::polish(QWindowsStyle* theWrappedObject, QWidget* arg__1) -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -QSize PythonQtWrapper_QWindowsStyle::sizeFromContents(QWindowsStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_sizeFromContents(ct, opt, contentsSize, widget)); -} - -int PythonQtWrapper_QWindowsStyle::styleHint(QWindowsStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const -{ - return ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_styleHint(hint, opt, widget, returnData)); -} - -QRect PythonQtWrapper_QWindowsStyle::subElementRect(QWindowsStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_subElementRect(r, opt, widget)); -} - -void PythonQtWrapper_QWindowsStyle::timerEvent(QWindowsStyle* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_timerEvent(event)); -} - -void PythonQtWrapper_QWindowsStyle::unpolish(QWindowsStyle* theWrappedObject, QApplication* arg__1) -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_unpolish(arg__1)); -} - -void PythonQtWrapper_QWindowsStyle::unpolish(QWindowsStyle* theWrappedObject, QWidget* arg__1) -{ - ( ((PythonQtPublicPromoter_QWindowsStyle*)theWrappedObject)->promoted_unpolish(arg__1)); -} - - - -void PythonQtShell_QWizard::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::accept(); -} -void PythonQtShell_QWizard::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::actionEvent(arg__1); -} -void PythonQtShell_QWizard::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::changeEvent(arg__1); -} -void PythonQtShell_QWizard::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::childEvent(arg__1); -} -void PythonQtShell_QWizard::cleanupPage(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cleanupPage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::cleanupPage(id); -} -void PythonQtShell_QWizard::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::closeEvent(arg__1); -} -void PythonQtShell_QWizard::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::contextMenuEvent(arg__1); -} -void PythonQtShell_QWizard::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::customEvent(arg__1); -} -int PythonQtShell_QWizard::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::devType(); -} -void PythonQtShell_QWizard::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::done(result); -} -void PythonQtShell_QWizard::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::dragEnterEvent(arg__1); -} -void PythonQtShell_QWizard::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::dragLeaveEvent(arg__1); -} -void PythonQtShell_QWizard::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::dragMoveEvent(arg__1); -} -void PythonQtShell_QWizard::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::dropEvent(arg__1); -} -void PythonQtShell_QWizard::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::enterEvent(arg__1); -} -bool PythonQtShell_QWizard::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::event(event); -} -bool PythonQtShell_QWizard::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QWizard::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::focusInEvent(arg__1); -} -bool PythonQtShell_QWizard::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::focusNextPrevChild(next); -} -void PythonQtShell_QWizard::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::focusOutEvent(arg__1); -} -int PythonQtShell_QWizard::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::heightForWidth(arg__1); -} -void PythonQtShell_QWizard::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::hideEvent(arg__1); -} -void PythonQtShell_QWizard::initializePage(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initializePage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::initializePage(id); -} -void PythonQtShell_QWizard::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QWizard::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::inputMethodQuery(arg__1); -} -void PythonQtShell_QWizard::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::keyPressEvent(arg__1); -} -void PythonQtShell_QWizard::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::keyReleaseEvent(arg__1); -} -void PythonQtShell_QWizard::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::languageChange(); -} -void PythonQtShell_QWizard::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::leaveEvent(arg__1); -} -int PythonQtShell_QWizard::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::metric(arg__1); -} -void PythonQtShell_QWizard::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QWizard::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::mouseMoveEvent(arg__1); -} -void PythonQtShell_QWizard::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::mousePressEvent(arg__1); -} -void PythonQtShell_QWizard::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QWizard::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::moveEvent(arg__1); -} -int PythonQtShell_QWizard::nextId() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextId"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("nextId", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::nextId(); -} -QPaintEngine* PythonQtShell_QWizard::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::paintEngine(); -} -void PythonQtShell_QWizard::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QWizard::paintEvent(event); -} -void PythonQtShell_QWizard::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::reject(); -} -void PythonQtShell_QWizard::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QWizard::resizeEvent(event); -} -void PythonQtShell_QWizard::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::showEvent(arg__1); -} -void PythonQtShell_QWizard::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::tabletEvent(arg__1); -} -void PythonQtShell_QWizard::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::timerEvent(arg__1); -} -bool PythonQtShell_QWizard::validateCurrentPage() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validateCurrentPage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validateCurrentPage", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizard::validateCurrentPage(); -} -void PythonQtShell_QWizard::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizard::wheelEvent(arg__1); -} -QWizard* PythonQtWrapper_QWizard::new_QWizard(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QWizard(parent, flags); } - -int PythonQtWrapper_QWizard::addPage(QWizard* theWrappedObject, QWizardPage* page) -{ - return ( theWrappedObject->addPage(page)); -} - -QAbstractButton* PythonQtWrapper_QWizard::button(QWizard* theWrappedObject, QWizard::WizardButton which) const -{ - return ( theWrappedObject->button(which)); -} - -QString PythonQtWrapper_QWizard::buttonText(QWizard* theWrappedObject, QWizard::WizardButton which) const -{ - return ( theWrappedObject->buttonText(which)); -} - -void PythonQtWrapper_QWizard::cleanupPage(QWizard* theWrappedObject, int id) -{ - ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_cleanupPage(id)); -} - -int PythonQtWrapper_QWizard::currentId(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->currentId()); -} - -QWizardPage* PythonQtWrapper_QWizard::currentPage(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->currentPage()); -} - -void PythonQtWrapper_QWizard::done(QWizard* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_done(result)); -} - -bool PythonQtWrapper_QWizard::event(QWizard* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_event(event)); -} - -QVariant PythonQtWrapper_QWizard::field(QWizard* theWrappedObject, const QString& name) const -{ - return ( theWrappedObject->field(name)); -} - -bool PythonQtWrapper_QWizard::hasVisitedPage(QWizard* theWrappedObject, int id) const -{ - return ( theWrappedObject->hasVisitedPage(id)); -} - -void PythonQtWrapper_QWizard::initializePage(QWizard* theWrappedObject, int id) -{ - ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_initializePage(id)); -} - -int PythonQtWrapper_QWizard::nextId(QWizard* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_nextId()); -} - -QWizard::WizardOptions PythonQtWrapper_QWizard::options(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->options()); -} - -QWizardPage* PythonQtWrapper_QWizard::page(QWizard* theWrappedObject, int id) const -{ - return ( theWrappedObject->page(id)); -} - -QList PythonQtWrapper_QWizard::pageIds(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->pageIds()); -} - -void PythonQtWrapper_QWizard::paintEvent(QWizard* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_paintEvent(event)); -} - -QPixmap PythonQtWrapper_QWizard::pixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which) const -{ - return ( theWrappedObject->pixmap(which)); -} - -void PythonQtWrapper_QWizard::removePage(QWizard* theWrappedObject, int id) -{ - ( theWrappedObject->removePage(id)); -} - -void PythonQtWrapper_QWizard::resizeEvent(QWizard* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QWizard::setButton(QWizard* theWrappedObject, QWizard::WizardButton which, QAbstractButton* button) -{ - ( theWrappedObject->setButton(which, button)); -} - -void PythonQtWrapper_QWizard::setButtonLayout(QWizard* theWrappedObject, const QList& layout) -{ - ( theWrappedObject->setButtonLayout(layout)); -} - -void PythonQtWrapper_QWizard::setButtonText(QWizard* theWrappedObject, QWizard::WizardButton which, const QString& text) -{ - ( theWrappedObject->setButtonText(which, text)); -} - -void PythonQtWrapper_QWizard::setField(QWizard* theWrappedObject, const QString& name, const QVariant& value) -{ - ( theWrappedObject->setField(name, value)); -} - -void PythonQtWrapper_QWizard::setOption(QWizard* theWrappedObject, QWizard::WizardOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QWizard::setOptions(QWizard* theWrappedObject, QWizard::WizardOptions options) -{ - ( theWrappedObject->setOptions(options)); -} - -void PythonQtWrapper_QWizard::setPage(QWizard* theWrappedObject, int id, QWizardPage* page) -{ - ( theWrappedObject->setPage(id, page)); -} - -void PythonQtWrapper_QWizard::setPixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap) -{ - ( theWrappedObject->setPixmap(which, pixmap)); -} - -void PythonQtWrapper_QWizard::setStartId(QWizard* theWrappedObject, int id) -{ - ( theWrappedObject->setStartId(id)); -} - -void PythonQtWrapper_QWizard::setSubTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format) -{ - ( theWrappedObject->setSubTitleFormat(format)); -} - -void PythonQtWrapper_QWizard::setTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format) -{ - ( theWrappedObject->setTitleFormat(format)); -} - -void PythonQtWrapper_QWizard::setVisible(QWizard* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -void PythonQtWrapper_QWizard::setWizardStyle(QWizard* theWrappedObject, QWizard::WizardStyle style) -{ - ( theWrappedObject->setWizardStyle(style)); -} - -QSize PythonQtWrapper_QWizard::sizeHint(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QWizard::startId(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->startId()); -} - -Qt::TextFormat PythonQtWrapper_QWizard::subTitleFormat(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->subTitleFormat()); -} - -bool PythonQtWrapper_QWizard::testOption(QWizard* theWrappedObject, QWizard::WizardOption option) const -{ - return ( theWrappedObject->testOption(option)); -} - -Qt::TextFormat PythonQtWrapper_QWizard::titleFormat(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->titleFormat()); -} - -bool PythonQtWrapper_QWizard::validateCurrentPage(QWizard* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QWizard*)theWrappedObject)->promoted_validateCurrentPage()); -} - -QList PythonQtWrapper_QWizard::visitedPages(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->visitedPages()); -} - -QWizard::WizardStyle PythonQtWrapper_QWizard::wizardStyle(QWizard* theWrappedObject) const -{ - return ( theWrappedObject->wizardStyle()); -} - - - -void PythonQtShell_QWizardPage::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::actionEvent(arg__1); -} -void PythonQtShell_QWizardPage::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::changeEvent(arg__1); -} -void PythonQtShell_QWizardPage::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::childEvent(arg__1); -} -void PythonQtShell_QWizardPage::cleanupPage() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cleanupPage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::cleanupPage(); -} -void PythonQtShell_QWizardPage::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::closeEvent(arg__1); -} -void PythonQtShell_QWizardPage::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::contextMenuEvent(arg__1); -} -void PythonQtShell_QWizardPage::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::customEvent(arg__1); -} -int PythonQtShell_QWizardPage::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::devType(); -} -void PythonQtShell_QWizardPage::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::dragEnterEvent(arg__1); -} -void PythonQtShell_QWizardPage::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::dragLeaveEvent(arg__1); -} -void PythonQtShell_QWizardPage::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::dragMoveEvent(arg__1); -} -void PythonQtShell_QWizardPage::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::dropEvent(arg__1); -} -void PythonQtShell_QWizardPage::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::enterEvent(arg__1); -} -bool PythonQtShell_QWizardPage::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::event(arg__1); -} -bool PythonQtShell_QWizardPage::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QWizardPage::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::focusInEvent(arg__1); -} -bool PythonQtShell_QWizardPage::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::focusNextPrevChild(next); -} -void PythonQtShell_QWizardPage::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::focusOutEvent(arg__1); -} -int PythonQtShell_QWizardPage::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::heightForWidth(arg__1); -} -void PythonQtShell_QWizardPage::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::hideEvent(arg__1); -} -void PythonQtShell_QWizardPage::initializePage() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initializePage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::initializePage(); -} -void PythonQtShell_QWizardPage::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QWizardPage::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::inputMethodQuery(arg__1); -} -bool PythonQtShell_QWizardPage::isComplete() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isComplete"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isComplete", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::isComplete(); -} -void PythonQtShell_QWizardPage::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::keyPressEvent(arg__1); -} -void PythonQtShell_QWizardPage::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::keyReleaseEvent(arg__1); -} -void PythonQtShell_QWizardPage::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::languageChange(); -} -void PythonQtShell_QWizardPage::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::leaveEvent(arg__1); -} -int PythonQtShell_QWizardPage::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::metric(arg__1); -} -QSize PythonQtShell_QWizardPage::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::minimumSizeHint(); -} -void PythonQtShell_QWizardPage::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QWizardPage::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::mouseMoveEvent(arg__1); -} -void PythonQtShell_QWizardPage::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::mousePressEvent(arg__1); -} -void PythonQtShell_QWizardPage::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QWizardPage::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::moveEvent(arg__1); -} -int PythonQtShell_QWizardPage::nextId() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextId"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("nextId", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::nextId(); -} -QPaintEngine* PythonQtShell_QWizardPage::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::paintEngine(); -} -void PythonQtShell_QWizardPage::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::paintEvent(arg__1); -} -void PythonQtShell_QWizardPage::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::resizeEvent(arg__1); -} -void PythonQtShell_QWizardPage::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::showEvent(arg__1); -} -QSize PythonQtShell_QWizardPage::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::sizeHint(); -} -void PythonQtShell_QWizardPage::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::tabletEvent(arg__1); -} -void PythonQtShell_QWizardPage::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::timerEvent(arg__1); -} -bool PythonQtShell_QWizardPage::validatePage() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validatePage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validatePage", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWizardPage::validatePage(); -} -void PythonQtShell_QWizardPage::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWizardPage::wheelEvent(arg__1); -} -QWizardPage* PythonQtWrapper_QWizardPage::new_QWizardPage(QWidget* parent) -{ -return new PythonQtShell_QWizardPage(parent); } - -QString PythonQtWrapper_QWizardPage::buttonText(QWizardPage* theWrappedObject, QWizard::WizardButton which) const -{ - return ( theWrappedObject->buttonText(which)); -} - -void PythonQtWrapper_QWizardPage::cleanupPage(QWizardPage* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_cleanupPage()); -} - -void PythonQtWrapper_QWizardPage::initializePage(QWizardPage* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_initializePage()); -} - -bool PythonQtWrapper_QWizardPage::isCommitPage(QWizardPage* theWrappedObject) const -{ - return ( theWrappedObject->isCommitPage()); -} - -bool PythonQtWrapper_QWizardPage::isComplete(QWizardPage* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_isComplete()); -} - -bool PythonQtWrapper_QWizardPage::isFinalPage(QWizardPage* theWrappedObject) const -{ - return ( theWrappedObject->isFinalPage()); -} - -int PythonQtWrapper_QWizardPage::nextId(QWizardPage* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_nextId()); -} - -QPixmap PythonQtWrapper_QWizardPage::pixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which) const -{ - return ( theWrappedObject->pixmap(which)); -} - -void PythonQtWrapper_QWizardPage::setButtonText(QWizardPage* theWrappedObject, QWizard::WizardButton which, const QString& text) -{ - ( theWrappedObject->setButtonText(which, text)); -} - -void PythonQtWrapper_QWizardPage::setCommitPage(QWizardPage* theWrappedObject, bool commitPage) -{ - ( theWrappedObject->setCommitPage(commitPage)); -} - -void PythonQtWrapper_QWizardPage::setFinalPage(QWizardPage* theWrappedObject, bool finalPage) -{ - ( theWrappedObject->setFinalPage(finalPage)); -} - -void PythonQtWrapper_QWizardPage::setPixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap) -{ - ( theWrappedObject->setPixmap(which, pixmap)); -} - -void PythonQtWrapper_QWizardPage::setSubTitle(QWizardPage* theWrappedObject, const QString& subTitle) -{ - ( theWrappedObject->setSubTitle(subTitle)); -} - -void PythonQtWrapper_QWizardPage::setTitle(QWizardPage* theWrappedObject, const QString& title) -{ - ( theWrappedObject->setTitle(title)); -} - -QString PythonQtWrapper_QWizardPage::subTitle(QWizardPage* theWrappedObject) const -{ - return ( theWrappedObject->subTitle()); -} - -QString PythonQtWrapper_QWizardPage::title(QWizardPage* theWrappedObject) const -{ - return ( theWrappedObject->title()); -} - -bool PythonQtWrapper_QWizardPage::validatePage(QWizardPage* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QWizardPage*)theWrappedObject)->promoted_validatePage()); -} - - - -void PythonQtShell_QWorkspace::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::actionEvent(arg__1); -} -void PythonQtShell_QWorkspace::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::changeEvent(arg__1); -} -void PythonQtShell_QWorkspace::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::childEvent(arg__1); -} -void PythonQtShell_QWorkspace::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::closeEvent(arg__1); -} -void PythonQtShell_QWorkspace::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::contextMenuEvent(arg__1); -} -void PythonQtShell_QWorkspace::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::customEvent(arg__1); -} -int PythonQtShell_QWorkspace::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::devType(); -} -void PythonQtShell_QWorkspace::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::dragEnterEvent(arg__1); -} -void PythonQtShell_QWorkspace::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::dragLeaveEvent(arg__1); -} -void PythonQtShell_QWorkspace::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::dragMoveEvent(arg__1); -} -void PythonQtShell_QWorkspace::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::dropEvent(arg__1); -} -void PythonQtShell_QWorkspace::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::enterEvent(arg__1); -} -bool PythonQtShell_QWorkspace::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::event(e); -} -bool PythonQtShell_QWorkspace::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QWorkspace::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::focusInEvent(arg__1); -} -bool PythonQtShell_QWorkspace::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::focusNextPrevChild(next); -} -void PythonQtShell_QWorkspace::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::focusOutEvent(arg__1); -} -int PythonQtShell_QWorkspace::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::heightForWidth(arg__1); -} -void PythonQtShell_QWorkspace::hideEvent(QHideEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::hideEvent(e); -} -void PythonQtShell_QWorkspace::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QWorkspace::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::inputMethodQuery(arg__1); -} -void PythonQtShell_QWorkspace::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::keyPressEvent(arg__1); -} -void PythonQtShell_QWorkspace::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::keyReleaseEvent(arg__1); -} -void PythonQtShell_QWorkspace::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::languageChange(); -} -void PythonQtShell_QWorkspace::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::leaveEvent(arg__1); -} -int PythonQtShell_QWorkspace::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::metric(arg__1); -} -QSize PythonQtShell_QWorkspace::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::minimumSizeHint(); -} -void PythonQtShell_QWorkspace::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QWorkspace::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::mouseMoveEvent(arg__1); -} -void PythonQtShell_QWorkspace::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::mousePressEvent(arg__1); -} -void PythonQtShell_QWorkspace::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QWorkspace::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QWorkspace::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QWorkspace::paintEngine(); -} -void PythonQtShell_QWorkspace::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::paintEvent(e); -} -void PythonQtShell_QWorkspace::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::resizeEvent(arg__1); -} -void PythonQtShell_QWorkspace::showEvent(QShowEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::showEvent(e); -} -void PythonQtShell_QWorkspace::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::tabletEvent(arg__1); -} -void PythonQtShell_QWorkspace::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::timerEvent(arg__1); -} -void PythonQtShell_QWorkspace::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QWorkspace::wheelEvent(e); -} -QWorkspace* PythonQtWrapper_QWorkspace::new_QWorkspace(QWidget* parent) -{ -return new PythonQtShell_QWorkspace(parent); } - -QWidget* PythonQtWrapper_QWorkspace::activeWindow(QWorkspace* theWrappedObject) const -{ - return ( theWrappedObject->activeWindow()); -} - -QWidget* PythonQtWrapper_QWorkspace::addWindow(QWorkspace* theWrappedObject, QWidget* w, Qt::WindowFlags flags) -{ - return ( theWrappedObject->addWindow(w, flags)); -} - -QBrush PythonQtWrapper_QWorkspace::background(QWorkspace* theWrappedObject) const -{ - return ( theWrappedObject->background()); -} - -void PythonQtWrapper_QWorkspace::changeEvent(QWorkspace* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -void PythonQtWrapper_QWorkspace::childEvent(QWorkspace* theWrappedObject, QChildEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_childEvent(arg__1)); -} - -bool PythonQtWrapper_QWorkspace::event(QWorkspace* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QWorkspace::eventFilter(QWorkspace* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -void PythonQtWrapper_QWorkspace::hideEvent(QWorkspace* theWrappedObject, QHideEvent* e) -{ - ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_hideEvent(e)); -} - -void PythonQtWrapper_QWorkspace::paintEvent(QWorkspace* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_paintEvent(e)); -} - -void PythonQtWrapper_QWorkspace::resizeEvent(QWorkspace* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -bool PythonQtWrapper_QWorkspace::scrollBarsEnabled(QWorkspace* theWrappedObject) const -{ - return ( theWrappedObject->scrollBarsEnabled()); -} - -void PythonQtWrapper_QWorkspace::setBackground(QWorkspace* theWrappedObject, const QBrush& background) -{ - ( theWrappedObject->setBackground(background)); -} - -void PythonQtWrapper_QWorkspace::setScrollBarsEnabled(QWorkspace* theWrappedObject, bool enable) -{ - ( theWrappedObject->setScrollBarsEnabled(enable)); -} - -void PythonQtWrapper_QWorkspace::showEvent(QWorkspace* theWrappedObject, QShowEvent* e) -{ - ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_showEvent(e)); -} - -QSize PythonQtWrapper_QWorkspace::sizeHint(QWorkspace* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -void PythonQtWrapper_QWorkspace::wheelEvent(QWorkspace* theWrappedObject, QWheelEvent* e) -{ - ( ((PythonQtPublicPromoter_QWorkspace*)theWrappedObject)->promoted_wheelEvent(e)); -} - -QList PythonQtWrapper_QWorkspace::windowList(QWorkspace* theWrappedObject, QWorkspace::WindowOrder order) const -{ - return ( theWrappedObject->windowList(order)); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.h deleted file mode 100644 index aa8d1ab2a..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.h +++ /dev/null @@ -1,2140 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtWrapper_QToolTip : public QObject -{ Q_OBJECT -public: -public slots: -void delete_QToolTip(QToolTip* obj) { delete obj; } - QFont static_QToolTip_font(); - void static_QToolTip_hideText(); - bool static_QToolTip_isVisible(); - QPalette static_QToolTip_palette(); - void static_QToolTip_setFont(const QFont& arg__1); - void static_QToolTip_setPalette(const QPalette& arg__1); - void static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w = 0); - void static_QToolTip_showText(const QPoint& pos, const QString& text, QWidget* w, const QRect& rect); - QString static_QToolTip_text(); -}; - - - - - -class PythonQtShell_QTouchEvent : public QTouchEvent -{ -public: - PythonQtShell_QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType = QTouchEvent::TouchScreen, Qt::KeyboardModifiers modifiers = Qt::NoModifier, Qt::TouchPointStates touchPointStates = 0, const QList& touchPoints = QList()):QTouchEvent(eventType, deviceType, modifiers, touchPointStates, touchPoints),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTouchEvent : public QObject -{ Q_OBJECT -public: -Q_ENUMS(DeviceType ) -enum DeviceType{ - TouchScreen = QTouchEvent::TouchScreen, TouchPad = QTouchEvent::TouchPad}; -public slots: -QTouchEvent* new_QTouchEvent(QEvent::Type eventType, QTouchEvent::DeviceType deviceType = QTouchEvent::TouchScreen, Qt::KeyboardModifiers modifiers = Qt::NoModifier, Qt::TouchPointStates touchPointStates = 0, const QList& touchPoints = QList()); -void delete_QTouchEvent(QTouchEvent* obj) { delete obj; } - QTouchEvent::DeviceType deviceType(QTouchEvent* theWrappedObject) const; - void setDeviceType(QTouchEvent* theWrappedObject, QTouchEvent::DeviceType adeviceType); - void setTouchPointStates(QTouchEvent* theWrappedObject, Qt::TouchPointStates aTouchPointStates); - void setTouchPoints(QTouchEvent* theWrappedObject, const QList& atouchPoints); - void setWidget(QTouchEvent* theWrappedObject, QWidget* awidget); - Qt::TouchPointStates touchPointStates(QTouchEvent* theWrappedObject) const; - const QList* touchPoints(QTouchEvent* theWrappedObject) const; - QWidget* widget(QTouchEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTouchEvent_TouchPoint : public QObject -{ Q_OBJECT -public: -public slots: -QTouchEvent::TouchPoint* new_QTouchEvent_TouchPoint(const QTouchEvent::TouchPoint& other); -QTouchEvent::TouchPoint* new_QTouchEvent_TouchPoint(int id = -1); -void delete_QTouchEvent_TouchPoint(QTouchEvent::TouchPoint* obj) { delete obj; } - int id(QTouchEvent::TouchPoint* theWrappedObject) const; - bool isPrimary(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF lastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF lastPos(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF lastScenePos(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF lastScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF normalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const; - QTouchEvent::TouchPoint* operator_assign(QTouchEvent::TouchPoint* theWrappedObject, const QTouchEvent::TouchPoint& other); - QPointF pos(QTouchEvent::TouchPoint* theWrappedObject) const; - qreal pressure(QTouchEvent::TouchPoint* theWrappedObject) const; - QRectF rect(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF scenePos(QTouchEvent::TouchPoint* theWrappedObject) const; - QRectF sceneRect(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF screenPos(QTouchEvent::TouchPoint* theWrappedObject) const; - QRectF screenRect(QTouchEvent::TouchPoint* theWrappedObject) const; - void setId(QTouchEvent::TouchPoint* theWrappedObject, int id); - void setLastNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastNormalizedPos); - void setLastPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastPos); - void setLastScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScenePos); - void setLastScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& lastScreenPos); - void setNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& normalizedPos); - void setPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& pos); - void setPressure(QTouchEvent::TouchPoint* theWrappedObject, qreal pressure); - void setRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& rect); - void setScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& scenePos); - void setSceneRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& sceneRect); - void setScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& screenPos); - void setScreenRect(QTouchEvent::TouchPoint* theWrappedObject, const QRectF& screenRect); - void setStartNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startNormalizedPos); - void setStartPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startPos); - void setStartScenePos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScenePos); - void setStartScreenPos(QTouchEvent::TouchPoint* theWrappedObject, const QPointF& startScreenPos); - void setState(QTouchEvent::TouchPoint* theWrappedObject, Qt::TouchPointStates state); - QPointF startNormalizedPos(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF startPos(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF startScenePos(QTouchEvent::TouchPoint* theWrappedObject) const; - QPointF startScreenPos(QTouchEvent::TouchPoint* theWrappedObject) const; - Qt::TouchPointState state(QTouchEvent::TouchPoint* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTransform : public QObject -{ Q_OBJECT -public: -Q_ENUMS(TransformationType ) -enum TransformationType{ - TxNone = QTransform::TxNone, TxTranslate = QTransform::TxTranslate, TxScale = QTransform::TxScale, TxRotate = QTransform::TxRotate, TxShear = QTransform::TxShear, TxProject = QTransform::TxProject}; -public slots: -QTransform* new_QTransform(); -QTransform* new_QTransform(const QMatrix& mtx); -QTransform* new_QTransform(qreal h11, qreal h12, qreal h13, qreal h21, qreal h22, qreal h23, qreal h31, qreal h32, qreal h33 = 1.0); -QTransform* new_QTransform(qreal h11, qreal h12, qreal h21, qreal h22, qreal dx, qreal dy); -QTransform* new_QTransform(const QTransform& other) { -QTransform* a = new QTransform(); -*((QTransform*)a) = other; -return a; } -void delete_QTransform(QTransform* obj) { delete obj; } - QTransform adjoint(QTransform* theWrappedObject) const; - qreal det(QTransform* theWrappedObject) const; - qreal determinant(QTransform* theWrappedObject) const; - qreal dx(QTransform* theWrappedObject) const; - qreal dy(QTransform* theWrappedObject) const; - QTransform static_QTransform_fromScale(qreal dx, qreal dy); - QTransform static_QTransform_fromTranslate(qreal dx, qreal dy); - QTransform inverted(QTransform* theWrappedObject, bool* invertible = 0) const; - bool isAffine(QTransform* theWrappedObject) const; - bool isIdentity(QTransform* theWrappedObject) const; - bool isInvertible(QTransform* theWrappedObject) const; - bool isRotating(QTransform* theWrappedObject) const; - bool isScaling(QTransform* theWrappedObject) const; - bool isTranslating(QTransform* theWrappedObject) const; - qreal m11(QTransform* theWrappedObject) const; - qreal m12(QTransform* theWrappedObject) const; - qreal m13(QTransform* theWrappedObject) const; - qreal m21(QTransform* theWrappedObject) const; - qreal m22(QTransform* theWrappedObject) const; - qreal m23(QTransform* theWrappedObject) const; - qreal m31(QTransform* theWrappedObject) const; - qreal m32(QTransform* theWrappedObject) const; - qreal m33(QTransform* theWrappedObject) const; - QLine map(QTransform* theWrappedObject, const QLine& l) const; - QLineF map(QTransform* theWrappedObject, const QLineF& l) const; - QPainterPath map(QTransform* theWrappedObject, const QPainterPath& p) const; - QPoint map(QTransform* theWrappedObject, const QPoint& p) const; - QPointF map(QTransform* theWrappedObject, const QPointF& p) const; - QPolygon map(QTransform* theWrappedObject, const QPolygon& a) const; - QPolygonF map(QTransform* theWrappedObject, const QPolygonF& a) const; - QRegion map(QTransform* theWrappedObject, const QRegion& r) const; - void map(QTransform* theWrappedObject, qreal x, qreal y, qreal* tx, qreal* ty) const; - QRect mapRect(QTransform* theWrappedObject, const QRect& arg__1) const; - QRectF mapRect(QTransform* theWrappedObject, const QRectF& arg__1) const; - QPolygon mapToPolygon(QTransform* theWrappedObject, const QRect& r) const; - bool __ne__(QTransform* theWrappedObject, const QTransform& arg__1) const; - QTransform multiplied(QTransform* theWrappedObject, const QTransform& o) const; - QTransform __mul__(QTransform* theWrappedObject, qreal n); - QTransform* __imul__(QTransform* theWrappedObject, const QTransform& arg__1); - QTransform* __imul__(QTransform* theWrappedObject, qreal div); - QTransform __add__(QTransform* theWrappedObject, qreal n); - QTransform* __iadd__(QTransform* theWrappedObject, qreal div); - QTransform __sub__(QTransform* theWrappedObject, qreal n); - QTransform* __isub__(QTransform* theWrappedObject, qreal div); - QTransform __div__(QTransform* theWrappedObject, qreal n); - QTransform* __idiv__(QTransform* theWrappedObject, qreal div); - void writeTo(QTransform* theWrappedObject, QDataStream& arg__1); - bool __eq__(QTransform* theWrappedObject, const QTransform& arg__1) const; - void readFrom(QTransform* theWrappedObject, QDataStream& arg__1); - bool static_QTransform_quadToQuad(const QPolygonF& one, const QPolygonF& two, QTransform& result); - bool static_QTransform_quadToSquare(const QPolygonF& quad, QTransform& result); - void reset(QTransform* theWrappedObject); - QTransform* rotate(QTransform* theWrappedObject, qreal a, Qt::Axis axis = Qt::ZAxis); - QTransform* rotateRadians(QTransform* theWrappedObject, qreal a, Qt::Axis axis = Qt::ZAxis); - QTransform* scale(QTransform* theWrappedObject, qreal sx, qreal sy); - void setMatrix(QTransform* theWrappedObject, qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33); - QTransform* shear(QTransform* theWrappedObject, qreal sh, qreal sv); - bool static_QTransform_squareToQuad(const QPolygonF& square, QTransform& result); - const QMatrix* toAffine(QTransform* theWrappedObject) const; - QTransform* translate(QTransform* theWrappedObject, qreal dx, qreal dy); - QTransform transposed(QTransform* theWrappedObject) const; - QTransform::TransformationType type(QTransform* theWrappedObject) const; - QString py_toString(QTransform*); -}; - - - - - -class PythonQtShell_QTreeView : public QTreeView -{ -public: - PythonQtShell_QTreeView(QWidget* parent = 0):QTreeView(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const; -virtual void drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; -virtual void dropEvent(QDropEvent* event); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* event); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setModel(QAbstractItemModel* model); -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTreeView : public QTreeView -{ public: -inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QTreeView::currentChanged(current, previous); } -inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QTreeView::dataChanged(topLeft, bottomRight); } -inline void promoted_doItemsLayout() { QTreeView::doItemsLayout(); } -inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QTreeView::dragMoveEvent(event); } -inline void promoted_drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const { QTreeView::drawBranches(painter, rect, index); } -inline void promoted_drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const { QTreeView::drawRow(painter, options, index); } -inline int promoted_horizontalOffset() const { return QTreeView::horizontalOffset(); } -inline void promoted_horizontalScrollbarAction(int action) { QTreeView::horizontalScrollbarAction(action); } -inline QModelIndex promoted_indexAt(const QPoint& p) const { return QTreeView::indexAt(p); } -inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QTreeView::isIndexHidden(index); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QTreeView::keyPressEvent(event); } -inline void promoted_keyboardSearch(const QString& search) { QTreeView::keyboardSearch(search); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QTreeView::mouseDoubleClickEvent(event); } -inline void promoted_mouseMoveEvent(QMouseEvent* event) { QTreeView::mouseMoveEvent(event); } -inline void promoted_mousePressEvent(QMouseEvent* event) { QTreeView::mousePressEvent(event); } -inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QTreeView::mouseReleaseEvent(event); } -inline void promoted_paintEvent(QPaintEvent* event) { QTreeView::paintEvent(event); } -inline void promoted_reset() { QTreeView::reset(); } -inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QTreeView::rowsAboutToBeRemoved(parent, start, end); } -inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QTreeView::rowsInserted(parent, start, end); } -inline void promoted_scrollContentsBy(int dx, int dy) { QTreeView::scrollContentsBy(dx, dy); } -inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QTreeView::scrollTo(index, hint); } -inline void promoted_selectAll() { QTreeView::selectAll(); } -inline QList promoted_selectedIndexes() const { return QTreeView::selectedIndexes(); } -inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QTreeView::selectionChanged(selected, deselected); } -inline void promoted_setModel(QAbstractItemModel* model) { QTreeView::setModel(model); } -inline void promoted_setRootIndex(const QModelIndex& index) { QTreeView::setRootIndex(index); } -inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QTreeView::setSelection(rect, command); } -inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QTreeView::setSelectionModel(selectionModel); } -inline int promoted_sizeHintForColumn(int column) const { return QTreeView::sizeHintForColumn(column); } -inline void promoted_timerEvent(QTimerEvent* event) { QTreeView::timerEvent(event); } -inline void promoted_updateGeometries() { QTreeView::updateGeometries(); } -inline int promoted_verticalOffset() const { return QTreeView::verticalOffset(); } -inline bool promoted_viewportEvent(QEvent* event) { return QTreeView::viewportEvent(event); } -inline QRect promoted_visualRect(const QModelIndex& index) const { return QTreeView::visualRect(index); } -inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QTreeView::visualRegionForSelection(selection); } -}; - -class PythonQtWrapper_QTreeView : public QObject -{ Q_OBJECT -public: -public slots: -QTreeView* new_QTreeView(QWidget* parent = 0); -void delete_QTreeView(QTreeView* obj) { delete obj; } - bool allColumnsShowFocus(QTreeView* theWrappedObject) const; - int autoExpandDelay(QTreeView* theWrappedObject) const; - int columnAt(QTreeView* theWrappedObject, int x) const; - int columnViewportPosition(QTreeView* theWrappedObject, int column) const; - int columnWidth(QTreeView* theWrappedObject, int column) const; - void currentChanged(QTreeView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); - void dataChanged(QTreeView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight); - void doItemsLayout(QTreeView* theWrappedObject); - void dragMoveEvent(QTreeView* theWrappedObject, QDragMoveEvent* event); - void drawBranches(QTreeView* theWrappedObject, QPainter* painter, const QRect& rect, const QModelIndex& index) const; - void drawRow(QTreeView* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; - bool expandsOnDoubleClick(QTreeView* theWrappedObject) const; - QHeaderView* header(QTreeView* theWrappedObject) const; - int horizontalOffset(QTreeView* theWrappedObject) const; - void horizontalScrollbarAction(QTreeView* theWrappedObject, int action); - int indentation(QTreeView* theWrappedObject) const; - QModelIndex indexAbove(QTreeView* theWrappedObject, const QModelIndex& index) const; - QModelIndex indexAt(QTreeView* theWrappedObject, const QPoint& p) const; - QModelIndex indexBelow(QTreeView* theWrappedObject, const QModelIndex& index) const; - bool isAnimated(QTreeView* theWrappedObject) const; - bool isColumnHidden(QTreeView* theWrappedObject, int column) const; - bool isExpanded(QTreeView* theWrappedObject, const QModelIndex& index) const; - bool isFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const; - bool isHeaderHidden(QTreeView* theWrappedObject) const; - bool isIndexHidden(QTreeView* theWrappedObject, const QModelIndex& index) const; - bool isRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent) const; - bool isSortingEnabled(QTreeView* theWrappedObject) const; - bool itemsExpandable(QTreeView* theWrappedObject) const; - void keyPressEvent(QTreeView* theWrappedObject, QKeyEvent* event); - void keyboardSearch(QTreeView* theWrappedObject, const QString& search); - void mouseDoubleClickEvent(QTreeView* theWrappedObject, QMouseEvent* event); - void mouseMoveEvent(QTreeView* theWrappedObject, QMouseEvent* event); - void mousePressEvent(QTreeView* theWrappedObject, QMouseEvent* event); - void mouseReleaseEvent(QTreeView* theWrappedObject, QMouseEvent* event); - void paintEvent(QTreeView* theWrappedObject, QPaintEvent* event); - void reset(QTreeView* theWrappedObject); - bool rootIsDecorated(QTreeView* theWrappedObject) const; - void rowsAboutToBeRemoved(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end); - void rowsInserted(QTreeView* theWrappedObject, const QModelIndex& parent, int start, int end); - void scrollContentsBy(QTreeView* theWrappedObject, int dx, int dy); - void scrollTo(QTreeView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); - void selectAll(QTreeView* theWrappedObject); - QList selectedIndexes(QTreeView* theWrappedObject) const; - void selectionChanged(QTreeView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); - void setAllColumnsShowFocus(QTreeView* theWrappedObject, bool enable); - void setAnimated(QTreeView* theWrappedObject, bool enable); - void setAutoExpandDelay(QTreeView* theWrappedObject, int delay); - void setColumnHidden(QTreeView* theWrappedObject, int column, bool hide); - void setColumnWidth(QTreeView* theWrappedObject, int column, int width); - void setExpanded(QTreeView* theWrappedObject, const QModelIndex& index, bool expand); - void setExpandsOnDoubleClick(QTreeView* theWrappedObject, bool enable); - void setFirstColumnSpanned(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool span); - void setHeader(QTreeView* theWrappedObject, QHeaderView* header); - void setHeaderHidden(QTreeView* theWrappedObject, bool hide); - void setIndentation(QTreeView* theWrappedObject, int i); - void setItemsExpandable(QTreeView* theWrappedObject, bool enable); - void setModel(QTreeView* theWrappedObject, QAbstractItemModel* model); - void setRootIndex(QTreeView* theWrappedObject, const QModelIndex& index); - void setRootIsDecorated(QTreeView* theWrappedObject, bool show); - void setRowHidden(QTreeView* theWrappedObject, int row, const QModelIndex& parent, bool hide); - void setSelection(QTreeView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); - void setSelectionModel(QTreeView* theWrappedObject, QItemSelectionModel* selectionModel); - void setSortingEnabled(QTreeView* theWrappedObject, bool enable); - void setUniformRowHeights(QTreeView* theWrappedObject, bool uniform); - void setWordWrap(QTreeView* theWrappedObject, bool on); - int sizeHintForColumn(QTreeView* theWrappedObject, int column) const; - void sortByColumn(QTreeView* theWrappedObject, int column, Qt::SortOrder order); - void timerEvent(QTreeView* theWrappedObject, QTimerEvent* event); - bool uniformRowHeights(QTreeView* theWrappedObject) const; - void updateGeometries(QTreeView* theWrappedObject); - int verticalOffset(QTreeView* theWrappedObject) const; - bool viewportEvent(QTreeView* theWrappedObject, QEvent* event); - QRect visualRect(QTreeView* theWrappedObject, const QModelIndex& index) const; - QRegion visualRegionForSelection(QTreeView* theWrappedObject, const QItemSelection& selection) const; - bool wordWrap(QTreeView* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTreeWidget : public QTreeWidget -{ -public: - PythonQtShell_QTreeWidget(QWidget* parent = 0):QTreeWidget(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void drawBranches(QPainter* painter, const QRect& rect, const QModelIndex& index) const; -virtual void drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const; -virtual void dropEvent(QDropEvent* event); -virtual bool dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QMimeData* mimeData(const QList items) const; -virtual QStringList mimeTypes() const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* event); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual Qt::DropActions supportedDropActions() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTreeWidget : public QTreeWidget -{ public: -inline void promoted_dropEvent(QDropEvent* event) { QTreeWidget::dropEvent(event); } -inline bool promoted_dropMimeData(QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action) { return QTreeWidget::dropMimeData(parent, index, data, action); } -inline bool promoted_event(QEvent* e) { return QTreeWidget::event(e); } -inline QStringList promoted_mimeTypes() const { return QTreeWidget::mimeTypes(); } -inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QTreeWidget::setSelectionModel(selectionModel); } -inline Qt::DropActions promoted_supportedDropActions() const { return QTreeWidget::supportedDropActions(); } -}; - -class PythonQtWrapper_QTreeWidget : public QObject -{ Q_OBJECT -public: -public slots: -QTreeWidget* new_QTreeWidget(QWidget* parent = 0); -void delete_QTreeWidget(QTreeWidget* obj) { delete obj; } - void addTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item); - void addTopLevelItems(QTreeWidget* theWrappedObject, const QList& items); - void closePersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column = 0); - int columnCount(QTreeWidget* theWrappedObject) const; - int currentColumn(QTreeWidget* theWrappedObject) const; - QTreeWidgetItem* currentItem(QTreeWidget* theWrappedObject) const; - void dropEvent(QTreeWidget* theWrappedObject, QDropEvent* event); - bool dropMimeData(QTreeWidget* theWrappedObject, QTreeWidgetItem* parent, int index, const QMimeData* data, Qt::DropAction action); - void editItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column = 0); - bool event(QTreeWidget* theWrappedObject, QEvent* e); - QList findItems(QTreeWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags, int column = 0) const; - QTreeWidgetItem* headerItem(QTreeWidget* theWrappedObject) const; - int indexOfTopLevelItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item) const; - void insertTopLevelItem(QTreeWidget* theWrappedObject, int index, QTreeWidgetItem* item); - void insertTopLevelItems(QTreeWidget* theWrappedObject, int index, const QList& items); - QTreeWidgetItem* invisibleRootItem(QTreeWidget* theWrappedObject) const; - bool isFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; - QTreeWidgetItem* itemAbove(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; - QTreeWidgetItem* itemAt(QTreeWidget* theWrappedObject, const QPoint& p) const; - QTreeWidgetItem* itemAt(QTreeWidget* theWrappedObject, int x, int y) const; - QTreeWidgetItem* itemBelow(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; - QWidget* itemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column) const; - QStringList mimeTypes(QTreeWidget* theWrappedObject) const; - void openPersistentEditor(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column = 0); - void removeItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column); - QList selectedItems(QTreeWidget* theWrappedObject) const; - void setColumnCount(QTreeWidget* theWrappedObject, int columns); - void setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item); - void setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column); - void setCurrentItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QItemSelectionModel::SelectionFlags command); - void setFirstItemColumnSpanned(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item, bool span); - void setHeaderItem(QTreeWidget* theWrappedObject, QTreeWidgetItem* item); - void setHeaderLabel(QTreeWidget* theWrappedObject, const QString& label); - void setHeaderLabels(QTreeWidget* theWrappedObject, const QStringList& labels); - void setItemWidget(QTreeWidget* theWrappedObject, QTreeWidgetItem* item, int column, QWidget* widget); - void setSelectionModel(QTreeWidget* theWrappedObject, QItemSelectionModel* selectionModel); - int sortColumn(QTreeWidget* theWrappedObject) const; - void sortItems(QTreeWidget* theWrappedObject, int column, Qt::SortOrder order); - Qt::DropActions supportedDropActions(QTreeWidget* theWrappedObject) const; - QTreeWidgetItem* takeTopLevelItem(QTreeWidget* theWrappedObject, int index); - QTreeWidgetItem* topLevelItem(QTreeWidget* theWrappedObject, int index) const; - int topLevelItemCount(QTreeWidget* theWrappedObject) const; - QRect visualItemRect(QTreeWidget* theWrappedObject, const QTreeWidgetItem* item) const; -}; - - - - - -class PythonQtShell_QTreeWidgetItem : public QTreeWidgetItem -{ -public: - PythonQtShell_QTreeWidgetItem(QTreeWidget* view, QTreeWidgetItem* after, int type = Type):QTreeWidgetItem(view, after, type),_wrapper(NULL) {}; - PythonQtShell_QTreeWidgetItem(QTreeWidget* view, const QStringList& strings, int type = Type):QTreeWidgetItem(view, strings, type),_wrapper(NULL) {}; - PythonQtShell_QTreeWidgetItem(QTreeWidget* view, int type = Type):QTreeWidgetItem(view, type),_wrapper(NULL) {}; - PythonQtShell_QTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int type = Type):QTreeWidgetItem(parent, after, type),_wrapper(NULL) {}; - PythonQtShell_QTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int type = Type):QTreeWidgetItem(parent, strings, type),_wrapper(NULL) {}; - PythonQtShell_QTreeWidgetItem(QTreeWidgetItem* parent, int type = Type):QTreeWidgetItem(parent, type),_wrapper(NULL) {}; - PythonQtShell_QTreeWidgetItem(const QStringList& strings, int type = Type):QTreeWidgetItem(strings, type),_wrapper(NULL) {}; - PythonQtShell_QTreeWidgetItem(int type = Type):QTreeWidgetItem(type),_wrapper(NULL) {}; - -virtual QTreeWidgetItem* clone() const; -virtual QVariant data(int column, int role) const; -virtual bool __lt__(const QTreeWidgetItem& other) const; -virtual void read(QDataStream& in); -virtual void setData(int column, int role, const QVariant& value); -virtual void write(QDataStream& out) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTreeWidgetItem : public QTreeWidgetItem -{ public: -inline QTreeWidgetItem* promoted_clone() const { return QTreeWidgetItem::clone(); } -inline QVariant promoted_data(int column, int role) const { return QTreeWidgetItem::data(column, role); } -inline void promoted_setData(int column, int role, const QVariant& value) { QTreeWidgetItem::setData(column, role, value); } -}; - -class PythonQtWrapper_QTreeWidgetItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ItemType ChildIndicatorPolicy ) -enum ItemType{ - Type = QTreeWidgetItem::Type, UserType = QTreeWidgetItem::UserType}; -enum ChildIndicatorPolicy{ - ShowIndicator = QTreeWidgetItem::ShowIndicator, DontShowIndicator = QTreeWidgetItem::DontShowIndicator, DontShowIndicatorWhenChildless = QTreeWidgetItem::DontShowIndicatorWhenChildless}; -public slots: -QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidget* view, QTreeWidgetItem* after, int type = Type); -QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidget* view, const QStringList& strings, int type = Type); -QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidget* view, int type = Type); -QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidgetItem* parent, QTreeWidgetItem* after, int type = Type); -QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidgetItem* parent, const QStringList& strings, int type = Type); -QTreeWidgetItem* new_QTreeWidgetItem(QTreeWidgetItem* parent, int type = Type); -QTreeWidgetItem* new_QTreeWidgetItem(const QStringList& strings, int type = Type); -QTreeWidgetItem* new_QTreeWidgetItem(int type = Type); -void delete_QTreeWidgetItem(QTreeWidgetItem* obj) { delete obj; } -bool py_hasOwner(QTreeWidgetItem* theWrappedObject) { return theWrappedObject->treeWidget()!=NULL || theWrappedObject->parent()!=NULL; } - void addChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child); - void addChildren(QTreeWidgetItem* theWrappedObject, const QList& children); - QBrush background(QTreeWidgetItem* theWrappedObject, int column) const; - Qt::CheckState checkState(QTreeWidgetItem* theWrappedObject, int column) const; - QTreeWidgetItem* child(QTreeWidgetItem* theWrappedObject, int index) const; - int childCount(QTreeWidgetItem* theWrappedObject) const; - QTreeWidgetItem::ChildIndicatorPolicy childIndicatorPolicy(QTreeWidgetItem* theWrappedObject) const; - QTreeWidgetItem* clone(QTreeWidgetItem* theWrappedObject) const; - int columnCount(QTreeWidgetItem* theWrappedObject) const; - QVariant data(QTreeWidgetItem* theWrappedObject, int column, int role) const; - Qt::ItemFlags flags(QTreeWidgetItem* theWrappedObject) const; - QFont font(QTreeWidgetItem* theWrappedObject, int column) const; - QBrush foreground(QTreeWidgetItem* theWrappedObject, int column) const; - QIcon icon(QTreeWidgetItem* theWrappedObject, int column) const; - int indexOfChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child) const; - void insertChild(QTreeWidgetItem* theWrappedObject, int index, QTreeWidgetItem* child); - void insertChildren(QTreeWidgetItem* theWrappedObject, int index, const QList& children); - bool isDisabled(QTreeWidgetItem* theWrappedObject) const; - bool isExpanded(QTreeWidgetItem* theWrappedObject) const; - bool isFirstColumnSpanned(QTreeWidgetItem* theWrappedObject) const; - bool isHidden(QTreeWidgetItem* theWrappedObject) const; - bool isSelected(QTreeWidgetItem* theWrappedObject) const; - void writeTo(QTreeWidgetItem* theWrappedObject, QDataStream& out); - void readFrom(QTreeWidgetItem* theWrappedObject, QDataStream& in); - QTreeWidgetItem* parent(QTreeWidgetItem* theWrappedObject) const; - void removeChild(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem* child); - void setBackground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush); - void setCheckState(QTreeWidgetItem* theWrappedObject, int column, Qt::CheckState state); - void setChildIndicatorPolicy(QTreeWidgetItem* theWrappedObject, QTreeWidgetItem::ChildIndicatorPolicy policy); - void setData(QTreeWidgetItem* theWrappedObject, int column, int role, const QVariant& value); - void setDisabled(QTreeWidgetItem* theWrappedObject, bool disabled); - void setExpanded(QTreeWidgetItem* theWrappedObject, bool expand); - void setFirstColumnSpanned(QTreeWidgetItem* theWrappedObject, bool span); - void setFlags(QTreeWidgetItem* theWrappedObject, Qt::ItemFlags flags); - void setFont(QTreeWidgetItem* theWrappedObject, int column, const QFont& font); - void setForeground(QTreeWidgetItem* theWrappedObject, int column, const QBrush& brush); - void setHidden(QTreeWidgetItem* theWrappedObject, bool hide); - void setIcon(QTreeWidgetItem* theWrappedObject, int column, const QIcon& icon); - void setSelected(QTreeWidgetItem* theWrappedObject, bool select); - void setSizeHint(QTreeWidgetItem* theWrappedObject, int column, const QSize& size); - void setStatusTip(QTreeWidgetItem* theWrappedObject, int column, const QString& statusTip); - void setText(QTreeWidgetItem* theWrappedObject, int column, const QString& text); - void setTextAlignment(QTreeWidgetItem* theWrappedObject, int column, int alignment); - void setToolTip(QTreeWidgetItem* theWrappedObject, int column, const QString& toolTip); - void setWhatsThis(QTreeWidgetItem* theWrappedObject, int column, const QString& whatsThis); - QSize sizeHint(QTreeWidgetItem* theWrappedObject, int column) const; - void sortChildren(QTreeWidgetItem* theWrappedObject, int column, Qt::SortOrder order); - QString statusTip(QTreeWidgetItem* theWrappedObject, int column) const; - QTreeWidgetItem* takeChild(QTreeWidgetItem* theWrappedObject, int index); - QList takeChildren(QTreeWidgetItem* theWrappedObject); - QString text(QTreeWidgetItem* theWrappedObject, int column) const; - int textAlignment(QTreeWidgetItem* theWrappedObject, int column) const; - QString toolTip(QTreeWidgetItem* theWrappedObject, int column) const; - QTreeWidget* treeWidget(QTreeWidgetItem* theWrappedObject) const; - int type(QTreeWidgetItem* theWrappedObject) const; - QString whatsThis(QTreeWidgetItem* theWrappedObject, int column) const; -}; - - - - - -class PythonQtShell_QUndoCommand : public QUndoCommand -{ -public: - PythonQtShell_QUndoCommand(QUndoCommand* parent = 0):QUndoCommand(parent),_wrapper(NULL) {}; - PythonQtShell_QUndoCommand(const QString& text, QUndoCommand* parent = 0):QUndoCommand(text, parent),_wrapper(NULL) {}; - -virtual int id() const; -virtual bool mergeWith(const QUndoCommand* other); -virtual void redo(); -virtual void undo(); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QUndoCommand : public QUndoCommand -{ public: -inline int promoted_id() const { return QUndoCommand::id(); } -inline bool promoted_mergeWith(const QUndoCommand* other) { return QUndoCommand::mergeWith(other); } -inline void promoted_redo() { QUndoCommand::redo(); } -inline void promoted_undo() { QUndoCommand::undo(); } -}; - -class PythonQtWrapper_QUndoCommand : public QObject -{ Q_OBJECT -public: -public slots: -QUndoCommand* new_QUndoCommand(QUndoCommand* parent = 0); -QUndoCommand* new_QUndoCommand(const QString& text, QUndoCommand* parent = 0); -void delete_QUndoCommand(QUndoCommand* obj) { delete obj; } - const QUndoCommand* child(QUndoCommand* theWrappedObject, int index) const; - int childCount(QUndoCommand* theWrappedObject) const; - int id(QUndoCommand* theWrappedObject) const; - bool mergeWith(QUndoCommand* theWrappedObject, const QUndoCommand* other); - void redo(QUndoCommand* theWrappedObject); - void setText(QUndoCommand* theWrappedObject, const QString& text); - QString text(QUndoCommand* theWrappedObject) const; - void undo(QUndoCommand* theWrappedObject); -}; - - - - - -class PythonQtShell_QUndoGroup : public QUndoGroup -{ -public: - PythonQtShell_QUndoGroup(QObject* parent = 0):QUndoGroup(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QUndoGroup : public QObject -{ Q_OBJECT -public: -public slots: -QUndoGroup* new_QUndoGroup(QObject* parent = 0); -void delete_QUndoGroup(QUndoGroup* obj) { delete obj; } - QUndoStack* activeStack(QUndoGroup* theWrappedObject) const; - void addStack(QUndoGroup* theWrappedObject, QUndoStack* stack); - bool canRedo(QUndoGroup* theWrappedObject) const; - bool canUndo(QUndoGroup* theWrappedObject) const; - QAction* createRedoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; - QAction* createUndoAction(QUndoGroup* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; - bool isClean(QUndoGroup* theWrappedObject) const; - QString redoText(QUndoGroup* theWrappedObject) const; - void removeStack(QUndoGroup* theWrappedObject, QUndoStack* stack); - QList stacks(QUndoGroup* theWrappedObject) const; - QString undoText(QUndoGroup* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QUndoStack : public QUndoStack -{ -public: - PythonQtShell_QUndoStack(QObject* parent = 0):QUndoStack(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QUndoStack : public QObject -{ Q_OBJECT -public: -public slots: -QUndoStack* new_QUndoStack(QObject* parent = 0); -void delete_QUndoStack(QUndoStack* obj) { delete obj; } - void beginMacro(QUndoStack* theWrappedObject, const QString& text); - bool canRedo(QUndoStack* theWrappedObject) const; - bool canUndo(QUndoStack* theWrappedObject) const; - int cleanIndex(QUndoStack* theWrappedObject) const; - void clear(QUndoStack* theWrappedObject); - const QUndoCommand* command(QUndoStack* theWrappedObject, int index) const; - int count(QUndoStack* theWrappedObject) const; - QAction* createRedoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; - QAction* createUndoAction(QUndoStack* theWrappedObject, QObject* parent, const QString& prefix = QString()) const; - void endMacro(QUndoStack* theWrappedObject); - int index(QUndoStack* theWrappedObject) const; - bool isActive(QUndoStack* theWrappedObject) const; - bool isClean(QUndoStack* theWrappedObject) const; - void push(QUndoStack* theWrappedObject, QUndoCommand* cmd); - QString redoText(QUndoStack* theWrappedObject) const; - void setUndoLimit(QUndoStack* theWrappedObject, int limit); - QString text(QUndoStack* theWrappedObject, int idx) const; - int undoLimit(QUndoStack* theWrappedObject) const; - QString undoText(QUndoStack* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QUndoView : public QUndoView -{ -public: - PythonQtShell_QUndoView(QUndoGroup* group, QWidget* parent = 0):QUndoView(group, parent),_wrapper(NULL) {}; - PythonQtShell_QUndoView(QUndoStack* stack, QWidget* parent = 0):QUndoView(stack, parent),_wrapper(NULL) {}; - PythonQtShell_QUndoView(QWidget* parent = 0):QUndoView(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* e); -virtual void dragMoveEvent(QDragMoveEvent* e); -virtual void dropEvent(QDropEvent* e); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* e); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setModel(QAbstractItemModel* model); -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QUndoView : public QObject -{ Q_OBJECT -public: -public slots: -QUndoView* new_QUndoView(QUndoGroup* group, QWidget* parent = 0); -QUndoView* new_QUndoView(QUndoStack* stack, QWidget* parent = 0); -QUndoView* new_QUndoView(QWidget* parent = 0); -void delete_QUndoView(QUndoView* obj) { delete obj; } - QIcon cleanIcon(QUndoView* theWrappedObject) const; - QString emptyLabel(QUndoView* theWrappedObject) const; - QUndoGroup* group(QUndoView* theWrappedObject) const; - void setCleanIcon(QUndoView* theWrappedObject, const QIcon& icon); - void setEmptyLabel(QUndoView* theWrappedObject, const QString& label); - QUndoStack* stack(QUndoView* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QVBoxLayout : public QVBoxLayout -{ -public: - PythonQtShell_QVBoxLayout():QVBoxLayout(),_wrapper(NULL) {}; - PythonQtShell_QVBoxLayout(QWidget* parent):QVBoxLayout(parent),_wrapper(NULL) {}; - -virtual void addItem(QLayoutItem* arg__1); -virtual void childEvent(QChildEvent* e); -virtual int count() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual int indexOf(QWidget* arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayoutItem* itemAt(int arg__1) const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QLayoutItem* takeAt(int arg__1); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QVBoxLayout : public QObject -{ Q_OBJECT -public: -public slots: -QVBoxLayout* new_QVBoxLayout(); -QVBoxLayout* new_QVBoxLayout(QWidget* parent); -void delete_QVBoxLayout(QVBoxLayout* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QValidator : public QValidator -{ -public: - PythonQtShell_QValidator(QObject* parent = 0):QValidator(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& arg__1) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual QValidator::State validate(QString& arg__1, int& arg__2) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QValidator : public QValidator -{ public: -inline void promoted_fixup(QString& arg__1) const { QValidator::fixup(arg__1); } -}; - -class PythonQtWrapper_QValidator : public QObject -{ Q_OBJECT -public: -Q_ENUMS(State ) -enum State{ - Invalid = QValidator::Invalid, Intermediate = QValidator::Intermediate, Acceptable = QValidator::Acceptable}; -public slots: -QValidator* new_QValidator(QObject* parent = 0); -void delete_QValidator(QValidator* obj) { delete obj; } - void fixup(QValidator* theWrappedObject, QString& arg__1) const; - QLocale locale(QValidator* theWrappedObject) const; - void setLocale(QValidator* theWrappedObject, const QLocale& locale); -}; - - - - - -class PythonQtWrapper_QVector2D : public QObject -{ Q_OBJECT -public: -public slots: -QVector2D* new_QVector2D(); -QVector2D* new_QVector2D(const QPoint& point); -QVector2D* new_QVector2D(const QPointF& point); -QVector2D* new_QVector2D(const QVector3D& vector); -QVector2D* new_QVector2D(const QVector4D& vector); -QVector2D* new_QVector2D(qreal xpos, qreal ypos); -QVector2D* new_QVector2D(const QVector2D& other) { -QVector2D* a = new QVector2D(); -*((QVector2D*)a) = other; -return a; } -void delete_QVector2D(QVector2D* obj) { delete obj; } - qreal static_QVector2D_dotProduct(const QVector2D& v1, const QVector2D& v2); - bool isNull(QVector2D* theWrappedObject) const; - qreal length(QVector2D* theWrappedObject) const; - qreal lengthSquared(QVector2D* theWrappedObject) const; - void normalize(QVector2D* theWrappedObject); - QVector2D normalized(QVector2D* theWrappedObject) const; - const QVector2D __mul__(QVector2D* theWrappedObject, const QVector2D& v2); - const QVector2D __mul__(QVector2D* theWrappedObject, qreal factor); - QVector2D* __imul__(QVector2D* theWrappedObject, const QVector2D& vector); - QVector2D* __imul__(QVector2D* theWrappedObject, qreal factor); - const QVector2D __add__(QVector2D* theWrappedObject, const QVector2D& v2); - QVector2D* __iadd__(QVector2D* theWrappedObject, const QVector2D& vector); - const QVector2D __sub__(QVector2D* theWrappedObject, const QVector2D& v2); - QVector2D* __isub__(QVector2D* theWrappedObject, const QVector2D& vector); - const QVector2D __div__(QVector2D* theWrappedObject, qreal divisor); - QVector2D* __idiv__(QVector2D* theWrappedObject, qreal divisor); - void writeTo(QVector2D* theWrappedObject, QDataStream& arg__1); - bool __eq__(QVector2D* theWrappedObject, const QVector2D& v2); - void readFrom(QVector2D* theWrappedObject, QDataStream& arg__1); - void setX(QVector2D* theWrappedObject, qreal x); - void setY(QVector2D* theWrappedObject, qreal y); - QPoint toPoint(QVector2D* theWrappedObject) const; - QPointF toPointF(QVector2D* theWrappedObject) const; - QVector3D toVector3D(QVector2D* theWrappedObject) const; - QVector4D toVector4D(QVector2D* theWrappedObject) const; - qreal x(QVector2D* theWrappedObject) const; - qreal y(QVector2D* theWrappedObject) const; - QString py_toString(QVector2D*); - bool __nonzero__(QVector2D* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QVector3D : public QObject -{ Q_OBJECT -public: -public slots: -QVector3D* new_QVector3D(); -QVector3D* new_QVector3D(const QPoint& point); -QVector3D* new_QVector3D(const QPointF& point); -QVector3D* new_QVector3D(const QVector2D& vector); -QVector3D* new_QVector3D(const QVector2D& vector, qreal zpos); -QVector3D* new_QVector3D(const QVector4D& vector); -QVector3D* new_QVector3D(qreal xpos, qreal ypos, qreal zpos); -QVector3D* new_QVector3D(const QVector3D& other) { -QVector3D* a = new QVector3D(); -*((QVector3D*)a) = other; -return a; } -void delete_QVector3D(QVector3D* obj) { delete obj; } - QVector3D static_QVector3D_crossProduct(const QVector3D& v1, const QVector3D& v2); - qreal distanceToLine(QVector3D* theWrappedObject, const QVector3D& point, const QVector3D& direction) const; - qreal distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane, const QVector3D& normal) const; - qreal distanceToPlane(QVector3D* theWrappedObject, const QVector3D& plane1, const QVector3D& plane2, const QVector3D& plane3) const; - qreal static_QVector3D_dotProduct(const QVector3D& v1, const QVector3D& v2); - bool isNull(QVector3D* theWrappedObject) const; - qreal length(QVector3D* theWrappedObject) const; - qreal lengthSquared(QVector3D* theWrappedObject) const; - QVector3D static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2); - QVector3D static_QVector3D_normal(const QVector3D& v1, const QVector3D& v2, const QVector3D& v3); - void normalize(QVector3D* theWrappedObject); - QVector3D normalized(QVector3D* theWrappedObject) const; - QVector3D __mul__(QVector3D* theWrappedObject, const QMatrix4x4& matrix); - const QVector3D __mul__(QVector3D* theWrappedObject, const QVector3D& v2); - const QVector3D __mul__(QVector3D* theWrappedObject, qreal factor); - QVector3D* __imul__(QVector3D* theWrappedObject, const QVector3D& vector); - QVector3D* __imul__(QVector3D* theWrappedObject, qreal factor); - const QVector3D __add__(QVector3D* theWrappedObject, const QVector3D& v2); - QVector3D* __iadd__(QVector3D* theWrappedObject, const QVector3D& vector); - const QVector3D __sub__(QVector3D* theWrappedObject, const QVector3D& v2); - QVector3D* __isub__(QVector3D* theWrappedObject, const QVector3D& vector); - const QVector3D __div__(QVector3D* theWrappedObject, qreal divisor); - QVector3D* __idiv__(QVector3D* theWrappedObject, qreal divisor); - void writeTo(QVector3D* theWrappedObject, QDataStream& arg__1); - bool __eq__(QVector3D* theWrappedObject, const QVector3D& v2); - void readFrom(QVector3D* theWrappedObject, QDataStream& arg__1); - void setX(QVector3D* theWrappedObject, qreal x); - void setY(QVector3D* theWrappedObject, qreal y); - void setZ(QVector3D* theWrappedObject, qreal z); - QPoint toPoint(QVector3D* theWrappedObject) const; - QPointF toPointF(QVector3D* theWrappedObject) const; - QVector2D toVector2D(QVector3D* theWrappedObject) const; - QVector4D toVector4D(QVector3D* theWrappedObject) const; - qreal x(QVector3D* theWrappedObject) const; - qreal y(QVector3D* theWrappedObject) const; - qreal z(QVector3D* theWrappedObject) const; - QString py_toString(QVector3D*); - bool __nonzero__(QVector3D* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QVector4D : public QObject -{ Q_OBJECT -public: -public slots: -QVector4D* new_QVector4D(); -QVector4D* new_QVector4D(const QPoint& point); -QVector4D* new_QVector4D(const QPointF& point); -QVector4D* new_QVector4D(const QVector2D& vector); -QVector4D* new_QVector4D(const QVector2D& vector, qreal zpos, qreal wpos); -QVector4D* new_QVector4D(const QVector3D& vector); -QVector4D* new_QVector4D(const QVector3D& vector, qreal wpos); -QVector4D* new_QVector4D(qreal xpos, qreal ypos, qreal zpos, qreal wpos); -QVector4D* new_QVector4D(const QVector4D& other) { -QVector4D* a = new QVector4D(); -*((QVector4D*)a) = other; -return a; } -void delete_QVector4D(QVector4D* obj) { delete obj; } - qreal static_QVector4D_dotProduct(const QVector4D& v1, const QVector4D& v2); - bool isNull(QVector4D* theWrappedObject) const; - qreal length(QVector4D* theWrappedObject) const; - qreal lengthSquared(QVector4D* theWrappedObject) const; - void normalize(QVector4D* theWrappedObject); - QVector4D normalized(QVector4D* theWrappedObject) const; - QVector4D __mul__(QVector4D* theWrappedObject, const QMatrix4x4& matrix); - const QVector4D __mul__(QVector4D* theWrappedObject, const QVector4D& v2); - const QVector4D __mul__(QVector4D* theWrappedObject, qreal factor); - QVector4D* __imul__(QVector4D* theWrappedObject, const QVector4D& vector); - QVector4D* __imul__(QVector4D* theWrappedObject, qreal factor); - const QVector4D __add__(QVector4D* theWrappedObject, const QVector4D& v2); - QVector4D* __iadd__(QVector4D* theWrappedObject, const QVector4D& vector); - const QVector4D __sub__(QVector4D* theWrappedObject, const QVector4D& v2); - QVector4D* __isub__(QVector4D* theWrappedObject, const QVector4D& vector); - const QVector4D __div__(QVector4D* theWrappedObject, qreal divisor); - QVector4D* __idiv__(QVector4D* theWrappedObject, qreal divisor); - void writeTo(QVector4D* theWrappedObject, QDataStream& arg__1); - bool __eq__(QVector4D* theWrappedObject, const QVector4D& v2); - void readFrom(QVector4D* theWrappedObject, QDataStream& arg__1); - void setW(QVector4D* theWrappedObject, qreal w); - void setX(QVector4D* theWrappedObject, qreal x); - void setY(QVector4D* theWrappedObject, qreal y); - void setZ(QVector4D* theWrappedObject, qreal z); - QPoint toPoint(QVector4D* theWrappedObject) const; - QPointF toPointF(QVector4D* theWrappedObject) const; - QVector2D toVector2D(QVector4D* theWrappedObject) const; - QVector2D toVector2DAffine(QVector4D* theWrappedObject) const; - QVector3D toVector3D(QVector4D* theWrappedObject) const; - QVector3D toVector3DAffine(QVector4D* theWrappedObject) const; - qreal w(QVector4D* theWrappedObject) const; - qreal x(QVector4D* theWrappedObject) const; - qreal y(QVector4D* theWrappedObject) const; - qreal z(QVector4D* theWrappedObject) const; - QString py_toString(QVector4D*); - bool __nonzero__(QVector4D* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QWhatsThis : public QObject -{ Q_OBJECT -public: -public slots: -void delete_QWhatsThis(QWhatsThis* obj) { delete obj; } - QAction* static_QWhatsThis_createAction(QObject* parent = 0); - void static_QWhatsThis_enterWhatsThisMode(); - void static_QWhatsThis_hideText(); - bool static_QWhatsThis_inWhatsThisMode(); - void static_QWhatsThis_leaveWhatsThisMode(); - void static_QWhatsThis_showText(const QPoint& pos, const QString& text, QWidget* w = 0); -}; - - - - - -class PythonQtWrapper_QWhatsThisClickedEvent : public QObject -{ Q_OBJECT -public: -public slots: -QWhatsThisClickedEvent* new_QWhatsThisClickedEvent(const QString& href); -void delete_QWhatsThisClickedEvent(QWhatsThisClickedEvent* obj) { delete obj; } - QString href(QWhatsThisClickedEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QWheelEvent : public QWheelEvent -{ -public: - PythonQtShell_QWheelEvent(const QPoint& pos, const QPoint& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical):QWheelEvent(pos, globalPos, delta, buttons, modifiers, orient),_wrapper(NULL) {}; - PythonQtShell_QWheelEvent(const QPoint& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical):QWheelEvent(pos, delta, buttons, modifiers, orient),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QWheelEvent : public QObject -{ Q_OBJECT -public: -public slots: -QWheelEvent* new_QWheelEvent(const QPoint& pos, const QPoint& globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical); -QWheelEvent* new_QWheelEvent(const QPoint& pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical); -void delete_QWheelEvent(QWheelEvent* obj) { delete obj; } - Qt::MouseButtons buttons(QWheelEvent* theWrappedObject) const; - int delta(QWheelEvent* theWrappedObject) const; - const QPoint* globalPos(QWheelEvent* theWrappedObject) const; - int globalX(QWheelEvent* theWrappedObject) const; - int globalY(QWheelEvent* theWrappedObject) const; - Qt::Orientation orientation(QWheelEvent* theWrappedObject) const; - const QPoint* pos(QWheelEvent* theWrappedObject) const; - int x(QWheelEvent* theWrappedObject) const; - int y(QWheelEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QWidget : public QWidget -{ -public: - PythonQtShell_QWidget(QWidget* parent = 0, Qt::WindowFlags f = 0):QWidget(parent, f),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enabledChange(bool arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual void fontChange(const QFont& arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void paletteChange(const QPalette& arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void setVisible(bool visible); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); -virtual void windowActivationChange(bool arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QWidget : public QWidget -{ public: -inline void promoted_actionEvent(QActionEvent* arg__1) { QWidget::actionEvent(arg__1); } -inline void promoted_changeEvent(QEvent* arg__1) { QWidget::changeEvent(arg__1); } -inline void promoted_closeEvent(QCloseEvent* arg__1) { QWidget::closeEvent(arg__1); } -inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QWidget::contextMenuEvent(arg__1); } -inline int promoted_devType() const { return QWidget::devType(); } -inline void promoted_dragEnterEvent(QDragEnterEvent* arg__1) { QWidget::dragEnterEvent(arg__1); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* arg__1) { QWidget::dragLeaveEvent(arg__1); } -inline void promoted_dragMoveEvent(QDragMoveEvent* arg__1) { QWidget::dragMoveEvent(arg__1); } -inline void promoted_dropEvent(QDropEvent* arg__1) { QWidget::dropEvent(arg__1); } -inline void promoted_enterEvent(QEvent* arg__1) { QWidget::enterEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QWidget::event(arg__1); } -inline void promoted_focusInEvent(QFocusEvent* arg__1) { QWidget::focusInEvent(arg__1); } -inline bool promoted_focusNextPrevChild(bool next) { return QWidget::focusNextPrevChild(next); } -inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QWidget::focusOutEvent(arg__1); } -inline int promoted_heightForWidth(int arg__1) const { return QWidget::heightForWidth(arg__1); } -inline void promoted_hideEvent(QHideEvent* arg__1) { QWidget::hideEvent(arg__1); } -inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QWidget::inputMethodEvent(arg__1); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QWidget::inputMethodQuery(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QWidget::keyPressEvent(arg__1); } -inline void promoted_keyReleaseEvent(QKeyEvent* arg__1) { QWidget::keyReleaseEvent(arg__1); } -inline void promoted_languageChange() { QWidget::languageChange(); } -inline void promoted_leaveEvent(QEvent* arg__1) { QWidget::leaveEvent(arg__1); } -inline int promoted_metric(QPaintDevice::PaintDeviceMetric arg__1) const { return QWidget::metric(arg__1); } -inline QSize promoted_minimumSizeHint() const { return QWidget::minimumSizeHint(); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* arg__1) { QWidget::mouseDoubleClickEvent(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QWidget::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QWidget::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QWidget::mouseReleaseEvent(arg__1); } -inline void promoted_moveEvent(QMoveEvent* arg__1) { QWidget::moveEvent(arg__1); } -inline QPaintEngine* promoted_paintEngine() const { return QWidget::paintEngine(); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QWidget::paintEvent(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QWidget::resizeEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* arg__1) { QWidget::showEvent(arg__1); } -inline QSize promoted_sizeHint() const { return QWidget::sizeHint(); } -inline void promoted_tabletEvent(QTabletEvent* arg__1) { QWidget::tabletEvent(arg__1); } -inline void promoted_wheelEvent(QWheelEvent* arg__1) { QWidget::wheelEvent(arg__1); } -}; - -class PythonQtWrapper_QWidget : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RenderFlag ) -Q_FLAGS(RenderFlags ) -enum RenderFlag{ - DrawWindowBackground = QWidget::DrawWindowBackground, DrawChildren = QWidget::DrawChildren, IgnoreMask = QWidget::IgnoreMask}; -Q_DECLARE_FLAGS(RenderFlags, RenderFlag) -public slots: -QWidget* new_QWidget(QWidget* parent = 0, Qt::WindowFlags f = 0); -void delete_QWidget(QWidget* obj) { delete obj; } - bool acceptDrops(QWidget* theWrappedObject) const; - QString accessibleDescription(QWidget* theWrappedObject) const; - QString accessibleName(QWidget* theWrappedObject) const; - void actionEvent(QWidget* theWrappedObject, QActionEvent* arg__1); - QList actions(QWidget* theWrappedObject) const; - void activateWindow(QWidget* theWrappedObject); - void addAction(QWidget* theWrappedObject, QAction* action); - void addActions(QWidget* theWrappedObject, QList actions); - void adjustSize(QWidget* theWrappedObject); - bool autoFillBackground(QWidget* theWrappedObject) const; - QPalette::ColorRole backgroundRole(QWidget* theWrappedObject) const; - QSize baseSize(QWidget* theWrappedObject) const; - void changeEvent(QWidget* theWrappedObject, QEvent* arg__1); - QWidget* childAt(QWidget* theWrappedObject, const QPoint& p) const; - QWidget* childAt(QWidget* theWrappedObject, int x, int y) const; - QRect childrenRect(QWidget* theWrappedObject) const; - QRegion childrenRegion(QWidget* theWrappedObject) const; - void clearFocus(QWidget* theWrappedObject); - void clearMask(QWidget* theWrappedObject); - void closeEvent(QWidget* theWrappedObject, QCloseEvent* arg__1); - QMargins contentsMargins(QWidget* theWrappedObject) const; - QRect contentsRect(QWidget* theWrappedObject) const; - void contextMenuEvent(QWidget* theWrappedObject, QContextMenuEvent* arg__1); - Qt::ContextMenuPolicy contextMenuPolicy(QWidget* theWrappedObject) const; - void createWinId(QWidget* theWrappedObject); - QCursor cursor(QWidget* theWrappedObject) const; - int devType(QWidget* theWrappedObject) const; - void dragEnterEvent(QWidget* theWrappedObject, QDragEnterEvent* arg__1); - void dragLeaveEvent(QWidget* theWrappedObject, QDragLeaveEvent* arg__1); - void dragMoveEvent(QWidget* theWrappedObject, QDragMoveEvent* arg__1); - void dropEvent(QWidget* theWrappedObject, QDropEvent* arg__1); - WId effectiveWinId(QWidget* theWrappedObject) const; - void ensurePolished(QWidget* theWrappedObject) const; - void enterEvent(QWidget* theWrappedObject, QEvent* arg__1); - bool event(QWidget* theWrappedObject, QEvent* arg__1); - void focusInEvent(QWidget* theWrappedObject, QFocusEvent* arg__1); - bool focusNextPrevChild(QWidget* theWrappedObject, bool next); - void focusOutEvent(QWidget* theWrappedObject, QFocusEvent* arg__1); - Qt::FocusPolicy focusPolicy(QWidget* theWrappedObject) const; - QWidget* focusProxy(QWidget* theWrappedObject) const; - QWidget* focusWidget(QWidget* theWrappedObject) const; - const QFont* font(QWidget* theWrappedObject) const; - QPalette::ColorRole foregroundRole(QWidget* theWrappedObject) const; - QRect frameGeometry(QWidget* theWrappedObject) const; - QSize frameSize(QWidget* theWrappedObject) const; - const QRect* geometry(QWidget* theWrappedObject) const; - void getContentsMargins(QWidget* theWrappedObject, int* left, int* top, int* right, int* bottom) const; - void grabKeyboard(QWidget* theWrappedObject); - void grabMouse(QWidget* theWrappedObject); - void grabMouse(QWidget* theWrappedObject, const QCursor& arg__1); - int grabShortcut(QWidget* theWrappedObject, const QKeySequence& key, Qt::ShortcutContext context = Qt::WindowShortcut); - QGraphicsEffect* graphicsEffect(QWidget* theWrappedObject) const; - QGraphicsProxyWidget* graphicsProxyWidget(QWidget* theWrappedObject) const; - bool hasFocus(QWidget* theWrappedObject) const; - bool hasMouseTracking(QWidget* theWrappedObject) const; - int height(QWidget* theWrappedObject) const; - int heightForWidth(QWidget* theWrappedObject, int arg__1) const; - void hideEvent(QWidget* theWrappedObject, QHideEvent* arg__1); - QInputContext* inputContext(QWidget* theWrappedObject); - void inputMethodEvent(QWidget* theWrappedObject, QInputMethodEvent* arg__1); - Qt::InputMethodHints inputMethodHints(QWidget* theWrappedObject) const; - QVariant inputMethodQuery(QWidget* theWrappedObject, Qt::InputMethodQuery arg__1) const; - void insertAction(QWidget* theWrappedObject, QAction* before, QAction* action); - void insertActions(QWidget* theWrappedObject, QAction* before, QList actions); - bool isActiveWindow(QWidget* theWrappedObject) const; - bool isAncestorOf(QWidget* theWrappedObject, const QWidget* child) const; - bool isEnabled(QWidget* theWrappedObject) const; - bool isEnabledTo(QWidget* theWrappedObject, QWidget* arg__1) const; - bool isFullScreen(QWidget* theWrappedObject) const; - bool isHidden(QWidget* theWrappedObject) const; - bool isLeftToRight(QWidget* theWrappedObject) const; - bool isMaximized(QWidget* theWrappedObject) const; - bool isMinimized(QWidget* theWrappedObject) const; - bool isModal(QWidget* theWrappedObject) const; - bool isRightToLeft(QWidget* theWrappedObject) const; - bool isVisible(QWidget* theWrappedObject) const; - bool isVisibleTo(QWidget* theWrappedObject, QWidget* arg__1) const; - bool isWindow(QWidget* theWrappedObject) const; - bool isWindowModified(QWidget* theWrappedObject) const; - void keyPressEvent(QWidget* theWrappedObject, QKeyEvent* arg__1); - void keyReleaseEvent(QWidget* theWrappedObject, QKeyEvent* arg__1); - QWidget* static_QWidget_keyboardGrabber(); - void languageChange(QWidget* theWrappedObject); - QLayout* layout(QWidget* theWrappedObject) const; - Qt::LayoutDirection layoutDirection(QWidget* theWrappedObject) const; - void leaveEvent(QWidget* theWrappedObject, QEvent* arg__1); - QLocale locale(QWidget* theWrappedObject) const; - QPoint mapFrom(QWidget* theWrappedObject, QWidget* arg__1, const QPoint& arg__2) const; - QPoint mapFromGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const; - QPoint mapFromParent(QWidget* theWrappedObject, const QPoint& arg__1) const; - QPoint mapTo(QWidget* theWrappedObject, QWidget* arg__1, const QPoint& arg__2) const; - QPoint mapToGlobal(QWidget* theWrappedObject, const QPoint& arg__1) const; - QPoint mapToParent(QWidget* theWrappedObject, const QPoint& arg__1) const; - QRegion mask(QWidget* theWrappedObject) const; - int maximumHeight(QWidget* theWrappedObject) const; - QSize maximumSize(QWidget* theWrappedObject) const; - int maximumWidth(QWidget* theWrappedObject) const; - int metric(QWidget* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const; - int minimumHeight(QWidget* theWrappedObject) const; - QSize minimumSize(QWidget* theWrappedObject) const; - QSize minimumSizeHint(QWidget* theWrappedObject) const; - int minimumWidth(QWidget* theWrappedObject) const; - void mouseDoubleClickEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); - QWidget* static_QWidget_mouseGrabber(); - void mouseMoveEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QWidget* theWrappedObject, QMouseEvent* arg__1); - void move(QWidget* theWrappedObject, const QPoint& arg__1); - void move(QWidget* theWrappedObject, int x, int y); - void moveEvent(QWidget* theWrappedObject, QMoveEvent* arg__1); - QWidget* nativeParentWidget(QWidget* theWrappedObject) const; - QWidget* nextInFocusChain(QWidget* theWrappedObject) const; - QRect normalGeometry(QWidget* theWrappedObject) const; - void overrideWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type); - void overrideWindowState(QWidget* theWrappedObject, Qt::WindowStates state); - QPaintEngine* paintEngine(QWidget* theWrappedObject) const; - void paintEvent(QWidget* theWrappedObject, QPaintEvent* arg__1); - const QPalette* palette(QWidget* theWrappedObject) const; - QWidget* parentWidget(QWidget* theWrappedObject) const; - QPoint pos(QWidget* theWrappedObject) const; - QWidget* previousInFocusChain(QWidget* theWrappedObject) const; - QRect rect(QWidget* theWrappedObject) const; - void releaseKeyboard(QWidget* theWrappedObject); - void releaseMouse(QWidget* theWrappedObject); - void releaseShortcut(QWidget* theWrappedObject, int id); - void removeAction(QWidget* theWrappedObject, QAction* action); - void render(QWidget* theWrappedObject, QPaintDevice* target, const QPoint& targetOffset = QPoint(), const QRegion& sourceRegion = QRegion(), QWidget::RenderFlags renderFlags = QWidget::RenderFlags(DrawWindowBackground | DrawChildren)); - void render(QWidget* theWrappedObject, QPainter* painter, const QPoint& targetOffset = QPoint(), const QRegion& sourceRegion = QRegion(), QWidget::RenderFlags renderFlags = QWidget::RenderFlags(DrawWindowBackground | DrawChildren)); - void repaint(QWidget* theWrappedObject, const QRect& arg__1); - void repaint(QWidget* theWrappedObject, const QRegion& arg__1); - void repaint(QWidget* theWrappedObject, int x, int y, int w, int h); - void resize(QWidget* theWrappedObject, const QSize& arg__1); - void resize(QWidget* theWrappedObject, int w, int h); - void resizeEvent(QWidget* theWrappedObject, QResizeEvent* arg__1); - bool restoreGeometry(QWidget* theWrappedObject, const QByteArray& geometry); - QByteArray saveGeometry(QWidget* theWrappedObject) const; - void scroll(QWidget* theWrappedObject, int dx, int dy); - void scroll(QWidget* theWrappedObject, int dx, int dy, const QRect& arg__3); - void setAcceptDrops(QWidget* theWrappedObject, bool on); - void setAccessibleDescription(QWidget* theWrappedObject, const QString& description); - void setAccessibleName(QWidget* theWrappedObject, const QString& name); - void setAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1, bool on = true); - void setAutoFillBackground(QWidget* theWrappedObject, bool enabled); - void setBackgroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1); - void setBaseSize(QWidget* theWrappedObject, const QSize& arg__1); - void setBaseSize(QWidget* theWrappedObject, int basew, int baseh); - void setContentsMargins(QWidget* theWrappedObject, const QMargins& margins); - void setContentsMargins(QWidget* theWrappedObject, int left, int top, int right, int bottom); - void setContextMenuPolicy(QWidget* theWrappedObject, Qt::ContextMenuPolicy policy); - void setCursor(QWidget* theWrappedObject, const QCursor& arg__1); - void setFixedHeight(QWidget* theWrappedObject, int h); - void setFixedSize(QWidget* theWrappedObject, const QSize& arg__1); - void setFixedSize(QWidget* theWrappedObject, int w, int h); - void setFixedWidth(QWidget* theWrappedObject, int w); - void setFocus(QWidget* theWrappedObject, Qt::FocusReason reason); - void setFocusPolicy(QWidget* theWrappedObject, Qt::FocusPolicy policy); - void setFocusProxy(QWidget* theWrappedObject, QWidget* arg__1); - void setFont(QWidget* theWrappedObject, const QFont& arg__1); - void setForegroundRole(QWidget* theWrappedObject, QPalette::ColorRole arg__1); - void setGeometry(QWidget* theWrappedObject, const QRect& arg__1); - void setGeometry(QWidget* theWrappedObject, int x, int y, int w, int h); - void setGraphicsEffect(QWidget* theWrappedObject, QGraphicsEffect* effect); - void setInputContext(QWidget* theWrappedObject, QInputContext* arg__1); - void setInputMethodHints(QWidget* theWrappedObject, Qt::InputMethodHints hints); - void setLayout(QWidget* theWrappedObject, QLayout* arg__1); - void setLayoutDirection(QWidget* theWrappedObject, Qt::LayoutDirection direction); - void setLocale(QWidget* theWrappedObject, const QLocale& locale); - void setMask(QWidget* theWrappedObject, const QBitmap& arg__1); - void setMask(QWidget* theWrappedObject, const QRegion& arg__1); - void setMaximumHeight(QWidget* theWrappedObject, int maxh); - void setMaximumSize(QWidget* theWrappedObject, const QSize& arg__1); - void setMaximumSize(QWidget* theWrappedObject, int maxw, int maxh); - void setMaximumWidth(QWidget* theWrappedObject, int maxw); - void setMinimumHeight(QWidget* theWrappedObject, int minh); - void setMinimumSize(QWidget* theWrappedObject, const QSize& arg__1); - void setMinimumSize(QWidget* theWrappedObject, int minw, int minh); - void setMinimumWidth(QWidget* theWrappedObject, int minw); - void setMouseTracking(QWidget* theWrappedObject, bool enable); - void setPalette(QWidget* theWrappedObject, const QPalette& arg__1); - void setParent(QWidget* theWrappedObject, QWidget* parent); - void setParent(QWidget* theWrappedObject, QWidget* parent, Qt::WindowFlags f); - void setShortcutAutoRepeat(QWidget* theWrappedObject, int id, bool enable = true); - void setShortcutEnabled(QWidget* theWrappedObject, int id, bool enable = true); - void setSizeIncrement(QWidget* theWrappedObject, const QSize& arg__1); - void setSizeIncrement(QWidget* theWrappedObject, int w, int h); - void setSizePolicy(QWidget* theWrappedObject, QSizePolicy arg__1); - void setSizePolicy(QWidget* theWrappedObject, QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical); - void setStatusTip(QWidget* theWrappedObject, const QString& arg__1); - void setStyle(QWidget* theWrappedObject, QStyle* arg__1); - void static_QWidget_setTabOrder(QWidget* arg__1, QWidget* arg__2); - void setToolTip(QWidget* theWrappedObject, const QString& arg__1); - void setUpdatesEnabled(QWidget* theWrappedObject, bool enable); - void setWhatsThis(QWidget* theWrappedObject, const QString& arg__1); - void setWindowFilePath(QWidget* theWrappedObject, const QString& filePath); - void setWindowFlags(QWidget* theWrappedObject, Qt::WindowFlags type); - void setWindowIcon(QWidget* theWrappedObject, const QIcon& icon); - void setWindowIconText(QWidget* theWrappedObject, const QString& arg__1); - void setWindowModality(QWidget* theWrappedObject, Qt::WindowModality windowModality); - void setWindowOpacity(QWidget* theWrappedObject, qreal level); - void setWindowRole(QWidget* theWrappedObject, const QString& arg__1); - void setWindowState(QWidget* theWrappedObject, Qt::WindowStates state); - void showEvent(QWidget* theWrappedObject, QShowEvent* arg__1); - QSize size(QWidget* theWrappedObject) const; - QSize sizeHint(QWidget* theWrappedObject) const; - QSize sizeIncrement(QWidget* theWrappedObject) const; - QSizePolicy sizePolicy(QWidget* theWrappedObject) const; - void stackUnder(QWidget* theWrappedObject, QWidget* arg__1); - QString statusTip(QWidget* theWrappedObject) const; - QStyle* style(QWidget* theWrappedObject) const; - QString styleSheet(QWidget* theWrappedObject) const; - void tabletEvent(QWidget* theWrappedObject, QTabletEvent* arg__1); - bool testAttribute(QWidget* theWrappedObject, Qt::WidgetAttribute arg__1) const; - QString toolTip(QWidget* theWrappedObject) const; - bool underMouse(QWidget* theWrappedObject) const; - void unsetCursor(QWidget* theWrappedObject); - void unsetLayoutDirection(QWidget* theWrappedObject); - void unsetLocale(QWidget* theWrappedObject); - void update(QWidget* theWrappedObject, const QRect& arg__1); - void update(QWidget* theWrappedObject, const QRegion& arg__1); - void update(QWidget* theWrappedObject, int x, int y, int w, int h); - void updateGeometry(QWidget* theWrappedObject); - bool updatesEnabled(QWidget* theWrappedObject) const; - QRegion visibleRegion(QWidget* theWrappedObject) const; - QString whatsThis(QWidget* theWrappedObject) const; - void wheelEvent(QWidget* theWrappedObject, QWheelEvent* arg__1); - int width(QWidget* theWrappedObject) const; - WId winId(QWidget* theWrappedObject) const; - QWidget* window(QWidget* theWrappedObject) const; - QString windowFilePath(QWidget* theWrappedObject) const; - Qt::WindowFlags windowFlags(QWidget* theWrappedObject) const; - QIcon windowIcon(QWidget* theWrappedObject) const; - QString windowIconText(QWidget* theWrappedObject) const; - Qt::WindowModality windowModality(QWidget* theWrappedObject) const; - qreal windowOpacity(QWidget* theWrappedObject) const; - QString windowRole(QWidget* theWrappedObject) const; - Qt::WindowStates windowState(QWidget* theWrappedObject) const; - QString windowTitle(QWidget* theWrappedObject) const; - Qt::WindowType windowType(QWidget* theWrappedObject) const; - int x(QWidget* theWrappedObject) const; - int y(QWidget* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QWidgetAction : public QWidgetAction -{ -public: - PythonQtShell_QWidgetAction(QObject* parent):QWidgetAction(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QWidget* createWidget(QWidget* parent); -virtual void customEvent(QEvent* arg__1); -virtual void deleteWidget(QWidget* widget); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QWidgetAction : public QWidgetAction -{ public: -inline QWidget* promoted_createWidget(QWidget* parent) { return QWidgetAction::createWidget(parent); } -inline void promoted_deleteWidget(QWidget* widget) { QWidgetAction::deleteWidget(widget); } -inline bool promoted_event(QEvent* arg__1) { return QWidgetAction::event(arg__1); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QWidgetAction::eventFilter(arg__1, arg__2); } -}; - -class PythonQtWrapper_QWidgetAction : public QObject -{ Q_OBJECT -public: -public slots: -QWidgetAction* new_QWidgetAction(QObject* parent); -void delete_QWidgetAction(QWidgetAction* obj) { delete obj; } - QWidget* createWidget(QWidgetAction* theWrappedObject, QWidget* parent); - QWidget* defaultWidget(QWidgetAction* theWrappedObject) const; - void deleteWidget(QWidgetAction* theWrappedObject, QWidget* widget); - bool event(QWidgetAction* theWrappedObject, QEvent* arg__1); - bool eventFilter(QWidgetAction* theWrappedObject, QObject* arg__1, QEvent* arg__2); - void releaseWidget(QWidgetAction* theWrappedObject, QWidget* widget); - QWidget* requestWidget(QWidgetAction* theWrappedObject, QWidget* parent); - void setDefaultWidget(QWidgetAction* theWrappedObject, QWidget* w); -}; - - - - - -class PythonQtShell_QWidgetItem : public QWidgetItem -{ -public: - PythonQtShell_QWidgetItem(QWidget* w):QWidgetItem(w),_wrapper(NULL) {}; - -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual bool hasHeightForWidth() const; -virtual int heightForWidth(int arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual int minimumHeightForWidth(int arg__1) const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QSize sizeHint() const; -virtual QSpacerItem* spacerItem(); -virtual QWidget* widget(); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QWidgetItem : public QWidgetItem -{ public: -inline Qt::Orientations promoted_expandingDirections() const { return QWidgetItem::expandingDirections(); } -inline QRect promoted_geometry() const { return QWidgetItem::geometry(); } -inline bool promoted_hasHeightForWidth() const { return QWidgetItem::hasHeightForWidth(); } -inline int promoted_heightForWidth(int arg__1) const { return QWidgetItem::heightForWidth(arg__1); } -inline bool promoted_isEmpty() const { return QWidgetItem::isEmpty(); } -inline QSize promoted_maximumSize() const { return QWidgetItem::maximumSize(); } -inline QSize promoted_minimumSize() const { return QWidgetItem::minimumSize(); } -inline void promoted_setGeometry(const QRect& arg__1) { QWidgetItem::setGeometry(arg__1); } -inline QSize promoted_sizeHint() const { return QWidgetItem::sizeHint(); } -inline QWidget* promoted_widget() { return QWidgetItem::widget(); } -}; - -class PythonQtWrapper_QWidgetItem : public QObject -{ Q_OBJECT -public: -public slots: -QWidgetItem* new_QWidgetItem(QWidget* w); -void delete_QWidgetItem(QWidgetItem* obj) { delete obj; } - Qt::Orientations expandingDirections(QWidgetItem* theWrappedObject) const; - QRect geometry(QWidgetItem* theWrappedObject) const; - bool hasHeightForWidth(QWidgetItem* theWrappedObject) const; - int heightForWidth(QWidgetItem* theWrappedObject, int arg__1) const; - bool isEmpty(QWidgetItem* theWrappedObject) const; - QSize maximumSize(QWidgetItem* theWrappedObject) const; - QSize minimumSize(QWidgetItem* theWrappedObject) const; - void setGeometry(QWidgetItem* theWrappedObject, const QRect& arg__1); - QSize sizeHint(QWidgetItem* theWrappedObject) const; - QWidget* widget(QWidgetItem* theWrappedObject); -}; - - - - - -class PythonQtWrapper_QWindowStateChangeEvent : public QObject -{ Q_OBJECT -public: -public slots: -QWindowStateChangeEvent* new_QWindowStateChangeEvent(Qt::WindowStates aOldState); -QWindowStateChangeEvent* new_QWindowStateChangeEvent(Qt::WindowStates aOldState, bool isOverride); -void delete_QWindowStateChangeEvent(QWindowStateChangeEvent* obj) { delete obj; } - bool isOverride(QWindowStateChangeEvent* theWrappedObject) const; - Qt::WindowStates oldState(QWindowStateChangeEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QWindowsStyle : public QWindowsStyle -{ -public: - PythonQtShell_QWindowsStyle():QWindowsStyle(),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* o, QEvent* e); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual int pixelMetric(QStyle::PixelMetric pm, const QStyleOption* option = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* arg__1); -virtual void polish(QPalette& arg__1); -virtual void polish(QWidget* arg__1); -virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const; -virtual int styleHint(QStyle::StyleHint hint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* w) const; -virtual QRect subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; -virtual void timerEvent(QTimerEvent* event); -virtual void unpolish(QApplication* arg__1); -virtual void unpolish(QWidget* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QWindowsStyle : public QWindowsStyle -{ public: -inline void promoted_drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const { QWindowsStyle::drawComplexControl(cc, opt, p, w); } -inline void promoted_drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QWindowsStyle::drawControl(element, opt, p, w); } -inline void promoted_drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QWindowsStyle::drawPrimitive(pe, opt, p, w); } -inline bool promoted_eventFilter(QObject* o, QEvent* e) { return QWindowsStyle::eventFilter(o, e); } -inline int promoted_pixelMetric(QStyle::PixelMetric pm, const QStyleOption* option = 0, const QWidget* widget = 0) const { return QWindowsStyle::pixelMetric(pm, option, widget); } -inline void promoted_polish(QApplication* arg__1) { QWindowsStyle::polish(arg__1); } -inline void promoted_polish(QPalette& arg__1) { QWindowsStyle::polish(arg__1); } -inline void promoted_polish(QWidget* arg__1) { QWindowsStyle::polish(arg__1); } -inline QSize promoted_sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const { return QWindowsStyle::sizeFromContents(ct, opt, contentsSize, widget); } -inline int promoted_styleHint(QStyle::StyleHint hint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const { return QWindowsStyle::styleHint(hint, opt, widget, returnData); } -inline QRect promoted_subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const { return QWindowsStyle::subElementRect(r, opt, widget); } -inline void promoted_timerEvent(QTimerEvent* event) { QWindowsStyle::timerEvent(event); } -inline void promoted_unpolish(QApplication* arg__1) { QWindowsStyle::unpolish(arg__1); } -inline void promoted_unpolish(QWidget* arg__1) { QWindowsStyle::unpolish(arg__1); } -}; - -class PythonQtWrapper_QWindowsStyle : public QObject -{ Q_OBJECT -public: -public slots: -QWindowsStyle* new_QWindowsStyle(); -void delete_QWindowsStyle(QWindowsStyle* obj) { delete obj; } - void drawComplexControl(QWindowsStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; - void drawControl(QWindowsStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - void drawPrimitive(QWindowsStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - bool eventFilter(QWindowsStyle* theWrappedObject, QObject* o, QEvent* e); - int pixelMetric(QWindowsStyle* theWrappedObject, QStyle::PixelMetric pm, const QStyleOption* option = 0, const QWidget* widget = 0) const; - void polish(QWindowsStyle* theWrappedObject, QApplication* arg__1); - void polish(QWindowsStyle* theWrappedObject, QPalette& arg__1); - void polish(QWindowsStyle* theWrappedObject, QWidget* arg__1); - QSize sizeFromContents(QWindowsStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; - int styleHint(QWindowsStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; - QRect subElementRect(QWindowsStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; - void timerEvent(QWindowsStyle* theWrappedObject, QTimerEvent* event); - void unpolish(QWindowsStyle* theWrappedObject, QApplication* arg__1); - void unpolish(QWindowsStyle* theWrappedObject, QWidget* arg__1); -}; - - - - - -class PythonQtShell_QWizard : public QWizard -{ -public: - PythonQtShell_QWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0):QWizard(parent, flags),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void cleanupPage(int id); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void initializePage(int id); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual int nextId() const; -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool validateCurrentPage(); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QWizard : public QWizard -{ public: -inline void promoted_cleanupPage(int id) { QWizard::cleanupPage(id); } -inline void promoted_done(int result) { QWizard::done(result); } -inline bool promoted_event(QEvent* event) { return QWizard::event(event); } -inline void promoted_initializePage(int id) { QWizard::initializePage(id); } -inline int promoted_nextId() const { return QWizard::nextId(); } -inline void promoted_paintEvent(QPaintEvent* event) { QWizard::paintEvent(event); } -inline void promoted_resizeEvent(QResizeEvent* event) { QWizard::resizeEvent(event); } -inline bool promoted_validateCurrentPage() { return QWizard::validateCurrentPage(); } -}; - -class PythonQtWrapper_QWizard : public QObject -{ Q_OBJECT -public: -Q_ENUMS(WizardButton WizardPixmap ) -enum WizardButton{ - BackButton = QWizard::BackButton, NextButton = QWizard::NextButton, CommitButton = QWizard::CommitButton, FinishButton = QWizard::FinishButton, CancelButton = QWizard::CancelButton, HelpButton = QWizard::HelpButton, CustomButton1 = QWizard::CustomButton1, CustomButton2 = QWizard::CustomButton2, CustomButton3 = QWizard::CustomButton3, Stretch = QWizard::Stretch, NoButton = QWizard::NoButton, NStandardButtons = QWizard::NStandardButtons, NButtons = QWizard::NButtons}; -enum WizardPixmap{ - WatermarkPixmap = QWizard::WatermarkPixmap, LogoPixmap = QWizard::LogoPixmap, BannerPixmap = QWizard::BannerPixmap, BackgroundPixmap = QWizard::BackgroundPixmap, NPixmaps = QWizard::NPixmaps}; -public slots: -QWizard* new_QWizard(QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QWizard(QWizard* obj) { delete obj; } - int addPage(QWizard* theWrappedObject, QWizardPage* page); - QAbstractButton* button(QWizard* theWrappedObject, QWizard::WizardButton which) const; - QString buttonText(QWizard* theWrappedObject, QWizard::WizardButton which) const; - void cleanupPage(QWizard* theWrappedObject, int id); - int currentId(QWizard* theWrappedObject) const; - QWizardPage* currentPage(QWizard* theWrappedObject) const; - void done(QWizard* theWrappedObject, int result); - bool event(QWizard* theWrappedObject, QEvent* event); - QVariant field(QWizard* theWrappedObject, const QString& name) const; - bool hasVisitedPage(QWizard* theWrappedObject, int id) const; - void initializePage(QWizard* theWrappedObject, int id); - int nextId(QWizard* theWrappedObject) const; - QWizard::WizardOptions options(QWizard* theWrappedObject) const; - QWizardPage* page(QWizard* theWrappedObject, int id) const; - QList pageIds(QWizard* theWrappedObject) const; - void paintEvent(QWizard* theWrappedObject, QPaintEvent* event); - QPixmap pixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which) const; - void removePage(QWizard* theWrappedObject, int id); - void resizeEvent(QWizard* theWrappedObject, QResizeEvent* event); - void setButton(QWizard* theWrappedObject, QWizard::WizardButton which, QAbstractButton* button); - void setButtonLayout(QWizard* theWrappedObject, const QList& layout); - void setButtonText(QWizard* theWrappedObject, QWizard::WizardButton which, const QString& text); - void setField(QWizard* theWrappedObject, const QString& name, const QVariant& value); - void setOption(QWizard* theWrappedObject, QWizard::WizardOption option, bool on = true); - void setOptions(QWizard* theWrappedObject, QWizard::WizardOptions options); - void setPage(QWizard* theWrappedObject, int id, QWizardPage* page); - void setPixmap(QWizard* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap); - void setStartId(QWizard* theWrappedObject, int id); - void setSubTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format); - void setTitleFormat(QWizard* theWrappedObject, Qt::TextFormat format); - void setVisible(QWizard* theWrappedObject, bool visible); - void setWizardStyle(QWizard* theWrappedObject, QWizard::WizardStyle style); - QSize sizeHint(QWizard* theWrappedObject) const; - int startId(QWizard* theWrappedObject) const; - Qt::TextFormat subTitleFormat(QWizard* theWrappedObject) const; - bool testOption(QWizard* theWrappedObject, QWizard::WizardOption option) const; - Qt::TextFormat titleFormat(QWizard* theWrappedObject) const; - bool validateCurrentPage(QWizard* theWrappedObject); - QList visitedPages(QWizard* theWrappedObject) const; - QWizard::WizardStyle wizardStyle(QWizard* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QWizardPage : public QWizardPage -{ -public: - PythonQtShell_QWizardPage(QWidget* parent = 0):QWizardPage(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void cleanupPage(); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void initializePage(); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual bool isComplete() const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual int nextId() const; -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool validatePage(); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QWizardPage : public QWizardPage -{ public: -inline void promoted_cleanupPage() { QWizardPage::cleanupPage(); } -inline void promoted_initializePage() { QWizardPage::initializePage(); } -inline bool promoted_isComplete() const { return QWizardPage::isComplete(); } -inline int promoted_nextId() const { return QWizardPage::nextId(); } -inline bool promoted_validatePage() { return QWizardPage::validatePage(); } -}; - -class PythonQtWrapper_QWizardPage : public QObject -{ Q_OBJECT -public: -public slots: -QWizardPage* new_QWizardPage(QWidget* parent = 0); -void delete_QWizardPage(QWizardPage* obj) { delete obj; } - QString buttonText(QWizardPage* theWrappedObject, QWizard::WizardButton which) const; - void cleanupPage(QWizardPage* theWrappedObject); - void initializePage(QWizardPage* theWrappedObject); - bool isCommitPage(QWizardPage* theWrappedObject) const; - bool isComplete(QWizardPage* theWrappedObject) const; - bool isFinalPage(QWizardPage* theWrappedObject) const; - int nextId(QWizardPage* theWrappedObject) const; - QPixmap pixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which) const; - void setButtonText(QWizardPage* theWrappedObject, QWizard::WizardButton which, const QString& text); - void setCommitPage(QWizardPage* theWrappedObject, bool commitPage); - void setFinalPage(QWizardPage* theWrappedObject, bool finalPage); - void setPixmap(QWizardPage* theWrappedObject, QWizard::WizardPixmap which, const QPixmap& pixmap); - void setSubTitle(QWizardPage* theWrappedObject, const QString& subTitle); - void setTitle(QWizardPage* theWrappedObject, const QString& title); - QString subTitle(QWizardPage* theWrappedObject) const; - QString title(QWizardPage* theWrappedObject) const; - bool validatePage(QWizardPage* theWrappedObject); -}; - - - - - -class PythonQtShell_QWorkspace : public QWorkspace -{ -public: - PythonQtShell_QWorkspace(QWidget* parent = 0):QWorkspace(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* e); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* e); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QWorkspace : public QWorkspace -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QWorkspace::changeEvent(arg__1); } -inline void promoted_childEvent(QChildEvent* arg__1) { QWorkspace::childEvent(arg__1); } -inline bool promoted_event(QEvent* e) { return QWorkspace::event(e); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QWorkspace::eventFilter(arg__1, arg__2); } -inline void promoted_hideEvent(QHideEvent* e) { QWorkspace::hideEvent(e); } -inline void promoted_paintEvent(QPaintEvent* e) { QWorkspace::paintEvent(e); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QWorkspace::resizeEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* e) { QWorkspace::showEvent(e); } -inline void promoted_wheelEvent(QWheelEvent* e) { QWorkspace::wheelEvent(e); } -}; - -class PythonQtWrapper_QWorkspace : public QObject -{ Q_OBJECT -public: -Q_ENUMS(WindowOrder ) -enum WindowOrder{ - CreationOrder = QWorkspace::CreationOrder, StackingOrder = QWorkspace::StackingOrder}; -public slots: -QWorkspace* new_QWorkspace(QWidget* parent = 0); -void delete_QWorkspace(QWorkspace* obj) { delete obj; } - QWidget* activeWindow(QWorkspace* theWrappedObject) const; - QWidget* addWindow(QWorkspace* theWrappedObject, QWidget* w, Qt::WindowFlags flags = 0); - QBrush background(QWorkspace* theWrappedObject) const; - void changeEvent(QWorkspace* theWrappedObject, QEvent* arg__1); - void childEvent(QWorkspace* theWrappedObject, QChildEvent* arg__1); - bool event(QWorkspace* theWrappedObject, QEvent* e); - bool eventFilter(QWorkspace* theWrappedObject, QObject* arg__1, QEvent* arg__2); - void hideEvent(QWorkspace* theWrappedObject, QHideEvent* e); - void paintEvent(QWorkspace* theWrappedObject, QPaintEvent* e); - void resizeEvent(QWorkspace* theWrappedObject, QResizeEvent* arg__1); - bool scrollBarsEnabled(QWorkspace* theWrappedObject) const; - void setBackground(QWorkspace* theWrappedObject, const QBrush& background); - void setScrollBarsEnabled(QWorkspace* theWrappedObject, bool enable); - void showEvent(QWorkspace* theWrappedObject, QShowEvent* e); - QSize sizeHint(QWorkspace* theWrappedObject) const; - void wheelEvent(QWorkspace* theWrappedObject, QWheelEvent* e); - QList windowList(QWorkspace* theWrappedObject, QWorkspace::WindowOrder order = QWorkspace::CreationOrder) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp deleted file mode 100644 index bb3fda1af..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp +++ /dev/null @@ -1,13678 +0,0 @@ -#include "com_trolltech_qt_gui2.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QErrorMessage::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::accept(); -} -void PythonQtShell_QErrorMessage::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::actionEvent(arg__1); -} -void PythonQtShell_QErrorMessage::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::changeEvent(e); -} -void PythonQtShell_QErrorMessage::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::childEvent(arg__1); -} -void PythonQtShell_QErrorMessage::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::closeEvent(arg__1); -} -void PythonQtShell_QErrorMessage::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::contextMenuEvent(arg__1); -} -void PythonQtShell_QErrorMessage::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::customEvent(arg__1); -} -int PythonQtShell_QErrorMessage::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::devType(); -} -void PythonQtShell_QErrorMessage::done(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::done(arg__1); -} -void PythonQtShell_QErrorMessage::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::dragEnterEvent(arg__1); -} -void PythonQtShell_QErrorMessage::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::dragLeaveEvent(arg__1); -} -void PythonQtShell_QErrorMessage::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::dragMoveEvent(arg__1); -} -void PythonQtShell_QErrorMessage::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::dropEvent(arg__1); -} -void PythonQtShell_QErrorMessage::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::enterEvent(arg__1); -} -bool PythonQtShell_QErrorMessage::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::event(arg__1); -} -bool PythonQtShell_QErrorMessage::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QErrorMessage::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::focusInEvent(arg__1); -} -bool PythonQtShell_QErrorMessage::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::focusNextPrevChild(next); -} -void PythonQtShell_QErrorMessage::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::focusOutEvent(arg__1); -} -int PythonQtShell_QErrorMessage::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::heightForWidth(arg__1); -} -void PythonQtShell_QErrorMessage::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::hideEvent(arg__1); -} -void PythonQtShell_QErrorMessage::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QErrorMessage::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::inputMethodQuery(arg__1); -} -void PythonQtShell_QErrorMessage::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::keyPressEvent(arg__1); -} -void PythonQtShell_QErrorMessage::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::keyReleaseEvent(arg__1); -} -void PythonQtShell_QErrorMessage::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::languageChange(); -} -void PythonQtShell_QErrorMessage::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::leaveEvent(arg__1); -} -int PythonQtShell_QErrorMessage::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::metric(arg__1); -} -void PythonQtShell_QErrorMessage::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QErrorMessage::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::mouseMoveEvent(arg__1); -} -void PythonQtShell_QErrorMessage::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::mousePressEvent(arg__1); -} -void PythonQtShell_QErrorMessage::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QErrorMessage::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QErrorMessage::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QErrorMessage::paintEngine(); -} -void PythonQtShell_QErrorMessage::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::paintEvent(arg__1); -} -void PythonQtShell_QErrorMessage::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::reject(); -} -void PythonQtShell_QErrorMessage::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::resizeEvent(arg__1); -} -void PythonQtShell_QErrorMessage::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::showEvent(arg__1); -} -void PythonQtShell_QErrorMessage::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::tabletEvent(arg__1); -} -void PythonQtShell_QErrorMessage::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::timerEvent(arg__1); -} -void PythonQtShell_QErrorMessage::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QErrorMessage::wheelEvent(arg__1); -} -QErrorMessage* PythonQtWrapper_QErrorMessage::new_QErrorMessage(QWidget* parent) -{ -return new PythonQtShell_QErrorMessage(parent); } - -void PythonQtWrapper_QErrorMessage::changeEvent(QErrorMessage* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QErrorMessage*)theWrappedObject)->promoted_changeEvent(e)); -} - -void PythonQtWrapper_QErrorMessage::done(QErrorMessage* theWrappedObject, int arg__1) -{ - ( ((PythonQtPublicPromoter_QErrorMessage*)theWrappedObject)->promoted_done(arg__1)); -} - -QErrorMessage* PythonQtWrapper_QErrorMessage::static_QErrorMessage_qtHandler() -{ - return (QErrorMessage::qtHandler()); -} - - - -void PythonQtShell_QFileDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::accept(); -} -void PythonQtShell_QFileDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::actionEvent(arg__1); -} -void PythonQtShell_QFileDialog::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::changeEvent(e); -} -void PythonQtShell_QFileDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::childEvent(arg__1); -} -void PythonQtShell_QFileDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::closeEvent(arg__1); -} -void PythonQtShell_QFileDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QFileDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::customEvent(arg__1); -} -int PythonQtShell_QFileDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::devType(); -} -void PythonQtShell_QFileDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::done(result); -} -void PythonQtShell_QFileDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QFileDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QFileDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QFileDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::dropEvent(arg__1); -} -void PythonQtShell_QFileDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::enterEvent(arg__1); -} -bool PythonQtShell_QFileDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::event(arg__1); -} -bool PythonQtShell_QFileDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QFileDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QFileDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::focusNextPrevChild(next); -} -void PythonQtShell_QFileDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QFileDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::heightForWidth(arg__1); -} -void PythonQtShell_QFileDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::hideEvent(arg__1); -} -void PythonQtShell_QFileDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QFileDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QFileDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QFileDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QFileDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::languageChange(); -} -void PythonQtShell_QFileDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::leaveEvent(arg__1); -} -int PythonQtShell_QFileDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::metric(arg__1); -} -void PythonQtShell_QFileDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QFileDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QFileDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QFileDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QFileDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QFileDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileDialog::paintEngine(); -} -void PythonQtShell_QFileDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::paintEvent(arg__1); -} -void PythonQtShell_QFileDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::reject(); -} -void PythonQtShell_QFileDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::resizeEvent(arg__1); -} -void PythonQtShell_QFileDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::showEvent(arg__1); -} -void PythonQtShell_QFileDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::tabletEvent(arg__1); -} -void PythonQtShell_QFileDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::timerEvent(arg__1); -} -void PythonQtShell_QFileDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFileDialog::wheelEvent(arg__1); -} -QFileDialog* PythonQtWrapper_QFileDialog::new_QFileDialog(QWidget* parent, Qt::WindowFlags f) -{ -return new PythonQtShell_QFileDialog(parent, f); } - -QFileDialog* PythonQtWrapper_QFileDialog::new_QFileDialog(QWidget* parent, const QString& caption, const QString& directory, const QString& filter) -{ -return new PythonQtShell_QFileDialog(parent, caption, directory, filter); } - -void PythonQtWrapper_QFileDialog::accept(QFileDialog* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QFileDialog*)theWrappedObject)->promoted_accept()); -} - -QFileDialog::AcceptMode PythonQtWrapper_QFileDialog::acceptMode(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->acceptMode()); -} - -void PythonQtWrapper_QFileDialog::changeEvent(QFileDialog* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QFileDialog*)theWrappedObject)->promoted_changeEvent(e)); -} - -bool PythonQtWrapper_QFileDialog::confirmOverwrite(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->confirmOverwrite()); -} - -QString PythonQtWrapper_QFileDialog::defaultSuffix(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->defaultSuffix()); -} - -QDir PythonQtWrapper_QFileDialog::directory(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->directory()); -} - -void PythonQtWrapper_QFileDialog::done(QFileDialog* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QFileDialog*)theWrappedObject)->promoted_done(result)); -} - -QFileDialog::FileMode PythonQtWrapper_QFileDialog::fileMode(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->fileMode()); -} - -QDir::Filters PythonQtWrapper_QFileDialog::filter(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->filter()); -} - -QStringList PythonQtWrapper_QFileDialog::filters(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->filters()); -} - -QString PythonQtWrapper_QFileDialog::static_QFileDialog_getExistingDirectory(QWidget* parent, const QString& caption, const QString& dir, QFileDialog::Options options) -{ - return (QFileDialog::getExistingDirectory(parent, caption, dir, options)); -} - -QString PythonQtWrapper_QFileDialog::static_QFileDialog_getOpenFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedFilter, QFileDialog::Options options) -{ - return (QFileDialog::getOpenFileName(parent, caption, dir, filter, selectedFilter, options)); -} - -QStringList PythonQtWrapper_QFileDialog::static_QFileDialog_getOpenFileNames(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedFilter, QFileDialog::Options options) -{ - return (QFileDialog::getOpenFileNames(parent, caption, dir, filter, selectedFilter, options)); -} - -QString PythonQtWrapper_QFileDialog::static_QFileDialog_getSaveFileName(QWidget* parent, const QString& caption, const QString& dir, const QString& filter, QString* selectedFilter, QFileDialog::Options options) -{ - return (QFileDialog::getSaveFileName(parent, caption, dir, filter, selectedFilter, options)); -} - -QStringList PythonQtWrapper_QFileDialog::history(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->history()); -} - -QFileIconProvider* PythonQtWrapper_QFileDialog::iconProvider(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->iconProvider()); -} - -bool PythonQtWrapper_QFileDialog::isNameFilterDetailsVisible(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->isNameFilterDetailsVisible()); -} - -bool PythonQtWrapper_QFileDialog::isReadOnly(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->isReadOnly()); -} - -QAbstractItemDelegate* PythonQtWrapper_QFileDialog::itemDelegate(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->itemDelegate()); -} - -QString PythonQtWrapper_QFileDialog::labelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label) const -{ - return ( theWrappedObject->labelText(label)); -} - -QStringList PythonQtWrapper_QFileDialog::nameFilters(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->nameFilters()); -} - -void PythonQtWrapper_QFileDialog::open(QFileDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QFileDialog::open(QFileDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QFileDialog::Options PythonQtWrapper_QFileDialog::options(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->options()); -} - -QAbstractProxyModel* PythonQtWrapper_QFileDialog::proxyModel(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->proxyModel()); -} - -bool PythonQtWrapper_QFileDialog::resolveSymlinks(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->resolveSymlinks()); -} - -bool PythonQtWrapper_QFileDialog::restoreState(QFileDialog* theWrappedObject, const QByteArray& state) -{ - return ( theWrappedObject->restoreState(state)); -} - -QByteArray PythonQtWrapper_QFileDialog::saveState(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->saveState()); -} - -void PythonQtWrapper_QFileDialog::selectFile(QFileDialog* theWrappedObject, const QString& filename) -{ - ( theWrappedObject->selectFile(filename)); -} - -void PythonQtWrapper_QFileDialog::selectFilter(QFileDialog* theWrappedObject, const QString& filter) -{ - ( theWrappedObject->selectFilter(filter)); -} - -void PythonQtWrapper_QFileDialog::selectNameFilter(QFileDialog* theWrappedObject, const QString& filter) -{ - ( theWrappedObject->selectNameFilter(filter)); -} - -QStringList PythonQtWrapper_QFileDialog::selectedFiles(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->selectedFiles()); -} - -QString PythonQtWrapper_QFileDialog::selectedFilter(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->selectedFilter()); -} - -QString PythonQtWrapper_QFileDialog::selectedNameFilter(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->selectedNameFilter()); -} - -void PythonQtWrapper_QFileDialog::setAcceptMode(QFileDialog* theWrappedObject, QFileDialog::AcceptMode mode) -{ - ( theWrappedObject->setAcceptMode(mode)); -} - -void PythonQtWrapper_QFileDialog::setConfirmOverwrite(QFileDialog* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setConfirmOverwrite(enabled)); -} - -void PythonQtWrapper_QFileDialog::setDefaultSuffix(QFileDialog* theWrappedObject, const QString& suffix) -{ - ( theWrappedObject->setDefaultSuffix(suffix)); -} - -void PythonQtWrapper_QFileDialog::setDirectory(QFileDialog* theWrappedObject, const QDir& directory) -{ - ( theWrappedObject->setDirectory(directory)); -} - -void PythonQtWrapper_QFileDialog::setDirectory(QFileDialog* theWrappedObject, const QString& directory) -{ - ( theWrappedObject->setDirectory(directory)); -} - -void PythonQtWrapper_QFileDialog::setFileMode(QFileDialog* theWrappedObject, QFileDialog::FileMode mode) -{ - ( theWrappedObject->setFileMode(mode)); -} - -void PythonQtWrapper_QFileDialog::setFilter(QFileDialog* theWrappedObject, QDir::Filters filters) -{ - ( theWrappedObject->setFilter(filters)); -} - -void PythonQtWrapper_QFileDialog::setFilter(QFileDialog* theWrappedObject, const QString& filter) -{ - ( theWrappedObject->setFilter(filter)); -} - -void PythonQtWrapper_QFileDialog::setFilters(QFileDialog* theWrappedObject, const QStringList& filters) -{ - ( theWrappedObject->setFilters(filters)); -} - -void PythonQtWrapper_QFileDialog::setHistory(QFileDialog* theWrappedObject, const QStringList& paths) -{ - ( theWrappedObject->setHistory(paths)); -} - -void PythonQtWrapper_QFileDialog::setIconProvider(QFileDialog* theWrappedObject, QFileIconProvider* provider) -{ - ( theWrappedObject->setIconProvider(provider)); -} - -void PythonQtWrapper_QFileDialog::setItemDelegate(QFileDialog* theWrappedObject, QAbstractItemDelegate* delegate) -{ - ( theWrappedObject->setItemDelegate(delegate)); -} - -void PythonQtWrapper_QFileDialog::setLabelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label, const QString& text) -{ - ( theWrappedObject->setLabelText(label, text)); -} - -void PythonQtWrapper_QFileDialog::setNameFilter(QFileDialog* theWrappedObject, const QString& filter) -{ - ( theWrappedObject->setNameFilter(filter)); -} - -void PythonQtWrapper_QFileDialog::setNameFilterDetailsVisible(QFileDialog* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setNameFilterDetailsVisible(enabled)); -} - -void PythonQtWrapper_QFileDialog::setNameFilters(QFileDialog* theWrappedObject, const QStringList& filters) -{ - ( theWrappedObject->setNameFilters(filters)); -} - -void PythonQtWrapper_QFileDialog::setOption(QFileDialog* theWrappedObject, QFileDialog::Option option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QFileDialog::setOptions(QFileDialog* theWrappedObject, QFileDialog::Options options) -{ - ( theWrappedObject->setOptions(options)); -} - -void PythonQtWrapper_QFileDialog::setProxyModel(QFileDialog* theWrappedObject, QAbstractProxyModel* model) -{ - ( theWrappedObject->setProxyModel(model)); -} - -void PythonQtWrapper_QFileDialog::setReadOnly(QFileDialog* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setReadOnly(enabled)); -} - -void PythonQtWrapper_QFileDialog::setResolveSymlinks(QFileDialog* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setResolveSymlinks(enabled)); -} - -void PythonQtWrapper_QFileDialog::setSidebarUrls(QFileDialog* theWrappedObject, const QList& urls) -{ - ( theWrappedObject->setSidebarUrls(urls)); -} - -void PythonQtWrapper_QFileDialog::setViewMode(QFileDialog* theWrappedObject, QFileDialog::ViewMode mode) -{ - ( theWrappedObject->setViewMode(mode)); -} - -void PythonQtWrapper_QFileDialog::setVisible(QFileDialog* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -QList PythonQtWrapper_QFileDialog::sidebarUrls(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->sidebarUrls()); -} - -bool PythonQtWrapper_QFileDialog::testOption(QFileDialog* theWrappedObject, QFileDialog::Option option) const -{ - return ( theWrappedObject->testOption(option)); -} - -QFileDialog::ViewMode PythonQtWrapper_QFileDialog::viewMode(QFileDialog* theWrappedObject) const -{ - return ( theWrappedObject->viewMode()); -} - - - -QIcon PythonQtShell_QFileIconProvider::icon(QFileIconProvider::IconType type) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "icon"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIcon" , "QFileIconProvider::IconType"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIcon returnValue; - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("icon", methodInfo, result); - } else { - returnValue = *((QIcon*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileIconProvider::icon(type); -} -QIcon PythonQtShell_QFileIconProvider::icon(const QFileInfo& info) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "icon"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIcon" , "const QFileInfo&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIcon returnValue; - void* args[2] = {NULL, (void*)&info}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("icon", methodInfo, result); - } else { - returnValue = *((QIcon*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileIconProvider::icon(info); -} -QString PythonQtShell_QFileIconProvider::type(const QFileInfo& info) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QFileInfo&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&info}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFileIconProvider::type(info); -} -QFileIconProvider* PythonQtWrapper_QFileIconProvider::new_QFileIconProvider() -{ -return new PythonQtShell_QFileIconProvider(); } - -QIcon PythonQtWrapper_QFileIconProvider::icon(QFileIconProvider* theWrappedObject, QFileIconProvider::IconType type) const -{ - return ( ((PythonQtPublicPromoter_QFileIconProvider*)theWrappedObject)->promoted_icon(type)); -} - -QIcon PythonQtWrapper_QFileIconProvider::icon(QFileIconProvider* theWrappedObject, const QFileInfo& info) const -{ - return ( ((PythonQtPublicPromoter_QFileIconProvider*)theWrappedObject)->promoted_icon(info)); -} - -QString PythonQtWrapper_QFileIconProvider::type(QFileIconProvider* theWrappedObject, const QFileInfo& info) const -{ - return ( ((PythonQtPublicPromoter_QFileIconProvider*)theWrappedObject)->promoted_type(info)); -} - - - -QFileOpenEvent* PythonQtWrapper_QFileOpenEvent::new_QFileOpenEvent(const QString& file) -{ -return new QFileOpenEvent(file); } - -QFileOpenEvent* PythonQtWrapper_QFileOpenEvent::new_QFileOpenEvent(const QUrl& url) -{ -return new QFileOpenEvent(url); } - -QString PythonQtWrapper_QFileOpenEvent::file(QFileOpenEvent* theWrappedObject) const -{ - return ( theWrappedObject->file()); -} - -QUrl PythonQtWrapper_QFileOpenEvent::url(QFileOpenEvent* theWrappedObject) const -{ - return ( theWrappedObject->url()); -} - - - -QFocusEvent* PythonQtWrapper_QFocusEvent::new_QFocusEvent(QEvent::Type type, Qt::FocusReason reason) -{ -return new QFocusEvent(type, reason); } - -bool PythonQtWrapper_QFocusEvent::gotFocus(QFocusEvent* theWrappedObject) const -{ - return ( theWrappedObject->gotFocus()); -} - -bool PythonQtWrapper_QFocusEvent::lostFocus(QFocusEvent* theWrappedObject) const -{ - return ( theWrappedObject->lostFocus()); -} - -Qt::FocusReason PythonQtWrapper_QFocusEvent::reason(QFocusEvent* theWrappedObject) -{ - return ( theWrappedObject->reason()); -} - - - -void PythonQtShell_QFocusFrame::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::actionEvent(arg__1); -} -void PythonQtShell_QFocusFrame::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::changeEvent(arg__1); -} -void PythonQtShell_QFocusFrame::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::childEvent(arg__1); -} -void PythonQtShell_QFocusFrame::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::closeEvent(arg__1); -} -void PythonQtShell_QFocusFrame::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::contextMenuEvent(arg__1); -} -void PythonQtShell_QFocusFrame::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::customEvent(arg__1); -} -int PythonQtShell_QFocusFrame::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::devType(); -} -void PythonQtShell_QFocusFrame::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::dragEnterEvent(arg__1); -} -void PythonQtShell_QFocusFrame::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::dragLeaveEvent(arg__1); -} -void PythonQtShell_QFocusFrame::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::dragMoveEvent(arg__1); -} -void PythonQtShell_QFocusFrame::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::dropEvent(arg__1); -} -void PythonQtShell_QFocusFrame::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::enterEvent(arg__1); -} -bool PythonQtShell_QFocusFrame::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::event(e); -} -bool PythonQtShell_QFocusFrame::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QFocusFrame::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::focusInEvent(arg__1); -} -bool PythonQtShell_QFocusFrame::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::focusNextPrevChild(next); -} -void PythonQtShell_QFocusFrame::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::focusOutEvent(arg__1); -} -int PythonQtShell_QFocusFrame::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::heightForWidth(arg__1); -} -void PythonQtShell_QFocusFrame::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::hideEvent(arg__1); -} -void PythonQtShell_QFocusFrame::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QFocusFrame::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::inputMethodQuery(arg__1); -} -void PythonQtShell_QFocusFrame::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::keyPressEvent(arg__1); -} -void PythonQtShell_QFocusFrame::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::keyReleaseEvent(arg__1); -} -void PythonQtShell_QFocusFrame::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::languageChange(); -} -void PythonQtShell_QFocusFrame::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::leaveEvent(arg__1); -} -int PythonQtShell_QFocusFrame::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::metric(arg__1); -} -QSize PythonQtShell_QFocusFrame::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::minimumSizeHint(); -} -void PythonQtShell_QFocusFrame::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QFocusFrame::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::mouseMoveEvent(arg__1); -} -void PythonQtShell_QFocusFrame::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::mousePressEvent(arg__1); -} -void PythonQtShell_QFocusFrame::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QFocusFrame::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QFocusFrame::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::paintEngine(); -} -void PythonQtShell_QFocusFrame::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::paintEvent(arg__1); -} -void PythonQtShell_QFocusFrame::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::resizeEvent(arg__1); -} -void PythonQtShell_QFocusFrame::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::showEvent(arg__1); -} -QSize PythonQtShell_QFocusFrame::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFocusFrame::sizeHint(); -} -void PythonQtShell_QFocusFrame::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::tabletEvent(arg__1); -} -void PythonQtShell_QFocusFrame::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::timerEvent(arg__1); -} -void PythonQtShell_QFocusFrame::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFocusFrame::wheelEvent(arg__1); -} -QFocusFrame* PythonQtWrapper_QFocusFrame::new_QFocusFrame(QWidget* parent) -{ -return new PythonQtShell_QFocusFrame(parent); } - -bool PythonQtWrapper_QFocusFrame::event(QFocusFrame* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QFocusFrame*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QFocusFrame::eventFilter(QFocusFrame* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QFocusFrame*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -void PythonQtWrapper_QFocusFrame::paintEvent(QFocusFrame* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QFocusFrame*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QFocusFrame::setWidget(QFocusFrame* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setWidget(widget)); -} - -QWidget* PythonQtWrapper_QFocusFrame::widget(QFocusFrame* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - - - -void PythonQtShell_QFontComboBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::actionEvent(arg__1); -} -void PythonQtShell_QFontComboBox::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::changeEvent(e); -} -void PythonQtShell_QFontComboBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::childEvent(arg__1); -} -void PythonQtShell_QFontComboBox::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::closeEvent(arg__1); -} -void PythonQtShell_QFontComboBox::contextMenuEvent(QContextMenuEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::contextMenuEvent(e); -} -void PythonQtShell_QFontComboBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::customEvent(arg__1); -} -int PythonQtShell_QFontComboBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::devType(); -} -void PythonQtShell_QFontComboBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QFontComboBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QFontComboBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QFontComboBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::dropEvent(arg__1); -} -void PythonQtShell_QFontComboBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::enterEvent(arg__1); -} -bool PythonQtShell_QFontComboBox::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::event(e); -} -bool PythonQtShell_QFontComboBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QFontComboBox::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::focusInEvent(e); -} -bool PythonQtShell_QFontComboBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::focusNextPrevChild(next); -} -void PythonQtShell_QFontComboBox::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::focusOutEvent(e); -} -int PythonQtShell_QFontComboBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::heightForWidth(arg__1); -} -void PythonQtShell_QFontComboBox::hideEvent(QHideEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::hideEvent(e); -} -void PythonQtShell_QFontComboBox::hidePopup() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hidePopup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::hidePopup(); -} -void PythonQtShell_QFontComboBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QFontComboBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QFontComboBox::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::keyPressEvent(e); -} -void PythonQtShell_QFontComboBox::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::keyReleaseEvent(e); -} -void PythonQtShell_QFontComboBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::languageChange(); -} -void PythonQtShell_QFontComboBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::leaveEvent(arg__1); -} -int PythonQtShell_QFontComboBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::metric(arg__1); -} -void PythonQtShell_QFontComboBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QFontComboBox::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::mouseMoveEvent(arg__1); -} -void PythonQtShell_QFontComboBox::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::mousePressEvent(e); -} -void PythonQtShell_QFontComboBox::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::mouseReleaseEvent(e); -} -void PythonQtShell_QFontComboBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QFontComboBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontComboBox::paintEngine(); -} -void PythonQtShell_QFontComboBox::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::paintEvent(e); -} -void PythonQtShell_QFontComboBox::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::resizeEvent(e); -} -void PythonQtShell_QFontComboBox::showEvent(QShowEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::showEvent(e); -} -void PythonQtShell_QFontComboBox::showPopup() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showPopup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::showPopup(); -} -void PythonQtShell_QFontComboBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::tabletEvent(arg__1); -} -void PythonQtShell_QFontComboBox::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::timerEvent(arg__1); -} -void PythonQtShell_QFontComboBox::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontComboBox::wheelEvent(e); -} -QFontComboBox* PythonQtWrapper_QFontComboBox::new_QFontComboBox(QWidget* parent) -{ -return new PythonQtShell_QFontComboBox(parent); } - -QFont PythonQtWrapper_QFontComboBox::currentFont(QFontComboBox* theWrappedObject) const -{ - return ( theWrappedObject->currentFont()); -} - -bool PythonQtWrapper_QFontComboBox::event(QFontComboBox* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QFontComboBox*)theWrappedObject)->promoted_event(e)); -} - -QFontComboBox::FontFilters PythonQtWrapper_QFontComboBox::fontFilters(QFontComboBox* theWrappedObject) const -{ - return ( theWrappedObject->fontFilters()); -} - -void PythonQtWrapper_QFontComboBox::setFontFilters(QFontComboBox* theWrappedObject, QFontComboBox::FontFilters filters) -{ - ( theWrappedObject->setFontFilters(filters)); -} - -void PythonQtWrapper_QFontComboBox::setWritingSystem(QFontComboBox* theWrappedObject, QFontDatabase::WritingSystem arg__1) -{ - ( theWrappedObject->setWritingSystem(arg__1)); -} - -QSize PythonQtWrapper_QFontComboBox::sizeHint(QFontComboBox* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QFontDatabase::WritingSystem PythonQtWrapper_QFontComboBox::writingSystem(QFontComboBox* theWrappedObject) const -{ - return ( theWrappedObject->writingSystem()); -} - - - -void PythonQtShell_QFontDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::accept(); -} -void PythonQtShell_QFontDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::actionEvent(arg__1); -} -void PythonQtShell_QFontDialog::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::changeEvent(event); -} -void PythonQtShell_QFontDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::childEvent(arg__1); -} -void PythonQtShell_QFontDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::closeEvent(arg__1); -} -void PythonQtShell_QFontDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QFontDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::customEvent(arg__1); -} -int PythonQtShell_QFontDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontDialog::devType(); -} -void PythonQtShell_QFontDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::done(result); -} -void PythonQtShell_QFontDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QFontDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QFontDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QFontDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::dropEvent(arg__1); -} -void PythonQtShell_QFontDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::enterEvent(arg__1); -} -bool PythonQtShell_QFontDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontDialog::event(arg__1); -} -void PythonQtShell_QFontDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QFontDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontDialog::focusNextPrevChild(next); -} -void PythonQtShell_QFontDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QFontDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontDialog::heightForWidth(arg__1); -} -void PythonQtShell_QFontDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::hideEvent(arg__1); -} -void PythonQtShell_QFontDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QFontDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QFontDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QFontDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QFontDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::languageChange(); -} -void PythonQtShell_QFontDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::leaveEvent(arg__1); -} -int PythonQtShell_QFontDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontDialog::metric(arg__1); -} -void PythonQtShell_QFontDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QFontDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QFontDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QFontDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QFontDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QFontDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFontDialog::paintEngine(); -} -void PythonQtShell_QFontDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::paintEvent(arg__1); -} -void PythonQtShell_QFontDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::reject(); -} -void PythonQtShell_QFontDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::resizeEvent(arg__1); -} -void PythonQtShell_QFontDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::showEvent(arg__1); -} -void PythonQtShell_QFontDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::tabletEvent(arg__1); -} -void PythonQtShell_QFontDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::timerEvent(arg__1); -} -void PythonQtShell_QFontDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFontDialog::wheelEvent(arg__1); -} -QFontDialog* PythonQtWrapper_QFontDialog::new_QFontDialog(QWidget* parent) -{ -return new PythonQtShell_QFontDialog(parent); } - -QFontDialog* PythonQtWrapper_QFontDialog::new_QFontDialog(const QFont& initial, QWidget* parent) -{ -return new PythonQtShell_QFontDialog(initial, parent); } - -void PythonQtWrapper_QFontDialog::changeEvent(QFontDialog* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QFontDialog*)theWrappedObject)->promoted_changeEvent(event)); -} - -QFont PythonQtWrapper_QFontDialog::currentFont(QFontDialog* theWrappedObject) const -{ - return ( theWrappedObject->currentFont()); -} - -void PythonQtWrapper_QFontDialog::done(QFontDialog* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QFontDialog*)theWrappedObject)->promoted_done(result)); -} - -QFont PythonQtWrapper_QFontDialog::static_QFontDialog_getFont(bool* ok, QWidget* parent) -{ - return (QFontDialog::getFont(ok, parent)); -} - -QFont PythonQtWrapper_QFontDialog::static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent) -{ - return (QFontDialog::getFont(ok, initial, parent)); -} - -QFont PythonQtWrapper_QFontDialog::static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent, const QString& title) -{ - return (QFontDialog::getFont(ok, initial, parent, title)); -} - -QFont PythonQtWrapper_QFontDialog::static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent, const QString& title, QFontDialog::FontDialogOptions options) -{ - return (QFontDialog::getFont(ok, initial, parent, title, options)); -} - -void PythonQtWrapper_QFontDialog::open(QFontDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QFontDialog::open(QFontDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QFontDialog::FontDialogOptions PythonQtWrapper_QFontDialog::options(QFontDialog* theWrappedObject) const -{ - return ( theWrappedObject->options()); -} - -QFont PythonQtWrapper_QFontDialog::selectedFont(QFontDialog* theWrappedObject) const -{ - return ( theWrappedObject->selectedFont()); -} - -void PythonQtWrapper_QFontDialog::setCurrentFont(QFontDialog* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setCurrentFont(font)); -} - -void PythonQtWrapper_QFontDialog::setOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QFontDialog::setOptions(QFontDialog* theWrappedObject, QFontDialog::FontDialogOptions options) -{ - ( theWrappedObject->setOptions(options)); -} - -void PythonQtWrapper_QFontDialog::setVisible(QFontDialog* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -bool PythonQtWrapper_QFontDialog::testOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option) const -{ - return ( theWrappedObject->testOption(option)); -} - - - -QFontInfo* PythonQtWrapper_QFontInfo::new_QFontInfo(const QFont& arg__1) -{ -return new QFontInfo(arg__1); } - -QFontInfo* PythonQtWrapper_QFontInfo::new_QFontInfo(const QFontInfo& arg__1) -{ -return new QFontInfo(arg__1); } - -bool PythonQtWrapper_QFontInfo::bold(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->bold()); -} - -bool PythonQtWrapper_QFontInfo::exactMatch(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->exactMatch()); -} - -QString PythonQtWrapper_QFontInfo::family(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->family()); -} - -bool PythonQtWrapper_QFontInfo::fixedPitch(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->fixedPitch()); -} - -bool PythonQtWrapper_QFontInfo::italic(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->italic()); -} - -bool PythonQtWrapper_QFontInfo::overline(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->overline()); -} - -int PythonQtWrapper_QFontInfo::pixelSize(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->pixelSize()); -} - -int PythonQtWrapper_QFontInfo::pointSize(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->pointSize()); -} - -qreal PythonQtWrapper_QFontInfo::pointSizeF(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->pointSizeF()); -} - -bool PythonQtWrapper_QFontInfo::rawMode(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->rawMode()); -} - -bool PythonQtWrapper_QFontInfo::strikeOut(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->strikeOut()); -} - -QFont::Style PythonQtWrapper_QFontInfo::style(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - -QFont::StyleHint PythonQtWrapper_QFontInfo::styleHint(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->styleHint()); -} - -bool PythonQtWrapper_QFontInfo::underline(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->underline()); -} - -int PythonQtWrapper_QFontInfo::weight(QFontInfo* theWrappedObject) const -{ - return ( theWrappedObject->weight()); -} - - - -QFontMetrics* PythonQtWrapper_QFontMetrics::new_QFontMetrics(const QFont& arg__1) -{ -return new QFontMetrics(arg__1); } - -QFontMetrics* PythonQtWrapper_QFontMetrics::new_QFontMetrics(const QFont& arg__1, QPaintDevice* pd) -{ -return new QFontMetrics(arg__1, pd); } - -int PythonQtWrapper_QFontMetrics::ascent(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->ascent()); -} - -int PythonQtWrapper_QFontMetrics::averageCharWidth(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->averageCharWidth()); -} - -QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->boundingRect(arg__1)); -} - -QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, const QRect& r, int flags, const QString& text, int tabstops, int* tabarray) const -{ - return ( theWrappedObject->boundingRect(r, flags, text, tabstops, tabarray)); -} - -QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, const QString& text) const -{ - return ( theWrappedObject->boundingRect(text)); -} - -QRect PythonQtWrapper_QFontMetrics::boundingRect(QFontMetrics* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, int tabstops, int* tabarray) const -{ - return ( theWrappedObject->boundingRect(x, y, w, h, flags, text, tabstops, tabarray)); -} - -int PythonQtWrapper_QFontMetrics::charWidth(QFontMetrics* theWrappedObject, const QString& str, int pos) const -{ - return ( theWrappedObject->charWidth(str, pos)); -} - -int PythonQtWrapper_QFontMetrics::descent(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->descent()); -} - -QString PythonQtWrapper_QFontMetrics::elidedText(QFontMetrics* theWrappedObject, const QString& text, Qt::TextElideMode mode, int width, int flags) const -{ - return ( theWrappedObject->elidedText(text, mode, width, flags)); -} - -int PythonQtWrapper_QFontMetrics::height(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QFontMetrics::inFont(QFontMetrics* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->inFont(arg__1)); -} - -int PythonQtWrapper_QFontMetrics::leading(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->leading()); -} - -int PythonQtWrapper_QFontMetrics::leftBearing(QFontMetrics* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->leftBearing(arg__1)); -} - -int PythonQtWrapper_QFontMetrics::lineSpacing(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->lineSpacing()); -} - -int PythonQtWrapper_QFontMetrics::lineWidth(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->lineWidth()); -} - -int PythonQtWrapper_QFontMetrics::maxWidth(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->maxWidth()); -} - -int PythonQtWrapper_QFontMetrics::minLeftBearing(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->minLeftBearing()); -} - -int PythonQtWrapper_QFontMetrics::minRightBearing(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->minRightBearing()); -} - -int PythonQtWrapper_QFontMetrics::overlinePos(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->overlinePos()); -} - -int PythonQtWrapper_QFontMetrics::rightBearing(QFontMetrics* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->rightBearing(arg__1)); -} - -QSize PythonQtWrapper_QFontMetrics::size(QFontMetrics* theWrappedObject, int flags, const QString& str, int tabstops, int* tabarray) const -{ - return ( theWrappedObject->size(flags, str, tabstops, tabarray)); -} - -int PythonQtWrapper_QFontMetrics::strikeOutPos(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->strikeOutPos()); -} - -QRect PythonQtWrapper_QFontMetrics::tightBoundingRect(QFontMetrics* theWrappedObject, const QString& text) const -{ - return ( theWrappedObject->tightBoundingRect(text)); -} - -int PythonQtWrapper_QFontMetrics::underlinePos(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->underlinePos()); -} - -int PythonQtWrapper_QFontMetrics::width(QFontMetrics* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->width(arg__1)); -} - -int PythonQtWrapper_QFontMetrics::width(QFontMetrics* theWrappedObject, const QString& arg__1, int len) const -{ - return ( theWrappedObject->width(arg__1, len)); -} - -int PythonQtWrapper_QFontMetrics::xHeight(QFontMetrics* theWrappedObject) const -{ - return ( theWrappedObject->xHeight()); -} - - - -QFontMetricsF* PythonQtWrapper_QFontMetricsF::new_QFontMetricsF(const QFont& arg__1) -{ -return new QFontMetricsF(arg__1); } - -QFontMetricsF* PythonQtWrapper_QFontMetricsF::new_QFontMetricsF(const QFont& arg__1, QPaintDevice* pd) -{ -return new QFontMetricsF(arg__1, pd); } - -qreal PythonQtWrapper_QFontMetricsF::ascent(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->ascent()); -} - -qreal PythonQtWrapper_QFontMetricsF::averageCharWidth(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->averageCharWidth()); -} - -QRectF PythonQtWrapper_QFontMetricsF::boundingRect(QFontMetricsF* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->boundingRect(arg__1)); -} - -QRectF PythonQtWrapper_QFontMetricsF::boundingRect(QFontMetricsF* theWrappedObject, const QRectF& r, int flags, const QString& string, int tabstops, int* tabarray) const -{ - return ( theWrappedObject->boundingRect(r, flags, string, tabstops, tabarray)); -} - -QRectF PythonQtWrapper_QFontMetricsF::boundingRect(QFontMetricsF* theWrappedObject, const QString& string) const -{ - return ( theWrappedObject->boundingRect(string)); -} - -qreal PythonQtWrapper_QFontMetricsF::descent(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->descent()); -} - -QString PythonQtWrapper_QFontMetricsF::elidedText(QFontMetricsF* theWrappedObject, const QString& text, Qt::TextElideMode mode, qreal width, int flags) const -{ - return ( theWrappedObject->elidedText(text, mode, width, flags)); -} - -qreal PythonQtWrapper_QFontMetricsF::height(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QFontMetricsF::inFont(QFontMetricsF* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->inFont(arg__1)); -} - -qreal PythonQtWrapper_QFontMetricsF::leading(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->leading()); -} - -qreal PythonQtWrapper_QFontMetricsF::leftBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->leftBearing(arg__1)); -} - -qreal PythonQtWrapper_QFontMetricsF::lineSpacing(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->lineSpacing()); -} - -qreal PythonQtWrapper_QFontMetricsF::lineWidth(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->lineWidth()); -} - -qreal PythonQtWrapper_QFontMetricsF::maxWidth(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->maxWidth()); -} - -qreal PythonQtWrapper_QFontMetricsF::minLeftBearing(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->minLeftBearing()); -} - -qreal PythonQtWrapper_QFontMetricsF::minRightBearing(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->minRightBearing()); -} - -qreal PythonQtWrapper_QFontMetricsF::overlinePos(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->overlinePos()); -} - -qreal PythonQtWrapper_QFontMetricsF::rightBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->rightBearing(arg__1)); -} - -QSizeF PythonQtWrapper_QFontMetricsF::size(QFontMetricsF* theWrappedObject, int flags, const QString& str, int tabstops, int* tabarray) const -{ - return ( theWrappedObject->size(flags, str, tabstops, tabarray)); -} - -qreal PythonQtWrapper_QFontMetricsF::strikeOutPos(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->strikeOutPos()); -} - -QRectF PythonQtWrapper_QFontMetricsF::tightBoundingRect(QFontMetricsF* theWrappedObject, const QString& text) const -{ - return ( theWrappedObject->tightBoundingRect(text)); -} - -qreal PythonQtWrapper_QFontMetricsF::underlinePos(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->underlinePos()); -} - -qreal PythonQtWrapper_QFontMetricsF::width(QFontMetricsF* theWrappedObject, QChar arg__1) const -{ - return ( theWrappedObject->width(arg__1)); -} - -qreal PythonQtWrapper_QFontMetricsF::width(QFontMetricsF* theWrappedObject, const QString& string) const -{ - return ( theWrappedObject->width(string)); -} - -qreal PythonQtWrapper_QFontMetricsF::xHeight(QFontMetricsF* theWrappedObject) const -{ - return ( theWrappedObject->xHeight()); -} - - - -void PythonQtShell_QFormLayout::addItem(QLayoutItem* item) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QLayoutItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFormLayout::addItem(item); -} -void PythonQtShell_QFormLayout::childEvent(QChildEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFormLayout::childEvent(e); -} -int PythonQtShell_QFormLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::count(); -} -void PythonQtShell_QFormLayout::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFormLayout::customEvent(arg__1); -} -bool PythonQtShell_QFormLayout::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::event(arg__1); -} -bool PythonQtShell_QFormLayout::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::eventFilter(arg__1, arg__2); -} -Qt::Orientations PythonQtShell_QFormLayout::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::expandingDirections(); -} -QRect PythonQtShell_QFormLayout::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::geometry(); -} -int PythonQtShell_QFormLayout::indexOf(QWidget* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::indexOf(arg__1); -} -void PythonQtShell_QFormLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFormLayout::invalidate(); -} -bool PythonQtShell_QFormLayout::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::isEmpty(); -} -QLayoutItem* PythonQtShell_QFormLayout::itemAt(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::itemAt(index); -} -QLayout* PythonQtShell_QFormLayout::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::layout(); -} -QSize PythonQtShell_QFormLayout::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::maximumSize(); -} -QSize PythonQtShell_QFormLayout::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::minimumSize(); -} -void PythonQtShell_QFormLayout::setGeometry(const QRect& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFormLayout::setGeometry(rect); -} -QLayoutItem* PythonQtShell_QFormLayout::takeAt(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFormLayout::takeAt(index); -} -void PythonQtShell_QFormLayout::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFormLayout::timerEvent(arg__1); -} -QFormLayout* PythonQtWrapper_QFormLayout::new_QFormLayout(QWidget* parent) -{ -return new PythonQtShell_QFormLayout(parent); } - -void PythonQtWrapper_QFormLayout::addItem(QFormLayout* theWrappedObject, QLayoutItem* item) -{ - ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_addItem(item)); -} - -void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QLayout* layout) -{ - ( theWrappedObject->addRow(layout)); -} - -void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QWidget* label, QLayout* field) -{ - ( theWrappedObject->addRow(label, field)); -} - -void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QWidget* label, QWidget* field) -{ - ( theWrappedObject->addRow(label, field)); -} - -void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->addRow(widget)); -} - -void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, const QString& labelText, QLayout* field) -{ - ( theWrappedObject->addRow(labelText, field)); -} - -void PythonQtWrapper_QFormLayout::addRow(QFormLayout* theWrappedObject, const QString& labelText, QWidget* field) -{ - ( theWrappedObject->addRow(labelText, field)); -} - -int PythonQtWrapper_QFormLayout::count(QFormLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_count()); -} - -Qt::Orientations PythonQtWrapper_QFormLayout::expandingDirections(QFormLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_expandingDirections()); -} - -QFormLayout::FieldGrowthPolicy PythonQtWrapper_QFormLayout::fieldGrowthPolicy(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->fieldGrowthPolicy()); -} - -Qt::Alignment PythonQtWrapper_QFormLayout::formAlignment(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->formAlignment()); -} - -void PythonQtWrapper_QFormLayout::getItemPosition(QFormLayout* theWrappedObject, int index, int* rowPtr, QFormLayout::ItemRole* rolePtr) const -{ - ( theWrappedObject->getItemPosition(index, rowPtr, rolePtr)); -} - -void PythonQtWrapper_QFormLayout::getLayoutPosition(QFormLayout* theWrappedObject, QLayout* layout, int* rowPtr, QFormLayout::ItemRole* rolePtr) const -{ - ( theWrappedObject->getLayoutPosition(layout, rowPtr, rolePtr)); -} - -void PythonQtWrapper_QFormLayout::getWidgetPosition(QFormLayout* theWrappedObject, QWidget* widget, int* rowPtr, QFormLayout::ItemRole* rolePtr) const -{ - ( theWrappedObject->getWidgetPosition(widget, rowPtr, rolePtr)); -} - -bool PythonQtWrapper_QFormLayout::hasHeightForWidth(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->hasHeightForWidth()); -} - -int PythonQtWrapper_QFormLayout::heightForWidth(QFormLayout* theWrappedObject, int width) const -{ - return ( theWrappedObject->heightForWidth(width)); -} - -int PythonQtWrapper_QFormLayout::horizontalSpacing(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->horizontalSpacing()); -} - -void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QLayout* layout) -{ - ( theWrappedObject->insertRow(row, layout)); -} - -void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QLayout* field) -{ - ( theWrappedObject->insertRow(row, label, field)); -} - -void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QWidget* field) -{ - ( theWrappedObject->insertRow(row, label, field)); -} - -void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, QWidget* widget) -{ - ( theWrappedObject->insertRow(row, widget)); -} - -void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QLayout* field) -{ - ( theWrappedObject->insertRow(row, labelText, field)); -} - -void PythonQtWrapper_QFormLayout::insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QWidget* field) -{ - ( theWrappedObject->insertRow(row, labelText, field)); -} - -void PythonQtWrapper_QFormLayout::invalidate(QFormLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_invalidate()); -} - -QLayoutItem* PythonQtWrapper_QFormLayout::itemAt(QFormLayout* theWrappedObject, int index) const -{ - return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_itemAt(index)); -} - -QLayoutItem* PythonQtWrapper_QFormLayout::itemAt(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role) const -{ - return ( theWrappedObject->itemAt(row, role)); -} - -Qt::Alignment PythonQtWrapper_QFormLayout::labelAlignment(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->labelAlignment()); -} - -QWidget* PythonQtWrapper_QFormLayout::labelForField(QFormLayout* theWrappedObject, QLayout* field) const -{ - return ( theWrappedObject->labelForField(field)); -} - -QWidget* PythonQtWrapper_QFormLayout::labelForField(QFormLayout* theWrappedObject, QWidget* field) const -{ - return ( theWrappedObject->labelForField(field)); -} - -QSize PythonQtWrapper_QFormLayout::minimumSize(QFormLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_minimumSize()); -} - -int PythonQtWrapper_QFormLayout::rowCount(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->rowCount()); -} - -QFormLayout::RowWrapPolicy PythonQtWrapper_QFormLayout::rowWrapPolicy(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->rowWrapPolicy()); -} - -void PythonQtWrapper_QFormLayout::setFieldGrowthPolicy(QFormLayout* theWrappedObject, QFormLayout::FieldGrowthPolicy policy) -{ - ( theWrappedObject->setFieldGrowthPolicy(policy)); -} - -void PythonQtWrapper_QFormLayout::setFormAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setFormAlignment(alignment)); -} - -void PythonQtWrapper_QFormLayout::setGeometry(QFormLayout* theWrappedObject, const QRect& rect) -{ - ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_setGeometry(rect)); -} - -void PythonQtWrapper_QFormLayout::setHorizontalSpacing(QFormLayout* theWrappedObject, int spacing) -{ - ( theWrappedObject->setHorizontalSpacing(spacing)); -} - -void PythonQtWrapper_QFormLayout::setItem(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayoutItem* item) -{ - ( theWrappedObject->setItem(row, role, item)); -} - -void PythonQtWrapper_QFormLayout::setLabelAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setLabelAlignment(alignment)); -} - -void PythonQtWrapper_QFormLayout::setLayout(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayout* layout) -{ - ( theWrappedObject->setLayout(row, role, layout)); -} - -void PythonQtWrapper_QFormLayout::setRowWrapPolicy(QFormLayout* theWrappedObject, QFormLayout::RowWrapPolicy policy) -{ - ( theWrappedObject->setRowWrapPolicy(policy)); -} - -void PythonQtWrapper_QFormLayout::setSpacing(QFormLayout* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setSpacing(arg__1)); -} - -void PythonQtWrapper_QFormLayout::setVerticalSpacing(QFormLayout* theWrappedObject, int spacing) -{ - ( theWrappedObject->setVerticalSpacing(spacing)); -} - -void PythonQtWrapper_QFormLayout::setWidget(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QWidget* widget) -{ - ( theWrappedObject->setWidget(row, role, widget)); -} - -QSize PythonQtWrapper_QFormLayout::sizeHint(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QFormLayout::spacing(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->spacing()); -} - -QLayoutItem* PythonQtWrapper_QFormLayout::takeAt(QFormLayout* theWrappedObject, int index) -{ - return ( ((PythonQtPublicPromoter_QFormLayout*)theWrappedObject)->promoted_takeAt(index)); -} - -int PythonQtWrapper_QFormLayout::verticalSpacing(QFormLayout* theWrappedObject) const -{ - return ( theWrappedObject->verticalSpacing()); -} - - - -void PythonQtShell_QFrame::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::actionEvent(arg__1); -} -void PythonQtShell_QFrame::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::changeEvent(arg__1); -} -void PythonQtShell_QFrame::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::childEvent(arg__1); -} -void PythonQtShell_QFrame::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::closeEvent(arg__1); -} -void PythonQtShell_QFrame::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::contextMenuEvent(arg__1); -} -void PythonQtShell_QFrame::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::customEvent(arg__1); -} -int PythonQtShell_QFrame::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::devType(); -} -void PythonQtShell_QFrame::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::dragEnterEvent(arg__1); -} -void PythonQtShell_QFrame::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::dragLeaveEvent(arg__1); -} -void PythonQtShell_QFrame::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::dragMoveEvent(arg__1); -} -void PythonQtShell_QFrame::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::dropEvent(arg__1); -} -void PythonQtShell_QFrame::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::enterEvent(arg__1); -} -bool PythonQtShell_QFrame::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::event(e); -} -bool PythonQtShell_QFrame::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QFrame::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::focusInEvent(arg__1); -} -bool PythonQtShell_QFrame::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::focusNextPrevChild(next); -} -void PythonQtShell_QFrame::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::focusOutEvent(arg__1); -} -int PythonQtShell_QFrame::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::heightForWidth(arg__1); -} -void PythonQtShell_QFrame::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::hideEvent(arg__1); -} -void PythonQtShell_QFrame::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QFrame::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::inputMethodQuery(arg__1); -} -void PythonQtShell_QFrame::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::keyPressEvent(arg__1); -} -void PythonQtShell_QFrame::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::keyReleaseEvent(arg__1); -} -void PythonQtShell_QFrame::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::languageChange(); -} -void PythonQtShell_QFrame::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::leaveEvent(arg__1); -} -int PythonQtShell_QFrame::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::metric(arg__1); -} -QSize PythonQtShell_QFrame::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::minimumSizeHint(); -} -void PythonQtShell_QFrame::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QFrame::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::mouseMoveEvent(arg__1); -} -void PythonQtShell_QFrame::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::mousePressEvent(arg__1); -} -void PythonQtShell_QFrame::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QFrame::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QFrame::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFrame::paintEngine(); -} -void PythonQtShell_QFrame::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::paintEvent(arg__1); -} -void PythonQtShell_QFrame::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::resizeEvent(arg__1); -} -void PythonQtShell_QFrame::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::showEvent(arg__1); -} -void PythonQtShell_QFrame::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::tabletEvent(arg__1); -} -void PythonQtShell_QFrame::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::timerEvent(arg__1); -} -void PythonQtShell_QFrame::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFrame::wheelEvent(arg__1); -} -QFrame* PythonQtWrapper_QFrame::new_QFrame(QWidget* parent, Qt::WindowFlags f) -{ -return new PythonQtShell_QFrame(parent, f); } - -void PythonQtWrapper_QFrame::changeEvent(QFrame* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QFrame*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -bool PythonQtWrapper_QFrame::event(QFrame* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QFrame*)theWrappedObject)->promoted_event(e)); -} - -QRect PythonQtWrapper_QFrame::frameRect(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->frameRect()); -} - -QFrame::Shadow PythonQtWrapper_QFrame::frameShadow(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->frameShadow()); -} - -QFrame::Shape PythonQtWrapper_QFrame::frameShape(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->frameShape()); -} - -int PythonQtWrapper_QFrame::frameStyle(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->frameStyle()); -} - -int PythonQtWrapper_QFrame::frameWidth(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->frameWidth()); -} - -int PythonQtWrapper_QFrame::lineWidth(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->lineWidth()); -} - -int PythonQtWrapper_QFrame::midLineWidth(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->midLineWidth()); -} - -void PythonQtWrapper_QFrame::paintEvent(QFrame* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QFrame*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QFrame::setFrameRect(QFrame* theWrappedObject, const QRect& arg__1) -{ - ( theWrappedObject->setFrameRect(arg__1)); -} - -void PythonQtWrapper_QFrame::setFrameShadow(QFrame* theWrappedObject, QFrame::Shadow arg__1) -{ - ( theWrappedObject->setFrameShadow(arg__1)); -} - -void PythonQtWrapper_QFrame::setFrameShape(QFrame* theWrappedObject, QFrame::Shape arg__1) -{ - ( theWrappedObject->setFrameShape(arg__1)); -} - -void PythonQtWrapper_QFrame::setFrameStyle(QFrame* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setFrameStyle(arg__1)); -} - -void PythonQtWrapper_QFrame::setLineWidth(QFrame* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setLineWidth(arg__1)); -} - -void PythonQtWrapper_QFrame::setMidLineWidth(QFrame* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setMidLineWidth(arg__1)); -} - -QSize PythonQtWrapper_QFrame::sizeHint(QFrame* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - - - -void PythonQtShell_QGesture::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGesture::childEvent(arg__1); -} -void PythonQtShell_QGesture::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGesture::customEvent(arg__1); -} -bool PythonQtShell_QGesture::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGesture::event(arg__1); -} -bool PythonQtShell_QGesture::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGesture::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGesture::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGesture::timerEvent(arg__1); -} -QGesture* PythonQtWrapper_QGesture::new_QGesture(QObject* parent) -{ -return new PythonQtShell_QGesture(parent); } - -bool PythonQtWrapper_QGesture::hasHotSpot(QGesture* theWrappedObject) const -{ - return ( theWrappedObject->hasHotSpot()); -} - -QPointF PythonQtWrapper_QGesture::hotSpot(QGesture* theWrappedObject) const -{ - return ( theWrappedObject->hotSpot()); -} - -void PythonQtWrapper_QGesture::setHotSpot(QGesture* theWrappedObject, const QPointF& value) -{ - ( theWrappedObject->setHotSpot(value)); -} - -Qt::GestureState PythonQtWrapper_QGesture::state(QGesture* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -void PythonQtWrapper_QGesture::unsetHotSpot(QGesture* theWrappedObject) -{ - ( theWrappedObject->unsetHotSpot()); -} - - - -QGradient* PythonQtWrapper_QGradient::new_QGradient() -{ -return new QGradient(); } - -QGradient::CoordinateMode PythonQtWrapper_QGradient::coordinateMode(QGradient* theWrappedObject) const -{ - return ( theWrappedObject->coordinateMode()); -} - -bool PythonQtWrapper_QGradient::__ne__(QGradient* theWrappedObject, const QGradient& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QGradient::__eq__(QGradient* theWrappedObject, const QGradient& gradient) const -{ - return ( (*theWrappedObject)== gradient); -} - -void PythonQtWrapper_QGradient::setColorAt(QGradient* theWrappedObject, qreal pos, const QColor& color) -{ - ( theWrappedObject->setColorAt(pos, color)); -} - -void PythonQtWrapper_QGradient::setCoordinateMode(QGradient* theWrappedObject, QGradient::CoordinateMode mode) -{ - ( theWrappedObject->setCoordinateMode(mode)); -} - -void PythonQtWrapper_QGradient::setSpread(QGradient* theWrappedObject, QGradient::Spread spread) -{ - ( theWrappedObject->setSpread(spread)); -} - -void PythonQtWrapper_QGradient::setStops(QGradient* theWrappedObject, const QVector >& stops) -{ - ( theWrappedObject->setStops(stops)); -} - -QGradient::Spread PythonQtWrapper_QGradient::spread(QGradient* theWrappedObject) const -{ - return ( theWrappedObject->spread()); -} - -QVector > PythonQtWrapper_QGradient::stops(QGradient* theWrappedObject) const -{ - return ( theWrappedObject->stops()); -} - -QGradient::Type PythonQtWrapper_QGradient::type(QGradient* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -void PythonQtWrapper_QGraphicsAnchor::setSizePolicy(QGraphicsAnchor* theWrappedObject, QSizePolicy::Policy policy) -{ - ( theWrappedObject->setSizePolicy(policy)); -} - -void PythonQtWrapper_QGraphicsAnchor::setSpacing(QGraphicsAnchor* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setSpacing(spacing)); -} - -QSizePolicy::Policy PythonQtWrapper_QGraphicsAnchor::sizePolicy(QGraphicsAnchor* theWrappedObject) const -{ - return ( theWrappedObject->sizePolicy()); -} - -qreal PythonQtWrapper_QGraphicsAnchor::spacing(QGraphicsAnchor* theWrappedObject) const -{ - return ( theWrappedObject->spacing()); -} - -void PythonQtWrapper_QGraphicsAnchor::unsetSpacing(QGraphicsAnchor* theWrappedObject) -{ - ( theWrappedObject->unsetSpacing()); -} - - - -int PythonQtShell_QGraphicsAnchorLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsAnchorLayout::count(); -} -void PythonQtShell_QGraphicsAnchorLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsAnchorLayout::getContentsMargins(left, top, right, bottom); -} -void PythonQtShell_QGraphicsAnchorLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsAnchorLayout::invalidate(); -} -QGraphicsLayoutItem* PythonQtShell_QGraphicsAnchorLayout::itemAt(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QGraphicsLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsAnchorLayout::itemAt(index); -} -void PythonQtShell_QGraphicsAnchorLayout::removeAt(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsAnchorLayout::removeAt(index); -} -void PythonQtShell_QGraphicsAnchorLayout::updateGeometry() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsAnchorLayout::updateGeometry(); -} -void PythonQtShell_QGraphicsAnchorLayout::widgetEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsAnchorLayout::widgetEvent(e); -} -QGraphicsAnchorLayout* PythonQtWrapper_QGraphicsAnchorLayout::new_QGraphicsAnchorLayout(QGraphicsLayoutItem* parent) -{ -return new PythonQtShell_QGraphicsAnchorLayout(parent); } - -QGraphicsAnchor* PythonQtWrapper_QGraphicsAnchorLayout::addAnchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge) -{ - return ( theWrappedObject->addAnchor(firstItem, firstEdge, secondItem, secondEdge)); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::addAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, QGraphicsLayoutItem* secondItem, Qt::Orientations orientations) -{ - ( theWrappedObject->addAnchors(firstItem, secondItem, orientations)); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::addCornerAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::Corner firstCorner, QGraphicsLayoutItem* secondItem, Qt::Corner secondCorner) -{ - ( theWrappedObject->addCornerAnchors(firstItem, firstCorner, secondItem, secondCorner)); -} - -QGraphicsAnchor* PythonQtWrapper_QGraphicsAnchorLayout::anchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge) -{ - return ( theWrappedObject->anchor(firstItem, firstEdge, secondItem, secondEdge)); -} - -int PythonQtWrapper_QGraphicsAnchorLayout::count(QGraphicsAnchorLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_count()); -} - -qreal PythonQtWrapper_QGraphicsAnchorLayout::horizontalSpacing(QGraphicsAnchorLayout* theWrappedObject) const -{ - return ( theWrappedObject->horizontalSpacing()); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::invalidate(QGraphicsAnchorLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_invalidate()); -} - -QGraphicsLayoutItem* PythonQtWrapper_QGraphicsAnchorLayout::itemAt(QGraphicsAnchorLayout* theWrappedObject, int index) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_itemAt(index)); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::removeAt(QGraphicsAnchorLayout* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QGraphicsAnchorLayout*)theWrappedObject)->promoted_removeAt(index)); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::setGeometry(QGraphicsAnchorLayout* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setGeometry(rect)); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::setHorizontalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setHorizontalSpacing(spacing)); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::setSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setSpacing(spacing)); -} - -void PythonQtWrapper_QGraphicsAnchorLayout::setVerticalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setVerticalSpacing(spacing)); -} - -qreal PythonQtWrapper_QGraphicsAnchorLayout::verticalSpacing(QGraphicsAnchorLayout* theWrappedObject) const -{ - return ( theWrappedObject->verticalSpacing()); -} - - - -QRectF PythonQtShell_QGraphicsEffect::boundingRectFor(const QRectF& sourceRect) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRectFor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRectF returnValue; - void* args[2] = {NULL, (void*)&sourceRect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRectFor", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsEffect::boundingRectFor(sourceRect); -} -void PythonQtShell_QGraphicsEffect::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsEffect::childEvent(arg__1); -} -void PythonQtShell_QGraphicsEffect::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsEffect::customEvent(arg__1); -} -void PythonQtShell_QGraphicsEffect::draw(QPainter* painter) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "draw"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - -} -bool PythonQtShell_QGraphicsEffect::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsEffect::event(arg__1); -} -bool PythonQtShell_QGraphicsEffect::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsEffect::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsEffect::sourceChanged(QGraphicsEffect::ChangeFlags flags) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sourceChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsEffect::ChangeFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsEffect::sourceChanged(flags); -} -void PythonQtShell_QGraphicsEffect::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsEffect::timerEvent(arg__1); -} -QGraphicsEffect* PythonQtWrapper_QGraphicsEffect::new_QGraphicsEffect(QObject* parent) -{ -return new PythonQtShell_QGraphicsEffect(parent); } - -QRectF PythonQtWrapper_QGraphicsEffect::boundingRect(QGraphicsEffect* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -QRectF PythonQtWrapper_QGraphicsEffect::boundingRectFor(QGraphicsEffect* theWrappedObject, const QRectF& sourceRect) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsEffect*)theWrappedObject)->promoted_boundingRectFor(sourceRect)); -} - -bool PythonQtWrapper_QGraphicsEffect::isEnabled(QGraphicsEffect* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -void PythonQtWrapper_QGraphicsEffect::sourceChanged(QGraphicsEffect* theWrappedObject, QGraphicsEffect::ChangeFlags flags) -{ - ( ((PythonQtPublicPromoter_QGraphicsEffect*)theWrappedObject)->promoted_sourceChanged(flags)); -} - - - -bool PythonQtShell_QGraphicsEllipseItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsEllipseItem::isObscuredBy(item); -} -QPainterPath PythonQtShell_QGraphicsEllipseItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsEllipseItem::opaqueArea(); -} -QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsEllipseItem(parent, scene); } - -QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsEllipseItem(rect, parent, scene); } - -QGraphicsEllipseItem* PythonQtWrapper_QGraphicsEllipseItem::new_QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsEllipseItem(x, y, w, h, parent, scene); } - -QRectF PythonQtWrapper_QGraphicsEllipseItem::boundingRect(QGraphicsEllipseItem* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -bool PythonQtWrapper_QGraphicsEllipseItem::contains(QGraphicsEllipseItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->contains(point)); -} - -bool PythonQtWrapper_QGraphicsEllipseItem::isObscuredBy(QGraphicsEllipseItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsEllipseItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QGraphicsEllipseItem::opaqueArea(QGraphicsEllipseItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsEllipseItem*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsEllipseItem::paint(QGraphicsEllipseItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -QRectF PythonQtWrapper_QGraphicsEllipseItem::rect(QGraphicsEllipseItem* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -void PythonQtWrapper_QGraphicsEllipseItem::setRect(QGraphicsEllipseItem* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setRect(rect)); -} - -void PythonQtWrapper_QGraphicsEllipseItem::setRect(QGraphicsEllipseItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->setRect(x, y, w, h)); -} - -void PythonQtWrapper_QGraphicsEllipseItem::setSpanAngle(QGraphicsEllipseItem* theWrappedObject, int angle) -{ - ( theWrappedObject->setSpanAngle(angle)); -} - -void PythonQtWrapper_QGraphicsEllipseItem::setStartAngle(QGraphicsEllipseItem* theWrappedObject, int angle) -{ - ( theWrappedObject->setStartAngle(angle)); -} - -QPainterPath PythonQtWrapper_QGraphicsEllipseItem::shape(QGraphicsEllipseItem* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -int PythonQtWrapper_QGraphicsEllipseItem::spanAngle(QGraphicsEllipseItem* theWrappedObject) const -{ - return ( theWrappedObject->spanAngle()); -} - -int PythonQtWrapper_QGraphicsEllipseItem::startAngle(QGraphicsEllipseItem* theWrappedObject) const -{ - return ( theWrappedObject->startAngle()); -} - -int PythonQtWrapper_QGraphicsEllipseItem::type(QGraphicsEllipseItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -int PythonQtShell_QGraphicsGridLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsGridLayout::count(); -} -void PythonQtShell_QGraphicsGridLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsGridLayout::getContentsMargins(left, top, right, bottom); -} -void PythonQtShell_QGraphicsGridLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsGridLayout::invalidate(); -} -QGraphicsLayoutItem* PythonQtShell_QGraphicsGridLayout::itemAt(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QGraphicsLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsGridLayout::itemAt(index); -} -void PythonQtShell_QGraphicsGridLayout::removeAt(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsGridLayout::removeAt(index); -} -void PythonQtShell_QGraphicsGridLayout::updateGeometry() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsGridLayout::updateGeometry(); -} -void PythonQtShell_QGraphicsGridLayout::widgetEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsGridLayout::widgetEvent(e); -} -QGraphicsGridLayout* PythonQtWrapper_QGraphicsGridLayout::new_QGraphicsGridLayout(QGraphicsLayoutItem* parent) -{ -return new PythonQtShell_QGraphicsGridLayout(parent); } - -void PythonQtWrapper_QGraphicsGridLayout::addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, Qt::Alignment alignment) -{ - ( theWrappedObject->addItem(item, row, column, alignment)); -} - -void PythonQtWrapper_QGraphicsGridLayout::addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment) -{ - ( theWrappedObject->addItem(item, row, column, rowSpan, columnSpan, alignment)); -} - -Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::alignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item) const -{ - return ( theWrappedObject->alignment(item)); -} - -Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::columnAlignment(QGraphicsGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnAlignment(column)); -} - -int PythonQtWrapper_QGraphicsGridLayout::columnCount(QGraphicsGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->columnCount()); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::columnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnMaximumWidth(column)); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::columnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnMinimumWidth(column)); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::columnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnPreferredWidth(column)); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::columnSpacing(QGraphicsGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnSpacing(column)); -} - -int PythonQtWrapper_QGraphicsGridLayout::columnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnStretchFactor(column)); -} - -int PythonQtWrapper_QGraphicsGridLayout::count(QGraphicsGridLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_count()); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::horizontalSpacing(QGraphicsGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->horizontalSpacing()); -} - -void PythonQtWrapper_QGraphicsGridLayout::invalidate(QGraphicsGridLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_invalidate()); -} - -QGraphicsLayoutItem* PythonQtWrapper_QGraphicsGridLayout::itemAt(QGraphicsGridLayout* theWrappedObject, int index) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_itemAt(index)); -} - -QGraphicsLayoutItem* PythonQtWrapper_QGraphicsGridLayout::itemAt(QGraphicsGridLayout* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->itemAt(row, column)); -} - -void PythonQtWrapper_QGraphicsGridLayout::removeAt(QGraphicsGridLayout* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QGraphicsGridLayout*)theWrappedObject)->promoted_removeAt(index)); -} - -Qt::Alignment PythonQtWrapper_QGraphicsGridLayout::rowAlignment(QGraphicsGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowAlignment(row)); -} - -int PythonQtWrapper_QGraphicsGridLayout::rowCount(QGraphicsGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->rowCount()); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::rowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowMaximumHeight(row)); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::rowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowMinimumHeight(row)); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::rowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowPreferredHeight(row)); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::rowSpacing(QGraphicsGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowSpacing(row)); -} - -int PythonQtWrapper_QGraphicsGridLayout::rowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowStretchFactor(row)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setAlignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment) -{ - ( theWrappedObject->setAlignment(item, alignment)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setColumnAlignment(QGraphicsGridLayout* theWrappedObject, int column, Qt::Alignment alignment) -{ - ( theWrappedObject->setColumnAlignment(column, alignment)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setColumnFixedWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) -{ - ( theWrappedObject->setColumnFixedWidth(column, width)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setColumnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) -{ - ( theWrappedObject->setColumnMaximumWidth(column, width)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setColumnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) -{ - ( theWrappedObject->setColumnMinimumWidth(column, width)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setColumnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width) -{ - ( theWrappedObject->setColumnPreferredWidth(column, width)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setColumnSpacing(QGraphicsGridLayout* theWrappedObject, int column, qreal spacing) -{ - ( theWrappedObject->setColumnSpacing(column, spacing)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setColumnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column, int stretch) -{ - ( theWrappedObject->setColumnStretchFactor(column, stretch)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setGeometry(QGraphicsGridLayout* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setGeometry(rect)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setHorizontalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setHorizontalSpacing(spacing)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setRowAlignment(QGraphicsGridLayout* theWrappedObject, int row, Qt::Alignment alignment) -{ - ( theWrappedObject->setRowAlignment(row, alignment)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setRowFixedHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) -{ - ( theWrappedObject->setRowFixedHeight(row, height)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setRowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) -{ - ( theWrappedObject->setRowMaximumHeight(row, height)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setRowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) -{ - ( theWrappedObject->setRowMinimumHeight(row, height)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setRowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height) -{ - ( theWrappedObject->setRowPreferredHeight(row, height)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setRowSpacing(QGraphicsGridLayout* theWrappedObject, int row, qreal spacing) -{ - ( theWrappedObject->setRowSpacing(row, spacing)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setRowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row, int stretch) -{ - ( theWrappedObject->setRowStretchFactor(row, stretch)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setSpacing(spacing)); -} - -void PythonQtWrapper_QGraphicsGridLayout::setVerticalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setVerticalSpacing(spacing)); -} - -QSizeF PythonQtWrapper_QGraphicsGridLayout::sizeHint(QGraphicsGridLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const -{ - return ( theWrappedObject->sizeHint(which, constraint)); -} - -qreal PythonQtWrapper_QGraphicsGridLayout::verticalSpacing(QGraphicsGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->verticalSpacing()); -} - - - -void PythonQtShell_QGraphicsItem::advance(int phase) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&phase}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItem::advance(phase); -} -QRectF PythonQtShell_QGraphicsItem::boundingRect() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRectF returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRectF(); -} -bool PythonQtShell_QGraphicsItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::collidesWithItem(other, mode); -} -bool PythonQtShell_QGraphicsItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::collidesWithPath(path, mode); -} -bool PythonQtShell_QGraphicsItem::contains(const QPointF& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::contains(point); -} -void PythonQtShell_QGraphicsItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::contextMenuEvent(event); -} -void PythonQtShell_QGraphicsItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::dragEnterEvent(event); -} -void PythonQtShell_QGraphicsItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::dragLeaveEvent(event); -} -void PythonQtShell_QGraphicsItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::dragMoveEvent(event); -} -void PythonQtShell_QGraphicsItem::dropEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::dropEvent(event); -} -QVariant PythonQtShell_QGraphicsItem::extension(const QVariant& variant) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::extension(variant); -} -void PythonQtShell_QGraphicsItem::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItem::focusInEvent(event); -} -void PythonQtShell_QGraphicsItem::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItem::focusOutEvent(event); -} -void PythonQtShell_QGraphicsItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::hoverEnterEvent(event); -} -void PythonQtShell_QGraphicsItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::hoverLeaveEvent(event); -} -void PythonQtShell_QGraphicsItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::hoverMoveEvent(event); -} -void PythonQtShell_QGraphicsItem::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::inputMethodEvent(event); -} -QVariant PythonQtShell_QGraphicsItem::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::inputMethodQuery(query); -} -bool PythonQtShell_QGraphicsItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::isObscuredBy(item); -} -QVariant PythonQtShell_QGraphicsItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&change, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::itemChange(change, value); -} -void PythonQtShell_QGraphicsItem::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItem::keyPressEvent(event); -} -void PythonQtShell_QGraphicsItem::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItem::keyReleaseEvent(event); -} -void PythonQtShell_QGraphicsItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::mouseDoubleClickEvent(event); -} -void PythonQtShell_QGraphicsItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::mouseMoveEvent(event); -} -void PythonQtShell_QGraphicsItem::mousePressEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::mousePressEvent(event); -} -void PythonQtShell_QGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::mouseReleaseEvent(event); -} -QPainterPath PythonQtShell_QGraphicsItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::opaqueArea(); -} -void PythonQtShell_QGraphicsItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -bool PythonQtShell_QGraphicsItem::sceneEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::sceneEvent(event); -} -bool PythonQtShell_QGraphicsItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::sceneEventFilter(watched, event); -} -void PythonQtShell_QGraphicsItem::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&extension, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItem::setExtension(extension, variant); -} -QPainterPath PythonQtShell_QGraphicsItem::shape() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::shape(); -} -bool PythonQtShell_QGraphicsItem::supportsExtension(QGraphicsItem::Extension extension) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::supportsExtension(extension); -} -int PythonQtShell_QGraphicsItem::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItem::type(); -} -void PythonQtShell_QGraphicsItem::wheelEvent(QGraphicsSceneWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItem::wheelEvent(event); -} -QGraphicsItem* PythonQtWrapper_QGraphicsItem::new_QGraphicsItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsItem(parent, scene); } - -bool PythonQtWrapper_QGraphicsItem::acceptDrops(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->acceptDrops()); -} - -bool PythonQtWrapper_QGraphicsItem::acceptHoverEvents(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->acceptHoverEvents()); -} - -bool PythonQtWrapper_QGraphicsItem::acceptTouchEvents(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->acceptTouchEvents()); -} - -Qt::MouseButtons PythonQtWrapper_QGraphicsItem::acceptedMouseButtons(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->acceptedMouseButtons()); -} - -bool PythonQtWrapper_QGraphicsItem::acceptsHoverEvents(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->acceptsHoverEvents()); -} - -void PythonQtWrapper_QGraphicsItem::advance(QGraphicsItem* theWrappedObject, int phase) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_advance(phase)); -} - -QRegion PythonQtWrapper_QGraphicsItem::boundingRegion(QGraphicsItem* theWrappedObject, const QTransform& itemToDeviceTransform) const -{ - return ( theWrappedObject->boundingRegion(itemToDeviceTransform)); -} - -qreal PythonQtWrapper_QGraphicsItem::boundingRegionGranularity(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->boundingRegionGranularity()); -} - -QGraphicsItem::CacheMode PythonQtWrapper_QGraphicsItem::cacheMode(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->cacheMode()); -} - -QList PythonQtWrapper_QGraphicsItem::childItems(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->childItems()); -} - -QRectF PythonQtWrapper_QGraphicsItem::childrenBoundingRect(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->childrenBoundingRect()); -} - -void PythonQtWrapper_QGraphicsItem::clearFocus(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->clearFocus()); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::clipPath(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->clipPath()); -} - -bool PythonQtWrapper_QGraphicsItem::collidesWithItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, Qt::ItemSelectionMode mode) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_collidesWithItem(other, mode)); -} - -bool PythonQtWrapper_QGraphicsItem::collidesWithPath(QGraphicsItem* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_collidesWithPath(path, mode)); -} - -QList PythonQtWrapper_QGraphicsItem::collidingItems(QGraphicsItem* theWrappedObject, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->collidingItems(mode)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItem::commonAncestorItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other) const -{ - return ( theWrappedObject->commonAncestorItem(other)); -} - -bool PythonQtWrapper_QGraphicsItem::contains(QGraphicsItem* theWrappedObject, const QPointF& point) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_contains(point)); -} - -void PythonQtWrapper_QGraphicsItem::contextMenuEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneContextMenuEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_contextMenuEvent(event)); -} - -QCursor PythonQtWrapper_QGraphicsItem::cursor(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->cursor()); -} - -QVariant PythonQtWrapper_QGraphicsItem::data(QGraphicsItem* theWrappedObject, int key) const -{ - return ( theWrappedObject->data(key)); -} - -QTransform PythonQtWrapper_QGraphicsItem::deviceTransform(QGraphicsItem* theWrappedObject, const QTransform& viewportTransform) const -{ - return ( theWrappedObject->deviceTransform(viewportTransform)); -} - -void PythonQtWrapper_QGraphicsItem::dragEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragEnterEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::dragLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragLeaveEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::dragMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dragMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::dropEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_dropEvent(event)); -} - -qreal PythonQtWrapper_QGraphicsItem::effectiveOpacity(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->effectiveOpacity()); -} - -void PythonQtWrapper_QGraphicsItem::ensureVisible(QGraphicsItem* theWrappedObject, const QRectF& rect, int xmargin, int ymargin) -{ - ( theWrappedObject->ensureVisible(rect, xmargin, ymargin)); -} - -void PythonQtWrapper_QGraphicsItem::ensureVisible(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin) -{ - ( theWrappedObject->ensureVisible(x, y, w, h, xmargin, ymargin)); -} - -QVariant PythonQtWrapper_QGraphicsItem::extension(QGraphicsItem* theWrappedObject, const QVariant& variant) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_extension(variant)); -} - -bool PythonQtWrapper_QGraphicsItem::filtersChildEvents(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->filtersChildEvents()); -} - -QGraphicsItem::GraphicsItemFlags PythonQtWrapper_QGraphicsItem::flags(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->flags()); -} - -void PythonQtWrapper_QGraphicsItem::focusInEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_focusInEvent(event)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItem::focusItem(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->focusItem()); -} - -void PythonQtWrapper_QGraphicsItem::focusOutEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_focusOutEvent(event)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItem::focusProxy(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->focusProxy()); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItem::focusScopeItem(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->focusScopeItem()); -} - -void PythonQtWrapper_QGraphicsItem::grabKeyboard(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->grabKeyboard()); -} - -void PythonQtWrapper_QGraphicsItem::grabMouse(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->grabMouse()); -} - -QGraphicsEffect* PythonQtWrapper_QGraphicsItem::graphicsEffect(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->graphicsEffect()); -} - -QGraphicsItemGroup* PythonQtWrapper_QGraphicsItem::group(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->group()); -} - -bool PythonQtWrapper_QGraphicsItem::handlesChildEvents(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->handlesChildEvents()); -} - -bool PythonQtWrapper_QGraphicsItem::hasCursor(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->hasCursor()); -} - -bool PythonQtWrapper_QGraphicsItem::hasFocus(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->hasFocus()); -} - -void PythonQtWrapper_QGraphicsItem::hide(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->hide()); -} - -void PythonQtWrapper_QGraphicsItem::hoverEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverEnterEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::hoverLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverLeaveEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::hoverMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_hoverMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::inputMethodEvent(QGraphicsItem* theWrappedObject, QInputMethodEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_inputMethodEvent(event)); -} - -Qt::InputMethodHints PythonQtWrapper_QGraphicsItem::inputMethodHints(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->inputMethodHints()); -} - -QVariant PythonQtWrapper_QGraphicsItem::inputMethodQuery(QGraphicsItem* theWrappedObject, Qt::InputMethodQuery query) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_inputMethodQuery(query)); -} - -void PythonQtWrapper_QGraphicsItem::installSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem) -{ - ( theWrappedObject->installSceneEventFilter(filterItem)); -} - -bool PythonQtWrapper_QGraphicsItem::isActive(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isActive()); -} - -bool PythonQtWrapper_QGraphicsItem::isAncestorOf(QGraphicsItem* theWrappedObject, const QGraphicsItem* child) const -{ - return ( theWrappedObject->isAncestorOf(child)); -} - -bool PythonQtWrapper_QGraphicsItem::isBlockedByModalPanel(QGraphicsItem* theWrappedObject, QGraphicsItem** blockingPanel) const -{ - return ( theWrappedObject->isBlockedByModalPanel(blockingPanel)); -} - -bool PythonQtWrapper_QGraphicsItem::isClipped(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isClipped()); -} - -bool PythonQtWrapper_QGraphicsItem::isEnabled(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isObscured()); -} - -bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->isObscured(rect)); -} - -bool PythonQtWrapper_QGraphicsItem::isObscured(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->isObscured(x, y, w, h)); -} - -bool PythonQtWrapper_QGraphicsItem::isObscuredBy(QGraphicsItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -bool PythonQtWrapper_QGraphicsItem::isPanel(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isPanel()); -} - -bool PythonQtWrapper_QGraphicsItem::isSelected(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isSelected()); -} - -bool PythonQtWrapper_QGraphicsItem::isUnderMouse(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isUnderMouse()); -} - -bool PythonQtWrapper_QGraphicsItem::isVisible(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isVisible()); -} - -bool PythonQtWrapper_QGraphicsItem::isVisibleTo(QGraphicsItem* theWrappedObject, const QGraphicsItem* parent) const -{ - return ( theWrappedObject->isVisibleTo(parent)); -} - -bool PythonQtWrapper_QGraphicsItem::isWidget(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isWidget()); -} - -bool PythonQtWrapper_QGraphicsItem::isWindow(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->isWindow()); -} - -QVariant PythonQtWrapper_QGraphicsItem::itemChange(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value) -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_itemChange(change, value)); -} - -QTransform PythonQtWrapper_QGraphicsItem::itemTransform(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, bool* ok) const -{ - return ( theWrappedObject->itemTransform(other, ok)); -} - -void PythonQtWrapper_QGraphicsItem::keyPressEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::keyReleaseEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_keyReleaseEvent(event)); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const -{ - return ( theWrappedObject->mapFromItem(item, path)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const -{ - return ( theWrappedObject->mapFromItem(item, point)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const -{ - return ( theWrappedObject->mapFromItem(item, polygon)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const -{ - return ( theWrappedObject->mapFromItem(item, rect)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const -{ - return ( theWrappedObject->mapFromItem(item, x, y)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapFromItem(item, x, y, w, h)); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const -{ - return ( theWrappedObject->mapFromParent(path)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->mapFromParent(point)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const -{ - return ( theWrappedObject->mapFromParent(polygon)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapFromParent(rect)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const -{ - return ( theWrappedObject->mapFromParent(x, y)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapFromParent(x, y, w, h)); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const -{ - return ( theWrappedObject->mapFromScene(path)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->mapFromScene(point)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const -{ - return ( theWrappedObject->mapFromScene(polygon)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapFromScene(rect)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const -{ - return ( theWrappedObject->mapFromScene(x, y)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapFromScene(x, y, w, h)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const -{ - return ( theWrappedObject->mapRectFromItem(item, rect)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapRectFromItem(item, x, y, w, h)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapRectFromParent(rect)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapRectFromParent(x, y, w, h)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapRectFromScene(rect)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapRectFromScene(x, y, w, h)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const -{ - return ( theWrappedObject->mapRectToItem(item, rect)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapRectToItem(item, x, y, w, h)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapRectToParent(rect)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapRectToParent(x, y, w, h)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapRectToScene(rect)); -} - -QRectF PythonQtWrapper_QGraphicsItem::mapRectToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapRectToScene(x, y, w, h)); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const -{ - return ( theWrappedObject->mapToItem(item, path)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const -{ - return ( theWrappedObject->mapToItem(item, point)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const -{ - return ( theWrappedObject->mapToItem(item, polygon)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const -{ - return ( theWrappedObject->mapToItem(item, rect)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const -{ - return ( theWrappedObject->mapToItem(item, x, y)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapToItem(item, x, y, w, h)); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const -{ - return ( theWrappedObject->mapToParent(path)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->mapToParent(point)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const -{ - return ( theWrappedObject->mapToParent(polygon)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapToParent(rect)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const -{ - return ( theWrappedObject->mapToParent(x, y)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapToParent(x, y, w, h)); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const -{ - return ( theWrappedObject->mapToScene(path)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->mapToScene(point)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const -{ - return ( theWrappedObject->mapToScene(polygon)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapToScene(rect)); -} - -QPointF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const -{ - return ( theWrappedObject->mapToScene(x, y)); -} - -QPolygonF PythonQtWrapper_QGraphicsItem::mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapToScene(x, y, w, h)); -} - -void PythonQtWrapper_QGraphicsItem::mouseDoubleClickEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::mouseMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::mousePressEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::mouseReleaseEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_mouseReleaseEvent(event)); -} - -void PythonQtWrapper_QGraphicsItem::moveBy(QGraphicsItem* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->moveBy(dx, dy)); -} - -qreal PythonQtWrapper_QGraphicsItem::opacity(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->opacity()); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::opaqueArea(QGraphicsItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_opaqueArea()); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItem::panel(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->panel()); -} - -QGraphicsItem::PanelModality PythonQtWrapper_QGraphicsItem::panelModality(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->panelModality()); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItem::parentItem(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->parentItem()); -} - -QGraphicsObject* PythonQtWrapper_QGraphicsItem::parentObject(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->parentObject()); -} - -QGraphicsWidget* PythonQtWrapper_QGraphicsItem::parentWidget(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->parentWidget()); -} - -QPointF PythonQtWrapper_QGraphicsItem::pos(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -void PythonQtWrapper_QGraphicsItem::removeSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem) -{ - ( theWrappedObject->removeSceneEventFilter(filterItem)); -} - -void PythonQtWrapper_QGraphicsItem::resetTransform(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->resetTransform()); -} - -void PythonQtWrapper_QGraphicsItem::rotate(QGraphicsItem* theWrappedObject, qreal angle) -{ - ( theWrappedObject->rotate(angle)); -} - -qreal PythonQtWrapper_QGraphicsItem::rotation(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->rotation()); -} - -qreal PythonQtWrapper_QGraphicsItem::scale(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->scale()); -} - -void PythonQtWrapper_QGraphicsItem::scale(QGraphicsItem* theWrappedObject, qreal sx, qreal sy) -{ - ( theWrappedObject->scale(sx, sy)); -} - -QGraphicsScene* PythonQtWrapper_QGraphicsItem::scene(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->scene()); -} - -QRectF PythonQtWrapper_QGraphicsItem::sceneBoundingRect(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->sceneBoundingRect()); -} - -bool PythonQtWrapper_QGraphicsItem::sceneEvent(QGraphicsItem* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_sceneEvent(event)); -} - -bool PythonQtWrapper_QGraphicsItem::sceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* watched, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_sceneEventFilter(watched, event)); -} - -QPointF PythonQtWrapper_QGraphicsItem::scenePos(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QTransform PythonQtWrapper_QGraphicsItem::sceneTransform(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->sceneTransform()); -} - -void PythonQtWrapper_QGraphicsItem::scroll(QGraphicsItem* theWrappedObject, qreal dx, qreal dy, const QRectF& rect) -{ - ( theWrappedObject->scroll(dx, dy, rect)); -} - -void PythonQtWrapper_QGraphicsItem::setAcceptDrops(QGraphicsItem* theWrappedObject, bool on) -{ - ( theWrappedObject->setAcceptDrops(on)); -} - -void PythonQtWrapper_QGraphicsItem::setAcceptHoverEvents(QGraphicsItem* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setAcceptHoverEvents(enabled)); -} - -void PythonQtWrapper_QGraphicsItem::setAcceptTouchEvents(QGraphicsItem* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setAcceptTouchEvents(enabled)); -} - -void PythonQtWrapper_QGraphicsItem::setAcceptedMouseButtons(QGraphicsItem* theWrappedObject, Qt::MouseButtons buttons) -{ - ( theWrappedObject->setAcceptedMouseButtons(buttons)); -} - -void PythonQtWrapper_QGraphicsItem::setAcceptsHoverEvents(QGraphicsItem* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setAcceptsHoverEvents(enabled)); -} - -void PythonQtWrapper_QGraphicsItem::setActive(QGraphicsItem* theWrappedObject, bool active) -{ - ( theWrappedObject->setActive(active)); -} - -void PythonQtWrapper_QGraphicsItem::setBoundingRegionGranularity(QGraphicsItem* theWrappedObject, qreal granularity) -{ - ( theWrappedObject->setBoundingRegionGranularity(granularity)); -} - -void PythonQtWrapper_QGraphicsItem::setCacheMode(QGraphicsItem* theWrappedObject, QGraphicsItem::CacheMode mode, const QSize& cacheSize) -{ - ( theWrappedObject->setCacheMode(mode, cacheSize)); -} - -void PythonQtWrapper_QGraphicsItem::setCursor(QGraphicsItem* theWrappedObject, const QCursor& cursor) -{ - ( theWrappedObject->setCursor(cursor)); -} - -void PythonQtWrapper_QGraphicsItem::setData(QGraphicsItem* theWrappedObject, int key, const QVariant& value) -{ - ( theWrappedObject->setData(key, value)); -} - -void PythonQtWrapper_QGraphicsItem::setEnabled(QGraphicsItem* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setEnabled(enabled)); -} - -void PythonQtWrapper_QGraphicsItem::setFiltersChildEvents(QGraphicsItem* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setFiltersChildEvents(enabled)); -} - -void PythonQtWrapper_QGraphicsItem::setFlag(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlag flag, bool enabled) -{ - ( theWrappedObject->setFlag(flag, enabled)); -} - -void PythonQtWrapper_QGraphicsItem::setFlags(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlags flags) -{ - ( theWrappedObject->setFlags(flags)); -} - -void PythonQtWrapper_QGraphicsItem::setFocus(QGraphicsItem* theWrappedObject, Qt::FocusReason focusReason) -{ - ( theWrappedObject->setFocus(focusReason)); -} - -void PythonQtWrapper_QGraphicsItem::setFocusProxy(QGraphicsItem* theWrappedObject, QGraphicsItem* item) -{ - ( theWrappedObject->setFocusProxy(item)); -} - -void PythonQtWrapper_QGraphicsItem::setGraphicsEffect(QGraphicsItem* theWrappedObject, QGraphicsEffect* effect) -{ - ( theWrappedObject->setGraphicsEffect(effect)); -} - -void PythonQtWrapper_QGraphicsItem::setGroup(QGraphicsItem* theWrappedObject, QGraphicsItemGroup* group) -{ - ( theWrappedObject->setGroup(group)); -} - -void PythonQtWrapper_QGraphicsItem::setHandlesChildEvents(QGraphicsItem* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setHandlesChildEvents(enabled)); -} - -void PythonQtWrapper_QGraphicsItem::setInputMethodHints(QGraphicsItem* theWrappedObject, Qt::InputMethodHints hints) -{ - ( theWrappedObject->setInputMethodHints(hints)); -} - -void PythonQtWrapper_QGraphicsItem::setOpacity(QGraphicsItem* theWrappedObject, qreal opacity) -{ - ( theWrappedObject->setOpacity(opacity)); -} - -void PythonQtWrapper_QGraphicsItem::setPanelModality(QGraphicsItem* theWrappedObject, QGraphicsItem::PanelModality panelModality) -{ - ( theWrappedObject->setPanelModality(panelModality)); -} - -void PythonQtWrapper_QGraphicsItem::setParentItem(QGraphicsItem* theWrappedObject, QGraphicsItem* parent) -{ - ( theWrappedObject->setParentItem(parent)); -} - -void PythonQtWrapper_QGraphicsItem::setPos(QGraphicsItem* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPos(pos)); -} - -void PythonQtWrapper_QGraphicsItem::setPos(QGraphicsItem* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->setPos(x, y)); -} - -void PythonQtWrapper_QGraphicsItem::setRotation(QGraphicsItem* theWrappedObject, qreal angle) -{ - ( theWrappedObject->setRotation(angle)); -} - -void PythonQtWrapper_QGraphicsItem::setScale(QGraphicsItem* theWrappedObject, qreal scale) -{ - ( theWrappedObject->setScale(scale)); -} - -void PythonQtWrapper_QGraphicsItem::setSelected(QGraphicsItem* theWrappedObject, bool selected) -{ - ( theWrappedObject->setSelected(selected)); -} - -void PythonQtWrapper_QGraphicsItem::setToolTip(QGraphicsItem* theWrappedObject, const QString& toolTip) -{ - ( theWrappedObject->setToolTip(toolTip)); -} - -void PythonQtWrapper_QGraphicsItem::setTransform(QGraphicsItem* theWrappedObject, const QTransform& matrix, bool combine) -{ - ( theWrappedObject->setTransform(matrix, combine)); -} - -void PythonQtWrapper_QGraphicsItem::setTransformOriginPoint(QGraphicsItem* theWrappedObject, const QPointF& origin) -{ - ( theWrappedObject->setTransformOriginPoint(origin)); -} - -void PythonQtWrapper_QGraphicsItem::setTransformOriginPoint(QGraphicsItem* theWrappedObject, qreal ax, qreal ay) -{ - ( theWrappedObject->setTransformOriginPoint(ax, ay)); -} - -void PythonQtWrapper_QGraphicsItem::setTransformations(QGraphicsItem* theWrappedObject, const QList& transformations) -{ - ( theWrappedObject->setTransformations(transformations)); -} - -void PythonQtWrapper_QGraphicsItem::setVisible(QGraphicsItem* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -void PythonQtWrapper_QGraphicsItem::setX(QGraphicsItem* theWrappedObject, qreal x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QGraphicsItem::setY(QGraphicsItem* theWrappedObject, qreal y) -{ - ( theWrappedObject->setY(y)); -} - -void PythonQtWrapper_QGraphicsItem::setZValue(QGraphicsItem* theWrappedObject, qreal z) -{ - ( theWrappedObject->setZValue(z)); -} - -QPainterPath PythonQtWrapper_QGraphicsItem::shape(QGraphicsItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_shape()); -} - -void PythonQtWrapper_QGraphicsItem::shear(QGraphicsItem* theWrappedObject, qreal sh, qreal sv) -{ - ( theWrappedObject->shear(sh, sv)); -} - -void PythonQtWrapper_QGraphicsItem::show(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->show()); -} - -void PythonQtWrapper_QGraphicsItem::stackBefore(QGraphicsItem* theWrappedObject, const QGraphicsItem* sibling) -{ - ( theWrappedObject->stackBefore(sibling)); -} - -QGraphicsObject* PythonQtWrapper_QGraphicsItem::toGraphicsObject(QGraphicsItem* theWrappedObject) -{ - return ( theWrappedObject->toGraphicsObject()); -} - -QString PythonQtWrapper_QGraphicsItem::toolTip(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItem::topLevelItem(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->topLevelItem()); -} - -QGraphicsWidget* PythonQtWrapper_QGraphicsItem::topLevelWidget(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->topLevelWidget()); -} - -QTransform PythonQtWrapper_QGraphicsItem::transform(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->transform()); -} - -QPointF PythonQtWrapper_QGraphicsItem::transformOriginPoint(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->transformOriginPoint()); -} - -QList PythonQtWrapper_QGraphicsItem::transformations(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->transformations()); -} - -void PythonQtWrapper_QGraphicsItem::translate(QGraphicsItem* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -int PythonQtWrapper_QGraphicsItem::type(QGraphicsItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_type()); -} - -void PythonQtWrapper_QGraphicsItem::ungrabKeyboard(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->ungrabKeyboard()); -} - -void PythonQtWrapper_QGraphicsItem::ungrabMouse(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->ungrabMouse()); -} - -void PythonQtWrapper_QGraphicsItem::unsetCursor(QGraphicsItem* theWrappedObject) -{ - ( theWrappedObject->unsetCursor()); -} - -void PythonQtWrapper_QGraphicsItem::update(QGraphicsItem* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->update(rect)); -} - -void PythonQtWrapper_QGraphicsItem::update(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal width, qreal height) -{ - ( theWrappedObject->update(x, y, width, height)); -} - -void PythonQtWrapper_QGraphicsItem::wheelEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneWheelEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsItem*)theWrappedObject)->promoted_wheelEvent(event)); -} - -QGraphicsWidget* PythonQtWrapper_QGraphicsItem::window(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->window()); -} - -qreal PythonQtWrapper_QGraphicsItem::x(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -qreal PythonQtWrapper_QGraphicsItem::y(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -qreal PythonQtWrapper_QGraphicsItem::zValue(QGraphicsItem* theWrappedObject) const -{ - return ( theWrappedObject->zValue()); -} - -QString PythonQtWrapper_QGraphicsItem::py_toString(QGraphicsItem* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << obj; -#endif - return result; -} - - - -void PythonQtShell_QGraphicsItemAnimation::afterAnimationStep(qreal step) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "afterAnimationStep"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&step}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemAnimation::afterAnimationStep(step); -} -void PythonQtShell_QGraphicsItemAnimation::beforeAnimationStep(qreal step) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "beforeAnimationStep"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&step}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemAnimation::beforeAnimationStep(step); -} -void PythonQtShell_QGraphicsItemAnimation::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemAnimation::childEvent(arg__1); -} -void PythonQtShell_QGraphicsItemAnimation::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemAnimation::customEvent(arg__1); -} -bool PythonQtShell_QGraphicsItemAnimation::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemAnimation::event(arg__1); -} -bool PythonQtShell_QGraphicsItemAnimation::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemAnimation::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsItemAnimation::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemAnimation::timerEvent(arg__1); -} -QGraphicsItemAnimation* PythonQtWrapper_QGraphicsItemAnimation::new_QGraphicsItemAnimation(QObject* parent) -{ -return new PythonQtShell_QGraphicsItemAnimation(parent); } - -void PythonQtWrapper_QGraphicsItemAnimation::afterAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step) -{ - ( ((PythonQtPublicPromoter_QGraphicsItemAnimation*)theWrappedObject)->promoted_afterAnimationStep(step)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::beforeAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step) -{ - ( ((PythonQtPublicPromoter_QGraphicsItemAnimation*)theWrappedObject)->promoted_beforeAnimationStep(step)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::clear(QGraphicsItemAnimation* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -qreal PythonQtWrapper_QGraphicsItemAnimation::horizontalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->horizontalScaleAt(step)); -} - -qreal PythonQtWrapper_QGraphicsItemAnimation::horizontalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->horizontalShearAt(step)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsItemAnimation::item(QGraphicsItemAnimation* theWrappedObject) const -{ - return ( theWrappedObject->item()); -} - -QMatrix PythonQtWrapper_QGraphicsItemAnimation::matrixAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->matrixAt(step)); -} - -QPointF PythonQtWrapper_QGraphicsItemAnimation::posAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->posAt(step)); -} - -QList > PythonQtWrapper_QGraphicsItemAnimation::posList(QGraphicsItemAnimation* theWrappedObject) const -{ - return ( theWrappedObject->posList()); -} - -qreal PythonQtWrapper_QGraphicsItemAnimation::rotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->rotationAt(step)); -} - -QList > PythonQtWrapper_QGraphicsItemAnimation::rotationList(QGraphicsItemAnimation* theWrappedObject) const -{ - return ( theWrappedObject->rotationList()); -} - -QList > PythonQtWrapper_QGraphicsItemAnimation::scaleList(QGraphicsItemAnimation* theWrappedObject) const -{ - return ( theWrappedObject->scaleList()); -} - -void PythonQtWrapper_QGraphicsItemAnimation::setItem(QGraphicsItemAnimation* theWrappedObject, QGraphicsItem* item) -{ - ( theWrappedObject->setItem(item)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::setPosAt(QGraphicsItemAnimation* theWrappedObject, qreal step, const QPointF& pos) -{ - ( theWrappedObject->setPosAt(step, pos)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::setRotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal angle) -{ - ( theWrappedObject->setRotationAt(step, angle)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::setScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sx, qreal sy) -{ - ( theWrappedObject->setScaleAt(step, sx, sy)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::setShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sh, qreal sv) -{ - ( theWrappedObject->setShearAt(step, sh, sv)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::setTimeLine(QGraphicsItemAnimation* theWrappedObject, QTimeLine* timeLine) -{ - ( theWrappedObject->setTimeLine(timeLine)); -} - -void PythonQtWrapper_QGraphicsItemAnimation::setTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal dx, qreal dy) -{ - ( theWrappedObject->setTranslationAt(step, dx, dy)); -} - -QList > PythonQtWrapper_QGraphicsItemAnimation::shearList(QGraphicsItemAnimation* theWrappedObject) const -{ - return ( theWrappedObject->shearList()); -} - -QTimeLine* PythonQtWrapper_QGraphicsItemAnimation::timeLine(QGraphicsItemAnimation* theWrappedObject) const -{ - return ( theWrappedObject->timeLine()); -} - -QList > PythonQtWrapper_QGraphicsItemAnimation::translationList(QGraphicsItemAnimation* theWrappedObject) const -{ - return ( theWrappedObject->translationList()); -} - -qreal PythonQtWrapper_QGraphicsItemAnimation::verticalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->verticalScaleAt(step)); -} - -qreal PythonQtWrapper_QGraphicsItemAnimation::verticalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->verticalShearAt(step)); -} - -qreal PythonQtWrapper_QGraphicsItemAnimation::xTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->xTranslationAt(step)); -} - -qreal PythonQtWrapper_QGraphicsItemAnimation::yTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const -{ - return ( theWrappedObject->yTranslationAt(step)); -} - - - -void PythonQtShell_QGraphicsItemGroup::advance(int phase) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&phase}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::advance(phase); -} -QRectF PythonQtShell_QGraphicsItemGroup::boundingRect() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRectF returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::boundingRect(); -} -bool PythonQtShell_QGraphicsItemGroup::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::collidesWithItem(other, mode); -} -bool PythonQtShell_QGraphicsItemGroup::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::collidesWithPath(path, mode); -} -bool PythonQtShell_QGraphicsItemGroup::contains(const QPointF& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::contains(point); -} -void PythonQtShell_QGraphicsItemGroup::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::contextMenuEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::dragEnterEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::dragEnterEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::dragLeaveEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::dragMoveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::dragMoveEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::dropEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::dropEvent(event); -} -QVariant PythonQtShell_QGraphicsItemGroup::extension(const QVariant& variant) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::extension(variant); -} -void PythonQtShell_QGraphicsItemGroup::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::focusInEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::focusOutEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::hoverEnterEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::hoverEnterEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::hoverLeaveEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::hoverMoveEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::inputMethodEvent(event); -} -QVariant PythonQtShell_QGraphicsItemGroup::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::inputMethodQuery(query); -} -bool PythonQtShell_QGraphicsItemGroup::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::isObscuredBy(item); -} -QVariant PythonQtShell_QGraphicsItemGroup::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&change, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::itemChange(change, value); -} -void PythonQtShell_QGraphicsItemGroup::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::keyPressEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::keyReleaseEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::mouseDoubleClickEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::mouseMoveEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::mouseMoveEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::mousePressEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::mousePressEvent(event); -} -void PythonQtShell_QGraphicsItemGroup::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::mouseReleaseEvent(event); -} -QPainterPath PythonQtShell_QGraphicsItemGroup::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::opaqueArea(); -} -void PythonQtShell_QGraphicsItemGroup::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::paint(painter, option, widget); -} -bool PythonQtShell_QGraphicsItemGroup::sceneEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::sceneEvent(event); -} -bool PythonQtShell_QGraphicsItemGroup::sceneEventFilter(QGraphicsItem* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::sceneEventFilter(watched, event); -} -void PythonQtShell_QGraphicsItemGroup::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&extension, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::setExtension(extension, variant); -} -QPainterPath PythonQtShell_QGraphicsItemGroup::shape() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::shape(); -} -bool PythonQtShell_QGraphicsItemGroup::supportsExtension(QGraphicsItem::Extension extension) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::supportsExtension(extension); -} -int PythonQtShell_QGraphicsItemGroup::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsItemGroup::type(); -} -void PythonQtShell_QGraphicsItemGroup::wheelEvent(QGraphicsSceneWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsItemGroup::wheelEvent(event); -} -QGraphicsItemGroup* PythonQtWrapper_QGraphicsItemGroup::new_QGraphicsItemGroup(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsItemGroup(parent, scene); } - -void PythonQtWrapper_QGraphicsItemGroup::addToGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item) -{ - ( theWrappedObject->addToGroup(item)); -} - -QRectF PythonQtWrapper_QGraphicsItemGroup::boundingRect(QGraphicsItemGroup* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_boundingRect()); -} - -bool PythonQtWrapper_QGraphicsItemGroup::isObscuredBy(QGraphicsItemGroup* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QGraphicsItemGroup::opaqueArea(QGraphicsItemGroup* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsItemGroup::paint(QGraphicsItemGroup* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_paint(painter, option, widget)); -} - -void PythonQtWrapper_QGraphicsItemGroup::removeFromGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item) -{ - ( theWrappedObject->removeFromGroup(item)); -} - -int PythonQtWrapper_QGraphicsItemGroup::type(QGraphicsItemGroup* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsItemGroup*)theWrappedObject)->promoted_type()); -} - - - -int PythonQtShell_QGraphicsLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QGraphicsLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayout::getContentsMargins(left, top, right, bottom); -} -void PythonQtShell_QGraphicsLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayout::invalidate(); -} -QGraphicsLayoutItem* PythonQtShell_QGraphicsLayout::itemAt(int i) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&i}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QGraphicsLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QGraphicsLayout::removeAt(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QGraphicsLayout::setGeometry(const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayout::setGeometry(rect); -} -QSizeF PythonQtShell_QGraphicsLayout::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QSizeF returnValue; - void* args[3] = {NULL, (void*)&which, (void*)&constraint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSizeF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeF(); -} -void PythonQtShell_QGraphicsLayout::updateGeometry() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayout::updateGeometry(); -} -void PythonQtShell_QGraphicsLayout::widgetEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayout::widgetEvent(e); -} -QGraphicsLayout* PythonQtWrapper_QGraphicsLayout::new_QGraphicsLayout(QGraphicsLayoutItem* parent) -{ -return new PythonQtShell_QGraphicsLayout(parent); } - -void PythonQtWrapper_QGraphicsLayout::activate(QGraphicsLayout* theWrappedObject) -{ - ( theWrappedObject->activate()); -} - -void PythonQtWrapper_QGraphicsLayout::getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ - ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_getContentsMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QGraphicsLayout::invalidate(QGraphicsLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_invalidate()); -} - -bool PythonQtWrapper_QGraphicsLayout::isActivated(QGraphicsLayout* theWrappedObject) const -{ - return ( theWrappedObject->isActivated()); -} - -void PythonQtWrapper_QGraphicsLayout::setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom) -{ - ( theWrappedObject->setContentsMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QGraphicsLayout::updateGeometry(QGraphicsLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_updateGeometry()); -} - -void PythonQtWrapper_QGraphicsLayout::widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QGraphicsLayout*)theWrappedObject)->promoted_widgetEvent(e)); -} - - - -void PythonQtShell_QGraphicsLayoutItem::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayoutItem::getContentsMargins(left, top, right, bottom); -} -void PythonQtShell_QGraphicsLayoutItem::setGeometry(const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayoutItem::setGeometry(rect); -} -QSizeF PythonQtShell_QGraphicsLayoutItem::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QSizeF returnValue; - void* args[3] = {NULL, (void*)&which, (void*)&constraint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSizeF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeF(); -} -void PythonQtShell_QGraphicsLayoutItem::updateGeometry() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLayoutItem::updateGeometry(); -} -QGraphicsLayoutItem* PythonQtWrapper_QGraphicsLayoutItem::new_QGraphicsLayoutItem(QGraphicsLayoutItem* parent, bool isLayout) -{ -return new PythonQtShell_QGraphicsLayoutItem(parent, isLayout); } - -QRectF PythonQtWrapper_QGraphicsLayoutItem::contentsRect(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->contentsRect()); -} - -QSizeF PythonQtWrapper_QGraphicsLayoutItem::effectiveSizeHint(QGraphicsLayoutItem* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const -{ - return ( theWrappedObject->effectiveSizeHint(which, constraint)); -} - -QRectF PythonQtWrapper_QGraphicsLayoutItem::geometry(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->geometry()); -} - -void PythonQtWrapper_QGraphicsLayoutItem::getContentsMargins(QGraphicsLayoutItem* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ - ( ((PythonQtPublicPromoter_QGraphicsLayoutItem*)theWrappedObject)->promoted_getContentsMargins(left, top, right, bottom)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsLayoutItem::graphicsItem(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->graphicsItem()); -} - -bool PythonQtWrapper_QGraphicsLayoutItem::isLayout(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->isLayout()); -} - -qreal PythonQtWrapper_QGraphicsLayoutItem::maximumHeight(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->maximumHeight()); -} - -QSizeF PythonQtWrapper_QGraphicsLayoutItem::maximumSize(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->maximumSize()); -} - -qreal PythonQtWrapper_QGraphicsLayoutItem::maximumWidth(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->maximumWidth()); -} - -qreal PythonQtWrapper_QGraphicsLayoutItem::minimumHeight(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->minimumHeight()); -} - -QSizeF PythonQtWrapper_QGraphicsLayoutItem::minimumSize(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->minimumSize()); -} - -qreal PythonQtWrapper_QGraphicsLayoutItem::minimumWidth(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->minimumWidth()); -} - -bool PythonQtWrapper_QGraphicsLayoutItem::ownedByLayout(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->ownedByLayout()); -} - -QGraphicsLayoutItem* PythonQtWrapper_QGraphicsLayoutItem::parentLayoutItem(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->parentLayoutItem()); -} - -qreal PythonQtWrapper_QGraphicsLayoutItem::preferredHeight(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->preferredHeight()); -} - -QSizeF PythonQtWrapper_QGraphicsLayoutItem::preferredSize(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->preferredSize()); -} - -qreal PythonQtWrapper_QGraphicsLayoutItem::preferredWidth(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->preferredWidth()); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setGeometry(QGraphicsLayoutItem* theWrappedObject, const QRectF& rect) -{ - ( ((PythonQtPublicPromoter_QGraphicsLayoutItem*)theWrappedObject)->promoted_setGeometry(rect)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMaximumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height) -{ - ( theWrappedObject->setMaximumHeight(height)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMaximumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size) -{ - ( theWrappedObject->setMaximumSize(size)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMaximumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h) -{ - ( theWrappedObject->setMaximumSize(w, h)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMaximumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width) -{ - ( theWrappedObject->setMaximumWidth(width)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMinimumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height) -{ - ( theWrappedObject->setMinimumHeight(height)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMinimumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size) -{ - ( theWrappedObject->setMinimumSize(size)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMinimumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h) -{ - ( theWrappedObject->setMinimumSize(w, h)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setMinimumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width) -{ - ( theWrappedObject->setMinimumWidth(width)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setParentLayoutItem(QGraphicsLayoutItem* theWrappedObject, QGraphicsLayoutItem* parent) -{ - ( theWrappedObject->setParentLayoutItem(parent)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setPreferredHeight(QGraphicsLayoutItem* theWrappedObject, qreal height) -{ - ( theWrappedObject->setPreferredHeight(height)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setPreferredSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size) -{ - ( theWrappedObject->setPreferredSize(size)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setPreferredSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h) -{ - ( theWrappedObject->setPreferredSize(w, h)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setPreferredWidth(QGraphicsLayoutItem* theWrappedObject, qreal width) -{ - ( theWrappedObject->setPreferredWidth(width)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setSizePolicy(QGraphicsLayoutItem* theWrappedObject, QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType) -{ - ( theWrappedObject->setSizePolicy(hPolicy, vPolicy, controlType)); -} - -void PythonQtWrapper_QGraphicsLayoutItem::setSizePolicy(QGraphicsLayoutItem* theWrappedObject, const QSizePolicy& policy) -{ - ( theWrappedObject->setSizePolicy(policy)); -} - -QSizePolicy PythonQtWrapper_QGraphicsLayoutItem::sizePolicy(QGraphicsLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->sizePolicy()); -} - -void PythonQtWrapper_QGraphicsLayoutItem::updateGeometry(QGraphicsLayoutItem* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsLayoutItem*)theWrappedObject)->promoted_updateGeometry()); -} - - - -void PythonQtShell_QGraphicsLineItem::advance(int phase) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&phase}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::advance(phase); -} -QRectF PythonQtShell_QGraphicsLineItem::boundingRect() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRectF returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::boundingRect(); -} -bool PythonQtShell_QGraphicsLineItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::collidesWithItem(other, mode); -} -bool PythonQtShell_QGraphicsLineItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::collidesWithPath(path, mode); -} -bool PythonQtShell_QGraphicsLineItem::contains(const QPointF& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::contains(point); -} -void PythonQtShell_QGraphicsLineItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::contextMenuEvent(event); -} -void PythonQtShell_QGraphicsLineItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::dragEnterEvent(event); -} -void PythonQtShell_QGraphicsLineItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::dragLeaveEvent(event); -} -void PythonQtShell_QGraphicsLineItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::dragMoveEvent(event); -} -void PythonQtShell_QGraphicsLineItem::dropEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::dropEvent(event); -} -QVariant PythonQtShell_QGraphicsLineItem::extension(const QVariant& variant) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::extension(variant); -} -void PythonQtShell_QGraphicsLineItem::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::focusInEvent(event); -} -void PythonQtShell_QGraphicsLineItem::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::focusOutEvent(event); -} -void PythonQtShell_QGraphicsLineItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::hoverEnterEvent(event); -} -void PythonQtShell_QGraphicsLineItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::hoverLeaveEvent(event); -} -void PythonQtShell_QGraphicsLineItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::hoverMoveEvent(event); -} -void PythonQtShell_QGraphicsLineItem::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::inputMethodEvent(event); -} -QVariant PythonQtShell_QGraphicsLineItem::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::inputMethodQuery(query); -} -bool PythonQtShell_QGraphicsLineItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::isObscuredBy(item); -} -QVariant PythonQtShell_QGraphicsLineItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&change, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::itemChange(change, value); -} -void PythonQtShell_QGraphicsLineItem::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::keyPressEvent(event); -} -void PythonQtShell_QGraphicsLineItem::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::keyReleaseEvent(event); -} -void PythonQtShell_QGraphicsLineItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::mouseDoubleClickEvent(event); -} -void PythonQtShell_QGraphicsLineItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::mouseMoveEvent(event); -} -void PythonQtShell_QGraphicsLineItem::mousePressEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::mousePressEvent(event); -} -void PythonQtShell_QGraphicsLineItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::mouseReleaseEvent(event); -} -QPainterPath PythonQtShell_QGraphicsLineItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::opaqueArea(); -} -void PythonQtShell_QGraphicsLineItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::paint(painter, option, widget); -} -bool PythonQtShell_QGraphicsLineItem::sceneEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::sceneEvent(event); -} -bool PythonQtShell_QGraphicsLineItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::sceneEventFilter(watched, event); -} -QPainterPath PythonQtShell_QGraphicsLineItem::shape() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::shape(); -} -int PythonQtShell_QGraphicsLineItem::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLineItem::type(); -} -void PythonQtShell_QGraphicsLineItem::wheelEvent(QGraphicsSceneWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsLineItem::wheelEvent(event); -} -QGraphicsLineItem* PythonQtWrapper_QGraphicsLineItem::new_QGraphicsLineItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsLineItem(parent, scene); } - -QGraphicsLineItem* PythonQtWrapper_QGraphicsLineItem::new_QGraphicsLineItem(const QLineF& line, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsLineItem(line, parent, scene); } - -QGraphicsLineItem* PythonQtWrapper_QGraphicsLineItem::new_QGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsLineItem(x1, y1, x2, y2, parent, scene); } - -QRectF PythonQtWrapper_QGraphicsLineItem::boundingRect(QGraphicsLineItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_boundingRect()); -} - -bool PythonQtWrapper_QGraphicsLineItem::contains(QGraphicsLineItem* theWrappedObject, const QPointF& point) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_contains(point)); -} - -QVariant PythonQtWrapper_QGraphicsLineItem::extension(QGraphicsLineItem* theWrappedObject, const QVariant& variant) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_extension(variant)); -} - -bool PythonQtWrapper_QGraphicsLineItem::isObscuredBy(QGraphicsLineItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QLineF PythonQtWrapper_QGraphicsLineItem::line(QGraphicsLineItem* theWrappedObject) const -{ - return ( theWrappedObject->line()); -} - -QPainterPath PythonQtWrapper_QGraphicsLineItem::opaqueArea(QGraphicsLineItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsLineItem::paint(QGraphicsLineItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_paint(painter, option, widget)); -} - -QPen PythonQtWrapper_QGraphicsLineItem::pen(QGraphicsLineItem* theWrappedObject) const -{ - return ( theWrappedObject->pen()); -} - -void PythonQtWrapper_QGraphicsLineItem::setLine(QGraphicsLineItem* theWrappedObject, const QLineF& line) -{ - ( theWrappedObject->setLine(line)); -} - -void PythonQtWrapper_QGraphicsLineItem::setLine(QGraphicsLineItem* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) -{ - ( theWrappedObject->setLine(x1, y1, x2, y2)); -} - -void PythonQtWrapper_QGraphicsLineItem::setPen(QGraphicsLineItem* theWrappedObject, const QPen& pen) -{ - ( theWrappedObject->setPen(pen)); -} - -QPainterPath PythonQtWrapper_QGraphicsLineItem::shape(QGraphicsLineItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_shape()); -} - -int PythonQtWrapper_QGraphicsLineItem::type(QGraphicsLineItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLineItem*)theWrappedObject)->promoted_type()); -} - - - -int PythonQtShell_QGraphicsLinearLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLinearLayout::count(); -} -void PythonQtShell_QGraphicsLinearLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLinearLayout::getContentsMargins(left, top, right, bottom); -} -void PythonQtShell_QGraphicsLinearLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLinearLayout::invalidate(); -} -QGraphicsLayoutItem* PythonQtShell_QGraphicsLinearLayout::itemAt(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QGraphicsLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsLinearLayout::itemAt(index); -} -void PythonQtShell_QGraphicsLinearLayout::removeAt(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLinearLayout::removeAt(index); -} -void PythonQtShell_QGraphicsLinearLayout::updateGeometry() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLinearLayout::updateGeometry(); -} -void PythonQtShell_QGraphicsLinearLayout::widgetEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsLinearLayout::widgetEvent(e); -} -QGraphicsLinearLayout* PythonQtWrapper_QGraphicsLinearLayout::new_QGraphicsLinearLayout(QGraphicsLayoutItem* parent) -{ -return new PythonQtShell_QGraphicsLinearLayout(parent); } - -QGraphicsLinearLayout* PythonQtWrapper_QGraphicsLinearLayout::new_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent) -{ -return new PythonQtShell_QGraphicsLinearLayout(orientation, parent); } - -void PythonQtWrapper_QGraphicsLinearLayout::addItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) -{ - ( theWrappedObject->addItem(item)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::addStretch(QGraphicsLinearLayout* theWrappedObject, int stretch) -{ - ( theWrappedObject->addStretch(stretch)); -} - -Qt::Alignment PythonQtWrapper_QGraphicsLinearLayout::alignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const -{ - return ( theWrappedObject->alignment(item)); -} - -int PythonQtWrapper_QGraphicsLinearLayout::count(QGraphicsLinearLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_count()); -} - -void PythonQtWrapper_QGraphicsLinearLayout::dump(QGraphicsLinearLayout* theWrappedObject, int indent) const -{ - ( theWrappedObject->dump(indent)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::insertItem(QGraphicsLinearLayout* theWrappedObject, int index, QGraphicsLayoutItem* item) -{ - ( theWrappedObject->insertItem(index, item)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::insertStretch(QGraphicsLinearLayout* theWrappedObject, int index, int stretch) -{ - ( theWrappedObject->insertStretch(index, stretch)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::invalidate(QGraphicsLinearLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_invalidate()); -} - -QGraphicsLayoutItem* PythonQtWrapper_QGraphicsLinearLayout::itemAt(QGraphicsLinearLayout* theWrappedObject, int index) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_itemAt(index)); -} - -qreal PythonQtWrapper_QGraphicsLinearLayout::itemSpacing(QGraphicsLinearLayout* theWrappedObject, int index) const -{ - return ( theWrappedObject->itemSpacing(index)); -} - -Qt::Orientation PythonQtWrapper_QGraphicsLinearLayout::orientation(QGraphicsLinearLayout* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QGraphicsLinearLayout::removeAt(QGraphicsLinearLayout* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_removeAt(index)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::removeItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) -{ - ( theWrappedObject->removeItem(item)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::setAlignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment) -{ - ( theWrappedObject->setAlignment(item, alignment)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::setGeometry(QGraphicsLinearLayout* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setGeometry(rect)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::setItemSpacing(QGraphicsLinearLayout* theWrappedObject, int index, qreal spacing) -{ - ( theWrappedObject->setItemSpacing(index, spacing)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::setOrientation(QGraphicsLinearLayout* theWrappedObject, Qt::Orientation orientation) -{ - ( theWrappedObject->setOrientation(orientation)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::setSpacing(QGraphicsLinearLayout* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setSpacing(spacing)); -} - -void PythonQtWrapper_QGraphicsLinearLayout::setStretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, int stretch) -{ - ( theWrappedObject->setStretchFactor(item, stretch)); -} - -QSizeF PythonQtWrapper_QGraphicsLinearLayout::sizeHint(QGraphicsLinearLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const -{ - return ( theWrappedObject->sizeHint(which, constraint)); -} - -qreal PythonQtWrapper_QGraphicsLinearLayout::spacing(QGraphicsLinearLayout* theWrappedObject) const -{ - return ( theWrappedObject->spacing()); -} - -int PythonQtWrapper_QGraphicsLinearLayout::stretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const -{ - return ( theWrappedObject->stretchFactor(item)); -} - - - -void PythonQtShell_QGraphicsObject::advance(int phase) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&phase}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsObject::advance(phase); -} -QRectF PythonQtShell_QGraphicsObject::boundingRect() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRectF returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRectF(); -} -void PythonQtShell_QGraphicsObject::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsObject::childEvent(arg__1); -} -bool PythonQtShell_QGraphicsObject::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::collidesWithItem(other, mode); -} -bool PythonQtShell_QGraphicsObject::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::collidesWithPath(path, mode); -} -bool PythonQtShell_QGraphicsObject::contains(const QPointF& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::contains(point); -} -void PythonQtShell_QGraphicsObject::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::contextMenuEvent(event); -} -void PythonQtShell_QGraphicsObject::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsObject::customEvent(arg__1); -} -void PythonQtShell_QGraphicsObject::dragEnterEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::dragEnterEvent(event); -} -void PythonQtShell_QGraphicsObject::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::dragLeaveEvent(event); -} -void PythonQtShell_QGraphicsObject::dragMoveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::dragMoveEvent(event); -} -void PythonQtShell_QGraphicsObject::dropEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::dropEvent(event); -} -bool PythonQtShell_QGraphicsObject::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::event(arg__1); -} -bool PythonQtShell_QGraphicsObject::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::eventFilter(arg__1, arg__2); -} -QVariant PythonQtShell_QGraphicsObject::extension(const QVariant& variant) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::extension(variant); -} -void PythonQtShell_QGraphicsObject::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsObject::focusInEvent(event); -} -void PythonQtShell_QGraphicsObject::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsObject::focusOutEvent(event); -} -void PythonQtShell_QGraphicsObject::hoverEnterEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::hoverEnterEvent(event); -} -void PythonQtShell_QGraphicsObject::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::hoverLeaveEvent(event); -} -void PythonQtShell_QGraphicsObject::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::hoverMoveEvent(event); -} -void PythonQtShell_QGraphicsObject::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::inputMethodEvent(event); -} -QVariant PythonQtShell_QGraphicsObject::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::inputMethodQuery(query); -} -bool PythonQtShell_QGraphicsObject::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::isObscuredBy(item); -} -QVariant PythonQtShell_QGraphicsObject::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&change, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::itemChange(change, value); -} -void PythonQtShell_QGraphicsObject::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsObject::keyPressEvent(event); -} -void PythonQtShell_QGraphicsObject::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsObject::keyReleaseEvent(event); -} -void PythonQtShell_QGraphicsObject::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::mouseDoubleClickEvent(event); -} -void PythonQtShell_QGraphicsObject::mouseMoveEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::mouseMoveEvent(event); -} -void PythonQtShell_QGraphicsObject::mousePressEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::mousePressEvent(event); -} -void PythonQtShell_QGraphicsObject::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::mouseReleaseEvent(event); -} -QPainterPath PythonQtShell_QGraphicsObject::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::opaqueArea(); -} -void PythonQtShell_QGraphicsObject::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -bool PythonQtShell_QGraphicsObject::sceneEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::sceneEvent(event); -} -bool PythonQtShell_QGraphicsObject::sceneEventFilter(QGraphicsItem* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::sceneEventFilter(watched, event); -} -void PythonQtShell_QGraphicsObject::setExtension(QGraphicsItem::Extension extension, const QVariant& variant) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsItem::Extension" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&extension, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsObject::setExtension(extension, variant); -} -QPainterPath PythonQtShell_QGraphicsObject::shape() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::shape(); -} -bool PythonQtShell_QGraphicsObject::supportsExtension(QGraphicsItem::Extension extension) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsExtension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportsExtension", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::supportsExtension(extension); -} -void PythonQtShell_QGraphicsObject::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsObject::timerEvent(arg__1); -} -int PythonQtShell_QGraphicsObject::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsObject::type(); -} -void PythonQtShell_QGraphicsObject::wheelEvent(QGraphicsSceneWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsObject::wheelEvent(event); -} -QGraphicsObject* PythonQtWrapper_QGraphicsObject::new_QGraphicsObject(QGraphicsItem* parent) -{ -return new PythonQtShell_QGraphicsObject(parent); } - -QString PythonQtWrapper_QGraphicsObject::py_toString(QGraphicsObject* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << obj; -#endif - return result; -} - - - -QRectF PythonQtShell_QGraphicsOpacityEffect::boundingRectFor(const QRectF& sourceRect) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRectFor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRectF returnValue; - void* args[2] = {NULL, (void*)&sourceRect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRectFor", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsOpacityEffect::boundingRectFor(sourceRect); -} -void PythonQtShell_QGraphicsOpacityEffect::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsOpacityEffect::childEvent(arg__1); -} -void PythonQtShell_QGraphicsOpacityEffect::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsOpacityEffect::customEvent(arg__1); -} -void PythonQtShell_QGraphicsOpacityEffect::draw(QPainter* painter) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "draw"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsOpacityEffect::draw(painter); -} -bool PythonQtShell_QGraphicsOpacityEffect::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsOpacityEffect::event(arg__1); -} -bool PythonQtShell_QGraphicsOpacityEffect::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsOpacityEffect::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsOpacityEffect::sourceChanged(QGraphicsEffect::ChangeFlags flags) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sourceChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsEffect::ChangeFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsOpacityEffect::sourceChanged(flags); -} -void PythonQtShell_QGraphicsOpacityEffect::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsOpacityEffect::timerEvent(arg__1); -} -QGraphicsOpacityEffect* PythonQtWrapper_QGraphicsOpacityEffect::new_QGraphicsOpacityEffect(QObject* parent) -{ -return new PythonQtShell_QGraphicsOpacityEffect(parent); } - -void PythonQtWrapper_QGraphicsOpacityEffect::draw(QGraphicsOpacityEffect* theWrappedObject, QPainter* painter) -{ - ( ((PythonQtPublicPromoter_QGraphicsOpacityEffect*)theWrappedObject)->promoted_draw(painter)); -} - -qreal PythonQtWrapper_QGraphicsOpacityEffect::opacity(QGraphicsOpacityEffect* theWrappedObject) const -{ - return ( theWrappedObject->opacity()); -} - -QBrush PythonQtWrapper_QGraphicsOpacityEffect::opacityMask(QGraphicsOpacityEffect* theWrappedObject) const -{ - return ( theWrappedObject->opacityMask()); -} - - - -bool PythonQtShell_QGraphicsPathItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPathItem::isObscuredBy(item); -} -QPainterPath PythonQtShell_QGraphicsPathItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPathItem::opaqueArea(); -} -QGraphicsPathItem* PythonQtWrapper_QGraphicsPathItem::new_QGraphicsPathItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsPathItem(parent, scene); } - -QGraphicsPathItem* PythonQtWrapper_QGraphicsPathItem::new_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsPathItem(path, parent, scene); } - -QRectF PythonQtWrapper_QGraphicsPathItem::boundingRect(QGraphicsPathItem* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -bool PythonQtWrapper_QGraphicsPathItem::contains(QGraphicsPathItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->contains(point)); -} - -bool PythonQtWrapper_QGraphicsPathItem::isObscuredBy(QGraphicsPathItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPathItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QGraphicsPathItem::opaqueArea(QGraphicsPathItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPathItem*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsPathItem::paint(QGraphicsPathItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -QPainterPath PythonQtWrapper_QGraphicsPathItem::path(QGraphicsPathItem* theWrappedObject) const -{ - return ( theWrappedObject->path()); -} - -void PythonQtWrapper_QGraphicsPathItem::setPath(QGraphicsPathItem* theWrappedObject, const QPainterPath& path) -{ - ( theWrappedObject->setPath(path)); -} - -QPainterPath PythonQtWrapper_QGraphicsPathItem::shape(QGraphicsPathItem* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -int PythonQtWrapper_QGraphicsPathItem::type(QGraphicsPathItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.h deleted file mode 100644 index a82d32efd..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.h +++ /dev/null @@ -1,2029 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QErrorMessage : public QErrorMessage -{ -public: - PythonQtShell_QErrorMessage(QWidget* parent = 0):QErrorMessage(parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int arg__1); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QErrorMessage : public QErrorMessage -{ public: -inline void promoted_changeEvent(QEvent* e) { QErrorMessage::changeEvent(e); } -inline void promoted_done(int arg__1) { QErrorMessage::done(arg__1); } -}; - -class PythonQtWrapper_QErrorMessage : public QObject -{ Q_OBJECT -public: -public slots: -QErrorMessage* new_QErrorMessage(QWidget* parent = 0); -void delete_QErrorMessage(QErrorMessage* obj) { delete obj; } - void changeEvent(QErrorMessage* theWrappedObject, QEvent* e); - void done(QErrorMessage* theWrappedObject, int arg__1); - QErrorMessage* static_QErrorMessage_qtHandler(); -}; - - - - - -class PythonQtShell_QFileDialog : public QFileDialog -{ -public: - PythonQtShell_QFileDialog(QWidget* parent, Qt::WindowFlags f):QFileDialog(parent, f),_wrapper(NULL) {}; - PythonQtShell_QFileDialog(QWidget* parent = 0, const QString& caption = QString(), const QString& directory = QString(), const QString& filter = QString()):QFileDialog(parent, caption, directory, filter),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFileDialog : public QFileDialog -{ public: -inline void promoted_accept() { QFileDialog::accept(); } -inline void promoted_changeEvent(QEvent* e) { QFileDialog::changeEvent(e); } -inline void promoted_done(int result) { QFileDialog::done(result); } -}; - -class PythonQtWrapper_QFileDialog : public QObject -{ Q_OBJECT -public: -Q_ENUMS(DialogLabel ) -enum DialogLabel{ - LookIn = QFileDialog::LookIn, FileName = QFileDialog::FileName, FileType = QFileDialog::FileType, Accept = QFileDialog::Accept, Reject = QFileDialog::Reject}; -public slots: -QFileDialog* new_QFileDialog(QWidget* parent, Qt::WindowFlags f); -QFileDialog* new_QFileDialog(QWidget* parent = 0, const QString& caption = QString(), const QString& directory = QString(), const QString& filter = QString()); -void delete_QFileDialog(QFileDialog* obj) { delete obj; } - void accept(QFileDialog* theWrappedObject); - QFileDialog::AcceptMode acceptMode(QFileDialog* theWrappedObject) const; - void changeEvent(QFileDialog* theWrappedObject, QEvent* e); - bool confirmOverwrite(QFileDialog* theWrappedObject) const; - QString defaultSuffix(QFileDialog* theWrappedObject) const; - QDir directory(QFileDialog* theWrappedObject) const; - void done(QFileDialog* theWrappedObject, int result); - QFileDialog::FileMode fileMode(QFileDialog* theWrappedObject) const; - QDir::Filters filter(QFileDialog* theWrappedObject) const; - QStringList filters(QFileDialog* theWrappedObject) const; - QString static_QFileDialog_getExistingDirectory(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), QFileDialog::Options options = QFileDialog::ShowDirsOnly); - QString static_QFileDialog_getOpenFileName(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); - QStringList static_QFileDialog_getOpenFileNames(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); - QString static_QFileDialog_getSaveFileName(QWidget* parent = 0, const QString& caption = QString(), const QString& dir = QString(), const QString& filter = QString(), QString* selectedFilter = 0, QFileDialog::Options options = 0); - QStringList history(QFileDialog* theWrappedObject) const; - QFileIconProvider* iconProvider(QFileDialog* theWrappedObject) const; - bool isNameFilterDetailsVisible(QFileDialog* theWrappedObject) const; - bool isReadOnly(QFileDialog* theWrappedObject) const; - QAbstractItemDelegate* itemDelegate(QFileDialog* theWrappedObject) const; - QString labelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label) const; - QStringList nameFilters(QFileDialog* theWrappedObject) const; - void open(QFileDialog* theWrappedObject); - void open(QFileDialog* theWrappedObject, QObject* receiver, const char* member); - QFileDialog::Options options(QFileDialog* theWrappedObject) const; - QAbstractProxyModel* proxyModel(QFileDialog* theWrappedObject) const; - bool resolveSymlinks(QFileDialog* theWrappedObject) const; - bool restoreState(QFileDialog* theWrappedObject, const QByteArray& state); - QByteArray saveState(QFileDialog* theWrappedObject) const; - void selectFile(QFileDialog* theWrappedObject, const QString& filename); - void selectFilter(QFileDialog* theWrappedObject, const QString& filter); - void selectNameFilter(QFileDialog* theWrappedObject, const QString& filter); - QStringList selectedFiles(QFileDialog* theWrappedObject) const; - QString selectedFilter(QFileDialog* theWrappedObject) const; - QString selectedNameFilter(QFileDialog* theWrappedObject) const; - void setAcceptMode(QFileDialog* theWrappedObject, QFileDialog::AcceptMode mode); - void setConfirmOverwrite(QFileDialog* theWrappedObject, bool enabled); - void setDefaultSuffix(QFileDialog* theWrappedObject, const QString& suffix); - void setDirectory(QFileDialog* theWrappedObject, const QDir& directory); - void setDirectory(QFileDialog* theWrappedObject, const QString& directory); - void setFileMode(QFileDialog* theWrappedObject, QFileDialog::FileMode mode); - void setFilter(QFileDialog* theWrappedObject, QDir::Filters filters); - void setFilter(QFileDialog* theWrappedObject, const QString& filter); - void setFilters(QFileDialog* theWrappedObject, const QStringList& filters); - void setHistory(QFileDialog* theWrappedObject, const QStringList& paths); - void setIconProvider(QFileDialog* theWrappedObject, QFileIconProvider* provider); - void setItemDelegate(QFileDialog* theWrappedObject, QAbstractItemDelegate* delegate); - void setLabelText(QFileDialog* theWrappedObject, QFileDialog::DialogLabel label, const QString& text); - void setNameFilter(QFileDialog* theWrappedObject, const QString& filter); - void setNameFilterDetailsVisible(QFileDialog* theWrappedObject, bool enabled); - void setNameFilters(QFileDialog* theWrappedObject, const QStringList& filters); - void setOption(QFileDialog* theWrappedObject, QFileDialog::Option option, bool on = true); - void setOptions(QFileDialog* theWrappedObject, QFileDialog::Options options); - void setProxyModel(QFileDialog* theWrappedObject, QAbstractProxyModel* model); - void setReadOnly(QFileDialog* theWrappedObject, bool enabled); - void setResolveSymlinks(QFileDialog* theWrappedObject, bool enabled); - void setSidebarUrls(QFileDialog* theWrappedObject, const QList& urls); - void setViewMode(QFileDialog* theWrappedObject, QFileDialog::ViewMode mode); - void setVisible(QFileDialog* theWrappedObject, bool visible); - QList sidebarUrls(QFileDialog* theWrappedObject) const; - bool testOption(QFileDialog* theWrappedObject, QFileDialog::Option option) const; - QFileDialog::ViewMode viewMode(QFileDialog* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QFileIconProvider : public QFileIconProvider -{ -public: - PythonQtShell_QFileIconProvider():QFileIconProvider(),_wrapper(NULL) {}; - -virtual QIcon icon(QFileIconProvider::IconType type) const; -virtual QIcon icon(const QFileInfo& info) const; -virtual QString type(const QFileInfo& info) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFileIconProvider : public QFileIconProvider -{ public: -inline QIcon promoted_icon(QFileIconProvider::IconType type) const { return QFileIconProvider::icon(type); } -inline QIcon promoted_icon(const QFileInfo& info) const { return QFileIconProvider::icon(info); } -inline QString promoted_type(const QFileInfo& info) const { return QFileIconProvider::type(info); } -}; - -class PythonQtWrapper_QFileIconProvider : public QObject -{ Q_OBJECT -public: -Q_ENUMS(IconType ) -enum IconType{ - Computer = QFileIconProvider::Computer, Desktop = QFileIconProvider::Desktop, Trashcan = QFileIconProvider::Trashcan, Network = QFileIconProvider::Network, Drive = QFileIconProvider::Drive, Folder = QFileIconProvider::Folder, File = QFileIconProvider::File}; -public slots: -QFileIconProvider* new_QFileIconProvider(); -void delete_QFileIconProvider(QFileIconProvider* obj) { delete obj; } - QIcon icon(QFileIconProvider* theWrappedObject, QFileIconProvider::IconType type) const; - QIcon icon(QFileIconProvider* theWrappedObject, const QFileInfo& info) const; - QString type(QFileIconProvider* theWrappedObject, const QFileInfo& info) const; -}; - - - - - -class PythonQtWrapper_QFileOpenEvent : public QObject -{ Q_OBJECT -public: -public slots: -QFileOpenEvent* new_QFileOpenEvent(const QString& file); -QFileOpenEvent* new_QFileOpenEvent(const QUrl& url); -void delete_QFileOpenEvent(QFileOpenEvent* obj) { delete obj; } - QString file(QFileOpenEvent* theWrappedObject) const; - QUrl url(QFileOpenEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QFocusEvent : public QObject -{ Q_OBJECT -public: -public slots: -QFocusEvent* new_QFocusEvent(QEvent::Type type, Qt::FocusReason reason = Qt::OtherFocusReason); -void delete_QFocusEvent(QFocusEvent* obj) { delete obj; } - bool gotFocus(QFocusEvent* theWrappedObject) const; - bool lostFocus(QFocusEvent* theWrappedObject) const; - Qt::FocusReason reason(QFocusEvent* theWrappedObject); -}; - - - - - -class PythonQtShell_QFocusFrame : public QFocusFrame -{ -public: - PythonQtShell_QFocusFrame(QWidget* parent = 0):QFocusFrame(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFocusFrame : public QFocusFrame -{ public: -inline bool promoted_event(QEvent* e) { return QFocusFrame::event(e); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QFocusFrame::eventFilter(arg__1, arg__2); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QFocusFrame::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QFocusFrame : public QObject -{ Q_OBJECT -public: -public slots: -QFocusFrame* new_QFocusFrame(QWidget* parent = 0); -void delete_QFocusFrame(QFocusFrame* obj) { delete obj; } - bool event(QFocusFrame* theWrappedObject, QEvent* e); - bool eventFilter(QFocusFrame* theWrappedObject, QObject* arg__1, QEvent* arg__2); - void paintEvent(QFocusFrame* theWrappedObject, QPaintEvent* arg__1); - void setWidget(QFocusFrame* theWrappedObject, QWidget* widget); - QWidget* widget(QFocusFrame* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QFontComboBox : public QFontComboBox -{ -public: - PythonQtShell_QFontComboBox(QWidget* parent = 0):QFontComboBox(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* e); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* e); -virtual void hidePopup(); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void resizeEvent(QResizeEvent* e); -virtual void showEvent(QShowEvent* e); -virtual void showPopup(); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFontComboBox : public QFontComboBox -{ public: -inline bool promoted_event(QEvent* e) { return QFontComboBox::event(e); } -}; - -class PythonQtWrapper_QFontComboBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(FontFilter ) -Q_FLAGS(FontFilters ) -enum FontFilter{ - AllFonts = QFontComboBox::AllFonts, ScalableFonts = QFontComboBox::ScalableFonts, NonScalableFonts = QFontComboBox::NonScalableFonts, MonospacedFonts = QFontComboBox::MonospacedFonts, ProportionalFonts = QFontComboBox::ProportionalFonts}; -Q_DECLARE_FLAGS(FontFilters, FontFilter) -public slots: -QFontComboBox* new_QFontComboBox(QWidget* parent = 0); -void delete_QFontComboBox(QFontComboBox* obj) { delete obj; } - QFont currentFont(QFontComboBox* theWrappedObject) const; - bool event(QFontComboBox* theWrappedObject, QEvent* e); - QFontComboBox::FontFilters fontFilters(QFontComboBox* theWrappedObject) const; - void setFontFilters(QFontComboBox* theWrappedObject, QFontComboBox::FontFilters filters); - void setWritingSystem(QFontComboBox* theWrappedObject, QFontDatabase::WritingSystem arg__1); - QSize sizeHint(QFontComboBox* theWrappedObject) const; - QFontDatabase::WritingSystem writingSystem(QFontComboBox* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QFontDialog : public QFontDialog -{ -public: - PythonQtShell_QFontDialog(QWidget* parent = 0):QFontDialog(parent),_wrapper(NULL) {}; - PythonQtShell_QFontDialog(const QFont& initial, QWidget* parent = 0):QFontDialog(initial, parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFontDialog : public QFontDialog -{ public: -inline void promoted_changeEvent(QEvent* event) { QFontDialog::changeEvent(event); } -inline void promoted_done(int result) { QFontDialog::done(result); } -}; - -class PythonQtWrapper_QFontDialog : public QObject -{ Q_OBJECT -public: -public slots: -QFontDialog* new_QFontDialog(QWidget* parent = 0); -QFontDialog* new_QFontDialog(const QFont& initial, QWidget* parent = 0); -void delete_QFontDialog(QFontDialog* obj) { delete obj; } - void changeEvent(QFontDialog* theWrappedObject, QEvent* event); - QFont currentFont(QFontDialog* theWrappedObject) const; - void done(QFontDialog* theWrappedObject, int result); - QFont static_QFontDialog_getFont(bool* ok, QWidget* parent = 0); - QFont static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent = 0); - QFont static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent, const QString& title); - QFont static_QFontDialog_getFont(bool* ok, const QFont& initial, QWidget* parent, const QString& title, QFontDialog::FontDialogOptions options); - void open(QFontDialog* theWrappedObject); - void open(QFontDialog* theWrappedObject, QObject* receiver, const char* member); - QFontDialog::FontDialogOptions options(QFontDialog* theWrappedObject) const; - QFont selectedFont(QFontDialog* theWrappedObject) const; - void setCurrentFont(QFontDialog* theWrappedObject, const QFont& font); - void setOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option, bool on = true); - void setOptions(QFontDialog* theWrappedObject, QFontDialog::FontDialogOptions options); - void setVisible(QFontDialog* theWrappedObject, bool visible); - bool testOption(QFontDialog* theWrappedObject, QFontDialog::FontDialogOption option) const; -}; - - - - - -class PythonQtWrapper_QFontInfo : public QObject -{ Q_OBJECT -public: -public slots: -QFontInfo* new_QFontInfo(const QFont& arg__1); -QFontInfo* new_QFontInfo(const QFontInfo& arg__1); -void delete_QFontInfo(QFontInfo* obj) { delete obj; } - bool bold(QFontInfo* theWrappedObject) const; - bool exactMatch(QFontInfo* theWrappedObject) const; - QString family(QFontInfo* theWrappedObject) const; - bool fixedPitch(QFontInfo* theWrappedObject) const; - bool italic(QFontInfo* theWrappedObject) const; - bool overline(QFontInfo* theWrappedObject) const; - int pixelSize(QFontInfo* theWrappedObject) const; - int pointSize(QFontInfo* theWrappedObject) const; - qreal pointSizeF(QFontInfo* theWrappedObject) const; - bool rawMode(QFontInfo* theWrappedObject) const; - bool strikeOut(QFontInfo* theWrappedObject) const; - QFont::Style style(QFontInfo* theWrappedObject) const; - QFont::StyleHint styleHint(QFontInfo* theWrappedObject) const; - bool underline(QFontInfo* theWrappedObject) const; - int weight(QFontInfo* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QFontMetrics : public QObject -{ Q_OBJECT -public: -public slots: -QFontMetrics* new_QFontMetrics(const QFont& arg__1); -QFontMetrics* new_QFontMetrics(const QFont& arg__1, QPaintDevice* pd); -void delete_QFontMetrics(QFontMetrics* obj) { delete obj; } - int ascent(QFontMetrics* theWrappedObject) const; - int averageCharWidth(QFontMetrics* theWrappedObject) const; - QRect boundingRect(QFontMetrics* theWrappedObject, QChar arg__1) const; - QRect boundingRect(QFontMetrics* theWrappedObject, const QRect& r, int flags, const QString& text, int tabstops = 0, int* tabarray = 0) const; - QRect boundingRect(QFontMetrics* theWrappedObject, const QString& text) const; - QRect boundingRect(QFontMetrics* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, int tabstops = 0, int* tabarray = 0) const; - int charWidth(QFontMetrics* theWrappedObject, const QString& str, int pos) const; - int descent(QFontMetrics* theWrappedObject) const; - QString elidedText(QFontMetrics* theWrappedObject, const QString& text, Qt::TextElideMode mode, int width, int flags = 0) const; - int height(QFontMetrics* theWrappedObject) const; - bool inFont(QFontMetrics* theWrappedObject, QChar arg__1) const; - int leading(QFontMetrics* theWrappedObject) const; - int leftBearing(QFontMetrics* theWrappedObject, QChar arg__1) const; - int lineSpacing(QFontMetrics* theWrappedObject) const; - int lineWidth(QFontMetrics* theWrappedObject) const; - int maxWidth(QFontMetrics* theWrappedObject) const; - int minLeftBearing(QFontMetrics* theWrappedObject) const; - int minRightBearing(QFontMetrics* theWrappedObject) const; - int overlinePos(QFontMetrics* theWrappedObject) const; - int rightBearing(QFontMetrics* theWrappedObject, QChar arg__1) const; - QSize size(QFontMetrics* theWrappedObject, int flags, const QString& str, int tabstops = 0, int* tabarray = 0) const; - int strikeOutPos(QFontMetrics* theWrappedObject) const; - QRect tightBoundingRect(QFontMetrics* theWrappedObject, const QString& text) const; - int underlinePos(QFontMetrics* theWrappedObject) const; - int width(QFontMetrics* theWrappedObject, QChar arg__1) const; - int width(QFontMetrics* theWrappedObject, const QString& arg__1, int len = -1) const; - int xHeight(QFontMetrics* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QFontMetricsF : public QObject -{ Q_OBJECT -public: -public slots: -QFontMetricsF* new_QFontMetricsF(const QFont& arg__1); -QFontMetricsF* new_QFontMetricsF(const QFont& arg__1, QPaintDevice* pd); -void delete_QFontMetricsF(QFontMetricsF* obj) { delete obj; } - qreal ascent(QFontMetricsF* theWrappedObject) const; - qreal averageCharWidth(QFontMetricsF* theWrappedObject) const; - QRectF boundingRect(QFontMetricsF* theWrappedObject, QChar arg__1) const; - QRectF boundingRect(QFontMetricsF* theWrappedObject, const QRectF& r, int flags, const QString& string, int tabstops = 0, int* tabarray = 0) const; - QRectF boundingRect(QFontMetricsF* theWrappedObject, const QString& string) const; - qreal descent(QFontMetricsF* theWrappedObject) const; - QString elidedText(QFontMetricsF* theWrappedObject, const QString& text, Qt::TextElideMode mode, qreal width, int flags = 0) const; - qreal height(QFontMetricsF* theWrappedObject) const; - bool inFont(QFontMetricsF* theWrappedObject, QChar arg__1) const; - qreal leading(QFontMetricsF* theWrappedObject) const; - qreal leftBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const; - qreal lineSpacing(QFontMetricsF* theWrappedObject) const; - qreal lineWidth(QFontMetricsF* theWrappedObject) const; - qreal maxWidth(QFontMetricsF* theWrappedObject) const; - qreal minLeftBearing(QFontMetricsF* theWrappedObject) const; - qreal minRightBearing(QFontMetricsF* theWrappedObject) const; - qreal overlinePos(QFontMetricsF* theWrappedObject) const; - qreal rightBearing(QFontMetricsF* theWrappedObject, QChar arg__1) const; - QSizeF size(QFontMetricsF* theWrappedObject, int flags, const QString& str, int tabstops = 0, int* tabarray = 0) const; - qreal strikeOutPos(QFontMetricsF* theWrappedObject) const; - QRectF tightBoundingRect(QFontMetricsF* theWrappedObject, const QString& text) const; - qreal underlinePos(QFontMetricsF* theWrappedObject) const; - qreal width(QFontMetricsF* theWrappedObject, QChar arg__1) const; - qreal width(QFontMetricsF* theWrappedObject, const QString& string) const; - qreal xHeight(QFontMetricsF* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QFormLayout : public QFormLayout -{ -public: - PythonQtShell_QFormLayout(QWidget* parent = 0):QFormLayout(parent),_wrapper(NULL) {}; - -virtual void addItem(QLayoutItem* item); -virtual void childEvent(QChildEvent* e); -virtual int count() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual int indexOf(QWidget* arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayoutItem* itemAt(int index) const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& rect); -virtual QLayoutItem* takeAt(int index); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFormLayout : public QFormLayout -{ public: -inline void promoted_addItem(QLayoutItem* item) { QFormLayout::addItem(item); } -inline int promoted_count() const { return QFormLayout::count(); } -inline Qt::Orientations promoted_expandingDirections() const { return QFormLayout::expandingDirections(); } -inline void promoted_invalidate() { QFormLayout::invalidate(); } -inline QLayoutItem* promoted_itemAt(int index) const { return QFormLayout::itemAt(index); } -inline QSize promoted_minimumSize() const { return QFormLayout::minimumSize(); } -inline void promoted_setGeometry(const QRect& rect) { QFormLayout::setGeometry(rect); } -inline QLayoutItem* promoted_takeAt(int index) { return QFormLayout::takeAt(index); } -}; - -class PythonQtWrapper_QFormLayout : public QObject -{ Q_OBJECT -public: -public slots: -QFormLayout* new_QFormLayout(QWidget* parent = 0); -void delete_QFormLayout(QFormLayout* obj) { delete obj; } - void addItem(QFormLayout* theWrappedObject, QLayoutItem* item); - void addRow(QFormLayout* theWrappedObject, QLayout* layout); - void addRow(QFormLayout* theWrappedObject, QWidget* label, QLayout* field); - void addRow(QFormLayout* theWrappedObject, QWidget* label, QWidget* field); - void addRow(QFormLayout* theWrappedObject, QWidget* widget); - void addRow(QFormLayout* theWrappedObject, const QString& labelText, QLayout* field); - void addRow(QFormLayout* theWrappedObject, const QString& labelText, QWidget* field); - int count(QFormLayout* theWrappedObject) const; - Qt::Orientations expandingDirections(QFormLayout* theWrappedObject) const; - QFormLayout::FieldGrowthPolicy fieldGrowthPolicy(QFormLayout* theWrappedObject) const; - Qt::Alignment formAlignment(QFormLayout* theWrappedObject) const; - void getItemPosition(QFormLayout* theWrappedObject, int index, int* rowPtr, QFormLayout::ItemRole* rolePtr) const; - void getLayoutPosition(QFormLayout* theWrappedObject, QLayout* layout, int* rowPtr, QFormLayout::ItemRole* rolePtr) const; - void getWidgetPosition(QFormLayout* theWrappedObject, QWidget* widget, int* rowPtr, QFormLayout::ItemRole* rolePtr) const; - bool hasHeightForWidth(QFormLayout* theWrappedObject) const; - int heightForWidth(QFormLayout* theWrappedObject, int width) const; - int horizontalSpacing(QFormLayout* theWrappedObject) const; - void insertRow(QFormLayout* theWrappedObject, int row, QLayout* layout); - void insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QLayout* field); - void insertRow(QFormLayout* theWrappedObject, int row, QWidget* label, QWidget* field); - void insertRow(QFormLayout* theWrappedObject, int row, QWidget* widget); - void insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QLayout* field); - void insertRow(QFormLayout* theWrappedObject, int row, const QString& labelText, QWidget* field); - void invalidate(QFormLayout* theWrappedObject); - QLayoutItem* itemAt(QFormLayout* theWrappedObject, int index) const; - QLayoutItem* itemAt(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role) const; - Qt::Alignment labelAlignment(QFormLayout* theWrappedObject) const; - QWidget* labelForField(QFormLayout* theWrappedObject, QLayout* field) const; - QWidget* labelForField(QFormLayout* theWrappedObject, QWidget* field) const; - QSize minimumSize(QFormLayout* theWrappedObject) const; - int rowCount(QFormLayout* theWrappedObject) const; - QFormLayout::RowWrapPolicy rowWrapPolicy(QFormLayout* theWrappedObject) const; - void setFieldGrowthPolicy(QFormLayout* theWrappedObject, QFormLayout::FieldGrowthPolicy policy); - void setFormAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment); - void setGeometry(QFormLayout* theWrappedObject, const QRect& rect); - void setHorizontalSpacing(QFormLayout* theWrappedObject, int spacing); - void setItem(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayoutItem* item); - void setLabelAlignment(QFormLayout* theWrappedObject, Qt::Alignment alignment); - void setLayout(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QLayout* layout); - void setRowWrapPolicy(QFormLayout* theWrappedObject, QFormLayout::RowWrapPolicy policy); - void setSpacing(QFormLayout* theWrappedObject, int arg__1); - void setVerticalSpacing(QFormLayout* theWrappedObject, int spacing); - void setWidget(QFormLayout* theWrappedObject, int row, QFormLayout::ItemRole role, QWidget* widget); - QSize sizeHint(QFormLayout* theWrappedObject) const; - int spacing(QFormLayout* theWrappedObject) const; - QLayoutItem* takeAt(QFormLayout* theWrappedObject, int index); - int verticalSpacing(QFormLayout* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QFrame : public QFrame -{ -public: - PythonQtShell_QFrame(QWidget* parent = 0, Qt::WindowFlags f = 0):QFrame(parent, f),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QFrame : public QFrame -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QFrame::changeEvent(arg__1); } -inline bool promoted_event(QEvent* e) { return QFrame::event(e); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QFrame::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QFrame : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleMask ) -enum StyleMask{ - Shadow_Mask = QFrame::Shadow_Mask, Shape_Mask = QFrame::Shape_Mask}; -public slots: -QFrame* new_QFrame(QWidget* parent = 0, Qt::WindowFlags f = 0); -void delete_QFrame(QFrame* obj) { delete obj; } - void changeEvent(QFrame* theWrappedObject, QEvent* arg__1); - bool event(QFrame* theWrappedObject, QEvent* e); - QRect frameRect(QFrame* theWrappedObject) const; - QFrame::Shadow frameShadow(QFrame* theWrappedObject) const; - QFrame::Shape frameShape(QFrame* theWrappedObject) const; - int frameStyle(QFrame* theWrappedObject) const; - int frameWidth(QFrame* theWrappedObject) const; - int lineWidth(QFrame* theWrappedObject) const; - int midLineWidth(QFrame* theWrappedObject) const; - void paintEvent(QFrame* theWrappedObject, QPaintEvent* arg__1); - void setFrameRect(QFrame* theWrappedObject, const QRect& arg__1); - void setFrameShadow(QFrame* theWrappedObject, QFrame::Shadow arg__1); - void setFrameShape(QFrame* theWrappedObject, QFrame::Shape arg__1); - void setFrameStyle(QFrame* theWrappedObject, int arg__1); - void setLineWidth(QFrame* theWrappedObject, int arg__1); - void setMidLineWidth(QFrame* theWrappedObject, int arg__1); - QSize sizeHint(QFrame* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGesture : public QGesture -{ -public: - PythonQtShell_QGesture(QObject* parent = 0):QGesture(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QGesture : public QObject -{ Q_OBJECT -public: -public slots: -QGesture* new_QGesture(QObject* parent = 0); -void delete_QGesture(QGesture* obj) { delete obj; } - bool hasHotSpot(QGesture* theWrappedObject) const; - QPointF hotSpot(QGesture* theWrappedObject) const; - void setHotSpot(QGesture* theWrappedObject, const QPointF& value); - Qt::GestureState state(QGesture* theWrappedObject) const; - void unsetHotSpot(QGesture* theWrappedObject); -}; - - - - - -class PythonQtWrapper_QGradient : public QObject -{ Q_OBJECT -public: -Q_ENUMS(CoordinateMode Spread Type ) -enum CoordinateMode{ - LogicalMode = QGradient::LogicalMode, StretchToDeviceMode = QGradient::StretchToDeviceMode, ObjectBoundingMode = QGradient::ObjectBoundingMode}; -enum Spread{ - PadSpread = QGradient::PadSpread, ReflectSpread = QGradient::ReflectSpread, RepeatSpread = QGradient::RepeatSpread}; -enum Type{ - LinearGradient = QGradient::LinearGradient, RadialGradient = QGradient::RadialGradient, ConicalGradient = QGradient::ConicalGradient, NoGradient = QGradient::NoGradient}; -public slots: -QGradient* new_QGradient(); -QGradient* new_QGradient(const QGradient& other) { -QGradient* a = new QGradient(); -*((QGradient*)a) = other; -return a; } -void delete_QGradient(QGradient* obj) { delete obj; } - QGradient::CoordinateMode coordinateMode(QGradient* theWrappedObject) const; - bool __ne__(QGradient* theWrappedObject, const QGradient& other) const; - bool __eq__(QGradient* theWrappedObject, const QGradient& gradient) const; - void setColorAt(QGradient* theWrappedObject, qreal pos, const QColor& color); - void setCoordinateMode(QGradient* theWrappedObject, QGradient::CoordinateMode mode); - void setSpread(QGradient* theWrappedObject, QGradient::Spread spread); - void setStops(QGradient* theWrappedObject, const QVector >& stops); - QGradient::Spread spread(QGradient* theWrappedObject) const; - QVector > stops(QGradient* theWrappedObject) const; - QGradient::Type type(QGradient* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QGraphicsAnchor : public QObject -{ Q_OBJECT -public: -public slots: -void delete_QGraphicsAnchor(QGraphicsAnchor* obj) { delete obj; } - void setSizePolicy(QGraphicsAnchor* theWrappedObject, QSizePolicy::Policy policy); - void setSpacing(QGraphicsAnchor* theWrappedObject, qreal spacing); - QSizePolicy::Policy sizePolicy(QGraphicsAnchor* theWrappedObject) const; - qreal spacing(QGraphicsAnchor* theWrappedObject) const; - void unsetSpacing(QGraphicsAnchor* theWrappedObject); -}; - - - - - -class PythonQtShell_QGraphicsAnchorLayout : public QGraphicsAnchorLayout -{ -public: - PythonQtShell_QGraphicsAnchorLayout(QGraphicsLayoutItem* parent = 0):QGraphicsAnchorLayout(parent),_wrapper(NULL) {}; - -virtual int count() const; -virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; -virtual void invalidate(); -virtual QGraphicsLayoutItem* itemAt(int index) const; -virtual void removeAt(int index); -virtual void updateGeometry(); -virtual void widgetEvent(QEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsAnchorLayout : public QGraphicsAnchorLayout -{ public: -inline int promoted_count() const { return QGraphicsAnchorLayout::count(); } -inline void promoted_invalidate() { QGraphicsAnchorLayout::invalidate(); } -inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsAnchorLayout::itemAt(index); } -inline void promoted_removeAt(int index) { QGraphicsAnchorLayout::removeAt(index); } -}; - -class PythonQtWrapper_QGraphicsAnchorLayout : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsAnchorLayout* new_QGraphicsAnchorLayout(QGraphicsLayoutItem* parent = 0); -void delete_QGraphicsAnchorLayout(QGraphicsAnchorLayout* obj) { delete obj; } - QGraphicsAnchor* addAnchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge); - void addAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, QGraphicsLayoutItem* secondItem, Qt::Orientations orientations = Qt::Horizontal | Qt::Vertical); - void addCornerAnchors(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::Corner firstCorner, QGraphicsLayoutItem* secondItem, Qt::Corner secondCorner); - QGraphicsAnchor* anchor(QGraphicsAnchorLayout* theWrappedObject, QGraphicsLayoutItem* firstItem, Qt::AnchorPoint firstEdge, QGraphicsLayoutItem* secondItem, Qt::AnchorPoint secondEdge); - int count(QGraphicsAnchorLayout* theWrappedObject) const; - qreal horizontalSpacing(QGraphicsAnchorLayout* theWrappedObject) const; - void invalidate(QGraphicsAnchorLayout* theWrappedObject); - QGraphicsLayoutItem* itemAt(QGraphicsAnchorLayout* theWrappedObject, int index) const; - void removeAt(QGraphicsAnchorLayout* theWrappedObject, int index); - void setGeometry(QGraphicsAnchorLayout* theWrappedObject, const QRectF& rect); - void setHorizontalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing); - void setSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing); - void setVerticalSpacing(QGraphicsAnchorLayout* theWrappedObject, qreal spacing); - qreal verticalSpacing(QGraphicsAnchorLayout* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsEffect : public QGraphicsEffect -{ -public: - PythonQtShell_QGraphicsEffect(QObject* parent = 0):QGraphicsEffect(parent),_wrapper(NULL) {}; - -virtual QRectF boundingRectFor(const QRectF& sourceRect) const; -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void draw(QPainter* painter); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void sourceChanged(QGraphicsEffect::ChangeFlags flags); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsEffect : public QGraphicsEffect -{ public: -inline QRectF promoted_boundingRectFor(const QRectF& sourceRect) const { return QGraphicsEffect::boundingRectFor(sourceRect); } -inline void promoted_sourceChanged(QGraphicsEffect::ChangeFlags flags) { QGraphicsEffect::sourceChanged(flags); } -}; - -class PythonQtWrapper_QGraphicsEffect : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ChangeFlag ) -Q_FLAGS(ChangeFlags ) -enum ChangeFlag{ - SourceAttached = QGraphicsEffect::SourceAttached, SourceDetached = QGraphicsEffect::SourceDetached, SourceBoundingRectChanged = QGraphicsEffect::SourceBoundingRectChanged, SourceInvalidated = QGraphicsEffect::SourceInvalidated}; -Q_DECLARE_FLAGS(ChangeFlags, ChangeFlag) -public slots: -QGraphicsEffect* new_QGraphicsEffect(QObject* parent = 0); -void delete_QGraphicsEffect(QGraphicsEffect* obj) { delete obj; } - QRectF boundingRect(QGraphicsEffect* theWrappedObject) const; - QRectF boundingRectFor(QGraphicsEffect* theWrappedObject, const QRectF& sourceRect) const; - bool isEnabled(QGraphicsEffect* theWrappedObject) const; - void sourceChanged(QGraphicsEffect* theWrappedObject, QGraphicsEffect::ChangeFlags flags); -}; - - - - - -class PythonQtShell_QGraphicsEllipseItem : public QGraphicsEllipseItem -{ -public: - PythonQtShell_QGraphicsEllipseItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsEllipseItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsEllipseItem(rect, parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsEllipseItem(x, y, w, h, parent, scene),_wrapper(NULL) {}; - -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QPainterPath opaqueArea() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsEllipseItem : public QGraphicsEllipseItem -{ public: -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsEllipseItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsEllipseItem::opaqueArea(); } -}; - -class PythonQtWrapper_QGraphicsEllipseItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsEllipseItem::Type}; -public slots: -QGraphicsEllipseItem* new_QGraphicsEllipseItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsEllipseItem* new_QGraphicsEllipseItem(const QRectF& rect, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsEllipseItem* new_QGraphicsEllipseItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsEllipseItem(QGraphicsEllipseItem* obj) { delete obj; } - QRectF boundingRect(QGraphicsEllipseItem* theWrappedObject) const; - bool contains(QGraphicsEllipseItem* theWrappedObject, const QPointF& point) const; - bool isObscuredBy(QGraphicsEllipseItem* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QGraphicsEllipseItem* theWrappedObject) const; - void paint(QGraphicsEllipseItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - QRectF rect(QGraphicsEllipseItem* theWrappedObject) const; - void setRect(QGraphicsEllipseItem* theWrappedObject, const QRectF& rect); - void setRect(QGraphicsEllipseItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - void setSpanAngle(QGraphicsEllipseItem* theWrappedObject, int angle); - void setStartAngle(QGraphicsEllipseItem* theWrappedObject, int angle); - QPainterPath shape(QGraphicsEllipseItem* theWrappedObject) const; - int spanAngle(QGraphicsEllipseItem* theWrappedObject) const; - int startAngle(QGraphicsEllipseItem* theWrappedObject) const; - int type(QGraphicsEllipseItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsGridLayout : public QGraphicsGridLayout -{ -public: - PythonQtShell_QGraphicsGridLayout(QGraphicsLayoutItem* parent = 0):QGraphicsGridLayout(parent),_wrapper(NULL) {}; - -virtual int count() const; -virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; -virtual void invalidate(); -virtual QGraphicsLayoutItem* itemAt(int index) const; -virtual void removeAt(int index); -virtual void updateGeometry(); -virtual void widgetEvent(QEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsGridLayout : public QGraphicsGridLayout -{ public: -inline int promoted_count() const { return QGraphicsGridLayout::count(); } -inline void promoted_invalidate() { QGraphicsGridLayout::invalidate(); } -inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsGridLayout::itemAt(index); } -inline void promoted_removeAt(int index) { QGraphicsGridLayout::removeAt(index); } -}; - -class PythonQtWrapper_QGraphicsGridLayout : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsGridLayout* new_QGraphicsGridLayout(QGraphicsLayoutItem* parent = 0); -void delete_QGraphicsGridLayout(QGraphicsGridLayout* obj) { delete obj; } - void addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, Qt::Alignment alignment = 0); - void addItem(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment = 0); - Qt::Alignment alignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item) const; - Qt::Alignment columnAlignment(QGraphicsGridLayout* theWrappedObject, int column) const; - int columnCount(QGraphicsGridLayout* theWrappedObject) const; - qreal columnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column) const; - qreal columnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column) const; - qreal columnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column) const; - qreal columnSpacing(QGraphicsGridLayout* theWrappedObject, int column) const; - int columnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column) const; - int count(QGraphicsGridLayout* theWrappedObject) const; - qreal horizontalSpacing(QGraphicsGridLayout* theWrappedObject) const; - void invalidate(QGraphicsGridLayout* theWrappedObject); - QGraphicsLayoutItem* itemAt(QGraphicsGridLayout* theWrappedObject, int index) const; - QGraphicsLayoutItem* itemAt(QGraphicsGridLayout* theWrappedObject, int row, int column) const; - void removeAt(QGraphicsGridLayout* theWrappedObject, int index); - Qt::Alignment rowAlignment(QGraphicsGridLayout* theWrappedObject, int row) const; - int rowCount(QGraphicsGridLayout* theWrappedObject) const; - qreal rowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row) const; - qreal rowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row) const; - qreal rowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row) const; - qreal rowSpacing(QGraphicsGridLayout* theWrappedObject, int row) const; - int rowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row) const; - void setAlignment(QGraphicsGridLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment); - void setColumnAlignment(QGraphicsGridLayout* theWrappedObject, int column, Qt::Alignment alignment); - void setColumnFixedWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); - void setColumnMaximumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); - void setColumnMinimumWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); - void setColumnPreferredWidth(QGraphicsGridLayout* theWrappedObject, int column, qreal width); - void setColumnSpacing(QGraphicsGridLayout* theWrappedObject, int column, qreal spacing); - void setColumnStretchFactor(QGraphicsGridLayout* theWrappedObject, int column, int stretch); - void setGeometry(QGraphicsGridLayout* theWrappedObject, const QRectF& rect); - void setHorizontalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); - void setRowAlignment(QGraphicsGridLayout* theWrappedObject, int row, Qt::Alignment alignment); - void setRowFixedHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); - void setRowMaximumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); - void setRowMinimumHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); - void setRowPreferredHeight(QGraphicsGridLayout* theWrappedObject, int row, qreal height); - void setRowSpacing(QGraphicsGridLayout* theWrappedObject, int row, qreal spacing); - void setRowStretchFactor(QGraphicsGridLayout* theWrappedObject, int row, int stretch); - void setSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); - void setVerticalSpacing(QGraphicsGridLayout* theWrappedObject, qreal spacing); - QSizeF sizeHint(QGraphicsGridLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; - qreal verticalSpacing(QGraphicsGridLayout* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsItem : public QGraphicsItem -{ -public: - PythonQtShell_QGraphicsItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsItem(parent, scene),_wrapper(NULL) {}; - -virtual void advance(int phase); -virtual QRectF boundingRect() const; -virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; -virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; -virtual bool contains(const QPointF& point) const; -virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); -virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dropEvent(QGraphicsSceneDragDropEvent* event); -virtual QVariant extension(const QVariant& variant) const; -virtual void focusInEvent(QFocusEvent* event); -virtual void focusOutEvent(QFocusEvent* event); -virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); -virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); -virtual QPainterPath opaqueArea() const; -virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); -virtual bool sceneEvent(QEvent* event); -virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); -virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); -virtual QPainterPath shape() const; -virtual bool supportsExtension(QGraphicsItem::Extension extension) const; -virtual int type() const; -virtual void wheelEvent(QGraphicsSceneWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsItem : public QGraphicsItem -{ public: -inline void promoted_advance(int phase) { QGraphicsItem::advance(phase); } -inline bool promoted_collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const { return QGraphicsItem::collidesWithItem(other, mode); } -inline bool promoted_collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const { return QGraphicsItem::collidesWithPath(path, mode); } -inline bool promoted_contains(const QPointF& point) const { return QGraphicsItem::contains(point); } -inline void promoted_contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsItem::contextMenuEvent(event); } -inline void promoted_dragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragEnterEvent(event); } -inline void promoted_dragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragLeaveEvent(event); } -inline void promoted_dragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragMoveEvent(event); } -inline void promoted_dropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dropEvent(event); } -inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsItem::extension(variant); } -inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsItem::focusInEvent(event); } -inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsItem::focusOutEvent(event); } -inline void promoted_hoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverEnterEvent(event); } -inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverLeaveEvent(event); } -inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverMoveEvent(event); } -inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsItem::inputMethodEvent(event); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsItem::inputMethodQuery(query); } -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsItem::isObscuredBy(item); } -inline QVariant promoted_itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) { return QGraphicsItem::itemChange(change, value); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsItem::keyPressEvent(event); } -inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsItem::keyReleaseEvent(event); } -inline void promoted_mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseDoubleClickEvent(event); } -inline void promoted_mouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseMoveEvent(event); } -inline void promoted_mousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mousePressEvent(event); } -inline void promoted_mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseReleaseEvent(event); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsItem::opaqueArea(); } -inline bool promoted_sceneEvent(QEvent* event) { return QGraphicsItem::sceneEvent(event); } -inline bool promoted_sceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsItem::sceneEventFilter(watched, event); } -inline QPainterPath promoted_shape() const { return QGraphicsItem::shape(); } -inline int promoted_type() const { return QGraphicsItem::type(); } -inline void promoted_wheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsItem::wheelEvent(event); } -}; - -class PythonQtWrapper_QGraphicsItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(CacheMode PanelModality enum_1 GraphicsItemFlag GraphicsItemChange ) -Q_FLAGS(GraphicsItemFlags ) -enum CacheMode{ - NoCache = QGraphicsItem::NoCache, ItemCoordinateCache = QGraphicsItem::ItemCoordinateCache, DeviceCoordinateCache = QGraphicsItem::DeviceCoordinateCache}; -enum PanelModality{ - NonModal = QGraphicsItem::NonModal, PanelModal = QGraphicsItem::PanelModal, SceneModal = QGraphicsItem::SceneModal}; -enum enum_1{ - Type = QGraphicsItem::Type, UserType = QGraphicsItem::UserType}; -enum GraphicsItemFlag{ - ItemIsMovable = QGraphicsItem::ItemIsMovable, ItemIsSelectable = QGraphicsItem::ItemIsSelectable, ItemIsFocusable = QGraphicsItem::ItemIsFocusable, ItemClipsToShape = QGraphicsItem::ItemClipsToShape, ItemClipsChildrenToShape = QGraphicsItem::ItemClipsChildrenToShape, ItemIgnoresTransformations = QGraphicsItem::ItemIgnoresTransformations, ItemIgnoresParentOpacity = QGraphicsItem::ItemIgnoresParentOpacity, ItemDoesntPropagateOpacityToChildren = QGraphicsItem::ItemDoesntPropagateOpacityToChildren, ItemStacksBehindParent = QGraphicsItem::ItemStacksBehindParent, ItemUsesExtendedStyleOption = QGraphicsItem::ItemUsesExtendedStyleOption, ItemHasNoContents = QGraphicsItem::ItemHasNoContents, ItemSendsGeometryChanges = QGraphicsItem::ItemSendsGeometryChanges, ItemAcceptsInputMethod = QGraphicsItem::ItemAcceptsInputMethod, ItemNegativeZStacksBehindParent = QGraphicsItem::ItemNegativeZStacksBehindParent, ItemIsPanel = QGraphicsItem::ItemIsPanel, ItemIsFocusScope = QGraphicsItem::ItemIsFocusScope, ItemSendsScenePositionChanges = QGraphicsItem::ItemSendsScenePositionChanges}; -enum GraphicsItemChange{ - ItemPositionChange = QGraphicsItem::ItemPositionChange, ItemMatrixChange = QGraphicsItem::ItemMatrixChange, ItemVisibleChange = QGraphicsItem::ItemVisibleChange, ItemEnabledChange = QGraphicsItem::ItemEnabledChange, ItemSelectedChange = QGraphicsItem::ItemSelectedChange, ItemParentChange = QGraphicsItem::ItemParentChange, ItemChildAddedChange = QGraphicsItem::ItemChildAddedChange, ItemChildRemovedChange = QGraphicsItem::ItemChildRemovedChange, ItemTransformChange = QGraphicsItem::ItemTransformChange, ItemPositionHasChanged = QGraphicsItem::ItemPositionHasChanged, ItemTransformHasChanged = QGraphicsItem::ItemTransformHasChanged, ItemSceneChange = QGraphicsItem::ItemSceneChange, ItemVisibleHasChanged = QGraphicsItem::ItemVisibleHasChanged, ItemEnabledHasChanged = QGraphicsItem::ItemEnabledHasChanged, ItemSelectedHasChanged = QGraphicsItem::ItemSelectedHasChanged, ItemParentHasChanged = QGraphicsItem::ItemParentHasChanged, ItemSceneHasChanged = QGraphicsItem::ItemSceneHasChanged, ItemCursorChange = QGraphicsItem::ItemCursorChange, ItemCursorHasChanged = QGraphicsItem::ItemCursorHasChanged, ItemToolTipChange = QGraphicsItem::ItemToolTipChange, ItemToolTipHasChanged = QGraphicsItem::ItemToolTipHasChanged, ItemFlagsChange = QGraphicsItem::ItemFlagsChange, ItemFlagsHaveChanged = QGraphicsItem::ItemFlagsHaveChanged, ItemZValueChange = QGraphicsItem::ItemZValueChange, ItemZValueHasChanged = QGraphicsItem::ItemZValueHasChanged, ItemOpacityChange = QGraphicsItem::ItemOpacityChange, ItemOpacityHasChanged = QGraphicsItem::ItemOpacityHasChanged, ItemScenePositionHasChanged = QGraphicsItem::ItemScenePositionHasChanged}; -Q_DECLARE_FLAGS(GraphicsItemFlags, GraphicsItemFlag) -public slots: -QGraphicsItem* new_QGraphicsItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsItem(QGraphicsItem* obj) { delete obj; } -bool py_hasOwner(QGraphicsItem* theWrappedObject) { return theWrappedObject->scene()!=NULL || theWrappedObject->parentItem()!=NULL; } - bool acceptDrops(QGraphicsItem* theWrappedObject) const; - bool acceptHoverEvents(QGraphicsItem* theWrappedObject) const; - bool acceptTouchEvents(QGraphicsItem* theWrappedObject) const; - Qt::MouseButtons acceptedMouseButtons(QGraphicsItem* theWrappedObject) const; - bool acceptsHoverEvents(QGraphicsItem* theWrappedObject) const; - void advance(QGraphicsItem* theWrappedObject, int phase); - QRegion boundingRegion(QGraphicsItem* theWrappedObject, const QTransform& itemToDeviceTransform) const; - qreal boundingRegionGranularity(QGraphicsItem* theWrappedObject) const; - QGraphicsItem::CacheMode cacheMode(QGraphicsItem* theWrappedObject) const; - QList childItems(QGraphicsItem* theWrappedObject) const; - QRectF childrenBoundingRect(QGraphicsItem* theWrappedObject) const; - void clearFocus(QGraphicsItem* theWrappedObject); - QPainterPath clipPath(QGraphicsItem* theWrappedObject) const; - bool collidesWithItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - bool collidesWithPath(QGraphicsItem* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList collidingItems(QGraphicsItem* theWrappedObject, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QGraphicsItem* commonAncestorItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other) const; - bool contains(QGraphicsItem* theWrappedObject, const QPointF& point) const; - void contextMenuEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneContextMenuEvent* event); - QCursor cursor(QGraphicsItem* theWrappedObject) const; - QVariant data(QGraphicsItem* theWrappedObject, int key) const; - QTransform deviceTransform(QGraphicsItem* theWrappedObject, const QTransform& viewportTransform) const; - void dragEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); - void dragLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); - void dragMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); - void dropEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); - qreal effectiveOpacity(QGraphicsItem* theWrappedObject) const; - void ensureVisible(QGraphicsItem* theWrappedObject, const QRectF& rect = QRectF(), int xmargin = 50, int ymargin = 50); - void ensureVisible(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50); - QVariant extension(QGraphicsItem* theWrappedObject, const QVariant& variant) const; - bool filtersChildEvents(QGraphicsItem* theWrappedObject) const; - QGraphicsItem::GraphicsItemFlags flags(QGraphicsItem* theWrappedObject) const; - void focusInEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event); - QGraphicsItem* focusItem(QGraphicsItem* theWrappedObject) const; - void focusOutEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event); - QGraphicsItem* focusProxy(QGraphicsItem* theWrappedObject) const; - QGraphicsItem* focusScopeItem(QGraphicsItem* theWrappedObject) const; - void grabKeyboard(QGraphicsItem* theWrappedObject); - void grabMouse(QGraphicsItem* theWrappedObject); - QGraphicsEffect* graphicsEffect(QGraphicsItem* theWrappedObject) const; - QGraphicsItemGroup* group(QGraphicsItem* theWrappedObject) const; - bool handlesChildEvents(QGraphicsItem* theWrappedObject) const; - bool hasCursor(QGraphicsItem* theWrappedObject) const; - bool hasFocus(QGraphicsItem* theWrappedObject) const; - void hide(QGraphicsItem* theWrappedObject); - void hoverEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); - void hoverLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); - void hoverMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); - void inputMethodEvent(QGraphicsItem* theWrappedObject, QInputMethodEvent* event); - Qt::InputMethodHints inputMethodHints(QGraphicsItem* theWrappedObject) const; - QVariant inputMethodQuery(QGraphicsItem* theWrappedObject, Qt::InputMethodQuery query) const; - void installSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem); - bool isActive(QGraphicsItem* theWrappedObject) const; - bool isAncestorOf(QGraphicsItem* theWrappedObject, const QGraphicsItem* child) const; - bool isBlockedByModalPanel(QGraphicsItem* theWrappedObject, QGraphicsItem** blockingPanel = 0) const; - bool isClipped(QGraphicsItem* theWrappedObject) const; - bool isEnabled(QGraphicsItem* theWrappedObject) const; - bool isObscured(QGraphicsItem* theWrappedObject) const; - bool isObscured(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - bool isObscured(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - bool isObscuredBy(QGraphicsItem* theWrappedObject, const QGraphicsItem* item) const; - bool isPanel(QGraphicsItem* theWrappedObject) const; - bool isSelected(QGraphicsItem* theWrappedObject) const; - bool isUnderMouse(QGraphicsItem* theWrappedObject) const; - bool isVisible(QGraphicsItem* theWrappedObject) const; - bool isVisibleTo(QGraphicsItem* theWrappedObject, const QGraphicsItem* parent) const; - bool isWidget(QGraphicsItem* theWrappedObject) const; - bool isWindow(QGraphicsItem* theWrappedObject) const; - QVariant itemChange(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value); - QTransform itemTransform(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, bool* ok = 0) const; - void keyPressEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event); - void keyReleaseEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event); - QPainterPath mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const; - QPointF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const; - QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const; - QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; - QPointF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const; - QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; - QPainterPath mapFromParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; - QPointF mapFromParent(QGraphicsItem* theWrappedObject, const QPointF& point) const; - QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; - QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QPointF mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; - QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QPainterPath mapFromScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; - QPointF mapFromScene(QGraphicsItem* theWrappedObject, const QPointF& point) const; - QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; - QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QPointF mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; - QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QRectF mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; - QRectF mapRectFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; - QRectF mapRectFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QRectF mapRectFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QRectF mapRectFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QRectF mapRectFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QRectF mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; - QRectF mapRectToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; - QRectF mapRectToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QRectF mapRectToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QRectF mapRectToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QRectF mapRectToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QPainterPath mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const; - QPointF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const; - QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const; - QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; - QPointF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const; - QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; - QPainterPath mapToParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; - QPointF mapToParent(QGraphicsItem* theWrappedObject, const QPointF& point) const; - QPolygonF mapToParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; - QPolygonF mapToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QPointF mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; - QPolygonF mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QPainterPath mapToScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; - QPointF mapToScene(QGraphicsItem* theWrappedObject, const QPointF& point) const; - QPolygonF mapToScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; - QPolygonF mapToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; - QPointF mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; - QPolygonF mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - void mouseDoubleClickEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); - void mouseMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); - void mousePressEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); - void mouseReleaseEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); - void moveBy(QGraphicsItem* theWrappedObject, qreal dx, qreal dy); - qreal opacity(QGraphicsItem* theWrappedObject) const; - QPainterPath opaqueArea(QGraphicsItem* theWrappedObject) const; - QGraphicsItem* panel(QGraphicsItem* theWrappedObject) const; - QGraphicsItem::PanelModality panelModality(QGraphicsItem* theWrappedObject) const; - QGraphicsItem* parentItem(QGraphicsItem* theWrappedObject) const; - QGraphicsObject* parentObject(QGraphicsItem* theWrappedObject) const; - QGraphicsWidget* parentWidget(QGraphicsItem* theWrappedObject) const; - QPointF pos(QGraphicsItem* theWrappedObject) const; - void removeSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem); - void resetTransform(QGraphicsItem* theWrappedObject); - void rotate(QGraphicsItem* theWrappedObject, qreal angle); - qreal rotation(QGraphicsItem* theWrappedObject) const; - qreal scale(QGraphicsItem* theWrappedObject) const; - void scale(QGraphicsItem* theWrappedObject, qreal sx, qreal sy); - QGraphicsScene* scene(QGraphicsItem* theWrappedObject) const; - QRectF sceneBoundingRect(QGraphicsItem* theWrappedObject) const; - bool sceneEvent(QGraphicsItem* theWrappedObject, QEvent* event); - bool sceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* watched, QEvent* event); - QPointF scenePos(QGraphicsItem* theWrappedObject) const; - QTransform sceneTransform(QGraphicsItem* theWrappedObject) const; - void scroll(QGraphicsItem* theWrappedObject, qreal dx, qreal dy, const QRectF& rect = QRectF()); - void setAcceptDrops(QGraphicsItem* theWrappedObject, bool on); - void setAcceptHoverEvents(QGraphicsItem* theWrappedObject, bool enabled); - void setAcceptTouchEvents(QGraphicsItem* theWrappedObject, bool enabled); - void setAcceptedMouseButtons(QGraphicsItem* theWrappedObject, Qt::MouseButtons buttons); - void setAcceptsHoverEvents(QGraphicsItem* theWrappedObject, bool enabled); - void setActive(QGraphicsItem* theWrappedObject, bool active); - void setBoundingRegionGranularity(QGraphicsItem* theWrappedObject, qreal granularity); - void setCacheMode(QGraphicsItem* theWrappedObject, QGraphicsItem::CacheMode mode, const QSize& cacheSize = QSize()); - void setCursor(QGraphicsItem* theWrappedObject, const QCursor& cursor); - void setData(QGraphicsItem* theWrappedObject, int key, const QVariant& value); - void setEnabled(QGraphicsItem* theWrappedObject, bool enabled); - void setFiltersChildEvents(QGraphicsItem* theWrappedObject, bool enabled); - void setFlag(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlag flag, bool enabled = true); - void setFlags(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlags flags); - void setFocus(QGraphicsItem* theWrappedObject, Qt::FocusReason focusReason = Qt::OtherFocusReason); - void setFocusProxy(QGraphicsItem* theWrappedObject, QGraphicsItem* item); - void setGraphicsEffect(QGraphicsItem* theWrappedObject, QGraphicsEffect* effect); - void setGroup(QGraphicsItem* theWrappedObject, QGraphicsItemGroup* group); - void setHandlesChildEvents(QGraphicsItem* theWrappedObject, bool enabled); - void setInputMethodHints(QGraphicsItem* theWrappedObject, Qt::InputMethodHints hints); - void setOpacity(QGraphicsItem* theWrappedObject, qreal opacity); - void setPanelModality(QGraphicsItem* theWrappedObject, QGraphicsItem::PanelModality panelModality); - void setParentItem(QGraphicsItem* theWrappedObject, QGraphicsItem* parent); - void setPos(QGraphicsItem* theWrappedObject, const QPointF& pos); - void setPos(QGraphicsItem* theWrappedObject, qreal x, qreal y); - void setRotation(QGraphicsItem* theWrappedObject, qreal angle); - void setScale(QGraphicsItem* theWrappedObject, qreal scale); - void setSelected(QGraphicsItem* theWrappedObject, bool selected); - void setToolTip(QGraphicsItem* theWrappedObject, const QString& toolTip); - void setTransform(QGraphicsItem* theWrappedObject, const QTransform& matrix, bool combine = false); - void setTransformOriginPoint(QGraphicsItem* theWrappedObject, const QPointF& origin); - void setTransformOriginPoint(QGraphicsItem* theWrappedObject, qreal ax, qreal ay); - void setTransformations(QGraphicsItem* theWrappedObject, const QList& transformations); - void setVisible(QGraphicsItem* theWrappedObject, bool visible); - void setX(QGraphicsItem* theWrappedObject, qreal x); - void setY(QGraphicsItem* theWrappedObject, qreal y); - void setZValue(QGraphicsItem* theWrappedObject, qreal z); - QPainterPath shape(QGraphicsItem* theWrappedObject) const; - void shear(QGraphicsItem* theWrappedObject, qreal sh, qreal sv); - void show(QGraphicsItem* theWrappedObject); - void stackBefore(QGraphicsItem* theWrappedObject, const QGraphicsItem* sibling); - QGraphicsObject* toGraphicsObject(QGraphicsItem* theWrappedObject); - QString toolTip(QGraphicsItem* theWrappedObject) const; - QGraphicsItem* topLevelItem(QGraphicsItem* theWrappedObject) const; - QGraphicsWidget* topLevelWidget(QGraphicsItem* theWrappedObject) const; - QTransform transform(QGraphicsItem* theWrappedObject) const; - QPointF transformOriginPoint(QGraphicsItem* theWrappedObject) const; - QList transformations(QGraphicsItem* theWrappedObject) const; - void translate(QGraphicsItem* theWrappedObject, qreal dx, qreal dy); - int type(QGraphicsItem* theWrappedObject) const; - void ungrabKeyboard(QGraphicsItem* theWrappedObject); - void ungrabMouse(QGraphicsItem* theWrappedObject); - void unsetCursor(QGraphicsItem* theWrappedObject); - void update(QGraphicsItem* theWrappedObject, const QRectF& rect = QRectF()); - void update(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal width, qreal height); - void wheelEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneWheelEvent* event); - QGraphicsWidget* window(QGraphicsItem* theWrappedObject) const; - qreal x(QGraphicsItem* theWrappedObject) const; - qreal y(QGraphicsItem* theWrappedObject) const; - qreal zValue(QGraphicsItem* theWrappedObject) const; - QString py_toString(QGraphicsItem*); -}; - - - - - -class PythonQtShell_QGraphicsItemAnimation : public QGraphicsItemAnimation -{ -public: - PythonQtShell_QGraphicsItemAnimation(QObject* parent = 0):QGraphicsItemAnimation(parent),_wrapper(NULL) {}; - -virtual void afterAnimationStep(qreal step); -virtual void beforeAnimationStep(qreal step); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsItemAnimation : public QGraphicsItemAnimation -{ public: -inline void promoted_afterAnimationStep(qreal step) { QGraphicsItemAnimation::afterAnimationStep(step); } -inline void promoted_beforeAnimationStep(qreal step) { QGraphicsItemAnimation::beforeAnimationStep(step); } -}; - -class PythonQtWrapper_QGraphicsItemAnimation : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsItemAnimation* new_QGraphicsItemAnimation(QObject* parent = 0); -void delete_QGraphicsItemAnimation(QGraphicsItemAnimation* obj) { delete obj; } - void afterAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step); - void beforeAnimationStep(QGraphicsItemAnimation* theWrappedObject, qreal step); - void clear(QGraphicsItemAnimation* theWrappedObject); - qreal horizontalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - qreal horizontalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - QGraphicsItem* item(QGraphicsItemAnimation* theWrappedObject) const; - QMatrix matrixAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - QPointF posAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - QList > posList(QGraphicsItemAnimation* theWrappedObject) const; - qreal rotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - QList > rotationList(QGraphicsItemAnimation* theWrappedObject) const; - QList > scaleList(QGraphicsItemAnimation* theWrappedObject) const; - void setItem(QGraphicsItemAnimation* theWrappedObject, QGraphicsItem* item); - void setPosAt(QGraphicsItemAnimation* theWrappedObject, qreal step, const QPointF& pos); - void setRotationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal angle); - void setScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sx, qreal sy); - void setShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal sh, qreal sv); - void setTimeLine(QGraphicsItemAnimation* theWrappedObject, QTimeLine* timeLine); - void setTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step, qreal dx, qreal dy); - QList > shearList(QGraphicsItemAnimation* theWrappedObject) const; - QTimeLine* timeLine(QGraphicsItemAnimation* theWrappedObject) const; - QList > translationList(QGraphicsItemAnimation* theWrappedObject) const; - qreal verticalScaleAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - qreal verticalShearAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - qreal xTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; - qreal yTranslationAt(QGraphicsItemAnimation* theWrappedObject, qreal step) const; -}; - - - - - -class PythonQtShell_QGraphicsItemGroup : public QGraphicsItemGroup -{ -public: - PythonQtShell_QGraphicsItemGroup(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsItemGroup(parent, scene),_wrapper(NULL) {}; - -virtual void advance(int phase); -virtual QRectF boundingRect() const; -virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; -virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; -virtual bool contains(const QPointF& point) const; -virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); -virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dropEvent(QGraphicsSceneDragDropEvent* event); -virtual QVariant extension(const QVariant& variant) const; -virtual void focusInEvent(QFocusEvent* event); -virtual void focusOutEvent(QFocusEvent* event); -virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); -virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); -virtual QPainterPath opaqueArea() const; -virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); -virtual bool sceneEvent(QEvent* event); -virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); -virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); -virtual QPainterPath shape() const; -virtual bool supportsExtension(QGraphicsItem::Extension extension) const; -virtual int type() const; -virtual void wheelEvent(QGraphicsSceneWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsItemGroup : public QGraphicsItemGroup -{ public: -inline QRectF promoted_boundingRect() const { return QGraphicsItemGroup::boundingRect(); } -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsItemGroup::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsItemGroup::opaqueArea(); } -inline void promoted_paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) { QGraphicsItemGroup::paint(painter, option, widget); } -inline int promoted_type() const { return QGraphicsItemGroup::type(); } -}; - -class PythonQtWrapper_QGraphicsItemGroup : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsItemGroup::Type}; -public slots: -QGraphicsItemGroup* new_QGraphicsItemGroup(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsItemGroup(QGraphicsItemGroup* obj) { delete obj; } - void addToGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item); - QRectF boundingRect(QGraphicsItemGroup* theWrappedObject) const; - bool isObscuredBy(QGraphicsItemGroup* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QGraphicsItemGroup* theWrappedObject) const; - void paint(QGraphicsItemGroup* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - void removeFromGroup(QGraphicsItemGroup* theWrappedObject, QGraphicsItem* item); - int type(QGraphicsItemGroup* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsLayout : public QGraphicsLayout -{ -public: - PythonQtShell_QGraphicsLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLayout(parent),_wrapper(NULL) {}; - -virtual int count() const; -virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; -virtual void invalidate(); -virtual QGraphicsLayoutItem* itemAt(int i) const; -virtual void removeAt(int index); -virtual void setGeometry(const QRectF& rect); -virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint) const; -virtual void updateGeometry(); -virtual void widgetEvent(QEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsLayout : public QGraphicsLayout -{ public: -inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayout::getContentsMargins(left, top, right, bottom); } -inline void promoted_invalidate() { QGraphicsLayout::invalidate(); } -inline void promoted_updateGeometry() { QGraphicsLayout::updateGeometry(); } -inline void promoted_widgetEvent(QEvent* e) { QGraphicsLayout::widgetEvent(e); } -}; - -class PythonQtWrapper_QGraphicsLayout : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsLayout* new_QGraphicsLayout(QGraphicsLayoutItem* parent = 0); -void delete_QGraphicsLayout(QGraphicsLayout* obj) { delete obj; } - void activate(QGraphicsLayout* theWrappedObject); - void getContentsMargins(QGraphicsLayout* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; - void invalidate(QGraphicsLayout* theWrappedObject); - bool isActivated(QGraphicsLayout* theWrappedObject) const; - void setContentsMargins(QGraphicsLayout* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); - void updateGeometry(QGraphicsLayout* theWrappedObject); - void widgetEvent(QGraphicsLayout* theWrappedObject, QEvent* e); -}; - - - - - -class PythonQtShell_QGraphicsLayoutItem : public QGraphicsLayoutItem -{ -public: - PythonQtShell_QGraphicsLayoutItem(QGraphicsLayoutItem* parent = 0, bool isLayout = false):QGraphicsLayoutItem(parent, isLayout),_wrapper(NULL) {}; - -virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; -virtual void setGeometry(const QRectF& rect); -virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; -virtual void updateGeometry(); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsLayoutItem : public QGraphicsLayoutItem -{ public: -inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsLayoutItem::getContentsMargins(left, top, right, bottom); } -inline void promoted_setGeometry(const QRectF& rect) { QGraphicsLayoutItem::setGeometry(rect); } -inline void promoted_updateGeometry() { QGraphicsLayoutItem::updateGeometry(); } -}; - -class PythonQtWrapper_QGraphicsLayoutItem : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsLayoutItem* new_QGraphicsLayoutItem(QGraphicsLayoutItem* parent = 0, bool isLayout = false); -void delete_QGraphicsLayoutItem(QGraphicsLayoutItem* obj) { delete obj; } - QRectF contentsRect(QGraphicsLayoutItem* theWrappedObject) const; - QSizeF effectiveSizeHint(QGraphicsLayoutItem* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; - QRectF geometry(QGraphicsLayoutItem* theWrappedObject) const; - void getContentsMargins(QGraphicsLayoutItem* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; - QGraphicsItem* graphicsItem(QGraphicsLayoutItem* theWrappedObject) const; - bool isLayout(QGraphicsLayoutItem* theWrappedObject) const; - qreal maximumHeight(QGraphicsLayoutItem* theWrappedObject) const; - QSizeF maximumSize(QGraphicsLayoutItem* theWrappedObject) const; - qreal maximumWidth(QGraphicsLayoutItem* theWrappedObject) const; - qreal minimumHeight(QGraphicsLayoutItem* theWrappedObject) const; - QSizeF minimumSize(QGraphicsLayoutItem* theWrappedObject) const; - qreal minimumWidth(QGraphicsLayoutItem* theWrappedObject) const; - bool ownedByLayout(QGraphicsLayoutItem* theWrappedObject) const; - QGraphicsLayoutItem* parentLayoutItem(QGraphicsLayoutItem* theWrappedObject) const; - qreal preferredHeight(QGraphicsLayoutItem* theWrappedObject) const; - QSizeF preferredSize(QGraphicsLayoutItem* theWrappedObject) const; - qreal preferredWidth(QGraphicsLayoutItem* theWrappedObject) const; - void setGeometry(QGraphicsLayoutItem* theWrappedObject, const QRectF& rect); - void setMaximumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); - void setMaximumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); - void setMaximumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); - void setMaximumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); - void setMinimumHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); - void setMinimumSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); - void setMinimumSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); - void setMinimumWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); - void setParentLayoutItem(QGraphicsLayoutItem* theWrappedObject, QGraphicsLayoutItem* parent); - void setPreferredHeight(QGraphicsLayoutItem* theWrappedObject, qreal height); - void setPreferredSize(QGraphicsLayoutItem* theWrappedObject, const QSizeF& size); - void setPreferredSize(QGraphicsLayoutItem* theWrappedObject, qreal w, qreal h); - void setPreferredWidth(QGraphicsLayoutItem* theWrappedObject, qreal width); - void setSizePolicy(QGraphicsLayoutItem* theWrappedObject, QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType = QSizePolicy::DefaultType); - void setSizePolicy(QGraphicsLayoutItem* theWrappedObject, const QSizePolicy& policy); - QSizePolicy sizePolicy(QGraphicsLayoutItem* theWrappedObject) const; - void updateGeometry(QGraphicsLayoutItem* theWrappedObject); -}; - - - - - -class PythonQtShell_QGraphicsLineItem : public QGraphicsLineItem -{ -public: - PythonQtShell_QGraphicsLineItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsLineItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsLineItem(const QLineF& line, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsLineItem(line, parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsLineItem(x1, y1, x2, y2, parent, scene),_wrapper(NULL) {}; - -virtual void advance(int phase); -virtual QRectF boundingRect() const; -virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; -virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; -virtual bool contains(const QPointF& point) const; -virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); -virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dropEvent(QGraphicsSceneDragDropEvent* event); -virtual QVariant extension(const QVariant& variant) const; -virtual void focusInEvent(QFocusEvent* event); -virtual void focusOutEvent(QFocusEvent* event); -virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); -virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); -virtual QPainterPath opaqueArea() const; -virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); -virtual bool sceneEvent(QEvent* event); -virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); -virtual QPainterPath shape() const; -virtual int type() const; -virtual void wheelEvent(QGraphicsSceneWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsLineItem : public QGraphicsLineItem -{ public: -inline QRectF promoted_boundingRect() const { return QGraphicsLineItem::boundingRect(); } -inline bool promoted_contains(const QPointF& point) const { return QGraphicsLineItem::contains(point); } -inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsLineItem::extension(variant); } -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsLineItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsLineItem::opaqueArea(); } -inline void promoted_paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) { QGraphicsLineItem::paint(painter, option, widget); } -inline QPainterPath promoted_shape() const { return QGraphicsLineItem::shape(); } -inline int promoted_type() const { return QGraphicsLineItem::type(); } -}; - -class PythonQtWrapper_QGraphicsLineItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsLineItem::Type}; -public slots: -QGraphicsLineItem* new_QGraphicsLineItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsLineItem* new_QGraphicsLineItem(const QLineF& line, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsLineItem* new_QGraphicsLineItem(qreal x1, qreal y1, qreal x2, qreal y2, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsLineItem(QGraphicsLineItem* obj) { delete obj; } - QRectF boundingRect(QGraphicsLineItem* theWrappedObject) const; - bool contains(QGraphicsLineItem* theWrappedObject, const QPointF& point) const; - QVariant extension(QGraphicsLineItem* theWrappedObject, const QVariant& variant) const; - bool isObscuredBy(QGraphicsLineItem* theWrappedObject, const QGraphicsItem* item) const; - QLineF line(QGraphicsLineItem* theWrappedObject) const; - QPainterPath opaqueArea(QGraphicsLineItem* theWrappedObject) const; - void paint(QGraphicsLineItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - QPen pen(QGraphicsLineItem* theWrappedObject) const; - void setLine(QGraphicsLineItem* theWrappedObject, const QLineF& line); - void setLine(QGraphicsLineItem* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); - void setPen(QGraphicsLineItem* theWrappedObject, const QPen& pen); - QPainterPath shape(QGraphicsLineItem* theWrappedObject) const; - int type(QGraphicsLineItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsLinearLayout : public QGraphicsLinearLayout -{ -public: - PythonQtShell_QGraphicsLinearLayout(QGraphicsLayoutItem* parent = 0):QGraphicsLinearLayout(parent),_wrapper(NULL) {}; - PythonQtShell_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent = 0):QGraphicsLinearLayout(orientation, parent),_wrapper(NULL) {}; - -virtual int count() const; -virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; -virtual void invalidate(); -virtual QGraphicsLayoutItem* itemAt(int index) const; -virtual void removeAt(int index); -virtual void updateGeometry(); -virtual void widgetEvent(QEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsLinearLayout : public QGraphicsLinearLayout -{ public: -inline int promoted_count() const { return QGraphicsLinearLayout::count(); } -inline void promoted_invalidate() { QGraphicsLinearLayout::invalidate(); } -inline QGraphicsLayoutItem* promoted_itemAt(int index) const { return QGraphicsLinearLayout::itemAt(index); } -inline void promoted_removeAt(int index) { QGraphicsLinearLayout::removeAt(index); } -}; - -class PythonQtWrapper_QGraphicsLinearLayout : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsLinearLayout* new_QGraphicsLinearLayout(QGraphicsLayoutItem* parent = 0); -QGraphicsLinearLayout* new_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent = 0); -void delete_QGraphicsLinearLayout(QGraphicsLinearLayout* obj) { delete obj; } - void addItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item); - void addStretch(QGraphicsLinearLayout* theWrappedObject, int stretch = 1); - Qt::Alignment alignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const; - int count(QGraphicsLinearLayout* theWrappedObject) const; - void dump(QGraphicsLinearLayout* theWrappedObject, int indent = 0) const; - void insertItem(QGraphicsLinearLayout* theWrappedObject, int index, QGraphicsLayoutItem* item); - void insertStretch(QGraphicsLinearLayout* theWrappedObject, int index, int stretch = 1); - void invalidate(QGraphicsLinearLayout* theWrappedObject); - QGraphicsLayoutItem* itemAt(QGraphicsLinearLayout* theWrappedObject, int index) const; - qreal itemSpacing(QGraphicsLinearLayout* theWrappedObject, int index) const; - Qt::Orientation orientation(QGraphicsLinearLayout* theWrappedObject) const; - void removeAt(QGraphicsLinearLayout* theWrappedObject, int index); - void removeItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item); - void setAlignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment); - void setGeometry(QGraphicsLinearLayout* theWrappedObject, const QRectF& rect); - void setItemSpacing(QGraphicsLinearLayout* theWrappedObject, int index, qreal spacing); - void setOrientation(QGraphicsLinearLayout* theWrappedObject, Qt::Orientation orientation); - void setSpacing(QGraphicsLinearLayout* theWrappedObject, qreal spacing); - void setStretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, int stretch); - QSizeF sizeHint(QGraphicsLinearLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; - qreal spacing(QGraphicsLinearLayout* theWrappedObject) const; - int stretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const; -}; - - - - - -class PythonQtShell_QGraphicsObject : public QGraphicsObject -{ -public: - PythonQtShell_QGraphicsObject(QGraphicsItem* parent = 0):QGraphicsObject(parent),_wrapper(NULL) {}; - -virtual void advance(int phase); -virtual QRectF boundingRect() const; -virtual void childEvent(QChildEvent* arg__1); -virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; -virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; -virtual bool contains(const QPointF& point) const; -virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dropEvent(QGraphicsSceneDragDropEvent* event); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QVariant extension(const QVariant& variant) const; -virtual void focusInEvent(QFocusEvent* event); -virtual void focusOutEvent(QFocusEvent* event); -virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); -virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); -virtual QPainterPath opaqueArea() const; -virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); -virtual bool sceneEvent(QEvent* event); -virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); -virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); -virtual QPainterPath shape() const; -virtual bool supportsExtension(QGraphicsItem::Extension extension) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual int type() const; -virtual void wheelEvent(QGraphicsSceneWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QGraphicsObject : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsObject* new_QGraphicsObject(QGraphicsItem* parent = 0); -void delete_QGraphicsObject(QGraphicsObject* obj) { delete obj; } - QString py_toString(QGraphicsObject*); -}; - - - - - -class PythonQtShell_QGraphicsOpacityEffect : public QGraphicsOpacityEffect -{ -public: - PythonQtShell_QGraphicsOpacityEffect(QObject* parent = 0):QGraphicsOpacityEffect(parent),_wrapper(NULL) {}; - -virtual QRectF boundingRectFor(const QRectF& sourceRect) const; -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void draw(QPainter* painter); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void sourceChanged(QGraphicsEffect::ChangeFlags flags); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsOpacityEffect : public QGraphicsOpacityEffect -{ public: -inline void promoted_draw(QPainter* painter) { QGraphicsOpacityEffect::draw(painter); } -}; - -class PythonQtWrapper_QGraphicsOpacityEffect : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsOpacityEffect* new_QGraphicsOpacityEffect(QObject* parent = 0); -void delete_QGraphicsOpacityEffect(QGraphicsOpacityEffect* obj) { delete obj; } - void draw(QGraphicsOpacityEffect* theWrappedObject, QPainter* painter); - qreal opacity(QGraphicsOpacityEffect* theWrappedObject) const; - QBrush opacityMask(QGraphicsOpacityEffect* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsPathItem : public QGraphicsPathItem -{ -public: - PythonQtShell_QGraphicsPathItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPathItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPathItem(path, parent, scene),_wrapper(NULL) {}; - -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QPainterPath opaqueArea() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsPathItem : public QGraphicsPathItem -{ public: -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPathItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsPathItem::opaqueArea(); } -}; - -class PythonQtWrapper_QGraphicsPathItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsPathItem::Type}; -public slots: -QGraphicsPathItem* new_QGraphicsPathItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsPathItem* new_QGraphicsPathItem(const QPainterPath& path, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsPathItem(QGraphicsPathItem* obj) { delete obj; } - QRectF boundingRect(QGraphicsPathItem* theWrappedObject) const; - bool contains(QGraphicsPathItem* theWrappedObject, const QPointF& point) const; - bool isObscuredBy(QGraphicsPathItem* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QGraphicsPathItem* theWrappedObject) const; - void paint(QGraphicsPathItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - QPainterPath path(QGraphicsPathItem* theWrappedObject) const; - void setPath(QGraphicsPathItem* theWrappedObject, const QPainterPath& path); - QPainterPath shape(QGraphicsPathItem* theWrappedObject) const; - int type(QGraphicsPathItem* theWrappedObject) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp deleted file mode 100644 index 8d684b3a9..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp +++ /dev/null @@ -1,10871 +0,0 @@ -#include "com_trolltech_qt_gui3.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QGraphicsPixmapItem::advance(int phase) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "advance"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&phase}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::advance(phase); -} -QRectF PythonQtShell_QGraphicsPixmapItem::boundingRect() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "boundingRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRectF"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRectF returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("boundingRect", methodInfo, result); - } else { - returnValue = *((QRectF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::boundingRect(); -} -bool PythonQtShell_QGraphicsPixmapItem::collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithItem", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::collidesWithItem(other, mode); -} -bool PythonQtShell_QGraphicsPixmapItem::collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "collidesWithPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("collidesWithPath", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::collidesWithPath(path, mode); -} -bool PythonQtShell_QGraphicsPixmapItem::contains(const QPointF& point) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contains"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("contains", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::contains(point); -} -void PythonQtShell_QGraphicsPixmapItem::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::contextMenuEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::dragEnterEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::dragEnterEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::dragLeaveEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::dragMoveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::dragMoveEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::dropEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::dropEvent(event); -} -QVariant PythonQtShell_QGraphicsPixmapItem::extension(const QVariant& variant) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "extension"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&variant}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("extension", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::extension(variant); -} -void PythonQtShell_QGraphicsPixmapItem::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::focusInEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::focusOutEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::hoverEnterEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::hoverEnterEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::hoverLeaveEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::hoverMoveEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::inputMethodEvent(event); -} -QVariant PythonQtShell_QGraphicsPixmapItem::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::inputMethodQuery(query); -} -bool PythonQtShell_QGraphicsPixmapItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::isObscuredBy(item); -} -QVariant PythonQtShell_QGraphicsPixmapItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QGraphicsItem::GraphicsItemChange" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&change, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::itemChange(change, value); -} -void PythonQtShell_QGraphicsPixmapItem::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::keyPressEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::keyReleaseEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::mouseDoubleClickEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::mouseMoveEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::mouseMoveEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::mousePressEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::mousePressEvent(event); -} -void PythonQtShell_QGraphicsPixmapItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::mouseReleaseEvent(event); -} -QPainterPath PythonQtShell_QGraphicsPixmapItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::opaqueArea(); -} -void PythonQtShell_QGraphicsPixmapItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::paint(painter, option, widget); -} -bool PythonQtShell_QGraphicsPixmapItem::sceneEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::sceneEvent(event); -} -bool PythonQtShell_QGraphicsPixmapItem::sceneEventFilter(QGraphicsItem* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sceneEventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sceneEventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::sceneEventFilter(watched, event); -} -QPainterPath PythonQtShell_QGraphicsPixmapItem::shape() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "shape"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("shape", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::shape(); -} -int PythonQtShell_QGraphicsPixmapItem::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPixmapItem::type(); -} -void PythonQtShell_QGraphicsPixmapItem::wheelEvent(QGraphicsSceneWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsPixmapItem::wheelEvent(event); -} -QGraphicsPixmapItem* PythonQtWrapper_QGraphicsPixmapItem::new_QGraphicsPixmapItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsPixmapItem(parent, scene); } - -QGraphicsPixmapItem* PythonQtWrapper_QGraphicsPixmapItem::new_QGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsPixmapItem(pixmap, parent, scene); } - -QRectF PythonQtWrapper_QGraphicsPixmapItem::boundingRect(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_boundingRect()); -} - -bool PythonQtWrapper_QGraphicsPixmapItem::contains(QGraphicsPixmapItem* theWrappedObject, const QPointF& point) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_contains(point)); -} - -QVariant PythonQtWrapper_QGraphicsPixmapItem::extension(QGraphicsPixmapItem* theWrappedObject, const QVariant& variant) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_extension(variant)); -} - -bool PythonQtWrapper_QGraphicsPixmapItem::isObscuredBy(QGraphicsPixmapItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPointF PythonQtWrapper_QGraphicsPixmapItem::offset(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( theWrappedObject->offset()); -} - -QPainterPath PythonQtWrapper_QGraphicsPixmapItem::opaqueArea(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsPixmapItem::paint(QGraphicsPixmapItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_paint(painter, option, widget)); -} - -QPixmap PythonQtWrapper_QGraphicsPixmapItem::pixmap(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( theWrappedObject->pixmap()); -} - -void PythonQtWrapper_QGraphicsPixmapItem::setOffset(QGraphicsPixmapItem* theWrappedObject, const QPointF& offset) -{ - ( theWrappedObject->setOffset(offset)); -} - -void PythonQtWrapper_QGraphicsPixmapItem::setOffset(QGraphicsPixmapItem* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->setOffset(x, y)); -} - -void PythonQtWrapper_QGraphicsPixmapItem::setPixmap(QGraphicsPixmapItem* theWrappedObject, const QPixmap& pixmap) -{ - ( theWrappedObject->setPixmap(pixmap)); -} - -void PythonQtWrapper_QGraphicsPixmapItem::setShapeMode(QGraphicsPixmapItem* theWrappedObject, QGraphicsPixmapItem::ShapeMode mode) -{ - ( theWrappedObject->setShapeMode(mode)); -} - -void PythonQtWrapper_QGraphicsPixmapItem::setTransformationMode(QGraphicsPixmapItem* theWrappedObject, Qt::TransformationMode mode) -{ - ( theWrappedObject->setTransformationMode(mode)); -} - -QPainterPath PythonQtWrapper_QGraphicsPixmapItem::shape(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_shape()); -} - -QGraphicsPixmapItem::ShapeMode PythonQtWrapper_QGraphicsPixmapItem::shapeMode(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( theWrappedObject->shapeMode()); -} - -Qt::TransformationMode PythonQtWrapper_QGraphicsPixmapItem::transformationMode(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( theWrappedObject->transformationMode()); -} - -int PythonQtWrapper_QGraphicsPixmapItem::type(QGraphicsPixmapItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPixmapItem*)theWrappedObject)->promoted_type()); -} - - - -bool PythonQtShell_QGraphicsPolygonItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPolygonItem::isObscuredBy(item); -} -QPainterPath PythonQtShell_QGraphicsPolygonItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsPolygonItem::opaqueArea(); -} -QGraphicsPolygonItem* PythonQtWrapper_QGraphicsPolygonItem::new_QGraphicsPolygonItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsPolygonItem(parent, scene); } - -QGraphicsPolygonItem* PythonQtWrapper_QGraphicsPolygonItem::new_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsPolygonItem(polygon, parent, scene); } - -QRectF PythonQtWrapper_QGraphicsPolygonItem::boundingRect(QGraphicsPolygonItem* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -bool PythonQtWrapper_QGraphicsPolygonItem::contains(QGraphicsPolygonItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->contains(point)); -} - -Qt::FillRule PythonQtWrapper_QGraphicsPolygonItem::fillRule(QGraphicsPolygonItem* theWrappedObject) const -{ - return ( theWrappedObject->fillRule()); -} - -bool PythonQtWrapper_QGraphicsPolygonItem::isObscuredBy(QGraphicsPolygonItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPolygonItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QGraphicsPolygonItem::opaqueArea(QGraphicsPolygonItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsPolygonItem*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsPolygonItem::paint(QGraphicsPolygonItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -QPolygonF PythonQtWrapper_QGraphicsPolygonItem::polygon(QGraphicsPolygonItem* theWrappedObject) const -{ - return ( theWrappedObject->polygon()); -} - -void PythonQtWrapper_QGraphicsPolygonItem::setFillRule(QGraphicsPolygonItem* theWrappedObject, Qt::FillRule rule) -{ - ( theWrappedObject->setFillRule(rule)); -} - -void PythonQtWrapper_QGraphicsPolygonItem::setPolygon(QGraphicsPolygonItem* theWrappedObject, const QPolygonF& polygon) -{ - ( theWrappedObject->setPolygon(polygon)); -} - -QPainterPath PythonQtWrapper_QGraphicsPolygonItem::shape(QGraphicsPolygonItem* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -int PythonQtWrapper_QGraphicsPolygonItem::type(QGraphicsPolygonItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -void PythonQtShell_QGraphicsProxyWidget::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::changeEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::childEvent(arg__1); -} -void PythonQtShell_QGraphicsProxyWidget::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::closeEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::customEvent(arg__1); -} -bool PythonQtShell_QGraphicsProxyWidget::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsProxyWidget::event(event); -} -bool PythonQtShell_QGraphicsProxyWidget::eventFilter(QObject* object, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsProxyWidget::eventFilter(object, event); -} -bool PythonQtShell_QGraphicsProxyWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsProxyWidget::focusNextPrevChild(next); -} -void PythonQtShell_QGraphicsProxyWidget::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::getContentsMargins(left, top, right, bottom); -} -void PythonQtShell_QGraphicsProxyWidget::grabKeyboardEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabKeyboardEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::grabKeyboardEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::grabMouseEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabMouseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::grabMouseEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::hideEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::hoverLeaveEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::hoverMoveEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::initStyleOption(QStyleOption* option) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initStyleOption"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&option}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::initStyleOption(option); -} -void PythonQtShell_QGraphicsProxyWidget::moveEvent(QGraphicsSceneMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::moveEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintWindowFrame"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::paintWindowFrame(painter, option, widget); -} -void PythonQtShell_QGraphicsProxyWidget::polishEvent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polishEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::polishEvent(); -} -QVariant PythonQtShell_QGraphicsProxyWidget::propertyChange(const QString& propertyName, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "propertyChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QString&" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&propertyName, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("propertyChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsProxyWidget::propertyChange(propertyName, value); -} -void PythonQtShell_QGraphicsProxyWidget::resizeEvent(QGraphicsSceneResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneResizeEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::resizeEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::setGeometry(const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::setGeometry(rect); -} -void PythonQtShell_QGraphicsProxyWidget::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::showEvent(event); -} -QSizeF PythonQtShell_QGraphicsProxyWidget::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QSizeF returnValue; - void* args[3] = {NULL, (void*)&which, (void*)&constraint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSizeF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsProxyWidget::sizeHint(which, constraint); -} -void PythonQtShell_QGraphicsProxyWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::timerEvent(arg__1); -} -void PythonQtShell_QGraphicsProxyWidget::ungrabKeyboardEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabKeyboardEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::ungrabKeyboardEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::ungrabMouseEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabMouseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::ungrabMouseEvent(event); -} -void PythonQtShell_QGraphicsProxyWidget::updateGeometry() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsProxyWidget::updateGeometry(); -} -bool PythonQtShell_QGraphicsProxyWidget::windowFrameEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsProxyWidget::windowFrameEvent(e); -} -Qt::WindowFrameSection PythonQtShell_QGraphicsProxyWidget::windowFrameSectionAt(const QPointF& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameSectionAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::WindowFrameSection" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::WindowFrameSection returnValue; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameSectionAt", methodInfo, result); - } else { - returnValue = *((Qt::WindowFrameSection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsProxyWidget::windowFrameSectionAt(pos); -} -QGraphicsProxyWidget* PythonQtWrapper_QGraphicsProxyWidget::new_QGraphicsProxyWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags) -{ -return new PythonQtShell_QGraphicsProxyWidget(parent, wFlags); } - -QGraphicsProxyWidget* PythonQtWrapper_QGraphicsProxyWidget::createProxyForChildWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* child) -{ - return ( theWrappedObject->createProxyForChildWidget(child)); -} - -bool PythonQtWrapper_QGraphicsProxyWidget::event(QGraphicsProxyWidget* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_event(event)); -} - -bool PythonQtWrapper_QGraphicsProxyWidget::eventFilter(QGraphicsProxyWidget* theWrappedObject, QObject* object, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_eventFilter(object, event)); -} - -bool PythonQtWrapper_QGraphicsProxyWidget::focusNextPrevChild(QGraphicsProxyWidget* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::grabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_grabMouseEvent(event)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::hideEvent(QGraphicsProxyWidget* theWrappedObject, QHideEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_hideEvent(event)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::hoverLeaveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_hoverLeaveEvent(event)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::hoverMoveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_hoverMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::paint(QGraphicsProxyWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::resizeEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::setGeometry(QGraphicsProxyWidget* theWrappedObject, const QRectF& rect) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_setGeometry(rect)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::setWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setWidget(widget)); -} - -void PythonQtWrapper_QGraphicsProxyWidget::showEvent(QGraphicsProxyWidget* theWrappedObject, QShowEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_showEvent(event)); -} - -QSizeF PythonQtWrapper_QGraphicsProxyWidget::sizeHint(QGraphicsProxyWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_sizeHint(which, constraint)); -} - -QRectF PythonQtWrapper_QGraphicsProxyWidget::subWidgetRect(QGraphicsProxyWidget* theWrappedObject, const QWidget* widget) const -{ - return ( theWrappedObject->subWidgetRect(widget)); -} - -int PythonQtWrapper_QGraphicsProxyWidget::type(QGraphicsProxyWidget* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -void PythonQtWrapper_QGraphicsProxyWidget::ungrabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsProxyWidget*)theWrappedObject)->promoted_ungrabMouseEvent(event)); -} - -QWidget* PythonQtWrapper_QGraphicsProxyWidget::widget(QGraphicsProxyWidget* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - - - -bool PythonQtShell_QGraphicsRectItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsRectItem::isObscuredBy(item); -} -QPainterPath PythonQtShell_QGraphicsRectItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsRectItem::opaqueArea(); -} -QGraphicsRectItem* PythonQtWrapper_QGraphicsRectItem::new_QGraphicsRectItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsRectItem(parent, scene); } - -QGraphicsRectItem* PythonQtWrapper_QGraphicsRectItem::new_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsRectItem(rect, parent, scene); } - -QGraphicsRectItem* PythonQtWrapper_QGraphicsRectItem::new_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsRectItem(x, y, w, h, parent, scene); } - -QRectF PythonQtWrapper_QGraphicsRectItem::boundingRect(QGraphicsRectItem* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -bool PythonQtWrapper_QGraphicsRectItem::contains(QGraphicsRectItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->contains(point)); -} - -bool PythonQtWrapper_QGraphicsRectItem::isObscuredBy(QGraphicsRectItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsRectItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QGraphicsRectItem::opaqueArea(QGraphicsRectItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsRectItem*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsRectItem::paint(QGraphicsRectItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -QRectF PythonQtWrapper_QGraphicsRectItem::rect(QGraphicsRectItem* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -void PythonQtWrapper_QGraphicsRectItem::setRect(QGraphicsRectItem* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setRect(rect)); -} - -void PythonQtWrapper_QGraphicsRectItem::setRect(QGraphicsRectItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->setRect(x, y, w, h)); -} - -QPainterPath PythonQtWrapper_QGraphicsRectItem::shape(QGraphicsRectItem* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -int PythonQtWrapper_QGraphicsRectItem::type(QGraphicsRectItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -void PythonQtShell_QGraphicsRotation::applyTo(QMatrix4x4* matrix) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "applyTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMatrix4x4*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&matrix}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsRotation::applyTo(matrix); -} -void PythonQtShell_QGraphicsRotation::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsRotation::childEvent(arg__1); -} -void PythonQtShell_QGraphicsRotation::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsRotation::customEvent(arg__1); -} -bool PythonQtShell_QGraphicsRotation::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsRotation::event(arg__1); -} -bool PythonQtShell_QGraphicsRotation::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsRotation::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsRotation::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsRotation::timerEvent(arg__1); -} -QGraphicsRotation* PythonQtWrapper_QGraphicsRotation::new_QGraphicsRotation(QObject* parent) -{ -return new PythonQtShell_QGraphicsRotation(parent); } - -qreal PythonQtWrapper_QGraphicsRotation::angle(QGraphicsRotation* theWrappedObject) const -{ - return ( theWrappedObject->angle()); -} - -void PythonQtWrapper_QGraphicsRotation::applyTo(QGraphicsRotation* theWrappedObject, QMatrix4x4* matrix) const -{ - ( ((PythonQtPublicPromoter_QGraphicsRotation*)theWrappedObject)->promoted_applyTo(matrix)); -} - -QVector3D PythonQtWrapper_QGraphicsRotation::axis(QGraphicsRotation* theWrappedObject) const -{ - return ( theWrappedObject->axis()); -} - -QVector3D PythonQtWrapper_QGraphicsRotation::origin(QGraphicsRotation* theWrappedObject) const -{ - return ( theWrappedObject->origin()); -} - -void PythonQtWrapper_QGraphicsRotation::setAngle(QGraphicsRotation* theWrappedObject, qreal arg__1) -{ - ( theWrappedObject->setAngle(arg__1)); -} - -void PythonQtWrapper_QGraphicsRotation::setAxis(QGraphicsRotation* theWrappedObject, Qt::Axis axis) -{ - ( theWrappedObject->setAxis(axis)); -} - -void PythonQtWrapper_QGraphicsRotation::setAxis(QGraphicsRotation* theWrappedObject, const QVector3D& axis) -{ - ( theWrappedObject->setAxis(axis)); -} - -void PythonQtWrapper_QGraphicsRotation::setOrigin(QGraphicsRotation* theWrappedObject, const QVector3D& point) -{ - ( theWrappedObject->setOrigin(point)); -} - - - -void PythonQtShell_QGraphicsScale::applyTo(QMatrix4x4* matrix) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "applyTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMatrix4x4*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&matrix}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScale::applyTo(matrix); -} -void PythonQtShell_QGraphicsScale::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScale::childEvent(arg__1); -} -void PythonQtShell_QGraphicsScale::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScale::customEvent(arg__1); -} -bool PythonQtShell_QGraphicsScale::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsScale::event(arg__1); -} -bool PythonQtShell_QGraphicsScale::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsScale::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsScale::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScale::timerEvent(arg__1); -} -QGraphicsScale* PythonQtWrapper_QGraphicsScale::new_QGraphicsScale(QObject* parent) -{ -return new PythonQtShell_QGraphicsScale(parent); } - -void PythonQtWrapper_QGraphicsScale::applyTo(QGraphicsScale* theWrappedObject, QMatrix4x4* matrix) const -{ - ( ((PythonQtPublicPromoter_QGraphicsScale*)theWrappedObject)->promoted_applyTo(matrix)); -} - -QVector3D PythonQtWrapper_QGraphicsScale::origin(QGraphicsScale* theWrappedObject) const -{ - return ( theWrappedObject->origin()); -} - -void PythonQtWrapper_QGraphicsScale::setOrigin(QGraphicsScale* theWrappedObject, const QVector3D& point) -{ - ( theWrappedObject->setOrigin(point)); -} - -void PythonQtWrapper_QGraphicsScale::setXScale(QGraphicsScale* theWrappedObject, qreal arg__1) -{ - ( theWrappedObject->setXScale(arg__1)); -} - -void PythonQtWrapper_QGraphicsScale::setYScale(QGraphicsScale* theWrappedObject, qreal arg__1) -{ - ( theWrappedObject->setYScale(arg__1)); -} - -void PythonQtWrapper_QGraphicsScale::setZScale(QGraphicsScale* theWrappedObject, qreal arg__1) -{ - ( theWrappedObject->setZScale(arg__1)); -} - -qreal PythonQtWrapper_QGraphicsScale::xScale(QGraphicsScale* theWrappedObject) const -{ - return ( theWrappedObject->xScale()); -} - -qreal PythonQtWrapper_QGraphicsScale::yScale(QGraphicsScale* theWrappedObject) const -{ - return ( theWrappedObject->yScale()); -} - -qreal PythonQtWrapper_QGraphicsScale::zScale(QGraphicsScale* theWrappedObject) const -{ - return ( theWrappedObject->zScale()); -} - - - -void PythonQtShell_QGraphicsScene::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScene::childEvent(arg__1); -} -void PythonQtShell_QGraphicsScene::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneContextMenuEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::contextMenuEvent(event); -} -void PythonQtShell_QGraphicsScene::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScene::customEvent(arg__1); -} -void PythonQtShell_QGraphicsScene::dragEnterEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::dragEnterEvent(event); -} -void PythonQtShell_QGraphicsScene::dragLeaveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::dragLeaveEvent(event); -} -void PythonQtShell_QGraphicsScene::dragMoveEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::dragMoveEvent(event); -} -void PythonQtShell_QGraphicsScene::drawBackground(QPainter* painter, const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBackground"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&painter, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScene::drawBackground(painter, rect); -} -void PythonQtShell_QGraphicsScene::drawForeground(QPainter* painter, const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawForeground"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&painter, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScene::drawForeground(painter, rect); -} -void PythonQtShell_QGraphicsScene::drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItems"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "int" , "QGraphicsItem**" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - void* args[6] = {NULL, (void*)&painter, (void*)&numItems, (void*)&items, (void*)&options, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScene::drawItems(painter, numItems, items, options, widget); -} -void PythonQtShell_QGraphicsScene::dropEvent(QGraphicsSceneDragDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneDragDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::dropEvent(event); -} -bool PythonQtShell_QGraphicsScene::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsScene::event(event); -} -bool PythonQtShell_QGraphicsScene::eventFilter(QObject* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsScene::eventFilter(watched, event); -} -void PythonQtShell_QGraphicsScene::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsScene::focusInEvent(event); -} -void PythonQtShell_QGraphicsScene::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsScene::focusOutEvent(event); -} -void PythonQtShell_QGraphicsScene::helpEvent(QGraphicsSceneHelpEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "helpEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHelpEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::helpEvent(event); -} -void PythonQtShell_QGraphicsScene::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::inputMethodEvent(event); -} -QVariant PythonQtShell_QGraphicsScene::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsScene::inputMethodQuery(query); -} -void PythonQtShell_QGraphicsScene::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsScene::keyPressEvent(event); -} -void PythonQtShell_QGraphicsScene::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsScene::keyReleaseEvent(event); -} -void PythonQtShell_QGraphicsScene::mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::mouseDoubleClickEvent(event); -} -void PythonQtShell_QGraphicsScene::mouseMoveEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::mouseMoveEvent(event); -} -void PythonQtShell_QGraphicsScene::mousePressEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::mousePressEvent(event); -} -void PythonQtShell_QGraphicsScene::mouseReleaseEvent(QGraphicsSceneMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMouseEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::mouseReleaseEvent(event); -} -void PythonQtShell_QGraphicsScene::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsScene::timerEvent(arg__1); -} -void PythonQtShell_QGraphicsScene::wheelEvent(QGraphicsSceneWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneWheelEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsScene::wheelEvent(event); -} -QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(QObject* parent) -{ -return new PythonQtShell_QGraphicsScene(parent); } - -QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(const QRectF& sceneRect, QObject* parent) -{ -return new PythonQtShell_QGraphicsScene(sceneRect, parent); } - -QGraphicsScene* PythonQtWrapper_QGraphicsScene::new_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent) -{ -return new PythonQtShell_QGraphicsScene(x, y, width, height, parent); } - -QGraphicsItem* PythonQtWrapper_QGraphicsScene::activePanel(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->activePanel()); -} - -QGraphicsWidget* PythonQtWrapper_QGraphicsScene::activeWindow(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->activeWindow()); -} - -QGraphicsEllipseItem* PythonQtWrapper_QGraphicsScene::addEllipse(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen, const QBrush& brush) -{ - return ( theWrappedObject->addEllipse(rect, pen, brush)); -} - -QGraphicsEllipseItem* PythonQtWrapper_QGraphicsScene::addEllipse(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen, const QBrush& brush) -{ - return ( theWrappedObject->addEllipse(x, y, w, h, pen, brush)); -} - -void PythonQtWrapper_QGraphicsScene::addItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item) -{ - ( theWrappedObject->addItem(item)); -} - -QGraphicsLineItem* PythonQtWrapper_QGraphicsScene::addLine(QGraphicsScene* theWrappedObject, const QLineF& line, const QPen& pen) -{ - return ( theWrappedObject->addLine(line, pen)); -} - -QGraphicsLineItem* PythonQtWrapper_QGraphicsScene::addLine(QGraphicsScene* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2, const QPen& pen) -{ - return ( theWrappedObject->addLine(x1, y1, x2, y2, pen)); -} - -QGraphicsPathItem* PythonQtWrapper_QGraphicsScene::addPath(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QPen& pen, const QBrush& brush) -{ - return ( theWrappedObject->addPath(path, pen, brush)); -} - -QGraphicsPixmapItem* PythonQtWrapper_QGraphicsScene::addPixmap(QGraphicsScene* theWrappedObject, const QPixmap& pixmap) -{ - return ( theWrappedObject->addPixmap(pixmap)); -} - -QGraphicsPolygonItem* PythonQtWrapper_QGraphicsScene::addPolygon(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, const QPen& pen, const QBrush& brush) -{ - return ( theWrappedObject->addPolygon(polygon, pen, brush)); -} - -QGraphicsRectItem* PythonQtWrapper_QGraphicsScene::addRect(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen, const QBrush& brush) -{ - return ( theWrappedObject->addRect(rect, pen, brush)); -} - -QGraphicsRectItem* PythonQtWrapper_QGraphicsScene::addRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen, const QBrush& brush) -{ - return ( theWrappedObject->addRect(x, y, w, h, pen, brush)); -} - -QGraphicsSimpleTextItem* PythonQtWrapper_QGraphicsScene::addSimpleText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font) -{ - return ( theWrappedObject->addSimpleText(text, font)); -} - -QGraphicsTextItem* PythonQtWrapper_QGraphicsScene::addText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font) -{ - return ( theWrappedObject->addText(text, font)); -} - -QGraphicsProxyWidget* PythonQtWrapper_QGraphicsScene::addWidget(QGraphicsScene* theWrappedObject, QWidget* widget, Qt::WindowFlags wFlags) -{ - return ( theWrappedObject->addWidget(widget, wFlags)); -} - -QBrush PythonQtWrapper_QGraphicsScene::backgroundBrush(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->backgroundBrush()); -} - -int PythonQtWrapper_QGraphicsScene::bspTreeDepth(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->bspTreeDepth()); -} - -void PythonQtWrapper_QGraphicsScene::clearFocus(QGraphicsScene* theWrappedObject) -{ - ( theWrappedObject->clearFocus()); -} - -QList PythonQtWrapper_QGraphicsScene::collidingItems(QGraphicsScene* theWrappedObject, const QGraphicsItem* item, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->collidingItems(item, mode)); -} - -void PythonQtWrapper_QGraphicsScene::contextMenuEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneContextMenuEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_contextMenuEvent(event)); -} - -QGraphicsItemGroup* PythonQtWrapper_QGraphicsScene::createItemGroup(QGraphicsScene* theWrappedObject, const QList& items) -{ - return ( theWrappedObject->createItemGroup(items)); -} - -void PythonQtWrapper_QGraphicsScene::destroyItemGroup(QGraphicsScene* theWrappedObject, QGraphicsItemGroup* group) -{ - ( theWrappedObject->destroyItemGroup(group)); -} - -void PythonQtWrapper_QGraphicsScene::dragEnterEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dragEnterEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::dragLeaveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dragLeaveEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::dragMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dragMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::drawBackground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_drawBackground(painter, rect)); -} - -void PythonQtWrapper_QGraphicsScene::drawForeground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_drawForeground(painter, rect)); -} - -void PythonQtWrapper_QGraphicsScene::drawItems(QGraphicsScene* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_drawItems(painter, numItems, items, options, widget)); -} - -void PythonQtWrapper_QGraphicsScene::dropEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_dropEvent(event)); -} - -bool PythonQtWrapper_QGraphicsScene::event(QGraphicsScene* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_event(event)); -} - -bool PythonQtWrapper_QGraphicsScene::eventFilter(QGraphicsScene* theWrappedObject, QObject* watched, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_eventFilter(watched, event)); -} - -void PythonQtWrapper_QGraphicsScene::focusInEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_focusInEvent(event)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsScene::focusItem(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->focusItem()); -} - -void PythonQtWrapper_QGraphicsScene::focusOutEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_focusOutEvent(event)); -} - -QFont PythonQtWrapper_QGraphicsScene::font(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -QBrush PythonQtWrapper_QGraphicsScene::foregroundBrush(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->foregroundBrush()); -} - -bool PythonQtWrapper_QGraphicsScene::hasFocus(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->hasFocus()); -} - -qreal PythonQtWrapper_QGraphicsScene::height(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -void PythonQtWrapper_QGraphicsScene::helpEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneHelpEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_helpEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::inputMethodEvent(QGraphicsScene* theWrappedObject, QInputMethodEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_inputMethodEvent(event)); -} - -QVariant PythonQtWrapper_QGraphicsScene::inputMethodQuery(QGraphicsScene* theWrappedObject, Qt::InputMethodQuery query) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_inputMethodQuery(query)); -} - -void PythonQtWrapper_QGraphicsScene::invalidate(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, QGraphicsScene::SceneLayers layers) -{ - ( theWrappedObject->invalidate(x, y, w, h, layers)); -} - -bool PythonQtWrapper_QGraphicsScene::isActive(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->isActive()); -} - -bool PythonQtWrapper_QGraphicsScene::isSortCacheEnabled(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->isSortCacheEnabled()); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos) const -{ - return ( theWrappedObject->itemAt(pos)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos, const QTransform& deviceTransform) const -{ - return ( theWrappedObject->itemAt(pos, deviceTransform)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y) const -{ - return ( theWrappedObject->itemAt(x, y)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsScene::itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y, const QTransform& deviceTransform) const -{ - return ( theWrappedObject->itemAt(x, y, deviceTransform)); -} - -QGraphicsScene::ItemIndexMethod PythonQtWrapper_QGraphicsScene::itemIndexMethod(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->itemIndexMethod()); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->items()); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, Qt::SortOrder order) const -{ - return ( theWrappedObject->items(order)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(path, mode)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const -{ - return ( theWrappedObject->items(path, mode, order, deviceTransform)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPointF& pos) const -{ - return ( theWrappedObject->items(pos)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPointF& pos, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const -{ - return ( theWrappedObject->items(pos, mode, order, deviceTransform)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(polygon, mode)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const -{ - return ( theWrappedObject->items(polygon, mode, order, deviceTransform)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(rect, mode)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const -{ - return ( theWrappedObject->items(rect, mode, order, deviceTransform)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(x, y, w, h, mode)); -} - -QList PythonQtWrapper_QGraphicsScene::items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform) const -{ - return ( theWrappedObject->items(x, y, w, h, mode, order, deviceTransform)); -} - -QRectF PythonQtWrapper_QGraphicsScene::itemsBoundingRect(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->itemsBoundingRect()); -} - -void PythonQtWrapper_QGraphicsScene::keyPressEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::keyReleaseEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_keyReleaseEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::mouseDoubleClickEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsScene::mouseGrabberItem(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->mouseGrabberItem()); -} - -void PythonQtWrapper_QGraphicsScene::mouseMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mouseMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::mousePressEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QGraphicsScene::mouseReleaseEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_mouseReleaseEvent(event)); -} - -QPalette PythonQtWrapper_QGraphicsScene::palette(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->palette()); -} - -void PythonQtWrapper_QGraphicsScene::removeItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item) -{ - ( theWrappedObject->removeItem(item)); -} - -void PythonQtWrapper_QGraphicsScene::render(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& target, const QRectF& source, Qt::AspectRatioMode aspectRatioMode) -{ - ( theWrappedObject->render(painter, target, source, aspectRatioMode)); -} - -QRectF PythonQtWrapper_QGraphicsScene::sceneRect(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->sceneRect()); -} - -QList PythonQtWrapper_QGraphicsScene::selectedItems(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->selectedItems()); -} - -QPainterPath PythonQtWrapper_QGraphicsScene::selectionArea(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->selectionArea()); -} - -bool PythonQtWrapper_QGraphicsScene::sendEvent(QGraphicsScene* theWrappedObject, QGraphicsItem* item, QEvent* event) -{ - return ( theWrappedObject->sendEvent(item, event)); -} - -void PythonQtWrapper_QGraphicsScene::setActivePanel(QGraphicsScene* theWrappedObject, QGraphicsItem* item) -{ - ( theWrappedObject->setActivePanel(item)); -} - -void PythonQtWrapper_QGraphicsScene::setActiveWindow(QGraphicsScene* theWrappedObject, QGraphicsWidget* widget) -{ - ( theWrappedObject->setActiveWindow(widget)); -} - -void PythonQtWrapper_QGraphicsScene::setBackgroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBackgroundBrush(brush)); -} - -void PythonQtWrapper_QGraphicsScene::setBspTreeDepth(QGraphicsScene* theWrappedObject, int depth) -{ - ( theWrappedObject->setBspTreeDepth(depth)); -} - -void PythonQtWrapper_QGraphicsScene::setFocus(QGraphicsScene* theWrappedObject, Qt::FocusReason focusReason) -{ - ( theWrappedObject->setFocus(focusReason)); -} - -void PythonQtWrapper_QGraphicsScene::setFocusItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item, Qt::FocusReason focusReason) -{ - ( theWrappedObject->setFocusItem(item, focusReason)); -} - -void PythonQtWrapper_QGraphicsScene::setFont(QGraphicsScene* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QGraphicsScene::setForegroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setForegroundBrush(brush)); -} - -void PythonQtWrapper_QGraphicsScene::setItemIndexMethod(QGraphicsScene* theWrappedObject, QGraphicsScene::ItemIndexMethod method) -{ - ( theWrappedObject->setItemIndexMethod(method)); -} - -void PythonQtWrapper_QGraphicsScene::setPalette(QGraphicsScene* theWrappedObject, const QPalette& palette) -{ - ( theWrappedObject->setPalette(palette)); -} - -void PythonQtWrapper_QGraphicsScene::setSceneRect(QGraphicsScene* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setSceneRect(rect)); -} - -void PythonQtWrapper_QGraphicsScene::setSceneRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->setSceneRect(x, y, w, h)); -} - -void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path) -{ - ( theWrappedObject->setSelectionArea(path)); -} - -void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) -{ - ( theWrappedObject->setSelectionArea(path, mode)); -} - -void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode, const QTransform& deviceTransform) -{ - ( theWrappedObject->setSelectionArea(path, mode, deviceTransform)); -} - -void PythonQtWrapper_QGraphicsScene::setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QTransform& deviceTransform) -{ - ( theWrappedObject->setSelectionArea(path, deviceTransform)); -} - -void PythonQtWrapper_QGraphicsScene::setSortCacheEnabled(QGraphicsScene* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setSortCacheEnabled(enabled)); -} - -void PythonQtWrapper_QGraphicsScene::setStickyFocus(QGraphicsScene* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setStickyFocus(enabled)); -} - -void PythonQtWrapper_QGraphicsScene::setStyle(QGraphicsScene* theWrappedObject, QStyle* style) -{ - ( theWrappedObject->setStyle(style)); -} - -bool PythonQtWrapper_QGraphicsScene::stickyFocus(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->stickyFocus()); -} - -QStyle* PythonQtWrapper_QGraphicsScene::style(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - -void PythonQtWrapper_QGraphicsScene::update(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->update(x, y, w, h)); -} - -QList PythonQtWrapper_QGraphicsScene::views(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->views()); -} - -void PythonQtWrapper_QGraphicsScene::wheelEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneWheelEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsScene*)theWrappedObject)->promoted_wheelEvent(event)); -} - -qreal PythonQtWrapper_QGraphicsScene::width(QGraphicsScene* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -QGraphicsSceneContextMenuEvent* PythonQtWrapper_QGraphicsSceneContextMenuEvent::new_QGraphicsSceneContextMenuEvent(QEvent::Type type) -{ -return new QGraphicsSceneContextMenuEvent(type); } - -Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneContextMenuEvent::modifiers(QGraphicsSceneContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->modifiers()); -} - -QPointF PythonQtWrapper_QGraphicsSceneContextMenuEvent::pos(QGraphicsSceneContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -QGraphicsSceneContextMenuEvent::Reason PythonQtWrapper_QGraphicsSceneContextMenuEvent::reason(QGraphicsSceneContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->reason()); -} - -QPointF PythonQtWrapper_QGraphicsSceneContextMenuEvent::scenePos(QGraphicsSceneContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneContextMenuEvent::screenPos(QGraphicsSceneContextMenuEvent* theWrappedObject) const -{ - return ( theWrappedObject->screenPos()); -} - -void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setModifiers(QGraphicsSceneContextMenuEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) -{ - ( theWrappedObject->setModifiers(modifiers)); -} - -void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setReason(QGraphicsSceneContextMenuEvent* theWrappedObject, QGraphicsSceneContextMenuEvent::Reason reason) -{ - ( theWrappedObject->setReason(reason)); -} - -void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setScenePos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneContextMenuEvent::setScreenPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setScreenPos(pos)); -} - - - -QGraphicsSceneDragDropEvent* PythonQtWrapper_QGraphicsSceneDragDropEvent::new_QGraphicsSceneDragDropEvent(QEvent::Type type) -{ -return new QGraphicsSceneDragDropEvent(type); } - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::acceptProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject) -{ - ( theWrappedObject->acceptProposedAction()); -} - -Qt::MouseButtons PythonQtWrapper_QGraphicsSceneDragDropEvent::buttons(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -Qt::DropAction PythonQtWrapper_QGraphicsSceneDragDropEvent::dropAction(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->dropAction()); -} - -const QMimeData* PythonQtWrapper_QGraphicsSceneDragDropEvent::mimeData(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->mimeData()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneDragDropEvent::modifiers(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->modifiers()); -} - -QPointF PythonQtWrapper_QGraphicsSceneDragDropEvent::pos(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -Qt::DropActions PythonQtWrapper_QGraphicsSceneDragDropEvent::possibleActions(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->possibleActions()); -} - -Qt::DropAction PythonQtWrapper_QGraphicsSceneDragDropEvent::proposedAction(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->proposedAction()); -} - -QPointF PythonQtWrapper_QGraphicsSceneDragDropEvent::scenePos(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneDragDropEvent::screenPos(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->screenPos()); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setButtons(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::MouseButtons buttons) -{ - ( theWrappedObject->setButtons(buttons)); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setDropAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action) -{ - ( theWrappedObject->setDropAction(action)); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setModifiers(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) -{ - ( theWrappedObject->setModifiers(modifiers)); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setPossibleActions(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropActions actions) -{ - ( theWrappedObject->setPossibleActions(actions)); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action) -{ - ( theWrappedObject->setProposedAction(action)); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setScenePos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneDragDropEvent::setScreenPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setScreenPos(pos)); -} - -QWidget* PythonQtWrapper_QGraphicsSceneDragDropEvent::source(QGraphicsSceneDragDropEvent* theWrappedObject) const -{ - return ( theWrappedObject->source()); -} - - - -QGraphicsSceneEvent* PythonQtWrapper_QGraphicsSceneEvent::new_QGraphicsSceneEvent(QEvent::Type type) -{ -return new QGraphicsSceneEvent(type); } - -QWidget* PythonQtWrapper_QGraphicsSceneEvent::widget(QGraphicsSceneEvent* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - - - -QGraphicsSceneHelpEvent* PythonQtWrapper_QGraphicsSceneHelpEvent::new_QGraphicsSceneHelpEvent(QEvent::Type type) -{ -return new QGraphicsSceneHelpEvent(type); } - -QPointF PythonQtWrapper_QGraphicsSceneHelpEvent::scenePos(QGraphicsSceneHelpEvent* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneHelpEvent::screenPos(QGraphicsSceneHelpEvent* theWrappedObject) const -{ - return ( theWrappedObject->screenPos()); -} - -void PythonQtWrapper_QGraphicsSceneHelpEvent::setScenePos(QGraphicsSceneHelpEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneHelpEvent::setScreenPos(QGraphicsSceneHelpEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setScreenPos(pos)); -} - - - -QGraphicsSceneHoverEvent* PythonQtWrapper_QGraphicsSceneHoverEvent::new_QGraphicsSceneHoverEvent(QEvent::Type type) -{ -return new QGraphicsSceneHoverEvent(type); } - -QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::lastPos(QGraphicsSceneHoverEvent* theWrappedObject) const -{ - return ( theWrappedObject->lastPos()); -} - -QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::lastScenePos(QGraphicsSceneHoverEvent* theWrappedObject) const -{ - return ( theWrappedObject->lastScenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneHoverEvent::lastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject) const -{ - return ( theWrappedObject->lastScreenPos()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneHoverEvent::modifiers(QGraphicsSceneHoverEvent* theWrappedObject) const -{ - return ( theWrappedObject->modifiers()); -} - -QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::pos(QGraphicsSceneHoverEvent* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -QPointF PythonQtWrapper_QGraphicsSceneHoverEvent::scenePos(QGraphicsSceneHoverEvent* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneHoverEvent::screenPos(QGraphicsSceneHoverEvent* theWrappedObject) const -{ - return ( theWrappedObject->screenPos()); -} - -void PythonQtWrapper_QGraphicsSceneHoverEvent::setLastPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setLastPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneHoverEvent::setLastScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setLastScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneHoverEvent::setLastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setLastScreenPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneHoverEvent::setModifiers(QGraphicsSceneHoverEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) -{ - ( theWrappedObject->setModifiers(modifiers)); -} - -void PythonQtWrapper_QGraphicsSceneHoverEvent::setPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneHoverEvent::setScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneHoverEvent::setScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setScreenPos(pos)); -} - - - -QGraphicsSceneMouseEvent* PythonQtWrapper_QGraphicsSceneMouseEvent::new_QGraphicsSceneMouseEvent(QEvent::Type type) -{ -return new QGraphicsSceneMouseEvent(type); } - -Qt::MouseButton PythonQtWrapper_QGraphicsSceneMouseEvent::button(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->button()); -} - -QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::buttonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const -{ - return ( theWrappedObject->buttonDownPos(button)); -} - -QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::buttonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const -{ - return ( theWrappedObject->buttonDownScenePos(button)); -} - -QPoint PythonQtWrapper_QGraphicsSceneMouseEvent::buttonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const -{ - return ( theWrappedObject->buttonDownScreenPos(button)); -} - -Qt::MouseButtons PythonQtWrapper_QGraphicsSceneMouseEvent::buttons(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::lastPos(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->lastPos()); -} - -QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::lastScenePos(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->lastScenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneMouseEvent::lastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->lastScreenPos()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneMouseEvent::modifiers(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->modifiers()); -} - -QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::pos(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -QPointF PythonQtWrapper_QGraphicsSceneMouseEvent::scenePos(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneMouseEvent::screenPos(QGraphicsSceneMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->screenPos()); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setButton(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) -{ - ( theWrappedObject->setButton(button)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos) -{ - ( theWrappedObject->setButtonDownPos(button, pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos) -{ - ( theWrappedObject->setButtonDownScenePos(button, pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPoint& pos) -{ - ( theWrappedObject->setButtonDownScreenPos(button, pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setButtons(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButtons buttons) -{ - ( theWrappedObject->setButtons(buttons)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setLastPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setLastPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setLastScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setLastScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setLastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setLastScreenPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setModifiers(QGraphicsSceneMouseEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) -{ - ( theWrappedObject->setModifiers(modifiers)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneMouseEvent::setScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setScreenPos(pos)); -} - - - -QGraphicsSceneMoveEvent* PythonQtWrapper_QGraphicsSceneMoveEvent::new_QGraphicsSceneMoveEvent() -{ -return new QGraphicsSceneMoveEvent(); } - -QPointF PythonQtWrapper_QGraphicsSceneMoveEvent::newPos(QGraphicsSceneMoveEvent* theWrappedObject) const -{ - return ( theWrappedObject->newPos()); -} - -QPointF PythonQtWrapper_QGraphicsSceneMoveEvent::oldPos(QGraphicsSceneMoveEvent* theWrappedObject) const -{ - return ( theWrappedObject->oldPos()); -} - -void PythonQtWrapper_QGraphicsSceneMoveEvent::setNewPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setNewPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneMoveEvent::setOldPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setOldPos(pos)); -} - - - -QGraphicsSceneResizeEvent* PythonQtWrapper_QGraphicsSceneResizeEvent::new_QGraphicsSceneResizeEvent() -{ -return new QGraphicsSceneResizeEvent(); } - -QSizeF PythonQtWrapper_QGraphicsSceneResizeEvent::newSize(QGraphicsSceneResizeEvent* theWrappedObject) const -{ - return ( theWrappedObject->newSize()); -} - -QSizeF PythonQtWrapper_QGraphicsSceneResizeEvent::oldSize(QGraphicsSceneResizeEvent* theWrappedObject) const -{ - return ( theWrappedObject->oldSize()); -} - -void PythonQtWrapper_QGraphicsSceneResizeEvent::setNewSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size) -{ - ( theWrappedObject->setNewSize(size)); -} - -void PythonQtWrapper_QGraphicsSceneResizeEvent::setOldSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size) -{ - ( theWrappedObject->setOldSize(size)); -} - - - -QGraphicsSceneWheelEvent* PythonQtWrapper_QGraphicsSceneWheelEvent::new_QGraphicsSceneWheelEvent(QEvent::Type type) -{ -return new QGraphicsSceneWheelEvent(type); } - -Qt::MouseButtons PythonQtWrapper_QGraphicsSceneWheelEvent::buttons(QGraphicsSceneWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -int PythonQtWrapper_QGraphicsSceneWheelEvent::delta(QGraphicsSceneWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->delta()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QGraphicsSceneWheelEvent::modifiers(QGraphicsSceneWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->modifiers()); -} - -Qt::Orientation PythonQtWrapper_QGraphicsSceneWheelEvent::orientation(QGraphicsSceneWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -QPointF PythonQtWrapper_QGraphicsSceneWheelEvent::pos(QGraphicsSceneWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->pos()); -} - -QPointF PythonQtWrapper_QGraphicsSceneWheelEvent::scenePos(QGraphicsSceneWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->scenePos()); -} - -QPoint PythonQtWrapper_QGraphicsSceneWheelEvent::screenPos(QGraphicsSceneWheelEvent* theWrappedObject) const -{ - return ( theWrappedObject->screenPos()); -} - -void PythonQtWrapper_QGraphicsSceneWheelEvent::setButtons(QGraphicsSceneWheelEvent* theWrappedObject, Qt::MouseButtons buttons) -{ - ( theWrappedObject->setButtons(buttons)); -} - -void PythonQtWrapper_QGraphicsSceneWheelEvent::setDelta(QGraphicsSceneWheelEvent* theWrappedObject, int delta) -{ - ( theWrappedObject->setDelta(delta)); -} - -void PythonQtWrapper_QGraphicsSceneWheelEvent::setModifiers(QGraphicsSceneWheelEvent* theWrappedObject, Qt::KeyboardModifiers modifiers) -{ - ( theWrappedObject->setModifiers(modifiers)); -} - -void PythonQtWrapper_QGraphicsSceneWheelEvent::setOrientation(QGraphicsSceneWheelEvent* theWrappedObject, Qt::Orientation orientation) -{ - ( theWrappedObject->setOrientation(orientation)); -} - -void PythonQtWrapper_QGraphicsSceneWheelEvent::setPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneWheelEvent::setScenePos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setScenePos(pos)); -} - -void PythonQtWrapper_QGraphicsSceneWheelEvent::setScreenPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPoint& pos) -{ - ( theWrappedObject->setScreenPos(pos)); -} - - - -bool PythonQtShell_QGraphicsSimpleTextItem::isObscuredBy(const QGraphicsItem* item) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isObscuredBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isObscuredBy", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsSimpleTextItem::isObscuredBy(item); -} -QPainterPath PythonQtShell_QGraphicsSimpleTextItem::opaqueArea() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "opaqueArea"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPainterPath"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPainterPath returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("opaqueArea", methodInfo, result); - } else { - returnValue = *((QPainterPath*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsSimpleTextItem::opaqueArea(); -} -QGraphicsSimpleTextItem* PythonQtWrapper_QGraphicsSimpleTextItem::new_QGraphicsSimpleTextItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsSimpleTextItem(parent, scene); } - -QGraphicsSimpleTextItem* PythonQtWrapper_QGraphicsSimpleTextItem::new_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsSimpleTextItem(text, parent, scene); } - -QRectF PythonQtWrapper_QGraphicsSimpleTextItem::boundingRect(QGraphicsSimpleTextItem* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -bool PythonQtWrapper_QGraphicsSimpleTextItem::contains(QGraphicsSimpleTextItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->contains(point)); -} - -QFont PythonQtWrapper_QGraphicsSimpleTextItem::font(QGraphicsSimpleTextItem* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -bool PythonQtWrapper_QGraphicsSimpleTextItem::isObscuredBy(QGraphicsSimpleTextItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsSimpleTextItem*)theWrappedObject)->promoted_isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QGraphicsSimpleTextItem::opaqueArea(QGraphicsSimpleTextItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsSimpleTextItem*)theWrappedObject)->promoted_opaqueArea()); -} - -void PythonQtWrapper_QGraphicsSimpleTextItem::paint(QGraphicsSimpleTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -void PythonQtWrapper_QGraphicsSimpleTextItem::setFont(QGraphicsSimpleTextItem* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QGraphicsSimpleTextItem::setText(QGraphicsSimpleTextItem* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -QPainterPath PythonQtWrapper_QGraphicsSimpleTextItem::shape(QGraphicsSimpleTextItem* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -QString PythonQtWrapper_QGraphicsSimpleTextItem::text(QGraphicsSimpleTextItem* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -int PythonQtWrapper_QGraphicsSimpleTextItem::type(QGraphicsSimpleTextItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -void PythonQtShell_QGraphicsTextItem::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsTextItem::childEvent(arg__1); -} -void PythonQtShell_QGraphicsTextItem::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsTextItem::customEvent(arg__1); -} -bool PythonQtShell_QGraphicsTextItem::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsTextItem::event(arg__1); -} -bool PythonQtShell_QGraphicsTextItem::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsTextItem::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsTextItem::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsTextItem::timerEvent(arg__1); -} -QGraphicsTextItem* PythonQtWrapper_QGraphicsTextItem::new_QGraphicsTextItem(QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsTextItem(parent, scene); } - -QGraphicsTextItem* PythonQtWrapper_QGraphicsTextItem::new_QGraphicsTextItem(const QString& text, QGraphicsItem* parent, QGraphicsScene* scene) -{ -return new PythonQtShell_QGraphicsTextItem(text, parent, scene); } - -void PythonQtWrapper_QGraphicsTextItem::adjustSize(QGraphicsTextItem* theWrappedObject) -{ - ( theWrappedObject->adjustSize()); -} - -QRectF PythonQtWrapper_QGraphicsTextItem::boundingRect(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -bool PythonQtWrapper_QGraphicsTextItem::contains(QGraphicsTextItem* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->contains(point)); -} - -QColor PythonQtWrapper_QGraphicsTextItem::defaultTextColor(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->defaultTextColor()); -} - -QTextDocument* PythonQtWrapper_QGraphicsTextItem::document(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->document()); -} - -QFont PythonQtWrapper_QGraphicsTextItem::font(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -bool PythonQtWrapper_QGraphicsTextItem::isObscuredBy(QGraphicsTextItem* theWrappedObject, const QGraphicsItem* item) const -{ - return ( theWrappedObject->isObscuredBy(item)); -} - -QPainterPath PythonQtWrapper_QGraphicsTextItem::opaqueArea(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->opaqueArea()); -} - -bool PythonQtWrapper_QGraphicsTextItem::openExternalLinks(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->openExternalLinks()); -} - -void PythonQtWrapper_QGraphicsTextItem::paint(QGraphicsTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -void PythonQtWrapper_QGraphicsTextItem::setDefaultTextColor(QGraphicsTextItem* theWrappedObject, const QColor& c) -{ - ( theWrappedObject->setDefaultTextColor(c)); -} - -void PythonQtWrapper_QGraphicsTextItem::setDocument(QGraphicsTextItem* theWrappedObject, QTextDocument* document) -{ - ( theWrappedObject->setDocument(document)); -} - -void PythonQtWrapper_QGraphicsTextItem::setFont(QGraphicsTextItem* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QGraphicsTextItem::setHtml(QGraphicsTextItem* theWrappedObject, const QString& html) -{ - ( theWrappedObject->setHtml(html)); -} - -void PythonQtWrapper_QGraphicsTextItem::setOpenExternalLinks(QGraphicsTextItem* theWrappedObject, bool open) -{ - ( theWrappedObject->setOpenExternalLinks(open)); -} - -void PythonQtWrapper_QGraphicsTextItem::setPlainText(QGraphicsTextItem* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setPlainText(text)); -} - -void PythonQtWrapper_QGraphicsTextItem::setTabChangesFocus(QGraphicsTextItem* theWrappedObject, bool b) -{ - ( theWrappedObject->setTabChangesFocus(b)); -} - -void PythonQtWrapper_QGraphicsTextItem::setTextCursor(QGraphicsTextItem* theWrappedObject, const QTextCursor& cursor) -{ - ( theWrappedObject->setTextCursor(cursor)); -} - -void PythonQtWrapper_QGraphicsTextItem::setTextInteractionFlags(QGraphicsTextItem* theWrappedObject, Qt::TextInteractionFlags flags) -{ - ( theWrappedObject->setTextInteractionFlags(flags)); -} - -void PythonQtWrapper_QGraphicsTextItem::setTextWidth(QGraphicsTextItem* theWrappedObject, qreal width) -{ - ( theWrappedObject->setTextWidth(width)); -} - -QPainterPath PythonQtWrapper_QGraphicsTextItem::shape(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -bool PythonQtWrapper_QGraphicsTextItem::tabChangesFocus(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->tabChangesFocus()); -} - -QTextCursor PythonQtWrapper_QGraphicsTextItem::textCursor(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->textCursor()); -} - -Qt::TextInteractionFlags PythonQtWrapper_QGraphicsTextItem::textInteractionFlags(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->textInteractionFlags()); -} - -qreal PythonQtWrapper_QGraphicsTextItem::textWidth(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->textWidth()); -} - -QString PythonQtWrapper_QGraphicsTextItem::toHtml(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->toHtml()); -} - -QString PythonQtWrapper_QGraphicsTextItem::toPlainText(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->toPlainText()); -} - -int PythonQtWrapper_QGraphicsTextItem::type(QGraphicsTextItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -void PythonQtShell_QGraphicsTransform::applyTo(QMatrix4x4* matrix) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "applyTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMatrix4x4*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&matrix}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QGraphicsTransform::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsTransform::childEvent(arg__1); -} -void PythonQtShell_QGraphicsTransform::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsTransform::customEvent(arg__1); -} -bool PythonQtShell_QGraphicsTransform::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsTransform::event(arg__1); -} -bool PythonQtShell_QGraphicsTransform::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsTransform::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsTransform::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsTransform::timerEvent(arg__1); -} -QGraphicsTransform* PythonQtWrapper_QGraphicsTransform::new_QGraphicsTransform(QObject* parent) -{ -return new PythonQtShell_QGraphicsTransform(parent); } - - - -void PythonQtShell_QGraphicsView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::actionEvent(arg__1); -} -void PythonQtShell_QGraphicsView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::changeEvent(arg__1); -} -void PythonQtShell_QGraphicsView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::childEvent(arg__1); -} -void PythonQtShell_QGraphicsView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::closeEvent(arg__1); -} -void PythonQtShell_QGraphicsView::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::contextMenuEvent(event); -} -void PythonQtShell_QGraphicsView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::customEvent(arg__1); -} -int PythonQtShell_QGraphicsView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::devType(); -} -void PythonQtShell_QGraphicsView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsView::dragEnterEvent(event); -} -void PythonQtShell_QGraphicsView::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsView::dragLeaveEvent(event); -} -void PythonQtShell_QGraphicsView::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsView::dragMoveEvent(event); -} -void PythonQtShell_QGraphicsView::drawBackground(QPainter* painter, const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawBackground"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&painter, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::drawBackground(painter, rect); -} -void PythonQtShell_QGraphicsView::drawForeground(QPainter* painter, const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawForeground"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&painter, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::drawForeground(painter, rect); -} -void PythonQtShell_QGraphicsView::drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItems"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "int" , "QGraphicsItem**" , "const QStyleOptionGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&numItems, (void*)&items, (void*)&options}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::drawItems(painter, numItems, items, options); -} -void PythonQtShell_QGraphicsView::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsView::dropEvent(event); -} -void PythonQtShell_QGraphicsView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::enterEvent(arg__1); -} -bool PythonQtShell_QGraphicsView::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::event(event); -} -bool PythonQtShell_QGraphicsView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGraphicsView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::focusInEvent(event); -} -bool PythonQtShell_QGraphicsView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::focusNextPrevChild(next); -} -void PythonQtShell_QGraphicsView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::focusOutEvent(event); -} -int PythonQtShell_QGraphicsView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::heightForWidth(arg__1); -} -void PythonQtShell_QGraphicsView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::hideEvent(arg__1); -} -void PythonQtShell_QGraphicsView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsView::inputMethodEvent(event); -} -QVariant PythonQtShell_QGraphicsView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::inputMethodQuery(query); -} -void PythonQtShell_QGraphicsView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::keyPressEvent(event); -} -void PythonQtShell_QGraphicsView::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::keyReleaseEvent(event); -} -void PythonQtShell_QGraphicsView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::languageChange(); -} -void PythonQtShell_QGraphicsView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::leaveEvent(arg__1); -} -int PythonQtShell_QGraphicsView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::metric(arg__1); -} -void PythonQtShell_QGraphicsView::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::mouseDoubleClickEvent(event); -} -void PythonQtShell_QGraphicsView::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::mouseMoveEvent(event); -} -void PythonQtShell_QGraphicsView::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::mousePressEvent(event); -} -void PythonQtShell_QGraphicsView::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::mouseReleaseEvent(event); -} -void PythonQtShell_QGraphicsView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QGraphicsView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::paintEngine(); -} -void PythonQtShell_QGraphicsView::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::paintEvent(event); -} -void PythonQtShell_QGraphicsView::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::resizeEvent(event); -} -void PythonQtShell_QGraphicsView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QGraphicsView::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::showEvent(event); -} -void PythonQtShell_QGraphicsView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::tabletEvent(arg__1); -} -void PythonQtShell_QGraphicsView::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsView::timerEvent(arg__1); -} -bool PythonQtShell_QGraphicsView::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsView::viewportEvent(event); -} -void PythonQtShell_QGraphicsView::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsView::wheelEvent(event); -} -QGraphicsView* PythonQtWrapper_QGraphicsView::new_QGraphicsView(QGraphicsScene* scene, QWidget* parent) -{ -return new PythonQtShell_QGraphicsView(scene, parent); } - -QGraphicsView* PythonQtWrapper_QGraphicsView::new_QGraphicsView(QWidget* parent) -{ -return new PythonQtShell_QGraphicsView(parent); } - -Qt::Alignment PythonQtWrapper_QGraphicsView::alignment(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -QBrush PythonQtWrapper_QGraphicsView::backgroundBrush(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->backgroundBrush()); -} - -QGraphicsView::CacheMode PythonQtWrapper_QGraphicsView::cacheMode(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->cacheMode()); -} - -void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, const QGraphicsItem* item) -{ - ( theWrappedObject->centerOn(item)); -} - -void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->centerOn(pos)); -} - -void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->centerOn(x, y)); -} - -void PythonQtWrapper_QGraphicsView::contextMenuEvent(QGraphicsView* theWrappedObject, QContextMenuEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_contextMenuEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::dragEnterEvent(QGraphicsView* theWrappedObject, QDragEnterEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dragEnterEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::dragLeaveEvent(QGraphicsView* theWrappedObject, QDragLeaveEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dragLeaveEvent(event)); -} - -QGraphicsView::DragMode PythonQtWrapper_QGraphicsView::dragMode(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->dragMode()); -} - -void PythonQtWrapper_QGraphicsView::dragMoveEvent(QGraphicsView* theWrappedObject, QDragMoveEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dragMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::drawBackground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_drawBackground(painter, rect)); -} - -void PythonQtWrapper_QGraphicsView::drawForeground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_drawForeground(painter, rect)); -} - -void PythonQtWrapper_QGraphicsView::drawItems(QGraphicsView* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_drawItems(painter, numItems, items, options)); -} - -void PythonQtWrapper_QGraphicsView::dropEvent(QGraphicsView* theWrappedObject, QDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_dropEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, const QGraphicsItem* item, int xmargin, int ymargin) -{ - ( theWrappedObject->ensureVisible(item, xmargin, ymargin)); -} - -void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, const QRectF& rect, int xmargin, int ymargin) -{ - ( theWrappedObject->ensureVisible(rect, xmargin, ymargin)); -} - -void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin) -{ - ( theWrappedObject->ensureVisible(x, y, w, h, xmargin, ymargin)); -} - -bool PythonQtWrapper_QGraphicsView::event(QGraphicsView* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, const QGraphicsItem* item, Qt::AspectRatioMode aspectRadioMode) -{ - ( theWrappedObject->fitInView(item, aspectRadioMode)); -} - -void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, const QRectF& rect, Qt::AspectRatioMode aspectRadioMode) -{ - ( theWrappedObject->fitInView(rect, aspectRadioMode)); -} - -void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRadioMode) -{ - ( theWrappedObject->fitInView(x, y, w, h, aspectRadioMode)); -} - -void PythonQtWrapper_QGraphicsView::focusInEvent(QGraphicsView* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_focusInEvent(event)); -} - -bool PythonQtWrapper_QGraphicsView::focusNextPrevChild(QGraphicsView* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QGraphicsView::focusOutEvent(QGraphicsView* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_focusOutEvent(event)); -} - -QBrush PythonQtWrapper_QGraphicsView::foregroundBrush(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->foregroundBrush()); -} - -void PythonQtWrapper_QGraphicsView::inputMethodEvent(QGraphicsView* theWrappedObject, QInputMethodEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_inputMethodEvent(event)); -} - -QVariant PythonQtWrapper_QGraphicsView::inputMethodQuery(QGraphicsView* theWrappedObject, Qt::InputMethodQuery query) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_inputMethodQuery(query)); -} - -bool PythonQtWrapper_QGraphicsView::isInteractive(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->isInteractive()); -} - -bool PythonQtWrapper_QGraphicsView::isTransformed(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->isTransformed()); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsView::itemAt(QGraphicsView* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->itemAt(pos)); -} - -QGraphicsItem* PythonQtWrapper_QGraphicsView::itemAt(QGraphicsView* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->itemAt(x, y)); -} - -QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->items()); -} - -QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(path, mode)); -} - -QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->items(pos)); -} - -QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPolygon& polygon, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(polygon, mode)); -} - -QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QRect& rect, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(rect, mode)); -} - -QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->items(x, y)); -} - -QList PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, int x, int y, int w, int h, Qt::ItemSelectionMode mode) const -{ - return ( theWrappedObject->items(x, y, w, h, mode)); -} - -void PythonQtWrapper_QGraphicsView::keyPressEvent(QGraphicsView* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::keyReleaseEvent(QGraphicsView* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_keyReleaseEvent(event)); -} - -QPainterPath PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const -{ - return ( theWrappedObject->mapFromScene(path)); -} - -QPoint PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->mapFromScene(point)); -} - -QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPolygonF& polygon) const -{ - return ( theWrappedObject->mapFromScene(polygon)); -} - -QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapFromScene(rect)); -} - -QPoint PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y) const -{ - return ( theWrappedObject->mapFromScene(x, y)); -} - -QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const -{ - return ( theWrappedObject->mapFromScene(x, y, w, h)); -} - -QPainterPath PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const -{ - return ( theWrappedObject->mapToScene(path)); -} - -QPointF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPoint& point) const -{ - return ( theWrappedObject->mapToScene(point)); -} - -QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPolygon& polygon) const -{ - return ( theWrappedObject->mapToScene(polygon)); -} - -QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QRect& rect) const -{ - return ( theWrappedObject->mapToScene(rect)); -} - -QPointF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->mapToScene(x, y)); -} - -QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, int x, int y, int w, int h) const -{ - return ( theWrappedObject->mapToScene(x, y, w, h)); -} - -QMatrix PythonQtWrapper_QGraphicsView::matrix(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->matrix()); -} - -void PythonQtWrapper_QGraphicsView::mouseDoubleClickEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mouseDoubleClickEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::mouseMoveEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mouseMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::mousePressEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::mouseReleaseEvent(QGraphicsView* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_mouseReleaseEvent(event)); -} - -QGraphicsView::OptimizationFlags PythonQtWrapper_QGraphicsView::optimizationFlags(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->optimizationFlags()); -} - -void PythonQtWrapper_QGraphicsView::paintEvent(QGraphicsView* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_paintEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::render(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& target, const QRect& source, Qt::AspectRatioMode aspectRatioMode) -{ - ( theWrappedObject->render(painter, target, source, aspectRatioMode)); -} - -QPainter::RenderHints PythonQtWrapper_QGraphicsView::renderHints(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->renderHints()); -} - -void PythonQtWrapper_QGraphicsView::resetCachedContent(QGraphicsView* theWrappedObject) -{ - ( theWrappedObject->resetCachedContent()); -} - -void PythonQtWrapper_QGraphicsView::resetMatrix(QGraphicsView* theWrappedObject) -{ - ( theWrappedObject->resetMatrix()); -} - -void PythonQtWrapper_QGraphicsView::resetTransform(QGraphicsView* theWrappedObject) -{ - ( theWrappedObject->resetTransform()); -} - -QGraphicsView::ViewportAnchor PythonQtWrapper_QGraphicsView::resizeAnchor(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->resizeAnchor()); -} - -void PythonQtWrapper_QGraphicsView::resizeEvent(QGraphicsView* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QGraphicsView::rotate(QGraphicsView* theWrappedObject, qreal angle) -{ - ( theWrappedObject->rotate(angle)); -} - -Qt::ItemSelectionMode PythonQtWrapper_QGraphicsView::rubberBandSelectionMode(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->rubberBandSelectionMode()); -} - -void PythonQtWrapper_QGraphicsView::scale(QGraphicsView* theWrappedObject, qreal sx, qreal sy) -{ - ( theWrappedObject->scale(sx, sy)); -} - -QGraphicsScene* PythonQtWrapper_QGraphicsView::scene(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->scene()); -} - -QRectF PythonQtWrapper_QGraphicsView::sceneRect(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->sceneRect()); -} - -void PythonQtWrapper_QGraphicsView::scrollContentsBy(QGraphicsView* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QGraphicsView::setAlignment(QGraphicsView* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setAlignment(alignment)); -} - -void PythonQtWrapper_QGraphicsView::setBackgroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBackgroundBrush(brush)); -} - -void PythonQtWrapper_QGraphicsView::setCacheMode(QGraphicsView* theWrappedObject, QGraphicsView::CacheMode mode) -{ - ( theWrappedObject->setCacheMode(mode)); -} - -void PythonQtWrapper_QGraphicsView::setDragMode(QGraphicsView* theWrappedObject, QGraphicsView::DragMode mode) -{ - ( theWrappedObject->setDragMode(mode)); -} - -void PythonQtWrapper_QGraphicsView::setForegroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setForegroundBrush(brush)); -} - -void PythonQtWrapper_QGraphicsView::setInteractive(QGraphicsView* theWrappedObject, bool allowed) -{ - ( theWrappedObject->setInteractive(allowed)); -} - -void PythonQtWrapper_QGraphicsView::setMatrix(QGraphicsView* theWrappedObject, const QMatrix& matrix, bool combine) -{ - ( theWrappedObject->setMatrix(matrix, combine)); -} - -void PythonQtWrapper_QGraphicsView::setOptimizationFlag(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlag flag, bool enabled) -{ - ( theWrappedObject->setOptimizationFlag(flag, enabled)); -} - -void PythonQtWrapper_QGraphicsView::setOptimizationFlags(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlags flags) -{ - ( theWrappedObject->setOptimizationFlags(flags)); -} - -void PythonQtWrapper_QGraphicsView::setRenderHint(QGraphicsView* theWrappedObject, QPainter::RenderHint hint, bool enabled) -{ - ( theWrappedObject->setRenderHint(hint, enabled)); -} - -void PythonQtWrapper_QGraphicsView::setRenderHints(QGraphicsView* theWrappedObject, QPainter::RenderHints hints) -{ - ( theWrappedObject->setRenderHints(hints)); -} - -void PythonQtWrapper_QGraphicsView::setResizeAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor) -{ - ( theWrappedObject->setResizeAnchor(anchor)); -} - -void PythonQtWrapper_QGraphicsView::setRubberBandSelectionMode(QGraphicsView* theWrappedObject, Qt::ItemSelectionMode mode) -{ - ( theWrappedObject->setRubberBandSelectionMode(mode)); -} - -void PythonQtWrapper_QGraphicsView::setScene(QGraphicsView* theWrappedObject, QGraphicsScene* scene) -{ - ( theWrappedObject->setScene(scene)); -} - -void PythonQtWrapper_QGraphicsView::setSceneRect(QGraphicsView* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->setSceneRect(rect)); -} - -void PythonQtWrapper_QGraphicsView::setSceneRect(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->setSceneRect(x, y, w, h)); -} - -void PythonQtWrapper_QGraphicsView::setTransform(QGraphicsView* theWrappedObject, const QTransform& matrix, bool combine) -{ - ( theWrappedObject->setTransform(matrix, combine)); -} - -void PythonQtWrapper_QGraphicsView::setTransformationAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor) -{ - ( theWrappedObject->setTransformationAnchor(anchor)); -} - -void PythonQtWrapper_QGraphicsView::setViewportUpdateMode(QGraphicsView* theWrappedObject, QGraphicsView::ViewportUpdateMode mode) -{ - ( theWrappedObject->setViewportUpdateMode(mode)); -} - -void PythonQtWrapper_QGraphicsView::shear(QGraphicsView* theWrappedObject, qreal sh, qreal sv) -{ - ( theWrappedObject->shear(sh, sv)); -} - -void PythonQtWrapper_QGraphicsView::showEvent(QGraphicsView* theWrappedObject, QShowEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_showEvent(event)); -} - -QSize PythonQtWrapper_QGraphicsView::sizeHint(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QTransform PythonQtWrapper_QGraphicsView::transform(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->transform()); -} - -QGraphicsView::ViewportAnchor PythonQtWrapper_QGraphicsView::transformationAnchor(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->transformationAnchor()); -} - -void PythonQtWrapper_QGraphicsView::translate(QGraphicsView* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -bool PythonQtWrapper_QGraphicsView::viewportEvent(QGraphicsView* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_viewportEvent(event)); -} - -QTransform PythonQtWrapper_QGraphicsView::viewportTransform(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->viewportTransform()); -} - -QGraphicsView::ViewportUpdateMode PythonQtWrapper_QGraphicsView::viewportUpdateMode(QGraphicsView* theWrappedObject) const -{ - return ( theWrappedObject->viewportUpdateMode()); -} - -void PythonQtWrapper_QGraphicsView::wheelEvent(QGraphicsView* theWrappedObject, QWheelEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsView*)theWrappedObject)->promoted_wheelEvent(event)); -} - - - -void PythonQtShell_QGraphicsWidget::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::changeEvent(event); -} -void PythonQtShell_QGraphicsWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::childEvent(arg__1); -} -void PythonQtShell_QGraphicsWidget::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsWidget::closeEvent(event); -} -void PythonQtShell_QGraphicsWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::customEvent(arg__1); -} -bool PythonQtShell_QGraphicsWidget::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsWidget::event(event); -} -bool PythonQtShell_QGraphicsWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsWidget::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QGraphicsWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsWidget::focusNextPrevChild(next); -} -void PythonQtShell_QGraphicsWidget::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qreal*" , "qreal*" , "qreal*" , "qreal*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::getContentsMargins(left, top, right, bottom); -} -void PythonQtShell_QGraphicsWidget::grabKeyboardEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabKeyboardEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::grabKeyboardEvent(event); -} -void PythonQtShell_QGraphicsWidget::grabMouseEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "grabMouseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::grabMouseEvent(event); -} -void PythonQtShell_QGraphicsWidget::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsWidget::hideEvent(event); -} -void PythonQtShell_QGraphicsWidget::hoverLeaveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsWidget::hoverLeaveEvent(event); -} -void PythonQtShell_QGraphicsWidget::hoverMoveEvent(QGraphicsSceneHoverEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hoverMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneHoverEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsWidget::hoverMoveEvent(event); -} -void PythonQtShell_QGraphicsWidget::initStyleOption(QStyleOption* option) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initStyleOption"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&option}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::initStyleOption(option); -} -void PythonQtShell_QGraphicsWidget::moveEvent(QGraphicsSceneMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsWidget::moveEvent(event); -} -void PythonQtShell_QGraphicsWidget::paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintWindowFrame"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionGraphicsItem*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::paintWindowFrame(painter, option, widget); -} -void PythonQtShell_QGraphicsWidget::polishEvent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polishEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::polishEvent(); -} -QVariant PythonQtShell_QGraphicsWidget::propertyChange(const QString& propertyName, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "propertyChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QString&" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&propertyName, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("propertyChange", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsWidget::propertyChange(propertyName, value); -} -void PythonQtShell_QGraphicsWidget::resizeEvent(QGraphicsSceneResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QGraphicsSceneResizeEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QGraphicsWidget::resizeEvent(event); -} -void PythonQtShell_QGraphicsWidget::setGeometry(const QRectF& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::setGeometry(rect); -} -void PythonQtShell_QGraphicsWidget::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGraphicsWidget::showEvent(event); -} -QSizeF PythonQtShell_QGraphicsWidget::sizeHint(Qt::SizeHint which, const QSizeF& constraint) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSizeF" , "Qt::SizeHint" , "const QSizeF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QSizeF returnValue; - void* args[3] = {NULL, (void*)&which, (void*)&constraint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSizeF*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsWidget::sizeHint(which, constraint); -} -void PythonQtShell_QGraphicsWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::timerEvent(arg__1); -} -void PythonQtShell_QGraphicsWidget::ungrabKeyboardEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabKeyboardEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::ungrabKeyboardEvent(event); -} -void PythonQtShell_QGraphicsWidget::ungrabMouseEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ungrabMouseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::ungrabMouseEvent(event); -} -void PythonQtShell_QGraphicsWidget::updateGeometry() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGraphicsWidget::updateGeometry(); -} -bool PythonQtShell_QGraphicsWidget::windowFrameEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsWidget::windowFrameEvent(e); -} -Qt::WindowFrameSection PythonQtShell_QGraphicsWidget::windowFrameSectionAt(const QPointF& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "windowFrameSectionAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::WindowFrameSection" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::WindowFrameSection returnValue; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("windowFrameSectionAt", methodInfo, result); - } else { - returnValue = *((Qt::WindowFrameSection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGraphicsWidget::windowFrameSectionAt(pos); -} -QGraphicsWidget* PythonQtWrapper_QGraphicsWidget::new_QGraphicsWidget(QGraphicsItem* parent, Qt::WindowFlags wFlags) -{ -return new PythonQtShell_QGraphicsWidget(parent, wFlags); } - -QList PythonQtWrapper_QGraphicsWidget::actions(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->actions()); -} - -void PythonQtWrapper_QGraphicsWidget::addAction(QGraphicsWidget* theWrappedObject, QAction* action) -{ - ( theWrappedObject->addAction(action)); -} - -void PythonQtWrapper_QGraphicsWidget::addActions(QGraphicsWidget* theWrappedObject, QList actions) -{ - ( theWrappedObject->addActions(actions)); -} - -void PythonQtWrapper_QGraphicsWidget::adjustSize(QGraphicsWidget* theWrappedObject) -{ - ( theWrappedObject->adjustSize()); -} - -QRectF PythonQtWrapper_QGraphicsWidget::boundingRect(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -void PythonQtWrapper_QGraphicsWidget::changeEvent(QGraphicsWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_changeEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::closeEvent(QGraphicsWidget* theWrappedObject, QCloseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_closeEvent(event)); -} - -bool PythonQtWrapper_QGraphicsWidget::event(QGraphicsWidget* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_event(event)); -} - -bool PythonQtWrapper_QGraphicsWidget::focusNextPrevChild(QGraphicsWidget* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -Qt::FocusPolicy PythonQtWrapper_QGraphicsWidget::focusPolicy(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->focusPolicy()); -} - -QGraphicsWidget* PythonQtWrapper_QGraphicsWidget::focusWidget(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->focusWidget()); -} - -QFont PythonQtWrapper_QGraphicsWidget::font(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -void PythonQtWrapper_QGraphicsWidget::getContentsMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_getContentsMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QGraphicsWidget::getWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const -{ - ( theWrappedObject->getWindowFrameMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QGraphicsWidget::grabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_grabKeyboardEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::grabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_grabMouseEvent(event)); -} - -int PythonQtWrapper_QGraphicsWidget::grabShortcut(QGraphicsWidget* theWrappedObject, const QKeySequence& sequence, Qt::ShortcutContext context) -{ - return ( theWrappedObject->grabShortcut(sequence, context)); -} - -void PythonQtWrapper_QGraphicsWidget::hideEvent(QGraphicsWidget* theWrappedObject, QHideEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_hideEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::hoverLeaveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_hoverLeaveEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::hoverMoveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_hoverMoveEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::initStyleOption(QGraphicsWidget* theWrappedObject, QStyleOption* option) const -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_initStyleOption(option)); -} - -void PythonQtWrapper_QGraphicsWidget::insertAction(QGraphicsWidget* theWrappedObject, QAction* before, QAction* action) -{ - ( theWrappedObject->insertAction(before, action)); -} - -void PythonQtWrapper_QGraphicsWidget::insertActions(QGraphicsWidget* theWrappedObject, QAction* before, QList actions) -{ - ( theWrappedObject->insertActions(before, actions)); -} - -bool PythonQtWrapper_QGraphicsWidget::isActiveWindow(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->isActiveWindow()); -} - -QGraphicsLayout* PythonQtWrapper_QGraphicsWidget::layout(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->layout()); -} - -Qt::LayoutDirection PythonQtWrapper_QGraphicsWidget::layoutDirection(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->layoutDirection()); -} - -void PythonQtWrapper_QGraphicsWidget::moveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneMoveEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_moveEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::paint(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( theWrappedObject->paint(painter, option, widget)); -} - -void PythonQtWrapper_QGraphicsWidget::paintWindowFrame(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_paintWindowFrame(painter, option, widget)); -} - -QPalette PythonQtWrapper_QGraphicsWidget::palette(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->palette()); -} - -void PythonQtWrapper_QGraphicsWidget::polishEvent(QGraphicsWidget* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_polishEvent()); -} - -QVariant PythonQtWrapper_QGraphicsWidget::propertyChange(QGraphicsWidget* theWrappedObject, const QString& propertyName, const QVariant& value) -{ - return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_propertyChange(propertyName, value)); -} - -QRectF PythonQtWrapper_QGraphicsWidget::rect(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -void PythonQtWrapper_QGraphicsWidget::releaseShortcut(QGraphicsWidget* theWrappedObject, int id) -{ - ( theWrappedObject->releaseShortcut(id)); -} - -void PythonQtWrapper_QGraphicsWidget::removeAction(QGraphicsWidget* theWrappedObject, QAction* action) -{ - ( theWrappedObject->removeAction(action)); -} - -void PythonQtWrapper_QGraphicsWidget::resize(QGraphicsWidget* theWrappedObject, const QSizeF& size) -{ - ( theWrappedObject->resize(size)); -} - -void PythonQtWrapper_QGraphicsWidget::resize(QGraphicsWidget* theWrappedObject, qreal w, qreal h) -{ - ( theWrappedObject->resize(w, h)); -} - -void PythonQtWrapper_QGraphicsWidget::resizeEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::setAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute, bool on) -{ - ( theWrappedObject->setAttribute(attribute, on)); -} - -void PythonQtWrapper_QGraphicsWidget::setContentsMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom) -{ - ( theWrappedObject->setContentsMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QGraphicsWidget::setFocusPolicy(QGraphicsWidget* theWrappedObject, Qt::FocusPolicy policy) -{ - ( theWrappedObject->setFocusPolicy(policy)); -} - -void PythonQtWrapper_QGraphicsWidget::setFont(QGraphicsWidget* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QGraphicsWidget::setGeometry(QGraphicsWidget* theWrappedObject, const QRectF& rect) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_setGeometry(rect)); -} - -void PythonQtWrapper_QGraphicsWidget::setGeometry(QGraphicsWidget* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->setGeometry(x, y, w, h)); -} - -void PythonQtWrapper_QGraphicsWidget::setLayout(QGraphicsWidget* theWrappedObject, QGraphicsLayout* layout) -{ - ( theWrappedObject->setLayout(layout)); -} - -void PythonQtWrapper_QGraphicsWidget::setLayoutDirection(QGraphicsWidget* theWrappedObject, Qt::LayoutDirection direction) -{ - ( theWrappedObject->setLayoutDirection(direction)); -} - -void PythonQtWrapper_QGraphicsWidget::setPalette(QGraphicsWidget* theWrappedObject, const QPalette& palette) -{ - ( theWrappedObject->setPalette(palette)); -} - -void PythonQtWrapper_QGraphicsWidget::setShortcutAutoRepeat(QGraphicsWidget* theWrappedObject, int id, bool enabled) -{ - ( theWrappedObject->setShortcutAutoRepeat(id, enabled)); -} - -void PythonQtWrapper_QGraphicsWidget::setShortcutEnabled(QGraphicsWidget* theWrappedObject, int id, bool enabled) -{ - ( theWrappedObject->setShortcutEnabled(id, enabled)); -} - -void PythonQtWrapper_QGraphicsWidget::setStyle(QGraphicsWidget* theWrappedObject, QStyle* style) -{ - ( theWrappedObject->setStyle(style)); -} - -void PythonQtWrapper_QGraphicsWidget::static_QGraphicsWidget_setTabOrder(QGraphicsWidget* first, QGraphicsWidget* second) -{ - (QGraphicsWidget::setTabOrder(first, second)); -} - -void PythonQtWrapper_QGraphicsWidget::setWindowFlags(QGraphicsWidget* theWrappedObject, Qt::WindowFlags wFlags) -{ - ( theWrappedObject->setWindowFlags(wFlags)); -} - -void PythonQtWrapper_QGraphicsWidget::setWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom) -{ - ( theWrappedObject->setWindowFrameMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QGraphicsWidget::setWindowTitle(QGraphicsWidget* theWrappedObject, const QString& title) -{ - ( theWrappedObject->setWindowTitle(title)); -} - -QPainterPath PythonQtWrapper_QGraphicsWidget::shape(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -void PythonQtWrapper_QGraphicsWidget::showEvent(QGraphicsWidget* theWrappedObject, QShowEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_showEvent(event)); -} - -QSizeF PythonQtWrapper_QGraphicsWidget::size(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QSizeF PythonQtWrapper_QGraphicsWidget::sizeHint(QGraphicsWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_sizeHint(which, constraint)); -} - -QStyle* PythonQtWrapper_QGraphicsWidget::style(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - -bool PythonQtWrapper_QGraphicsWidget::testAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute) const -{ - return ( theWrappedObject->testAttribute(attribute)); -} - -int PythonQtWrapper_QGraphicsWidget::type(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -void PythonQtWrapper_QGraphicsWidget::ungrabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_ungrabKeyboardEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::ungrabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_ungrabMouseEvent(event)); -} - -void PythonQtWrapper_QGraphicsWidget::unsetLayoutDirection(QGraphicsWidget* theWrappedObject) -{ - ( theWrappedObject->unsetLayoutDirection()); -} - -void PythonQtWrapper_QGraphicsWidget::unsetWindowFrameMargins(QGraphicsWidget* theWrappedObject) -{ - ( theWrappedObject->unsetWindowFrameMargins()); -} - -void PythonQtWrapper_QGraphicsWidget::updateGeometry(QGraphicsWidget* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_updateGeometry()); -} - -Qt::WindowFlags PythonQtWrapper_QGraphicsWidget::windowFlags(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowFlags()); -} - -bool PythonQtWrapper_QGraphicsWidget::windowFrameEvent(QGraphicsWidget* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_windowFrameEvent(e)); -} - -QRectF PythonQtWrapper_QGraphicsWidget::windowFrameGeometry(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowFrameGeometry()); -} - -QRectF PythonQtWrapper_QGraphicsWidget::windowFrameRect(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowFrameRect()); -} - -Qt::WindowFrameSection PythonQtWrapper_QGraphicsWidget::windowFrameSectionAt(QGraphicsWidget* theWrappedObject, const QPointF& pos) const -{ - return ( ((PythonQtPublicPromoter_QGraphicsWidget*)theWrappedObject)->promoted_windowFrameSectionAt(pos)); -} - -QString PythonQtWrapper_QGraphicsWidget::windowTitle(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowTitle()); -} - -Qt::WindowType PythonQtWrapper_QGraphicsWidget::windowType(QGraphicsWidget* theWrappedObject) const -{ - return ( theWrappedObject->windowType()); -} - - - -void PythonQtShell_QGridLayout::addItem(QLayoutItem* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QLayoutItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGridLayout::addItem(arg__1); -} -void PythonQtShell_QGridLayout::childEvent(QChildEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGridLayout::childEvent(e); -} -int PythonQtShell_QGridLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::count(); -} -void PythonQtShell_QGridLayout::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGridLayout::customEvent(arg__1); -} -bool PythonQtShell_QGridLayout::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::event(arg__1); -} -bool PythonQtShell_QGridLayout::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::eventFilter(arg__1, arg__2); -} -Qt::Orientations PythonQtShell_QGridLayout::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::expandingDirections(); -} -QRect PythonQtShell_QGridLayout::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::geometry(); -} -int PythonQtShell_QGridLayout::indexOf(QWidget* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::indexOf(arg__1); -} -void PythonQtShell_QGridLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGridLayout::invalidate(); -} -bool PythonQtShell_QGridLayout::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::isEmpty(); -} -QLayoutItem* PythonQtShell_QGridLayout::itemAt(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::itemAt(index); -} -QLayout* PythonQtShell_QGridLayout::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::layout(); -} -QSize PythonQtShell_QGridLayout::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::maximumSize(); -} -QSize PythonQtShell_QGridLayout::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::minimumSize(); -} -void PythonQtShell_QGridLayout::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGridLayout::setGeometry(arg__1); -} -QLayoutItem* PythonQtShell_QGridLayout::takeAt(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGridLayout::takeAt(index); -} -void PythonQtShell_QGridLayout::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGridLayout::timerEvent(arg__1); -} -QGridLayout* PythonQtWrapper_QGridLayout::new_QGridLayout() -{ -return new PythonQtShell_QGridLayout(); } - -QGridLayout* PythonQtWrapper_QGridLayout::new_QGridLayout(QWidget* parent) -{ -return new PythonQtShell_QGridLayout(parent); } - -void PythonQtWrapper_QGridLayout::addItem(QGridLayout* theWrappedObject, QLayoutItem* arg__1) -{ - ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_addItem(arg__1)); -} - -void PythonQtWrapper_QGridLayout::addItem(QGridLayout* theWrappedObject, QLayoutItem* item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6) -{ - ( theWrappedObject->addItem(item, row, column, rowSpan, columnSpan, arg__6)); -} - -void PythonQtWrapper_QGridLayout::addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, Qt::Alignment arg__4) -{ - ( theWrappedObject->addLayout(arg__1, row, column, arg__4)); -} - -void PythonQtWrapper_QGridLayout::addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6) -{ - ( theWrappedObject->addLayout(arg__1, row, column, rowSpan, columnSpan, arg__6)); -} - -void PythonQtWrapper_QGridLayout::addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, Qt::Alignment arg__4) -{ - ( theWrappedObject->addWidget(arg__1, row, column, arg__4)); -} - -void PythonQtWrapper_QGridLayout::addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6) -{ - ( theWrappedObject->addWidget(arg__1, row, column, rowSpan, columnSpan, arg__6)); -} - -QRect PythonQtWrapper_QGridLayout::cellRect(QGridLayout* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->cellRect(row, column)); -} - -int PythonQtWrapper_QGridLayout::columnCount(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->columnCount()); -} - -int PythonQtWrapper_QGridLayout::columnMinimumWidth(QGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnMinimumWidth(column)); -} - -int PythonQtWrapper_QGridLayout::columnStretch(QGridLayout* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnStretch(column)); -} - -int PythonQtWrapper_QGridLayout::count(QGridLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_count()); -} - -Qt::Orientations PythonQtWrapper_QGridLayout::expandingDirections(QGridLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_expandingDirections()); -} - -void PythonQtWrapper_QGridLayout::getItemPosition(QGridLayout* theWrappedObject, int idx, int* row, int* column, int* rowSpan, int* columnSpan) -{ - ( theWrappedObject->getItemPosition(idx, row, column, rowSpan, columnSpan)); -} - -bool PythonQtWrapper_QGridLayout::hasHeightForWidth(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->hasHeightForWidth()); -} - -int PythonQtWrapper_QGridLayout::heightForWidth(QGridLayout* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->heightForWidth(arg__1)); -} - -int PythonQtWrapper_QGridLayout::horizontalSpacing(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->horizontalSpacing()); -} - -void PythonQtWrapper_QGridLayout::invalidate(QGridLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_invalidate()); -} - -QLayoutItem* PythonQtWrapper_QGridLayout::itemAt(QGridLayout* theWrappedObject, int index) const -{ - return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_itemAt(index)); -} - -QLayoutItem* PythonQtWrapper_QGridLayout::itemAtPosition(QGridLayout* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->itemAtPosition(row, column)); -} - -QSize PythonQtWrapper_QGridLayout::maximumSize(QGridLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_maximumSize()); -} - -int PythonQtWrapper_QGridLayout::minimumHeightForWidth(QGridLayout* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->minimumHeightForWidth(arg__1)); -} - -QSize PythonQtWrapper_QGridLayout::minimumSize(QGridLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_minimumSize()); -} - -Qt::Corner PythonQtWrapper_QGridLayout::originCorner(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->originCorner()); -} - -int PythonQtWrapper_QGridLayout::rowCount(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->rowCount()); -} - -int PythonQtWrapper_QGridLayout::rowMinimumHeight(QGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowMinimumHeight(row)); -} - -int PythonQtWrapper_QGridLayout::rowStretch(QGridLayout* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowStretch(row)); -} - -void PythonQtWrapper_QGridLayout::setColumnMinimumWidth(QGridLayout* theWrappedObject, int column, int minSize) -{ - ( theWrappedObject->setColumnMinimumWidth(column, minSize)); -} - -void PythonQtWrapper_QGridLayout::setColumnStretch(QGridLayout* theWrappedObject, int column, int stretch) -{ - ( theWrappedObject->setColumnStretch(column, stretch)); -} - -void PythonQtWrapper_QGridLayout::setDefaultPositioning(QGridLayout* theWrappedObject, int n, Qt::Orientation orient) -{ - ( theWrappedObject->setDefaultPositioning(n, orient)); -} - -void PythonQtWrapper_QGridLayout::setGeometry(QGridLayout* theWrappedObject, const QRect& arg__1) -{ - ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_setGeometry(arg__1)); -} - -void PythonQtWrapper_QGridLayout::setHorizontalSpacing(QGridLayout* theWrappedObject, int spacing) -{ - ( theWrappedObject->setHorizontalSpacing(spacing)); -} - -void PythonQtWrapper_QGridLayout::setOriginCorner(QGridLayout* theWrappedObject, Qt::Corner arg__1) -{ - ( theWrappedObject->setOriginCorner(arg__1)); -} - -void PythonQtWrapper_QGridLayout::setRowMinimumHeight(QGridLayout* theWrappedObject, int row, int minSize) -{ - ( theWrappedObject->setRowMinimumHeight(row, minSize)); -} - -void PythonQtWrapper_QGridLayout::setRowStretch(QGridLayout* theWrappedObject, int row, int stretch) -{ - ( theWrappedObject->setRowStretch(row, stretch)); -} - -void PythonQtWrapper_QGridLayout::setSpacing(QGridLayout* theWrappedObject, int spacing) -{ - ( theWrappedObject->setSpacing(spacing)); -} - -void PythonQtWrapper_QGridLayout::setVerticalSpacing(QGridLayout* theWrappedObject, int spacing) -{ - ( theWrappedObject->setVerticalSpacing(spacing)); -} - -QSize PythonQtWrapper_QGridLayout::sizeHint(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QGridLayout::spacing(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->spacing()); -} - -QLayoutItem* PythonQtWrapper_QGridLayout::takeAt(QGridLayout* theWrappedObject, int index) -{ - return ( ((PythonQtPublicPromoter_QGridLayout*)theWrappedObject)->promoted_takeAt(index)); -} - -int PythonQtWrapper_QGridLayout::verticalSpacing(QGridLayout* theWrappedObject) const -{ - return ( theWrappedObject->verticalSpacing()); -} - - - -void PythonQtShell_QGroupBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::actionEvent(arg__1); -} -void PythonQtShell_QGroupBox::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::changeEvent(event); -} -void PythonQtShell_QGroupBox::childEvent(QChildEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::childEvent(event); -} -void PythonQtShell_QGroupBox::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::closeEvent(arg__1); -} -void PythonQtShell_QGroupBox::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::contextMenuEvent(arg__1); -} -void PythonQtShell_QGroupBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::customEvent(arg__1); -} -int PythonQtShell_QGroupBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::devType(); -} -void PythonQtShell_QGroupBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QGroupBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QGroupBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QGroupBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::dropEvent(arg__1); -} -void PythonQtShell_QGroupBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::enterEvent(arg__1); -} -bool PythonQtShell_QGroupBox::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::event(event); -} -bool PythonQtShell_QGroupBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QGroupBox::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGroupBox::focusInEvent(event); -} -bool PythonQtShell_QGroupBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::focusNextPrevChild(next); -} -void PythonQtShell_QGroupBox::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::focusOutEvent(arg__1); -} -int PythonQtShell_QGroupBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::heightForWidth(arg__1); -} -void PythonQtShell_QGroupBox::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::hideEvent(arg__1); -} -void PythonQtShell_QGroupBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QGroupBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QGroupBox::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::keyPressEvent(arg__1); -} -void PythonQtShell_QGroupBox::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::keyReleaseEvent(arg__1); -} -void PythonQtShell_QGroupBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::languageChange(); -} -void PythonQtShell_QGroupBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::leaveEvent(arg__1); -} -int PythonQtShell_QGroupBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::metric(arg__1); -} -void PythonQtShell_QGroupBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QGroupBox::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGroupBox::mouseMoveEvent(event); -} -void PythonQtShell_QGroupBox::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGroupBox::mousePressEvent(event); -} -void PythonQtShell_QGroupBox::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGroupBox::mouseReleaseEvent(event); -} -void PythonQtShell_QGroupBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QGroupBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::paintEngine(); -} -void PythonQtShell_QGroupBox::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGroupBox::paintEvent(event); -} -void PythonQtShell_QGroupBox::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QGroupBox::resizeEvent(event); -} -void PythonQtShell_QGroupBox::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::showEvent(arg__1); -} -QSize PythonQtShell_QGroupBox::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QGroupBox::sizeHint(); -} -void PythonQtShell_QGroupBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::tabletEvent(arg__1); -} -void PythonQtShell_QGroupBox::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::timerEvent(arg__1); -} -void PythonQtShell_QGroupBox::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QGroupBox::wheelEvent(arg__1); -} -QGroupBox* PythonQtWrapper_QGroupBox::new_QGroupBox(QWidget* parent) -{ -return new PythonQtShell_QGroupBox(parent); } - -QGroupBox* PythonQtWrapper_QGroupBox::new_QGroupBox(const QString& title, QWidget* parent) -{ -return new PythonQtShell_QGroupBox(title, parent); } - -Qt::Alignment PythonQtWrapper_QGroupBox::alignment(QGroupBox* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -void PythonQtWrapper_QGroupBox::changeEvent(QGroupBox* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_changeEvent(event)); -} - -void PythonQtWrapper_QGroupBox::childEvent(QGroupBox* theWrappedObject, QChildEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_childEvent(event)); -} - -bool PythonQtWrapper_QGroupBox::event(QGroupBox* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QGroupBox::focusInEvent(QGroupBox* theWrappedObject, QFocusEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_focusInEvent(event)); -} - -bool PythonQtWrapper_QGroupBox::isCheckable(QGroupBox* theWrappedObject) const -{ - return ( theWrappedObject->isCheckable()); -} - -bool PythonQtWrapper_QGroupBox::isChecked(QGroupBox* theWrappedObject) const -{ - return ( theWrappedObject->isChecked()); -} - -bool PythonQtWrapper_QGroupBox::isFlat(QGroupBox* theWrappedObject) const -{ - return ( theWrappedObject->isFlat()); -} - -QSize PythonQtWrapper_QGroupBox::minimumSizeHint(QGroupBox* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QGroupBox::mouseMoveEvent(QGroupBox* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_mouseMoveEvent(event)); -} - -void PythonQtWrapper_QGroupBox::mousePressEvent(QGroupBox* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_mousePressEvent(event)); -} - -void PythonQtWrapper_QGroupBox::mouseReleaseEvent(QGroupBox* theWrappedObject, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_mouseReleaseEvent(event)); -} - -void PythonQtWrapper_QGroupBox::paintEvent(QGroupBox* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_paintEvent(event)); -} - -void PythonQtWrapper_QGroupBox::resizeEvent(QGroupBox* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QGroupBox*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QGroupBox::setAlignment(QGroupBox* theWrappedObject, int alignment) -{ - ( theWrappedObject->setAlignment(alignment)); -} - -void PythonQtWrapper_QGroupBox::setCheckable(QGroupBox* theWrappedObject, bool checkable) -{ - ( theWrappedObject->setCheckable(checkable)); -} - -void PythonQtWrapper_QGroupBox::setFlat(QGroupBox* theWrappedObject, bool flat) -{ - ( theWrappedObject->setFlat(flat)); -} - -void PythonQtWrapper_QGroupBox::setTitle(QGroupBox* theWrappedObject, const QString& title) -{ - ( theWrappedObject->setTitle(title)); -} - -QString PythonQtWrapper_QGroupBox::title(QGroupBox* theWrappedObject) const -{ - return ( theWrappedObject->title()); -} - - - -void PythonQtShell_QHBoxLayout::addItem(QLayoutItem* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QLayoutItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHBoxLayout::addItem(arg__1); -} -void PythonQtShell_QHBoxLayout::childEvent(QChildEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHBoxLayout::childEvent(e); -} -int PythonQtShell_QHBoxLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::count(); -} -void PythonQtShell_QHBoxLayout::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHBoxLayout::customEvent(arg__1); -} -bool PythonQtShell_QHBoxLayout::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::event(arg__1); -} -bool PythonQtShell_QHBoxLayout::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::eventFilter(arg__1, arg__2); -} -Qt::Orientations PythonQtShell_QHBoxLayout::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::expandingDirections(); -} -QRect PythonQtShell_QHBoxLayout::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::geometry(); -} -int PythonQtShell_QHBoxLayout::indexOf(QWidget* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::indexOf(arg__1); -} -void PythonQtShell_QHBoxLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHBoxLayout::invalidate(); -} -bool PythonQtShell_QHBoxLayout::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::isEmpty(); -} -QLayoutItem* PythonQtShell_QHBoxLayout::itemAt(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::itemAt(arg__1); -} -QLayout* PythonQtShell_QHBoxLayout::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::layout(); -} -QSize PythonQtShell_QHBoxLayout::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::maximumSize(); -} -QSize PythonQtShell_QHBoxLayout::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::minimumSize(); -} -void PythonQtShell_QHBoxLayout::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHBoxLayout::setGeometry(arg__1); -} -QLayoutItem* PythonQtShell_QHBoxLayout::takeAt(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHBoxLayout::takeAt(arg__1); -} -void PythonQtShell_QHBoxLayout::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHBoxLayout::timerEvent(arg__1); -} -QHBoxLayout* PythonQtWrapper_QHBoxLayout::new_QHBoxLayout() -{ -return new PythonQtShell_QHBoxLayout(); } - -QHBoxLayout* PythonQtWrapper_QHBoxLayout::new_QHBoxLayout(QWidget* parent) -{ -return new PythonQtShell_QHBoxLayout(parent); } - - - -void PythonQtShell_QHeaderView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::actionEvent(arg__1); -} -void PythonQtShell_QHeaderView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::changeEvent(arg__1); -} -void PythonQtShell_QHeaderView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::childEvent(arg__1); -} -void PythonQtShell_QHeaderView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::closeEditor(editor, hint); -} -void PythonQtShell_QHeaderView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::closeEvent(arg__1); -} -void PythonQtShell_QHeaderView::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::commitData(editor); -} -void PythonQtShell_QHeaderView::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::contextMenuEvent(arg__1); -} -void PythonQtShell_QHeaderView::currentChanged(const QModelIndex& current, const QModelIndex& old) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&old}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::currentChanged(current, old); -} -void PythonQtShell_QHeaderView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::customEvent(arg__1); -} -void PythonQtShell_QHeaderView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QHeaderView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::devType(); -} -void PythonQtShell_QHeaderView::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::doItemsLayout(); -} -void PythonQtShell_QHeaderView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QHeaderView::dragEnterEvent(event); -} -void PythonQtShell_QHeaderView::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QHeaderView::dragLeaveEvent(event); -} -void PythonQtShell_QHeaderView::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QHeaderView::dragMoveEvent(event); -} -void PythonQtShell_QHeaderView::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QHeaderView::dropEvent(event); -} -bool PythonQtShell_QHeaderView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::edit(index, trigger, event); -} -void PythonQtShell_QHeaderView::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::editorDestroyed(editor); -} -void PythonQtShell_QHeaderView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::enterEvent(arg__1); -} -bool PythonQtShell_QHeaderView::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::event(e); -} -bool PythonQtShell_QHeaderView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QHeaderView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QHeaderView::focusInEvent(event); -} -bool PythonQtShell_QHeaderView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::focusNextPrevChild(next); -} -void PythonQtShell_QHeaderView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QHeaderView::focusOutEvent(event); -} -int PythonQtShell_QHeaderView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::heightForWidth(arg__1); -} -void PythonQtShell_QHeaderView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::hideEvent(arg__1); -} -int PythonQtShell_QHeaderView::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::horizontalOffset(); -} -void PythonQtShell_QHeaderView::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::horizontalScrollbarAction(action); -} -void PythonQtShell_QHeaderView::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QHeaderView::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::indexAt(p); -} -void PythonQtShell_QHeaderView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QHeaderView::inputMethodEvent(event); -} -QVariant PythonQtShell_QHeaderView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::inputMethodQuery(query); -} -bool PythonQtShell_QHeaderView::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::isIndexHidden(index); -} -void PythonQtShell_QHeaderView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QHeaderView::keyPressEvent(event); -} -void PythonQtShell_QHeaderView::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::keyReleaseEvent(arg__1); -} -void PythonQtShell_QHeaderView::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::keyboardSearch(search); -} -void PythonQtShell_QHeaderView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::languageChange(); -} -void PythonQtShell_QHeaderView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::leaveEvent(arg__1); -} -int PythonQtShell_QHeaderView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::metric(arg__1); -} -void PythonQtShell_QHeaderView::mouseDoubleClickEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::mouseDoubleClickEvent(e); -} -void PythonQtShell_QHeaderView::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::mouseMoveEvent(e); -} -void PythonQtShell_QHeaderView::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::mousePressEvent(e); -} -void PythonQtShell_QHeaderView::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::mouseReleaseEvent(e); -} -void PythonQtShell_QHeaderView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QHeaderView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::paintEngine(); -} -void PythonQtShell_QHeaderView::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::paintEvent(e); -} -void PythonQtShell_QHeaderView::paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintSection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&rect, (void*)&logicalIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::paintSection(painter, rect, logicalIndex); -} -void PythonQtShell_QHeaderView::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::reset(); -} -void PythonQtShell_QHeaderView::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QHeaderView::resizeEvent(event); -} -void PythonQtShell_QHeaderView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QHeaderView::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::rowsInserted(parent, start, end); -} -void PythonQtShell_QHeaderView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QHeaderView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QHeaderView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::scrollTo(index, hint); -} -QSize PythonQtShell_QHeaderView::sectionSizeFromContents(int logicalIndex) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sectionSizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&logicalIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sectionSizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::sectionSizeFromContents(logicalIndex); -} -void PythonQtShell_QHeaderView::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::selectAll(); -} -QList PythonQtShell_QHeaderView::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::selectedIndexes(); -} -void PythonQtShell_QHeaderView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QHeaderView::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::selectionCommand(index, event); -} -void PythonQtShell_QHeaderView::setModel(QAbstractItemModel* model) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractItemModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&model}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::setModel(model); -} -void PythonQtShell_QHeaderView::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::setRootIndex(index); -} -void PythonQtShell_QHeaderView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags flags) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::setSelection(rect, flags); -} -void PythonQtShell_QHeaderView::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::setSelectionModel(selectionModel); -} -void PythonQtShell_QHeaderView::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::showEvent(arg__1); -} -int PythonQtShell_QHeaderView::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::sizeHintForColumn(column); -} -int PythonQtShell_QHeaderView::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::sizeHintForRow(row); -} -void PythonQtShell_QHeaderView::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::startDrag(supportedActions); -} -void PythonQtShell_QHeaderView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::tabletEvent(arg__1); -} -void PythonQtShell_QHeaderView::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::timerEvent(event); -} -void PythonQtShell_QHeaderView::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::updateEditorData(); -} -void PythonQtShell_QHeaderView::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::updateEditorGeometries(); -} -void PythonQtShell_QHeaderView::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::updateGeometries(); -} -int PythonQtShell_QHeaderView::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::verticalOffset(); -} -void PythonQtShell_QHeaderView::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::verticalScrollbarAction(action); -} -void PythonQtShell_QHeaderView::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QHeaderView::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::viewOptions(); -} -bool PythonQtShell_QHeaderView::viewportEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::viewportEvent(e); -} -QRect PythonQtShell_QHeaderView::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::visualRect(index); -} -QRegion PythonQtShell_QHeaderView::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHeaderView::visualRegionForSelection(selection); -} -void PythonQtShell_QHeaderView::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHeaderView::wheelEvent(arg__1); -} -QHeaderView* PythonQtWrapper_QHeaderView::new_QHeaderView(Qt::Orientation orientation, QWidget* parent) -{ -return new PythonQtShell_QHeaderView(orientation, parent); } - -bool PythonQtWrapper_QHeaderView::cascadingSectionResizes(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->cascadingSectionResizes()); -} - -int PythonQtWrapper_QHeaderView::count(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -void PythonQtWrapper_QHeaderView::currentChanged(QHeaderView* theWrappedObject, const QModelIndex& current, const QModelIndex& old) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_currentChanged(current, old)); -} - -void PythonQtWrapper_QHeaderView::dataChanged(QHeaderView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_dataChanged(topLeft, bottomRight)); -} - -Qt::Alignment PythonQtWrapper_QHeaderView::defaultAlignment(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->defaultAlignment()); -} - -int PythonQtWrapper_QHeaderView::defaultSectionSize(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->defaultSectionSize()); -} - -void PythonQtWrapper_QHeaderView::doItemsLayout(QHeaderView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_doItemsLayout()); -} - -bool PythonQtWrapper_QHeaderView::event(QHeaderView* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_event(e)); -} - -int PythonQtWrapper_QHeaderView::hiddenSectionCount(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->hiddenSectionCount()); -} - -void PythonQtWrapper_QHeaderView::hideSection(QHeaderView* theWrappedObject, int logicalIndex) -{ - ( theWrappedObject->hideSection(logicalIndex)); -} - -bool PythonQtWrapper_QHeaderView::highlightSections(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->highlightSections()); -} - -int PythonQtWrapper_QHeaderView::horizontalOffset(QHeaderView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_horizontalOffset()); -} - -QModelIndex PythonQtWrapper_QHeaderView::indexAt(QHeaderView* theWrappedObject, const QPoint& p) const -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_indexAt(p)); -} - -bool PythonQtWrapper_QHeaderView::isClickable(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->isClickable()); -} - -bool PythonQtWrapper_QHeaderView::isIndexHidden(QHeaderView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_isIndexHidden(index)); -} - -bool PythonQtWrapper_QHeaderView::isMovable(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->isMovable()); -} - -bool PythonQtWrapper_QHeaderView::isSectionHidden(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( theWrappedObject->isSectionHidden(logicalIndex)); -} - -bool PythonQtWrapper_QHeaderView::isSortIndicatorShown(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->isSortIndicatorShown()); -} - -int PythonQtWrapper_QHeaderView::length(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -int PythonQtWrapper_QHeaderView::logicalIndex(QHeaderView* theWrappedObject, int visualIndex) const -{ - return ( theWrappedObject->logicalIndex(visualIndex)); -} - -int PythonQtWrapper_QHeaderView::logicalIndexAt(QHeaderView* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->logicalIndexAt(pos)); -} - -int PythonQtWrapper_QHeaderView::logicalIndexAt(QHeaderView* theWrappedObject, int position) const -{ - return ( theWrappedObject->logicalIndexAt(position)); -} - -int PythonQtWrapper_QHeaderView::logicalIndexAt(QHeaderView* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->logicalIndexAt(x, y)); -} - -int PythonQtWrapper_QHeaderView::minimumSectionSize(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->minimumSectionSize()); -} - -void PythonQtWrapper_QHeaderView::mouseDoubleClickEvent(QHeaderView* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mouseDoubleClickEvent(e)); -} - -void PythonQtWrapper_QHeaderView::mouseMoveEvent(QHeaderView* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mouseMoveEvent(e)); -} - -void PythonQtWrapper_QHeaderView::mousePressEvent(QHeaderView* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mousePressEvent(e)); -} - -void PythonQtWrapper_QHeaderView::mouseReleaseEvent(QHeaderView* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_mouseReleaseEvent(e)); -} - -void PythonQtWrapper_QHeaderView::moveSection(QHeaderView* theWrappedObject, int from, int to) -{ - ( theWrappedObject->moveSection(from, to)); -} - -int PythonQtWrapper_QHeaderView::offset(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->offset()); -} - -Qt::Orientation PythonQtWrapper_QHeaderView::orientation(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QHeaderView::paintEvent(QHeaderView* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_paintEvent(e)); -} - -void PythonQtWrapper_QHeaderView::paintSection(QHeaderView* theWrappedObject, QPainter* painter, const QRect& rect, int logicalIndex) const -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_paintSection(painter, rect, logicalIndex)); -} - -void PythonQtWrapper_QHeaderView::reset(QHeaderView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_reset()); -} - -QHeaderView::ResizeMode PythonQtWrapper_QHeaderView::resizeMode(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( theWrappedObject->resizeMode(logicalIndex)); -} - -void PythonQtWrapper_QHeaderView::resizeSection(QHeaderView* theWrappedObject, int logicalIndex, int size) -{ - ( theWrappedObject->resizeSection(logicalIndex, size)); -} - -void PythonQtWrapper_QHeaderView::resizeSections(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode) -{ - ( theWrappedObject->resizeSections(mode)); -} - -bool PythonQtWrapper_QHeaderView::restoreState(QHeaderView* theWrappedObject, const QByteArray& state) -{ - return ( theWrappedObject->restoreState(state)); -} - -void PythonQtWrapper_QHeaderView::rowsInserted(QHeaderView* theWrappedObject, const QModelIndex& parent, int start, int end) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); -} - -QByteArray PythonQtWrapper_QHeaderView::saveState(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->saveState()); -} - -void PythonQtWrapper_QHeaderView::scrollContentsBy(QHeaderView* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QHeaderView::scrollTo(QHeaderView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_scrollTo(index, hint)); -} - -int PythonQtWrapper_QHeaderView::sectionPosition(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( theWrappedObject->sectionPosition(logicalIndex)); -} - -int PythonQtWrapper_QHeaderView::sectionSize(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( theWrappedObject->sectionSize(logicalIndex)); -} - -QSize PythonQtWrapper_QHeaderView::sectionSizeFromContents(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_sectionSizeFromContents(logicalIndex)); -} - -int PythonQtWrapper_QHeaderView::sectionSizeHint(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( theWrappedObject->sectionSizeHint(logicalIndex)); -} - -int PythonQtWrapper_QHeaderView::sectionViewportPosition(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( theWrappedObject->sectionViewportPosition(logicalIndex)); -} - -bool PythonQtWrapper_QHeaderView::sectionsHidden(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->sectionsHidden()); -} - -bool PythonQtWrapper_QHeaderView::sectionsMoved(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->sectionsMoved()); -} - -void PythonQtWrapper_QHeaderView::setCascadingSectionResizes(QHeaderView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setCascadingSectionResizes(enable)); -} - -void PythonQtWrapper_QHeaderView::setClickable(QHeaderView* theWrappedObject, bool clickable) -{ - ( theWrappedObject->setClickable(clickable)); -} - -void PythonQtWrapper_QHeaderView::setDefaultAlignment(QHeaderView* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setDefaultAlignment(alignment)); -} - -void PythonQtWrapper_QHeaderView::setDefaultSectionSize(QHeaderView* theWrappedObject, int size) -{ - ( theWrappedObject->setDefaultSectionSize(size)); -} - -void PythonQtWrapper_QHeaderView::setHighlightSections(QHeaderView* theWrappedObject, bool highlight) -{ - ( theWrappedObject->setHighlightSections(highlight)); -} - -void PythonQtWrapper_QHeaderView::setMinimumSectionSize(QHeaderView* theWrappedObject, int size) -{ - ( theWrappedObject->setMinimumSectionSize(size)); -} - -void PythonQtWrapper_QHeaderView::setModel(QHeaderView* theWrappedObject, QAbstractItemModel* model) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_setModel(model)); -} - -void PythonQtWrapper_QHeaderView::setMovable(QHeaderView* theWrappedObject, bool movable) -{ - ( theWrappedObject->setMovable(movable)); -} - -void PythonQtWrapper_QHeaderView::setResizeMode(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode) -{ - ( theWrappedObject->setResizeMode(mode)); -} - -void PythonQtWrapper_QHeaderView::setResizeMode(QHeaderView* theWrappedObject, int logicalIndex, QHeaderView::ResizeMode mode) -{ - ( theWrappedObject->setResizeMode(logicalIndex, mode)); -} - -void PythonQtWrapper_QHeaderView::setSectionHidden(QHeaderView* theWrappedObject, int logicalIndex, bool hide) -{ - ( theWrappedObject->setSectionHidden(logicalIndex, hide)); -} - -void PythonQtWrapper_QHeaderView::setSelection(QHeaderView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags flags) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_setSelection(rect, flags)); -} - -void PythonQtWrapper_QHeaderView::setSortIndicator(QHeaderView* theWrappedObject, int logicalIndex, Qt::SortOrder order) -{ - ( theWrappedObject->setSortIndicator(logicalIndex, order)); -} - -void PythonQtWrapper_QHeaderView::setSortIndicatorShown(QHeaderView* theWrappedObject, bool show) -{ - ( theWrappedObject->setSortIndicatorShown(show)); -} - -void PythonQtWrapper_QHeaderView::setStretchLastSection(QHeaderView* theWrappedObject, bool stretch) -{ - ( theWrappedObject->setStretchLastSection(stretch)); -} - -void PythonQtWrapper_QHeaderView::showSection(QHeaderView* theWrappedObject, int logicalIndex) -{ - ( theWrappedObject->showSection(logicalIndex)); -} - -QSize PythonQtWrapper_QHeaderView::sizeHint(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -Qt::SortOrder PythonQtWrapper_QHeaderView::sortIndicatorOrder(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->sortIndicatorOrder()); -} - -int PythonQtWrapper_QHeaderView::sortIndicatorSection(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->sortIndicatorSection()); -} - -bool PythonQtWrapper_QHeaderView::stretchLastSection(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->stretchLastSection()); -} - -int PythonQtWrapper_QHeaderView::stretchSectionCount(QHeaderView* theWrappedObject) const -{ - return ( theWrappedObject->stretchSectionCount()); -} - -void PythonQtWrapper_QHeaderView::swapSections(QHeaderView* theWrappedObject, int first, int second) -{ - ( theWrappedObject->swapSections(first, second)); -} - -void PythonQtWrapper_QHeaderView::updateGeometries(QHeaderView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_updateGeometries()); -} - -int PythonQtWrapper_QHeaderView::verticalOffset(QHeaderView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_verticalOffset()); -} - -bool PythonQtWrapper_QHeaderView::viewportEvent(QHeaderView* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_viewportEvent(e)); -} - -int PythonQtWrapper_QHeaderView::visualIndex(QHeaderView* theWrappedObject, int logicalIndex) const -{ - return ( theWrappedObject->visualIndex(logicalIndex)); -} - -int PythonQtWrapper_QHeaderView::visualIndexAt(QHeaderView* theWrappedObject, int position) const -{ - return ( theWrappedObject->visualIndexAt(position)); -} - -QRect PythonQtWrapper_QHeaderView::visualRect(QHeaderView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_visualRect(index)); -} - -QRegion PythonQtWrapper_QHeaderView::visualRegionForSelection(QHeaderView* theWrappedObject, const QItemSelection& selection) const -{ - return ( ((PythonQtPublicPromoter_QHeaderView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); -} - - - -QHelpEvent* PythonQtWrapper_QHelpEvent::new_QHelpEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos) -{ -return new QHelpEvent(type, pos, globalPos); } - -const QPoint* PythonQtWrapper_QHelpEvent::globalPos(QHelpEvent* theWrappedObject) const -{ - return &( theWrappedObject->globalPos()); -} - -int PythonQtWrapper_QHelpEvent::globalX(QHelpEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalX()); -} - -int PythonQtWrapper_QHelpEvent::globalY(QHelpEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalY()); -} - -const QPoint* PythonQtWrapper_QHelpEvent::pos(QHelpEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - -int PythonQtWrapper_QHelpEvent::x(QHelpEvent* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QHelpEvent::y(QHelpEvent* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - - - -QHideEvent* PythonQtWrapper_QHideEvent::new_QHideEvent() -{ -return new QHideEvent(); } - - - -QHoverEvent* PythonQtWrapper_QHoverEvent::new_QHoverEvent(QEvent::Type type, const QPoint& pos, const QPoint& oldPos) -{ -return new PythonQtShell_QHoverEvent(type, pos, oldPos); } - -const QPoint* PythonQtWrapper_QHoverEvent::oldPos(QHoverEvent* theWrappedObject) const -{ - return &( theWrappedObject->oldPos()); -} - -const QPoint* PythonQtWrapper_QHoverEvent::pos(QHoverEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - - - -QIconDragEvent* PythonQtWrapper_QIconDragEvent::new_QIconDragEvent() -{ -return new QIconDragEvent(); } - - - -QSize PythonQtShell_QIconEngine::actualSize(const QSize& size, QIcon::Mode mode, QIcon::State state) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actualSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QSize&" , "QIcon::Mode" , "QIcon::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QSize returnValue; - void* args[4] = {NULL, (void*)&size, (void*)&mode, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actualSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIconEngine::actualSize(size, mode, state); -} -void PythonQtShell_QIconEngine::addFile(const QString& fileName, const QSize& size, QIcon::Mode mode, QIcon::State state) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&" , "const QSize&" , "QIcon::Mode" , "QIcon::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&fileName, (void*)&size, (void*)&mode, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIconEngine::addFile(fileName, size, mode, state); -} -void PythonQtShell_QIconEngine::addPixmap(const QPixmap& pixmap, QIcon::Mode mode, QIcon::State state) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPixmap&" , "QIcon::Mode" , "QIcon::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&pixmap, (void*)&mode, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIconEngine::addPixmap(pixmap, mode, state); -} -void PythonQtShell_QIconEngine::paint(QPainter* painter, const QRect& rect, QIcon::Mode mode, QIcon::State state) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "QIcon::Mode" , "QIcon::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&mode, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QPixmap PythonQtShell_QIconEngine::pixmap(const QSize& size, QIcon::Mode mode, QIcon::State state) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "const QSize&" , "QIcon::Mode" , "QIcon::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&size, (void*)&mode, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIconEngine::pixmap(size, mode, state); -} -QIconEngine* PythonQtWrapper_QIconEngine::new_QIconEngine() -{ -return new PythonQtShell_QIconEngine(); } - -QSize PythonQtWrapper_QIconEngine::actualSize(QIconEngine* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state) -{ - return ( ((PythonQtPublicPromoter_QIconEngine*)theWrappedObject)->promoted_actualSize(size, mode, state)); -} - -void PythonQtWrapper_QIconEngine::addFile(QIconEngine* theWrappedObject, const QString& fileName, const QSize& size, QIcon::Mode mode, QIcon::State state) -{ - ( ((PythonQtPublicPromoter_QIconEngine*)theWrappedObject)->promoted_addFile(fileName, size, mode, state)); -} - -void PythonQtWrapper_QIconEngine::addPixmap(QIconEngine* theWrappedObject, const QPixmap& pixmap, QIcon::Mode mode, QIcon::State state) -{ - ( ((PythonQtPublicPromoter_QIconEngine*)theWrappedObject)->promoted_addPixmap(pixmap, mode, state)); -} - -QPixmap PythonQtWrapper_QIconEngine::pixmap(QIconEngine* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state) -{ - return ( ((PythonQtPublicPromoter_QIconEngine*)theWrappedObject)->promoted_pixmap(size, mode, state)); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.h deleted file mode 100644 index b3e69e8c9..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.h +++ /dev/null @@ -1,1833 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QGraphicsPixmapItem : public QGraphicsPixmapItem -{ -public: - PythonQtShell_QGraphicsPixmapItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPixmapItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPixmapItem(pixmap, parent, scene),_wrapper(NULL) {}; - -virtual void advance(int phase); -virtual QRectF boundingRect() const; -virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode) const; -virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode) const; -virtual bool contains(const QPointF& point) const; -virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); -virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dropEvent(QGraphicsSceneDragDropEvent* event); -virtual QVariant extension(const QVariant& variant) const; -virtual void focusInEvent(QFocusEvent* event); -virtual void focusOutEvent(QFocusEvent* event); -virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); -virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); -virtual QPainterPath opaqueArea() const; -virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); -virtual bool sceneEvent(QEvent* event); -virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); -virtual QPainterPath shape() const; -virtual int type() const; -virtual void wheelEvent(QGraphicsSceneWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsPixmapItem : public QGraphicsPixmapItem -{ public: -inline QRectF promoted_boundingRect() const { return QGraphicsPixmapItem::boundingRect(); } -inline bool promoted_contains(const QPointF& point) const { return QGraphicsPixmapItem::contains(point); } -inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsPixmapItem::extension(variant); } -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPixmapItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsPixmapItem::opaqueArea(); } -inline void promoted_paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) { QGraphicsPixmapItem::paint(painter, option, widget); } -inline QPainterPath promoted_shape() const { return QGraphicsPixmapItem::shape(); } -inline int promoted_type() const { return QGraphicsPixmapItem::type(); } -}; - -class PythonQtWrapper_QGraphicsPixmapItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ShapeMode enum_1 ) -enum ShapeMode{ - MaskShape = QGraphicsPixmapItem::MaskShape, BoundingRectShape = QGraphicsPixmapItem::BoundingRectShape, HeuristicMaskShape = QGraphicsPixmapItem::HeuristicMaskShape}; -enum enum_1{ - Type = QGraphicsPixmapItem::Type}; -public slots: -QGraphicsPixmapItem* new_QGraphicsPixmapItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsPixmapItem* new_QGraphicsPixmapItem(const QPixmap& pixmap, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsPixmapItem(QGraphicsPixmapItem* obj) { delete obj; } - QRectF boundingRect(QGraphicsPixmapItem* theWrappedObject) const; - bool contains(QGraphicsPixmapItem* theWrappedObject, const QPointF& point) const; - QVariant extension(QGraphicsPixmapItem* theWrappedObject, const QVariant& variant) const; - bool isObscuredBy(QGraphicsPixmapItem* theWrappedObject, const QGraphicsItem* item) const; - QPointF offset(QGraphicsPixmapItem* theWrappedObject) const; - QPainterPath opaqueArea(QGraphicsPixmapItem* theWrappedObject) const; - void paint(QGraphicsPixmapItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); - QPixmap pixmap(QGraphicsPixmapItem* theWrappedObject) const; - void setOffset(QGraphicsPixmapItem* theWrappedObject, const QPointF& offset); - void setOffset(QGraphicsPixmapItem* theWrappedObject, qreal x, qreal y); - void setPixmap(QGraphicsPixmapItem* theWrappedObject, const QPixmap& pixmap); - void setShapeMode(QGraphicsPixmapItem* theWrappedObject, QGraphicsPixmapItem::ShapeMode mode); - void setTransformationMode(QGraphicsPixmapItem* theWrappedObject, Qt::TransformationMode mode); - QPainterPath shape(QGraphicsPixmapItem* theWrappedObject) const; - QGraphicsPixmapItem::ShapeMode shapeMode(QGraphicsPixmapItem* theWrappedObject) const; - Qt::TransformationMode transformationMode(QGraphicsPixmapItem* theWrappedObject) const; - int type(QGraphicsPixmapItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsPolygonItem : public QGraphicsPolygonItem -{ -public: - PythonQtShell_QGraphicsPolygonItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPolygonItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsPolygonItem(polygon, parent, scene),_wrapper(NULL) {}; - -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QPainterPath opaqueArea() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsPolygonItem : public QGraphicsPolygonItem -{ public: -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsPolygonItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsPolygonItem::opaqueArea(); } -}; - -class PythonQtWrapper_QGraphicsPolygonItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsPolygonItem::Type}; -public slots: -QGraphicsPolygonItem* new_QGraphicsPolygonItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsPolygonItem* new_QGraphicsPolygonItem(const QPolygonF& polygon, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsPolygonItem(QGraphicsPolygonItem* obj) { delete obj; } - QRectF boundingRect(QGraphicsPolygonItem* theWrappedObject) const; - bool contains(QGraphicsPolygonItem* theWrappedObject, const QPointF& point) const; - Qt::FillRule fillRule(QGraphicsPolygonItem* theWrappedObject) const; - bool isObscuredBy(QGraphicsPolygonItem* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QGraphicsPolygonItem* theWrappedObject) const; - void paint(QGraphicsPolygonItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - QPolygonF polygon(QGraphicsPolygonItem* theWrappedObject) const; - void setFillRule(QGraphicsPolygonItem* theWrappedObject, Qt::FillRule rule); - void setPolygon(QGraphicsPolygonItem* theWrappedObject, const QPolygonF& polygon); - QPainterPath shape(QGraphicsPolygonItem* theWrappedObject) const; - int type(QGraphicsPolygonItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsProxyWidget : public QGraphicsProxyWidget -{ -public: - PythonQtShell_QGraphicsProxyWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0):QGraphicsProxyWidget(parent, wFlags),_wrapper(NULL) {}; - -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* object, QEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; -virtual void grabKeyboardEvent(QEvent* event); -virtual void grabMouseEvent(QEvent* event); -virtual void hideEvent(QHideEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void initStyleOption(QStyleOption* option) const; -virtual void moveEvent(QGraphicsSceneMoveEvent* event); -virtual void paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); -virtual void polishEvent(); -virtual QVariant propertyChange(const QString& propertyName, const QVariant& value); -virtual void resizeEvent(QGraphicsSceneResizeEvent* event); -virtual void setGeometry(const QRectF& rect); -virtual void showEvent(QShowEvent* event); -virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void ungrabKeyboardEvent(QEvent* event); -virtual void ungrabMouseEvent(QEvent* event); -virtual void updateGeometry(); -virtual bool windowFrameEvent(QEvent* e); -virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF& pos) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsProxyWidget : public QGraphicsProxyWidget -{ public: -inline bool promoted_event(QEvent* event) { return QGraphicsProxyWidget::event(event); } -inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QGraphicsProxyWidget::eventFilter(object, event); } -inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsProxyWidget::focusNextPrevChild(next); } -inline void promoted_grabMouseEvent(QEvent* event) { QGraphicsProxyWidget::grabMouseEvent(event); } -inline void promoted_hideEvent(QHideEvent* event) { QGraphicsProxyWidget::hideEvent(event); } -inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsProxyWidget::hoverLeaveEvent(event); } -inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsProxyWidget::hoverMoveEvent(event); } -inline void promoted_resizeEvent(QGraphicsSceneResizeEvent* event) { QGraphicsProxyWidget::resizeEvent(event); } -inline void promoted_setGeometry(const QRectF& rect) { QGraphicsProxyWidget::setGeometry(rect); } -inline void promoted_showEvent(QShowEvent* event) { QGraphicsProxyWidget::showEvent(event); } -inline QSizeF promoted_sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const { return QGraphicsProxyWidget::sizeHint(which, constraint); } -inline void promoted_ungrabMouseEvent(QEvent* event) { QGraphicsProxyWidget::ungrabMouseEvent(event); } -}; - -class PythonQtWrapper_QGraphicsProxyWidget : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsProxyWidget::Type}; -public slots: -QGraphicsProxyWidget* new_QGraphicsProxyWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0); -void delete_QGraphicsProxyWidget(QGraphicsProxyWidget* obj) { delete obj; } - QGraphicsProxyWidget* createProxyForChildWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* child); - bool event(QGraphicsProxyWidget* theWrappedObject, QEvent* event); - bool eventFilter(QGraphicsProxyWidget* theWrappedObject, QObject* object, QEvent* event); - bool focusNextPrevChild(QGraphicsProxyWidget* theWrappedObject, bool next); - void grabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event); - void hideEvent(QGraphicsProxyWidget* theWrappedObject, QHideEvent* event); - void hoverLeaveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); - void hoverMoveEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); - void paint(QGraphicsProxyWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); - void resizeEvent(QGraphicsProxyWidget* theWrappedObject, QGraphicsSceneResizeEvent* event); - void setGeometry(QGraphicsProxyWidget* theWrappedObject, const QRectF& rect); - void setWidget(QGraphicsProxyWidget* theWrappedObject, QWidget* widget); - void showEvent(QGraphicsProxyWidget* theWrappedObject, QShowEvent* event); - QSizeF sizeHint(QGraphicsProxyWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; - QRectF subWidgetRect(QGraphicsProxyWidget* theWrappedObject, const QWidget* widget) const; - int type(QGraphicsProxyWidget* theWrappedObject) const; - void ungrabMouseEvent(QGraphicsProxyWidget* theWrappedObject, QEvent* event); - QWidget* widget(QGraphicsProxyWidget* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsRectItem : public QGraphicsRectItem -{ -public: - PythonQtShell_QGraphicsRectItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsRectItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsRectItem(rect, parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsRectItem(x, y, w, h, parent, scene),_wrapper(NULL) {}; - -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QPainterPath opaqueArea() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsRectItem : public QGraphicsRectItem -{ public: -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsRectItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsRectItem::opaqueArea(); } -}; - -class PythonQtWrapper_QGraphicsRectItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsRectItem::Type}; -public slots: -QGraphicsRectItem* new_QGraphicsRectItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsRectItem* new_QGraphicsRectItem(const QRectF& rect, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsRectItem* new_QGraphicsRectItem(qreal x, qreal y, qreal w, qreal h, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsRectItem(QGraphicsRectItem* obj) { delete obj; } - QRectF boundingRect(QGraphicsRectItem* theWrappedObject) const; - bool contains(QGraphicsRectItem* theWrappedObject, const QPointF& point) const; - bool isObscuredBy(QGraphicsRectItem* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QGraphicsRectItem* theWrappedObject) const; - void paint(QGraphicsRectItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - QRectF rect(QGraphicsRectItem* theWrappedObject) const; - void setRect(QGraphicsRectItem* theWrappedObject, const QRectF& rect); - void setRect(QGraphicsRectItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - QPainterPath shape(QGraphicsRectItem* theWrappedObject) const; - int type(QGraphicsRectItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsRotation : public QGraphicsRotation -{ -public: - PythonQtShell_QGraphicsRotation(QObject* parent = 0):QGraphicsRotation(parent),_wrapper(NULL) {}; - -virtual void applyTo(QMatrix4x4* matrix) const; -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsRotation : public QGraphicsRotation -{ public: -inline void promoted_applyTo(QMatrix4x4* matrix) const { QGraphicsRotation::applyTo(matrix); } -}; - -class PythonQtWrapper_QGraphicsRotation : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsRotation* new_QGraphicsRotation(QObject* parent = 0); -void delete_QGraphicsRotation(QGraphicsRotation* obj) { delete obj; } - qreal angle(QGraphicsRotation* theWrappedObject) const; - void applyTo(QGraphicsRotation* theWrappedObject, QMatrix4x4* matrix) const; - QVector3D axis(QGraphicsRotation* theWrappedObject) const; - QVector3D origin(QGraphicsRotation* theWrappedObject) const; - void setAngle(QGraphicsRotation* theWrappedObject, qreal arg__1); - void setAxis(QGraphicsRotation* theWrappedObject, Qt::Axis axis); - void setAxis(QGraphicsRotation* theWrappedObject, const QVector3D& axis); - void setOrigin(QGraphicsRotation* theWrappedObject, const QVector3D& point); -}; - - - - - -class PythonQtShell_QGraphicsScale : public QGraphicsScale -{ -public: - PythonQtShell_QGraphicsScale(QObject* parent = 0):QGraphicsScale(parent),_wrapper(NULL) {}; - -virtual void applyTo(QMatrix4x4* matrix) const; -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsScale : public QGraphicsScale -{ public: -inline void promoted_applyTo(QMatrix4x4* matrix) const { QGraphicsScale::applyTo(matrix); } -}; - -class PythonQtWrapper_QGraphicsScale : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsScale* new_QGraphicsScale(QObject* parent = 0); -void delete_QGraphicsScale(QGraphicsScale* obj) { delete obj; } - void applyTo(QGraphicsScale* theWrappedObject, QMatrix4x4* matrix) const; - QVector3D origin(QGraphicsScale* theWrappedObject) const; - void setOrigin(QGraphicsScale* theWrappedObject, const QVector3D& point); - void setXScale(QGraphicsScale* theWrappedObject, qreal arg__1); - void setYScale(QGraphicsScale* theWrappedObject, qreal arg__1); - void setZScale(QGraphicsScale* theWrappedObject, qreal arg__1); - qreal xScale(QGraphicsScale* theWrappedObject) const; - qreal yScale(QGraphicsScale* theWrappedObject) const; - qreal zScale(QGraphicsScale* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsScene : public QGraphicsScene -{ -public: - PythonQtShell_QGraphicsScene(QObject* parent = 0):QGraphicsScene(parent),_wrapper(NULL) {}; - PythonQtShell_QGraphicsScene(const QRectF& sceneRect, QObject* parent = 0):QGraphicsScene(sceneRect, parent),_wrapper(NULL) {}; - PythonQtShell_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent = 0):QGraphicsScene(x, y, width, height, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); -virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); -virtual void drawBackground(QPainter* painter, const QRectF& rect); -virtual void drawForeground(QPainter* painter, const QRectF& rect); -virtual void drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget = 0); -virtual void dropEvent(QGraphicsSceneDragDropEvent* event); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* watched, QEvent* event); -virtual void focusInEvent(QFocusEvent* event); -virtual void focusOutEvent(QFocusEvent* event); -virtual void helpEvent(QGraphicsSceneHelpEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); -virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); -virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QGraphicsSceneWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsScene : public QGraphicsScene -{ public: -inline void promoted_contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsScene::contextMenuEvent(event); } -inline void promoted_dragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dragEnterEvent(event); } -inline void promoted_dragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dragLeaveEvent(event); } -inline void promoted_dragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dragMoveEvent(event); } -inline void promoted_drawBackground(QPainter* painter, const QRectF& rect) { QGraphicsScene::drawBackground(painter, rect); } -inline void promoted_drawForeground(QPainter* painter, const QRectF& rect) { QGraphicsScene::drawForeground(painter, rect); } -inline void promoted_drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget = 0) { QGraphicsScene::drawItems(painter, numItems, items, options, widget); } -inline void promoted_dropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsScene::dropEvent(event); } -inline bool promoted_event(QEvent* event) { return QGraphicsScene::event(event); } -inline bool promoted_eventFilter(QObject* watched, QEvent* event) { return QGraphicsScene::eventFilter(watched, event); } -inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsScene::focusInEvent(event); } -inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsScene::focusOutEvent(event); } -inline void promoted_helpEvent(QGraphicsSceneHelpEvent* event) { QGraphicsScene::helpEvent(event); } -inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsScene::inputMethodEvent(event); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsScene::inputMethodQuery(query); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsScene::keyPressEvent(event); } -inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsScene::keyReleaseEvent(event); } -inline void promoted_mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mouseDoubleClickEvent(event); } -inline void promoted_mouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mouseMoveEvent(event); } -inline void promoted_mousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mousePressEvent(event); } -inline void promoted_mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsScene::mouseReleaseEvent(event); } -inline void promoted_wheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsScene::wheelEvent(event); } -}; - -class PythonQtWrapper_QGraphicsScene : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SceneLayer ItemIndexMethod ) -Q_FLAGS(SceneLayers ) -enum SceneLayer{ - ItemLayer = QGraphicsScene::ItemLayer, BackgroundLayer = QGraphicsScene::BackgroundLayer, ForegroundLayer = QGraphicsScene::ForegroundLayer, AllLayers = QGraphicsScene::AllLayers}; -enum ItemIndexMethod{ - BspTreeIndex = QGraphicsScene::BspTreeIndex, NoIndex = QGraphicsScene::NoIndex}; -Q_DECLARE_FLAGS(SceneLayers, SceneLayer) -public slots: -QGraphicsScene* new_QGraphicsScene(QObject* parent = 0); -QGraphicsScene* new_QGraphicsScene(const QRectF& sceneRect, QObject* parent = 0); -QGraphicsScene* new_QGraphicsScene(qreal x, qreal y, qreal width, qreal height, QObject* parent = 0); -void delete_QGraphicsScene(QGraphicsScene* obj) { delete obj; } - QGraphicsItem* activePanel(QGraphicsScene* theWrappedObject) const; - QGraphicsWidget* activeWindow(QGraphicsScene* theWrappedObject) const; - QGraphicsEllipseItem* addEllipse(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen = QPen(), const QBrush& brush = QBrush()); - QGraphicsEllipseItem* addEllipse(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen = QPen(), const QBrush& brush = QBrush()); - void addItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item); - QGraphicsLineItem* addLine(QGraphicsScene* theWrappedObject, const QLineF& line, const QPen& pen = QPen()); - QGraphicsLineItem* addLine(QGraphicsScene* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2, const QPen& pen = QPen()); - QGraphicsPathItem* addPath(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QPen& pen = QPen(), const QBrush& brush = QBrush()); - QGraphicsPixmapItem* addPixmap(QGraphicsScene* theWrappedObject, const QPixmap& pixmap); - QGraphicsPolygonItem* addPolygon(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, const QPen& pen = QPen(), const QBrush& brush = QBrush()); - QGraphicsRectItem* addRect(QGraphicsScene* theWrappedObject, const QRectF& rect, const QPen& pen = QPen(), const QBrush& brush = QBrush()); - QGraphicsRectItem* addRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, const QPen& pen = QPen(), const QBrush& brush = QBrush()); - QGraphicsSimpleTextItem* addSimpleText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font = QFont()); - QGraphicsTextItem* addText(QGraphicsScene* theWrappedObject, const QString& text, const QFont& font = QFont()); - QGraphicsProxyWidget* addWidget(QGraphicsScene* theWrappedObject, QWidget* widget, Qt::WindowFlags wFlags = 0); - QBrush backgroundBrush(QGraphicsScene* theWrappedObject) const; - int bspTreeDepth(QGraphicsScene* theWrappedObject) const; - void clearFocus(QGraphicsScene* theWrappedObject); - QList collidingItems(QGraphicsScene* theWrappedObject, const QGraphicsItem* item, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - void contextMenuEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneContextMenuEvent* event); - QGraphicsItemGroup* createItemGroup(QGraphicsScene* theWrappedObject, const QList& items); - void destroyItemGroup(QGraphicsScene* theWrappedObject, QGraphicsItemGroup* group); - void dragEnterEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); - void dragLeaveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); - void dragMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); - void drawBackground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect); - void drawForeground(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& rect); - void drawItems(QGraphicsScene* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options, QWidget* widget = 0); - void dropEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneDragDropEvent* event); - bool event(QGraphicsScene* theWrappedObject, QEvent* event); - bool eventFilter(QGraphicsScene* theWrappedObject, QObject* watched, QEvent* event); - void focusInEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event); - QGraphicsItem* focusItem(QGraphicsScene* theWrappedObject) const; - void focusOutEvent(QGraphicsScene* theWrappedObject, QFocusEvent* event); - QFont font(QGraphicsScene* theWrappedObject) const; - QBrush foregroundBrush(QGraphicsScene* theWrappedObject) const; - bool hasFocus(QGraphicsScene* theWrappedObject) const; - qreal height(QGraphicsScene* theWrappedObject) const; - void helpEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneHelpEvent* event); - void inputMethodEvent(QGraphicsScene* theWrappedObject, QInputMethodEvent* event); - QVariant inputMethodQuery(QGraphicsScene* theWrappedObject, Qt::InputMethodQuery query) const; - void invalidate(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, QGraphicsScene::SceneLayers layers = QGraphicsScene::AllLayers); - bool isActive(QGraphicsScene* theWrappedObject) const; - bool isSortCacheEnabled(QGraphicsScene* theWrappedObject) const; - QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos) const; - QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, const QPointF& pos, const QTransform& deviceTransform) const; - QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y) const; - QGraphicsItem* itemAt(QGraphicsScene* theWrappedObject, qreal x, qreal y, const QTransform& deviceTransform) const; - QGraphicsScene::ItemIndexMethod itemIndexMethod(QGraphicsScene* theWrappedObject) const; - QList items(QGraphicsScene* theWrappedObject) const; - QList items(QGraphicsScene* theWrappedObject, Qt::SortOrder order) const; - QList items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList items(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform = QTransform()) const; - QList items(QGraphicsScene* theWrappedObject, const QPointF& pos) const; - QList items(QGraphicsScene* theWrappedObject, const QPointF& pos, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform = QTransform()) const; - QList items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList items(QGraphicsScene* theWrappedObject, const QPolygonF& polygon, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform = QTransform()) const; - QList items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList items(QGraphicsScene* theWrappedObject, const QRectF& rect, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform = QTransform()) const; - QList items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList items(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform& deviceTransform = QTransform()) const; - QRectF itemsBoundingRect(QGraphicsScene* theWrappedObject) const; - void keyPressEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event); - void keyReleaseEvent(QGraphicsScene* theWrappedObject, QKeyEvent* event); - void mouseDoubleClickEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); - QGraphicsItem* mouseGrabberItem(QGraphicsScene* theWrappedObject) const; - void mouseMoveEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); - void mousePressEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); - void mouseReleaseEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneMouseEvent* event); - QPalette palette(QGraphicsScene* theWrappedObject) const; - void removeItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item); - void render(QGraphicsScene* theWrappedObject, QPainter* painter, const QRectF& target = QRectF(), const QRectF& source = QRectF(), Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio); - QRectF sceneRect(QGraphicsScene* theWrappedObject) const; - QList selectedItems(QGraphicsScene* theWrappedObject) const; - QPainterPath selectionArea(QGraphicsScene* theWrappedObject) const; - bool sendEvent(QGraphicsScene* theWrappedObject, QGraphicsItem* item, QEvent* event); - void setActivePanel(QGraphicsScene* theWrappedObject, QGraphicsItem* item); - void setActiveWindow(QGraphicsScene* theWrappedObject, QGraphicsWidget* widget); - void setBackgroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush); - void setBspTreeDepth(QGraphicsScene* theWrappedObject, int depth); - void setFocus(QGraphicsScene* theWrappedObject, Qt::FocusReason focusReason = Qt::OtherFocusReason); - void setFocusItem(QGraphicsScene* theWrappedObject, QGraphicsItem* item, Qt::FocusReason focusReason = Qt::OtherFocusReason); - void setFont(QGraphicsScene* theWrappedObject, const QFont& font); - void setForegroundBrush(QGraphicsScene* theWrappedObject, const QBrush& brush); - void setItemIndexMethod(QGraphicsScene* theWrappedObject, QGraphicsScene::ItemIndexMethod method); - void setPalette(QGraphicsScene* theWrappedObject, const QPalette& palette); - void setSceneRect(QGraphicsScene* theWrappedObject, const QRectF& rect); - void setSceneRect(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path); - void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode); - void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode, const QTransform& deviceTransform); - void setSelectionArea(QGraphicsScene* theWrappedObject, const QPainterPath& path, const QTransform& deviceTransform); - void setSortCacheEnabled(QGraphicsScene* theWrappedObject, bool enabled); - void setStickyFocus(QGraphicsScene* theWrappedObject, bool enabled); - void setStyle(QGraphicsScene* theWrappedObject, QStyle* style); - bool stickyFocus(QGraphicsScene* theWrappedObject) const; - QStyle* style(QGraphicsScene* theWrappedObject) const; - void update(QGraphicsScene* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - QList views(QGraphicsScene* theWrappedObject) const; - void wheelEvent(QGraphicsScene* theWrappedObject, QGraphicsSceneWheelEvent* event); - qreal width(QGraphicsScene* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QGraphicsSceneContextMenuEvent : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Reason ) -enum Reason{ - Mouse = QGraphicsSceneContextMenuEvent::Mouse, Keyboard = QGraphicsSceneContextMenuEvent::Keyboard, Other = QGraphicsSceneContextMenuEvent::Other}; -public slots: -QGraphicsSceneContextMenuEvent* new_QGraphicsSceneContextMenuEvent(QEvent::Type type = QEvent::None); -void delete_QGraphicsSceneContextMenuEvent(QGraphicsSceneContextMenuEvent* obj) { delete obj; } - Qt::KeyboardModifiers modifiers(QGraphicsSceneContextMenuEvent* theWrappedObject) const; - QPointF pos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; - QGraphicsSceneContextMenuEvent::Reason reason(QGraphicsSceneContextMenuEvent* theWrappedObject) const; - QPointF scenePos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; - QPoint screenPos(QGraphicsSceneContextMenuEvent* theWrappedObject) const; - void setModifiers(QGraphicsSceneContextMenuEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); - void setPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos); - void setReason(QGraphicsSceneContextMenuEvent* theWrappedObject, QGraphicsSceneContextMenuEvent::Reason reason); - void setScenePos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPointF& pos); - void setScreenPos(QGraphicsSceneContextMenuEvent* theWrappedObject, const QPoint& pos); -}; - - - - - -class PythonQtWrapper_QGraphicsSceneDragDropEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneDragDropEvent* new_QGraphicsSceneDragDropEvent(QEvent::Type type = QEvent::None); -void delete_QGraphicsSceneDragDropEvent(QGraphicsSceneDragDropEvent* obj) { delete obj; } - void acceptProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject); - Qt::MouseButtons buttons(QGraphicsSceneDragDropEvent* theWrappedObject) const; - Qt::DropAction dropAction(QGraphicsSceneDragDropEvent* theWrappedObject) const; - const QMimeData* mimeData(QGraphicsSceneDragDropEvent* theWrappedObject) const; - Qt::KeyboardModifiers modifiers(QGraphicsSceneDragDropEvent* theWrappedObject) const; - QPointF pos(QGraphicsSceneDragDropEvent* theWrappedObject) const; - Qt::DropActions possibleActions(QGraphicsSceneDragDropEvent* theWrappedObject) const; - Qt::DropAction proposedAction(QGraphicsSceneDragDropEvent* theWrappedObject) const; - QPointF scenePos(QGraphicsSceneDragDropEvent* theWrappedObject) const; - QPoint screenPos(QGraphicsSceneDragDropEvent* theWrappedObject) const; - void setButtons(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::MouseButtons buttons); - void setDropAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action); - void setModifiers(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); - void setPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos); - void setPossibleActions(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropActions actions); - void setProposedAction(QGraphicsSceneDragDropEvent* theWrappedObject, Qt::DropAction action); - void setScenePos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPointF& pos); - void setScreenPos(QGraphicsSceneDragDropEvent* theWrappedObject, const QPoint& pos); - QWidget* source(QGraphicsSceneDragDropEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QGraphicsSceneEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneEvent* new_QGraphicsSceneEvent(QEvent::Type type); -void delete_QGraphicsSceneEvent(QGraphicsSceneEvent* obj) { delete obj; } - QWidget* widget(QGraphicsSceneEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QGraphicsSceneHelpEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneHelpEvent* new_QGraphicsSceneHelpEvent(QEvent::Type type = QEvent::None); -void delete_QGraphicsSceneHelpEvent(QGraphicsSceneHelpEvent* obj) { delete obj; } - QPointF scenePos(QGraphicsSceneHelpEvent* theWrappedObject) const; - QPoint screenPos(QGraphicsSceneHelpEvent* theWrappedObject) const; - void setScenePos(QGraphicsSceneHelpEvent* theWrappedObject, const QPointF& pos); - void setScreenPos(QGraphicsSceneHelpEvent* theWrappedObject, const QPoint& pos); -}; - - - - - -class PythonQtWrapper_QGraphicsSceneHoverEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneHoverEvent* new_QGraphicsSceneHoverEvent(QEvent::Type type = QEvent::None); -void delete_QGraphicsSceneHoverEvent(QGraphicsSceneHoverEvent* obj) { delete obj; } - QPointF lastPos(QGraphicsSceneHoverEvent* theWrappedObject) const; - QPointF lastScenePos(QGraphicsSceneHoverEvent* theWrappedObject) const; - QPoint lastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject) const; - Qt::KeyboardModifiers modifiers(QGraphicsSceneHoverEvent* theWrappedObject) const; - QPointF pos(QGraphicsSceneHoverEvent* theWrappedObject) const; - QPointF scenePos(QGraphicsSceneHoverEvent* theWrappedObject) const; - QPoint screenPos(QGraphicsSceneHoverEvent* theWrappedObject) const; - void setLastPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); - void setLastScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); - void setLastScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos); - void setModifiers(QGraphicsSceneHoverEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); - void setPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); - void setScenePos(QGraphicsSceneHoverEvent* theWrappedObject, const QPointF& pos); - void setScreenPos(QGraphicsSceneHoverEvent* theWrappedObject, const QPoint& pos); -}; - - - - - -class PythonQtWrapper_QGraphicsSceneMouseEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneMouseEvent* new_QGraphicsSceneMouseEvent(QEvent::Type type = QEvent::None); -void delete_QGraphicsSceneMouseEvent(QGraphicsSceneMouseEvent* obj) { delete obj; } - Qt::MouseButton button(QGraphicsSceneMouseEvent* theWrappedObject) const; - QPointF buttonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const; - QPointF buttonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const; - QPoint buttonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button) const; - Qt::MouseButtons buttons(QGraphicsSceneMouseEvent* theWrappedObject) const; - QPointF lastPos(QGraphicsSceneMouseEvent* theWrappedObject) const; - QPointF lastScenePos(QGraphicsSceneMouseEvent* theWrappedObject) const; - QPoint lastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject) const; - Qt::KeyboardModifiers modifiers(QGraphicsSceneMouseEvent* theWrappedObject) const; - QPointF pos(QGraphicsSceneMouseEvent* theWrappedObject) const; - QPointF scenePos(QGraphicsSceneMouseEvent* theWrappedObject) const; - QPoint screenPos(QGraphicsSceneMouseEvent* theWrappedObject) const; - void setButton(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button); - void setButtonDownPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos); - void setButtonDownScenePos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPointF& pos); - void setButtonDownScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButton button, const QPoint& pos); - void setButtons(QGraphicsSceneMouseEvent* theWrappedObject, Qt::MouseButtons buttons); - void setLastPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); - void setLastScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); - void setLastScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos); - void setModifiers(QGraphicsSceneMouseEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); - void setPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); - void setScenePos(QGraphicsSceneMouseEvent* theWrappedObject, const QPointF& pos); - void setScreenPos(QGraphicsSceneMouseEvent* theWrappedObject, const QPoint& pos); -}; - - - - - -class PythonQtWrapper_QGraphicsSceneMoveEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneMoveEvent* new_QGraphicsSceneMoveEvent(); -void delete_QGraphicsSceneMoveEvent(QGraphicsSceneMoveEvent* obj) { delete obj; } - QPointF newPos(QGraphicsSceneMoveEvent* theWrappedObject) const; - QPointF oldPos(QGraphicsSceneMoveEvent* theWrappedObject) const; - void setNewPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos); - void setOldPos(QGraphicsSceneMoveEvent* theWrappedObject, const QPointF& pos); -}; - - - - - -class PythonQtWrapper_QGraphicsSceneResizeEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneResizeEvent* new_QGraphicsSceneResizeEvent(); -void delete_QGraphicsSceneResizeEvent(QGraphicsSceneResizeEvent* obj) { delete obj; } - QSizeF newSize(QGraphicsSceneResizeEvent* theWrappedObject) const; - QSizeF oldSize(QGraphicsSceneResizeEvent* theWrappedObject) const; - void setNewSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size); - void setOldSize(QGraphicsSceneResizeEvent* theWrappedObject, const QSizeF& size); -}; - - - - - -class PythonQtWrapper_QGraphicsSceneWheelEvent : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsSceneWheelEvent* new_QGraphicsSceneWheelEvent(QEvent::Type type = QEvent::None); -void delete_QGraphicsSceneWheelEvent(QGraphicsSceneWheelEvent* obj) { delete obj; } - Qt::MouseButtons buttons(QGraphicsSceneWheelEvent* theWrappedObject) const; - int delta(QGraphicsSceneWheelEvent* theWrappedObject) const; - Qt::KeyboardModifiers modifiers(QGraphicsSceneWheelEvent* theWrappedObject) const; - Qt::Orientation orientation(QGraphicsSceneWheelEvent* theWrappedObject) const; - QPointF pos(QGraphicsSceneWheelEvent* theWrappedObject) const; - QPointF scenePos(QGraphicsSceneWheelEvent* theWrappedObject) const; - QPoint screenPos(QGraphicsSceneWheelEvent* theWrappedObject) const; - void setButtons(QGraphicsSceneWheelEvent* theWrappedObject, Qt::MouseButtons buttons); - void setDelta(QGraphicsSceneWheelEvent* theWrappedObject, int delta); - void setModifiers(QGraphicsSceneWheelEvent* theWrappedObject, Qt::KeyboardModifiers modifiers); - void setOrientation(QGraphicsSceneWheelEvent* theWrappedObject, Qt::Orientation orientation); - void setPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos); - void setScenePos(QGraphicsSceneWheelEvent* theWrappedObject, const QPointF& pos); - void setScreenPos(QGraphicsSceneWheelEvent* theWrappedObject, const QPoint& pos); -}; - - - - - -class PythonQtShell_QGraphicsSimpleTextItem : public QGraphicsSimpleTextItem -{ -public: - PythonQtShell_QGraphicsSimpleTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsSimpleTextItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsSimpleTextItem(text, parent, scene),_wrapper(NULL) {}; - -virtual bool isObscuredBy(const QGraphicsItem* item) const; -virtual QPainterPath opaqueArea() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsSimpleTextItem : public QGraphicsSimpleTextItem -{ public: -inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsSimpleTextItem::isObscuredBy(item); } -inline QPainterPath promoted_opaqueArea() const { return QGraphicsSimpleTextItem::opaqueArea(); } -}; - -class PythonQtWrapper_QGraphicsSimpleTextItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsSimpleTextItem::Type}; -public slots: -QGraphicsSimpleTextItem* new_QGraphicsSimpleTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsSimpleTextItem* new_QGraphicsSimpleTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsSimpleTextItem(QGraphicsSimpleTextItem* obj) { delete obj; } - QRectF boundingRect(QGraphicsSimpleTextItem* theWrappedObject) const; - bool contains(QGraphicsSimpleTextItem* theWrappedObject, const QPointF& point) const; - QFont font(QGraphicsSimpleTextItem* theWrappedObject) const; - bool isObscuredBy(QGraphicsSimpleTextItem* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QGraphicsSimpleTextItem* theWrappedObject) const; - void paint(QGraphicsSimpleTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); - void setFont(QGraphicsSimpleTextItem* theWrappedObject, const QFont& font); - void setText(QGraphicsSimpleTextItem* theWrappedObject, const QString& text); - QPainterPath shape(QGraphicsSimpleTextItem* theWrappedObject) const; - QString text(QGraphicsSimpleTextItem* theWrappedObject) const; - int type(QGraphicsSimpleTextItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsTextItem : public QGraphicsTextItem -{ -public: - PythonQtShell_QGraphicsTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsTextItem(parent, scene),_wrapper(NULL) {}; - PythonQtShell_QGraphicsTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsTextItem(text, parent, scene),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QGraphicsTextItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsTextItem::Type}; -public slots: -QGraphicsTextItem* new_QGraphicsTextItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -QGraphicsTextItem* new_QGraphicsTextItem(const QString& text, QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); -void delete_QGraphicsTextItem(QGraphicsTextItem* obj) { delete obj; } - void adjustSize(QGraphicsTextItem* theWrappedObject); - QRectF boundingRect(QGraphicsTextItem* theWrappedObject) const; - bool contains(QGraphicsTextItem* theWrappedObject, const QPointF& point) const; - QColor defaultTextColor(QGraphicsTextItem* theWrappedObject) const; - QTextDocument* document(QGraphicsTextItem* theWrappedObject) const; - QFont font(QGraphicsTextItem* theWrappedObject) const; - bool isObscuredBy(QGraphicsTextItem* theWrappedObject, const QGraphicsItem* item) const; - QPainterPath opaqueArea(QGraphicsTextItem* theWrappedObject) const; - bool openExternalLinks(QGraphicsTextItem* theWrappedObject) const; - void paint(QGraphicsTextItem* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); - void setDefaultTextColor(QGraphicsTextItem* theWrappedObject, const QColor& c); - void setDocument(QGraphicsTextItem* theWrappedObject, QTextDocument* document); - void setFont(QGraphicsTextItem* theWrappedObject, const QFont& font); - void setHtml(QGraphicsTextItem* theWrappedObject, const QString& html); - void setOpenExternalLinks(QGraphicsTextItem* theWrappedObject, bool open); - void setPlainText(QGraphicsTextItem* theWrappedObject, const QString& text); - void setTabChangesFocus(QGraphicsTextItem* theWrappedObject, bool b); - void setTextCursor(QGraphicsTextItem* theWrappedObject, const QTextCursor& cursor); - void setTextInteractionFlags(QGraphicsTextItem* theWrappedObject, Qt::TextInteractionFlags flags); - void setTextWidth(QGraphicsTextItem* theWrappedObject, qreal width); - QPainterPath shape(QGraphicsTextItem* theWrappedObject) const; - bool tabChangesFocus(QGraphicsTextItem* theWrappedObject) const; - QTextCursor textCursor(QGraphicsTextItem* theWrappedObject) const; - Qt::TextInteractionFlags textInteractionFlags(QGraphicsTextItem* theWrappedObject) const; - qreal textWidth(QGraphicsTextItem* theWrappedObject) const; - QString toHtml(QGraphicsTextItem* theWrappedObject) const; - QString toPlainText(QGraphicsTextItem* theWrappedObject) const; - int type(QGraphicsTextItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGraphicsTransform : public QGraphicsTransform -{ -public: - PythonQtShell_QGraphicsTransform(QObject* parent = 0):QGraphicsTransform(parent),_wrapper(NULL) {}; - -virtual void applyTo(QMatrix4x4* matrix) const; -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QGraphicsTransform : public QObject -{ Q_OBJECT -public: -public slots: -QGraphicsTransform* new_QGraphicsTransform(QObject* parent = 0); -void delete_QGraphicsTransform(QGraphicsTransform* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QGraphicsView : public QGraphicsView -{ -public: - PythonQtShell_QGraphicsView(QGraphicsScene* scene, QWidget* parent = 0):QGraphicsView(scene, parent),_wrapper(NULL) {}; - PythonQtShell_QGraphicsView(QWidget* parent = 0):QGraphicsView(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void drawBackground(QPainter* painter, const QRectF& rect); -virtual void drawForeground(QPainter* painter, const QRectF& rect); -virtual void drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options); -virtual void dropEvent(QDropEvent* event); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void scrollContentsBy(int dx, int dy); -virtual void showEvent(QShowEvent* event); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool viewportEvent(QEvent* event); -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsView : public QGraphicsView -{ public: -inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QGraphicsView::contextMenuEvent(event); } -inline void promoted_dragEnterEvent(QDragEnterEvent* event) { QGraphicsView::dragEnterEvent(event); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* event) { QGraphicsView::dragLeaveEvent(event); } -inline void promoted_dragMoveEvent(QDragMoveEvent* event) { QGraphicsView::dragMoveEvent(event); } -inline void promoted_drawBackground(QPainter* painter, const QRectF& rect) { QGraphicsView::drawBackground(painter, rect); } -inline void promoted_drawForeground(QPainter* painter, const QRectF& rect) { QGraphicsView::drawForeground(painter, rect); } -inline void promoted_drawItems(QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options) { QGraphicsView::drawItems(painter, numItems, items, options); } -inline void promoted_dropEvent(QDropEvent* event) { QGraphicsView::dropEvent(event); } -inline bool promoted_event(QEvent* event) { return QGraphicsView::event(event); } -inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsView::focusInEvent(event); } -inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsView::focusNextPrevChild(next); } -inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsView::focusOutEvent(event); } -inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsView::inputMethodEvent(event); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsView::inputMethodQuery(query); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsView::keyPressEvent(event); } -inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsView::keyReleaseEvent(event); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* event) { QGraphicsView::mouseDoubleClickEvent(event); } -inline void promoted_mouseMoveEvent(QMouseEvent* event) { QGraphicsView::mouseMoveEvent(event); } -inline void promoted_mousePressEvent(QMouseEvent* event) { QGraphicsView::mousePressEvent(event); } -inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QGraphicsView::mouseReleaseEvent(event); } -inline void promoted_paintEvent(QPaintEvent* event) { QGraphicsView::paintEvent(event); } -inline void promoted_resizeEvent(QResizeEvent* event) { QGraphicsView::resizeEvent(event); } -inline void promoted_scrollContentsBy(int dx, int dy) { QGraphicsView::scrollContentsBy(dx, dy); } -inline void promoted_showEvent(QShowEvent* event) { QGraphicsView::showEvent(event); } -inline bool promoted_viewportEvent(QEvent* event) { return QGraphicsView::viewportEvent(event); } -inline void promoted_wheelEvent(QWheelEvent* event) { QGraphicsView::wheelEvent(event); } -}; - -class PythonQtWrapper_QGraphicsView : public QObject -{ Q_OBJECT -public: -Q_ENUMS(OptimizationFlag CacheModeFlag ) -Q_FLAGS(OptimizationFlags CacheMode ) -enum OptimizationFlag{ - DontClipPainter = QGraphicsView::DontClipPainter, DontSavePainterState = QGraphicsView::DontSavePainterState, DontAdjustForAntialiasing = QGraphicsView::DontAdjustForAntialiasing, IndirectPainting = QGraphicsView::IndirectPainting}; -enum CacheModeFlag{ - CacheNone = QGraphicsView::CacheNone, CacheBackground = QGraphicsView::CacheBackground}; -Q_DECLARE_FLAGS(OptimizationFlags, OptimizationFlag) -Q_DECLARE_FLAGS(CacheMode, CacheModeFlag) -public slots: -QGraphicsView* new_QGraphicsView(QGraphicsScene* scene, QWidget* parent = 0); -QGraphicsView* new_QGraphicsView(QWidget* parent = 0); -void delete_QGraphicsView(QGraphicsView* obj) { delete obj; } - Qt::Alignment alignment(QGraphicsView* theWrappedObject) const; - QBrush backgroundBrush(QGraphicsView* theWrappedObject) const; - QGraphicsView::CacheMode cacheMode(QGraphicsView* theWrappedObject) const; - void centerOn(QGraphicsView* theWrappedObject, const QGraphicsItem* item); - void centerOn(QGraphicsView* theWrappedObject, const QPointF& pos); - void centerOn(QGraphicsView* theWrappedObject, qreal x, qreal y); - void contextMenuEvent(QGraphicsView* theWrappedObject, QContextMenuEvent* event); - void dragEnterEvent(QGraphicsView* theWrappedObject, QDragEnterEvent* event); - void dragLeaveEvent(QGraphicsView* theWrappedObject, QDragLeaveEvent* event); - QGraphicsView::DragMode dragMode(QGraphicsView* theWrappedObject) const; - void dragMoveEvent(QGraphicsView* theWrappedObject, QDragMoveEvent* event); - void drawBackground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect); - void drawForeground(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& rect); - void drawItems(QGraphicsView* theWrappedObject, QPainter* painter, int numItems, QGraphicsItem** items, const QStyleOptionGraphicsItem* options); - void dropEvent(QGraphicsView* theWrappedObject, QDropEvent* event); - void ensureVisible(QGraphicsView* theWrappedObject, const QGraphicsItem* item, int xmargin = 50, int ymargin = 50); - void ensureVisible(QGraphicsView* theWrappedObject, const QRectF& rect, int xmargin = 50, int ymargin = 50); - void ensureVisible(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50); - bool event(QGraphicsView* theWrappedObject, QEvent* event); - void fitInView(QGraphicsView* theWrappedObject, const QGraphicsItem* item, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); - void fitInView(QGraphicsView* theWrappedObject, const QRectF& rect, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); - void fitInView(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRadioMode = Qt::IgnoreAspectRatio); - void focusInEvent(QGraphicsView* theWrappedObject, QFocusEvent* event); - bool focusNextPrevChild(QGraphicsView* theWrappedObject, bool next); - void focusOutEvent(QGraphicsView* theWrappedObject, QFocusEvent* event); - QBrush foregroundBrush(QGraphicsView* theWrappedObject) const; - void inputMethodEvent(QGraphicsView* theWrappedObject, QInputMethodEvent* event); - QVariant inputMethodQuery(QGraphicsView* theWrappedObject, Qt::InputMethodQuery query) const; - bool isInteractive(QGraphicsView* theWrappedObject) const; - bool isTransformed(QGraphicsView* theWrappedObject) const; - QGraphicsItem* itemAt(QGraphicsView* theWrappedObject, const QPoint& pos) const; - QGraphicsItem* itemAt(QGraphicsView* theWrappedObject, int x, int y) const; - QList items(QGraphicsView* theWrappedObject) const; - QList items(QGraphicsView* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList items(QGraphicsView* theWrappedObject, const QPoint& pos) const; - QList items(QGraphicsView* theWrappedObject, const QPolygon& polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList items(QGraphicsView* theWrappedObject, const QRect& rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - QList items(QGraphicsView* theWrappedObject, int x, int y) const; - QList items(QGraphicsView* theWrappedObject, int x, int y, int w, int h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; - void keyPressEvent(QGraphicsView* theWrappedObject, QKeyEvent* event); - void keyReleaseEvent(QGraphicsView* theWrappedObject, QKeyEvent* event); - QPainterPath mapFromScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const; - QPoint mapFromScene(QGraphicsView* theWrappedObject, const QPointF& point) const; - QPolygon mapFromScene(QGraphicsView* theWrappedObject, const QPolygonF& polygon) const; - QPolygon mapFromScene(QGraphicsView* theWrappedObject, const QRectF& rect) const; - QPoint mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y) const; - QPolygon mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; - QPainterPath mapToScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const; - QPointF mapToScene(QGraphicsView* theWrappedObject, const QPoint& point) const; - QPolygonF mapToScene(QGraphicsView* theWrappedObject, const QPolygon& polygon) const; - QPolygonF mapToScene(QGraphicsView* theWrappedObject, const QRect& rect) const; - QPointF mapToScene(QGraphicsView* theWrappedObject, int x, int y) const; - QPolygonF mapToScene(QGraphicsView* theWrappedObject, int x, int y, int w, int h) const; - QMatrix matrix(QGraphicsView* theWrappedObject) const; - void mouseDoubleClickEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); - void mouseMoveEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); - void mousePressEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); - void mouseReleaseEvent(QGraphicsView* theWrappedObject, QMouseEvent* event); - QGraphicsView::OptimizationFlags optimizationFlags(QGraphicsView* theWrappedObject) const; - void paintEvent(QGraphicsView* theWrappedObject, QPaintEvent* event); - void render(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& target = QRectF(), const QRect& source = QRect(), Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio); - QPainter::RenderHints renderHints(QGraphicsView* theWrappedObject) const; - void resetCachedContent(QGraphicsView* theWrappedObject); - void resetMatrix(QGraphicsView* theWrappedObject); - void resetTransform(QGraphicsView* theWrappedObject); - QGraphicsView::ViewportAnchor resizeAnchor(QGraphicsView* theWrappedObject) const; - void resizeEvent(QGraphicsView* theWrappedObject, QResizeEvent* event); - void rotate(QGraphicsView* theWrappedObject, qreal angle); - Qt::ItemSelectionMode rubberBandSelectionMode(QGraphicsView* theWrappedObject) const; - void scale(QGraphicsView* theWrappedObject, qreal sx, qreal sy); - QGraphicsScene* scene(QGraphicsView* theWrappedObject) const; - QRectF sceneRect(QGraphicsView* theWrappedObject) const; - void scrollContentsBy(QGraphicsView* theWrappedObject, int dx, int dy); - void setAlignment(QGraphicsView* theWrappedObject, Qt::Alignment alignment); - void setBackgroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush); - void setCacheMode(QGraphicsView* theWrappedObject, QGraphicsView::CacheMode mode); - void setDragMode(QGraphicsView* theWrappedObject, QGraphicsView::DragMode mode); - void setForegroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush); - void setInteractive(QGraphicsView* theWrappedObject, bool allowed); - void setMatrix(QGraphicsView* theWrappedObject, const QMatrix& matrix, bool combine = false); - void setOptimizationFlag(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlag flag, bool enabled = true); - void setOptimizationFlags(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlags flags); - void setRenderHint(QGraphicsView* theWrappedObject, QPainter::RenderHint hint, bool enabled = true); - void setRenderHints(QGraphicsView* theWrappedObject, QPainter::RenderHints hints); - void setResizeAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor); - void setRubberBandSelectionMode(QGraphicsView* theWrappedObject, Qt::ItemSelectionMode mode); - void setScene(QGraphicsView* theWrappedObject, QGraphicsScene* scene); - void setSceneRect(QGraphicsView* theWrappedObject, const QRectF& rect); - void setSceneRect(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - void setTransform(QGraphicsView* theWrappedObject, const QTransform& matrix, bool combine = false); - void setTransformationAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor); - void setViewportUpdateMode(QGraphicsView* theWrappedObject, QGraphicsView::ViewportUpdateMode mode); - void shear(QGraphicsView* theWrappedObject, qreal sh, qreal sv); - void showEvent(QGraphicsView* theWrappedObject, QShowEvent* event); - QSize sizeHint(QGraphicsView* theWrappedObject) const; - QTransform transform(QGraphicsView* theWrappedObject) const; - QGraphicsView::ViewportAnchor transformationAnchor(QGraphicsView* theWrappedObject) const; - void translate(QGraphicsView* theWrappedObject, qreal dx, qreal dy); - bool viewportEvent(QGraphicsView* theWrappedObject, QEvent* event); - QTransform viewportTransform(QGraphicsView* theWrappedObject) const; - QGraphicsView::ViewportUpdateMode viewportUpdateMode(QGraphicsView* theWrappedObject) const; - void wheelEvent(QGraphicsView* theWrappedObject, QWheelEvent* event); -}; - - - - - -class PythonQtShell_QGraphicsWidget : public QGraphicsWidget -{ -public: - PythonQtShell_QGraphicsWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0):QGraphicsWidget(parent, wFlags),_wrapper(NULL) {}; - -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool focusNextPrevChild(bool next); -virtual void getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const; -virtual void grabKeyboardEvent(QEvent* event); -virtual void grabMouseEvent(QEvent* event); -virtual void hideEvent(QHideEvent* event); -virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); -virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); -virtual void initStyleOption(QStyleOption* option) const; -virtual void moveEvent(QGraphicsSceneMoveEvent* event); -virtual void paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); -virtual void polishEvent(); -virtual QVariant propertyChange(const QString& propertyName, const QVariant& value); -virtual void resizeEvent(QGraphicsSceneResizeEvent* event); -virtual void setGeometry(const QRectF& rect); -virtual void showEvent(QShowEvent* event); -virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void ungrabKeyboardEvent(QEvent* event); -virtual void ungrabMouseEvent(QEvent* event); -virtual void updateGeometry(); -virtual bool windowFrameEvent(QEvent* e); -virtual Qt::WindowFrameSection windowFrameSectionAt(const QPointF& pos) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGraphicsWidget : public QGraphicsWidget -{ public: -inline void promoted_changeEvent(QEvent* event) { QGraphicsWidget::changeEvent(event); } -inline void promoted_closeEvent(QCloseEvent* event) { QGraphicsWidget::closeEvent(event); } -inline bool promoted_event(QEvent* event) { return QGraphicsWidget::event(event); } -inline bool promoted_focusNextPrevChild(bool next) { return QGraphicsWidget::focusNextPrevChild(next); } -inline void promoted_getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { QGraphicsWidget::getContentsMargins(left, top, right, bottom); } -inline void promoted_grabKeyboardEvent(QEvent* event) { QGraphicsWidget::grabKeyboardEvent(event); } -inline void promoted_grabMouseEvent(QEvent* event) { QGraphicsWidget::grabMouseEvent(event); } -inline void promoted_hideEvent(QHideEvent* event) { QGraphicsWidget::hideEvent(event); } -inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsWidget::hoverLeaveEvent(event); } -inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsWidget::hoverMoveEvent(event); } -inline void promoted_initStyleOption(QStyleOption* option) const { QGraphicsWidget::initStyleOption(option); } -inline void promoted_moveEvent(QGraphicsSceneMoveEvent* event) { QGraphicsWidget::moveEvent(event); } -inline void promoted_paintWindowFrame(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) { QGraphicsWidget::paintWindowFrame(painter, option, widget); } -inline void promoted_polishEvent() { QGraphicsWidget::polishEvent(); } -inline QVariant promoted_propertyChange(const QString& propertyName, const QVariant& value) { return QGraphicsWidget::propertyChange(propertyName, value); } -inline void promoted_resizeEvent(QGraphicsSceneResizeEvent* event) { QGraphicsWidget::resizeEvent(event); } -inline void promoted_setGeometry(const QRectF& rect) { QGraphicsWidget::setGeometry(rect); } -inline void promoted_showEvent(QShowEvent* event) { QGraphicsWidget::showEvent(event); } -inline QSizeF promoted_sizeHint(Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const { return QGraphicsWidget::sizeHint(which, constraint); } -inline void promoted_ungrabKeyboardEvent(QEvent* event) { QGraphicsWidget::ungrabKeyboardEvent(event); } -inline void promoted_ungrabMouseEvent(QEvent* event) { QGraphicsWidget::ungrabMouseEvent(event); } -inline void promoted_updateGeometry() { QGraphicsWidget::updateGeometry(); } -inline bool promoted_windowFrameEvent(QEvent* e) { return QGraphicsWidget::windowFrameEvent(e); } -inline Qt::WindowFrameSection promoted_windowFrameSectionAt(const QPointF& pos) const { return QGraphicsWidget::windowFrameSectionAt(pos); } -}; - -class PythonQtWrapper_QGraphicsWidget : public QObject -{ Q_OBJECT -public: -Q_ENUMS(enum_1 ) -enum enum_1{ - Type = QGraphicsWidget::Type}; -public slots: -QGraphicsWidget* new_QGraphicsWidget(QGraphicsItem* parent = 0, Qt::WindowFlags wFlags = 0); -void delete_QGraphicsWidget(QGraphicsWidget* obj) { delete obj; } - QList actions(QGraphicsWidget* theWrappedObject) const; - void addAction(QGraphicsWidget* theWrappedObject, QAction* action); - void addActions(QGraphicsWidget* theWrappedObject, QList actions); - void adjustSize(QGraphicsWidget* theWrappedObject); - QRectF boundingRect(QGraphicsWidget* theWrappedObject) const; - void changeEvent(QGraphicsWidget* theWrappedObject, QEvent* event); - void closeEvent(QGraphicsWidget* theWrappedObject, QCloseEvent* event); - bool event(QGraphicsWidget* theWrappedObject, QEvent* event); - bool focusNextPrevChild(QGraphicsWidget* theWrappedObject, bool next); - Qt::FocusPolicy focusPolicy(QGraphicsWidget* theWrappedObject) const; - QGraphicsWidget* focusWidget(QGraphicsWidget* theWrappedObject) const; - QFont font(QGraphicsWidget* theWrappedObject) const; - void getContentsMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; - void getWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom) const; - void grabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event); - void grabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event); - int grabShortcut(QGraphicsWidget* theWrappedObject, const QKeySequence& sequence, Qt::ShortcutContext context = Qt::WindowShortcut); - void hideEvent(QGraphicsWidget* theWrappedObject, QHideEvent* event); - void hoverLeaveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); - void hoverMoveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneHoverEvent* event); - void initStyleOption(QGraphicsWidget* theWrappedObject, QStyleOption* option) const; - void insertAction(QGraphicsWidget* theWrappedObject, QAction* before, QAction* action); - void insertActions(QGraphicsWidget* theWrappedObject, QAction* before, QList actions); - bool isActiveWindow(QGraphicsWidget* theWrappedObject) const; - QGraphicsLayout* layout(QGraphicsWidget* theWrappedObject) const; - Qt::LayoutDirection layoutDirection(QGraphicsWidget* theWrappedObject) const; - void moveEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneMoveEvent* event); - void paint(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - void paintWindowFrame(QGraphicsWidget* theWrappedObject, QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); - QPalette palette(QGraphicsWidget* theWrappedObject) const; - void polishEvent(QGraphicsWidget* theWrappedObject); - QVariant propertyChange(QGraphicsWidget* theWrappedObject, const QString& propertyName, const QVariant& value); - QRectF rect(QGraphicsWidget* theWrappedObject) const; - void releaseShortcut(QGraphicsWidget* theWrappedObject, int id); - void removeAction(QGraphicsWidget* theWrappedObject, QAction* action); - void resize(QGraphicsWidget* theWrappedObject, const QSizeF& size); - void resize(QGraphicsWidget* theWrappedObject, qreal w, qreal h); - void resizeEvent(QGraphicsWidget* theWrappedObject, QGraphicsSceneResizeEvent* event); - void setAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute, bool on = true); - void setContentsMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); - void setFocusPolicy(QGraphicsWidget* theWrappedObject, Qt::FocusPolicy policy); - void setFont(QGraphicsWidget* theWrappedObject, const QFont& font); - void setGeometry(QGraphicsWidget* theWrappedObject, const QRectF& rect); - void setGeometry(QGraphicsWidget* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - void setLayout(QGraphicsWidget* theWrappedObject, QGraphicsLayout* layout); - void setLayoutDirection(QGraphicsWidget* theWrappedObject, Qt::LayoutDirection direction); - void setPalette(QGraphicsWidget* theWrappedObject, const QPalette& palette); - void setShortcutAutoRepeat(QGraphicsWidget* theWrappedObject, int id, bool enabled = true); - void setShortcutEnabled(QGraphicsWidget* theWrappedObject, int id, bool enabled = true); - void setStyle(QGraphicsWidget* theWrappedObject, QStyle* style); - void static_QGraphicsWidget_setTabOrder(QGraphicsWidget* first, QGraphicsWidget* second); - void setWindowFlags(QGraphicsWidget* theWrappedObject, Qt::WindowFlags wFlags); - void setWindowFrameMargins(QGraphicsWidget* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom); - void setWindowTitle(QGraphicsWidget* theWrappedObject, const QString& title); - QPainterPath shape(QGraphicsWidget* theWrappedObject) const; - void showEvent(QGraphicsWidget* theWrappedObject, QShowEvent* event); - QSizeF size(QGraphicsWidget* theWrappedObject) const; - QSizeF sizeHint(QGraphicsWidget* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint = QSizeF()) const; - QStyle* style(QGraphicsWidget* theWrappedObject) const; - bool testAttribute(QGraphicsWidget* theWrappedObject, Qt::WidgetAttribute attribute) const; - int type(QGraphicsWidget* theWrappedObject) const; - void ungrabKeyboardEvent(QGraphicsWidget* theWrappedObject, QEvent* event); - void ungrabMouseEvent(QGraphicsWidget* theWrappedObject, QEvent* event); - void unsetLayoutDirection(QGraphicsWidget* theWrappedObject); - void unsetWindowFrameMargins(QGraphicsWidget* theWrappedObject); - void updateGeometry(QGraphicsWidget* theWrappedObject); - Qt::WindowFlags windowFlags(QGraphicsWidget* theWrappedObject) const; - bool windowFrameEvent(QGraphicsWidget* theWrappedObject, QEvent* e); - QRectF windowFrameGeometry(QGraphicsWidget* theWrappedObject) const; - QRectF windowFrameRect(QGraphicsWidget* theWrappedObject) const; - Qt::WindowFrameSection windowFrameSectionAt(QGraphicsWidget* theWrappedObject, const QPointF& pos) const; - QString windowTitle(QGraphicsWidget* theWrappedObject) const; - Qt::WindowType windowType(QGraphicsWidget* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGridLayout : public QGridLayout -{ -public: - PythonQtShell_QGridLayout():QGridLayout(),_wrapper(NULL) {}; - PythonQtShell_QGridLayout(QWidget* parent):QGridLayout(parent),_wrapper(NULL) {}; - -virtual void addItem(QLayoutItem* arg__1); -virtual void childEvent(QChildEvent* e); -virtual int count() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual int indexOf(QWidget* arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayoutItem* itemAt(int index) const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QLayoutItem* takeAt(int index); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGridLayout : public QGridLayout -{ public: -inline void promoted_addItem(QLayoutItem* arg__1) { QGridLayout::addItem(arg__1); } -inline int promoted_count() const { return QGridLayout::count(); } -inline Qt::Orientations promoted_expandingDirections() const { return QGridLayout::expandingDirections(); } -inline void promoted_invalidate() { QGridLayout::invalidate(); } -inline QLayoutItem* promoted_itemAt(int index) const { return QGridLayout::itemAt(index); } -inline QSize promoted_maximumSize() const { return QGridLayout::maximumSize(); } -inline QSize promoted_minimumSize() const { return QGridLayout::minimumSize(); } -inline void promoted_setGeometry(const QRect& arg__1) { QGridLayout::setGeometry(arg__1); } -inline QLayoutItem* promoted_takeAt(int index) { return QGridLayout::takeAt(index); } -}; - -class PythonQtWrapper_QGridLayout : public QObject -{ Q_OBJECT -public: -public slots: -QGridLayout* new_QGridLayout(); -QGridLayout* new_QGridLayout(QWidget* parent); -void delete_QGridLayout(QGridLayout* obj) { delete obj; } - void addItem(QGridLayout* theWrappedObject, QLayoutItem* arg__1); - void addItem(QGridLayout* theWrappedObject, QLayoutItem* item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment arg__6 = 0); - void addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, Qt::Alignment arg__4 = 0); - void addLayout(QGridLayout* theWrappedObject, QLayout* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6 = 0); - void addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, Qt::Alignment arg__4 = 0); - void addWidget(QGridLayout* theWrappedObject, QWidget* arg__1, int row, int column, int rowSpan, int columnSpan, Qt::Alignment arg__6 = 0); - QRect cellRect(QGridLayout* theWrappedObject, int row, int column) const; - int columnCount(QGridLayout* theWrappedObject) const; - int columnMinimumWidth(QGridLayout* theWrappedObject, int column) const; - int columnStretch(QGridLayout* theWrappedObject, int column) const; - int count(QGridLayout* theWrappedObject) const; - Qt::Orientations expandingDirections(QGridLayout* theWrappedObject) const; - void getItemPosition(QGridLayout* theWrappedObject, int idx, int* row, int* column, int* rowSpan, int* columnSpan); - bool hasHeightForWidth(QGridLayout* theWrappedObject) const; - int heightForWidth(QGridLayout* theWrappedObject, int arg__1) const; - int horizontalSpacing(QGridLayout* theWrappedObject) const; - void invalidate(QGridLayout* theWrappedObject); - QLayoutItem* itemAt(QGridLayout* theWrappedObject, int index) const; - QLayoutItem* itemAtPosition(QGridLayout* theWrappedObject, int row, int column) const; - QSize maximumSize(QGridLayout* theWrappedObject) const; - int minimumHeightForWidth(QGridLayout* theWrappedObject, int arg__1) const; - QSize minimumSize(QGridLayout* theWrappedObject) const; - Qt::Corner originCorner(QGridLayout* theWrappedObject) const; - int rowCount(QGridLayout* theWrappedObject) const; - int rowMinimumHeight(QGridLayout* theWrappedObject, int row) const; - int rowStretch(QGridLayout* theWrappedObject, int row) const; - void setColumnMinimumWidth(QGridLayout* theWrappedObject, int column, int minSize); - void setColumnStretch(QGridLayout* theWrappedObject, int column, int stretch); - void setDefaultPositioning(QGridLayout* theWrappedObject, int n, Qt::Orientation orient); - void setGeometry(QGridLayout* theWrappedObject, const QRect& arg__1); - void setHorizontalSpacing(QGridLayout* theWrappedObject, int spacing); - void setOriginCorner(QGridLayout* theWrappedObject, Qt::Corner arg__1); - void setRowMinimumHeight(QGridLayout* theWrappedObject, int row, int minSize); - void setRowStretch(QGridLayout* theWrappedObject, int row, int stretch); - void setSpacing(QGridLayout* theWrappedObject, int spacing); - void setVerticalSpacing(QGridLayout* theWrappedObject, int spacing); - QSize sizeHint(QGridLayout* theWrappedObject) const; - int spacing(QGridLayout* theWrappedObject) const; - QLayoutItem* takeAt(QGridLayout* theWrappedObject, int index); - int verticalSpacing(QGridLayout* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QGroupBox : public QGroupBox -{ -public: - PythonQtShell_QGroupBox(QWidget* parent = 0):QGroupBox(parent),_wrapper(NULL) {}; - PythonQtShell_QGroupBox(const QString& title, QWidget* parent = 0):QGroupBox(title, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* event); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QGroupBox : public QGroupBox -{ public: -inline void promoted_changeEvent(QEvent* event) { QGroupBox::changeEvent(event); } -inline void promoted_childEvent(QChildEvent* event) { QGroupBox::childEvent(event); } -inline bool promoted_event(QEvent* event) { return QGroupBox::event(event); } -inline void promoted_focusInEvent(QFocusEvent* event) { QGroupBox::focusInEvent(event); } -inline void promoted_mouseMoveEvent(QMouseEvent* event) { QGroupBox::mouseMoveEvent(event); } -inline void promoted_mousePressEvent(QMouseEvent* event) { QGroupBox::mousePressEvent(event); } -inline void promoted_mouseReleaseEvent(QMouseEvent* event) { QGroupBox::mouseReleaseEvent(event); } -inline void promoted_paintEvent(QPaintEvent* event) { QGroupBox::paintEvent(event); } -inline void promoted_resizeEvent(QResizeEvent* event) { QGroupBox::resizeEvent(event); } -}; - -class PythonQtWrapper_QGroupBox : public QObject -{ Q_OBJECT -public: -public slots: -QGroupBox* new_QGroupBox(QWidget* parent = 0); -QGroupBox* new_QGroupBox(const QString& title, QWidget* parent = 0); -void delete_QGroupBox(QGroupBox* obj) { delete obj; } - Qt::Alignment alignment(QGroupBox* theWrappedObject) const; - void changeEvent(QGroupBox* theWrappedObject, QEvent* event); - void childEvent(QGroupBox* theWrappedObject, QChildEvent* event); - bool event(QGroupBox* theWrappedObject, QEvent* event); - void focusInEvent(QGroupBox* theWrappedObject, QFocusEvent* event); - bool isCheckable(QGroupBox* theWrappedObject) const; - bool isChecked(QGroupBox* theWrappedObject) const; - bool isFlat(QGroupBox* theWrappedObject) const; - QSize minimumSizeHint(QGroupBox* theWrappedObject) const; - void mouseMoveEvent(QGroupBox* theWrappedObject, QMouseEvent* event); - void mousePressEvent(QGroupBox* theWrappedObject, QMouseEvent* event); - void mouseReleaseEvent(QGroupBox* theWrappedObject, QMouseEvent* event); - void paintEvent(QGroupBox* theWrappedObject, QPaintEvent* event); - void resizeEvent(QGroupBox* theWrappedObject, QResizeEvent* event); - void setAlignment(QGroupBox* theWrappedObject, int alignment); - void setCheckable(QGroupBox* theWrappedObject, bool checkable); - void setFlat(QGroupBox* theWrappedObject, bool flat); - void setTitle(QGroupBox* theWrappedObject, const QString& title); - QString title(QGroupBox* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QHBoxLayout : public QHBoxLayout -{ -public: - PythonQtShell_QHBoxLayout():QHBoxLayout(),_wrapper(NULL) {}; - PythonQtShell_QHBoxLayout(QWidget* parent):QHBoxLayout(parent),_wrapper(NULL) {}; - -virtual void addItem(QLayoutItem* arg__1); -virtual void childEvent(QChildEvent* e); -virtual int count() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual int indexOf(QWidget* arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayoutItem* itemAt(int arg__1) const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QLayoutItem* takeAt(int arg__1); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QHBoxLayout : public QObject -{ Q_OBJECT -public: -public slots: -QHBoxLayout* new_QHBoxLayout(); -QHBoxLayout* new_QHBoxLayout(QWidget* parent); -void delete_QHBoxLayout(QHBoxLayout* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QHeaderView : public QHeaderView -{ -public: - PythonQtShell_QHeaderView(Qt::Orientation orientation, QWidget* parent = 0):QHeaderView(orientation, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& old); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void dropEvent(QDropEvent* event); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* e); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const; -virtual void reset(); -virtual void resizeEvent(QResizeEvent* event); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); -virtual QSize sectionSizeFromContents(int logicalIndex) const; -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setModel(QAbstractItemModel* model); -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags flags); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* e); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QHeaderView : public QHeaderView -{ public: -inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& old) { QHeaderView::currentChanged(current, old); } -inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QHeaderView::dataChanged(topLeft, bottomRight); } -inline void promoted_doItemsLayout() { QHeaderView::doItemsLayout(); } -inline bool promoted_event(QEvent* e) { return QHeaderView::event(e); } -inline int promoted_horizontalOffset() const { return QHeaderView::horizontalOffset(); } -inline QModelIndex promoted_indexAt(const QPoint& p) const { return QHeaderView::indexAt(p); } -inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QHeaderView::isIndexHidden(index); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QHeaderView::mouseDoubleClickEvent(e); } -inline void promoted_mouseMoveEvent(QMouseEvent* e) { QHeaderView::mouseMoveEvent(e); } -inline void promoted_mousePressEvent(QMouseEvent* e) { QHeaderView::mousePressEvent(e); } -inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QHeaderView::mouseReleaseEvent(e); } -inline void promoted_paintEvent(QPaintEvent* e) { QHeaderView::paintEvent(e); } -inline void promoted_paintSection(QPainter* painter, const QRect& rect, int logicalIndex) const { QHeaderView::paintSection(painter, rect, logicalIndex); } -inline void promoted_reset() { QHeaderView::reset(); } -inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QHeaderView::rowsInserted(parent, start, end); } -inline void promoted_scrollContentsBy(int dx, int dy) { QHeaderView::scrollContentsBy(dx, dy); } -inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) { QHeaderView::scrollTo(index, hint); } -inline QSize promoted_sectionSizeFromContents(int logicalIndex) const { return QHeaderView::sectionSizeFromContents(logicalIndex); } -inline void promoted_setModel(QAbstractItemModel* model) { QHeaderView::setModel(model); } -inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags flags) { QHeaderView::setSelection(rect, flags); } -inline void promoted_updateGeometries() { QHeaderView::updateGeometries(); } -inline int promoted_verticalOffset() const { return QHeaderView::verticalOffset(); } -inline bool promoted_viewportEvent(QEvent* e) { return QHeaderView::viewportEvent(e); } -inline QRect promoted_visualRect(const QModelIndex& index) const { return QHeaderView::visualRect(index); } -inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QHeaderView::visualRegionForSelection(selection); } -}; - -class PythonQtWrapper_QHeaderView : public QObject -{ Q_OBJECT -public: -public slots: -QHeaderView* new_QHeaderView(Qt::Orientation orientation, QWidget* parent = 0); -void delete_QHeaderView(QHeaderView* obj) { delete obj; } - bool cascadingSectionResizes(QHeaderView* theWrappedObject) const; - int count(QHeaderView* theWrappedObject) const; - void currentChanged(QHeaderView* theWrappedObject, const QModelIndex& current, const QModelIndex& old); - void dataChanged(QHeaderView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight); - Qt::Alignment defaultAlignment(QHeaderView* theWrappedObject) const; - int defaultSectionSize(QHeaderView* theWrappedObject) const; - void doItemsLayout(QHeaderView* theWrappedObject); - bool event(QHeaderView* theWrappedObject, QEvent* e); - int hiddenSectionCount(QHeaderView* theWrappedObject) const; - void hideSection(QHeaderView* theWrappedObject, int logicalIndex); - bool highlightSections(QHeaderView* theWrappedObject) const; - int horizontalOffset(QHeaderView* theWrappedObject) const; - QModelIndex indexAt(QHeaderView* theWrappedObject, const QPoint& p) const; - bool isClickable(QHeaderView* theWrappedObject) const; - bool isIndexHidden(QHeaderView* theWrappedObject, const QModelIndex& index) const; - bool isMovable(QHeaderView* theWrappedObject) const; - bool isSectionHidden(QHeaderView* theWrappedObject, int logicalIndex) const; - bool isSortIndicatorShown(QHeaderView* theWrappedObject) const; - int length(QHeaderView* theWrappedObject) const; - int logicalIndex(QHeaderView* theWrappedObject, int visualIndex) const; - int logicalIndexAt(QHeaderView* theWrappedObject, const QPoint& pos) const; - int logicalIndexAt(QHeaderView* theWrappedObject, int position) const; - int logicalIndexAt(QHeaderView* theWrappedObject, int x, int y) const; - int minimumSectionSize(QHeaderView* theWrappedObject) const; - void mouseDoubleClickEvent(QHeaderView* theWrappedObject, QMouseEvent* e); - void mouseMoveEvent(QHeaderView* theWrappedObject, QMouseEvent* e); - void mousePressEvent(QHeaderView* theWrappedObject, QMouseEvent* e); - void mouseReleaseEvent(QHeaderView* theWrappedObject, QMouseEvent* e); - void moveSection(QHeaderView* theWrappedObject, int from, int to); - int offset(QHeaderView* theWrappedObject) const; - Qt::Orientation orientation(QHeaderView* theWrappedObject) const; - void paintEvent(QHeaderView* theWrappedObject, QPaintEvent* e); - void paintSection(QHeaderView* theWrappedObject, QPainter* painter, const QRect& rect, int logicalIndex) const; - void reset(QHeaderView* theWrappedObject); - QHeaderView::ResizeMode resizeMode(QHeaderView* theWrappedObject, int logicalIndex) const; - void resizeSection(QHeaderView* theWrappedObject, int logicalIndex, int size); - void resizeSections(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode); - bool restoreState(QHeaderView* theWrappedObject, const QByteArray& state); - void rowsInserted(QHeaderView* theWrappedObject, const QModelIndex& parent, int start, int end); - QByteArray saveState(QHeaderView* theWrappedObject) const; - void scrollContentsBy(QHeaderView* theWrappedObject, int dx, int dy); - void scrollTo(QHeaderView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint); - int sectionPosition(QHeaderView* theWrappedObject, int logicalIndex) const; - int sectionSize(QHeaderView* theWrappedObject, int logicalIndex) const; - QSize sectionSizeFromContents(QHeaderView* theWrappedObject, int logicalIndex) const; - int sectionSizeHint(QHeaderView* theWrappedObject, int logicalIndex) const; - int sectionViewportPosition(QHeaderView* theWrappedObject, int logicalIndex) const; - bool sectionsHidden(QHeaderView* theWrappedObject) const; - bool sectionsMoved(QHeaderView* theWrappedObject) const; - void setCascadingSectionResizes(QHeaderView* theWrappedObject, bool enable); - void setClickable(QHeaderView* theWrappedObject, bool clickable); - void setDefaultAlignment(QHeaderView* theWrappedObject, Qt::Alignment alignment); - void setDefaultSectionSize(QHeaderView* theWrappedObject, int size); - void setHighlightSections(QHeaderView* theWrappedObject, bool highlight); - void setMinimumSectionSize(QHeaderView* theWrappedObject, int size); - void setModel(QHeaderView* theWrappedObject, QAbstractItemModel* model); - void setMovable(QHeaderView* theWrappedObject, bool movable); - void setResizeMode(QHeaderView* theWrappedObject, QHeaderView::ResizeMode mode); - void setResizeMode(QHeaderView* theWrappedObject, int logicalIndex, QHeaderView::ResizeMode mode); - void setSectionHidden(QHeaderView* theWrappedObject, int logicalIndex, bool hide); - void setSelection(QHeaderView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags flags); - void setSortIndicator(QHeaderView* theWrappedObject, int logicalIndex, Qt::SortOrder order); - void setSortIndicatorShown(QHeaderView* theWrappedObject, bool show); - void setStretchLastSection(QHeaderView* theWrappedObject, bool stretch); - void showSection(QHeaderView* theWrappedObject, int logicalIndex); - QSize sizeHint(QHeaderView* theWrappedObject) const; - Qt::SortOrder sortIndicatorOrder(QHeaderView* theWrappedObject) const; - int sortIndicatorSection(QHeaderView* theWrappedObject) const; - bool stretchLastSection(QHeaderView* theWrappedObject) const; - int stretchSectionCount(QHeaderView* theWrappedObject) const; - void swapSections(QHeaderView* theWrappedObject, int first, int second); - void updateGeometries(QHeaderView* theWrappedObject); - int verticalOffset(QHeaderView* theWrappedObject) const; - bool viewportEvent(QHeaderView* theWrappedObject, QEvent* e); - int visualIndex(QHeaderView* theWrappedObject, int logicalIndex) const; - int visualIndexAt(QHeaderView* theWrappedObject, int position) const; - QRect visualRect(QHeaderView* theWrappedObject, const QModelIndex& index) const; - QRegion visualRegionForSelection(QHeaderView* theWrappedObject, const QItemSelection& selection) const; -}; - - - - - -class PythonQtWrapper_QHelpEvent : public QObject -{ Q_OBJECT -public: -public slots: -QHelpEvent* new_QHelpEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos); -void delete_QHelpEvent(QHelpEvent* obj) { delete obj; } - const QPoint* globalPos(QHelpEvent* theWrappedObject) const; - int globalX(QHelpEvent* theWrappedObject) const; - int globalY(QHelpEvent* theWrappedObject) const; - const QPoint* pos(QHelpEvent* theWrappedObject) const; - int x(QHelpEvent* theWrappedObject) const; - int y(QHelpEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QHideEvent : public QObject -{ Q_OBJECT -public: -public slots: -QHideEvent* new_QHideEvent(); -void delete_QHideEvent(QHideEvent* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QHoverEvent : public QHoverEvent -{ -public: - PythonQtShell_QHoverEvent(QEvent::Type type, const QPoint& pos, const QPoint& oldPos):QHoverEvent(type, pos, oldPos),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QHoverEvent : public QObject -{ Q_OBJECT -public: -public slots: -QHoverEvent* new_QHoverEvent(QEvent::Type type, const QPoint& pos, const QPoint& oldPos); -void delete_QHoverEvent(QHoverEvent* obj) { delete obj; } - const QPoint* oldPos(QHoverEvent* theWrappedObject) const; - const QPoint* pos(QHoverEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QIconDragEvent : public QObject -{ Q_OBJECT -public: -public slots: -QIconDragEvent* new_QIconDragEvent(); -void delete_QIconDragEvent(QIconDragEvent* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QIconEngine : public QIconEngine -{ -public: - PythonQtShell_QIconEngine():QIconEngine(),_wrapper(NULL) {}; - -virtual QSize actualSize(const QSize& size, QIcon::Mode mode, QIcon::State state); -virtual void addFile(const QString& fileName, const QSize& size, QIcon::Mode mode, QIcon::State state); -virtual void addPixmap(const QPixmap& pixmap, QIcon::Mode mode, QIcon::State state); -virtual void paint(QPainter* painter, const QRect& rect, QIcon::Mode mode, QIcon::State state); -virtual QPixmap pixmap(const QSize& size, QIcon::Mode mode, QIcon::State state); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QIconEngine : public QIconEngine -{ public: -inline QSize promoted_actualSize(const QSize& size, QIcon::Mode mode, QIcon::State state) { return QIconEngine::actualSize(size, mode, state); } -inline void promoted_addFile(const QString& fileName, const QSize& size, QIcon::Mode mode, QIcon::State state) { QIconEngine::addFile(fileName, size, mode, state); } -inline void promoted_addPixmap(const QPixmap& pixmap, QIcon::Mode mode, QIcon::State state) { QIconEngine::addPixmap(pixmap, mode, state); } -inline QPixmap promoted_pixmap(const QSize& size, QIcon::Mode mode, QIcon::State state) { return QIconEngine::pixmap(size, mode, state); } -}; - -class PythonQtWrapper_QIconEngine : public QObject -{ Q_OBJECT -public: -public slots: -QIconEngine* new_QIconEngine(); -void delete_QIconEngine(QIconEngine* obj) { delete obj; } - QSize actualSize(QIconEngine* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state); - void addFile(QIconEngine* theWrappedObject, const QString& fileName, const QSize& size, QIcon::Mode mode, QIcon::State state); - void addPixmap(QIconEngine* theWrappedObject, const QPixmap& pixmap, QIcon::Mode mode, QIcon::State state); - QPixmap pixmap(QIconEngine* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state); -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp deleted file mode 100644 index db8802b63..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp +++ /dev/null @@ -1,14382 +0,0 @@ -#include "com_trolltech_qt_gui4.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QIconEnginePluginV2::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIconEnginePluginV2::childEvent(arg__1); -} -QIconEngineV2* PythonQtShell_QIconEnginePluginV2::create(const QString& filename) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIconEngineV2*" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIconEngineV2* returnValue; - void* args[2] = {NULL, (void*)&filename}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); - } else { - returnValue = *((QIconEngineV2**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QIconEnginePluginV2::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIconEnginePluginV2::customEvent(arg__1); -} -bool PythonQtShell_QIconEnginePluginV2::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIconEnginePluginV2::event(arg__1); -} -bool PythonQtShell_QIconEnginePluginV2::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIconEnginePluginV2::eventFilter(arg__1, arg__2); -} -QStringList PythonQtShell_QIconEnginePluginV2::keys() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keys"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("keys", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -void PythonQtShell_QIconEnginePluginV2::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIconEnginePluginV2::timerEvent(arg__1); -} -QIconEnginePluginV2* PythonQtWrapper_QIconEnginePluginV2::new_QIconEnginePluginV2(QObject* parent) -{ -return new PythonQtShell_QIconEnginePluginV2(parent); } - - - -bool PythonQtShell_QImageIOHandler::canRead() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -int PythonQtShell_QImageIOHandler::currentImageNumber() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentImageNumber"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("currentImageNumber", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::currentImageNumber(); -} -QRect PythonQtShell_QImageIOHandler::currentImageRect() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentImageRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("currentImageRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::currentImageRect(); -} -int PythonQtShell_QImageIOHandler::imageCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "imageCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("imageCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::imageCount(); -} -bool PythonQtShell_QImageIOHandler::jumpToImage(int imageNumber) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "jumpToImage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&imageNumber}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("jumpToImage", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::jumpToImage(imageNumber); -} -bool PythonQtShell_QImageIOHandler::jumpToNextImage() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "jumpToNextImage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("jumpToNextImage", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::jumpToNextImage(); -} -int PythonQtShell_QImageIOHandler::loopCount() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loopCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("loopCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::loopCount(); -} -QByteArray PythonQtShell_QImageIOHandler::name() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QByteArray"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QByteArray returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("name", methodInfo, result); - } else { - returnValue = *((QByteArray*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::name(); -} -int PythonQtShell_QImageIOHandler::nextImageDelay() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextImageDelay"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("nextImageDelay", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::nextImageDelay(); -} -QVariant PythonQtShell_QImageIOHandler::option(QImageIOHandler::ImageOption option) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "option"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QImageIOHandler::ImageOption"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&option}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("option", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::option(option); -} -bool PythonQtShell_QImageIOHandler::read(QImage* image) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QImage*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&image}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("read", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -void PythonQtShell_QImageIOHandler::setOption(QImageIOHandler::ImageOption option, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setOption"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QImageIOHandler::ImageOption" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&option, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QImageIOHandler::setOption(option, value); -} -bool PythonQtShell_QImageIOHandler::supportsOption(QImageIOHandler::ImageOption option) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportsOption"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QImageIOHandler::ImageOption"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&option}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportsOption", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::supportsOption(option); -} -bool PythonQtShell_QImageIOHandler::write(const QImage& image) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QImage&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&image}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("write", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOHandler::write(image); -} -QImageIOHandler* PythonQtWrapper_QImageIOHandler::new_QImageIOHandler() -{ -return new PythonQtShell_QImageIOHandler(); } - -int PythonQtWrapper_QImageIOHandler::currentImageNumber(QImageIOHandler* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_currentImageNumber()); -} - -QRect PythonQtWrapper_QImageIOHandler::currentImageRect(QImageIOHandler* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_currentImageRect()); -} - -QIODevice* PythonQtWrapper_QImageIOHandler::device(QImageIOHandler* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -QByteArray PythonQtWrapper_QImageIOHandler::format(QImageIOHandler* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -int PythonQtWrapper_QImageIOHandler::imageCount(QImageIOHandler* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_imageCount()); -} - -bool PythonQtWrapper_QImageIOHandler::jumpToImage(QImageIOHandler* theWrappedObject, int imageNumber) -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_jumpToImage(imageNumber)); -} - -bool PythonQtWrapper_QImageIOHandler::jumpToNextImage(QImageIOHandler* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_jumpToNextImage()); -} - -int PythonQtWrapper_QImageIOHandler::loopCount(QImageIOHandler* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_loopCount()); -} - -int PythonQtWrapper_QImageIOHandler::nextImageDelay(QImageIOHandler* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_nextImageDelay()); -} - -QVariant PythonQtWrapper_QImageIOHandler::option(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_option(option)); -} - -void PythonQtWrapper_QImageIOHandler::setDevice(QImageIOHandler* theWrappedObject, QIODevice* device) -{ - ( theWrappedObject->setDevice(device)); -} - -void PythonQtWrapper_QImageIOHandler::setFormat(QImageIOHandler* theWrappedObject, const QByteArray& format) -{ - ( theWrappedObject->setFormat(format)); -} - -void PythonQtWrapper_QImageIOHandler::setOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option, const QVariant& value) -{ - ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_setOption(option, value)); -} - -bool PythonQtWrapper_QImageIOHandler::supportsOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_supportsOption(option)); -} - -bool PythonQtWrapper_QImageIOHandler::write(QImageIOHandler* theWrappedObject, const QImage& image) -{ - return ( ((PythonQtPublicPromoter_QImageIOHandler*)theWrappedObject)->promoted_write(image)); -} - - - -QImageIOPlugin::Capabilities PythonQtShell_QImageIOPlugin::capabilities(QIODevice* device, const QByteArray& format) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "capabilities"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QImageIOPlugin::Capabilities" , "QIODevice*" , "const QByteArray&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QImageIOPlugin::Capabilities returnValue = 0; - void* args[3] = {NULL, (void*)&device, (void*)&format}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("capabilities", methodInfo, result); - } else { - returnValue = *((QImageIOPlugin::Capabilities*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOPlugin::Capabilities(); -} -void PythonQtShell_QImageIOPlugin::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QImageIOPlugin::childEvent(arg__1); -} -QImageIOHandler* PythonQtShell_QImageIOPlugin::create(QIODevice* device, const QByteArray& format) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QImageIOHandler*" , "QIODevice*" , "const QByteArray&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QImageIOHandler* returnValue = 0; - void* args[3] = {NULL, (void*)&device, (void*)&format}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); - } else { - returnValue = *((QImageIOHandler**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QImageIOPlugin::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QImageIOPlugin::customEvent(arg__1); -} -bool PythonQtShell_QImageIOPlugin::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOPlugin::event(arg__1); -} -bool PythonQtShell_QImageIOPlugin::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImageIOPlugin::eventFilter(arg__1, arg__2); -} -QStringList PythonQtShell_QImageIOPlugin::keys() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keys"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("keys", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -void PythonQtShell_QImageIOPlugin::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QImageIOPlugin::timerEvent(arg__1); -} -QImageIOPlugin* PythonQtWrapper_QImageIOPlugin::new_QImageIOPlugin(QObject* parent) -{ -return new PythonQtShell_QImageIOPlugin(parent); } - - - -QImageReader* PythonQtWrapper_QImageReader::new_QImageReader() -{ -return new QImageReader(); } - -QImageReader* PythonQtWrapper_QImageReader::new_QImageReader(QIODevice* device, const QByteArray& format) -{ -return new QImageReader(device, format); } - -QImageReader* PythonQtWrapper_QImageReader::new_QImageReader(const QString& fileName, const QByteArray& format) -{ -return new QImageReader(fileName, format); } - -bool PythonQtWrapper_QImageReader::autoDetectImageFormat(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->autoDetectImageFormat()); -} - -QColor PythonQtWrapper_QImageReader::backgroundColor(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->backgroundColor()); -} - -bool PythonQtWrapper_QImageReader::canRead(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->canRead()); -} - -QRect PythonQtWrapper_QImageReader::clipRect(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->clipRect()); -} - -int PythonQtWrapper_QImageReader::currentImageNumber(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->currentImageNumber()); -} - -QRect PythonQtWrapper_QImageReader::currentImageRect(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->currentImageRect()); -} - -bool PythonQtWrapper_QImageReader::decideFormatFromContent(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->decideFormatFromContent()); -} - -QIODevice* PythonQtWrapper_QImageReader::device(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -QImageReader::ImageReaderError PythonQtWrapper_QImageReader::error(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -QString PythonQtWrapper_QImageReader::errorString(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -QString PythonQtWrapper_QImageReader::fileName(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QByteArray PythonQtWrapper_QImageReader::format(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -int PythonQtWrapper_QImageReader::imageCount(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->imageCount()); -} - -QImage::Format PythonQtWrapper_QImageReader::imageFormat(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->imageFormat()); -} - -QByteArray PythonQtWrapper_QImageReader::static_QImageReader_imageFormat(QIODevice* device) -{ - return (QImageReader::imageFormat(device)); -} - -QByteArray PythonQtWrapper_QImageReader::static_QImageReader_imageFormat(const QString& fileName) -{ - return (QImageReader::imageFormat(fileName)); -} - -bool PythonQtWrapper_QImageReader::jumpToImage(QImageReader* theWrappedObject, int imageNumber) -{ - return ( theWrappedObject->jumpToImage(imageNumber)); -} - -bool PythonQtWrapper_QImageReader::jumpToNextImage(QImageReader* theWrappedObject) -{ - return ( theWrappedObject->jumpToNextImage()); -} - -int PythonQtWrapper_QImageReader::loopCount(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->loopCount()); -} - -int PythonQtWrapper_QImageReader::nextImageDelay(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->nextImageDelay()); -} - -int PythonQtWrapper_QImageReader::quality(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->quality()); -} - -QImage PythonQtWrapper_QImageReader::read(QImageReader* theWrappedObject) -{ - return ( theWrappedObject->read()); -} - -QRect PythonQtWrapper_QImageReader::scaledClipRect(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->scaledClipRect()); -} - -QSize PythonQtWrapper_QImageReader::scaledSize(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->scaledSize()); -} - -void PythonQtWrapper_QImageReader::setAutoDetectImageFormat(QImageReader* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setAutoDetectImageFormat(enabled)); -} - -void PythonQtWrapper_QImageReader::setBackgroundColor(QImageReader* theWrappedObject, const QColor& color) -{ - ( theWrappedObject->setBackgroundColor(color)); -} - -void PythonQtWrapper_QImageReader::setClipRect(QImageReader* theWrappedObject, const QRect& rect) -{ - ( theWrappedObject->setClipRect(rect)); -} - -void PythonQtWrapper_QImageReader::setDecideFormatFromContent(QImageReader* theWrappedObject, bool ignored) -{ - ( theWrappedObject->setDecideFormatFromContent(ignored)); -} - -void PythonQtWrapper_QImageReader::setDevice(QImageReader* theWrappedObject, QIODevice* device) -{ - ( theWrappedObject->setDevice(device)); -} - -void PythonQtWrapper_QImageReader::setFileName(QImageReader* theWrappedObject, const QString& fileName) -{ - ( theWrappedObject->setFileName(fileName)); -} - -void PythonQtWrapper_QImageReader::setFormat(QImageReader* theWrappedObject, const QByteArray& format) -{ - ( theWrappedObject->setFormat(format)); -} - -void PythonQtWrapper_QImageReader::setQuality(QImageReader* theWrappedObject, int quality) -{ - ( theWrappedObject->setQuality(quality)); -} - -void PythonQtWrapper_QImageReader::setScaledClipRect(QImageReader* theWrappedObject, const QRect& rect) -{ - ( theWrappedObject->setScaledClipRect(rect)); -} - -void PythonQtWrapper_QImageReader::setScaledSize(QImageReader* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setScaledSize(size)); -} - -QSize PythonQtWrapper_QImageReader::size(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QList PythonQtWrapper_QImageReader::static_QImageReader_supportedImageFormats() -{ - return (QImageReader::supportedImageFormats()); -} - -bool PythonQtWrapper_QImageReader::supportsAnimation(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->supportsAnimation()); -} - -bool PythonQtWrapper_QImageReader::supportsOption(QImageReader* theWrappedObject, QImageIOHandler::ImageOption option) const -{ - return ( theWrappedObject->supportsOption(option)); -} - -QString PythonQtWrapper_QImageReader::text(QImageReader* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->text(key)); -} - -QStringList PythonQtWrapper_QImageReader::textKeys(QImageReader* theWrappedObject) const -{ - return ( theWrappedObject->textKeys()); -} - - - -QImageWriter* PythonQtWrapper_QImageWriter::new_QImageWriter() -{ -return new QImageWriter(); } - -QImageWriter* PythonQtWrapper_QImageWriter::new_QImageWriter(QIODevice* device, const QByteArray& format) -{ -return new QImageWriter(device, format); } - -QImageWriter* PythonQtWrapper_QImageWriter::new_QImageWriter(const QString& fileName, const QByteArray& format) -{ -return new QImageWriter(fileName, format); } - -bool PythonQtWrapper_QImageWriter::canWrite(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->canWrite()); -} - -int PythonQtWrapper_QImageWriter::compression(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->compression()); -} - -QIODevice* PythonQtWrapper_QImageWriter::device(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -QImageWriter::ImageWriterError PythonQtWrapper_QImageWriter::error(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -QString PythonQtWrapper_QImageWriter::errorString(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -QString PythonQtWrapper_QImageWriter::fileName(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QByteArray PythonQtWrapper_QImageWriter::format(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -float PythonQtWrapper_QImageWriter::gamma(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->gamma()); -} - -int PythonQtWrapper_QImageWriter::quality(QImageWriter* theWrappedObject) const -{ - return ( theWrappedObject->quality()); -} - -void PythonQtWrapper_QImageWriter::setCompression(QImageWriter* theWrappedObject, int compression) -{ - ( theWrappedObject->setCompression(compression)); -} - -void PythonQtWrapper_QImageWriter::setDevice(QImageWriter* theWrappedObject, QIODevice* device) -{ - ( theWrappedObject->setDevice(device)); -} - -void PythonQtWrapper_QImageWriter::setFileName(QImageWriter* theWrappedObject, const QString& fileName) -{ - ( theWrappedObject->setFileName(fileName)); -} - -void PythonQtWrapper_QImageWriter::setFormat(QImageWriter* theWrappedObject, const QByteArray& format) -{ - ( theWrappedObject->setFormat(format)); -} - -void PythonQtWrapper_QImageWriter::setGamma(QImageWriter* theWrappedObject, float gamma) -{ - ( theWrappedObject->setGamma(gamma)); -} - -void PythonQtWrapper_QImageWriter::setQuality(QImageWriter* theWrappedObject, int quality) -{ - ( theWrappedObject->setQuality(quality)); -} - -void PythonQtWrapper_QImageWriter::setText(QImageWriter* theWrappedObject, const QString& key, const QString& text) -{ - ( theWrappedObject->setText(key, text)); -} - -QList PythonQtWrapper_QImageWriter::static_QImageWriter_supportedImageFormats() -{ - return (QImageWriter::supportedImageFormats()); -} - -bool PythonQtWrapper_QImageWriter::supportsOption(QImageWriter* theWrappedObject, QImageIOHandler::ImageOption option) const -{ - return ( theWrappedObject->supportsOption(option)); -} - -bool PythonQtWrapper_QImageWriter::write(QImageWriter* theWrappedObject, const QImage& image) -{ - return ( theWrappedObject->write(image)); -} - - - -QList PythonQtShell_QInputContext::actions() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("actions", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputContext::actions(); -} -void PythonQtShell_QInputContext::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContext::childEvent(arg__1); -} -void PythonQtShell_QInputContext::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContext::customEvent(arg__1); -} -bool PythonQtShell_QInputContext::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputContext::event(arg__1); -} -bool PythonQtShell_QInputContext::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputContext::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QInputContext::filterEvent(const QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "filterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("filterEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputContext::filterEvent(event); -} -QFont PythonQtShell_QInputContext::font() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "font"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QFont"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QFont returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("font", methodInfo, result); - } else { - returnValue = *((QFont*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputContext::font(); -} -QString PythonQtShell_QInputContext::identifierName() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "identifierName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("identifierName", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -bool PythonQtShell_QInputContext::isComposing() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isComposing"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isComposing", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -QString PythonQtShell_QInputContext::language() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "language"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("language", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -void PythonQtShell_QInputContext::mouseHandler(int x, QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseHandler"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&x, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContext::mouseHandler(x, event); -} -void PythonQtShell_QInputContext::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QInputContext::setFocusWidget(QWidget* w) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFocusWidget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContext::setFocusWidget(w); -} -void PythonQtShell_QInputContext::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContext::timerEvent(arg__1); -} -void PythonQtShell_QInputContext::update() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "update"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContext::update(); -} -void PythonQtShell_QInputContext::widgetDestroyed(QWidget* w) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContext::widgetDestroyed(w); -} -QInputContext* PythonQtWrapper_QInputContext::new_QInputContext(QObject* parent) -{ -return new PythonQtShell_QInputContext(parent); } - -QList PythonQtWrapper_QInputContext::actions(QInputContext* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QInputContext*)theWrappedObject)->promoted_actions()); -} - -bool PythonQtWrapper_QInputContext::filterEvent(QInputContext* theWrappedObject, const QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QInputContext*)theWrappedObject)->promoted_filterEvent(event)); -} - -QWidget* PythonQtWrapper_QInputContext::focusWidget(QInputContext* theWrappedObject) const -{ - return ( theWrappedObject->focusWidget()); -} - -QFont PythonQtWrapper_QInputContext::font(QInputContext* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QInputContext*)theWrappedObject)->promoted_font()); -} - -void PythonQtWrapper_QInputContext::mouseHandler(QInputContext* theWrappedObject, int x, QMouseEvent* event) -{ - ( ((PythonQtPublicPromoter_QInputContext*)theWrappedObject)->promoted_mouseHandler(x, event)); -} - -void PythonQtWrapper_QInputContext::sendEvent(QInputContext* theWrappedObject, const QInputMethodEvent& event) -{ - ( theWrappedObject->sendEvent(event)); -} - -QTextFormat PythonQtWrapper_QInputContext::standardFormat(QInputContext* theWrappedObject, QInputContext::StandardFormat s) const -{ - return ( theWrappedObject->standardFormat(s)); -} - -void PythonQtWrapper_QInputContext::update(QInputContext* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QInputContext*)theWrappedObject)->promoted_update()); -} - -void PythonQtWrapper_QInputContext::widgetDestroyed(QInputContext* theWrappedObject, QWidget* w) -{ - ( ((PythonQtPublicPromoter_QInputContext*)theWrappedObject)->promoted_widgetDestroyed(w)); -} - - - -QInputContextFactory* PythonQtWrapper_QInputContextFactory::new_QInputContextFactory() -{ -return new PythonQtShell_QInputContextFactory(); } - -QInputContext* PythonQtWrapper_QInputContextFactory::static_QInputContextFactory_create(const QString& key, QObject* parent) -{ - return (QInputContextFactory::create(key, parent)); -} - -QString PythonQtWrapper_QInputContextFactory::static_QInputContextFactory_description(const QString& key) -{ - return (QInputContextFactory::description(key)); -} - -QString PythonQtWrapper_QInputContextFactory::static_QInputContextFactory_displayName(const QString& key) -{ - return (QInputContextFactory::displayName(key)); -} - -QStringList PythonQtWrapper_QInputContextFactory::static_QInputContextFactory_keys() -{ - return (QInputContextFactory::keys()); -} - -QStringList PythonQtWrapper_QInputContextFactory::static_QInputContextFactory_languages(const QString& key) -{ - return (QInputContextFactory::languages(key)); -} - - - -void PythonQtShell_QInputContextPlugin::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContextPlugin::childEvent(arg__1); -} -QInputContext* PythonQtShell_QInputContextPlugin::create(const QString& key) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QInputContext*" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QInputContext* returnValue = 0; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); - } else { - returnValue = *((QInputContext**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QInputContextPlugin::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContextPlugin::customEvent(arg__1); -} -QString PythonQtShell_QInputContextPlugin::description(const QString& key) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "description"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("description", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -QString PythonQtShell_QInputContextPlugin::displayName(const QString& key) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "displayName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("displayName", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -bool PythonQtShell_QInputContextPlugin::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputContextPlugin::event(arg__1); -} -bool PythonQtShell_QInputContextPlugin::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputContextPlugin::eventFilter(arg__1, arg__2); -} -QStringList PythonQtShell_QInputContextPlugin::keys() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keys"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("keys", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -QStringList PythonQtShell_QInputContextPlugin::languages(const QString& key) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languages"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QStringList returnValue; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("languages", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -void PythonQtShell_QInputContextPlugin::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputContextPlugin::timerEvent(arg__1); -} -QInputContextPlugin* PythonQtWrapper_QInputContextPlugin::new_QInputContextPlugin(QObject* parent) -{ -return new PythonQtShell_QInputContextPlugin(parent); } - - - -void PythonQtShell_QInputDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::accept(); -} -void PythonQtShell_QInputDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::actionEvent(arg__1); -} -void PythonQtShell_QInputDialog::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::changeEvent(arg__1); -} -void PythonQtShell_QInputDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::childEvent(arg__1); -} -void PythonQtShell_QInputDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::closeEvent(arg__1); -} -void PythonQtShell_QInputDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QInputDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::customEvent(arg__1); -} -int PythonQtShell_QInputDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::devType(); -} -void PythonQtShell_QInputDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::done(result); -} -void PythonQtShell_QInputDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QInputDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QInputDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QInputDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::dropEvent(arg__1); -} -void PythonQtShell_QInputDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::enterEvent(arg__1); -} -bool PythonQtShell_QInputDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::event(arg__1); -} -bool PythonQtShell_QInputDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QInputDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QInputDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::focusNextPrevChild(next); -} -void PythonQtShell_QInputDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QInputDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::heightForWidth(arg__1); -} -void PythonQtShell_QInputDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::hideEvent(arg__1); -} -void PythonQtShell_QInputDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QInputDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QInputDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QInputDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QInputDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::languageChange(); -} -void PythonQtShell_QInputDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::leaveEvent(arg__1); -} -int PythonQtShell_QInputDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::metric(arg__1); -} -void PythonQtShell_QInputDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QInputDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QInputDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QInputDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QInputDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QInputDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QInputDialog::paintEngine(); -} -void PythonQtShell_QInputDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::paintEvent(arg__1); -} -void PythonQtShell_QInputDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::reject(); -} -void PythonQtShell_QInputDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::resizeEvent(arg__1); -} -void PythonQtShell_QInputDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::showEvent(arg__1); -} -void PythonQtShell_QInputDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::tabletEvent(arg__1); -} -void PythonQtShell_QInputDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::timerEvent(arg__1); -} -void PythonQtShell_QInputDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QInputDialog::wheelEvent(arg__1); -} -QInputDialog* PythonQtWrapper_QInputDialog::new_QInputDialog(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QInputDialog(parent, flags); } - -QString PythonQtWrapper_QInputDialog::cancelButtonText(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->cancelButtonText()); -} - -QStringList PythonQtWrapper_QInputDialog::comboBoxItems(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->comboBoxItems()); -} - -void PythonQtWrapper_QInputDialog::done(QInputDialog* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QInputDialog*)theWrappedObject)->promoted_done(result)); -} - -int PythonQtWrapper_QInputDialog::doubleDecimals(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->doubleDecimals()); -} - -double PythonQtWrapper_QInputDialog::doubleMaximum(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->doubleMaximum()); -} - -double PythonQtWrapper_QInputDialog::doubleMinimum(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->doubleMinimum()); -} - -double PythonQtWrapper_QInputDialog::doubleValue(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->doubleValue()); -} - -double PythonQtWrapper_QInputDialog::static_QInputDialog_getDouble(QWidget* parent, const QString& title, const QString& label, double value, double minValue, double maxValue, int decimals, bool* ok, Qt::WindowFlags flags) -{ - return (QInputDialog::getDouble(parent, title, label, value, minValue, maxValue, decimals, ok, flags)); -} - -int PythonQtWrapper_QInputDialog::static_QInputDialog_getInt(QWidget* parent, const QString& title, const QString& label, int value, int minValue, int maxValue, int step, bool* ok, Qt::WindowFlags flags) -{ - return (QInputDialog::getInt(parent, title, label, value, minValue, maxValue, step, ok, flags)); -} - -int PythonQtWrapper_QInputDialog::static_QInputDialog_getInteger(QWidget* parent, const QString& title, const QString& label, int value, int minValue, int maxValue, int step, bool* ok, Qt::WindowFlags flags) -{ - return (QInputDialog::getInteger(parent, title, label, value, minValue, maxValue, step, ok, flags)); -} - -QString PythonQtWrapper_QInputDialog::static_QInputDialog_getItem(QWidget* parent, const QString& title, const QString& label, const QStringList& items, int current, bool editable, bool* ok, Qt::WindowFlags flags) -{ - return (QInputDialog::getItem(parent, title, label, items, current, editable, ok, flags)); -} - -QString PythonQtWrapper_QInputDialog::static_QInputDialog_getText(QWidget* parent, const QString& title, const QString& label, QLineEdit::EchoMode echo, const QString& text, bool* ok, Qt::WindowFlags flags) -{ - return (QInputDialog::getText(parent, title, label, echo, text, ok, flags)); -} - -QInputDialog::InputMode PythonQtWrapper_QInputDialog::inputMode(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->inputMode()); -} - -int PythonQtWrapper_QInputDialog::intMaximum(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->intMaximum()); -} - -int PythonQtWrapper_QInputDialog::intMinimum(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->intMinimum()); -} - -int PythonQtWrapper_QInputDialog::intStep(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->intStep()); -} - -int PythonQtWrapper_QInputDialog::intValue(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->intValue()); -} - -bool PythonQtWrapper_QInputDialog::isComboBoxEditable(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->isComboBoxEditable()); -} - -QString PythonQtWrapper_QInputDialog::labelText(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->labelText()); -} - -QSize PythonQtWrapper_QInputDialog::minimumSizeHint(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -QString PythonQtWrapper_QInputDialog::okButtonText(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->okButtonText()); -} - -void PythonQtWrapper_QInputDialog::open(QInputDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QInputDialog::open(QInputDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QInputDialog::InputDialogOptions PythonQtWrapper_QInputDialog::options(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->options()); -} - -void PythonQtWrapper_QInputDialog::setCancelButtonText(QInputDialog* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setCancelButtonText(text)); -} - -void PythonQtWrapper_QInputDialog::setComboBoxEditable(QInputDialog* theWrappedObject, bool editable) -{ - ( theWrappedObject->setComboBoxEditable(editable)); -} - -void PythonQtWrapper_QInputDialog::setComboBoxItems(QInputDialog* theWrappedObject, const QStringList& items) -{ - ( theWrappedObject->setComboBoxItems(items)); -} - -void PythonQtWrapper_QInputDialog::setDoubleDecimals(QInputDialog* theWrappedObject, int decimals) -{ - ( theWrappedObject->setDoubleDecimals(decimals)); -} - -void PythonQtWrapper_QInputDialog::setDoubleMaximum(QInputDialog* theWrappedObject, double max) -{ - ( theWrappedObject->setDoubleMaximum(max)); -} - -void PythonQtWrapper_QInputDialog::setDoubleMinimum(QInputDialog* theWrappedObject, double min) -{ - ( theWrappedObject->setDoubleMinimum(min)); -} - -void PythonQtWrapper_QInputDialog::setDoubleRange(QInputDialog* theWrappedObject, double min, double max) -{ - ( theWrappedObject->setDoubleRange(min, max)); -} - -void PythonQtWrapper_QInputDialog::setDoubleValue(QInputDialog* theWrappedObject, double value) -{ - ( theWrappedObject->setDoubleValue(value)); -} - -void PythonQtWrapper_QInputDialog::setInputMode(QInputDialog* theWrappedObject, QInputDialog::InputMode mode) -{ - ( theWrappedObject->setInputMode(mode)); -} - -void PythonQtWrapper_QInputDialog::setIntMaximum(QInputDialog* theWrappedObject, int max) -{ - ( theWrappedObject->setIntMaximum(max)); -} - -void PythonQtWrapper_QInputDialog::setIntMinimum(QInputDialog* theWrappedObject, int min) -{ - ( theWrappedObject->setIntMinimum(min)); -} - -void PythonQtWrapper_QInputDialog::setIntRange(QInputDialog* theWrappedObject, int min, int max) -{ - ( theWrappedObject->setIntRange(min, max)); -} - -void PythonQtWrapper_QInputDialog::setIntStep(QInputDialog* theWrappedObject, int step) -{ - ( theWrappedObject->setIntStep(step)); -} - -void PythonQtWrapper_QInputDialog::setIntValue(QInputDialog* theWrappedObject, int value) -{ - ( theWrappedObject->setIntValue(value)); -} - -void PythonQtWrapper_QInputDialog::setLabelText(QInputDialog* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setLabelText(text)); -} - -void PythonQtWrapper_QInputDialog::setOkButtonText(QInputDialog* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setOkButtonText(text)); -} - -void PythonQtWrapper_QInputDialog::setOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QInputDialog::setOptions(QInputDialog* theWrappedObject, QInputDialog::InputDialogOptions options) -{ - ( theWrappedObject->setOptions(options)); -} - -void PythonQtWrapper_QInputDialog::setTextEchoMode(QInputDialog* theWrappedObject, QLineEdit::EchoMode mode) -{ - ( theWrappedObject->setTextEchoMode(mode)); -} - -void PythonQtWrapper_QInputDialog::setTextValue(QInputDialog* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setTextValue(text)); -} - -void PythonQtWrapper_QInputDialog::setVisible(QInputDialog* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -QSize PythonQtWrapper_QInputDialog::sizeHint(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -bool PythonQtWrapper_QInputDialog::testOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option) const -{ - return ( theWrappedObject->testOption(option)); -} - -QLineEdit::EchoMode PythonQtWrapper_QInputDialog::textEchoMode(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->textEchoMode()); -} - -QString PythonQtWrapper_QInputDialog::textValue(QInputDialog* theWrappedObject) const -{ - return ( theWrappedObject->textValue()); -} - - - -QInputEvent* PythonQtWrapper_QInputEvent::new_QInputEvent(QEvent::Type type, Qt::KeyboardModifiers modifiers) -{ -return new PythonQtShell_QInputEvent(type, modifiers); } - -Qt::KeyboardModifiers PythonQtWrapper_QInputEvent::modifiers(QInputEvent* theWrappedObject) const -{ - return ( theWrappedObject->modifiers()); -} - -void PythonQtWrapper_QInputEvent::setModifiers(QInputEvent* theWrappedObject, Qt::KeyboardModifiers amodifiers) -{ - ( theWrappedObject->setModifiers(amodifiers)); -} - - - -void PythonQtShell_QIntValidator::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIntValidator::childEvent(arg__1); -} -void PythonQtShell_QIntValidator::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIntValidator::customEvent(arg__1); -} -bool PythonQtShell_QIntValidator::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIntValidator::event(arg__1); -} -bool PythonQtShell_QIntValidator::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIntValidator::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QIntValidator::fixup(QString& arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIntValidator::fixup(arg__1); -} -void PythonQtShell_QIntValidator::setRange(int bottom, int top) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&bottom, (void*)&top}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIntValidator::setRange(bottom, top); -} -void PythonQtShell_QIntValidator::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QIntValidator::timerEvent(arg__1); -} -QValidator::State PythonQtShell_QIntValidator::validate(QString& arg__1, int& arg__2) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QIntValidator::validate(arg__1, arg__2); -} -QIntValidator* PythonQtWrapper_QIntValidator::new_QIntValidator(QObject* parent) -{ -return new PythonQtShell_QIntValidator(parent); } - -QIntValidator* PythonQtWrapper_QIntValidator::new_QIntValidator(int bottom, int top, QObject* parent) -{ -return new PythonQtShell_QIntValidator(bottom, top, parent); } - -int PythonQtWrapper_QIntValidator::bottom(QIntValidator* theWrappedObject) const -{ - return ( theWrappedObject->bottom()); -} - -void PythonQtWrapper_QIntValidator::setBottom(QIntValidator* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setBottom(arg__1)); -} - -void PythonQtWrapper_QIntValidator::setRange(QIntValidator* theWrappedObject, int bottom, int top) -{ - ( ((PythonQtPublicPromoter_QIntValidator*)theWrappedObject)->promoted_setRange(bottom, top)); -} - -void PythonQtWrapper_QIntValidator::setTop(QIntValidator* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setTop(arg__1)); -} - -int PythonQtWrapper_QIntValidator::top(QIntValidator* theWrappedObject) const -{ - return ( theWrappedObject->top()); -} - -QValidator::State PythonQtWrapper_QIntValidator::validate(QIntValidator* theWrappedObject, QString& arg__1, int& arg__2) const -{ - return ( ((PythonQtPublicPromoter_QIntValidator*)theWrappedObject)->promoted_validate(arg__1, arg__2)); -} - - - -void PythonQtShell_QItemDelegate::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::childEvent(arg__1); -} -QWidget* PythonQtShell_QItemDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QWidget* returnValue = 0; - void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemDelegate::createEditor(parent, option, index); -} -void PythonQtShell_QItemDelegate::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::customEvent(arg__1); -} -void PythonQtShell_QItemDelegate::drawCheck(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawCheck"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&" , "Qt::CheckState"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&option, (void*)&rect, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::drawCheck(painter, option, rect, state); -} -void PythonQtShell_QItemDelegate::drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawDecoration"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&option, (void*)&rect, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::drawDecoration(painter, option, rect, pixmap); -} -void PythonQtShell_QItemDelegate::drawDisplay(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawDisplay"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&option, (void*)&rect, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::drawDisplay(painter, option, rect, text); -} -void PythonQtShell_QItemDelegate::drawFocus(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawFocus"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::drawFocus(painter, option, rect); -} -bool PythonQtShell_QItemDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("editorEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemDelegate::editorEvent(event, model, option, index); -} -bool PythonQtShell_QItemDelegate::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemDelegate::event(arg__1); -} -bool PythonQtShell_QItemDelegate::eventFilter(QObject* object, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemDelegate::eventFilter(object, event); -} -void PythonQtShell_QItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::paint(painter, option, index); -} -void PythonQtShell_QItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::setEditorData(editor, index); -} -void PythonQtShell_QItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModelData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemModel*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&editor, (void*)&model, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::setModelData(editor, model, index); -} -QSize PythonQtShell_QItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QSize returnValue; - void* args[3] = {NULL, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemDelegate::sizeHint(option, index); -} -void PythonQtShell_QItemDelegate::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::timerEvent(arg__1); -} -void PythonQtShell_QItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&editor, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemDelegate::updateEditorGeometry(editor, option, index); -} -QItemDelegate* PythonQtWrapper_QItemDelegate::new_QItemDelegate(QObject* parent) -{ -return new PythonQtShell_QItemDelegate(parent); } - -QWidget* PythonQtWrapper_QItemDelegate::createEditor(QItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_createEditor(parent, option, index)); -} - -void PythonQtWrapper_QItemDelegate::drawCheck(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawCheck(painter, option, rect, state)); -} - -void PythonQtWrapper_QItemDelegate::drawDecoration(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawDecoration(painter, option, rect, pixmap)); -} - -void PythonQtWrapper_QItemDelegate::drawDisplay(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawDisplay(painter, option, rect, text)); -} - -void PythonQtWrapper_QItemDelegate::drawFocus(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_drawFocus(painter, option, rect)); -} - -bool PythonQtWrapper_QItemDelegate::editorEvent(QItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) -{ - return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_editorEvent(event, model, option, index)); -} - -bool PythonQtWrapper_QItemDelegate::eventFilter(QItemDelegate* theWrappedObject, QObject* object, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_eventFilter(object, event)); -} - -bool PythonQtWrapper_QItemDelegate::hasClipping(QItemDelegate* theWrappedObject) const -{ - return ( theWrappedObject->hasClipping()); -} - -QItemEditorFactory* PythonQtWrapper_QItemDelegate::itemEditorFactory(QItemDelegate* theWrappedObject) const -{ - return ( theWrappedObject->itemEditorFactory()); -} - -void PythonQtWrapper_QItemDelegate::paint(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_paint(painter, option, index)); -} - -void PythonQtWrapper_QItemDelegate::setClipping(QItemDelegate* theWrappedObject, bool clip) -{ - ( theWrappedObject->setClipping(clip)); -} - -void PythonQtWrapper_QItemDelegate::setEditorData(QItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_setEditorData(editor, index)); -} - -void PythonQtWrapper_QItemDelegate::setItemEditorFactory(QItemDelegate* theWrappedObject, QItemEditorFactory* factory) -{ - ( theWrappedObject->setItemEditorFactory(factory)); -} - -void PythonQtWrapper_QItemDelegate::setModelData(QItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_setModelData(editor, model, index)); -} - -QSize PythonQtWrapper_QItemDelegate::sizeHint(QItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_sizeHint(option, index)); -} - -void PythonQtWrapper_QItemDelegate::updateEditorGeometry(QItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QItemDelegate*)theWrappedObject)->promoted_updateEditorGeometry(editor, option, index)); -} - - - -QWidget* PythonQtShell_QItemEditorCreatorBase::createWidget(QWidget* parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createWidget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QWidget* returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createWidget", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QByteArray PythonQtShell_QItemEditorCreatorBase::valuePropertyName() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valuePropertyName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QByteArray"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QByteArray returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("valuePropertyName", methodInfo, result); - } else { - returnValue = *((QByteArray*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QByteArray(); -} -QItemEditorCreatorBase* PythonQtWrapper_QItemEditorCreatorBase::new_QItemEditorCreatorBase() -{ -return new PythonQtShell_QItemEditorCreatorBase(); } - - - -QWidget* PythonQtShell_QItemEditorFactory::createEditor(QVariant::Type type, QWidget* parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QVariant::Type" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QWidget* returnValue = 0; - void* args[3] = {NULL, (void*)&type, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemEditorFactory::createEditor(type, parent); -} -QByteArray PythonQtShell_QItemEditorFactory::valuePropertyName(QVariant::Type type) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valuePropertyName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QByteArray" , "QVariant::Type"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QByteArray returnValue; - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("valuePropertyName", methodInfo, result); - } else { - returnValue = *((QByteArray*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemEditorFactory::valuePropertyName(type); -} -QItemEditorFactory* PythonQtWrapper_QItemEditorFactory::new_QItemEditorFactory() -{ -return new PythonQtShell_QItemEditorFactory(); } - -QWidget* PythonQtWrapper_QItemEditorFactory::createEditor(QItemEditorFactory* theWrappedObject, QVariant::Type type, QWidget* parent) const -{ - return ( ((PythonQtPublicPromoter_QItemEditorFactory*)theWrappedObject)->promoted_createEditor(type, parent)); -} - -const QItemEditorFactory* PythonQtWrapper_QItemEditorFactory::static_QItemEditorFactory_defaultFactory() -{ - return (QItemEditorFactory::defaultFactory()); -} - -void PythonQtWrapper_QItemEditorFactory::registerEditor(QItemEditorFactory* theWrappedObject, QVariant::Type type, QItemEditorCreatorBase* creator) -{ - ( theWrappedObject->registerEditor(type, creator)); -} - -void PythonQtWrapper_QItemEditorFactory::static_QItemEditorFactory_setDefaultFactory(QItemEditorFactory* factory) -{ - (QItemEditorFactory::setDefaultFactory(factory)); -} - -QByteArray PythonQtWrapper_QItemEditorFactory::valuePropertyName(QItemEditorFactory* theWrappedObject, QVariant::Type type) const -{ - return ( ((PythonQtPublicPromoter_QItemEditorFactory*)theWrappedObject)->promoted_valuePropertyName(type)); -} - - - -QItemSelection* PythonQtWrapper_QItemSelection::new_QItemSelection() -{ -return new QItemSelection(); } - -QItemSelection* PythonQtWrapper_QItemSelection::new_QItemSelection(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -return new QItemSelection(topLeft, bottomRight); } - -void PythonQtWrapper_QItemSelection::append(QItemSelection* theWrappedObject, const QItemSelectionRange& t) -{ - ( theWrappedObject->append(t)); -} - -void PythonQtWrapper_QItemSelection::append(QItemSelection* theWrappedObject, const QList& t) -{ - ( theWrappedObject->append(t)); -} - -const QItemSelectionRange* PythonQtWrapper_QItemSelection::at(QItemSelection* theWrappedObject, int i) const -{ - return &( theWrappedObject->at(i)); -} - -const QItemSelectionRange* PythonQtWrapper_QItemSelection::back(QItemSelection* theWrappedObject) const -{ - return &( theWrappedObject->back()); -} - -void PythonQtWrapper_QItemSelection::clear(QItemSelection* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QItemSelection::contains(QItemSelection* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->contains(index)); -} - -int PythonQtWrapper_QItemSelection::count(QItemSelection* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QItemSelection::count(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const -{ - return ( theWrappedObject->count(t)); -} - -void PythonQtWrapper_QItemSelection::detachShared(QItemSelection* theWrappedObject) -{ - ( theWrappedObject->detachShared()); -} - -bool PythonQtWrapper_QItemSelection::empty(QItemSelection* theWrappedObject) const -{ - return ( theWrappedObject->empty()); -} - -bool PythonQtWrapper_QItemSelection::endsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const -{ - return ( theWrappedObject->endsWith(t)); -} - -const QItemSelectionRange* PythonQtWrapper_QItemSelection::first(QItemSelection* theWrappedObject) const -{ - return &( theWrappedObject->first()); -} - -QList PythonQtWrapper_QItemSelection::static_QItemSelection_fromVector(const QVector& vector) -{ - return (QItemSelection::fromVector(vector)); -} - -const QItemSelectionRange* PythonQtWrapper_QItemSelection::front(QItemSelection* theWrappedObject) const -{ - return &( theWrappedObject->front()); -} - -int PythonQtWrapper_QItemSelection::indexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const -{ - return ( theWrappedObject->indexOf(t, from)); -} - -QList PythonQtWrapper_QItemSelection::indexes(QItemSelection* theWrappedObject) const -{ - return ( theWrappedObject->indexes()); -} - -bool PythonQtWrapper_QItemSelection::isEmpty(QItemSelection* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -const QItemSelectionRange* PythonQtWrapper_QItemSelection::last(QItemSelection* theWrappedObject) const -{ - return &( theWrappedObject->last()); -} - -int PythonQtWrapper_QItemSelection::lastIndexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const -{ - return ( theWrappedObject->lastIndexOf(t, from)); -} - -int PythonQtWrapper_QItemSelection::length(QItemSelection* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -void PythonQtWrapper_QItemSelection::merge(QItemSelection* theWrappedObject, const QItemSelection& other, QItemSelectionModel::SelectionFlags command) -{ - ( theWrappedObject->merge(other, command)); -} - -QList PythonQtWrapper_QItemSelection::mid(QItemSelection* theWrappedObject, int pos, int length) const -{ - return ( theWrappedObject->mid(pos, length)); -} - -void PythonQtWrapper_QItemSelection::move(QItemSelection* theWrappedObject, int from, int to) -{ - ( theWrappedObject->move(from, to)); -} - -bool PythonQtWrapper_QItemSelection::__ne__(QItemSelection* theWrappedObject, const QList& l) const -{ - return ( (*theWrappedObject)!= l); -} - -bool PythonQtWrapper_QItemSelection::__eq__(QItemSelection* theWrappedObject, const QList& l) const -{ - return ( (*theWrappedObject)== l); -} - -void PythonQtWrapper_QItemSelection::pop_back(QItemSelection* theWrappedObject) -{ - ( theWrappedObject->pop_back()); -} - -void PythonQtWrapper_QItemSelection::pop_front(QItemSelection* theWrappedObject) -{ - ( theWrappedObject->pop_front()); -} - -void PythonQtWrapper_QItemSelection::prepend(QItemSelection* theWrappedObject, const QItemSelectionRange& t) -{ - ( theWrappedObject->prepend(t)); -} - -void PythonQtWrapper_QItemSelection::push_back(QItemSelection* theWrappedObject, const QItemSelectionRange& t) -{ - ( theWrappedObject->push_back(t)); -} - -void PythonQtWrapper_QItemSelection::push_front(QItemSelection* theWrappedObject, const QItemSelectionRange& t) -{ - ( theWrappedObject->push_front(t)); -} - -int PythonQtWrapper_QItemSelection::removeAll(QItemSelection* theWrappedObject, const QItemSelectionRange& t) -{ - return ( theWrappedObject->removeAll(t)); -} - -void PythonQtWrapper_QItemSelection::removeAt(QItemSelection* theWrappedObject, int i) -{ - ( theWrappedObject->removeAt(i)); -} - -void PythonQtWrapper_QItemSelection::removeFirst(QItemSelection* theWrappedObject) -{ - ( theWrappedObject->removeFirst()); -} - -void PythonQtWrapper_QItemSelection::removeLast(QItemSelection* theWrappedObject) -{ - ( theWrappedObject->removeLast()); -} - -bool PythonQtWrapper_QItemSelection::removeOne(QItemSelection* theWrappedObject, const QItemSelectionRange& t) -{ - return ( theWrappedObject->removeOne(t)); -} - -void PythonQtWrapper_QItemSelection::replace(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& t) -{ - ( theWrappedObject->replace(i, t)); -} - -void PythonQtWrapper_QItemSelection::select(QItemSelection* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ - ( theWrappedObject->select(topLeft, bottomRight)); -} - -void PythonQtWrapper_QItemSelection::setSharable(QItemSelection* theWrappedObject, bool sharable) -{ - ( theWrappedObject->setSharable(sharable)); -} - -int PythonQtWrapper_QItemSelection::size(QItemSelection* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -void PythonQtWrapper_QItemSelection::static_QItemSelection_split(const QItemSelectionRange& range, const QItemSelectionRange& other, QItemSelection* result) -{ - (QItemSelection::split(range, other, result)); -} - -bool PythonQtWrapper_QItemSelection::startsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const -{ - return ( theWrappedObject->startsWith(t)); -} - -void PythonQtWrapper_QItemSelection::swap(QItemSelection* theWrappedObject, int i, int j) -{ - ( theWrappedObject->swap(i, j)); -} - -QItemSelectionRange PythonQtWrapper_QItemSelection::takeAt(QItemSelection* theWrappedObject, int i) -{ - return ( theWrappedObject->takeAt(i)); -} - -QItemSelectionRange PythonQtWrapper_QItemSelection::takeFirst(QItemSelection* theWrappedObject) -{ - return ( theWrappedObject->takeFirst()); -} - -QItemSelectionRange PythonQtWrapper_QItemSelection::takeLast(QItemSelection* theWrappedObject) -{ - return ( theWrappedObject->takeLast()); -} - -QVector PythonQtWrapper_QItemSelection::toVector(QItemSelection* theWrappedObject) const -{ - return ( theWrappedObject->toVector()); -} - -QItemSelectionRange PythonQtWrapper_QItemSelection::value(QItemSelection* theWrappedObject, int i) const -{ - return ( theWrappedObject->value(i)); -} - -QItemSelectionRange PythonQtWrapper_QItemSelection::value(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& defaultValue) const -{ - return ( theWrappedObject->value(i, defaultValue)); -} - - - -void PythonQtShell_QItemSelectionModel::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemSelectionModel::childEvent(arg__1); -} -void PythonQtShell_QItemSelectionModel::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemSelectionModel::clear(); -} -void PythonQtShell_QItemSelectionModel::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemSelectionModel::customEvent(arg__1); -} -bool PythonQtShell_QItemSelectionModel::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemSelectionModel::event(arg__1); -} -bool PythonQtShell_QItemSelectionModel::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemSelectionModel::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QItemSelectionModel::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemSelectionModel::reset(); -} -void PythonQtShell_QItemSelectionModel::select(const QItemSelection& selection, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "select"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selection, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemSelectionModel::select(selection, command); -} -void PythonQtShell_QItemSelectionModel::select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "select"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemSelectionModel::select(index, command); -} -void PythonQtShell_QItemSelectionModel::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QItemSelectionModel::timerEvent(arg__1); -} -QItemSelectionModel* PythonQtWrapper_QItemSelectionModel::new_QItemSelectionModel(QAbstractItemModel* model) -{ -return new PythonQtShell_QItemSelectionModel(model); } - -QItemSelectionModel* PythonQtWrapper_QItemSelectionModel::new_QItemSelectionModel(QAbstractItemModel* model, QObject* parent) -{ -return new PythonQtShell_QItemSelectionModel(model, parent); } - -bool PythonQtWrapper_QItemSelectionModel::columnIntersectsSelection(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const -{ - return ( theWrappedObject->columnIntersectsSelection(column, parent)); -} - -QModelIndex PythonQtWrapper_QItemSelectionModel::currentIndex(QItemSelectionModel* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -bool PythonQtWrapper_QItemSelectionModel::hasSelection(QItemSelectionModel* theWrappedObject) const -{ - return ( theWrappedObject->hasSelection()); -} - -bool PythonQtWrapper_QItemSelectionModel::isColumnSelected(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const -{ - return ( theWrappedObject->isColumnSelected(column, parent)); -} - -bool PythonQtWrapper_QItemSelectionModel::isRowSelected(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const -{ - return ( theWrappedObject->isRowSelected(row, parent)); -} - -bool PythonQtWrapper_QItemSelectionModel::isSelected(QItemSelectionModel* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->isSelected(index)); -} - -const QAbstractItemModel* PythonQtWrapper_QItemSelectionModel::model(QItemSelectionModel* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -bool PythonQtWrapper_QItemSelectionModel::rowIntersectsSelection(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const -{ - return ( theWrappedObject->rowIntersectsSelection(row, parent)); -} - -QList PythonQtWrapper_QItemSelectionModel::selectedColumns(QItemSelectionModel* theWrappedObject, int row) const -{ - return ( theWrappedObject->selectedColumns(row)); -} - -QList PythonQtWrapper_QItemSelectionModel::selectedIndexes(QItemSelectionModel* theWrappedObject) const -{ - return ( theWrappedObject->selectedIndexes()); -} - -QList PythonQtWrapper_QItemSelectionModel::selectedRows(QItemSelectionModel* theWrappedObject, int column) const -{ - return ( theWrappedObject->selectedRows(column)); -} - -const QItemSelection PythonQtWrapper_QItemSelectionModel::selection(QItemSelectionModel* theWrappedObject) const -{ - return ( theWrappedObject->selection()); -} - - - -QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange() -{ -return new QItemSelectionRange(); } - -QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QItemSelectionRange& other) -{ -return new QItemSelectionRange(other); } - -QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QModelIndex& index) -{ -return new QItemSelectionRange(index); } - -QItemSelectionRange* PythonQtWrapper_QItemSelectionRange::new_QItemSelectionRange(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -return new QItemSelectionRange(topLeft, bottomRight); } - -int PythonQtWrapper_QItemSelectionRange::bottom(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->bottom()); -} - -QModelIndex PythonQtWrapper_QItemSelectionRange::bottomRight(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->bottomRight()); -} - -bool PythonQtWrapper_QItemSelectionRange::contains(QItemSelectionRange* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->contains(index)); -} - -bool PythonQtWrapper_QItemSelectionRange::contains(QItemSelectionRange* theWrappedObject, int row, int column, const QModelIndex& parentIndex) const -{ - return ( theWrappedObject->contains(row, column, parentIndex)); -} - -int PythonQtWrapper_QItemSelectionRange::height(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -QList PythonQtWrapper_QItemSelectionRange::indexes(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->indexes()); -} - -QItemSelectionRange PythonQtWrapper_QItemSelectionRange::intersected(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const -{ - return ( theWrappedObject->intersected(other)); -} - -bool PythonQtWrapper_QItemSelectionRange::intersects(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const -{ - return ( theWrappedObject->intersects(other)); -} - -bool PythonQtWrapper_QItemSelectionRange::isValid(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -int PythonQtWrapper_QItemSelectionRange::left(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->left()); -} - -const QAbstractItemModel* PythonQtWrapper_QItemSelectionRange::model(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -bool PythonQtWrapper_QItemSelectionRange::__ne__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QItemSelectionRange::__eq__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const -{ - return ( (*theWrappedObject)== other); -} - -QModelIndex PythonQtWrapper_QItemSelectionRange::parent(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->parent()); -} - -int PythonQtWrapper_QItemSelectionRange::right(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->right()); -} - -int PythonQtWrapper_QItemSelectionRange::top(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->top()); -} - -QModelIndex PythonQtWrapper_QItemSelectionRange::topLeft(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->topLeft()); -} - -int PythonQtWrapper_QItemSelectionRange::width(QItemSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -QString PythonQtWrapper_QItemSelectionRange::py_toString(QItemSelectionRange* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QKeyEvent* PythonQtWrapper_QKeyEvent::new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text, bool autorep, ushort count) -{ -return new PythonQtShell_QKeyEvent(type, key, modifiers, text, autorep, count); } - -int PythonQtWrapper_QKeyEvent::count(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -QKeyEvent* PythonQtWrapper_QKeyEvent::static_QKeyEvent_createExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text, bool autorep, ushort count) -{ - return (QKeyEvent::createExtendedKeyEvent(type, key, modifiers, nativeScanCode, nativeVirtualKey, nativeModifiers, text, autorep, count)); -} - -bool PythonQtWrapper_QKeyEvent::hasExtendedInfo(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->hasExtendedInfo()); -} - -bool PythonQtWrapper_QKeyEvent::isAutoRepeat(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->isAutoRepeat()); -} - -int PythonQtWrapper_QKeyEvent::key(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->key()); -} - -bool PythonQtWrapper_QKeyEvent::matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const -{ - return ( theWrappedObject->matches(key)); -} - -Qt::KeyboardModifiers PythonQtWrapper_QKeyEvent::modifiers(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->modifiers()); -} - -unsigned int PythonQtWrapper_QKeyEvent::nativeModifiers(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->nativeModifiers()); -} - -unsigned int PythonQtWrapper_QKeyEvent::nativeScanCode(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->nativeScanCode()); -} - -unsigned int PythonQtWrapper_QKeyEvent::nativeVirtualKey(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->nativeVirtualKey()); -} - -QString PythonQtWrapper_QKeyEvent::text(QKeyEvent* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - - - -void PythonQtShell_QKeyEventTransition::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QKeyEventTransition::childEvent(arg__1); -} -void PythonQtShell_QKeyEventTransition::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QKeyEventTransition::customEvent(arg__1); -} -bool PythonQtShell_QKeyEventTransition::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QKeyEventTransition::event(e); -} -bool PythonQtShell_QKeyEventTransition::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QKeyEventTransition::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QKeyEventTransition::eventTest(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QKeyEventTransition::eventTest(event); -} -void PythonQtShell_QKeyEventTransition::onTransition(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QKeyEventTransition::onTransition(event); -} -void PythonQtShell_QKeyEventTransition::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QKeyEventTransition::timerEvent(arg__1); -} -QKeyEventTransition* PythonQtWrapper_QKeyEventTransition::new_QKeyEventTransition(QObject* object, QEvent::Type type, int key, QState* sourceState) -{ -return new PythonQtShell_QKeyEventTransition(object, type, key, sourceState); } - -QKeyEventTransition* PythonQtWrapper_QKeyEventTransition::new_QKeyEventTransition(QState* sourceState) -{ -return new PythonQtShell_QKeyEventTransition(sourceState); } - -bool PythonQtWrapper_QKeyEventTransition::eventTest(QKeyEventTransition* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QKeyEventTransition*)theWrappedObject)->promoted_eventTest(event)); -} - -int PythonQtWrapper_QKeyEventTransition::key(QKeyEventTransition* theWrappedObject) const -{ - return ( theWrappedObject->key()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QKeyEventTransition::modifierMask(QKeyEventTransition* theWrappedObject) const -{ - return ( theWrappedObject->modifierMask()); -} - -void PythonQtWrapper_QKeyEventTransition::onTransition(QKeyEventTransition* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QKeyEventTransition*)theWrappedObject)->promoted_onTransition(event)); -} - -void PythonQtWrapper_QKeyEventTransition::setKey(QKeyEventTransition* theWrappedObject, int key) -{ - ( theWrappedObject->setKey(key)); -} - -void PythonQtWrapper_QKeyEventTransition::setModifierMask(QKeyEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers) -{ - ( theWrappedObject->setModifierMask(modifiers)); -} - - - -void PythonQtShell_QLCDNumber::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::actionEvent(arg__1); -} -void PythonQtShell_QLCDNumber::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::changeEvent(arg__1); -} -void PythonQtShell_QLCDNumber::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::childEvent(arg__1); -} -void PythonQtShell_QLCDNumber::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::closeEvent(arg__1); -} -void PythonQtShell_QLCDNumber::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::contextMenuEvent(arg__1); -} -void PythonQtShell_QLCDNumber::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::customEvent(arg__1); -} -int PythonQtShell_QLCDNumber::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::devType(); -} -void PythonQtShell_QLCDNumber::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::dragEnterEvent(arg__1); -} -void PythonQtShell_QLCDNumber::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::dragLeaveEvent(arg__1); -} -void PythonQtShell_QLCDNumber::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::dragMoveEvent(arg__1); -} -void PythonQtShell_QLCDNumber::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::dropEvent(arg__1); -} -void PythonQtShell_QLCDNumber::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::enterEvent(arg__1); -} -bool PythonQtShell_QLCDNumber::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::event(e); -} -bool PythonQtShell_QLCDNumber::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QLCDNumber::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::focusInEvent(arg__1); -} -bool PythonQtShell_QLCDNumber::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::focusNextPrevChild(next); -} -void PythonQtShell_QLCDNumber::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::focusOutEvent(arg__1); -} -int PythonQtShell_QLCDNumber::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::heightForWidth(arg__1); -} -void PythonQtShell_QLCDNumber::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::hideEvent(arg__1); -} -void PythonQtShell_QLCDNumber::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QLCDNumber::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::inputMethodQuery(arg__1); -} -void PythonQtShell_QLCDNumber::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::keyPressEvent(arg__1); -} -void PythonQtShell_QLCDNumber::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::keyReleaseEvent(arg__1); -} -void PythonQtShell_QLCDNumber::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::languageChange(); -} -void PythonQtShell_QLCDNumber::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::leaveEvent(arg__1); -} -int PythonQtShell_QLCDNumber::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::metric(arg__1); -} -QSize PythonQtShell_QLCDNumber::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::minimumSizeHint(); -} -void PythonQtShell_QLCDNumber::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QLCDNumber::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::mouseMoveEvent(arg__1); -} -void PythonQtShell_QLCDNumber::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::mousePressEvent(arg__1); -} -void PythonQtShell_QLCDNumber::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QLCDNumber::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QLCDNumber::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLCDNumber::paintEngine(); -} -void PythonQtShell_QLCDNumber::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::paintEvent(arg__1); -} -void PythonQtShell_QLCDNumber::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::resizeEvent(arg__1); -} -void PythonQtShell_QLCDNumber::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::showEvent(arg__1); -} -void PythonQtShell_QLCDNumber::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::tabletEvent(arg__1); -} -void PythonQtShell_QLCDNumber::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::timerEvent(arg__1); -} -void PythonQtShell_QLCDNumber::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLCDNumber::wheelEvent(arg__1); -} -QLCDNumber* PythonQtWrapper_QLCDNumber::new_QLCDNumber(QWidget* parent) -{ -return new PythonQtShell_QLCDNumber(parent); } - -QLCDNumber* PythonQtWrapper_QLCDNumber::new_QLCDNumber(uint numDigits, QWidget* parent) -{ -return new PythonQtShell_QLCDNumber(numDigits, parent); } - -bool PythonQtWrapper_QLCDNumber::checkOverflow(QLCDNumber* theWrappedObject, double num) const -{ - return ( theWrappedObject->checkOverflow(num)); -} - -bool PythonQtWrapper_QLCDNumber::checkOverflow(QLCDNumber* theWrappedObject, int num) const -{ - return ( theWrappedObject->checkOverflow(num)); -} - -int PythonQtWrapper_QLCDNumber::digitCount(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->digitCount()); -} - -bool PythonQtWrapper_QLCDNumber::event(QLCDNumber* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QLCDNumber*)theWrappedObject)->promoted_event(e)); -} - -int PythonQtWrapper_QLCDNumber::intValue(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->intValue()); -} - -QLCDNumber::Mode PythonQtWrapper_QLCDNumber::mode(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->mode()); -} - -int PythonQtWrapper_QLCDNumber::numDigits(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->numDigits()); -} - -void PythonQtWrapper_QLCDNumber::paintEvent(QLCDNumber* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLCDNumber*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -QLCDNumber::SegmentStyle PythonQtWrapper_QLCDNumber::segmentStyle(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->segmentStyle()); -} - -void PythonQtWrapper_QLCDNumber::setDigitCount(QLCDNumber* theWrappedObject, int nDigits) -{ - ( theWrappedObject->setDigitCount(nDigits)); -} - -void PythonQtWrapper_QLCDNumber::setMode(QLCDNumber* theWrappedObject, QLCDNumber::Mode arg__1) -{ - ( theWrappedObject->setMode(arg__1)); -} - -void PythonQtWrapper_QLCDNumber::setNumDigits(QLCDNumber* theWrappedObject, int nDigits) -{ - ( theWrappedObject->setNumDigits(nDigits)); -} - -void PythonQtWrapper_QLCDNumber::setSegmentStyle(QLCDNumber* theWrappedObject, QLCDNumber::SegmentStyle arg__1) -{ - ( theWrappedObject->setSegmentStyle(arg__1)); -} - -QSize PythonQtWrapper_QLCDNumber::sizeHint(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -bool PythonQtWrapper_QLCDNumber::smallDecimalPoint(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->smallDecimalPoint()); -} - -double PythonQtWrapper_QLCDNumber::value(QLCDNumber* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - - - -void PythonQtShell_QLabel::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::actionEvent(arg__1); -} -void PythonQtShell_QLabel::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::changeEvent(arg__1); -} -void PythonQtShell_QLabel::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::childEvent(arg__1); -} -void PythonQtShell_QLabel::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::closeEvent(arg__1); -} -void PythonQtShell_QLabel::contextMenuEvent(QContextMenuEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::contextMenuEvent(ev); -} -void PythonQtShell_QLabel::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::customEvent(arg__1); -} -int PythonQtShell_QLabel::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::devType(); -} -void PythonQtShell_QLabel::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::dragEnterEvent(arg__1); -} -void PythonQtShell_QLabel::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::dragLeaveEvent(arg__1); -} -void PythonQtShell_QLabel::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::dragMoveEvent(arg__1); -} -void PythonQtShell_QLabel::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::dropEvent(arg__1); -} -void PythonQtShell_QLabel::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::enterEvent(arg__1); -} -bool PythonQtShell_QLabel::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::event(e); -} -bool PythonQtShell_QLabel::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QLabel::focusInEvent(QFocusEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::focusInEvent(ev); -} -bool PythonQtShell_QLabel::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::focusNextPrevChild(next); -} -void PythonQtShell_QLabel::focusOutEvent(QFocusEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::focusOutEvent(ev); -} -int PythonQtShell_QLabel::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::heightForWidth(arg__1); -} -void PythonQtShell_QLabel::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::hideEvent(arg__1); -} -void PythonQtShell_QLabel::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QLabel::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::inputMethodQuery(arg__1); -} -void PythonQtShell_QLabel::keyPressEvent(QKeyEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::keyPressEvent(ev); -} -void PythonQtShell_QLabel::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::keyReleaseEvent(arg__1); -} -void PythonQtShell_QLabel::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::languageChange(); -} -void PythonQtShell_QLabel::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::leaveEvent(arg__1); -} -int PythonQtShell_QLabel::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::metric(arg__1); -} -void PythonQtShell_QLabel::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QLabel::mouseMoveEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::mouseMoveEvent(ev); -} -void PythonQtShell_QLabel::mousePressEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::mousePressEvent(ev); -} -void PythonQtShell_QLabel::mouseReleaseEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::mouseReleaseEvent(ev); -} -void PythonQtShell_QLabel::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QLabel::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLabel::paintEngine(); -} -void PythonQtShell_QLabel::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::paintEvent(arg__1); -} -void PythonQtShell_QLabel::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::resizeEvent(arg__1); -} -void PythonQtShell_QLabel::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::showEvent(arg__1); -} -void PythonQtShell_QLabel::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::tabletEvent(arg__1); -} -void PythonQtShell_QLabel::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::timerEvent(arg__1); -} -void PythonQtShell_QLabel::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLabel::wheelEvent(arg__1); -} -QLabel* PythonQtWrapper_QLabel::new_QLabel(QWidget* parent, Qt::WindowFlags f) -{ -return new PythonQtShell_QLabel(parent, f); } - -QLabel* PythonQtWrapper_QLabel::new_QLabel(const QString& text, QWidget* parent, Qt::WindowFlags f) -{ -return new PythonQtShell_QLabel(text, parent, f); } - -Qt::Alignment PythonQtWrapper_QLabel::alignment(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -QWidget* PythonQtWrapper_QLabel::buddy(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->buddy()); -} - -void PythonQtWrapper_QLabel::changeEvent(QLabel* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -void PythonQtWrapper_QLabel::contextMenuEvent(QLabel* theWrappedObject, QContextMenuEvent* ev) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_contextMenuEvent(ev)); -} - -bool PythonQtWrapper_QLabel::event(QLabel* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_event(e)); -} - -void PythonQtWrapper_QLabel::focusInEvent(QLabel* theWrappedObject, QFocusEvent* ev) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_focusInEvent(ev)); -} - -bool PythonQtWrapper_QLabel::focusNextPrevChild(QLabel* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QLabel::focusOutEvent(QLabel* theWrappedObject, QFocusEvent* ev) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_focusOutEvent(ev)); -} - -bool PythonQtWrapper_QLabel::hasScaledContents(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->hasScaledContents()); -} - -int PythonQtWrapper_QLabel::heightForWidth(QLabel* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_heightForWidth(arg__1)); -} - -int PythonQtWrapper_QLabel::indent(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->indent()); -} - -void PythonQtWrapper_QLabel::keyPressEvent(QLabel* theWrappedObject, QKeyEvent* ev) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_keyPressEvent(ev)); -} - -int PythonQtWrapper_QLabel::margin(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->margin()); -} - -QSize PythonQtWrapper_QLabel::minimumSizeHint(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QLabel::mouseMoveEvent(QLabel* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_mouseMoveEvent(ev)); -} - -void PythonQtWrapper_QLabel::mousePressEvent(QLabel* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_mousePressEvent(ev)); -} - -void PythonQtWrapper_QLabel::mouseReleaseEvent(QLabel* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_mouseReleaseEvent(ev)); -} - -QMovie* PythonQtWrapper_QLabel::movie(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->movie()); -} - -bool PythonQtWrapper_QLabel::openExternalLinks(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->openExternalLinks()); -} - -void PythonQtWrapper_QLabel::paintEvent(QLabel* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLabel*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -const QPicture* PythonQtWrapper_QLabel::picture(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->picture()); -} - -const QPixmap* PythonQtWrapper_QLabel::pixmap(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->pixmap()); -} - -void PythonQtWrapper_QLabel::setAlignment(QLabel* theWrappedObject, Qt::Alignment arg__1) -{ - ( theWrappedObject->setAlignment(arg__1)); -} - -void PythonQtWrapper_QLabel::setBuddy(QLabel* theWrappedObject, QWidget* arg__1) -{ - ( theWrappedObject->setBuddy(arg__1)); -} - -void PythonQtWrapper_QLabel::setIndent(QLabel* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setIndent(arg__1)); -} - -void PythonQtWrapper_QLabel::setMargin(QLabel* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setMargin(arg__1)); -} - -void PythonQtWrapper_QLabel::setOpenExternalLinks(QLabel* theWrappedObject, bool open) -{ - ( theWrappedObject->setOpenExternalLinks(open)); -} - -void PythonQtWrapper_QLabel::setScaledContents(QLabel* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setScaledContents(arg__1)); -} - -void PythonQtWrapper_QLabel::setTextFormat(QLabel* theWrappedObject, Qt::TextFormat arg__1) -{ - ( theWrappedObject->setTextFormat(arg__1)); -} - -void PythonQtWrapper_QLabel::setTextInteractionFlags(QLabel* theWrappedObject, Qt::TextInteractionFlags flags) -{ - ( theWrappedObject->setTextInteractionFlags(flags)); -} - -void PythonQtWrapper_QLabel::setWordWrap(QLabel* theWrappedObject, bool on) -{ - ( theWrappedObject->setWordWrap(on)); -} - -QSize PythonQtWrapper_QLabel::sizeHint(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QString PythonQtWrapper_QLabel::text(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -Qt::TextFormat PythonQtWrapper_QLabel::textFormat(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->textFormat()); -} - -Qt::TextInteractionFlags PythonQtWrapper_QLabel::textInteractionFlags(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->textInteractionFlags()); -} - -bool PythonQtWrapper_QLabel::wordWrap(QLabel* theWrappedObject) const -{ - return ( theWrappedObject->wordWrap()); -} - - - -void PythonQtShell_QLayout::addItem(QLayoutItem* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QLayoutItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QLayout::childEvent(QChildEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLayout::childEvent(e); -} -int PythonQtShell_QLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QLayout::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLayout::customEvent(arg__1); -} -bool PythonQtShell_QLayout::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::event(arg__1); -} -bool PythonQtShell_QLayout::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::eventFilter(arg__1, arg__2); -} -Qt::Orientations PythonQtShell_QLayout::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::expandingDirections(); -} -QRect PythonQtShell_QLayout::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::geometry(); -} -bool PythonQtShell_QLayout::hasHeightForWidth() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::hasHeightForWidth(); -} -int PythonQtShell_QLayout::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::heightForWidth(arg__1); -} -int PythonQtShell_QLayout::indexOf(QWidget* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::indexOf(arg__1); -} -void PythonQtShell_QLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLayout::invalidate(); -} -bool PythonQtShell_QLayout::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::isEmpty(); -} -QLayoutItem* PythonQtShell_QLayout::itemAt(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QLayout* PythonQtShell_QLayout::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::layout(); -} -QSize PythonQtShell_QLayout::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::maximumSize(); -} -int PythonQtShell_QLayout::minimumHeightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::minimumHeightForWidth(arg__1); -} -QSize PythonQtShell_QLayout::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::minimumSize(); -} -void PythonQtShell_QLayout::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLayout::setGeometry(arg__1); -} -QSize PythonQtShell_QLayout::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSize(); -} -QSpacerItem* PythonQtShell_QLayout::spacerItem() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); - } else { - returnValue = *((QSpacerItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::spacerItem(); -} -QLayoutItem* PythonQtShell_QLayout::takeAt(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QLayout::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLayout::timerEvent(arg__1); -} -QWidget* PythonQtShell_QLayout::widget() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayout::widget(); -} -QLayout* PythonQtWrapper_QLayout::new_QLayout() -{ -return new PythonQtShell_QLayout(); } - -QLayout* PythonQtWrapper_QLayout::new_QLayout(QWidget* parent) -{ -return new PythonQtShell_QLayout(parent); } - -bool PythonQtWrapper_QLayout::activate(QLayout* theWrappedObject) -{ - return ( theWrappedObject->activate()); -} - -void PythonQtWrapper_QLayout::addWidget(QLayout* theWrappedObject, QWidget* w) -{ - ( theWrappedObject->addWidget(w)); -} - -void PythonQtWrapper_QLayout::childEvent(QLayout* theWrappedObject, QChildEvent* e) -{ - ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_childEvent(e)); -} - -QSize PythonQtWrapper_QLayout::static_QLayout_closestAcceptableSize(const QWidget* w, const QSize& s) -{ - return (QLayout::closestAcceptableSize(w, s)); -} - -QMargins PythonQtWrapper_QLayout::contentsMargins(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->contentsMargins()); -} - -QRect PythonQtWrapper_QLayout::contentsRect(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->contentsRect()); -} - -Qt::Orientations PythonQtWrapper_QLayout::expandingDirections(QLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_expandingDirections()); -} - -QRect PythonQtWrapper_QLayout::geometry(QLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_geometry()); -} - -void PythonQtWrapper_QLayout::getContentsMargins(QLayout* theWrappedObject, int* left, int* top, int* right, int* bottom) const -{ - ( theWrappedObject->getContentsMargins(left, top, right, bottom)); -} - -int PythonQtWrapper_QLayout::indexOf(QLayout* theWrappedObject, QWidget* arg__1) const -{ - return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_indexOf(arg__1)); -} - -void PythonQtWrapper_QLayout::invalidate(QLayout* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_invalidate()); -} - -bool PythonQtWrapper_QLayout::isEmpty(QLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_isEmpty()); -} - -bool PythonQtWrapper_QLayout::isEnabled(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -QLayout* PythonQtWrapper_QLayout::layout(QLayout* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_layout()); -} - -QSize PythonQtWrapper_QLayout::maximumSize(QLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_maximumSize()); -} - -QWidget* PythonQtWrapper_QLayout::menuBar(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->menuBar()); -} - -QSize PythonQtWrapper_QLayout::minimumSize(QLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_minimumSize()); -} - -QWidget* PythonQtWrapper_QLayout::parentWidget(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->parentWidget()); -} - -void PythonQtWrapper_QLayout::removeItem(QLayout* theWrappedObject, QLayoutItem* arg__1) -{ - ( theWrappedObject->removeItem(arg__1)); -} - -void PythonQtWrapper_QLayout::removeWidget(QLayout* theWrappedObject, QWidget* w) -{ - ( theWrappedObject->removeWidget(w)); -} - -void PythonQtWrapper_QLayout::setAlignment(QLayout* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setAlignment(alignment)); -} - -bool PythonQtWrapper_QLayout::setAlignment(QLayout* theWrappedObject, QLayout* l, Qt::Alignment alignment) -{ - return ( theWrappedObject->setAlignment(l, alignment)); -} - -bool PythonQtWrapper_QLayout::setAlignment(QLayout* theWrappedObject, QWidget* w, Qt::Alignment alignment) -{ - return ( theWrappedObject->setAlignment(w, alignment)); -} - -void PythonQtWrapper_QLayout::setContentsMargins(QLayout* theWrappedObject, const QMargins& margins) -{ - ( theWrappedObject->setContentsMargins(margins)); -} - -void PythonQtWrapper_QLayout::setContentsMargins(QLayout* theWrappedObject, int left, int top, int right, int bottom) -{ - ( theWrappedObject->setContentsMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QLayout::setEnabled(QLayout* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setEnabled(arg__1)); -} - -void PythonQtWrapper_QLayout::setGeometry(QLayout* theWrappedObject, const QRect& arg__1) -{ - ( ((PythonQtPublicPromoter_QLayout*)theWrappedObject)->promoted_setGeometry(arg__1)); -} - -void PythonQtWrapper_QLayout::setMargin(QLayout* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setMargin(arg__1)); -} - -void PythonQtWrapper_QLayout::setMenuBar(QLayout* theWrappedObject, QWidget* w) -{ - ( theWrappedObject->setMenuBar(w)); -} - -void PythonQtWrapper_QLayout::setSizeConstraint(QLayout* theWrappedObject, QLayout::SizeConstraint arg__1) -{ - ( theWrappedObject->setSizeConstraint(arg__1)); -} - -void PythonQtWrapper_QLayout::setSpacing(QLayout* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setSpacing(arg__1)); -} - -QLayout::SizeConstraint PythonQtWrapper_QLayout::sizeConstraint(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->sizeConstraint()); -} - -int PythonQtWrapper_QLayout::spacing(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->spacing()); -} - -int PythonQtWrapper_QLayout::totalHeightForWidth(QLayout* theWrappedObject, int w) const -{ - return ( theWrappedObject->totalHeightForWidth(w)); -} - -QSize PythonQtWrapper_QLayout::totalMaximumSize(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->totalMaximumSize()); -} - -QSize PythonQtWrapper_QLayout::totalMinimumSize(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->totalMinimumSize()); -} - -QSize PythonQtWrapper_QLayout::totalSizeHint(QLayout* theWrappedObject) const -{ - return ( theWrappedObject->totalSizeHint()); -} - -void PythonQtWrapper_QLayout::update(QLayout* theWrappedObject) -{ - ( theWrappedObject->update()); -} - - - -Qt::Orientations PythonQtShell_QLayoutItem::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Qt::Orientations(); -} -QRect PythonQtShell_QLayoutItem::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRect(); -} -bool PythonQtShell_QLayoutItem::hasHeightForWidth() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayoutItem::hasHeightForWidth(); -} -int PythonQtShell_QLayoutItem::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayoutItem::heightForWidth(arg__1); -} -void PythonQtShell_QLayoutItem::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLayoutItem::invalidate(); -} -bool PythonQtShell_QLayoutItem::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -QLayout* PythonQtShell_QLayoutItem::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayoutItem::layout(); -} -QSize PythonQtShell_QLayoutItem::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSize(); -} -int PythonQtShell_QLayoutItem::minimumHeightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayoutItem::minimumHeightForWidth(arg__1); -} -QSize PythonQtShell_QLayoutItem::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSize(); -} -void PythonQtShell_QLayoutItem::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QSize PythonQtShell_QLayoutItem::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSize(); -} -QSpacerItem* PythonQtShell_QLayoutItem::spacerItem() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); - } else { - returnValue = *((QSpacerItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayoutItem::spacerItem(); -} -QWidget* PythonQtShell_QLayoutItem::widget() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLayoutItem::widget(); -} -QLayoutItem* PythonQtWrapper_QLayoutItem::new_QLayoutItem(Qt::Alignment alignment) -{ -return new PythonQtShell_QLayoutItem(alignment); } - -Qt::Alignment PythonQtWrapper_QLayoutItem::alignment(QLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -QSizePolicy::ControlTypes PythonQtWrapper_QLayoutItem::controlTypes(QLayoutItem* theWrappedObject) const -{ - return ( theWrappedObject->controlTypes()); -} - -bool PythonQtWrapper_QLayoutItem::hasHeightForWidth(QLayoutItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_hasHeightForWidth()); -} - -int PythonQtWrapper_QLayoutItem::heightForWidth(QLayoutItem* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_heightForWidth(arg__1)); -} - -void PythonQtWrapper_QLayoutItem::invalidate(QLayoutItem* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_invalidate()); -} - -QLayout* PythonQtWrapper_QLayoutItem::layout(QLayoutItem* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_layout()); -} - -int PythonQtWrapper_QLayoutItem::minimumHeightForWidth(QLayoutItem* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_minimumHeightForWidth(arg__1)); -} - -void PythonQtWrapper_QLayoutItem::setAlignment(QLayoutItem* theWrappedObject, Qt::Alignment a) -{ - ( theWrappedObject->setAlignment(a)); -} - -QSpacerItem* PythonQtWrapper_QLayoutItem::spacerItem(QLayoutItem* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_spacerItem()); -} - -QWidget* PythonQtWrapper_QLayoutItem::widget(QLayoutItem* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QLayoutItem*)theWrappedObject)->promoted_widget()); -} - - - -void PythonQtShell_QLineEdit::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::actionEvent(arg__1); -} -void PythonQtShell_QLineEdit::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::changeEvent(arg__1); -} -void PythonQtShell_QLineEdit::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::childEvent(arg__1); -} -void PythonQtShell_QLineEdit::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::closeEvent(arg__1); -} -void PythonQtShell_QLineEdit::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::contextMenuEvent(arg__1); -} -void PythonQtShell_QLineEdit::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::customEvent(arg__1); -} -int PythonQtShell_QLineEdit::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::devType(); -} -void PythonQtShell_QLineEdit::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::dragEnterEvent(arg__1); -} -void PythonQtShell_QLineEdit::dragLeaveEvent(QDragLeaveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::dragLeaveEvent(e); -} -void PythonQtShell_QLineEdit::dragMoveEvent(QDragMoveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::dragMoveEvent(e); -} -void PythonQtShell_QLineEdit::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::dropEvent(arg__1); -} -void PythonQtShell_QLineEdit::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::enterEvent(arg__1); -} -bool PythonQtShell_QLineEdit::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::event(arg__1); -} -bool PythonQtShell_QLineEdit::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QLineEdit::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::focusInEvent(arg__1); -} -bool PythonQtShell_QLineEdit::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::focusNextPrevChild(next); -} -void PythonQtShell_QLineEdit::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::focusOutEvent(arg__1); -} -int PythonQtShell_QLineEdit::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::heightForWidth(arg__1); -} -void PythonQtShell_QLineEdit::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::hideEvent(arg__1); -} -void PythonQtShell_QLineEdit::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QLineEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::inputMethodQuery(arg__1); -} -void PythonQtShell_QLineEdit::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::keyPressEvent(arg__1); -} -void PythonQtShell_QLineEdit::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::keyReleaseEvent(arg__1); -} -void PythonQtShell_QLineEdit::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::languageChange(); -} -void PythonQtShell_QLineEdit::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::leaveEvent(arg__1); -} -int PythonQtShell_QLineEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::metric(arg__1); -} -void PythonQtShell_QLineEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QLineEdit::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::mouseMoveEvent(arg__1); -} -void PythonQtShell_QLineEdit::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::mousePressEvent(arg__1); -} -void PythonQtShell_QLineEdit::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QLineEdit::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QLineEdit::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLineEdit::paintEngine(); -} -void PythonQtShell_QLineEdit::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::paintEvent(arg__1); -} -void PythonQtShell_QLineEdit::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::resizeEvent(arg__1); -} -void PythonQtShell_QLineEdit::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::showEvent(arg__1); -} -void PythonQtShell_QLineEdit::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::tabletEvent(arg__1); -} -void PythonQtShell_QLineEdit::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::timerEvent(arg__1); -} -void PythonQtShell_QLineEdit::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLineEdit::wheelEvent(arg__1); -} -QLineEdit* PythonQtWrapper_QLineEdit::new_QLineEdit(QWidget* parent) -{ -return new PythonQtShell_QLineEdit(parent); } - -QLineEdit* PythonQtWrapper_QLineEdit::new_QLineEdit(const QString& arg__1, QWidget* parent) -{ -return new PythonQtShell_QLineEdit(arg__1, parent); } - -Qt::Alignment PythonQtWrapper_QLineEdit::alignment(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -void PythonQtWrapper_QLineEdit::backspace(QLineEdit* theWrappedObject) -{ - ( theWrappedObject->backspace()); -} - -void PythonQtWrapper_QLineEdit::changeEvent(QLineEdit* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -QCompleter* PythonQtWrapper_QLineEdit::completer(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->completer()); -} - -void PythonQtWrapper_QLineEdit::contextMenuEvent(QLineEdit* theWrappedObject, QContextMenuEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); -} - -QMenu* PythonQtWrapper_QLineEdit::createStandardContextMenu(QLineEdit* theWrappedObject) -{ - return ( theWrappedObject->createStandardContextMenu()); -} - -void PythonQtWrapper_QLineEdit::cursorBackward(QLineEdit* theWrappedObject, bool mark, int steps) -{ - ( theWrappedObject->cursorBackward(mark, steps)); -} - -void PythonQtWrapper_QLineEdit::cursorForward(QLineEdit* theWrappedObject, bool mark, int steps) -{ - ( theWrappedObject->cursorForward(mark, steps)); -} - -int PythonQtWrapper_QLineEdit::cursorPosition(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->cursorPosition()); -} - -int PythonQtWrapper_QLineEdit::cursorPositionAt(QLineEdit* theWrappedObject, const QPoint& pos) -{ - return ( theWrappedObject->cursorPositionAt(pos)); -} - -void PythonQtWrapper_QLineEdit::cursorWordBackward(QLineEdit* theWrappedObject, bool mark) -{ - ( theWrappedObject->cursorWordBackward(mark)); -} - -void PythonQtWrapper_QLineEdit::cursorWordForward(QLineEdit* theWrappedObject, bool mark) -{ - ( theWrappedObject->cursorWordForward(mark)); -} - -void PythonQtWrapper_QLineEdit::del(QLineEdit* theWrappedObject) -{ - ( theWrappedObject->del()); -} - -void PythonQtWrapper_QLineEdit::deselect(QLineEdit* theWrappedObject) -{ - ( theWrappedObject->deselect()); -} - -QString PythonQtWrapper_QLineEdit::displayText(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->displayText()); -} - -bool PythonQtWrapper_QLineEdit::dragEnabled(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->dragEnabled()); -} - -void PythonQtWrapper_QLineEdit::dragEnterEvent(QLineEdit* theWrappedObject, QDragEnterEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dragEnterEvent(arg__1)); -} - -void PythonQtWrapper_QLineEdit::dragLeaveEvent(QLineEdit* theWrappedObject, QDragLeaveEvent* e) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dragLeaveEvent(e)); -} - -void PythonQtWrapper_QLineEdit::dragMoveEvent(QLineEdit* theWrappedObject, QDragMoveEvent* e) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dragMoveEvent(e)); -} - -void PythonQtWrapper_QLineEdit::dropEvent(QLineEdit* theWrappedObject, QDropEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_dropEvent(arg__1)); -} - -QLineEdit::EchoMode PythonQtWrapper_QLineEdit::echoMode(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->echoMode()); -} - -void PythonQtWrapper_QLineEdit::end(QLineEdit* theWrappedObject, bool mark) -{ - ( theWrappedObject->end(mark)); -} - -bool PythonQtWrapper_QLineEdit::event(QLineEdit* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_event(arg__1)); -} - -void PythonQtWrapper_QLineEdit::focusInEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_focusInEvent(arg__1)); -} - -void PythonQtWrapper_QLineEdit::focusOutEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_focusOutEvent(arg__1)); -} - -void PythonQtWrapper_QLineEdit::getTextMargins(QLineEdit* theWrappedObject, int* left, int* top, int* right, int* bottom) const -{ - ( theWrappedObject->getTextMargins(left, top, right, bottom)); -} - -bool PythonQtWrapper_QLineEdit::hasAcceptableInput(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->hasAcceptableInput()); -} - -bool PythonQtWrapper_QLineEdit::hasFrame(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->hasFrame()); -} - -bool PythonQtWrapper_QLineEdit::hasSelectedText(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->hasSelectedText()); -} - -void PythonQtWrapper_QLineEdit::home(QLineEdit* theWrappedObject, bool mark) -{ - ( theWrappedObject->home(mark)); -} - -QString PythonQtWrapper_QLineEdit::inputMask(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->inputMask()); -} - -void PythonQtWrapper_QLineEdit::inputMethodEvent(QLineEdit* theWrappedObject, QInputMethodEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); -} - -QVariant PythonQtWrapper_QLineEdit::inputMethodQuery(QLineEdit* theWrappedObject, Qt::InputMethodQuery arg__1) const -{ - return ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_inputMethodQuery(arg__1)); -} - -void PythonQtWrapper_QLineEdit::insert(QLineEdit* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->insert(arg__1)); -} - -bool PythonQtWrapper_QLineEdit::isModified(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->isModified()); -} - -bool PythonQtWrapper_QLineEdit::isReadOnly(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->isReadOnly()); -} - -bool PythonQtWrapper_QLineEdit::isRedoAvailable(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->isRedoAvailable()); -} - -bool PythonQtWrapper_QLineEdit::isUndoAvailable(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->isUndoAvailable()); -} - -void PythonQtWrapper_QLineEdit::keyPressEvent(QLineEdit* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -int PythonQtWrapper_QLineEdit::maxLength(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->maxLength()); -} - -QSize PythonQtWrapper_QLineEdit::minimumSizeHint(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QLineEdit::mouseDoubleClickEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mouseDoubleClickEvent(arg__1)); -} - -void PythonQtWrapper_QLineEdit::mouseMoveEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QLineEdit::mousePressEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QLineEdit::mouseReleaseEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QLineEdit::paintEvent(QLineEdit* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QLineEdit*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -QString PythonQtWrapper_QLineEdit::selectedText(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->selectedText()); -} - -int PythonQtWrapper_QLineEdit::selectionStart(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->selectionStart()); -} - -void PythonQtWrapper_QLineEdit::setAlignment(QLineEdit* theWrappedObject, Qt::Alignment flag) -{ - ( theWrappedObject->setAlignment(flag)); -} - -void PythonQtWrapper_QLineEdit::setCompleter(QLineEdit* theWrappedObject, QCompleter* completer) -{ - ( theWrappedObject->setCompleter(completer)); -} - -void PythonQtWrapper_QLineEdit::setCursorPosition(QLineEdit* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setCursorPosition(arg__1)); -} - -void PythonQtWrapper_QLineEdit::setDragEnabled(QLineEdit* theWrappedObject, bool b) -{ - ( theWrappedObject->setDragEnabled(b)); -} - -void PythonQtWrapper_QLineEdit::setEchoMode(QLineEdit* theWrappedObject, QLineEdit::EchoMode arg__1) -{ - ( theWrappedObject->setEchoMode(arg__1)); -} - -void PythonQtWrapper_QLineEdit::setFrame(QLineEdit* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setFrame(arg__1)); -} - -void PythonQtWrapper_QLineEdit::setInputMask(QLineEdit* theWrappedObject, const QString& inputMask) -{ - ( theWrappedObject->setInputMask(inputMask)); -} - -void PythonQtWrapper_QLineEdit::setMaxLength(QLineEdit* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setMaxLength(arg__1)); -} - -void PythonQtWrapper_QLineEdit::setModified(QLineEdit* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setModified(arg__1)); -} - -void PythonQtWrapper_QLineEdit::setReadOnly(QLineEdit* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setReadOnly(arg__1)); -} - -void PythonQtWrapper_QLineEdit::setSelection(QLineEdit* theWrappedObject, int arg__1, int arg__2) -{ - ( theWrappedObject->setSelection(arg__1, arg__2)); -} - -void PythonQtWrapper_QLineEdit::setTextMargins(QLineEdit* theWrappedObject, const QMargins& margins) -{ - ( theWrappedObject->setTextMargins(margins)); -} - -void PythonQtWrapper_QLineEdit::setTextMargins(QLineEdit* theWrappedObject, int left, int top, int right, int bottom) -{ - ( theWrappedObject->setTextMargins(left, top, right, bottom)); -} - -void PythonQtWrapper_QLineEdit::setValidator(QLineEdit* theWrappedObject, const QValidator* arg__1) -{ - ( theWrappedObject->setValidator(arg__1)); -} - -QSize PythonQtWrapper_QLineEdit::sizeHint(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QString PythonQtWrapper_QLineEdit::text(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -QMargins PythonQtWrapper_QLineEdit::textMargins(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->textMargins()); -} - -const QValidator* PythonQtWrapper_QLineEdit::validator(QLineEdit* theWrappedObject) const -{ - return ( theWrappedObject->validator()); -} - - - -QLinearGradient* PythonQtWrapper_QLinearGradient::new_QLinearGradient() -{ -return new QLinearGradient(); } - -QLinearGradient* PythonQtWrapper_QLinearGradient::new_QLinearGradient(const QPointF& start, const QPointF& finalStop) -{ -return new QLinearGradient(start, finalStop); } - -QLinearGradient* PythonQtWrapper_QLinearGradient::new_QLinearGradient(qreal xStart, qreal yStart, qreal xFinalStop, qreal yFinalStop) -{ -return new QLinearGradient(xStart, yStart, xFinalStop, yFinalStop); } - -QPointF PythonQtWrapper_QLinearGradient::finalStop(QLinearGradient* theWrappedObject) const -{ - return ( theWrappedObject->finalStop()); -} - -void PythonQtWrapper_QLinearGradient::setFinalStop(QLinearGradient* theWrappedObject, const QPointF& stop) -{ - ( theWrappedObject->setFinalStop(stop)); -} - -void PythonQtWrapper_QLinearGradient::setFinalStop(QLinearGradient* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->setFinalStop(x, y)); -} - -void PythonQtWrapper_QLinearGradient::setStart(QLinearGradient* theWrappedObject, const QPointF& start) -{ - ( theWrappedObject->setStart(start)); -} - -void PythonQtWrapper_QLinearGradient::setStart(QLinearGradient* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->setStart(x, y)); -} - -QPointF PythonQtWrapper_QLinearGradient::start(QLinearGradient* theWrappedObject) const -{ - return ( theWrappedObject->start()); -} - - - -void PythonQtShell_QListView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::actionEvent(arg__1); -} -void PythonQtShell_QListView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::changeEvent(arg__1); -} -void PythonQtShell_QListView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::childEvent(arg__1); -} -void PythonQtShell_QListView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::closeEditor(editor, hint); -} -void PythonQtShell_QListView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::closeEvent(arg__1); -} -void PythonQtShell_QListView::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::commitData(editor); -} -void PythonQtShell_QListView::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::contextMenuEvent(arg__1); -} -void PythonQtShell_QListView::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::currentChanged(current, previous); -} -void PythonQtShell_QListView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::customEvent(arg__1); -} -void PythonQtShell_QListView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QListView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::devType(); -} -void PythonQtShell_QListView::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::doItemsLayout(); -} -void PythonQtShell_QListView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QListView::dragEnterEvent(event); -} -void PythonQtShell_QListView::dragLeaveEvent(QDragLeaveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::dragLeaveEvent(e); -} -void PythonQtShell_QListView::dragMoveEvent(QDragMoveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::dragMoveEvent(e); -} -void PythonQtShell_QListView::dropEvent(QDropEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::dropEvent(e); -} -bool PythonQtShell_QListView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::edit(index, trigger, event); -} -void PythonQtShell_QListView::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::editorDestroyed(editor); -} -void PythonQtShell_QListView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::enterEvent(arg__1); -} -bool PythonQtShell_QListView::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::event(e); -} -bool PythonQtShell_QListView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QListView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListView::focusInEvent(event); -} -bool PythonQtShell_QListView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::focusNextPrevChild(next); -} -void PythonQtShell_QListView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListView::focusOutEvent(event); -} -int PythonQtShell_QListView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::heightForWidth(arg__1); -} -void PythonQtShell_QListView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::hideEvent(arg__1); -} -int PythonQtShell_QListView::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::horizontalOffset(); -} -void PythonQtShell_QListView::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::horizontalScrollbarAction(action); -} -void PythonQtShell_QListView::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QListView::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::indexAt(p); -} -void PythonQtShell_QListView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QListView::inputMethodEvent(event); -} -QVariant PythonQtShell_QListView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::inputMethodQuery(query); -} -bool PythonQtShell_QListView::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::isIndexHidden(index); -} -void PythonQtShell_QListView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListView::keyPressEvent(event); -} -void PythonQtShell_QListView::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::keyReleaseEvent(arg__1); -} -void PythonQtShell_QListView::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::keyboardSearch(search); -} -void PythonQtShell_QListView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::languageChange(); -} -void PythonQtShell_QListView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::leaveEvent(arg__1); -} -int PythonQtShell_QListView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::metric(arg__1); -} -void PythonQtShell_QListView::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListView::mouseDoubleClickEvent(event); -} -void PythonQtShell_QListView::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::mouseMoveEvent(e); -} -void PythonQtShell_QListView::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListView::mousePressEvent(event); -} -void PythonQtShell_QListView::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::mouseReleaseEvent(e); -} -void PythonQtShell_QListView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QListView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::paintEngine(); -} -void PythonQtShell_QListView::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::paintEvent(e); -} -void PythonQtShell_QListView::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::reset(); -} -void PythonQtShell_QListView::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::resizeEvent(e); -} -void PythonQtShell_QListView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QListView::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::rowsInserted(parent, start, end); -} -void PythonQtShell_QListView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QListView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::scrollTo(index, hint); -} -void PythonQtShell_QListView::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::selectAll(); -} -QList PythonQtShell_QListView::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::selectedIndexes(); -} -void PythonQtShell_QListView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QListView::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::selectionCommand(index, event); -} -void PythonQtShell_QListView::setModel(QAbstractItemModel* model) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractItemModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&model}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::setModel(model); -} -void PythonQtShell_QListView::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::setRootIndex(index); -} -void PythonQtShell_QListView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::setSelection(rect, command); -} -void PythonQtShell_QListView::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::setSelectionModel(selectionModel); -} -void PythonQtShell_QListView::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::showEvent(arg__1); -} -int PythonQtShell_QListView::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::sizeHintForColumn(column); -} -int PythonQtShell_QListView::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::sizeHintForRow(row); -} -void PythonQtShell_QListView::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::startDrag(supportedActions); -} -void PythonQtShell_QListView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::tabletEvent(arg__1); -} -void PythonQtShell_QListView::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::timerEvent(e); -} -void PythonQtShell_QListView::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::updateEditorData(); -} -void PythonQtShell_QListView::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::updateEditorGeometries(); -} -void PythonQtShell_QListView::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::updateGeometries(); -} -int PythonQtShell_QListView::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::verticalOffset(); -} -void PythonQtShell_QListView::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::verticalScrollbarAction(action); -} -void PythonQtShell_QListView::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QListView::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::viewOptions(); -} -bool PythonQtShell_QListView::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::viewportEvent(event); -} -QRect PythonQtShell_QListView::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::visualRect(index); -} -QRegion PythonQtShell_QListView::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListView::visualRegionForSelection(selection); -} -void PythonQtShell_QListView::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListView::wheelEvent(arg__1); -} -QListView* PythonQtWrapper_QListView::new_QListView(QWidget* parent) -{ -return new PythonQtShell_QListView(parent); } - -int PythonQtWrapper_QListView::batchSize(QListView* theWrappedObject) const -{ - return ( theWrappedObject->batchSize()); -} - -void PythonQtWrapper_QListView::clearPropertyFlags(QListView* theWrappedObject) -{ - ( theWrappedObject->clearPropertyFlags()); -} - -void PythonQtWrapper_QListView::currentChanged(QListView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_currentChanged(current, previous)); -} - -void PythonQtWrapper_QListView::dataChanged(QListView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dataChanged(topLeft, bottomRight)); -} - -void PythonQtWrapper_QListView::doItemsLayout(QListView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_doItemsLayout()); -} - -void PythonQtWrapper_QListView::dragLeaveEvent(QListView* theWrappedObject, QDragLeaveEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dragLeaveEvent(e)); -} - -void PythonQtWrapper_QListView::dragMoveEvent(QListView* theWrappedObject, QDragMoveEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dragMoveEvent(e)); -} - -void PythonQtWrapper_QListView::dropEvent(QListView* theWrappedObject, QDropEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_dropEvent(e)); -} - -bool PythonQtWrapper_QListView::event(QListView* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_event(e)); -} - -QListView::Flow PythonQtWrapper_QListView::flow(QListView* theWrappedObject) const -{ - return ( theWrappedObject->flow()); -} - -QSize PythonQtWrapper_QListView::gridSize(QListView* theWrappedObject) const -{ - return ( theWrappedObject->gridSize()); -} - -int PythonQtWrapper_QListView::horizontalOffset(QListView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_horizontalOffset()); -} - -QModelIndex PythonQtWrapper_QListView::indexAt(QListView* theWrappedObject, const QPoint& p) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_indexAt(p)); -} - -bool PythonQtWrapper_QListView::isIndexHidden(QListView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_isIndexHidden(index)); -} - -bool PythonQtWrapper_QListView::isRowHidden(QListView* theWrappedObject, int row) const -{ - return ( theWrappedObject->isRowHidden(row)); -} - -bool PythonQtWrapper_QListView::isSelectionRectVisible(QListView* theWrappedObject) const -{ - return ( theWrappedObject->isSelectionRectVisible()); -} - -bool PythonQtWrapper_QListView::isWrapping(QListView* theWrappedObject) const -{ - return ( theWrappedObject->isWrapping()); -} - -QListView::LayoutMode PythonQtWrapper_QListView::layoutMode(QListView* theWrappedObject) const -{ - return ( theWrappedObject->layoutMode()); -} - -int PythonQtWrapper_QListView::modelColumn(QListView* theWrappedObject) const -{ - return ( theWrappedObject->modelColumn()); -} - -void PythonQtWrapper_QListView::mouseMoveEvent(QListView* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_mouseMoveEvent(e)); -} - -void PythonQtWrapper_QListView::mouseReleaseEvent(QListView* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_mouseReleaseEvent(e)); -} - -QListView::Movement PythonQtWrapper_QListView::movement(QListView* theWrappedObject) const -{ - return ( theWrappedObject->movement()); -} - -void PythonQtWrapper_QListView::paintEvent(QListView* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_paintEvent(e)); -} - -void PythonQtWrapper_QListView::reset(QListView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_reset()); -} - -void PythonQtWrapper_QListView::resizeEvent(QListView* theWrappedObject, QResizeEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_resizeEvent(e)); -} - -QListView::ResizeMode PythonQtWrapper_QListView::resizeMode(QListView* theWrappedObject) const -{ - return ( theWrappedObject->resizeMode()); -} - -void PythonQtWrapper_QListView::rowsAboutToBeRemoved(QListView* theWrappedObject, const QModelIndex& parent, int start, int end) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_rowsAboutToBeRemoved(parent, start, end)); -} - -void PythonQtWrapper_QListView::rowsInserted(QListView* theWrappedObject, const QModelIndex& parent, int start, int end) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_rowsInserted(parent, start, end)); -} - -void PythonQtWrapper_QListView::scrollContentsBy(QListView* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QListView::scrollTo(QListView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_scrollTo(index, hint)); -} - -QList PythonQtWrapper_QListView::selectedIndexes(QListView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_selectedIndexes()); -} - -void PythonQtWrapper_QListView::selectionChanged(QListView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_selectionChanged(selected, deselected)); -} - -void PythonQtWrapper_QListView::setBatchSize(QListView* theWrappedObject, int batchSize) -{ - ( theWrappedObject->setBatchSize(batchSize)); -} - -void PythonQtWrapper_QListView::setFlow(QListView* theWrappedObject, QListView::Flow flow) -{ - ( theWrappedObject->setFlow(flow)); -} - -void PythonQtWrapper_QListView::setGridSize(QListView* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setGridSize(size)); -} - -void PythonQtWrapper_QListView::setLayoutMode(QListView* theWrappedObject, QListView::LayoutMode mode) -{ - ( theWrappedObject->setLayoutMode(mode)); -} - -void PythonQtWrapper_QListView::setModelColumn(QListView* theWrappedObject, int column) -{ - ( theWrappedObject->setModelColumn(column)); -} - -void PythonQtWrapper_QListView::setMovement(QListView* theWrappedObject, QListView::Movement movement) -{ - ( theWrappedObject->setMovement(movement)); -} - -void PythonQtWrapper_QListView::setResizeMode(QListView* theWrappedObject, QListView::ResizeMode mode) -{ - ( theWrappedObject->setResizeMode(mode)); -} - -void PythonQtWrapper_QListView::setRootIndex(QListView* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_setRootIndex(index)); -} - -void PythonQtWrapper_QListView::setRowHidden(QListView* theWrappedObject, int row, bool hide) -{ - ( theWrappedObject->setRowHidden(row, hide)); -} - -void PythonQtWrapper_QListView::setSelection(QListView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_setSelection(rect, command)); -} - -void PythonQtWrapper_QListView::setSelectionRectVisible(QListView* theWrappedObject, bool show) -{ - ( theWrappedObject->setSelectionRectVisible(show)); -} - -void PythonQtWrapper_QListView::setSpacing(QListView* theWrappedObject, int space) -{ - ( theWrappedObject->setSpacing(space)); -} - -void PythonQtWrapper_QListView::setUniformItemSizes(QListView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setUniformItemSizes(enable)); -} - -void PythonQtWrapper_QListView::setViewMode(QListView* theWrappedObject, QListView::ViewMode mode) -{ - ( theWrappedObject->setViewMode(mode)); -} - -void PythonQtWrapper_QListView::setWordWrap(QListView* theWrappedObject, bool on) -{ - ( theWrappedObject->setWordWrap(on)); -} - -void PythonQtWrapper_QListView::setWrapping(QListView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setWrapping(enable)); -} - -int PythonQtWrapper_QListView::spacing(QListView* theWrappedObject) const -{ - return ( theWrappedObject->spacing()); -} - -void PythonQtWrapper_QListView::startDrag(QListView* theWrappedObject, Qt::DropActions supportedActions) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_startDrag(supportedActions)); -} - -void PythonQtWrapper_QListView::timerEvent(QListView* theWrappedObject, QTimerEvent* e) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_timerEvent(e)); -} - -bool PythonQtWrapper_QListView::uniformItemSizes(QListView* theWrappedObject) const -{ - return ( theWrappedObject->uniformItemSizes()); -} - -void PythonQtWrapper_QListView::updateGeometries(QListView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_updateGeometries()); -} - -int PythonQtWrapper_QListView::verticalOffset(QListView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_verticalOffset()); -} - -QListView::ViewMode PythonQtWrapper_QListView::viewMode(QListView* theWrappedObject) const -{ - return ( theWrappedObject->viewMode()); -} - -QStyleOptionViewItem PythonQtWrapper_QListView::viewOptions(QListView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_viewOptions()); -} - -QRect PythonQtWrapper_QListView::visualRect(QListView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_visualRect(index)); -} - -QRegion PythonQtWrapper_QListView::visualRegionForSelection(QListView* theWrappedObject, const QItemSelection& selection) const -{ - return ( ((PythonQtPublicPromoter_QListView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); -} - -bool PythonQtWrapper_QListView::wordWrap(QListView* theWrappedObject) const -{ - return ( theWrappedObject->wordWrap()); -} - - - -void PythonQtShell_QListWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::actionEvent(arg__1); -} -void PythonQtShell_QListWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::changeEvent(arg__1); -} -void PythonQtShell_QListWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::childEvent(arg__1); -} -void PythonQtShell_QListWidget::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::closeEditor(editor, hint); -} -void PythonQtShell_QListWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::closeEvent(arg__1); -} -void PythonQtShell_QListWidget::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::commitData(editor); -} -void PythonQtShell_QListWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QListWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::currentChanged(current, previous); -} -void PythonQtShell_QListWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::customEvent(arg__1); -} -void PythonQtShell_QListWidget::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QListWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::devType(); -} -void PythonQtShell_QListWidget::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::doItemsLayout(); -} -void PythonQtShell_QListWidget::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QListWidget::dragEnterEvent(event); -} -void PythonQtShell_QListWidget::dragLeaveEvent(QDragLeaveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::dragLeaveEvent(e); -} -void PythonQtShell_QListWidget::dragMoveEvent(QDragMoveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::dragMoveEvent(e); -} -void PythonQtShell_QListWidget::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QListWidget::dropEvent(event); -} -bool PythonQtShell_QListWidget::dropMimeData(int index, const QMimeData* data, Qt::DropAction action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "const QMimeData*" , "Qt::DropAction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&data, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::dropMimeData(index, data, action); -} -bool PythonQtShell_QListWidget::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::edit(index, trigger, event); -} -void PythonQtShell_QListWidget::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::editorDestroyed(editor); -} -void PythonQtShell_QListWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::enterEvent(arg__1); -} -bool PythonQtShell_QListWidget::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::event(e); -} -bool PythonQtShell_QListWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QListWidget::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListWidget::focusInEvent(event); -} -bool PythonQtShell_QListWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::focusNextPrevChild(next); -} -void PythonQtShell_QListWidget::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListWidget::focusOutEvent(event); -} -int PythonQtShell_QListWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::heightForWidth(arg__1); -} -void PythonQtShell_QListWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::hideEvent(arg__1); -} -int PythonQtShell_QListWidget::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::horizontalOffset(); -} -void PythonQtShell_QListWidget::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::horizontalScrollbarAction(action); -} -void PythonQtShell_QListWidget::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QListWidget::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::indexAt(p); -} -void PythonQtShell_QListWidget::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QListWidget::inputMethodEvent(event); -} -QVariant PythonQtShell_QListWidget::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::inputMethodQuery(query); -} -bool PythonQtShell_QListWidget::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::isIndexHidden(index); -} -void PythonQtShell_QListWidget::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListWidget::keyPressEvent(event); -} -void PythonQtShell_QListWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QListWidget::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::keyboardSearch(search); -} -void PythonQtShell_QListWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::languageChange(); -} -void PythonQtShell_QListWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::leaveEvent(arg__1); -} -int PythonQtShell_QListWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::metric(arg__1); -} -QMimeData* PythonQtShell_QListWidget::mimeData(const QList items) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&items}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::mimeData(items); -} -QStringList PythonQtShell_QListWidget::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::mimeTypes(); -} -void PythonQtShell_QListWidget::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListWidget::mouseDoubleClickEvent(event); -} -void PythonQtShell_QListWidget::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::mouseMoveEvent(e); -} -void PythonQtShell_QListWidget::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListWidget::mousePressEvent(event); -} -void PythonQtShell_QListWidget::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::mouseReleaseEvent(e); -} -void PythonQtShell_QListWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QListWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::paintEngine(); -} -void PythonQtShell_QListWidget::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::paintEvent(e); -} -void PythonQtShell_QListWidget::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::reset(); -} -void PythonQtShell_QListWidget::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::resizeEvent(e); -} -void PythonQtShell_QListWidget::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QListWidget::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::rowsInserted(parent, start, end); -} -void PythonQtShell_QListWidget::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QListWidget::scrollContentsBy(dx, dy); -} -void PythonQtShell_QListWidget::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::scrollTo(index, hint); -} -void PythonQtShell_QListWidget::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::selectAll(); -} -QList PythonQtShell_QListWidget::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::selectedIndexes(); -} -void PythonQtShell_QListWidget::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QListWidget::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::selectionCommand(index, event); -} -void PythonQtShell_QListWidget::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::setRootIndex(index); -} -void PythonQtShell_QListWidget::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::setSelection(rect, command); -} -void PythonQtShell_QListWidget::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::setSelectionModel(selectionModel); -} -void PythonQtShell_QListWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::showEvent(arg__1); -} -int PythonQtShell_QListWidget::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::sizeHintForColumn(column); -} -int PythonQtShell_QListWidget::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::sizeHintForRow(row); -} -void PythonQtShell_QListWidget::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::startDrag(supportedActions); -} -Qt::DropActions PythonQtShell_QListWidget::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::supportedDropActions(); -} -void PythonQtShell_QListWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::tabletEvent(arg__1); -} -void PythonQtShell_QListWidget::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::timerEvent(e); -} -void PythonQtShell_QListWidget::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::updateEditorData(); -} -void PythonQtShell_QListWidget::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::updateEditorGeometries(); -} -void PythonQtShell_QListWidget::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::updateGeometries(); -} -int PythonQtShell_QListWidget::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::verticalOffset(); -} -void PythonQtShell_QListWidget::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::verticalScrollbarAction(action); -} -void PythonQtShell_QListWidget::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QListWidget::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::viewOptions(); -} -bool PythonQtShell_QListWidget::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::viewportEvent(event); -} -QRect PythonQtShell_QListWidget::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::visualRect(index); -} -QRegion PythonQtShell_QListWidget::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidget::visualRegionForSelection(selection); -} -void PythonQtShell_QListWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidget::wheelEvent(arg__1); -} -QListWidget* PythonQtWrapper_QListWidget::new_QListWidget(QWidget* parent) -{ -return new PythonQtShell_QListWidget(parent); } - -void PythonQtWrapper_QListWidget::addItem(QListWidget* theWrappedObject, QListWidgetItem* item) -{ - ( theWrappedObject->addItem(item)); -} - -void PythonQtWrapper_QListWidget::addItem(QListWidget* theWrappedObject, const QString& label) -{ - ( theWrappedObject->addItem(label)); -} - -void PythonQtWrapper_QListWidget::addItems(QListWidget* theWrappedObject, const QStringList& labels) -{ - ( theWrappedObject->addItems(labels)); -} - -void PythonQtWrapper_QListWidget::closePersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item) -{ - ( theWrappedObject->closePersistentEditor(item)); -} - -int PythonQtWrapper_QListWidget::count(QListWidget* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -QListWidgetItem* PythonQtWrapper_QListWidget::currentItem(QListWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentItem()); -} - -int PythonQtWrapper_QListWidget::currentRow(QListWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentRow()); -} - -void PythonQtWrapper_QListWidget::dropEvent(QListWidget* theWrappedObject, QDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_dropEvent(event)); -} - -bool PythonQtWrapper_QListWidget::dropMimeData(QListWidget* theWrappedObject, int index, const QMimeData* data, Qt::DropAction action) -{ - return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_dropMimeData(index, data, action)); -} - -void PythonQtWrapper_QListWidget::editItem(QListWidget* theWrappedObject, QListWidgetItem* item) -{ - ( theWrappedObject->editItem(item)); -} - -bool PythonQtWrapper_QListWidget::event(QListWidget* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_event(e)); -} - -QList PythonQtWrapper_QListWidget::findItems(QListWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const -{ - return ( theWrappedObject->findItems(text, flags)); -} - -void PythonQtWrapper_QListWidget::insertItem(QListWidget* theWrappedObject, int row, QListWidgetItem* item) -{ - ( theWrappedObject->insertItem(row, item)); -} - -void PythonQtWrapper_QListWidget::insertItem(QListWidget* theWrappedObject, int row, const QString& label) -{ - ( theWrappedObject->insertItem(row, label)); -} - -void PythonQtWrapper_QListWidget::insertItems(QListWidget* theWrappedObject, int row, const QStringList& labels) -{ - ( theWrappedObject->insertItems(row, labels)); -} - -bool PythonQtWrapper_QListWidget::isSortingEnabled(QListWidget* theWrappedObject) const -{ - return ( theWrappedObject->isSortingEnabled()); -} - -QListWidgetItem* PythonQtWrapper_QListWidget::item(QListWidget* theWrappedObject, int row) const -{ - return ( theWrappedObject->item(row)); -} - -QListWidgetItem* PythonQtWrapper_QListWidget::itemAt(QListWidget* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->itemAt(p)); -} - -QListWidgetItem* PythonQtWrapper_QListWidget::itemAt(QListWidget* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->itemAt(x, y)); -} - -QWidget* PythonQtWrapper_QListWidget::itemWidget(QListWidget* theWrappedObject, QListWidgetItem* item) const -{ - return ( theWrappedObject->itemWidget(item)); -} - -QStringList PythonQtWrapper_QListWidget::mimeTypes(QListWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_mimeTypes()); -} - -void PythonQtWrapper_QListWidget::openPersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item) -{ - ( theWrappedObject->openPersistentEditor(item)); -} - -void PythonQtWrapper_QListWidget::removeItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item) -{ - ( theWrappedObject->removeItemWidget(item)); -} - -int PythonQtWrapper_QListWidget::row(QListWidget* theWrappedObject, const QListWidgetItem* item) const -{ - return ( theWrappedObject->row(item)); -} - -QList PythonQtWrapper_QListWidget::selectedItems(QListWidget* theWrappedObject) const -{ - return ( theWrappedObject->selectedItems()); -} - -void PythonQtWrapper_QListWidget::setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item) -{ - ( theWrappedObject->setCurrentItem(item)); -} - -void PythonQtWrapper_QListWidget::setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item, QItemSelectionModel::SelectionFlags command) -{ - ( theWrappedObject->setCurrentItem(item, command)); -} - -void PythonQtWrapper_QListWidget::setCurrentRow(QListWidget* theWrappedObject, int row) -{ - ( theWrappedObject->setCurrentRow(row)); -} - -void PythonQtWrapper_QListWidget::setCurrentRow(QListWidget* theWrappedObject, int row, QItemSelectionModel::SelectionFlags command) -{ - ( theWrappedObject->setCurrentRow(row, command)); -} - -void PythonQtWrapper_QListWidget::setItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item, QWidget* widget) -{ - ( theWrappedObject->setItemWidget(item, widget)); -} - -void PythonQtWrapper_QListWidget::setSortingEnabled(QListWidget* theWrappedObject, bool enable) -{ - ( theWrappedObject->setSortingEnabled(enable)); -} - -void PythonQtWrapper_QListWidget::sortItems(QListWidget* theWrappedObject, Qt::SortOrder order) -{ - ( theWrappedObject->sortItems(order)); -} - -Qt::DropActions PythonQtWrapper_QListWidget::supportedDropActions(QListWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QListWidget*)theWrappedObject)->promoted_supportedDropActions()); -} - -QListWidgetItem* PythonQtWrapper_QListWidget::takeItem(QListWidget* theWrappedObject, int row) -{ - return ( theWrappedObject->takeItem(row)); -} - -QRect PythonQtWrapper_QListWidget::visualItemRect(QListWidget* theWrappedObject, const QListWidgetItem* item) const -{ - return ( theWrappedObject->visualItemRect(item)); -} - - - -QListWidgetItem* PythonQtShell_QListWidgetItem::clone() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QListWidgetItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QListWidgetItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); - } else { - returnValue = *((QListWidgetItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidgetItem::clone(); -} -QVariant PythonQtShell_QListWidgetItem::data(int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidgetItem::data(role); -} -bool PythonQtShell_QListWidgetItem::__lt__(const QListWidgetItem& other) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QListWidgetItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QListWidgetItem::operator<(other); -} -void PythonQtShell_QListWidgetItem::read(QDataStream& in) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&in}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidgetItem::read(in); -} -void PythonQtShell_QListWidgetItem::setBackgroundColor(const QColor& color) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setBackgroundColor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QColor&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&color}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidgetItem::setBackgroundColor(color); -} -void PythonQtShell_QListWidgetItem::setData(int role, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&role, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidgetItem::setData(role, value); -} -void PythonQtShell_QListWidgetItem::write(QDataStream& out) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&out}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QListWidgetItem::write(out); -} -QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(QListWidget* view, int type) -{ -return new PythonQtShell_QListWidgetItem(view, type); } - -QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view, int type) -{ -return new PythonQtShell_QListWidgetItem(icon, text, view, type); } - -QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(const QString& text, QListWidget* view, int type) -{ -return new PythonQtShell_QListWidgetItem(text, view, type); } - -QBrush PythonQtWrapper_QListWidgetItem::background(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->background()); -} - -Qt::CheckState PythonQtWrapper_QListWidgetItem::checkState(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->checkState()); -} - -QListWidgetItem* PythonQtWrapper_QListWidgetItem::clone(QListWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_clone()); -} - -QVariant PythonQtWrapper_QListWidgetItem::data(QListWidgetItem* theWrappedObject, int role) const -{ - return ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_data(role)); -} - -Qt::ItemFlags PythonQtWrapper_QListWidgetItem::flags(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->flags()); -} - -QFont PythonQtWrapper_QListWidgetItem::font(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -QBrush PythonQtWrapper_QListWidgetItem::foreground(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->foreground()); -} - -QIcon PythonQtWrapper_QListWidgetItem::icon(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -bool PythonQtWrapper_QListWidgetItem::isHidden(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isHidden()); -} - -bool PythonQtWrapper_QListWidgetItem::isSelected(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isSelected()); -} - -QListWidget* PythonQtWrapper_QListWidgetItem::listWidget(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->listWidget()); -} - -void PythonQtWrapper_QListWidgetItem::writeTo(QListWidgetItem* theWrappedObject, QDataStream& out) -{ - out << (*theWrappedObject); -} - -void PythonQtWrapper_QListWidgetItem::readFrom(QListWidgetItem* theWrappedObject, QDataStream& in) -{ - in >> (*theWrappedObject); -} - -void PythonQtWrapper_QListWidgetItem::setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBackground(brush)); -} - -void PythonQtWrapper_QListWidgetItem::setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state) -{ - ( theWrappedObject->setCheckState(state)); -} - -void PythonQtWrapper_QListWidgetItem::setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value) -{ - ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_setData(role, value)); -} - -void PythonQtWrapper_QListWidgetItem::setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags) -{ - ( theWrappedObject->setFlags(flags)); -} - -void PythonQtWrapper_QListWidgetItem::setFont(QListWidgetItem* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QListWidgetItem::setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setForeground(brush)); -} - -void PythonQtWrapper_QListWidgetItem::setHidden(QListWidgetItem* theWrappedObject, bool hide) -{ - ( theWrappedObject->setHidden(hide)); -} - -void PythonQtWrapper_QListWidgetItem::setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setIcon(icon)); -} - -void PythonQtWrapper_QListWidgetItem::setSelected(QListWidgetItem* theWrappedObject, bool select) -{ - ( theWrappedObject->setSelected(select)); -} - -void PythonQtWrapper_QListWidgetItem::setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setSizeHint(size)); -} - -void PythonQtWrapper_QListWidgetItem::setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip) -{ - ( theWrappedObject->setStatusTip(statusTip)); -} - -void PythonQtWrapper_QListWidgetItem::setText(QListWidgetItem* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -void PythonQtWrapper_QListWidgetItem::setTextAlignment(QListWidgetItem* theWrappedObject, int alignment) -{ - ( theWrappedObject->setTextAlignment(alignment)); -} - -void PythonQtWrapper_QListWidgetItem::setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip) -{ - ( theWrappedObject->setToolTip(toolTip)); -} - -void PythonQtWrapper_QListWidgetItem::setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis) -{ - ( theWrappedObject->setWhatsThis(whatsThis)); -} - -QSize PythonQtWrapper_QListWidgetItem::sizeHint(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QString PythonQtWrapper_QListWidgetItem::statusTip(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->statusTip()); -} - -QString PythonQtWrapper_QListWidgetItem::text(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -int PythonQtWrapper_QListWidgetItem::textAlignment(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->textAlignment()); -} - -QString PythonQtWrapper_QListWidgetItem::toolTip(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - -int PythonQtWrapper_QListWidgetItem::type(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -QString PythonQtWrapper_QListWidgetItem::whatsThis(QListWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->whatsThis()); -} - - - -void PythonQtShell_QMainWindow::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::actionEvent(arg__1); -} -void PythonQtShell_QMainWindow::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::changeEvent(arg__1); -} -void PythonQtShell_QMainWindow::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::childEvent(arg__1); -} -void PythonQtShell_QMainWindow::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::closeEvent(arg__1); -} -void PythonQtShell_QMainWindow::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QMainWindow::contextMenuEvent(event); -} -QMenu* PythonQtShell_QMainWindow::createPopupMenu() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createPopupMenu"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMenu*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QMenu* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createPopupMenu", methodInfo, result); - } else { - returnValue = *((QMenu**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::createPopupMenu(); -} -void PythonQtShell_QMainWindow::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::customEvent(arg__1); -} -int PythonQtShell_QMainWindow::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::devType(); -} -void PythonQtShell_QMainWindow::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::dragEnterEvent(arg__1); -} -void PythonQtShell_QMainWindow::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::dragLeaveEvent(arg__1); -} -void PythonQtShell_QMainWindow::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::dragMoveEvent(arg__1); -} -void PythonQtShell_QMainWindow::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::dropEvent(arg__1); -} -void PythonQtShell_QMainWindow::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::enterEvent(arg__1); -} -bool PythonQtShell_QMainWindow::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::event(event); -} -bool PythonQtShell_QMainWindow::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QMainWindow::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::focusInEvent(arg__1); -} -bool PythonQtShell_QMainWindow::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::focusNextPrevChild(next); -} -void PythonQtShell_QMainWindow::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::focusOutEvent(arg__1); -} -int PythonQtShell_QMainWindow::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::heightForWidth(arg__1); -} -void PythonQtShell_QMainWindow::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::hideEvent(arg__1); -} -void PythonQtShell_QMainWindow::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QMainWindow::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::inputMethodQuery(arg__1); -} -void PythonQtShell_QMainWindow::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::keyPressEvent(arg__1); -} -void PythonQtShell_QMainWindow::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::keyReleaseEvent(arg__1); -} -void PythonQtShell_QMainWindow::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::languageChange(); -} -void PythonQtShell_QMainWindow::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::leaveEvent(arg__1); -} -int PythonQtShell_QMainWindow::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::metric(arg__1); -} -QSize PythonQtShell_QMainWindow::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::minimumSizeHint(); -} -void PythonQtShell_QMainWindow::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QMainWindow::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::mouseMoveEvent(arg__1); -} -void PythonQtShell_QMainWindow::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::mousePressEvent(arg__1); -} -void PythonQtShell_QMainWindow::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QMainWindow::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QMainWindow::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::paintEngine(); -} -void PythonQtShell_QMainWindow::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::paintEvent(arg__1); -} -void PythonQtShell_QMainWindow::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::resizeEvent(arg__1); -} -void PythonQtShell_QMainWindow::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::showEvent(arg__1); -} -QSize PythonQtShell_QMainWindow::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMainWindow::sizeHint(); -} -void PythonQtShell_QMainWindow::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::tabletEvent(arg__1); -} -void PythonQtShell_QMainWindow::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::timerEvent(arg__1); -} -void PythonQtShell_QMainWindow::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMainWindow::wheelEvent(arg__1); -} -QMainWindow* PythonQtWrapper_QMainWindow::new_QMainWindow(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QMainWindow(parent, flags); } - -void PythonQtWrapper_QMainWindow::addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget) -{ - ( theWrappedObject->addDockWidget(area, dockwidget)); -} - -void PythonQtWrapper_QMainWindow::addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget, Qt::Orientation orientation) -{ - ( theWrappedObject->addDockWidget(area, dockwidget, orientation)); -} - -void PythonQtWrapper_QMainWindow::addToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar) -{ - ( theWrappedObject->addToolBar(toolbar)); -} - -void PythonQtWrapper_QMainWindow::addToolBar(QMainWindow* theWrappedObject, Qt::ToolBarArea area, QToolBar* toolbar) -{ - ( theWrappedObject->addToolBar(area, toolbar)); -} - -QToolBar* PythonQtWrapper_QMainWindow::addToolBar(QMainWindow* theWrappedObject, const QString& title) -{ - return ( theWrappedObject->addToolBar(title)); -} - -void PythonQtWrapper_QMainWindow::addToolBarBreak(QMainWindow* theWrappedObject, Qt::ToolBarArea area) -{ - ( theWrappedObject->addToolBarBreak(area)); -} - -QWidget* PythonQtWrapper_QMainWindow::centralWidget(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->centralWidget()); -} - -void PythonQtWrapper_QMainWindow::contextMenuEvent(QMainWindow* theWrappedObject, QContextMenuEvent* event) -{ - ( ((PythonQtPublicPromoter_QMainWindow*)theWrappedObject)->promoted_contextMenuEvent(event)); -} - -Qt::DockWidgetArea PythonQtWrapper_QMainWindow::corner(QMainWindow* theWrappedObject, Qt::Corner corner) const -{ - return ( theWrappedObject->corner(corner)); -} - -QMenu* PythonQtWrapper_QMainWindow::createPopupMenu(QMainWindow* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QMainWindow*)theWrappedObject)->promoted_createPopupMenu()); -} - -QMainWindow::DockOptions PythonQtWrapper_QMainWindow::dockOptions(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->dockOptions()); -} - -Qt::DockWidgetArea PythonQtWrapper_QMainWindow::dockWidgetArea(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const -{ - return ( theWrappedObject->dockWidgetArea(dockwidget)); -} - -bool PythonQtWrapper_QMainWindow::documentMode(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->documentMode()); -} - -bool PythonQtWrapper_QMainWindow::event(QMainWindow* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QMainWindow*)theWrappedObject)->promoted_event(event)); -} - -QSize PythonQtWrapper_QMainWindow::iconSize(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->iconSize()); -} - -void PythonQtWrapper_QMainWindow::insertToolBar(QMainWindow* theWrappedObject, QToolBar* before, QToolBar* toolbar) -{ - ( theWrappedObject->insertToolBar(before, toolbar)); -} - -void PythonQtWrapper_QMainWindow::insertToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before) -{ - ( theWrappedObject->insertToolBarBreak(before)); -} - -bool PythonQtWrapper_QMainWindow::isAnimated(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->isAnimated()); -} - -bool PythonQtWrapper_QMainWindow::isDockNestingEnabled(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->isDockNestingEnabled()); -} - -bool PythonQtWrapper_QMainWindow::isSeparator(QMainWindow* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->isSeparator(pos)); -} - -QMenuBar* PythonQtWrapper_QMainWindow::menuBar(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->menuBar()); -} - -QWidget* PythonQtWrapper_QMainWindow::menuWidget(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->menuWidget()); -} - -void PythonQtWrapper_QMainWindow::removeDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget) -{ - ( theWrappedObject->removeDockWidget(dockwidget)); -} - -void PythonQtWrapper_QMainWindow::removeToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar) -{ - ( theWrappedObject->removeToolBar(toolbar)); -} - -void PythonQtWrapper_QMainWindow::removeToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before) -{ - ( theWrappedObject->removeToolBarBreak(before)); -} - -bool PythonQtWrapper_QMainWindow::restoreDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget) -{ - return ( theWrappedObject->restoreDockWidget(dockwidget)); -} - -bool PythonQtWrapper_QMainWindow::restoreState(QMainWindow* theWrappedObject, const QByteArray& state, int version) -{ - return ( theWrappedObject->restoreState(state, version)); -} - -QByteArray PythonQtWrapper_QMainWindow::saveState(QMainWindow* theWrappedObject, int version) const -{ - return ( theWrappedObject->saveState(version)); -} - -void PythonQtWrapper_QMainWindow::setCentralWidget(QMainWindow* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setCentralWidget(widget)); -} - -void PythonQtWrapper_QMainWindow::setCorner(QMainWindow* theWrappedObject, Qt::Corner corner, Qt::DockWidgetArea area) -{ - ( theWrappedObject->setCorner(corner, area)); -} - -void PythonQtWrapper_QMainWindow::setDockOptions(QMainWindow* theWrappedObject, QMainWindow::DockOptions options) -{ - ( theWrappedObject->setDockOptions(options)); -} - -void PythonQtWrapper_QMainWindow::setDocumentMode(QMainWindow* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setDocumentMode(enabled)); -} - -void PythonQtWrapper_QMainWindow::setIconSize(QMainWindow* theWrappedObject, const QSize& iconSize) -{ - ( theWrappedObject->setIconSize(iconSize)); -} - -void PythonQtWrapper_QMainWindow::setMenuBar(QMainWindow* theWrappedObject, QMenuBar* menubar) -{ - ( theWrappedObject->setMenuBar(menubar)); -} - -void PythonQtWrapper_QMainWindow::setMenuWidget(QMainWindow* theWrappedObject, QWidget* menubar) -{ - ( theWrappedObject->setMenuWidget(menubar)); -} - -void PythonQtWrapper_QMainWindow::setStatusBar(QMainWindow* theWrappedObject, QStatusBar* statusbar) -{ - ( theWrappedObject->setStatusBar(statusbar)); -} - -void PythonQtWrapper_QMainWindow::setTabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition) -{ - ( theWrappedObject->setTabPosition(areas, tabPosition)); -} - -void PythonQtWrapper_QMainWindow::setTabShape(QMainWindow* theWrappedObject, QTabWidget::TabShape tabShape) -{ - ( theWrappedObject->setTabShape(tabShape)); -} - -void PythonQtWrapper_QMainWindow::setToolButtonStyle(QMainWindow* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle) -{ - ( theWrappedObject->setToolButtonStyle(toolButtonStyle)); -} - -void PythonQtWrapper_QMainWindow::setUnifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject, bool set) -{ - ( theWrappedObject->setUnifiedTitleAndToolBarOnMac(set)); -} - -void PythonQtWrapper_QMainWindow::splitDockWidget(QMainWindow* theWrappedObject, QDockWidget* after, QDockWidget* dockwidget, Qt::Orientation orientation) -{ - ( theWrappedObject->splitDockWidget(after, dockwidget, orientation)); -} - -QStatusBar* PythonQtWrapper_QMainWindow::statusBar(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->statusBar()); -} - -QTabWidget::TabPosition PythonQtWrapper_QMainWindow::tabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetArea area) const -{ - return ( theWrappedObject->tabPosition(area)); -} - -QTabWidget::TabShape PythonQtWrapper_QMainWindow::tabShape(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->tabShape()); -} - -QList PythonQtWrapper_QMainWindow::tabifiedDockWidgets(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const -{ - return ( theWrappedObject->tabifiedDockWidgets(dockwidget)); -} - -void PythonQtWrapper_QMainWindow::tabifyDockWidget(QMainWindow* theWrappedObject, QDockWidget* first, QDockWidget* second) -{ - ( theWrappedObject->tabifyDockWidget(first, second)); -} - -Qt::ToolBarArea PythonQtWrapper_QMainWindow::toolBarArea(QMainWindow* theWrappedObject, QToolBar* toolbar) const -{ - return ( theWrappedObject->toolBarArea(toolbar)); -} - -bool PythonQtWrapper_QMainWindow::toolBarBreak(QMainWindow* theWrappedObject, QToolBar* toolbar) const -{ - return ( theWrappedObject->toolBarBreak(toolbar)); -} - -Qt::ToolButtonStyle PythonQtWrapper_QMainWindow::toolButtonStyle(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->toolButtonStyle()); -} - -bool PythonQtWrapper_QMainWindow::unifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject) const -{ - return ( theWrappedObject->unifiedTitleAndToolBarOnMac()); -} - - - -QMargins* PythonQtWrapper_QMargins::new_QMargins() -{ -return new QMargins(); } - -QMargins* PythonQtWrapper_QMargins::new_QMargins(int left, int top, int right, int bottom) -{ -return new QMargins(left, top, right, bottom); } - -int PythonQtWrapper_QMargins::bottom(QMargins* theWrappedObject) const -{ - return ( theWrappedObject->bottom()); -} - -bool PythonQtWrapper_QMargins::isNull(QMargins* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -int PythonQtWrapper_QMargins::left(QMargins* theWrappedObject) const -{ - return ( theWrappedObject->left()); -} - -bool PythonQtWrapper_QMargins::__eq__(QMargins* theWrappedObject, const QMargins& m2) -{ - return ( (*theWrappedObject)== m2); -} - -int PythonQtWrapper_QMargins::right(QMargins* theWrappedObject) const -{ - return ( theWrappedObject->right()); -} - -void PythonQtWrapper_QMargins::setBottom(QMargins* theWrappedObject, int bottom) -{ - ( theWrappedObject->setBottom(bottom)); -} - -void PythonQtWrapper_QMargins::setLeft(QMargins* theWrappedObject, int left) -{ - ( theWrappedObject->setLeft(left)); -} - -void PythonQtWrapper_QMargins::setRight(QMargins* theWrappedObject, int right) -{ - ( theWrappedObject->setRight(right)); -} - -void PythonQtWrapper_QMargins::setTop(QMargins* theWrappedObject, int top) -{ - ( theWrappedObject->setTop(top)); -} - -int PythonQtWrapper_QMargins::top(QMargins* theWrappedObject) const -{ - return ( theWrappedObject->top()); -} - -QString PythonQtWrapper_QMargins::py_toString(QMargins* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.h deleted file mode 100644 index b702d4bc8..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.h +++ /dev/null @@ -1,2053 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QIconEnginePluginV2 : public QIconEnginePluginV2 -{ -public: - PythonQtShell_QIconEnginePluginV2(QObject* parent = 0):QIconEnginePluginV2(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QIconEngineV2* create(const QString& filename = QString()); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QStringList keys() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QIconEnginePluginV2 : public QObject -{ Q_OBJECT -public: -public slots: -QIconEnginePluginV2* new_QIconEnginePluginV2(QObject* parent = 0); -void delete_QIconEnginePluginV2(QIconEnginePluginV2* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QImageIOHandler : public QImageIOHandler -{ -public: - PythonQtShell_QImageIOHandler():QImageIOHandler(),_wrapper(NULL) {}; - -virtual bool canRead() const; -virtual int currentImageNumber() const; -virtual QRect currentImageRect() const; -virtual int imageCount() const; -virtual bool jumpToImage(int imageNumber); -virtual bool jumpToNextImage(); -virtual int loopCount() const; -virtual QByteArray name() const; -virtual int nextImageDelay() const; -virtual QVariant option(QImageIOHandler::ImageOption option) const; -virtual bool read(QImage* image); -virtual void setOption(QImageIOHandler::ImageOption option, const QVariant& value); -virtual bool supportsOption(QImageIOHandler::ImageOption option) const; -virtual bool write(const QImage& image); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QImageIOHandler : public QImageIOHandler -{ public: -inline int promoted_currentImageNumber() const { return QImageIOHandler::currentImageNumber(); } -inline QRect promoted_currentImageRect() const { return QImageIOHandler::currentImageRect(); } -inline int promoted_imageCount() const { return QImageIOHandler::imageCount(); } -inline bool promoted_jumpToImage(int imageNumber) { return QImageIOHandler::jumpToImage(imageNumber); } -inline bool promoted_jumpToNextImage() { return QImageIOHandler::jumpToNextImage(); } -inline int promoted_loopCount() const { return QImageIOHandler::loopCount(); } -inline int promoted_nextImageDelay() const { return QImageIOHandler::nextImageDelay(); } -inline QVariant promoted_option(QImageIOHandler::ImageOption option) const { return QImageIOHandler::option(option); } -inline void promoted_setOption(QImageIOHandler::ImageOption option, const QVariant& value) { QImageIOHandler::setOption(option, value); } -inline bool promoted_supportsOption(QImageIOHandler::ImageOption option) const { return QImageIOHandler::supportsOption(option); } -inline bool promoted_write(const QImage& image) { return QImageIOHandler::write(image); } -}; - -class PythonQtWrapper_QImageIOHandler : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ImageOption ) -enum ImageOption{ - Size = QImageIOHandler::Size, ClipRect = QImageIOHandler::ClipRect, Description = QImageIOHandler::Description, ScaledClipRect = QImageIOHandler::ScaledClipRect, ScaledSize = QImageIOHandler::ScaledSize, CompressionRatio = QImageIOHandler::CompressionRatio, Gamma = QImageIOHandler::Gamma, Quality = QImageIOHandler::Quality, Name = QImageIOHandler::Name, SubType = QImageIOHandler::SubType, IncrementalReading = QImageIOHandler::IncrementalReading, Endianness = QImageIOHandler::Endianness, Animation = QImageIOHandler::Animation, BackgroundColor = QImageIOHandler::BackgroundColor, ImageFormat = QImageIOHandler::ImageFormat}; -public slots: -QImageIOHandler* new_QImageIOHandler(); -void delete_QImageIOHandler(QImageIOHandler* obj) { delete obj; } - int currentImageNumber(QImageIOHandler* theWrappedObject) const; - QRect currentImageRect(QImageIOHandler* theWrappedObject) const; - QIODevice* device(QImageIOHandler* theWrappedObject) const; - QByteArray format(QImageIOHandler* theWrappedObject) const; - int imageCount(QImageIOHandler* theWrappedObject) const; - bool jumpToImage(QImageIOHandler* theWrappedObject, int imageNumber); - bool jumpToNextImage(QImageIOHandler* theWrappedObject); - int loopCount(QImageIOHandler* theWrappedObject) const; - int nextImageDelay(QImageIOHandler* theWrappedObject) const; - QVariant option(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const; - void setDevice(QImageIOHandler* theWrappedObject, QIODevice* device); - void setFormat(QImageIOHandler* theWrappedObject, const QByteArray& format); - void setOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option, const QVariant& value); - bool supportsOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const; - bool write(QImageIOHandler* theWrappedObject, const QImage& image); -}; - - - - - -class PythonQtShell_QImageIOPlugin : public QImageIOPlugin -{ -public: - PythonQtShell_QImageIOPlugin(QObject* parent = 0):QImageIOPlugin(parent),_wrapper(NULL) {}; - -virtual QImageIOPlugin::Capabilities capabilities(QIODevice* device, const QByteArray& format) const; -virtual void childEvent(QChildEvent* arg__1); -virtual QImageIOHandler* create(QIODevice* device, const QByteArray& format = QByteArray()) const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QStringList keys() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QImageIOPlugin : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Capability ) -Q_FLAGS(Capabilities ) -enum Capability{ - CanRead = QImageIOPlugin::CanRead, CanWrite = QImageIOPlugin::CanWrite, CanReadIncremental = QImageIOPlugin::CanReadIncremental}; -Q_DECLARE_FLAGS(Capabilities, Capability) -public slots: -QImageIOPlugin* new_QImageIOPlugin(QObject* parent = 0); -void delete_QImageIOPlugin(QImageIOPlugin* obj) { delete obj; } -}; - - - - - -class PythonQtWrapper_QImageReader : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ImageReaderError ) -enum ImageReaderError{ - UnknownError = QImageReader::UnknownError, FileNotFoundError = QImageReader::FileNotFoundError, DeviceError = QImageReader::DeviceError, UnsupportedFormatError = QImageReader::UnsupportedFormatError, InvalidDataError = QImageReader::InvalidDataError}; -public slots: -QImageReader* new_QImageReader(); -QImageReader* new_QImageReader(QIODevice* device, const QByteArray& format = QByteArray()); -QImageReader* new_QImageReader(const QString& fileName, const QByteArray& format = QByteArray()); -void delete_QImageReader(QImageReader* obj) { delete obj; } - bool autoDetectImageFormat(QImageReader* theWrappedObject) const; - QColor backgroundColor(QImageReader* theWrappedObject) const; - bool canRead(QImageReader* theWrappedObject) const; - QRect clipRect(QImageReader* theWrappedObject) const; - int currentImageNumber(QImageReader* theWrappedObject) const; - QRect currentImageRect(QImageReader* theWrappedObject) const; - bool decideFormatFromContent(QImageReader* theWrappedObject) const; - QIODevice* device(QImageReader* theWrappedObject) const; - QImageReader::ImageReaderError error(QImageReader* theWrappedObject) const; - QString errorString(QImageReader* theWrappedObject) const; - QString fileName(QImageReader* theWrappedObject) const; - QByteArray format(QImageReader* theWrappedObject) const; - int imageCount(QImageReader* theWrappedObject) const; - QImage::Format imageFormat(QImageReader* theWrappedObject) const; - QByteArray static_QImageReader_imageFormat(QIODevice* device); - QByteArray static_QImageReader_imageFormat(const QString& fileName); - bool jumpToImage(QImageReader* theWrappedObject, int imageNumber); - bool jumpToNextImage(QImageReader* theWrappedObject); - int loopCount(QImageReader* theWrappedObject) const; - int nextImageDelay(QImageReader* theWrappedObject) const; - int quality(QImageReader* theWrappedObject) const; - QImage read(QImageReader* theWrappedObject); - QRect scaledClipRect(QImageReader* theWrappedObject) const; - QSize scaledSize(QImageReader* theWrappedObject) const; - void setAutoDetectImageFormat(QImageReader* theWrappedObject, bool enabled); - void setBackgroundColor(QImageReader* theWrappedObject, const QColor& color); - void setClipRect(QImageReader* theWrappedObject, const QRect& rect); - void setDecideFormatFromContent(QImageReader* theWrappedObject, bool ignored); - void setDevice(QImageReader* theWrappedObject, QIODevice* device); - void setFileName(QImageReader* theWrappedObject, const QString& fileName); - void setFormat(QImageReader* theWrappedObject, const QByteArray& format); - void setQuality(QImageReader* theWrappedObject, int quality); - void setScaledClipRect(QImageReader* theWrappedObject, const QRect& rect); - void setScaledSize(QImageReader* theWrappedObject, const QSize& size); - QSize size(QImageReader* theWrappedObject) const; - QList static_QImageReader_supportedImageFormats(); - bool supportsAnimation(QImageReader* theWrappedObject) const; - bool supportsOption(QImageReader* theWrappedObject, QImageIOHandler::ImageOption option) const; - QString text(QImageReader* theWrappedObject, const QString& key) const; - QStringList textKeys(QImageReader* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QImageWriter : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ImageWriterError ) -enum ImageWriterError{ - UnknownError = QImageWriter::UnknownError, DeviceError = QImageWriter::DeviceError, UnsupportedFormatError = QImageWriter::UnsupportedFormatError}; -public slots: -QImageWriter* new_QImageWriter(); -QImageWriter* new_QImageWriter(QIODevice* device, const QByteArray& format); -QImageWriter* new_QImageWriter(const QString& fileName, const QByteArray& format = QByteArray()); -void delete_QImageWriter(QImageWriter* obj) { delete obj; } - bool canWrite(QImageWriter* theWrappedObject) const; - int compression(QImageWriter* theWrappedObject) const; - QIODevice* device(QImageWriter* theWrappedObject) const; - QImageWriter::ImageWriterError error(QImageWriter* theWrappedObject) const; - QString errorString(QImageWriter* theWrappedObject) const; - QString fileName(QImageWriter* theWrappedObject) const; - QByteArray format(QImageWriter* theWrappedObject) const; - float gamma(QImageWriter* theWrappedObject) const; - int quality(QImageWriter* theWrappedObject) const; - void setCompression(QImageWriter* theWrappedObject, int compression); - void setDevice(QImageWriter* theWrappedObject, QIODevice* device); - void setFileName(QImageWriter* theWrappedObject, const QString& fileName); - void setFormat(QImageWriter* theWrappedObject, const QByteArray& format); - void setGamma(QImageWriter* theWrappedObject, float gamma); - void setQuality(QImageWriter* theWrappedObject, int quality); - void setText(QImageWriter* theWrappedObject, const QString& key, const QString& text); - QList static_QImageWriter_supportedImageFormats(); - bool supportsOption(QImageWriter* theWrappedObject, QImageIOHandler::ImageOption option) const; - bool write(QImageWriter* theWrappedObject, const QImage& image); -}; - - - - - -class PythonQtShell_QInputContext : public QInputContext -{ -public: - PythonQtShell_QInputContext(QObject* parent = 0):QInputContext(parent),_wrapper(NULL) {}; - -virtual QList actions(); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool filterEvent(const QEvent* event); -virtual QFont font() const; -virtual QString identifierName(); -virtual bool isComposing() const; -virtual QString language(); -virtual void mouseHandler(int x, QMouseEvent* event); -virtual void reset(); -virtual void setFocusWidget(QWidget* w); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void update(); -virtual void widgetDestroyed(QWidget* w); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QInputContext : public QInputContext -{ public: -inline QList promoted_actions() { return QInputContext::actions(); } -inline bool promoted_filterEvent(const QEvent* event) { return QInputContext::filterEvent(event); } -inline QFont promoted_font() const { return QInputContext::font(); } -inline void promoted_mouseHandler(int x, QMouseEvent* event) { QInputContext::mouseHandler(x, event); } -inline void promoted_update() { QInputContext::update(); } -inline void promoted_widgetDestroyed(QWidget* w) { QInputContext::widgetDestroyed(w); } -}; - -class PythonQtWrapper_QInputContext : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StandardFormat ) -enum StandardFormat{ - PreeditFormat = QInputContext::PreeditFormat, SelectionFormat = QInputContext::SelectionFormat}; -public slots: -QInputContext* new_QInputContext(QObject* parent = 0); -void delete_QInputContext(QInputContext* obj) { delete obj; } - QList actions(QInputContext* theWrappedObject); - bool filterEvent(QInputContext* theWrappedObject, const QEvent* event); - QWidget* focusWidget(QInputContext* theWrappedObject) const; - QFont font(QInputContext* theWrappedObject) const; - void mouseHandler(QInputContext* theWrappedObject, int x, QMouseEvent* event); - void sendEvent(QInputContext* theWrappedObject, const QInputMethodEvent& event); - QTextFormat standardFormat(QInputContext* theWrappedObject, QInputContext::StandardFormat s) const; - void update(QInputContext* theWrappedObject); - void widgetDestroyed(QInputContext* theWrappedObject, QWidget* w); -}; - - - - - -class PythonQtShell_QInputContextFactory : public QInputContextFactory -{ -public: - PythonQtShell_QInputContextFactory():QInputContextFactory(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QInputContextFactory : public QObject -{ Q_OBJECT -public: -public slots: -QInputContextFactory* new_QInputContextFactory(); -void delete_QInputContextFactory(QInputContextFactory* obj) { delete obj; } - QInputContext* static_QInputContextFactory_create(const QString& key, QObject* parent); - QString static_QInputContextFactory_description(const QString& key); - QString static_QInputContextFactory_displayName(const QString& key); - QStringList static_QInputContextFactory_keys(); - QStringList static_QInputContextFactory_languages(const QString& key); -}; - - - - - -class PythonQtShell_QInputContextPlugin : public QInputContextPlugin -{ -public: - PythonQtShell_QInputContextPlugin(QObject* parent = 0):QInputContextPlugin(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QInputContext* create(const QString& key); -virtual void customEvent(QEvent* arg__1); -virtual QString description(const QString& key); -virtual QString displayName(const QString& key); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QStringList keys() const; -virtual QStringList languages(const QString& key); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QInputContextPlugin : public QObject -{ Q_OBJECT -public: -public slots: -QInputContextPlugin* new_QInputContextPlugin(QObject* parent = 0); -void delete_QInputContextPlugin(QInputContextPlugin* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QInputDialog : public QInputDialog -{ -public: - PythonQtShell_QInputDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0):QInputDialog(parent, flags),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QInputDialog : public QInputDialog -{ public: -inline void promoted_done(int result) { QInputDialog::done(result); } -}; - -class PythonQtWrapper_QInputDialog : public QObject -{ Q_OBJECT -public: -Q_ENUMS(InputMode InputDialogOption ) -Q_FLAGS(InputDialogOptions ) -enum InputMode{ - TextInput = QInputDialog::TextInput, IntInput = QInputDialog::IntInput, DoubleInput = QInputDialog::DoubleInput}; -enum InputDialogOption{ - NoButtons = QInputDialog::NoButtons, UseListViewForComboBoxItems = QInputDialog::UseListViewForComboBoxItems}; -Q_DECLARE_FLAGS(InputDialogOptions, InputDialogOption) -public slots: -QInputDialog* new_QInputDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QInputDialog(QInputDialog* obj) { delete obj; } - QString cancelButtonText(QInputDialog* theWrappedObject) const; - QStringList comboBoxItems(QInputDialog* theWrappedObject) const; - void done(QInputDialog* theWrappedObject, int result); - int doubleDecimals(QInputDialog* theWrappedObject) const; - double doubleMaximum(QInputDialog* theWrappedObject) const; - double doubleMinimum(QInputDialog* theWrappedObject) const; - double doubleValue(QInputDialog* theWrappedObject) const; - double static_QInputDialog_getDouble(QWidget* parent, const QString& title, const QString& label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, bool* ok = 0, Qt::WindowFlags flags = 0); - int static_QInputDialog_getInt(QWidget* parent, const QString& title, const QString& label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool* ok = 0, Qt::WindowFlags flags = 0); - int static_QInputDialog_getInteger(QWidget* parent, const QString& title, const QString& label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool* ok = 0, Qt::WindowFlags flags = 0); - QString static_QInputDialog_getItem(QWidget* parent, const QString& title, const QString& label, const QStringList& items, int current = 0, bool editable = true, bool* ok = 0, Qt::WindowFlags flags = 0); - QString static_QInputDialog_getText(QWidget* parent, const QString& title, const QString& label, QLineEdit::EchoMode echo = QLineEdit::Normal, const QString& text = QString(), bool* ok = 0, Qt::WindowFlags flags = 0); - QInputDialog::InputMode inputMode(QInputDialog* theWrappedObject) const; - int intMaximum(QInputDialog* theWrappedObject) const; - int intMinimum(QInputDialog* theWrappedObject) const; - int intStep(QInputDialog* theWrappedObject) const; - int intValue(QInputDialog* theWrappedObject) const; - bool isComboBoxEditable(QInputDialog* theWrappedObject) const; - QString labelText(QInputDialog* theWrappedObject) const; - QSize minimumSizeHint(QInputDialog* theWrappedObject) const; - QString okButtonText(QInputDialog* theWrappedObject) const; - void open(QInputDialog* theWrappedObject); - void open(QInputDialog* theWrappedObject, QObject* receiver, const char* member); - QInputDialog::InputDialogOptions options(QInputDialog* theWrappedObject) const; - void setCancelButtonText(QInputDialog* theWrappedObject, const QString& text); - void setComboBoxEditable(QInputDialog* theWrappedObject, bool editable); - void setComboBoxItems(QInputDialog* theWrappedObject, const QStringList& items); - void setDoubleDecimals(QInputDialog* theWrappedObject, int decimals); - void setDoubleMaximum(QInputDialog* theWrappedObject, double max); - void setDoubleMinimum(QInputDialog* theWrappedObject, double min); - void setDoubleRange(QInputDialog* theWrappedObject, double min, double max); - void setDoubleValue(QInputDialog* theWrappedObject, double value); - void setInputMode(QInputDialog* theWrappedObject, QInputDialog::InputMode mode); - void setIntMaximum(QInputDialog* theWrappedObject, int max); - void setIntMinimum(QInputDialog* theWrappedObject, int min); - void setIntRange(QInputDialog* theWrappedObject, int min, int max); - void setIntStep(QInputDialog* theWrappedObject, int step); - void setIntValue(QInputDialog* theWrappedObject, int value); - void setLabelText(QInputDialog* theWrappedObject, const QString& text); - void setOkButtonText(QInputDialog* theWrappedObject, const QString& text); - void setOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option, bool on = true); - void setOptions(QInputDialog* theWrappedObject, QInputDialog::InputDialogOptions options); - void setTextEchoMode(QInputDialog* theWrappedObject, QLineEdit::EchoMode mode); - void setTextValue(QInputDialog* theWrappedObject, const QString& text); - void setVisible(QInputDialog* theWrappedObject, bool visible); - QSize sizeHint(QInputDialog* theWrappedObject) const; - bool testOption(QInputDialog* theWrappedObject, QInputDialog::InputDialogOption option) const; - QLineEdit::EchoMode textEchoMode(QInputDialog* theWrappedObject) const; - QString textValue(QInputDialog* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QInputEvent : public QInputEvent -{ -public: - PythonQtShell_QInputEvent(QEvent::Type type, Qt::KeyboardModifiers modifiers = Qt::NoModifier):QInputEvent(type, modifiers),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QInputEvent : public QObject -{ Q_OBJECT -public: -public slots: -QInputEvent* new_QInputEvent(QEvent::Type type, Qt::KeyboardModifiers modifiers = Qt::NoModifier); -void delete_QInputEvent(QInputEvent* obj) { delete obj; } - Qt::KeyboardModifiers modifiers(QInputEvent* theWrappedObject) const; - void setModifiers(QInputEvent* theWrappedObject, Qt::KeyboardModifiers amodifiers); -}; - - - - - -class PythonQtShell_QIntValidator : public QIntValidator -{ -public: - PythonQtShell_QIntValidator(QObject* parent = 0):QIntValidator(parent),_wrapper(NULL) {}; - PythonQtShell_QIntValidator(int bottom, int top, QObject* parent):QIntValidator(bottom, top, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& arg__1) const; -virtual void setRange(int bottom, int top); -virtual void timerEvent(QTimerEvent* arg__1); -virtual QValidator::State validate(QString& arg__1, int& arg__2) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QIntValidator : public QIntValidator -{ public: -inline void promoted_setRange(int bottom, int top) { QIntValidator::setRange(bottom, top); } -inline QValidator::State promoted_validate(QString& arg__1, int& arg__2) const { return QIntValidator::validate(arg__1, arg__2); } -}; - -class PythonQtWrapper_QIntValidator : public QObject -{ Q_OBJECT -public: -public slots: -QIntValidator* new_QIntValidator(QObject* parent = 0); -QIntValidator* new_QIntValidator(int bottom, int top, QObject* parent); -void delete_QIntValidator(QIntValidator* obj) { delete obj; } - int bottom(QIntValidator* theWrappedObject) const; - void setBottom(QIntValidator* theWrappedObject, int arg__1); - void setRange(QIntValidator* theWrappedObject, int bottom, int top); - void setTop(QIntValidator* theWrappedObject, int arg__1); - int top(QIntValidator* theWrappedObject) const; - QValidator::State validate(QIntValidator* theWrappedObject, QString& arg__1, int& arg__2) const; -}; - - - - - -class PythonQtShell_QItemDelegate : public QItemDelegate -{ -public: - PythonQtShell_QItemDelegate(QObject* parent = 0):QItemDelegate(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void customEvent(QEvent* arg__1); -virtual void drawCheck(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const; -virtual void drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const; -virtual void drawDisplay(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const; -virtual void drawFocus(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const; -virtual bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* object, QEvent* event); -virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void setEditorData(QWidget* editor, const QModelIndex& index) const; -virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; -virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QItemDelegate : public QItemDelegate -{ public: -inline QWidget* promoted_createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const { return QItemDelegate::createEditor(parent, option, index); } -inline void promoted_drawCheck(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const { QItemDelegate::drawCheck(painter, option, rect, state); } -inline void promoted_drawDecoration(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const { QItemDelegate::drawDecoration(painter, option, rect, pixmap); } -inline void promoted_drawDisplay(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const { QItemDelegate::drawDisplay(painter, option, rect, text); } -inline void promoted_drawFocus(QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const { QItemDelegate::drawFocus(painter, option, rect); } -inline bool promoted_editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) { return QItemDelegate::editorEvent(event, model, option, index); } -inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QItemDelegate::eventFilter(object, event); } -inline void promoted_paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { QItemDelegate::paint(painter, option, index); } -inline void promoted_setEditorData(QWidget* editor, const QModelIndex& index) const { QItemDelegate::setEditorData(editor, index); } -inline void promoted_setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const { QItemDelegate::setModelData(editor, model, index); } -inline QSize promoted_sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const { return QItemDelegate::sizeHint(option, index); } -inline void promoted_updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const { QItemDelegate::updateEditorGeometry(editor, option, index); } -}; - -class PythonQtWrapper_QItemDelegate : public QObject -{ Q_OBJECT -public: -public slots: -QItemDelegate* new_QItemDelegate(QObject* parent = 0); -void delete_QItemDelegate(QItemDelegate* obj) { delete obj; } - QWidget* createEditor(QItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; - void drawCheck(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, Qt::CheckState state) const; - void drawDecoration(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QPixmap& pixmap) const; - void drawDisplay(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect, const QString& text) const; - void drawFocus(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QRect& rect) const; - bool editorEvent(QItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); - bool eventFilter(QItemDelegate* theWrappedObject, QObject* object, QEvent* event); - bool hasClipping(QItemDelegate* theWrappedObject) const; - QItemEditorFactory* itemEditorFactory(QItemDelegate* theWrappedObject) const; - void paint(QItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; - void setClipping(QItemDelegate* theWrappedObject, bool clip); - void setEditorData(QItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; - void setItemEditorFactory(QItemDelegate* theWrappedObject, QItemEditorFactory* factory); - void setModelData(QItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; - QSize sizeHint(QItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const; - void updateEditorGeometry(QItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; -}; - - - - - -class PythonQtShell_QItemEditorCreatorBase : public QItemEditorCreatorBase -{ -public: - PythonQtShell_QItemEditorCreatorBase():QItemEditorCreatorBase(),_wrapper(NULL) {}; - -virtual QWidget* createWidget(QWidget* parent) const; -virtual QByteArray valuePropertyName() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QItemEditorCreatorBase : public QObject -{ Q_OBJECT -public: -public slots: -QItemEditorCreatorBase* new_QItemEditorCreatorBase(); -void delete_QItemEditorCreatorBase(QItemEditorCreatorBase* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QItemEditorFactory : public QItemEditorFactory -{ -public: - PythonQtShell_QItemEditorFactory():QItemEditorFactory(),_wrapper(NULL) {}; - -virtual QWidget* createEditor(QVariant::Type type, QWidget* parent) const; -virtual QByteArray valuePropertyName(QVariant::Type type) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QItemEditorFactory : public QItemEditorFactory -{ public: -inline QWidget* promoted_createEditor(QVariant::Type type, QWidget* parent) const { return QItemEditorFactory::createEditor(type, parent); } -inline QByteArray promoted_valuePropertyName(QVariant::Type type) const { return QItemEditorFactory::valuePropertyName(type); } -}; - -class PythonQtWrapper_QItemEditorFactory : public QObject -{ Q_OBJECT -public: -public slots: -QItemEditorFactory* new_QItemEditorFactory(); -void delete_QItemEditorFactory(QItemEditorFactory* obj) { delete obj; } - QWidget* createEditor(QItemEditorFactory* theWrappedObject, QVariant::Type type, QWidget* parent) const; - const QItemEditorFactory* static_QItemEditorFactory_defaultFactory(); - void registerEditor(QItemEditorFactory* theWrappedObject, QVariant::Type type, QItemEditorCreatorBase* creator); - void static_QItemEditorFactory_setDefaultFactory(QItemEditorFactory* factory); - QByteArray valuePropertyName(QItemEditorFactory* theWrappedObject, QVariant::Type type) const; -}; - - - - - -class PythonQtWrapper_QItemSelection : public QObject -{ Q_OBJECT -public: -public slots: -QItemSelection* new_QItemSelection(); -QItemSelection* new_QItemSelection(const QModelIndex& topLeft, const QModelIndex& bottomRight); -QItemSelection* new_QItemSelection(const QItemSelection& other) { -QItemSelection* a = new QItemSelection(); -*((QItemSelection*)a) = other; -return a; } -void delete_QItemSelection(QItemSelection* obj) { delete obj; } - void append(QItemSelection* theWrappedObject, const QItemSelectionRange& t); - void append(QItemSelection* theWrappedObject, const QList& t); - const QItemSelectionRange* at(QItemSelection* theWrappedObject, int i) const; - const QItemSelectionRange* back(QItemSelection* theWrappedObject) const; - void clear(QItemSelection* theWrappedObject); - bool contains(QItemSelection* theWrappedObject, const QModelIndex& index) const; - int count(QItemSelection* theWrappedObject) const; - int count(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const; - void detachShared(QItemSelection* theWrappedObject); - bool empty(QItemSelection* theWrappedObject) const; - bool endsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const; - const QItemSelectionRange* first(QItemSelection* theWrappedObject) const; - QList static_QItemSelection_fromVector(const QVector& vector); - const QItemSelectionRange* front(QItemSelection* theWrappedObject) const; - int indexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const; - QList indexes(QItemSelection* theWrappedObject) const; - bool isEmpty(QItemSelection* theWrappedObject) const; - const QItemSelectionRange* last(QItemSelection* theWrappedObject) const; - int lastIndexOf(QItemSelection* theWrappedObject, const QItemSelectionRange& t, int from) const; - int length(QItemSelection* theWrappedObject) const; - void merge(QItemSelection* theWrappedObject, const QItemSelection& other, QItemSelectionModel::SelectionFlags command); - QList mid(QItemSelection* theWrappedObject, int pos, int length) const; - void move(QItemSelection* theWrappedObject, int from, int to); - bool __ne__(QItemSelection* theWrappedObject, const QList& l) const; - bool __eq__(QItemSelection* theWrappedObject, const QList& l) const; - void pop_back(QItemSelection* theWrappedObject); - void pop_front(QItemSelection* theWrappedObject); - void prepend(QItemSelection* theWrappedObject, const QItemSelectionRange& t); - void push_back(QItemSelection* theWrappedObject, const QItemSelectionRange& t); - void push_front(QItemSelection* theWrappedObject, const QItemSelectionRange& t); - int removeAll(QItemSelection* theWrappedObject, const QItemSelectionRange& t); - void removeAt(QItemSelection* theWrappedObject, int i); - void removeFirst(QItemSelection* theWrappedObject); - void removeLast(QItemSelection* theWrappedObject); - bool removeOne(QItemSelection* theWrappedObject, const QItemSelectionRange& t); - void replace(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& t); - void select(QItemSelection* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight); - void setSharable(QItemSelection* theWrappedObject, bool sharable); - int size(QItemSelection* theWrappedObject) const; - void static_QItemSelection_split(const QItemSelectionRange& range, const QItemSelectionRange& other, QItemSelection* result); - bool startsWith(QItemSelection* theWrappedObject, const QItemSelectionRange& t) const; - void swap(QItemSelection* theWrappedObject, int i, int j); - QItemSelectionRange takeAt(QItemSelection* theWrappedObject, int i); - QItemSelectionRange takeFirst(QItemSelection* theWrappedObject); - QItemSelectionRange takeLast(QItemSelection* theWrappedObject); - QVector toVector(QItemSelection* theWrappedObject) const; - QItemSelectionRange value(QItemSelection* theWrappedObject, int i) const; - QItemSelectionRange value(QItemSelection* theWrappedObject, int i, const QItemSelectionRange& defaultValue) const; -}; - - - - - -class PythonQtShell_QItemSelectionModel : public QItemSelectionModel -{ -public: - PythonQtShell_QItemSelectionModel(QAbstractItemModel* model):QItemSelectionModel(model),_wrapper(NULL) {}; - PythonQtShell_QItemSelectionModel(QAbstractItemModel* model, QObject* parent):QItemSelectionModel(model, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void reset(); -virtual void select(const QItemSelection& selection, QItemSelectionModel::SelectionFlags command); -virtual void select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QItemSelectionModel : public QItemSelectionModel -{ public: -inline void promoted_clear() { QItemSelectionModel::clear(); } -inline void promoted_reset() { QItemSelectionModel::reset(); } -inline void promoted_select(const QItemSelection& selection, QItemSelectionModel::SelectionFlags command) { QItemSelectionModel::select(selection, command); } -inline void promoted_select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command) { QItemSelectionModel::select(index, command); } -}; - -class PythonQtWrapper_QItemSelectionModel : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SelectionFlag ) -Q_FLAGS(SelectionFlags ) -enum SelectionFlag{ - NoUpdate = QItemSelectionModel::NoUpdate, Clear = QItemSelectionModel::Clear, Select = QItemSelectionModel::Select, Deselect = QItemSelectionModel::Deselect, Toggle = QItemSelectionModel::Toggle, Current = QItemSelectionModel::Current, Rows = QItemSelectionModel::Rows, Columns = QItemSelectionModel::Columns, SelectCurrent = QItemSelectionModel::SelectCurrent, ToggleCurrent = QItemSelectionModel::ToggleCurrent, ClearAndSelect = QItemSelectionModel::ClearAndSelect}; -Q_DECLARE_FLAGS(SelectionFlags, SelectionFlag) -public slots: -QItemSelectionModel* new_QItemSelectionModel(QAbstractItemModel* model); -QItemSelectionModel* new_QItemSelectionModel(QAbstractItemModel* model, QObject* parent); -void delete_QItemSelectionModel(QItemSelectionModel* obj) { delete obj; } - bool columnIntersectsSelection(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const; - QModelIndex currentIndex(QItemSelectionModel* theWrappedObject) const; - bool hasSelection(QItemSelectionModel* theWrappedObject) const; - bool isColumnSelected(QItemSelectionModel* theWrappedObject, int column, const QModelIndex& parent) const; - bool isRowSelected(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const; - bool isSelected(QItemSelectionModel* theWrappedObject, const QModelIndex& index) const; - const QAbstractItemModel* model(QItemSelectionModel* theWrappedObject) const; - bool rowIntersectsSelection(QItemSelectionModel* theWrappedObject, int row, const QModelIndex& parent) const; - QList selectedColumns(QItemSelectionModel* theWrappedObject, int row = 0) const; - QList selectedIndexes(QItemSelectionModel* theWrappedObject) const; - QList selectedRows(QItemSelectionModel* theWrappedObject, int column = 0) const; - const QItemSelection selection(QItemSelectionModel* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QItemSelectionRange : public QObject -{ Q_OBJECT -public: -public slots: -QItemSelectionRange* new_QItemSelectionRange(); -QItemSelectionRange* new_QItemSelectionRange(const QItemSelectionRange& other); -QItemSelectionRange* new_QItemSelectionRange(const QModelIndex& index); -QItemSelectionRange* new_QItemSelectionRange(const QModelIndex& topLeft, const QModelIndex& bottomRight); -void delete_QItemSelectionRange(QItemSelectionRange* obj) { delete obj; } - int bottom(QItemSelectionRange* theWrappedObject) const; - QModelIndex bottomRight(QItemSelectionRange* theWrappedObject) const; - bool contains(QItemSelectionRange* theWrappedObject, const QModelIndex& index) const; - bool contains(QItemSelectionRange* theWrappedObject, int row, int column, const QModelIndex& parentIndex) const; - int height(QItemSelectionRange* theWrappedObject) const; - QList indexes(QItemSelectionRange* theWrappedObject) const; - QItemSelectionRange intersected(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; - bool intersects(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; - bool isValid(QItemSelectionRange* theWrappedObject) const; - int left(QItemSelectionRange* theWrappedObject) const; - const QAbstractItemModel* model(QItemSelectionRange* theWrappedObject) const; - bool __ne__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; - bool __eq__(QItemSelectionRange* theWrappedObject, const QItemSelectionRange& other) const; - QModelIndex parent(QItemSelectionRange* theWrappedObject) const; - int right(QItemSelectionRange* theWrappedObject) const; - int top(QItemSelectionRange* theWrappedObject) const; - QModelIndex topLeft(QItemSelectionRange* theWrappedObject) const; - int width(QItemSelectionRange* theWrappedObject) const; - QString py_toString(QItemSelectionRange*); -}; - - - - - -class PythonQtShell_QKeyEvent : public QKeyEvent -{ -public: - PythonQtShell_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1):QKeyEvent(type, key, modifiers, text, autorep, count),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QKeyEvent : public QObject -{ Q_OBJECT -public: -public slots: -QKeyEvent* new_QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); -void delete_QKeyEvent(QKeyEvent* obj) { delete obj; } - int count(QKeyEvent* theWrappedObject) const; - QKeyEvent* static_QKeyEvent_createExtendedKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, unsigned int nativeScanCode, unsigned int nativeVirtualKey, unsigned int nativeModifiers, const QString& text = QString(), bool autorep = false, ushort count = 1); - bool hasExtendedInfo(QKeyEvent* theWrappedObject) const; - bool isAutoRepeat(QKeyEvent* theWrappedObject) const; - int key(QKeyEvent* theWrappedObject) const; - bool matches(QKeyEvent* theWrappedObject, QKeySequence::StandardKey key) const; - Qt::KeyboardModifiers modifiers(QKeyEvent* theWrappedObject) const; - unsigned int nativeModifiers(QKeyEvent* theWrappedObject) const; - unsigned int nativeScanCode(QKeyEvent* theWrappedObject) const; - unsigned int nativeVirtualKey(QKeyEvent* theWrappedObject) const; - QString text(QKeyEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QKeyEventTransition : public QKeyEventTransition -{ -public: - PythonQtShell_QKeyEventTransition(QObject* object, QEvent::Type type, int key, QState* sourceState = 0):QKeyEventTransition(object, type, key, sourceState),_wrapper(NULL) {}; - PythonQtShell_QKeyEventTransition(QState* sourceState = 0):QKeyEventTransition(sourceState),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool eventTest(QEvent* event); -virtual void onTransition(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QKeyEventTransition : public QKeyEventTransition -{ public: -inline bool promoted_eventTest(QEvent* event) { return QKeyEventTransition::eventTest(event); } -inline void promoted_onTransition(QEvent* event) { QKeyEventTransition::onTransition(event); } -}; - -class PythonQtWrapper_QKeyEventTransition : public QObject -{ Q_OBJECT -public: -public slots: -QKeyEventTransition* new_QKeyEventTransition(QObject* object, QEvent::Type type, int key, QState* sourceState = 0); -QKeyEventTransition* new_QKeyEventTransition(QState* sourceState = 0); -void delete_QKeyEventTransition(QKeyEventTransition* obj) { delete obj; } - bool eventTest(QKeyEventTransition* theWrappedObject, QEvent* event); - int key(QKeyEventTransition* theWrappedObject) const; - Qt::KeyboardModifiers modifierMask(QKeyEventTransition* theWrappedObject) const; - void onTransition(QKeyEventTransition* theWrappedObject, QEvent* event); - void setKey(QKeyEventTransition* theWrappedObject, int key); - void setModifierMask(QKeyEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers); -}; - - - - - -class PythonQtShell_QLCDNumber : public QLCDNumber -{ -public: - PythonQtShell_QLCDNumber(QWidget* parent = 0):QLCDNumber(parent),_wrapper(NULL) {}; - PythonQtShell_QLCDNumber(uint numDigits, QWidget* parent = 0):QLCDNumber(numDigits, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QLCDNumber : public QLCDNumber -{ public: -inline bool promoted_event(QEvent* e) { return QLCDNumber::event(e); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QLCDNumber::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QLCDNumber : public QObject -{ Q_OBJECT -public: -public slots: -QLCDNumber* new_QLCDNumber(QWidget* parent = 0); -QLCDNumber* new_QLCDNumber(uint numDigits, QWidget* parent = 0); -void delete_QLCDNumber(QLCDNumber* obj) { delete obj; } - bool checkOverflow(QLCDNumber* theWrappedObject, double num) const; - bool checkOverflow(QLCDNumber* theWrappedObject, int num) const; - int digitCount(QLCDNumber* theWrappedObject) const; - bool event(QLCDNumber* theWrappedObject, QEvent* e); - int intValue(QLCDNumber* theWrappedObject) const; - QLCDNumber::Mode mode(QLCDNumber* theWrappedObject) const; - int numDigits(QLCDNumber* theWrappedObject) const; - void paintEvent(QLCDNumber* theWrappedObject, QPaintEvent* arg__1); - QLCDNumber::SegmentStyle segmentStyle(QLCDNumber* theWrappedObject) const; - void setDigitCount(QLCDNumber* theWrappedObject, int nDigits); - void setMode(QLCDNumber* theWrappedObject, QLCDNumber::Mode arg__1); - void setNumDigits(QLCDNumber* theWrappedObject, int nDigits); - void setSegmentStyle(QLCDNumber* theWrappedObject, QLCDNumber::SegmentStyle arg__1); - QSize sizeHint(QLCDNumber* theWrappedObject) const; - bool smallDecimalPoint(QLCDNumber* theWrappedObject) const; - double value(QLCDNumber* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QLabel : public QLabel -{ -public: - PythonQtShell_QLabel(QWidget* parent = 0, Qt::WindowFlags f = 0):QLabel(parent, f),_wrapper(NULL) {}; - PythonQtShell_QLabel(const QString& text, QWidget* parent = 0, Qt::WindowFlags f = 0):QLabel(text, parent, f),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* ev); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* ev); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* ev); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* ev); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* ev); -virtual void mousePressEvent(QMouseEvent* ev); -virtual void mouseReleaseEvent(QMouseEvent* ev); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QLabel : public QLabel -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QLabel::changeEvent(arg__1); } -inline void promoted_contextMenuEvent(QContextMenuEvent* ev) { QLabel::contextMenuEvent(ev); } -inline bool promoted_event(QEvent* e) { return QLabel::event(e); } -inline void promoted_focusInEvent(QFocusEvent* ev) { QLabel::focusInEvent(ev); } -inline bool promoted_focusNextPrevChild(bool next) { return QLabel::focusNextPrevChild(next); } -inline void promoted_focusOutEvent(QFocusEvent* ev) { QLabel::focusOutEvent(ev); } -inline int promoted_heightForWidth(int arg__1) const { return QLabel::heightForWidth(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* ev) { QLabel::keyPressEvent(ev); } -inline void promoted_mouseMoveEvent(QMouseEvent* ev) { QLabel::mouseMoveEvent(ev); } -inline void promoted_mousePressEvent(QMouseEvent* ev) { QLabel::mousePressEvent(ev); } -inline void promoted_mouseReleaseEvent(QMouseEvent* ev) { QLabel::mouseReleaseEvent(ev); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QLabel::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QLabel : public QObject -{ Q_OBJECT -public: -public slots: -QLabel* new_QLabel(QWidget* parent = 0, Qt::WindowFlags f = 0); -QLabel* new_QLabel(const QString& text, QWidget* parent = 0, Qt::WindowFlags f = 0); -void delete_QLabel(QLabel* obj) { delete obj; } - Qt::Alignment alignment(QLabel* theWrappedObject) const; - QWidget* buddy(QLabel* theWrappedObject) const; - void changeEvent(QLabel* theWrappedObject, QEvent* arg__1); - void contextMenuEvent(QLabel* theWrappedObject, QContextMenuEvent* ev); - bool event(QLabel* theWrappedObject, QEvent* e); - void focusInEvent(QLabel* theWrappedObject, QFocusEvent* ev); - bool focusNextPrevChild(QLabel* theWrappedObject, bool next); - void focusOutEvent(QLabel* theWrappedObject, QFocusEvent* ev); - bool hasScaledContents(QLabel* theWrappedObject) const; - int heightForWidth(QLabel* theWrappedObject, int arg__1) const; - int indent(QLabel* theWrappedObject) const; - void keyPressEvent(QLabel* theWrappedObject, QKeyEvent* ev); - int margin(QLabel* theWrappedObject) const; - QSize minimumSizeHint(QLabel* theWrappedObject) const; - void mouseMoveEvent(QLabel* theWrappedObject, QMouseEvent* ev); - void mousePressEvent(QLabel* theWrappedObject, QMouseEvent* ev); - void mouseReleaseEvent(QLabel* theWrappedObject, QMouseEvent* ev); - QMovie* movie(QLabel* theWrappedObject) const; - bool openExternalLinks(QLabel* theWrappedObject) const; - void paintEvent(QLabel* theWrappedObject, QPaintEvent* arg__1); - const QPicture* picture(QLabel* theWrappedObject) const; - const QPixmap* pixmap(QLabel* theWrappedObject) const; - void setAlignment(QLabel* theWrappedObject, Qt::Alignment arg__1); - void setBuddy(QLabel* theWrappedObject, QWidget* arg__1); - void setIndent(QLabel* theWrappedObject, int arg__1); - void setMargin(QLabel* theWrappedObject, int arg__1); - void setOpenExternalLinks(QLabel* theWrappedObject, bool open); - void setScaledContents(QLabel* theWrappedObject, bool arg__1); - void setTextFormat(QLabel* theWrappedObject, Qt::TextFormat arg__1); - void setTextInteractionFlags(QLabel* theWrappedObject, Qt::TextInteractionFlags flags); - void setWordWrap(QLabel* theWrappedObject, bool on); - QSize sizeHint(QLabel* theWrappedObject) const; - QString text(QLabel* theWrappedObject) const; - Qt::TextFormat textFormat(QLabel* theWrappedObject) const; - Qt::TextInteractionFlags textInteractionFlags(QLabel* theWrappedObject) const; - bool wordWrap(QLabel* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QLayout : public QLayout -{ -public: - PythonQtShell_QLayout():QLayout(),_wrapper(NULL) {}; - PythonQtShell_QLayout(QWidget* parent):QLayout(parent),_wrapper(NULL) {}; - -virtual void addItem(QLayoutItem* arg__1); -virtual void childEvent(QChildEvent* e); -virtual int count() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual bool hasHeightForWidth() const; -virtual int heightForWidth(int arg__1) const; -virtual int indexOf(QWidget* arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayoutItem* itemAt(int index) const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual int minimumHeightForWidth(int arg__1) const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QSize sizeHint() const; -virtual QSpacerItem* spacerItem(); -virtual QLayoutItem* takeAt(int index); -virtual void timerEvent(QTimerEvent* arg__1); -virtual QWidget* widget(); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QLayout : public QLayout -{ public: -inline void promoted_childEvent(QChildEvent* e) { QLayout::childEvent(e); } -inline Qt::Orientations promoted_expandingDirections() const { return QLayout::expandingDirections(); } -inline QRect promoted_geometry() const { return QLayout::geometry(); } -inline int promoted_indexOf(QWidget* arg__1) const { return QLayout::indexOf(arg__1); } -inline void promoted_invalidate() { QLayout::invalidate(); } -inline bool promoted_isEmpty() const { return QLayout::isEmpty(); } -inline QLayout* promoted_layout() { return QLayout::layout(); } -inline QSize promoted_maximumSize() const { return QLayout::maximumSize(); } -inline QSize promoted_minimumSize() const { return QLayout::minimumSize(); } -inline void promoted_setGeometry(const QRect& arg__1) { QLayout::setGeometry(arg__1); } -}; - -class PythonQtWrapper_QLayout : public QObject -{ Q_OBJECT -public: -public slots: -QLayout* new_QLayout(); -QLayout* new_QLayout(QWidget* parent); -void delete_QLayout(QLayout* obj) { delete obj; } - bool activate(QLayout* theWrappedObject); - void addWidget(QLayout* theWrappedObject, QWidget* w); - void childEvent(QLayout* theWrappedObject, QChildEvent* e); - QSize static_QLayout_closestAcceptableSize(const QWidget* w, const QSize& s); - QMargins contentsMargins(QLayout* theWrappedObject) const; - QRect contentsRect(QLayout* theWrappedObject) const; - Qt::Orientations expandingDirections(QLayout* theWrappedObject) const; - QRect geometry(QLayout* theWrappedObject) const; - void getContentsMargins(QLayout* theWrappedObject, int* left, int* top, int* right, int* bottom) const; - int indexOf(QLayout* theWrappedObject, QWidget* arg__1) const; - void invalidate(QLayout* theWrappedObject); - bool isEmpty(QLayout* theWrappedObject) const; - bool isEnabled(QLayout* theWrappedObject) const; - QLayout* layout(QLayout* theWrappedObject); - QSize maximumSize(QLayout* theWrappedObject) const; - QWidget* menuBar(QLayout* theWrappedObject) const; - QSize minimumSize(QLayout* theWrappedObject) const; - QWidget* parentWidget(QLayout* theWrappedObject) const; - void removeItem(QLayout* theWrappedObject, QLayoutItem* arg__1); - void removeWidget(QLayout* theWrappedObject, QWidget* w); - void setAlignment(QLayout* theWrappedObject, Qt::Alignment alignment); - bool setAlignment(QLayout* theWrappedObject, QLayout* l, Qt::Alignment alignment); - bool setAlignment(QLayout* theWrappedObject, QWidget* w, Qt::Alignment alignment); - void setContentsMargins(QLayout* theWrappedObject, const QMargins& margins); - void setContentsMargins(QLayout* theWrappedObject, int left, int top, int right, int bottom); - void setEnabled(QLayout* theWrappedObject, bool arg__1); - void setGeometry(QLayout* theWrappedObject, const QRect& arg__1); - void setMargin(QLayout* theWrappedObject, int arg__1); - void setMenuBar(QLayout* theWrappedObject, QWidget* w); - void setSizeConstraint(QLayout* theWrappedObject, QLayout::SizeConstraint arg__1); - void setSpacing(QLayout* theWrappedObject, int arg__1); - QLayout::SizeConstraint sizeConstraint(QLayout* theWrappedObject) const; - int spacing(QLayout* theWrappedObject) const; - int totalHeightForWidth(QLayout* theWrappedObject, int w) const; - QSize totalMaximumSize(QLayout* theWrappedObject) const; - QSize totalMinimumSize(QLayout* theWrappedObject) const; - QSize totalSizeHint(QLayout* theWrappedObject) const; - void update(QLayout* theWrappedObject); -}; - - - - - -class PythonQtShell_QLayoutItem : public QLayoutItem -{ -public: - PythonQtShell_QLayoutItem(Qt::Alignment alignment = 0):QLayoutItem(alignment),_wrapper(NULL) {}; - -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual bool hasHeightForWidth() const; -virtual int heightForWidth(int arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual int minimumHeightForWidth(int arg__1) const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QSize sizeHint() const; -virtual QSpacerItem* spacerItem(); -virtual QWidget* widget(); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QLayoutItem : public QLayoutItem -{ public: -inline bool promoted_hasHeightForWidth() const { return QLayoutItem::hasHeightForWidth(); } -inline int promoted_heightForWidth(int arg__1) const { return QLayoutItem::heightForWidth(arg__1); } -inline void promoted_invalidate() { QLayoutItem::invalidate(); } -inline QLayout* promoted_layout() { return QLayoutItem::layout(); } -inline int promoted_minimumHeightForWidth(int arg__1) const { return QLayoutItem::minimumHeightForWidth(arg__1); } -inline QSpacerItem* promoted_spacerItem() { return QLayoutItem::spacerItem(); } -inline QWidget* promoted_widget() { return QLayoutItem::widget(); } -}; - -class PythonQtWrapper_QLayoutItem : public QObject -{ Q_OBJECT -public: -public slots: -QLayoutItem* new_QLayoutItem(Qt::Alignment alignment = 0); -void delete_QLayoutItem(QLayoutItem* obj) { delete obj; } - Qt::Alignment alignment(QLayoutItem* theWrappedObject) const; - QSizePolicy::ControlTypes controlTypes(QLayoutItem* theWrappedObject) const; - bool hasHeightForWidth(QLayoutItem* theWrappedObject) const; - int heightForWidth(QLayoutItem* theWrappedObject, int arg__1) const; - void invalidate(QLayoutItem* theWrappedObject); - QLayout* layout(QLayoutItem* theWrappedObject); - int minimumHeightForWidth(QLayoutItem* theWrappedObject, int arg__1) const; - void setAlignment(QLayoutItem* theWrappedObject, Qt::Alignment a); - QSpacerItem* spacerItem(QLayoutItem* theWrappedObject); - QWidget* widget(QLayoutItem* theWrappedObject); -}; - - - - - -class PythonQtShell_QLineEdit : public QLineEdit -{ -public: - PythonQtShell_QLineEdit(QWidget* parent = 0):QLineEdit(parent),_wrapper(NULL) {}; - PythonQtShell_QLineEdit(const QString& arg__1, QWidget* parent = 0):QLineEdit(arg__1, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* e); -virtual void dragMoveEvent(QDragMoveEvent* e); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QLineEdit : public QLineEdit -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QLineEdit::changeEvent(arg__1); } -inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QLineEdit::contextMenuEvent(arg__1); } -inline void promoted_dragEnterEvent(QDragEnterEvent* arg__1) { QLineEdit::dragEnterEvent(arg__1); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QLineEdit::dragLeaveEvent(e); } -inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QLineEdit::dragMoveEvent(e); } -inline void promoted_dropEvent(QDropEvent* arg__1) { QLineEdit::dropEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QLineEdit::event(arg__1); } -inline void promoted_focusInEvent(QFocusEvent* arg__1) { QLineEdit::focusInEvent(arg__1); } -inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QLineEdit::focusOutEvent(arg__1); } -inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QLineEdit::inputMethodEvent(arg__1); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery arg__1) const { return QLineEdit::inputMethodQuery(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QLineEdit::keyPressEvent(arg__1); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* arg__1) { QLineEdit::mouseDoubleClickEvent(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QLineEdit::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QLineEdit::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QLineEdit::mouseReleaseEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QLineEdit::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QLineEdit : public QObject -{ Q_OBJECT -public: -public slots: -QLineEdit* new_QLineEdit(QWidget* parent = 0); -QLineEdit* new_QLineEdit(const QString& arg__1, QWidget* parent = 0); -void delete_QLineEdit(QLineEdit* obj) { delete obj; } - Qt::Alignment alignment(QLineEdit* theWrappedObject) const; - void backspace(QLineEdit* theWrappedObject); - void changeEvent(QLineEdit* theWrappedObject, QEvent* arg__1); - QCompleter* completer(QLineEdit* theWrappedObject) const; - void contextMenuEvent(QLineEdit* theWrappedObject, QContextMenuEvent* arg__1); - QMenu* createStandardContextMenu(QLineEdit* theWrappedObject); - void cursorBackward(QLineEdit* theWrappedObject, bool mark, int steps = 1); - void cursorForward(QLineEdit* theWrappedObject, bool mark, int steps = 1); - int cursorPosition(QLineEdit* theWrappedObject) const; - int cursorPositionAt(QLineEdit* theWrappedObject, const QPoint& pos); - void cursorWordBackward(QLineEdit* theWrappedObject, bool mark); - void cursorWordForward(QLineEdit* theWrappedObject, bool mark); - void del(QLineEdit* theWrappedObject); - void deselect(QLineEdit* theWrappedObject); - QString displayText(QLineEdit* theWrappedObject) const; - bool dragEnabled(QLineEdit* theWrappedObject) const; - void dragEnterEvent(QLineEdit* theWrappedObject, QDragEnterEvent* arg__1); - void dragLeaveEvent(QLineEdit* theWrappedObject, QDragLeaveEvent* e); - void dragMoveEvent(QLineEdit* theWrappedObject, QDragMoveEvent* e); - void dropEvent(QLineEdit* theWrappedObject, QDropEvent* arg__1); - QLineEdit::EchoMode echoMode(QLineEdit* theWrappedObject) const; - void end(QLineEdit* theWrappedObject, bool mark); - bool event(QLineEdit* theWrappedObject, QEvent* arg__1); - void focusInEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1); - void focusOutEvent(QLineEdit* theWrappedObject, QFocusEvent* arg__1); - void getTextMargins(QLineEdit* theWrappedObject, int* left, int* top, int* right, int* bottom) const; - bool hasAcceptableInput(QLineEdit* theWrappedObject) const; - bool hasFrame(QLineEdit* theWrappedObject) const; - bool hasSelectedText(QLineEdit* theWrappedObject) const; - void home(QLineEdit* theWrappedObject, bool mark); - QString inputMask(QLineEdit* theWrappedObject) const; - void inputMethodEvent(QLineEdit* theWrappedObject, QInputMethodEvent* arg__1); - QVariant inputMethodQuery(QLineEdit* theWrappedObject, Qt::InputMethodQuery arg__1) const; - void insert(QLineEdit* theWrappedObject, const QString& arg__1); - bool isModified(QLineEdit* theWrappedObject) const; - bool isReadOnly(QLineEdit* theWrappedObject) const; - bool isRedoAvailable(QLineEdit* theWrappedObject) const; - bool isUndoAvailable(QLineEdit* theWrappedObject) const; - void keyPressEvent(QLineEdit* theWrappedObject, QKeyEvent* arg__1); - int maxLength(QLineEdit* theWrappedObject) const; - QSize minimumSizeHint(QLineEdit* theWrappedObject) const; - void mouseDoubleClickEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); - void mouseMoveEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QLineEdit* theWrappedObject, QMouseEvent* arg__1); - void paintEvent(QLineEdit* theWrappedObject, QPaintEvent* arg__1); - QString selectedText(QLineEdit* theWrappedObject) const; - int selectionStart(QLineEdit* theWrappedObject) const; - void setAlignment(QLineEdit* theWrappedObject, Qt::Alignment flag); - void setCompleter(QLineEdit* theWrappedObject, QCompleter* completer); - void setCursorPosition(QLineEdit* theWrappedObject, int arg__1); - void setDragEnabled(QLineEdit* theWrappedObject, bool b); - void setEchoMode(QLineEdit* theWrappedObject, QLineEdit::EchoMode arg__1); - void setFrame(QLineEdit* theWrappedObject, bool arg__1); - void setInputMask(QLineEdit* theWrappedObject, const QString& inputMask); - void setMaxLength(QLineEdit* theWrappedObject, int arg__1); - void setModified(QLineEdit* theWrappedObject, bool arg__1); - void setReadOnly(QLineEdit* theWrappedObject, bool arg__1); - void setSelection(QLineEdit* theWrappedObject, int arg__1, int arg__2); - void setTextMargins(QLineEdit* theWrappedObject, const QMargins& margins); - void setTextMargins(QLineEdit* theWrappedObject, int left, int top, int right, int bottom); - void setValidator(QLineEdit* theWrappedObject, const QValidator* arg__1); - QSize sizeHint(QLineEdit* theWrappedObject) const; - QString text(QLineEdit* theWrappedObject) const; - QMargins textMargins(QLineEdit* theWrappedObject) const; - const QValidator* validator(QLineEdit* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QLinearGradient : public QObject -{ Q_OBJECT -public: -public slots: -QLinearGradient* new_QLinearGradient(); -QLinearGradient* new_QLinearGradient(const QPointF& start, const QPointF& finalStop); -QLinearGradient* new_QLinearGradient(qreal xStart, qreal yStart, qreal xFinalStop, qreal yFinalStop); -QLinearGradient* new_QLinearGradient(const QLinearGradient& other) { -QLinearGradient* a = new QLinearGradient(); -*((QLinearGradient*)a) = other; -return a; } -void delete_QLinearGradient(QLinearGradient* obj) { delete obj; } - QPointF finalStop(QLinearGradient* theWrappedObject) const; - void setFinalStop(QLinearGradient* theWrappedObject, const QPointF& stop); - void setFinalStop(QLinearGradient* theWrappedObject, qreal x, qreal y); - void setStart(QLinearGradient* theWrappedObject, const QPointF& start); - void setStart(QLinearGradient* theWrappedObject, qreal x, qreal y); - QPointF start(QLinearGradient* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QListView : public QListView -{ -public: - PythonQtShell_QListView(QWidget* parent = 0):QListView(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* e); -virtual void dragMoveEvent(QDragMoveEvent* e); -virtual void dropEvent(QDropEvent* e); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* e); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setModel(QAbstractItemModel* model); -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QListView : public QListView -{ public: -inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QListView::currentChanged(current, previous); } -inline void promoted_dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) { QListView::dataChanged(topLeft, bottomRight); } -inline void promoted_doItemsLayout() { QListView::doItemsLayout(); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QListView::dragLeaveEvent(e); } -inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QListView::dragMoveEvent(e); } -inline void promoted_dropEvent(QDropEvent* e) { QListView::dropEvent(e); } -inline bool promoted_event(QEvent* e) { return QListView::event(e); } -inline int promoted_horizontalOffset() const { return QListView::horizontalOffset(); } -inline QModelIndex promoted_indexAt(const QPoint& p) const { return QListView::indexAt(p); } -inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QListView::isIndexHidden(index); } -inline void promoted_mouseMoveEvent(QMouseEvent* e) { QListView::mouseMoveEvent(e); } -inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QListView::mouseReleaseEvent(e); } -inline void promoted_paintEvent(QPaintEvent* e) { QListView::paintEvent(e); } -inline void promoted_reset() { QListView::reset(); } -inline void promoted_resizeEvent(QResizeEvent* e) { QListView::resizeEvent(e); } -inline void promoted_rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) { QListView::rowsAboutToBeRemoved(parent, start, end); } -inline void promoted_rowsInserted(const QModelIndex& parent, int start, int end) { QListView::rowsInserted(parent, start, end); } -inline void promoted_scrollContentsBy(int dx, int dy) { QListView::scrollContentsBy(dx, dy); } -inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QListView::scrollTo(index, hint); } -inline QList promoted_selectedIndexes() const { return QListView::selectedIndexes(); } -inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QListView::selectionChanged(selected, deselected); } -inline void promoted_setRootIndex(const QModelIndex& index) { QListView::setRootIndex(index); } -inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QListView::setSelection(rect, command); } -inline void promoted_startDrag(Qt::DropActions supportedActions) { QListView::startDrag(supportedActions); } -inline void promoted_timerEvent(QTimerEvent* e) { QListView::timerEvent(e); } -inline void promoted_updateGeometries() { QListView::updateGeometries(); } -inline int promoted_verticalOffset() const { return QListView::verticalOffset(); } -inline QStyleOptionViewItem promoted_viewOptions() const { return QListView::viewOptions(); } -inline QRect promoted_visualRect(const QModelIndex& index) const { return QListView::visualRect(index); } -inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QListView::visualRegionForSelection(selection); } -}; - -class PythonQtWrapper_QListView : public QObject -{ Q_OBJECT -public: -public slots: -QListView* new_QListView(QWidget* parent = 0); -void delete_QListView(QListView* obj) { delete obj; } - int batchSize(QListView* theWrappedObject) const; - void clearPropertyFlags(QListView* theWrappedObject); - void currentChanged(QListView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); - void dataChanged(QListView* theWrappedObject, const QModelIndex& topLeft, const QModelIndex& bottomRight); - void doItemsLayout(QListView* theWrappedObject); - void dragLeaveEvent(QListView* theWrappedObject, QDragLeaveEvent* e); - void dragMoveEvent(QListView* theWrappedObject, QDragMoveEvent* e); - void dropEvent(QListView* theWrappedObject, QDropEvent* e); - bool event(QListView* theWrappedObject, QEvent* e); - QListView::Flow flow(QListView* theWrappedObject) const; - QSize gridSize(QListView* theWrappedObject) const; - int horizontalOffset(QListView* theWrappedObject) const; - QModelIndex indexAt(QListView* theWrappedObject, const QPoint& p) const; - bool isIndexHidden(QListView* theWrappedObject, const QModelIndex& index) const; - bool isRowHidden(QListView* theWrappedObject, int row) const; - bool isSelectionRectVisible(QListView* theWrappedObject) const; - bool isWrapping(QListView* theWrappedObject) const; - QListView::LayoutMode layoutMode(QListView* theWrappedObject) const; - int modelColumn(QListView* theWrappedObject) const; - void mouseMoveEvent(QListView* theWrappedObject, QMouseEvent* e); - void mouseReleaseEvent(QListView* theWrappedObject, QMouseEvent* e); - QListView::Movement movement(QListView* theWrappedObject) const; - void paintEvent(QListView* theWrappedObject, QPaintEvent* e); - void reset(QListView* theWrappedObject); - void resizeEvent(QListView* theWrappedObject, QResizeEvent* e); - QListView::ResizeMode resizeMode(QListView* theWrappedObject) const; - void rowsAboutToBeRemoved(QListView* theWrappedObject, const QModelIndex& parent, int start, int end); - void rowsInserted(QListView* theWrappedObject, const QModelIndex& parent, int start, int end); - void scrollContentsBy(QListView* theWrappedObject, int dx, int dy); - void scrollTo(QListView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); - QList selectedIndexes(QListView* theWrappedObject) const; - void selectionChanged(QListView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); - void setBatchSize(QListView* theWrappedObject, int batchSize); - void setFlow(QListView* theWrappedObject, QListView::Flow flow); - void setGridSize(QListView* theWrappedObject, const QSize& size); - void setLayoutMode(QListView* theWrappedObject, QListView::LayoutMode mode); - void setModelColumn(QListView* theWrappedObject, int column); - void setMovement(QListView* theWrappedObject, QListView::Movement movement); - void setResizeMode(QListView* theWrappedObject, QListView::ResizeMode mode); - void setRootIndex(QListView* theWrappedObject, const QModelIndex& index); - void setRowHidden(QListView* theWrappedObject, int row, bool hide); - void setSelection(QListView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); - void setSelectionRectVisible(QListView* theWrappedObject, bool show); - void setSpacing(QListView* theWrappedObject, int space); - void setUniformItemSizes(QListView* theWrappedObject, bool enable); - void setViewMode(QListView* theWrappedObject, QListView::ViewMode mode); - void setWordWrap(QListView* theWrappedObject, bool on); - void setWrapping(QListView* theWrappedObject, bool enable); - int spacing(QListView* theWrappedObject) const; - void startDrag(QListView* theWrappedObject, Qt::DropActions supportedActions); - void timerEvent(QListView* theWrappedObject, QTimerEvent* e); - bool uniformItemSizes(QListView* theWrappedObject) const; - void updateGeometries(QListView* theWrappedObject); - int verticalOffset(QListView* theWrappedObject) const; - QListView::ViewMode viewMode(QListView* theWrappedObject) const; - QStyleOptionViewItem viewOptions(QListView* theWrappedObject) const; - QRect visualRect(QListView* theWrappedObject, const QModelIndex& index) const; - QRegion visualRegionForSelection(QListView* theWrappedObject, const QItemSelection& selection) const; - bool wordWrap(QListView* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QListWidget : public QListWidget -{ -public: - PythonQtShell_QListWidget(QWidget* parent = 0):QListWidget(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* e); -virtual void dragMoveEvent(QDragMoveEvent* e); -virtual void dropEvent(QDropEvent* event); -virtual bool dropMimeData(int index, const QMimeData* data, Qt::DropAction action); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QMimeData* mimeData(const QList items) const; -virtual QStringList mimeTypes() const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* e); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual Qt::DropActions supportedDropActions() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QListWidget : public QListWidget -{ public: -inline void promoted_dropEvent(QDropEvent* event) { QListWidget::dropEvent(event); } -inline bool promoted_dropMimeData(int index, const QMimeData* data, Qt::DropAction action) { return QListWidget::dropMimeData(index, data, action); } -inline bool promoted_event(QEvent* e) { return QListWidget::event(e); } -inline QStringList promoted_mimeTypes() const { return QListWidget::mimeTypes(); } -inline Qt::DropActions promoted_supportedDropActions() const { return QListWidget::supportedDropActions(); } -}; - -class PythonQtWrapper_QListWidget : public QObject -{ Q_OBJECT -public: -public slots: -QListWidget* new_QListWidget(QWidget* parent = 0); -void delete_QListWidget(QListWidget* obj) { delete obj; } - void addItem(QListWidget* theWrappedObject, QListWidgetItem* item); - void addItem(QListWidget* theWrappedObject, const QString& label); - void addItems(QListWidget* theWrappedObject, const QStringList& labels); - void closePersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item); - int count(QListWidget* theWrappedObject) const; - QListWidgetItem* currentItem(QListWidget* theWrappedObject) const; - int currentRow(QListWidget* theWrappedObject) const; - void dropEvent(QListWidget* theWrappedObject, QDropEvent* event); - bool dropMimeData(QListWidget* theWrappedObject, int index, const QMimeData* data, Qt::DropAction action); - void editItem(QListWidget* theWrappedObject, QListWidgetItem* item); - bool event(QListWidget* theWrappedObject, QEvent* e); - QList findItems(QListWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const; - void insertItem(QListWidget* theWrappedObject, int row, QListWidgetItem* item); - void insertItem(QListWidget* theWrappedObject, int row, const QString& label); - void insertItems(QListWidget* theWrappedObject, int row, const QStringList& labels); - bool isSortingEnabled(QListWidget* theWrappedObject) const; - QListWidgetItem* item(QListWidget* theWrappedObject, int row) const; - QListWidgetItem* itemAt(QListWidget* theWrappedObject, const QPoint& p) const; - QListWidgetItem* itemAt(QListWidget* theWrappedObject, int x, int y) const; - QWidget* itemWidget(QListWidget* theWrappedObject, QListWidgetItem* item) const; - QStringList mimeTypes(QListWidget* theWrappedObject) const; - void openPersistentEditor(QListWidget* theWrappedObject, QListWidgetItem* item); - void removeItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item); - int row(QListWidget* theWrappedObject, const QListWidgetItem* item) const; - QList selectedItems(QListWidget* theWrappedObject) const; - void setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item); - void setCurrentItem(QListWidget* theWrappedObject, QListWidgetItem* item, QItemSelectionModel::SelectionFlags command); - void setCurrentRow(QListWidget* theWrappedObject, int row); - void setCurrentRow(QListWidget* theWrappedObject, int row, QItemSelectionModel::SelectionFlags command); - void setItemWidget(QListWidget* theWrappedObject, QListWidgetItem* item, QWidget* widget); - void setSortingEnabled(QListWidget* theWrappedObject, bool enable); - void sortItems(QListWidget* theWrappedObject, Qt::SortOrder order = Qt::AscendingOrder); - Qt::DropActions supportedDropActions(QListWidget* theWrappedObject) const; - QListWidgetItem* takeItem(QListWidget* theWrappedObject, int row); - QRect visualItemRect(QListWidget* theWrappedObject, const QListWidgetItem* item) const; -}; - - - - - -class PythonQtShell_QListWidgetItem : public QListWidgetItem -{ -public: - PythonQtShell_QListWidgetItem(QListWidget* view = 0, int type = Type):QListWidgetItem(view, type),_wrapper(NULL) {}; - PythonQtShell_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view = 0, int type = Type):QListWidgetItem(icon, text, view, type),_wrapper(NULL) {}; - PythonQtShell_QListWidgetItem(const QString& text, QListWidget* view = 0, int type = Type):QListWidgetItem(text, view, type),_wrapper(NULL) {}; - -virtual QListWidgetItem* clone() const; -virtual QVariant data(int role) const; -virtual bool __lt__(const QListWidgetItem& other) const; -virtual void read(QDataStream& in); -virtual void setBackgroundColor(const QColor& color); -virtual void setData(int role, const QVariant& value); -virtual void write(QDataStream& out) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QListWidgetItem : public QListWidgetItem -{ public: -inline QListWidgetItem* promoted_clone() const { return QListWidgetItem::clone(); } -inline QVariant promoted_data(int role) const { return QListWidgetItem::data(role); } -inline void promoted_setData(int role, const QVariant& value) { QListWidgetItem::setData(role, value); } -}; - -class PythonQtWrapper_QListWidgetItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ItemType ) -enum ItemType{ - Type = QListWidgetItem::Type, UserType = QListWidgetItem::UserType}; -public slots: -QListWidgetItem* new_QListWidgetItem(QListWidget* view = 0, int type = Type); -QListWidgetItem* new_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view = 0, int type = Type); -QListWidgetItem* new_QListWidgetItem(const QString& text, QListWidget* view = 0, int type = Type); -void delete_QListWidgetItem(QListWidgetItem* obj) { delete obj; } - QBrush background(QListWidgetItem* theWrappedObject) const; - Qt::CheckState checkState(QListWidgetItem* theWrappedObject) const; - QListWidgetItem* clone(QListWidgetItem* theWrappedObject) const; - QVariant data(QListWidgetItem* theWrappedObject, int role) const; - Qt::ItemFlags flags(QListWidgetItem* theWrappedObject) const; - QFont font(QListWidgetItem* theWrappedObject) const; - QBrush foreground(QListWidgetItem* theWrappedObject) const; - QIcon icon(QListWidgetItem* theWrappedObject) const; - bool isHidden(QListWidgetItem* theWrappedObject) const; - bool isSelected(QListWidgetItem* theWrappedObject) const; - QListWidget* listWidget(QListWidgetItem* theWrappedObject) const; - void writeTo(QListWidgetItem* theWrappedObject, QDataStream& out); - void readFrom(QListWidgetItem* theWrappedObject, QDataStream& in); - void setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush); - void setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state); - void setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value); - void setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags); - void setFont(QListWidgetItem* theWrappedObject, const QFont& font); - void setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush); - void setHidden(QListWidgetItem* theWrappedObject, bool hide); - void setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon); - void setSelected(QListWidgetItem* theWrappedObject, bool select); - void setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size); - void setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip); - void setText(QListWidgetItem* theWrappedObject, const QString& text); - void setTextAlignment(QListWidgetItem* theWrappedObject, int alignment); - void setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip); - void setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis); - QSize sizeHint(QListWidgetItem* theWrappedObject) const; - QString statusTip(QListWidgetItem* theWrappedObject) const; - QString text(QListWidgetItem* theWrappedObject) const; - int textAlignment(QListWidgetItem* theWrappedObject) const; - QString toolTip(QListWidgetItem* theWrappedObject) const; - int type(QListWidgetItem* theWrappedObject) const; - QString whatsThis(QListWidgetItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QMainWindow : public QMainWindow -{ -public: - PythonQtShell_QMainWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0):QMainWindow(parent, flags),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual QMenu* createPopupMenu(); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMainWindow : public QMainWindow -{ public: -inline void promoted_contextMenuEvent(QContextMenuEvent* event) { QMainWindow::contextMenuEvent(event); } -inline QMenu* promoted_createPopupMenu() { return QMainWindow::createPopupMenu(); } -inline bool promoted_event(QEvent* event) { return QMainWindow::event(event); } -}; - -class PythonQtWrapper_QMainWindow : public QObject -{ Q_OBJECT -public: -public slots: -QMainWindow* new_QMainWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QMainWindow(QMainWindow* obj) { delete obj; } - void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget); - void addDockWidget(QMainWindow* theWrappedObject, Qt::DockWidgetArea area, QDockWidget* dockwidget, Qt::Orientation orientation); - void addToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); - void addToolBar(QMainWindow* theWrappedObject, Qt::ToolBarArea area, QToolBar* toolbar); - QToolBar* addToolBar(QMainWindow* theWrappedObject, const QString& title); - void addToolBarBreak(QMainWindow* theWrappedObject, Qt::ToolBarArea area = Qt::TopToolBarArea); - QWidget* centralWidget(QMainWindow* theWrappedObject) const; - void contextMenuEvent(QMainWindow* theWrappedObject, QContextMenuEvent* event); - Qt::DockWidgetArea corner(QMainWindow* theWrappedObject, Qt::Corner corner) const; - QMenu* createPopupMenu(QMainWindow* theWrappedObject); - QMainWindow::DockOptions dockOptions(QMainWindow* theWrappedObject) const; - Qt::DockWidgetArea dockWidgetArea(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const; - bool documentMode(QMainWindow* theWrappedObject) const; - bool event(QMainWindow* theWrappedObject, QEvent* event); - QSize iconSize(QMainWindow* theWrappedObject) const; - void insertToolBar(QMainWindow* theWrappedObject, QToolBar* before, QToolBar* toolbar); - void insertToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); - bool isAnimated(QMainWindow* theWrappedObject) const; - bool isDockNestingEnabled(QMainWindow* theWrappedObject) const; - bool isSeparator(QMainWindow* theWrappedObject, const QPoint& pos) const; - QMenuBar* menuBar(QMainWindow* theWrappedObject) const; - QWidget* menuWidget(QMainWindow* theWrappedObject) const; - void removeDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); - void removeToolBar(QMainWindow* theWrappedObject, QToolBar* toolbar); - void removeToolBarBreak(QMainWindow* theWrappedObject, QToolBar* before); - bool restoreDockWidget(QMainWindow* theWrappedObject, QDockWidget* dockwidget); - bool restoreState(QMainWindow* theWrappedObject, const QByteArray& state, int version = 0); - QByteArray saveState(QMainWindow* theWrappedObject, int version = 0) const; - void setCentralWidget(QMainWindow* theWrappedObject, QWidget* widget); - void setCorner(QMainWindow* theWrappedObject, Qt::Corner corner, Qt::DockWidgetArea area); - void setDockOptions(QMainWindow* theWrappedObject, QMainWindow::DockOptions options); - void setDocumentMode(QMainWindow* theWrappedObject, bool enabled); - void setIconSize(QMainWindow* theWrappedObject, const QSize& iconSize); - void setMenuBar(QMainWindow* theWrappedObject, QMenuBar* menubar); - void setMenuWidget(QMainWindow* theWrappedObject, QWidget* menubar); - void setStatusBar(QMainWindow* theWrappedObject, QStatusBar* statusbar); - void setTabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition); - void setTabShape(QMainWindow* theWrappedObject, QTabWidget::TabShape tabShape); - void setToolButtonStyle(QMainWindow* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle); - void setUnifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject, bool set); - void splitDockWidget(QMainWindow* theWrappedObject, QDockWidget* after, QDockWidget* dockwidget, Qt::Orientation orientation); - QStatusBar* statusBar(QMainWindow* theWrappedObject) const; - QTabWidget::TabPosition tabPosition(QMainWindow* theWrappedObject, Qt::DockWidgetArea area) const; - QTabWidget::TabShape tabShape(QMainWindow* theWrappedObject) const; - QList tabifiedDockWidgets(QMainWindow* theWrappedObject, QDockWidget* dockwidget) const; - void tabifyDockWidget(QMainWindow* theWrappedObject, QDockWidget* first, QDockWidget* second); - Qt::ToolBarArea toolBarArea(QMainWindow* theWrappedObject, QToolBar* toolbar) const; - bool toolBarBreak(QMainWindow* theWrappedObject, QToolBar* toolbar) const; - Qt::ToolButtonStyle toolButtonStyle(QMainWindow* theWrappedObject) const; - bool unifiedTitleAndToolBarOnMac(QMainWindow* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QMargins : public QObject -{ Q_OBJECT -public: -public slots: -QMargins* new_QMargins(); -QMargins* new_QMargins(int left, int top, int right, int bottom); -QMargins* new_QMargins(const QMargins& other) { -QMargins* a = new QMargins(); -*((QMargins*)a) = other; -return a; } -void delete_QMargins(QMargins* obj) { delete obj; } - int bottom(QMargins* theWrappedObject) const; - bool isNull(QMargins* theWrappedObject) const; - int left(QMargins* theWrappedObject) const; - bool __eq__(QMargins* theWrappedObject, const QMargins& m2); - int right(QMargins* theWrappedObject) const; - void setBottom(QMargins* theWrappedObject, int bottom); - void setLeft(QMargins* theWrappedObject, int left); - void setRight(QMargins* theWrappedObject, int right); - void setTop(QMargins* theWrappedObject, int top); - int top(QMargins* theWrappedObject) const; - QString py_toString(QMargins*); - bool __nonzero__(QMargins* obj) { return !obj->isNull(); } -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp deleted file mode 100644 index 61ad4147f..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp +++ /dev/null @@ -1,13197 +0,0 @@ -#include "com_trolltech_qt_gui5.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4() -{ -return new QMatrix4x4(); } - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const QMatrix& matrix) -{ -return new QMatrix4x4(matrix); } - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const QTransform& transform) -{ -return new QMatrix4x4(transform); } - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const qreal* values) -{ -return new QMatrix4x4(values); } - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(const qreal* values, int cols, int rows) -{ -return new QMatrix4x4(values, cols, rows); } - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::new_QMatrix4x4(qreal m11, qreal m12, qreal m13, qreal m14, qreal m21, qreal m22, qreal m23, qreal m24, qreal m31, qreal m32, qreal m33, qreal m34, qreal m41, qreal m42, qreal m43, qreal m44) -{ -return new QMatrix4x4(m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44); } - -QVector4D PythonQtWrapper_QMatrix4x4::column(QMatrix4x4* theWrappedObject, int index) const -{ - return ( theWrappedObject->column(index)); -} - -const qreal* PythonQtWrapper_QMatrix4x4::constData(QMatrix4x4* theWrappedObject) const -{ - return ( theWrappedObject->constData()); -} - -void PythonQtWrapper_QMatrix4x4::copyDataTo(QMatrix4x4* theWrappedObject, qreal* values) const -{ - ( theWrappedObject->copyDataTo(values)); -} - -qreal* PythonQtWrapper_QMatrix4x4::data(QMatrix4x4* theWrappedObject) -{ - return ( theWrappedObject->data()); -} - -qreal PythonQtWrapper_QMatrix4x4::determinant(QMatrix4x4* theWrappedObject) const -{ - return ( theWrappedObject->determinant()); -} - -void PythonQtWrapper_QMatrix4x4::fill(QMatrix4x4* theWrappedObject, qreal value) -{ - ( theWrappedObject->fill(value)); -} - -void PythonQtWrapper_QMatrix4x4::flipCoordinates(QMatrix4x4* theWrappedObject) -{ - ( theWrappedObject->flipCoordinates()); -} - -void PythonQtWrapper_QMatrix4x4::frustum(QMatrix4x4* theWrappedObject, qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane) -{ - ( theWrappedObject->frustum(left, right, bottom, top, nearPlane, farPlane)); -} - -QMatrix4x4 PythonQtWrapper_QMatrix4x4::inverted(QMatrix4x4* theWrappedObject, bool* invertible) const -{ - return ( theWrappedObject->inverted(invertible)); -} - -bool PythonQtWrapper_QMatrix4x4::isIdentity(QMatrix4x4* theWrappedObject) const -{ - return ( theWrappedObject->isIdentity()); -} - -void PythonQtWrapper_QMatrix4x4::lookAt(QMatrix4x4* theWrappedObject, const QVector3D& eye, const QVector3D& center, const QVector3D& up) -{ - ( theWrappedObject->lookAt(eye, center, up)); -} - -QPoint PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QPoint& point) const -{ - return ( theWrappedObject->map(point)); -} - -QPointF PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QPointF& point) const -{ - return ( theWrappedObject->map(point)); -} - -QVector3D PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QVector3D& point) const -{ - return ( theWrappedObject->map(point)); -} - -QVector4D PythonQtWrapper_QMatrix4x4::map(QMatrix4x4* theWrappedObject, const QVector4D& point) const -{ - return ( theWrappedObject->map(point)); -} - -QRect PythonQtWrapper_QMatrix4x4::mapRect(QMatrix4x4* theWrappedObject, const QRect& rect) const -{ - return ( theWrappedObject->mapRect(rect)); -} - -QRectF PythonQtWrapper_QMatrix4x4::mapRect(QMatrix4x4* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->mapRect(rect)); -} - -QVector3D PythonQtWrapper_QMatrix4x4::mapVector(QMatrix4x4* theWrappedObject, const QVector3D& vector) const -{ - return ( theWrappedObject->mapVector(vector)); -} - -bool PythonQtWrapper_QMatrix4x4::__ne__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const -{ - return ( (*theWrappedObject)!= other); -} - -qreal* PythonQtWrapper_QMatrix4x4::operator_cast_(QMatrix4x4* theWrappedObject, int row, int column) -{ - return &( theWrappedObject->operator()(row, column)); -} - -QMatrix4x4 PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2) -{ - return ( (*theWrappedObject)* m2); -} - -QPoint PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QPoint& point) -{ - return ( (*theWrappedObject)* point); -} - -QPointF PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QPointF& point) -{ - return ( (*theWrappedObject)* point); -} - -QVector3D PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QVector3D& vector) -{ - return ( (*theWrappedObject)* vector); -} - -QVector4D PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, const QVector4D& vector) -{ - return ( (*theWrappedObject)* vector); -} - -QMatrix4x4 PythonQtWrapper_QMatrix4x4::__mul__(QMatrix4x4* theWrappedObject, qreal factor) -{ - return ( (*theWrappedObject)* factor); -} - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::__imul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) -{ - return &( (*theWrappedObject)*= other); -} - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::__imul__(QMatrix4x4* theWrappedObject, qreal factor) -{ - return &( (*theWrappedObject)*= factor); -} - -QMatrix4x4 PythonQtWrapper_QMatrix4x4::__add__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2) -{ - return ( (*theWrappedObject)+ m2); -} - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::__iadd__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) -{ - return &( (*theWrappedObject)+= other); -} - -QMatrix4x4 PythonQtWrapper_QMatrix4x4::__sub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2) -{ - return ( (*theWrappedObject)- m2); -} - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::__isub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) -{ - return &( (*theWrappedObject)-= other); -} - -QMatrix4x4 PythonQtWrapper_QMatrix4x4::__div__(QMatrix4x4* theWrappedObject, qreal divisor) -{ - return ( (*theWrappedObject)/ divisor); -} - -QMatrix4x4* PythonQtWrapper_QMatrix4x4::__idiv__(QMatrix4x4* theWrappedObject, qreal divisor) -{ - return &( (*theWrappedObject)/= divisor); -} - -void PythonQtWrapper_QMatrix4x4::writeTo(QMatrix4x4* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QMatrix4x4::__eq__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const -{ - return ( (*theWrappedObject)== other); -} - -void PythonQtWrapper_QMatrix4x4::readFrom(QMatrix4x4* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QMatrix4x4::optimize(QMatrix4x4* theWrappedObject) -{ - ( theWrappedObject->optimize()); -} - -void PythonQtWrapper_QMatrix4x4::ortho(QMatrix4x4* theWrappedObject, const QRect& rect) -{ - ( theWrappedObject->ortho(rect)); -} - -void PythonQtWrapper_QMatrix4x4::ortho(QMatrix4x4* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->ortho(rect)); -} - -void PythonQtWrapper_QMatrix4x4::ortho(QMatrix4x4* theWrappedObject, qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane) -{ - ( theWrappedObject->ortho(left, right, bottom, top, nearPlane, farPlane)); -} - -void PythonQtWrapper_QMatrix4x4::perspective(QMatrix4x4* theWrappedObject, qreal angle, qreal aspect, qreal nearPlane, qreal farPlane) -{ - ( theWrappedObject->perspective(angle, aspect, nearPlane, farPlane)); -} - -void PythonQtWrapper_QMatrix4x4::rotate(QMatrix4x4* theWrappedObject, const QQuaternion& quaternion) -{ - ( theWrappedObject->rotate(quaternion)); -} - -void PythonQtWrapper_QMatrix4x4::rotate(QMatrix4x4* theWrappedObject, qreal angle, const QVector3D& vector) -{ - ( theWrappedObject->rotate(angle, vector)); -} - -void PythonQtWrapper_QMatrix4x4::rotate(QMatrix4x4* theWrappedObject, qreal angle, qreal x, qreal y, qreal z) -{ - ( theWrappedObject->rotate(angle, x, y, z)); -} - -QVector4D PythonQtWrapper_QMatrix4x4::row(QMatrix4x4* theWrappedObject, int index) const -{ - return ( theWrappedObject->row(index)); -} - -void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, const QVector3D& vector) -{ - ( theWrappedObject->scale(vector)); -} - -void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, qreal factor) -{ - ( theWrappedObject->scale(factor)); -} - -void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->scale(x, y)); -} - -void PythonQtWrapper_QMatrix4x4::scale(QMatrix4x4* theWrappedObject, qreal x, qreal y, qreal z) -{ - ( theWrappedObject->scale(x, y, z)); -} - -void PythonQtWrapper_QMatrix4x4::setColumn(QMatrix4x4* theWrappedObject, int index, const QVector4D& value) -{ - ( theWrappedObject->setColumn(index, value)); -} - -void PythonQtWrapper_QMatrix4x4::setRow(QMatrix4x4* theWrappedObject, int index, const QVector4D& value) -{ - ( theWrappedObject->setRow(index, value)); -} - -void PythonQtWrapper_QMatrix4x4::setToIdentity(QMatrix4x4* theWrappedObject) -{ - ( theWrappedObject->setToIdentity()); -} - -QMatrix PythonQtWrapper_QMatrix4x4::toAffine(QMatrix4x4* theWrappedObject) const -{ - return ( theWrappedObject->toAffine()); -} - -QTransform PythonQtWrapper_QMatrix4x4::toTransform(QMatrix4x4* theWrappedObject) const -{ - return ( theWrappedObject->toTransform()); -} - -QTransform PythonQtWrapper_QMatrix4x4::toTransform(QMatrix4x4* theWrappedObject, qreal distanceToPlane) const -{ - return ( theWrappedObject->toTransform(distanceToPlane)); -} - -void PythonQtWrapper_QMatrix4x4::translate(QMatrix4x4* theWrappedObject, const QVector3D& vector) -{ - ( theWrappedObject->translate(vector)); -} - -void PythonQtWrapper_QMatrix4x4::translate(QMatrix4x4* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->translate(x, y)); -} - -void PythonQtWrapper_QMatrix4x4::translate(QMatrix4x4* theWrappedObject, qreal x, qreal y, qreal z) -{ - ( theWrappedObject->translate(x, y, z)); -} - -QMatrix4x4 PythonQtWrapper_QMatrix4x4::transposed(QMatrix4x4* theWrappedObject) const -{ - return ( theWrappedObject->transposed()); -} - -QString PythonQtWrapper_QMatrix4x4::py_toString(QMatrix4x4* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -void PythonQtShell_QMdiArea::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::actionEvent(arg__1); -} -void PythonQtShell_QMdiArea::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::changeEvent(arg__1); -} -void PythonQtShell_QMdiArea::childEvent(QChildEvent* childEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&childEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::childEvent(childEvent); -} -void PythonQtShell_QMdiArea::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::closeEvent(arg__1); -} -void PythonQtShell_QMdiArea::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::contextMenuEvent(arg__1); -} -void PythonQtShell_QMdiArea::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::customEvent(arg__1); -} -int PythonQtShell_QMdiArea::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::devType(); -} -void PythonQtShell_QMdiArea::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::dragEnterEvent(arg__1); -} -void PythonQtShell_QMdiArea::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::dragLeaveEvent(arg__1); -} -void PythonQtShell_QMdiArea::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::dragMoveEvent(arg__1); -} -void PythonQtShell_QMdiArea::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::dropEvent(arg__1); -} -void PythonQtShell_QMdiArea::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::enterEvent(arg__1); -} -bool PythonQtShell_QMdiArea::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::event(event); -} -bool PythonQtShell_QMdiArea::eventFilter(QObject* object, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::eventFilter(object, event); -} -void PythonQtShell_QMdiArea::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::focusInEvent(arg__1); -} -bool PythonQtShell_QMdiArea::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::focusNextPrevChild(next); -} -void PythonQtShell_QMdiArea::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::focusOutEvent(arg__1); -} -int PythonQtShell_QMdiArea::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::heightForWidth(arg__1); -} -void PythonQtShell_QMdiArea::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::hideEvent(arg__1); -} -void PythonQtShell_QMdiArea::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QMdiArea::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::inputMethodQuery(arg__1); -} -void PythonQtShell_QMdiArea::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::keyPressEvent(arg__1); -} -void PythonQtShell_QMdiArea::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::keyReleaseEvent(arg__1); -} -void PythonQtShell_QMdiArea::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::languageChange(); -} -void PythonQtShell_QMdiArea::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::leaveEvent(arg__1); -} -int PythonQtShell_QMdiArea::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::metric(arg__1); -} -void PythonQtShell_QMdiArea::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QMdiArea::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::mouseMoveEvent(arg__1); -} -void PythonQtShell_QMdiArea::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::mousePressEvent(arg__1); -} -void PythonQtShell_QMdiArea::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QMdiArea::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QMdiArea::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::paintEngine(); -} -void PythonQtShell_QMdiArea::paintEvent(QPaintEvent* paintEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&paintEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::paintEvent(paintEvent); -} -void PythonQtShell_QMdiArea::resizeEvent(QResizeEvent* resizeEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&resizeEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::resizeEvent(resizeEvent); -} -void PythonQtShell_QMdiArea::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QMdiArea::scrollContentsBy(dx, dy); -} -void PythonQtShell_QMdiArea::showEvent(QShowEvent* showEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&showEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::showEvent(showEvent); -} -void PythonQtShell_QMdiArea::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::tabletEvent(arg__1); -} -void PythonQtShell_QMdiArea::timerEvent(QTimerEvent* timerEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&timerEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::timerEvent(timerEvent); -} -bool PythonQtShell_QMdiArea::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiArea::viewportEvent(event); -} -void PythonQtShell_QMdiArea::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiArea::wheelEvent(arg__1); -} -QMdiArea* PythonQtWrapper_QMdiArea::new_QMdiArea(QWidget* parent) -{ -return new PythonQtShell_QMdiArea(parent); } - -QMdiArea::WindowOrder PythonQtWrapper_QMdiArea::activationOrder(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->activationOrder()); -} - -QMdiSubWindow* PythonQtWrapper_QMdiArea::activeSubWindow(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->activeSubWindow()); -} - -QMdiSubWindow* PythonQtWrapper_QMdiArea::addSubWindow(QMdiArea* theWrappedObject, QWidget* widget, Qt::WindowFlags flags) -{ - return ( theWrappedObject->addSubWindow(widget, flags)); -} - -QBrush PythonQtWrapper_QMdiArea::background(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->background()); -} - -void PythonQtWrapper_QMdiArea::childEvent(QMdiArea* theWrappedObject, QChildEvent* childEvent) -{ - ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_childEvent(childEvent)); -} - -QMdiSubWindow* PythonQtWrapper_QMdiArea::currentSubWindow(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->currentSubWindow()); -} - -bool PythonQtWrapper_QMdiArea::documentMode(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->documentMode()); -} - -bool PythonQtWrapper_QMdiArea::event(QMdiArea* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_event(event)); -} - -bool PythonQtWrapper_QMdiArea::eventFilter(QMdiArea* theWrappedObject, QObject* object, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_eventFilter(object, event)); -} - -QSize PythonQtWrapper_QMdiArea::minimumSizeHint(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QMdiArea::paintEvent(QMdiArea* theWrappedObject, QPaintEvent* paintEvent) -{ - ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_paintEvent(paintEvent)); -} - -void PythonQtWrapper_QMdiArea::removeSubWindow(QMdiArea* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->removeSubWindow(widget)); -} - -void PythonQtWrapper_QMdiArea::resizeEvent(QMdiArea* theWrappedObject, QResizeEvent* resizeEvent) -{ - ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_resizeEvent(resizeEvent)); -} - -void PythonQtWrapper_QMdiArea::scrollContentsBy(QMdiArea* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QMdiArea::setActivationOrder(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order) -{ - ( theWrappedObject->setActivationOrder(order)); -} - -void PythonQtWrapper_QMdiArea::setBackground(QMdiArea* theWrappedObject, const QBrush& background) -{ - ( theWrappedObject->setBackground(background)); -} - -void PythonQtWrapper_QMdiArea::setDocumentMode(QMdiArea* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setDocumentMode(enabled)); -} - -void PythonQtWrapper_QMdiArea::setOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QMdiArea::setTabPosition(QMdiArea* theWrappedObject, QTabWidget::TabPosition position) -{ - ( theWrappedObject->setTabPosition(position)); -} - -void PythonQtWrapper_QMdiArea::setTabShape(QMdiArea* theWrappedObject, QTabWidget::TabShape shape) -{ - ( theWrappedObject->setTabShape(shape)); -} - -void PythonQtWrapper_QMdiArea::setViewMode(QMdiArea* theWrappedObject, QMdiArea::ViewMode mode) -{ - ( theWrappedObject->setViewMode(mode)); -} - -void PythonQtWrapper_QMdiArea::showEvent(QMdiArea* theWrappedObject, QShowEvent* showEvent) -{ - ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_showEvent(showEvent)); -} - -QSize PythonQtWrapper_QMdiArea::sizeHint(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QList PythonQtWrapper_QMdiArea::subWindowList(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order) const -{ - return ( theWrappedObject->subWindowList(order)); -} - -QTabWidget::TabPosition PythonQtWrapper_QMdiArea::tabPosition(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->tabPosition()); -} - -QTabWidget::TabShape PythonQtWrapper_QMdiArea::tabShape(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->tabShape()); -} - -bool PythonQtWrapper_QMdiArea::testOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption opton) const -{ - return ( theWrappedObject->testOption(opton)); -} - -void PythonQtWrapper_QMdiArea::timerEvent(QMdiArea* theWrappedObject, QTimerEvent* timerEvent) -{ - ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_timerEvent(timerEvent)); -} - -QMdiArea::ViewMode PythonQtWrapper_QMdiArea::viewMode(QMdiArea* theWrappedObject) const -{ - return ( theWrappedObject->viewMode()); -} - -bool PythonQtWrapper_QMdiArea::viewportEvent(QMdiArea* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QMdiArea*)theWrappedObject)->promoted_viewportEvent(event)); -} - - - -void PythonQtShell_QMdiSubWindow::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::actionEvent(arg__1); -} -void PythonQtShell_QMdiSubWindow::changeEvent(QEvent* changeEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&changeEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::changeEvent(changeEvent); -} -void PythonQtShell_QMdiSubWindow::childEvent(QChildEvent* childEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&childEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::childEvent(childEvent); -} -void PythonQtShell_QMdiSubWindow::closeEvent(QCloseEvent* closeEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&closeEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::closeEvent(closeEvent); -} -void PythonQtShell_QMdiSubWindow::contextMenuEvent(QContextMenuEvent* contextMenuEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&contextMenuEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::contextMenuEvent(contextMenuEvent); -} -void PythonQtShell_QMdiSubWindow::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::customEvent(arg__1); -} -int PythonQtShell_QMdiSubWindow::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::devType(); -} -void PythonQtShell_QMdiSubWindow::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::dragEnterEvent(arg__1); -} -void PythonQtShell_QMdiSubWindow::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::dragLeaveEvent(arg__1); -} -void PythonQtShell_QMdiSubWindow::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::dragMoveEvent(arg__1); -} -void PythonQtShell_QMdiSubWindow::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::dropEvent(arg__1); -} -void PythonQtShell_QMdiSubWindow::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::enterEvent(arg__1); -} -bool PythonQtShell_QMdiSubWindow::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::event(event); -} -bool PythonQtShell_QMdiSubWindow::eventFilter(QObject* object, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::eventFilter(object, event); -} -void PythonQtShell_QMdiSubWindow::focusInEvent(QFocusEvent* focusInEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&focusInEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::focusInEvent(focusInEvent); -} -bool PythonQtShell_QMdiSubWindow::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::focusNextPrevChild(next); -} -void PythonQtShell_QMdiSubWindow::focusOutEvent(QFocusEvent* focusOutEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&focusOutEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::focusOutEvent(focusOutEvent); -} -int PythonQtShell_QMdiSubWindow::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::heightForWidth(arg__1); -} -void PythonQtShell_QMdiSubWindow::hideEvent(QHideEvent* hideEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&hideEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::hideEvent(hideEvent); -} -void PythonQtShell_QMdiSubWindow::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QMdiSubWindow::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::inputMethodQuery(arg__1); -} -void PythonQtShell_QMdiSubWindow::keyPressEvent(QKeyEvent* keyEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&keyEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::keyPressEvent(keyEvent); -} -void PythonQtShell_QMdiSubWindow::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::keyReleaseEvent(arg__1); -} -void PythonQtShell_QMdiSubWindow::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::languageChange(); -} -void PythonQtShell_QMdiSubWindow::leaveEvent(QEvent* leaveEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&leaveEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::leaveEvent(leaveEvent); -} -int PythonQtShell_QMdiSubWindow::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::metric(arg__1); -} -void PythonQtShell_QMdiSubWindow::mouseDoubleClickEvent(QMouseEvent* mouseEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&mouseEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::mouseDoubleClickEvent(mouseEvent); -} -void PythonQtShell_QMdiSubWindow::mouseMoveEvent(QMouseEvent* mouseEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&mouseEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::mouseMoveEvent(mouseEvent); -} -void PythonQtShell_QMdiSubWindow::mousePressEvent(QMouseEvent* mouseEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&mouseEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::mousePressEvent(mouseEvent); -} -void PythonQtShell_QMdiSubWindow::mouseReleaseEvent(QMouseEvent* mouseEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&mouseEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::mouseReleaseEvent(mouseEvent); -} -void PythonQtShell_QMdiSubWindow::moveEvent(QMoveEvent* moveEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&moveEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::moveEvent(moveEvent); -} -QPaintEngine* PythonQtShell_QMdiSubWindow::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMdiSubWindow::paintEngine(); -} -void PythonQtShell_QMdiSubWindow::paintEvent(QPaintEvent* paintEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&paintEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::paintEvent(paintEvent); -} -void PythonQtShell_QMdiSubWindow::resizeEvent(QResizeEvent* resizeEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&resizeEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::resizeEvent(resizeEvent); -} -void PythonQtShell_QMdiSubWindow::showEvent(QShowEvent* showEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&showEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::showEvent(showEvent); -} -void PythonQtShell_QMdiSubWindow::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::tabletEvent(arg__1); -} -void PythonQtShell_QMdiSubWindow::timerEvent(QTimerEvent* timerEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&timerEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::timerEvent(timerEvent); -} -void PythonQtShell_QMdiSubWindow::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMdiSubWindow::wheelEvent(arg__1); -} -QMdiSubWindow* PythonQtWrapper_QMdiSubWindow::new_QMdiSubWindow(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QMdiSubWindow(parent, flags); } - -void PythonQtWrapper_QMdiSubWindow::changeEvent(QMdiSubWindow* theWrappedObject, QEvent* changeEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_changeEvent(changeEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::childEvent(QMdiSubWindow* theWrappedObject, QChildEvent* childEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_childEvent(childEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::closeEvent(QMdiSubWindow* theWrappedObject, QCloseEvent* closeEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_closeEvent(closeEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::contextMenuEvent(QMdiSubWindow* theWrappedObject, QContextMenuEvent* contextMenuEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_contextMenuEvent(contextMenuEvent)); -} - -bool PythonQtWrapper_QMdiSubWindow::event(QMdiSubWindow* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_event(event)); -} - -bool PythonQtWrapper_QMdiSubWindow::eventFilter(QMdiSubWindow* theWrappedObject, QObject* object, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_eventFilter(object, event)); -} - -void PythonQtWrapper_QMdiSubWindow::focusInEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusInEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_focusInEvent(focusInEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::focusOutEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusOutEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_focusOutEvent(focusOutEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::hideEvent(QMdiSubWindow* theWrappedObject, QHideEvent* hideEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_hideEvent(hideEvent)); -} - -bool PythonQtWrapper_QMdiSubWindow::isShaded(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->isShaded()); -} - -void PythonQtWrapper_QMdiSubWindow::keyPressEvent(QMdiSubWindow* theWrappedObject, QKeyEvent* keyEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_keyPressEvent(keyEvent)); -} - -int PythonQtWrapper_QMdiSubWindow::keyboardPageStep(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->keyboardPageStep()); -} - -int PythonQtWrapper_QMdiSubWindow::keyboardSingleStep(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->keyboardSingleStep()); -} - -void PythonQtWrapper_QMdiSubWindow::leaveEvent(QMdiSubWindow* theWrappedObject, QEvent* leaveEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_leaveEvent(leaveEvent)); -} - -QWidget* PythonQtWrapper_QMdiSubWindow::maximizedButtonsWidget(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->maximizedButtonsWidget()); -} - -QWidget* PythonQtWrapper_QMdiSubWindow::maximizedSystemMenuIconWidget(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->maximizedSystemMenuIconWidget()); -} - -QMdiArea* PythonQtWrapper_QMdiSubWindow::mdiArea(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->mdiArea()); -} - -QSize PythonQtWrapper_QMdiSubWindow::minimumSizeHint(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QMdiSubWindow::mouseDoubleClickEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mouseDoubleClickEvent(mouseEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::mouseMoveEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mouseMoveEvent(mouseEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::mousePressEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mousePressEvent(mouseEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::mouseReleaseEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_mouseReleaseEvent(mouseEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::moveEvent(QMdiSubWindow* theWrappedObject, QMoveEvent* moveEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_moveEvent(moveEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::paintEvent(QMdiSubWindow* theWrappedObject, QPaintEvent* paintEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_paintEvent(paintEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::resizeEvent(QMdiSubWindow* theWrappedObject, QResizeEvent* resizeEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_resizeEvent(resizeEvent)); -} - -void PythonQtWrapper_QMdiSubWindow::setKeyboardPageStep(QMdiSubWindow* theWrappedObject, int step) -{ - ( theWrappedObject->setKeyboardPageStep(step)); -} - -void PythonQtWrapper_QMdiSubWindow::setKeyboardSingleStep(QMdiSubWindow* theWrappedObject, int step) -{ - ( theWrappedObject->setKeyboardSingleStep(step)); -} - -void PythonQtWrapper_QMdiSubWindow::setOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QMdiSubWindow::setSystemMenu(QMdiSubWindow* theWrappedObject, QMenu* systemMenu) -{ - ( theWrappedObject->setSystemMenu(systemMenu)); -} - -void PythonQtWrapper_QMdiSubWindow::setWidget(QMdiSubWindow* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setWidget(widget)); -} - -void PythonQtWrapper_QMdiSubWindow::showEvent(QMdiSubWindow* theWrappedObject, QShowEvent* showEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_showEvent(showEvent)); -} - -QSize PythonQtWrapper_QMdiSubWindow::sizeHint(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QMenu* PythonQtWrapper_QMdiSubWindow::systemMenu(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->systemMenu()); -} - -bool PythonQtWrapper_QMdiSubWindow::testOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption arg__1) const -{ - return ( theWrappedObject->testOption(arg__1)); -} - -void PythonQtWrapper_QMdiSubWindow::timerEvent(QMdiSubWindow* theWrappedObject, QTimerEvent* timerEvent) -{ - ( ((PythonQtPublicPromoter_QMdiSubWindow*)theWrappedObject)->promoted_timerEvent(timerEvent)); -} - -QWidget* PythonQtWrapper_QMdiSubWindow::widget(QMdiSubWindow* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - - - -void PythonQtShell_QMenu::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::actionEvent(arg__1); -} -void PythonQtShell_QMenu::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::changeEvent(arg__1); -} -void PythonQtShell_QMenu::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::childEvent(arg__1); -} -void PythonQtShell_QMenu::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::closeEvent(arg__1); -} -void PythonQtShell_QMenu::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::contextMenuEvent(arg__1); -} -void PythonQtShell_QMenu::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::customEvent(arg__1); -} -int PythonQtShell_QMenu::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::devType(); -} -void PythonQtShell_QMenu::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::dragEnterEvent(arg__1); -} -void PythonQtShell_QMenu::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::dragLeaveEvent(arg__1); -} -void PythonQtShell_QMenu::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::dragMoveEvent(arg__1); -} -void PythonQtShell_QMenu::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::dropEvent(arg__1); -} -void PythonQtShell_QMenu::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::enterEvent(arg__1); -} -bool PythonQtShell_QMenu::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::event(arg__1); -} -bool PythonQtShell_QMenu::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QMenu::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::focusInEvent(arg__1); -} -bool PythonQtShell_QMenu::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::focusNextPrevChild(next); -} -void PythonQtShell_QMenu::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::focusOutEvent(arg__1); -} -int PythonQtShell_QMenu::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::heightForWidth(arg__1); -} -void PythonQtShell_QMenu::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::hideEvent(arg__1); -} -void PythonQtShell_QMenu::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QMenu::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::inputMethodQuery(arg__1); -} -void PythonQtShell_QMenu::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::keyPressEvent(arg__1); -} -void PythonQtShell_QMenu::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::keyReleaseEvent(arg__1); -} -void PythonQtShell_QMenu::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::languageChange(); -} -void PythonQtShell_QMenu::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::leaveEvent(arg__1); -} -int PythonQtShell_QMenu::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::metric(arg__1); -} -QSize PythonQtShell_QMenu::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::minimumSizeHint(); -} -void PythonQtShell_QMenu::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QMenu::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::mouseMoveEvent(arg__1); -} -void PythonQtShell_QMenu::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::mousePressEvent(arg__1); -} -void PythonQtShell_QMenu::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QMenu::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QMenu::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenu::paintEngine(); -} -void PythonQtShell_QMenu::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::paintEvent(arg__1); -} -void PythonQtShell_QMenu::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::resizeEvent(arg__1); -} -void PythonQtShell_QMenu::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::showEvent(arg__1); -} -void PythonQtShell_QMenu::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::tabletEvent(arg__1); -} -void PythonQtShell_QMenu::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::timerEvent(arg__1); -} -void PythonQtShell_QMenu::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenu::wheelEvent(arg__1); -} -QMenu* PythonQtWrapper_QMenu::new_QMenu(QWidget* parent) -{ -return new PythonQtShell_QMenu(parent); } - -QMenu* PythonQtWrapper_QMenu::new_QMenu(const QString& title, QWidget* parent) -{ -return new PythonQtShell_QMenu(title, parent); } - -QAction* PythonQtWrapper_QMenu::actionAt(QMenu* theWrappedObject, const QPoint& arg__1) const -{ - return ( theWrappedObject->actionAt(arg__1)); -} - -void PythonQtWrapper_QMenu::actionEvent(QMenu* theWrappedObject, QActionEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_actionEvent(arg__1)); -} - -QRect PythonQtWrapper_QMenu::actionGeometry(QMenu* theWrappedObject, QAction* arg__1) const -{ - return ( theWrappedObject->actionGeometry(arg__1)); -} - -QAction* PythonQtWrapper_QMenu::activeAction(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->activeAction()); -} - -void PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, QAction* action) -{ - ( theWrappedObject->addAction(action)); -} - -QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text) -{ - return ( theWrappedObject->addAction(icon, text)); -} - -QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut) -{ - return ( theWrappedObject->addAction(icon, text, receiver, member, shortcut)); -} - -QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QString& text) -{ - return ( theWrappedObject->addAction(text)); -} - -QAction* PythonQtWrapper_QMenu::addAction(QMenu* theWrappedObject, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut) -{ - return ( theWrappedObject->addAction(text, receiver, member, shortcut)); -} - -QAction* PythonQtWrapper_QMenu::addMenu(QMenu* theWrappedObject, QMenu* menu) -{ - return ( theWrappedObject->addMenu(menu)); -} - -QMenu* PythonQtWrapper_QMenu::addMenu(QMenu* theWrappedObject, const QIcon& icon, const QString& title) -{ - return ( theWrappedObject->addMenu(icon, title)); -} - -QMenu* PythonQtWrapper_QMenu::addMenu(QMenu* theWrappedObject, const QString& title) -{ - return ( theWrappedObject->addMenu(title)); -} - -QAction* PythonQtWrapper_QMenu::addSeparator(QMenu* theWrappedObject) -{ - return ( theWrappedObject->addSeparator()); -} - -void PythonQtWrapper_QMenu::changeEvent(QMenu* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -void PythonQtWrapper_QMenu::clear(QMenu* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -QAction* PythonQtWrapper_QMenu::defaultAction(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->defaultAction()); -} - -void PythonQtWrapper_QMenu::enterEvent(QMenu* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_enterEvent(arg__1)); -} - -bool PythonQtWrapper_QMenu::event(QMenu* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_event(arg__1)); -} - -QAction* PythonQtWrapper_QMenu::exec(QMenu* theWrappedObject) -{ - return ( theWrappedObject->exec()); -} - -QAction* PythonQtWrapper_QMenu::static_QMenu_exec(QList actions, const QPoint& pos, QAction* at) -{ - return (QMenu::exec(actions, pos, at)); -} - -QAction* PythonQtWrapper_QMenu::static_QMenu_exec(QList actions, const QPoint& pos, QAction* at, QWidget* parent) -{ - return (QMenu::exec(actions, pos, at, parent)); -} - -QAction* PythonQtWrapper_QMenu::exec(QMenu* theWrappedObject, const QPoint& pos, QAction* at) -{ - return ( theWrappedObject->exec(pos, at)); -} - -bool PythonQtWrapper_QMenu::focusNextPrevChild(QMenu* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QMenu::hideEvent(QMenu* theWrappedObject, QHideEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_hideEvent(arg__1)); -} - -void PythonQtWrapper_QMenu::hideTearOffMenu(QMenu* theWrappedObject) -{ - ( theWrappedObject->hideTearOffMenu()); -} - -QIcon PythonQtWrapper_QMenu::icon(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -QAction* PythonQtWrapper_QMenu::insertMenu(QMenu* theWrappedObject, QAction* before, QMenu* menu) -{ - return ( theWrappedObject->insertMenu(before, menu)); -} - -QAction* PythonQtWrapper_QMenu::insertSeparator(QMenu* theWrappedObject, QAction* before) -{ - return ( theWrappedObject->insertSeparator(before)); -} - -bool PythonQtWrapper_QMenu::isEmpty(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QMenu::isTearOffEnabled(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->isTearOffEnabled()); -} - -bool PythonQtWrapper_QMenu::isTearOffMenuVisible(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->isTearOffMenuVisible()); -} - -void PythonQtWrapper_QMenu::keyPressEvent(QMenu* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -void PythonQtWrapper_QMenu::leaveEvent(QMenu* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_leaveEvent(arg__1)); -} - -QAction* PythonQtWrapper_QMenu::menuAction(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->menuAction()); -} - -void PythonQtWrapper_QMenu::mouseMoveEvent(QMenu* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QMenu::mousePressEvent(QMenu* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QMenu::mouseReleaseEvent(QMenu* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QMenu::paintEvent(QMenu* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QMenu::popup(QMenu* theWrappedObject, const QPoint& pos, QAction* at) -{ - ( theWrappedObject->popup(pos, at)); -} - -bool PythonQtWrapper_QMenu::separatorsCollapsible(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->separatorsCollapsible()); -} - -void PythonQtWrapper_QMenu::setActiveAction(QMenu* theWrappedObject, QAction* act) -{ - ( theWrappedObject->setActiveAction(act)); -} - -void PythonQtWrapper_QMenu::setDefaultAction(QMenu* theWrappedObject, QAction* arg__1) -{ - ( theWrappedObject->setDefaultAction(arg__1)); -} - -void PythonQtWrapper_QMenu::setIcon(QMenu* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setIcon(icon)); -} - -void PythonQtWrapper_QMenu::setSeparatorsCollapsible(QMenu* theWrappedObject, bool collapse) -{ - ( theWrappedObject->setSeparatorsCollapsible(collapse)); -} - -void PythonQtWrapper_QMenu::setTearOffEnabled(QMenu* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setTearOffEnabled(arg__1)); -} - -void PythonQtWrapper_QMenu::setTitle(QMenu* theWrappedObject, const QString& title) -{ - ( theWrappedObject->setTitle(title)); -} - -QSize PythonQtWrapper_QMenu::sizeHint(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -void PythonQtWrapper_QMenu::timerEvent(QMenu* theWrappedObject, QTimerEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_timerEvent(arg__1)); -} - -QString PythonQtWrapper_QMenu::title(QMenu* theWrappedObject) const -{ - return ( theWrappedObject->title()); -} - -void PythonQtWrapper_QMenu::wheelEvent(QMenu* theWrappedObject, QWheelEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenu*)theWrappedObject)->promoted_wheelEvent(arg__1)); -} - - - -void PythonQtShell_QMenuBar::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::actionEvent(arg__1); -} -void PythonQtShell_QMenuBar::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::changeEvent(arg__1); -} -void PythonQtShell_QMenuBar::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::childEvent(arg__1); -} -void PythonQtShell_QMenuBar::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::closeEvent(arg__1); -} -void PythonQtShell_QMenuBar::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::contextMenuEvent(arg__1); -} -void PythonQtShell_QMenuBar::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::customEvent(arg__1); -} -int PythonQtShell_QMenuBar::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::devType(); -} -void PythonQtShell_QMenuBar::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::dragEnterEvent(arg__1); -} -void PythonQtShell_QMenuBar::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::dragLeaveEvent(arg__1); -} -void PythonQtShell_QMenuBar::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::dragMoveEvent(arg__1); -} -void PythonQtShell_QMenuBar::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::dropEvent(arg__1); -} -void PythonQtShell_QMenuBar::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::enterEvent(arg__1); -} -bool PythonQtShell_QMenuBar::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::event(arg__1); -} -bool PythonQtShell_QMenuBar::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QMenuBar::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::focusInEvent(arg__1); -} -bool PythonQtShell_QMenuBar::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::focusNextPrevChild(next); -} -void PythonQtShell_QMenuBar::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::focusOutEvent(arg__1); -} -int PythonQtShell_QMenuBar::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::heightForWidth(arg__1); -} -void PythonQtShell_QMenuBar::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::hideEvent(arg__1); -} -void PythonQtShell_QMenuBar::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QMenuBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::inputMethodQuery(arg__1); -} -void PythonQtShell_QMenuBar::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::keyPressEvent(arg__1); -} -void PythonQtShell_QMenuBar::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::keyReleaseEvent(arg__1); -} -void PythonQtShell_QMenuBar::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::languageChange(); -} -void PythonQtShell_QMenuBar::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::leaveEvent(arg__1); -} -int PythonQtShell_QMenuBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::metric(arg__1); -} -void PythonQtShell_QMenuBar::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QMenuBar::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::mouseMoveEvent(arg__1); -} -void PythonQtShell_QMenuBar::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::mousePressEvent(arg__1); -} -void PythonQtShell_QMenuBar::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QMenuBar::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QMenuBar::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMenuBar::paintEngine(); -} -void PythonQtShell_QMenuBar::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::paintEvent(arg__1); -} -void PythonQtShell_QMenuBar::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::resizeEvent(arg__1); -} -void PythonQtShell_QMenuBar::setVisible(bool visible) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setVisible"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&visible}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::setVisible(visible); -} -void PythonQtShell_QMenuBar::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::showEvent(arg__1); -} -void PythonQtShell_QMenuBar::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::tabletEvent(arg__1); -} -void PythonQtShell_QMenuBar::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::timerEvent(arg__1); -} -void PythonQtShell_QMenuBar::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMenuBar::wheelEvent(arg__1); -} -QMenuBar* PythonQtWrapper_QMenuBar::new_QMenuBar(QWidget* parent) -{ -return new PythonQtShell_QMenuBar(parent); } - -QAction* PythonQtWrapper_QMenuBar::actionAt(QMenuBar* theWrappedObject, const QPoint& arg__1) const -{ - return ( theWrappedObject->actionAt(arg__1)); -} - -void PythonQtWrapper_QMenuBar::actionEvent(QMenuBar* theWrappedObject, QActionEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_actionEvent(arg__1)); -} - -QRect PythonQtWrapper_QMenuBar::actionGeometry(QMenuBar* theWrappedObject, QAction* arg__1) const -{ - return ( theWrappedObject->actionGeometry(arg__1)); -} - -QAction* PythonQtWrapper_QMenuBar::activeAction(QMenuBar* theWrappedObject) const -{ - return ( theWrappedObject->activeAction()); -} - -void PythonQtWrapper_QMenuBar::addAction(QMenuBar* theWrappedObject, QAction* action) -{ - ( theWrappedObject->addAction(action)); -} - -QAction* PythonQtWrapper_QMenuBar::addAction(QMenuBar* theWrappedObject, const QString& text) -{ - return ( theWrappedObject->addAction(text)); -} - -QAction* PythonQtWrapper_QMenuBar::addAction(QMenuBar* theWrappedObject, const QString& text, const QObject* receiver, const char* member) -{ - return ( theWrappedObject->addAction(text, receiver, member)); -} - -QAction* PythonQtWrapper_QMenuBar::addMenu(QMenuBar* theWrappedObject, QMenu* menu) -{ - return ( theWrappedObject->addMenu(menu)); -} - -QMenu* PythonQtWrapper_QMenuBar::addMenu(QMenuBar* theWrappedObject, const QIcon& icon, const QString& title) -{ - return ( theWrappedObject->addMenu(icon, title)); -} - -QMenu* PythonQtWrapper_QMenuBar::addMenu(QMenuBar* theWrappedObject, const QString& title) -{ - return ( theWrappedObject->addMenu(title)); -} - -QAction* PythonQtWrapper_QMenuBar::addSeparator(QMenuBar* theWrappedObject) -{ - return ( theWrappedObject->addSeparator()); -} - -void PythonQtWrapper_QMenuBar::changeEvent(QMenuBar* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::clear(QMenuBar* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -QWidget* PythonQtWrapper_QMenuBar::cornerWidget(QMenuBar* theWrappedObject, Qt::Corner corner) const -{ - return ( theWrappedObject->cornerWidget(corner)); -} - -bool PythonQtWrapper_QMenuBar::event(QMenuBar* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QMenuBar::eventFilter(QMenuBar* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -void PythonQtWrapper_QMenuBar::focusInEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_focusInEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::focusOutEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_focusOutEvent(arg__1)); -} - -int PythonQtWrapper_QMenuBar::heightForWidth(QMenuBar* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_heightForWidth(arg__1)); -} - -QAction* PythonQtWrapper_QMenuBar::insertMenu(QMenuBar* theWrappedObject, QAction* before, QMenu* menu) -{ - return ( theWrappedObject->insertMenu(before, menu)); -} - -QAction* PythonQtWrapper_QMenuBar::insertSeparator(QMenuBar* theWrappedObject, QAction* before) -{ - return ( theWrappedObject->insertSeparator(before)); -} - -bool PythonQtWrapper_QMenuBar::isDefaultUp(QMenuBar* theWrappedObject) const -{ - return ( theWrappedObject->isDefaultUp()); -} - -bool PythonQtWrapper_QMenuBar::isNativeMenuBar(QMenuBar* theWrappedObject) const -{ - return ( theWrappedObject->isNativeMenuBar()); -} - -void PythonQtWrapper_QMenuBar::keyPressEvent(QMenuBar* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::leaveEvent(QMenuBar* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_leaveEvent(arg__1)); -} - -QSize PythonQtWrapper_QMenuBar::minimumSizeHint(QMenuBar* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QMenuBar::mouseMoveEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::mousePressEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::mouseReleaseEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::paintEvent(QMenuBar* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::resizeEvent(QMenuBar* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -void PythonQtWrapper_QMenuBar::setActiveAction(QMenuBar* theWrappedObject, QAction* action) -{ - ( theWrappedObject->setActiveAction(action)); -} - -void PythonQtWrapper_QMenuBar::setCornerWidget(QMenuBar* theWrappedObject, QWidget* w, Qt::Corner corner) -{ - ( theWrappedObject->setCornerWidget(w, corner)); -} - -void PythonQtWrapper_QMenuBar::setDefaultUp(QMenuBar* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setDefaultUp(arg__1)); -} - -void PythonQtWrapper_QMenuBar::setNativeMenuBar(QMenuBar* theWrappedObject, bool nativeMenuBar) -{ - ( theWrappedObject->setNativeMenuBar(nativeMenuBar)); -} - -QSize PythonQtWrapper_QMenuBar::sizeHint(QMenuBar* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -void PythonQtWrapper_QMenuBar::timerEvent(QMenuBar* theWrappedObject, QTimerEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QMenuBar*)theWrappedObject)->promoted_timerEvent(arg__1)); -} - - - -void PythonQtShell_QMessageBox::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::accept(); -} -void PythonQtShell_QMessageBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::actionEvent(arg__1); -} -void PythonQtShell_QMessageBox::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::changeEvent(event); -} -void PythonQtShell_QMessageBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::childEvent(arg__1); -} -void PythonQtShell_QMessageBox::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QMessageBox::closeEvent(event); -} -void PythonQtShell_QMessageBox::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::contextMenuEvent(arg__1); -} -void PythonQtShell_QMessageBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::customEvent(arg__1); -} -int PythonQtShell_QMessageBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::devType(); -} -void PythonQtShell_QMessageBox::done(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::done(arg__1); -} -void PythonQtShell_QMessageBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QMessageBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QMessageBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QMessageBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::dropEvent(arg__1); -} -void PythonQtShell_QMessageBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::enterEvent(arg__1); -} -bool PythonQtShell_QMessageBox::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::event(e); -} -bool PythonQtShell_QMessageBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QMessageBox::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::focusInEvent(arg__1); -} -bool PythonQtShell_QMessageBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::focusNextPrevChild(next); -} -void PythonQtShell_QMessageBox::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::focusOutEvent(arg__1); -} -int PythonQtShell_QMessageBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::heightForWidth(arg__1); -} -void PythonQtShell_QMessageBox::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::hideEvent(arg__1); -} -void PythonQtShell_QMessageBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QMessageBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QMessageBox::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QMessageBox::keyPressEvent(event); -} -void PythonQtShell_QMessageBox::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::keyReleaseEvent(arg__1); -} -void PythonQtShell_QMessageBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::languageChange(); -} -void PythonQtShell_QMessageBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::leaveEvent(arg__1); -} -int PythonQtShell_QMessageBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::metric(arg__1); -} -void PythonQtShell_QMessageBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QMessageBox::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::mouseMoveEvent(arg__1); -} -void PythonQtShell_QMessageBox::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::mousePressEvent(arg__1); -} -void PythonQtShell_QMessageBox::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QMessageBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QMessageBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMessageBox::paintEngine(); -} -void PythonQtShell_QMessageBox::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::paintEvent(arg__1); -} -void PythonQtShell_QMessageBox::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::reject(); -} -void PythonQtShell_QMessageBox::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QMessageBox::resizeEvent(event); -} -void PythonQtShell_QMessageBox::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QMessageBox::showEvent(event); -} -void PythonQtShell_QMessageBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::tabletEvent(arg__1); -} -void PythonQtShell_QMessageBox::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::timerEvent(arg__1); -} -void PythonQtShell_QMessageBox::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMessageBox::wheelEvent(arg__1); -} -QMessageBox* PythonQtWrapper_QMessageBox::new_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QMessageBox(icon, title, text, buttons, parent, flags); } - -QMessageBox* PythonQtWrapper_QMessageBox::new_QMessageBox(QWidget* parent) -{ -return new PythonQtShell_QMessageBox(parent); } - -void PythonQtWrapper_QMessageBox::static_QMessageBox_about(QWidget* parent, const QString& title, const QString& text) -{ - (QMessageBox::about(parent, title, text)); -} - -void PythonQtWrapper_QMessageBox::static_QMessageBox_aboutQt(QWidget* parent, const QString& title) -{ - (QMessageBox::aboutQt(parent, title)); -} - -void PythonQtWrapper_QMessageBox::addButton(QMessageBox* theWrappedObject, QAbstractButton* button, QMessageBox::ButtonRole role) -{ - ( theWrappedObject->addButton(button, role)); -} - -QPushButton* PythonQtWrapper_QMessageBox::addButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button) -{ - return ( theWrappedObject->addButton(button)); -} - -QPushButton* PythonQtWrapper_QMessageBox::addButton(QMessageBox* theWrappedObject, const QString& text, QMessageBox::ButtonRole role) -{ - return ( theWrappedObject->addButton(text, role)); -} - -QAbstractButton* PythonQtWrapper_QMessageBox::button(QMessageBox* theWrappedObject, QMessageBox::StandardButton which) const -{ - return ( theWrappedObject->button(which)); -} - -QMessageBox::ButtonRole PythonQtWrapper_QMessageBox::buttonRole(QMessageBox* theWrappedObject, QAbstractButton* button) const -{ - return ( theWrappedObject->buttonRole(button)); -} - -QList PythonQtWrapper_QMessageBox::buttons(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -void PythonQtWrapper_QMessageBox::changeEvent(QMessageBox* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_changeEvent(event)); -} - -QAbstractButton* PythonQtWrapper_QMessageBox::clickedButton(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->clickedButton()); -} - -void PythonQtWrapper_QMessageBox::closeEvent(QMessageBox* theWrappedObject, QCloseEvent* event) -{ - ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_closeEvent(event)); -} - -QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) -{ - return (QMessageBox::critical(parent, title, text, buttons, defaultButton)); -} - -int PythonQtWrapper_QMessageBox::static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) -{ - return (QMessageBox::critical(parent, title, text, button0, button1)); -} - -QPushButton* PythonQtWrapper_QMessageBox::defaultButton(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->defaultButton()); -} - -QString PythonQtWrapper_QMessageBox::detailedText(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->detailedText()); -} - -QAbstractButton* PythonQtWrapper_QMessageBox::escapeButton(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->escapeButton()); -} - -bool PythonQtWrapper_QMessageBox::event(QMessageBox* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_event(e)); -} - -QMessageBox::Icon PythonQtWrapper_QMessageBox::icon(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -QPixmap PythonQtWrapper_QMessageBox::iconPixmap(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->iconPixmap()); -} - -QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) -{ - return (QMessageBox::information(parent, title, text, buttons, defaultButton)); -} - -QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) -{ - return (QMessageBox::information(parent, title, text, button0, button1)); -} - -QString PythonQtWrapper_QMessageBox::informativeText(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->informativeText()); -} - -void PythonQtWrapper_QMessageBox::keyPressEvent(QMessageBox* theWrappedObject, QKeyEvent* event) -{ - ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_keyPressEvent(event)); -} - -void PythonQtWrapper_QMessageBox::open(QMessageBox* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QMessageBox::open(QMessageBox* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) -{ - return (QMessageBox::question(parent, title, text, buttons, defaultButton)); -} - -int PythonQtWrapper_QMessageBox::static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) -{ - return (QMessageBox::question(parent, title, text, button0, button1)); -} - -void PythonQtWrapper_QMessageBox::removeButton(QMessageBox* theWrappedObject, QAbstractButton* button) -{ - ( theWrappedObject->removeButton(button)); -} - -void PythonQtWrapper_QMessageBox::resizeEvent(QMessageBox* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QMessageBox::setDefaultButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button) -{ - ( theWrappedObject->setDefaultButton(button)); -} - -void PythonQtWrapper_QMessageBox::setDefaultButton(QMessageBox* theWrappedObject, QPushButton* button) -{ - ( theWrappedObject->setDefaultButton(button)); -} - -void PythonQtWrapper_QMessageBox::setDetailedText(QMessageBox* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setDetailedText(text)); -} - -void PythonQtWrapper_QMessageBox::setEscapeButton(QMessageBox* theWrappedObject, QAbstractButton* button) -{ - ( theWrappedObject->setEscapeButton(button)); -} - -void PythonQtWrapper_QMessageBox::setEscapeButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button) -{ - ( theWrappedObject->setEscapeButton(button)); -} - -void PythonQtWrapper_QMessageBox::setIcon(QMessageBox* theWrappedObject, QMessageBox::Icon arg__1) -{ - ( theWrappedObject->setIcon(arg__1)); -} - -void PythonQtWrapper_QMessageBox::setIconPixmap(QMessageBox* theWrappedObject, const QPixmap& pixmap) -{ - ( theWrappedObject->setIconPixmap(pixmap)); -} - -void PythonQtWrapper_QMessageBox::setInformativeText(QMessageBox* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setInformativeText(text)); -} - -void PythonQtWrapper_QMessageBox::setStandardButtons(QMessageBox* theWrappedObject, QMessageBox::StandardButtons buttons) -{ - ( theWrappedObject->setStandardButtons(buttons)); -} - -void PythonQtWrapper_QMessageBox::setText(QMessageBox* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -void PythonQtWrapper_QMessageBox::setTextFormat(QMessageBox* theWrappedObject, Qt::TextFormat format) -{ - ( theWrappedObject->setTextFormat(format)); -} - -void PythonQtWrapper_QMessageBox::showEvent(QMessageBox* theWrappedObject, QShowEvent* event) -{ - ( ((PythonQtPublicPromoter_QMessageBox*)theWrappedObject)->promoted_showEvent(event)); -} - -QSize PythonQtWrapper_QMessageBox::sizeHint(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QMessageBox::StandardButton PythonQtWrapper_QMessageBox::standardButton(QMessageBox* theWrappedObject, QAbstractButton* button) const -{ - return ( theWrappedObject->standardButton(button)); -} - -QMessageBox::StandardButtons PythonQtWrapper_QMessageBox::standardButtons(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->standardButtons()); -} - -QString PythonQtWrapper_QMessageBox::text(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -Qt::TextFormat PythonQtWrapper_QMessageBox::textFormat(QMessageBox* theWrappedObject) const -{ - return ( theWrappedObject->textFormat()); -} - -QMessageBox::StandardButton PythonQtWrapper_QMessageBox::static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) -{ - return (QMessageBox::warning(parent, title, text, buttons, defaultButton)); -} - -int PythonQtWrapper_QMessageBox::static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1) -{ - return (QMessageBox::warning(parent, title, text, button0, button1)); -} - - - -void PythonQtShell_QMotifStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::childEvent(arg__1); -} -void PythonQtShell_QMotifStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::customEvent(arg__1); -} -void PythonQtShell_QMotifStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::drawComplexControl(cc, opt, p, w); -} -void PythonQtShell_QMotifStyle::drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::drawControl(element, opt, p, w); -} -void PythonQtShell_QMotifStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QMotifStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QMotifStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&pe, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::drawPrimitive(pe, opt, p, w); -} -bool PythonQtShell_QMotifStyle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::event(arg__1); -} -bool PythonQtShell_QMotifStyle::eventFilter(QObject* o, QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::eventFilter(o, e); -} -QPixmap PythonQtShell_QMotifStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::generatedIconPixmap(iconMode, pixmap, opt); -} -QStyle::SubControl PythonQtShell_QMotifStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::hitTestComplexControl(cc, opt, pt, w); -} -QRect PythonQtShell_QMotifStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::itemPixmapRect(r, flags, pixmap); -} -int PythonQtShell_QMotifStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::pixelMetric(metric, option, widget); -} -void PythonQtShell_QMotifStyle::polish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::polish(arg__1); -} -void PythonQtShell_QMotifStyle::polish(QPalette& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::polish(arg__1); -} -void PythonQtShell_QMotifStyle::polish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::polish(arg__1); -} -QSize PythonQtShell_QMotifStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&ct, (void*)&opt, (void*)&contentsSize, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::sizeFromContents(ct, opt, contentsSize, widget); -} -QPalette PythonQtShell_QMotifStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::standardPalette(); -} -QPixmap PythonQtShell_QMotifStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -int PythonQtShell_QMotifStyle::styleHint(QStyle::StyleHint hint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::styleHint(hint, opt, widget, returnData); -} -QRect PythonQtShell_QMotifStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::subControlRect(cc, opt, sc, widget); -} -QRect PythonQtShell_QMotifStyle::subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMotifStyle::subElementRect(r, opt, widget); -} -void PythonQtShell_QMotifStyle::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::timerEvent(event); -} -void PythonQtShell_QMotifStyle::unpolish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::unpolish(arg__1); -} -void PythonQtShell_QMotifStyle::unpolish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMotifStyle::unpolish(arg__1); -} -QMotifStyle* PythonQtWrapper_QMotifStyle::new_QMotifStyle(bool useHighlightCols) -{ -return new PythonQtShell_QMotifStyle(useHighlightCols); } - -void PythonQtWrapper_QMotifStyle::drawComplexControl(QMotifStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_drawComplexControl(cc, opt, p, w)); -} - -void PythonQtWrapper_QMotifStyle::drawControl(QMotifStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_drawControl(element, opt, p, w)); -} - -void PythonQtWrapper_QMotifStyle::drawPrimitive(QMotifStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_drawPrimitive(pe, opt, p, w)); -} - -bool PythonQtWrapper_QMotifStyle::event(QMotifStyle* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QMotifStyle::eventFilter(QMotifStyle* theWrappedObject, QObject* o, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_eventFilter(o, e)); -} - -int PythonQtWrapper_QMotifStyle::pixelMetric(QMotifStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_pixelMetric(metric, option, widget)); -} - -void PythonQtWrapper_QMotifStyle::polish(QMotifStyle* theWrappedObject, QApplication* arg__1) -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QMotifStyle::polish(QMotifStyle* theWrappedObject, QPalette& arg__1) -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QMotifStyle::polish(QMotifStyle* theWrappedObject, QWidget* arg__1) -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QMotifStyle::setUseHighlightColors(QMotifStyle* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setUseHighlightColors(arg__1)); -} - -QSize PythonQtWrapper_QMotifStyle::sizeFromContents(QMotifStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_sizeFromContents(ct, opt, contentsSize, widget)); -} - -QPalette PythonQtWrapper_QMotifStyle::standardPalette(QMotifStyle* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_standardPalette()); -} - -int PythonQtWrapper_QMotifStyle::styleHint(QMotifStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_styleHint(hint, opt, widget, returnData)); -} - -QRect PythonQtWrapper_QMotifStyle::subControlRect(QMotifStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_subControlRect(cc, opt, sc, widget)); -} - -QRect PythonQtWrapper_QMotifStyle::subElementRect(QMotifStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_subElementRect(r, opt, widget)); -} - -void PythonQtWrapper_QMotifStyle::timerEvent(QMotifStyle* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_timerEvent(event)); -} - -void PythonQtWrapper_QMotifStyle::unpolish(QMotifStyle* theWrappedObject, QApplication* arg__1) -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_unpolish(arg__1)); -} - -void PythonQtWrapper_QMotifStyle::unpolish(QMotifStyle* theWrappedObject, QWidget* arg__1) -{ - ( ((PythonQtPublicPromoter_QMotifStyle*)theWrappedObject)->promoted_unpolish(arg__1)); -} - -bool PythonQtWrapper_QMotifStyle::useHighlightColors(QMotifStyle* theWrappedObject) const -{ - return ( theWrappedObject->useHighlightColors()); -} - - - -QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPoint& pos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) -{ -return new PythonQtShell_QMouseEvent(type, pos, button, buttons, modifiers); } - -QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) -{ -return new PythonQtShell_QMouseEvent(type, pos, globalPos, button, buttons, modifiers); } - -Qt::MouseButton PythonQtWrapper_QMouseEvent::button(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->button()); -} - -Qt::MouseButtons PythonQtWrapper_QMouseEvent::buttons(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->buttons()); -} - -QMouseEvent* PythonQtWrapper_QMouseEvent::static_QMouseEvent_createExtendedMouseEvent(QEvent::Type type, const QPointF& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) -{ - return (QMouseEvent::createExtendedMouseEvent(type, pos, globalPos, button, buttons, modifiers)); -} - -const QPoint* PythonQtWrapper_QMouseEvent::globalPos(QMouseEvent* theWrappedObject) const -{ - return &( theWrappedObject->globalPos()); -} - -int PythonQtWrapper_QMouseEvent::globalX(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalX()); -} - -int PythonQtWrapper_QMouseEvent::globalY(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalY()); -} - -bool PythonQtWrapper_QMouseEvent::hasExtendedInfo(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->hasExtendedInfo()); -} - -const QPoint* PythonQtWrapper_QMouseEvent::pos(QMouseEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - -QPointF PythonQtWrapper_QMouseEvent::posF(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->posF()); -} - -int PythonQtWrapper_QMouseEvent::x(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QMouseEvent::y(QMouseEvent* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - - - -void PythonQtShell_QMouseEventTransition::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMouseEventTransition::childEvent(arg__1); -} -void PythonQtShell_QMouseEventTransition::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMouseEventTransition::customEvent(arg__1); -} -bool PythonQtShell_QMouseEventTransition::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMouseEventTransition::event(e); -} -bool PythonQtShell_QMouseEventTransition::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMouseEventTransition::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QMouseEventTransition::eventTest(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventTest"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventTest", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMouseEventTransition::eventTest(event); -} -void PythonQtShell_QMouseEventTransition::onTransition(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "onTransition"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMouseEventTransition::onTransition(event); -} -void PythonQtShell_QMouseEventTransition::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMouseEventTransition::timerEvent(arg__1); -} -QMouseEventTransition* PythonQtWrapper_QMouseEventTransition::new_QMouseEventTransition(QObject* object, QEvent::Type type, Qt::MouseButton button, QState* sourceState) -{ -return new PythonQtShell_QMouseEventTransition(object, type, button, sourceState); } - -QMouseEventTransition* PythonQtWrapper_QMouseEventTransition::new_QMouseEventTransition(QState* sourceState) -{ -return new PythonQtShell_QMouseEventTransition(sourceState); } - -Qt::MouseButton PythonQtWrapper_QMouseEventTransition::button(QMouseEventTransition* theWrappedObject) const -{ - return ( theWrappedObject->button()); -} - -bool PythonQtWrapper_QMouseEventTransition::eventTest(QMouseEventTransition* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QMouseEventTransition*)theWrappedObject)->promoted_eventTest(event)); -} - -QPainterPath PythonQtWrapper_QMouseEventTransition::hitTestPath(QMouseEventTransition* theWrappedObject) const -{ - return ( theWrappedObject->hitTestPath()); -} - -Qt::KeyboardModifiers PythonQtWrapper_QMouseEventTransition::modifierMask(QMouseEventTransition* theWrappedObject) const -{ - return ( theWrappedObject->modifierMask()); -} - -void PythonQtWrapper_QMouseEventTransition::onTransition(QMouseEventTransition* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QMouseEventTransition*)theWrappedObject)->promoted_onTransition(event)); -} - -void PythonQtWrapper_QMouseEventTransition::setButton(QMouseEventTransition* theWrappedObject, Qt::MouseButton button) -{ - ( theWrappedObject->setButton(button)); -} - -void PythonQtWrapper_QMouseEventTransition::setHitTestPath(QMouseEventTransition* theWrappedObject, const QPainterPath& path) -{ - ( theWrappedObject->setHitTestPath(path)); -} - -void PythonQtWrapper_QMouseEventTransition::setModifierMask(QMouseEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers) -{ - ( theWrappedObject->setModifierMask(modifiers)); -} - - - -QMoveEvent* PythonQtWrapper_QMoveEvent::new_QMoveEvent(const QPoint& pos, const QPoint& oldPos) -{ -return new PythonQtShell_QMoveEvent(pos, oldPos); } - -const QPoint* PythonQtWrapper_QMoveEvent::oldPos(QMoveEvent* theWrappedObject) const -{ - return &( theWrappedObject->oldPos()); -} - -const QPoint* PythonQtWrapper_QMoveEvent::pos(QMoveEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - - - -void PythonQtShell_QMovie::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMovie::childEvent(arg__1); -} -void PythonQtShell_QMovie::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMovie::customEvent(arg__1); -} -bool PythonQtShell_QMovie::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMovie::event(arg__1); -} -bool PythonQtShell_QMovie::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QMovie::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QMovie::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QMovie::timerEvent(arg__1); -} -QMovie* PythonQtWrapper_QMovie::new_QMovie(QIODevice* device, const QByteArray& format, QObject* parent) -{ -return new PythonQtShell_QMovie(device, format, parent); } - -QMovie* PythonQtWrapper_QMovie::new_QMovie(QObject* parent) -{ -return new PythonQtShell_QMovie(parent); } - -QMovie* PythonQtWrapper_QMovie::new_QMovie(const QString& fileName, const QByteArray& format, QObject* parent) -{ -return new PythonQtShell_QMovie(fileName, format, parent); } - -QColor PythonQtWrapper_QMovie::backgroundColor(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->backgroundColor()); -} - -QMovie::CacheMode PythonQtWrapper_QMovie::cacheMode(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->cacheMode()); -} - -int PythonQtWrapper_QMovie::currentFrameNumber(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->currentFrameNumber()); -} - -QImage PythonQtWrapper_QMovie::currentImage(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->currentImage()); -} - -QPixmap PythonQtWrapper_QMovie::currentPixmap(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->currentPixmap()); -} - -QIODevice* PythonQtWrapper_QMovie::device(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -QString PythonQtWrapper_QMovie::fileName(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QByteArray PythonQtWrapper_QMovie::format(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -int PythonQtWrapper_QMovie::frameCount(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->frameCount()); -} - -QRect PythonQtWrapper_QMovie::frameRect(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->frameRect()); -} - -bool PythonQtWrapper_QMovie::isValid(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -bool PythonQtWrapper_QMovie::jumpToFrame(QMovie* theWrappedObject, int frameNumber) -{ - return ( theWrappedObject->jumpToFrame(frameNumber)); -} - -int PythonQtWrapper_QMovie::loopCount(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->loopCount()); -} - -int PythonQtWrapper_QMovie::nextFrameDelay(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->nextFrameDelay()); -} - -QSize PythonQtWrapper_QMovie::scaledSize(QMovie* theWrappedObject) -{ - return ( theWrappedObject->scaledSize()); -} - -void PythonQtWrapper_QMovie::setBackgroundColor(QMovie* theWrappedObject, const QColor& color) -{ - ( theWrappedObject->setBackgroundColor(color)); -} - -void PythonQtWrapper_QMovie::setCacheMode(QMovie* theWrappedObject, QMovie::CacheMode mode) -{ - ( theWrappedObject->setCacheMode(mode)); -} - -void PythonQtWrapper_QMovie::setDevice(QMovie* theWrappedObject, QIODevice* device) -{ - ( theWrappedObject->setDevice(device)); -} - -void PythonQtWrapper_QMovie::setFileName(QMovie* theWrappedObject, const QString& fileName) -{ - ( theWrappedObject->setFileName(fileName)); -} - -void PythonQtWrapper_QMovie::setFormat(QMovie* theWrappedObject, const QByteArray& format) -{ - ( theWrappedObject->setFormat(format)); -} - -void PythonQtWrapper_QMovie::setScaledSize(QMovie* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setScaledSize(size)); -} - -int PythonQtWrapper_QMovie::speed(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->speed()); -} - -QMovie::MovieState PythonQtWrapper_QMovie::state(QMovie* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -QList PythonQtWrapper_QMovie::static_QMovie_supportedFormats() -{ - return (QMovie::supportedFormats()); -} - - - -void PythonQtShell_QPageSetupDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::accept(); -} -void PythonQtShell_QPageSetupDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::actionEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::changeEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::childEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::closeEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::customEvent(arg__1); -} -int PythonQtShell_QPageSetupDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::devType(); -} -void PythonQtShell_QPageSetupDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::done(result); -} -void PythonQtShell_QPageSetupDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::dropEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::enterEvent(arg__1); -} -bool PythonQtShell_QPageSetupDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::event(arg__1); -} -bool PythonQtShell_QPageSetupDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::eventFilter(arg__1, arg__2); -} -int PythonQtShell_QPageSetupDialog::exec() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::exec(); -} -void PythonQtShell_QPageSetupDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QPageSetupDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::focusNextPrevChild(next); -} -void PythonQtShell_QPageSetupDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QPageSetupDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::heightForWidth(arg__1); -} -void PythonQtShell_QPageSetupDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::hideEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QPageSetupDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QPageSetupDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::languageChange(); -} -void PythonQtShell_QPageSetupDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::leaveEvent(arg__1); -} -int PythonQtShell_QPageSetupDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::metric(arg__1); -} -void PythonQtShell_QPageSetupDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QPageSetupDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPageSetupDialog::paintEngine(); -} -void PythonQtShell_QPageSetupDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::paintEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::reject(); -} -void PythonQtShell_QPageSetupDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::resizeEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::showEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::tabletEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::timerEvent(arg__1); -} -void PythonQtShell_QPageSetupDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPageSetupDialog::wheelEvent(arg__1); -} -QPageSetupDialog* PythonQtWrapper_QPageSetupDialog::new_QPageSetupDialog(QPrinter* printer, QWidget* parent) -{ -return new PythonQtShell_QPageSetupDialog(printer, parent); } - -QPageSetupDialog* PythonQtWrapper_QPageSetupDialog::new_QPageSetupDialog(QWidget* parent) -{ -return new PythonQtShell_QPageSetupDialog(parent); } - -void PythonQtWrapper_QPageSetupDialog::addEnabledOption(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option) -{ - ( theWrappedObject->addEnabledOption(option)); -} - -QPageSetupDialog::PageSetupDialogOptions PythonQtWrapper_QPageSetupDialog::enabledOptions(QPageSetupDialog* theWrappedObject) const -{ - return ( theWrappedObject->enabledOptions()); -} - -int PythonQtWrapper_QPageSetupDialog::exec(QPageSetupDialog* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QPageSetupDialog*)theWrappedObject)->promoted_exec()); -} - -bool PythonQtWrapper_QPageSetupDialog::isOptionEnabled(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option) const -{ - return ( theWrappedObject->isOptionEnabled(option)); -} - -void PythonQtWrapper_QPageSetupDialog::open(QPageSetupDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QPageSetupDialog::open(QPageSetupDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QPageSetupDialog::PageSetupDialogOptions PythonQtWrapper_QPageSetupDialog::options(QPageSetupDialog* theWrappedObject) const -{ - return ( theWrappedObject->options()); -} - -void PythonQtWrapper_QPageSetupDialog::setEnabledOptions(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOptions options) -{ - ( theWrappedObject->setEnabledOptions(options)); -} - -void PythonQtWrapper_QPageSetupDialog::setOption(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QPageSetupDialog::setOptions(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOptions options) -{ - ( theWrappedObject->setOptions(options)); -} - -bool PythonQtWrapper_QPageSetupDialog::testOption(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option) const -{ - return ( theWrappedObject->testOption(option)); -} - - - -int PythonQtShell_QPaintDevice::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPaintDevice::devType(); -} -int PythonQtShell_QPaintDevice::metric(QPaintDevice::PaintDeviceMetric metric) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&metric}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPaintDevice::metric(metric); -} -QPaintEngine* PythonQtShell_QPaintDevice::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QPaintDevice* PythonQtWrapper_QPaintDevice::new_QPaintDevice() -{ -return new PythonQtShell_QPaintDevice(); } - -int PythonQtWrapper_QPaintDevice::colorCount(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->colorCount()); -} - -int PythonQtWrapper_QPaintDevice::depth(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->depth()); -} - -int PythonQtWrapper_QPaintDevice::devType(QPaintDevice* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPaintDevice*)theWrappedObject)->promoted_devType()); -} - -int PythonQtWrapper_QPaintDevice::height(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -int PythonQtWrapper_QPaintDevice::heightMM(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->heightMM()); -} - -int PythonQtWrapper_QPaintDevice::logicalDpiX(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->logicalDpiX()); -} - -int PythonQtWrapper_QPaintDevice::logicalDpiY(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->logicalDpiY()); -} - -int PythonQtWrapper_QPaintDevice::metric(QPaintDevice* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const -{ - return ( ((PythonQtPublicPromoter_QPaintDevice*)theWrappedObject)->promoted_metric(metric)); -} - -int PythonQtWrapper_QPaintDevice::numColors(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->numColors()); -} - -bool PythonQtWrapper_QPaintDevice::paintingActive(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->paintingActive()); -} - -int PythonQtWrapper_QPaintDevice::physicalDpiX(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->physicalDpiX()); -} - -int PythonQtWrapper_QPaintDevice::physicalDpiY(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->physicalDpiY()); -} - -int PythonQtWrapper_QPaintDevice::width(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -int PythonQtWrapper_QPaintDevice::widthMM(QPaintDevice* theWrappedObject) const -{ - return ( theWrappedObject->widthMM()); -} - - - -bool PythonQtShell_QPaintEngine::begin(QPaintDevice* pdev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "begin"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QPaintDevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pdev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("begin", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -QPoint PythonQtShell_QPaintEngine::coordinateOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "coordinateOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPoint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPoint returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("coordinateOffset", methodInfo, result); - } else { - returnValue = *((QPoint*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPaintEngine::coordinateOffset(); -} -void PythonQtShell_QPaintEngine::drawEllipse(const QRect& r) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawEllipse"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&r}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawEllipse(r); -} -void PythonQtShell_QPaintEngine::drawEllipse(const QRectF& r) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawEllipse"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&r}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawEllipse(r); -} -void PythonQtShell_QPaintEngine::drawImage(const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawImage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&" , "const QImage&" , "const QRectF&" , "Qt::ImageConversionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&r, (void*)&pm, (void*)&sr, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawImage(r, pm, sr, flags); -} -void PythonQtShell_QPaintEngine::drawLines(const QLine* lines, int lineCount) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawLines"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QLine*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&lines, (void*)&lineCount}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawLines(lines, lineCount); -} -void PythonQtShell_QPaintEngine::drawLines(const QLineF* lines, int lineCount) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawLines"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QLineF*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&lines, (void*)&lineCount}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawLines(lines, lineCount); -} -void PythonQtShell_QPaintEngine::drawPath(const QPainterPath& path) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPainterPath&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&path}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawPath(path); -} -void PythonQtShell_QPaintEngine::drawPixmap(const QRectF& r, const QPixmap& pm, const QRectF& sr) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&" , "const QPixmap&" , "const QRectF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&r, (void*)&pm, (void*)&sr}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QPaintEngine::drawPoints(const QPoint* points, int pointCount) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPoints"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPoint*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&points, (void*)&pointCount}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawPoints(points, pointCount); -} -void PythonQtShell_QPaintEngine::drawPoints(const QPointF* points, int pointCount) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPoints"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPointF*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&points, (void*)&pointCount}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawPoints(points, pointCount); -} -void PythonQtShell_QPaintEngine::drawPolygon(const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPolygon"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPoint*" , "int" , "QPaintEngine::PolygonDrawMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&points, (void*)&pointCount, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawPolygon(points, pointCount, mode); -} -void PythonQtShell_QPaintEngine::drawPolygon(const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPolygon"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPointF*" , "int" , "QPaintEngine::PolygonDrawMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&points, (void*)&pointCount, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawPolygon(points, pointCount, mode); -} -void PythonQtShell_QPaintEngine::drawRects(const QRect* rects, int rectCount) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRects"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rects, (void*)&rectCount}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawRects(rects, rectCount); -} -void PythonQtShell_QPaintEngine::drawRects(const QRectF* rects, int rectCount) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawRects"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rects, (void*)&rectCount}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawRects(rects, rectCount); -} -void PythonQtShell_QPaintEngine::drawTextItem(const QPointF& p, const QTextItem& textItem) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawTextItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPointF&" , "const QTextItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&p, (void*)&textItem}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawTextItem(p, textItem); -} -void PythonQtShell_QPaintEngine::drawTiledPixmap(const QRectF& r, const QPixmap& pixmap, const QPointF& s) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawTiledPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRectF&" , "const QPixmap&" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&r, (void*)&pixmap, (void*)&s}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPaintEngine::drawTiledPixmap(r, pixmap, s); -} -bool PythonQtShell_QPaintEngine::end() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "end"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("end", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -QPaintEngine::Type PythonQtShell_QPaintEngine::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine::Type"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine::Type returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((QPaintEngine::Type*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPaintEngine::Type(); -} -void PythonQtShell_QPaintEngine::updateState(const QPaintEngineState& state) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QPaintEngineState&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&state}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QPaintEngine* PythonQtWrapper_QPaintEngine::new_QPaintEngine(QPaintEngine::PaintEngineFeatures features) -{ -return new PythonQtShell_QPaintEngine(features); } - -void PythonQtWrapper_QPaintEngine::clearDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df) -{ - ( theWrappedObject->clearDirty(df)); -} - -QPoint PythonQtWrapper_QPaintEngine::coordinateOffset(QPaintEngine* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_coordinateOffset()); -} - -void PythonQtWrapper_QPaintEngine::drawEllipse(QPaintEngine* theWrappedObject, const QRect& r) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawEllipse(r)); -} - -void PythonQtWrapper_QPaintEngine::drawEllipse(QPaintEngine* theWrappedObject, const QRectF& r) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawEllipse(r)); -} - -void PythonQtWrapper_QPaintEngine::drawImage(QPaintEngine* theWrappedObject, const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawImage(r, pm, sr, flags)); -} - -void PythonQtWrapper_QPaintEngine::drawLines(QPaintEngine* theWrappedObject, const QLine* lines, int lineCount) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawLines(lines, lineCount)); -} - -void PythonQtWrapper_QPaintEngine::drawLines(QPaintEngine* theWrappedObject, const QLineF* lines, int lineCount) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawLines(lines, lineCount)); -} - -void PythonQtWrapper_QPaintEngine::drawPath(QPaintEngine* theWrappedObject, const QPainterPath& path) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPath(path)); -} - -void PythonQtWrapper_QPaintEngine::drawPoints(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPoints(points, pointCount)); -} - -void PythonQtWrapper_QPaintEngine::drawPoints(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPoints(points, pointCount)); -} - -void PythonQtWrapper_QPaintEngine::drawPolygon(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPolygon(points, pointCount, mode)); -} - -void PythonQtWrapper_QPaintEngine::drawPolygon(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawPolygon(points, pointCount, mode)); -} - -void PythonQtWrapper_QPaintEngine::drawRects(QPaintEngine* theWrappedObject, const QRect* rects, int rectCount) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawRects(rects, rectCount)); -} - -void PythonQtWrapper_QPaintEngine::drawRects(QPaintEngine* theWrappedObject, const QRectF* rects, int rectCount) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawRects(rects, rectCount)); -} - -void PythonQtWrapper_QPaintEngine::drawTextItem(QPaintEngine* theWrappedObject, const QPointF& p, const QTextItem& textItem) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawTextItem(p, textItem)); -} - -void PythonQtWrapper_QPaintEngine::drawTiledPixmap(QPaintEngine* theWrappedObject, const QRectF& r, const QPixmap& pixmap, const QPointF& s) -{ - ( ((PythonQtPublicPromoter_QPaintEngine*)theWrappedObject)->promoted_drawTiledPixmap(r, pixmap, s)); -} - -bool PythonQtWrapper_QPaintEngine::hasFeature(QPaintEngine* theWrappedObject, QPaintEngine::PaintEngineFeatures feature) const -{ - return ( theWrappedObject->hasFeature(feature)); -} - -bool PythonQtWrapper_QPaintEngine::isActive(QPaintEngine* theWrappedObject) const -{ - return ( theWrappedObject->isActive()); -} - -bool PythonQtWrapper_QPaintEngine::isExtended(QPaintEngine* theWrappedObject) const -{ - return ( theWrappedObject->isExtended()); -} - -QPaintDevice* PythonQtWrapper_QPaintEngine::paintDevice(QPaintEngine* theWrappedObject) const -{ - return ( theWrappedObject->paintDevice()); -} - -QPainter* PythonQtWrapper_QPaintEngine::painter(QPaintEngine* theWrappedObject) const -{ - return ( theWrappedObject->painter()); -} - -void PythonQtWrapper_QPaintEngine::setActive(QPaintEngine* theWrappedObject, bool newState) -{ - ( theWrappedObject->setActive(newState)); -} - -void PythonQtWrapper_QPaintEngine::setDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df) -{ - ( theWrappedObject->setDirty(df)); -} - -void PythonQtWrapper_QPaintEngine::setSystemClip(QPaintEngine* theWrappedObject, const QRegion& baseClip) -{ - ( theWrappedObject->setSystemClip(baseClip)); -} - -void PythonQtWrapper_QPaintEngine::setSystemRect(QPaintEngine* theWrappedObject, const QRect& rect) -{ - ( theWrappedObject->setSystemRect(rect)); -} - -void PythonQtWrapper_QPaintEngine::syncState(QPaintEngine* theWrappedObject) -{ - ( theWrappedObject->syncState()); -} - -QRegion PythonQtWrapper_QPaintEngine::systemClip(QPaintEngine* theWrappedObject) const -{ - return ( theWrappedObject->systemClip()); -} - -QRect PythonQtWrapper_QPaintEngine::systemRect(QPaintEngine* theWrappedObject) const -{ - return ( theWrappedObject->systemRect()); -} - -bool PythonQtWrapper_QPaintEngine::testDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df) -{ - return ( theWrappedObject->testDirty(df)); -} - - - -QPaintEngineState* PythonQtWrapper_QPaintEngineState::new_QPaintEngineState() -{ -return new PythonQtShell_QPaintEngineState(); } - -QBrush PythonQtWrapper_QPaintEngineState::backgroundBrush(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->backgroundBrush()); -} - -Qt::BGMode PythonQtWrapper_QPaintEngineState::backgroundMode(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->backgroundMode()); -} - -QBrush PythonQtWrapper_QPaintEngineState::brush(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->brush()); -} - -bool PythonQtWrapper_QPaintEngineState::brushNeedsResolving(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->brushNeedsResolving()); -} - -QPointF PythonQtWrapper_QPaintEngineState::brushOrigin(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->brushOrigin()); -} - -Qt::ClipOperation PythonQtWrapper_QPaintEngineState::clipOperation(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->clipOperation()); -} - -QPainterPath PythonQtWrapper_QPaintEngineState::clipPath(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->clipPath()); -} - -QRegion PythonQtWrapper_QPaintEngineState::clipRegion(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->clipRegion()); -} - -QPainter::CompositionMode PythonQtWrapper_QPaintEngineState::compositionMode(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->compositionMode()); -} - -QFont PythonQtWrapper_QPaintEngineState::font(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -bool PythonQtWrapper_QPaintEngineState::isClipEnabled(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->isClipEnabled()); -} - -QMatrix PythonQtWrapper_QPaintEngineState::matrix(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->matrix()); -} - -qreal PythonQtWrapper_QPaintEngineState::opacity(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->opacity()); -} - -QPainter* PythonQtWrapper_QPaintEngineState::painter(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->painter()); -} - -QPen PythonQtWrapper_QPaintEngineState::pen(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->pen()); -} - -bool PythonQtWrapper_QPaintEngineState::penNeedsResolving(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->penNeedsResolving()); -} - -QPainter::RenderHints PythonQtWrapper_QPaintEngineState::renderHints(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->renderHints()); -} - -QPaintEngine::DirtyFlags PythonQtWrapper_QPaintEngineState::state(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -QTransform PythonQtWrapper_QPaintEngineState::transform(QPaintEngineState* theWrappedObject) const -{ - return ( theWrappedObject->transform()); -} - - - -QPaintEvent* PythonQtWrapper_QPaintEvent::new_QPaintEvent(const QRect& paintRect) -{ -return new PythonQtShell_QPaintEvent(paintRect); } - -QPaintEvent* PythonQtWrapper_QPaintEvent::new_QPaintEvent(const QRegion& paintRegion) -{ -return new PythonQtShell_QPaintEvent(paintRegion); } - -const QRect* PythonQtWrapper_QPaintEvent::rect(QPaintEvent* theWrappedObject) const -{ - return &( theWrappedObject->rect()); -} - -const QRegion* PythonQtWrapper_QPaintEvent::region(QPaintEvent* theWrappedObject) const -{ - return &( theWrappedObject->region()); -} - - - -QPainter* PythonQtWrapper_QPainter::new_QPainter() -{ -return new QPainter(); } - -const QBrush* PythonQtWrapper_QPainter::background(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->background()); -} - -Qt::BGMode PythonQtWrapper_QPainter::backgroundMode(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->backgroundMode()); -} - -bool PythonQtWrapper_QPainter::begin(QPainter* theWrappedObject, QPaintDevice* arg__1) -{ - return ( theWrappedObject->begin(arg__1)); -} - -void PythonQtWrapper_QPainter::beginNativePainting(QPainter* theWrappedObject) -{ - ( theWrappedObject->beginNativePainting()); -} - -QRect PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, const QRect& rect, int flags, const QString& text) -{ - return ( theWrappedObject->boundingRect(rect, flags, text)); -} - -QRectF PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, const QRectF& rect, const QString& text, const QTextOption& o) -{ - return ( theWrappedObject->boundingRect(rect, text, o)); -} - -QRectF PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, const QRectF& rect, int flags, const QString& text) -{ - return ( theWrappedObject->boundingRect(rect, flags, text)); -} - -QRect PythonQtWrapper_QPainter::boundingRect(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text) -{ - return ( theWrappedObject->boundingRect(x, y, w, h, flags, text)); -} - -const QBrush* PythonQtWrapper_QPainter::brush(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->brush()); -} - -QPoint PythonQtWrapper_QPainter::brushOrigin(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->brushOrigin()); -} - -QPainterPath PythonQtWrapper_QPainter::clipPath(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->clipPath()); -} - -QRegion PythonQtWrapper_QPainter::clipRegion(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->clipRegion()); -} - -QMatrix PythonQtWrapper_QPainter::combinedMatrix(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->combinedMatrix()); -} - -QTransform PythonQtWrapper_QPainter::combinedTransform(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->combinedTransform()); -} - -QPainter::CompositionMode PythonQtWrapper_QPainter::compositionMode(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->compositionMode()); -} - -QPaintDevice* PythonQtWrapper_QPainter::device(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -const QMatrix* PythonQtWrapper_QPainter::deviceMatrix(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->deviceMatrix()); -} - -const QTransform* PythonQtWrapper_QPainter::deviceTransform(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->deviceTransform()); -} - -void PythonQtWrapper_QPainter::drawArc(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen) -{ - ( theWrappedObject->drawArc(arg__1, a, alen)); -} - -void PythonQtWrapper_QPainter::drawArc(QPainter* theWrappedObject, const QRectF& rect, int a, int alen) -{ - ( theWrappedObject->drawArc(rect, a, alen)); -} - -void PythonQtWrapper_QPainter::drawArc(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen) -{ - ( theWrappedObject->drawArc(x, y, w, h, a, alen)); -} - -void PythonQtWrapper_QPainter::drawChord(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen) -{ - ( theWrappedObject->drawChord(arg__1, a, alen)); -} - -void PythonQtWrapper_QPainter::drawChord(QPainter* theWrappedObject, const QRectF& rect, int a, int alen) -{ - ( theWrappedObject->drawChord(rect, a, alen)); -} - -void PythonQtWrapper_QPainter::drawChord(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen) -{ - ( theWrappedObject->drawChord(x, y, w, h, a, alen)); -} - -void PythonQtWrapper_QPainter::drawConvexPolygon(QPainter* theWrappedObject, const QPolygon& polygon) -{ - ( theWrappedObject->drawConvexPolygon(polygon)); -} - -void PythonQtWrapper_QPainter::drawConvexPolygon(QPainter* theWrappedObject, const QPolygonF& polygon) -{ - ( theWrappedObject->drawConvexPolygon(polygon)); -} - -void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QPoint& center, int rx, int ry) -{ - ( theWrappedObject->drawEllipse(center, rx, ry)); -} - -void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QPointF& center, qreal rx, qreal ry) -{ - ( theWrappedObject->drawEllipse(center, rx, ry)); -} - -void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QRect& r) -{ - ( theWrappedObject->drawEllipse(r)); -} - -void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, const QRectF& r) -{ - ( theWrappedObject->drawEllipse(r)); -} - -void PythonQtWrapper_QPainter::drawEllipse(QPainter* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->drawEllipse(x, y, w, h)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image) -{ - ( theWrappedObject->drawImage(p, image)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image, const QRect& sr, Qt::ImageConversionFlags flags) -{ - ( theWrappedObject->drawImage(p, image, sr, flags)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image) -{ - ( theWrappedObject->drawImage(p, image)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image, const QRectF& sr, Qt::ImageConversionFlags flags) -{ - ( theWrappedObject->drawImage(p, image, sr, flags)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRect& r, const QImage& image) -{ - ( theWrappedObject->drawImage(r, image)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRect& targetRect, const QImage& image, const QRect& sourceRect, Qt::ImageConversionFlags flags) -{ - ( theWrappedObject->drawImage(targetRect, image, sourceRect, flags)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRectF& r, const QImage& image) -{ - ( theWrappedObject->drawImage(r, image)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, const QRectF& targetRect, const QImage& image, const QRectF& sourceRect, Qt::ImageConversionFlags flags) -{ - ( theWrappedObject->drawImage(targetRect, image, sourceRect, flags)); -} - -void PythonQtWrapper_QPainter::drawImage(QPainter* theWrappedObject, int x, int y, const QImage& image, int sx, int sy, int sw, int sh, Qt::ImageConversionFlags flags) -{ - ( theWrappedObject->drawImage(x, y, image, sx, sy, sw, sh, flags)); -} - -void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QLine& line) -{ - ( theWrappedObject->drawLine(line)); -} - -void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QLineF& line) -{ - ( theWrappedObject->drawLine(line)); -} - -void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QPoint& p1, const QPoint& p2) -{ - ( theWrappedObject->drawLine(p1, p2)); -} - -void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, const QPointF& p1, const QPointF& p2) -{ - ( theWrappedObject->drawLine(p1, p2)); -} - -void PythonQtWrapper_QPainter::drawLine(QPainter* theWrappedObject, int x1, int y1, int x2, int y2) -{ - ( theWrappedObject->drawLine(x1, y1, x2, y2)); -} - -void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& lines) -{ - ( theWrappedObject->drawLines(lines)); -} - -void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& lines) -{ - ( theWrappedObject->drawLines(lines)); -} - -void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& pointPairs) -{ - ( theWrappedObject->drawLines(pointPairs)); -} - -void PythonQtWrapper_QPainter::drawLines(QPainter* theWrappedObject, const QVector& pointPairs) -{ - ( theWrappedObject->drawLines(pointPairs)); -} - -void PythonQtWrapper_QPainter::drawPath(QPainter* theWrappedObject, const QPainterPath& path) -{ - ( theWrappedObject->drawPath(path)); -} - -void PythonQtWrapper_QPainter::drawPicture(QPainter* theWrappedObject, const QPoint& p, const QPicture& picture) -{ - ( theWrappedObject->drawPicture(p, picture)); -} - -void PythonQtWrapper_QPainter::drawPicture(QPainter* theWrappedObject, const QPointF& p, const QPicture& picture) -{ - ( theWrappedObject->drawPicture(p, picture)); -} - -void PythonQtWrapper_QPainter::drawPicture(QPainter* theWrappedObject, int x, int y, const QPicture& picture) -{ - ( theWrappedObject->drawPicture(x, y, picture)); -} - -void PythonQtWrapper_QPainter::drawPie(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen) -{ - ( theWrappedObject->drawPie(arg__1, a, alen)); -} - -void PythonQtWrapper_QPainter::drawPie(QPainter* theWrappedObject, const QRectF& rect, int a, int alen) -{ - ( theWrappedObject->drawPie(rect, a, alen)); -} - -void PythonQtWrapper_QPainter::drawPie(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen) -{ - ( theWrappedObject->drawPie(x, y, w, h, a, alen)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm) -{ - ( theWrappedObject->drawPixmap(p, pm)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm, const QRect& sr) -{ - ( theWrappedObject->drawPixmap(p, pm, sr)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm) -{ - ( theWrappedObject->drawPixmap(p, pm)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm, const QRectF& sr) -{ - ( theWrappedObject->drawPixmap(p, pm, sr)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QRect& r, const QPixmap& pm) -{ - ( theWrappedObject->drawPixmap(r, pm)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QRect& targetRect, const QPixmap& pixmap, const QRect& sourceRect) -{ - ( theWrappedObject->drawPixmap(targetRect, pixmap, sourceRect)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, const QRectF& targetRect, const QPixmap& pixmap, const QRectF& sourceRect) -{ - ( theWrappedObject->drawPixmap(targetRect, pixmap, sourceRect)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm) -{ - ( theWrappedObject->drawPixmap(x, y, pm)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm, int sx, int sy, int sw, int sh) -{ - ( theWrappedObject->drawPixmap(x, y, pm, sx, sy, sw, sh)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm) -{ - ( theWrappedObject->drawPixmap(x, y, w, h, pm)); -} - -void PythonQtWrapper_QPainter::drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm, int sx, int sy, int sw, int sh) -{ - ( theWrappedObject->drawPixmap(x, y, w, h, pm, sx, sy, sw, sh)); -} - -void PythonQtWrapper_QPainter::drawPoint(QPainter* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->drawPoint(p)); -} - -void PythonQtWrapper_QPainter::drawPoint(QPainter* theWrappedObject, const QPointF& pt) -{ - ( theWrappedObject->drawPoint(pt)); -} - -void PythonQtWrapper_QPainter::drawPoint(QPainter* theWrappedObject, int x, int y) -{ - ( theWrappedObject->drawPoint(x, y)); -} - -void PythonQtWrapper_QPainter::drawPoints(QPainter* theWrappedObject, const QPolygon& points) -{ - ( theWrappedObject->drawPoints(points)); -} - -void PythonQtWrapper_QPainter::drawPoints(QPainter* theWrappedObject, const QPolygonF& points) -{ - ( theWrappedObject->drawPoints(points)); -} - -void PythonQtWrapper_QPainter::drawPolygon(QPainter* theWrappedObject, const QPolygon& polygon, Qt::FillRule fillRule) -{ - ( theWrappedObject->drawPolygon(polygon, fillRule)); -} - -void PythonQtWrapper_QPainter::drawPolygon(QPainter* theWrappedObject, const QPolygonF& polygon, Qt::FillRule fillRule) -{ - ( theWrappedObject->drawPolygon(polygon, fillRule)); -} - -void PythonQtWrapper_QPainter::drawPolyline(QPainter* theWrappedObject, const QPolygon& polygon) -{ - ( theWrappedObject->drawPolyline(polygon)); -} - -void PythonQtWrapper_QPainter::drawPolyline(QPainter* theWrappedObject, const QPolygonF& polyline) -{ - ( theWrappedObject->drawPolyline(polyline)); -} - -void PythonQtWrapper_QPainter::drawRect(QPainter* theWrappedObject, const QRect& rect) -{ - ( theWrappedObject->drawRect(rect)); -} - -void PythonQtWrapper_QPainter::drawRect(QPainter* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->drawRect(rect)); -} - -void PythonQtWrapper_QPainter::drawRect(QPainter* theWrappedObject, int x1, int y1, int w, int h) -{ - ( theWrappedObject->drawRect(x1, y1, w, h)); -} - -void PythonQtWrapper_QPainter::drawRects(QPainter* theWrappedObject, const QVector& rectangles) -{ - ( theWrappedObject->drawRects(rectangles)); -} - -void PythonQtWrapper_QPainter::drawRects(QPainter* theWrappedObject, const QVector& rectangles) -{ - ( theWrappedObject->drawRects(rectangles)); -} - -void PythonQtWrapper_QPainter::drawRoundRect(QPainter* theWrappedObject, const QRect& r, int xround, int yround) -{ - ( theWrappedObject->drawRoundRect(r, xround, yround)); -} - -void PythonQtWrapper_QPainter::drawRoundRect(QPainter* theWrappedObject, const QRectF& r, int xround, int yround) -{ - ( theWrappedObject->drawRoundRect(r, xround, yround)); -} - -void PythonQtWrapper_QPainter::drawRoundRect(QPainter* theWrappedObject, int x, int y, int w, int h, int arg__5, int arg__6) -{ - ( theWrappedObject->drawRoundRect(x, y, w, h, arg__5, arg__6)); -} - -void PythonQtWrapper_QPainter::drawRoundedRect(QPainter* theWrappedObject, const QRect& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode) -{ - ( theWrappedObject->drawRoundedRect(rect, xRadius, yRadius, mode)); -} - -void PythonQtWrapper_QPainter::drawRoundedRect(QPainter* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode) -{ - ( theWrappedObject->drawRoundedRect(rect, xRadius, yRadius, mode)); -} - -void PythonQtWrapper_QPainter::drawRoundedRect(QPainter* theWrappedObject, int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode) -{ - ( theWrappedObject->drawRoundedRect(x, y, w, h, xRadius, yRadius, mode)); -} - -void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QPoint& p, const QString& s) -{ - ( theWrappedObject->drawText(p, s)); -} - -void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QPointF& p, const QString& s) -{ - ( theWrappedObject->drawText(p, s)); -} - -void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QRect& r, int flags, const QString& text, QRect* br) -{ - ( theWrappedObject->drawText(r, flags, text, br)); -} - -void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QRectF& r, const QString& text, const QTextOption& o) -{ - ( theWrappedObject->drawText(r, text, o)); -} - -void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, const QRectF& r, int flags, const QString& text, QRectF* br) -{ - ( theWrappedObject->drawText(r, flags, text, br)); -} - -void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, int x, int y, const QString& s) -{ - ( theWrappedObject->drawText(x, y, s)); -} - -void PythonQtWrapper_QPainter::drawText(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, QRect* br) -{ - ( theWrappedObject->drawText(x, y, w, h, flags, text, br)); -} - -void PythonQtWrapper_QPainter::drawTextItem(QPainter* theWrappedObject, const QPoint& p, const QTextItem& ti) -{ - ( theWrappedObject->drawTextItem(p, ti)); -} - -void PythonQtWrapper_QPainter::drawTextItem(QPainter* theWrappedObject, const QPointF& p, const QTextItem& ti) -{ - ( theWrappedObject->drawTextItem(p, ti)); -} - -void PythonQtWrapper_QPainter::drawTextItem(QPainter* theWrappedObject, int x, int y, const QTextItem& ti) -{ - ( theWrappedObject->drawTextItem(x, y, ti)); -} - -void PythonQtWrapper_QPainter::drawTiledPixmap(QPainter* theWrappedObject, const QRect& arg__1, const QPixmap& arg__2, const QPoint& arg__3) -{ - ( theWrappedObject->drawTiledPixmap(arg__1, arg__2, arg__3)); -} - -void PythonQtWrapper_QPainter::drawTiledPixmap(QPainter* theWrappedObject, const QRectF& rect, const QPixmap& pm, const QPointF& offset) -{ - ( theWrappedObject->drawTiledPixmap(rect, pm, offset)); -} - -void PythonQtWrapper_QPainter::drawTiledPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& arg__5, int sx, int sy) -{ - ( theWrappedObject->drawTiledPixmap(x, y, w, h, arg__5, sx, sy)); -} - -bool PythonQtWrapper_QPainter::end(QPainter* theWrappedObject) -{ - return ( theWrappedObject->end()); -} - -void PythonQtWrapper_QPainter::endNativePainting(QPainter* theWrappedObject) -{ - ( theWrappedObject->endNativePainting()); -} - -void PythonQtWrapper_QPainter::eraseRect(QPainter* theWrappedObject, const QRect& arg__1) -{ - ( theWrappedObject->eraseRect(arg__1)); -} - -void PythonQtWrapper_QPainter::eraseRect(QPainter* theWrappedObject, const QRectF& arg__1) -{ - ( theWrappedObject->eraseRect(arg__1)); -} - -void PythonQtWrapper_QPainter::eraseRect(QPainter* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->eraseRect(x, y, w, h)); -} - -void PythonQtWrapper_QPainter::fillPath(QPainter* theWrappedObject, const QPainterPath& path, const QBrush& brush) -{ - ( theWrappedObject->fillPath(path, brush)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QBrush& arg__2) -{ - ( theWrappedObject->fillRect(arg__1, arg__2)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QColor& color) -{ - ( theWrappedObject->fillRect(arg__1, color)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& r, Qt::BrushStyle style) -{ - ( theWrappedObject->fillRect(r, style)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRect& r, Qt::GlobalColor c) -{ - ( theWrappedObject->fillRect(r, c)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QBrush& arg__2) -{ - ( theWrappedObject->fillRect(arg__1, arg__2)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QColor& color) -{ - ( theWrappedObject->fillRect(arg__1, color)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::BrushStyle style) -{ - ( theWrappedObject->fillRect(r, style)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::GlobalColor c) -{ - ( theWrappedObject->fillRect(r, c)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::BrushStyle style) -{ - ( theWrappedObject->fillRect(x, y, w, h, style)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::GlobalColor c) -{ - ( theWrappedObject->fillRect(x, y, w, h, c)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QBrush& arg__5) -{ - ( theWrappedObject->fillRect(x, y, w, h, arg__5)); -} - -void PythonQtWrapper_QPainter::fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QColor& color) -{ - ( theWrappedObject->fillRect(x, y, w, h, color)); -} - -const QFont* PythonQtWrapper_QPainter::font(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->font()); -} - -bool PythonQtWrapper_QPainter::hasClipping(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->hasClipping()); -} - -void PythonQtWrapper_QPainter::initFrom(QPainter* theWrappedObject, const QWidget* widget) -{ - ( theWrappedObject->initFrom(widget)); -} - -bool PythonQtWrapper_QPainter::isActive(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->isActive()); -} - -Qt::LayoutDirection PythonQtWrapper_QPainter::layoutDirection(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->layoutDirection()); -} - -qreal PythonQtWrapper_QPainter::opacity(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->opacity()); -} - -QPaintEngine* PythonQtWrapper_QPainter::paintEngine(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->paintEngine()); -} - -const QPen* PythonQtWrapper_QPainter::pen(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->pen()); -} - -QPaintDevice* PythonQtWrapper_QPainter::static_QPainter_redirected(const QPaintDevice* device, QPoint* offset) -{ - return (QPainter::redirected(device, offset)); -} - -QPainter::RenderHints PythonQtWrapper_QPainter::renderHints(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->renderHints()); -} - -void PythonQtWrapper_QPainter::resetMatrix(QPainter* theWrappedObject) -{ - ( theWrappedObject->resetMatrix()); -} - -void PythonQtWrapper_QPainter::resetTransform(QPainter* theWrappedObject) -{ - ( theWrappedObject->resetTransform()); -} - -void PythonQtWrapper_QPainter::restore(QPainter* theWrappedObject) -{ - ( theWrappedObject->restore()); -} - -void PythonQtWrapper_QPainter::static_QPainter_restoreRedirected(const QPaintDevice* device) -{ - (QPainter::restoreRedirected(device)); -} - -void PythonQtWrapper_QPainter::rotate(QPainter* theWrappedObject, qreal a) -{ - ( theWrappedObject->rotate(a)); -} - -void PythonQtWrapper_QPainter::save(QPainter* theWrappedObject) -{ - ( theWrappedObject->save()); -} - -void PythonQtWrapper_QPainter::scale(QPainter* theWrappedObject, qreal sx, qreal sy) -{ - ( theWrappedObject->scale(sx, sy)); -} - -void PythonQtWrapper_QPainter::setBackground(QPainter* theWrappedObject, const QBrush& bg) -{ - ( theWrappedObject->setBackground(bg)); -} - -void PythonQtWrapper_QPainter::setBackgroundMode(QPainter* theWrappedObject, Qt::BGMode mode) -{ - ( theWrappedObject->setBackgroundMode(mode)); -} - -void PythonQtWrapper_QPainter::setBrush(QPainter* theWrappedObject, Qt::BrushStyle style) -{ - ( theWrappedObject->setBrush(style)); -} - -void PythonQtWrapper_QPainter::setBrush(QPainter* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBrush(brush)); -} - -void PythonQtWrapper_QPainter::setBrushOrigin(QPainter* theWrappedObject, const QPoint& arg__1) -{ - ( theWrappedObject->setBrushOrigin(arg__1)); -} - -void PythonQtWrapper_QPainter::setBrushOrigin(QPainter* theWrappedObject, const QPointF& arg__1) -{ - ( theWrappedObject->setBrushOrigin(arg__1)); -} - -void PythonQtWrapper_QPainter::setBrushOrigin(QPainter* theWrappedObject, int x, int y) -{ - ( theWrappedObject->setBrushOrigin(x, y)); -} - -void PythonQtWrapper_QPainter::setClipPath(QPainter* theWrappedObject, const QPainterPath& path, Qt::ClipOperation op) -{ - ( theWrappedObject->setClipPath(path, op)); -} - -void PythonQtWrapper_QPainter::setClipRect(QPainter* theWrappedObject, const QRect& arg__1, Qt::ClipOperation op) -{ - ( theWrappedObject->setClipRect(arg__1, op)); -} - -void PythonQtWrapper_QPainter::setClipRect(QPainter* theWrappedObject, const QRectF& arg__1, Qt::ClipOperation op) -{ - ( theWrappedObject->setClipRect(arg__1, op)); -} - -void PythonQtWrapper_QPainter::setClipRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::ClipOperation op) -{ - ( theWrappedObject->setClipRect(x, y, w, h, op)); -} - -void PythonQtWrapper_QPainter::setClipRegion(QPainter* theWrappedObject, const QRegion& arg__1, Qt::ClipOperation op) -{ - ( theWrappedObject->setClipRegion(arg__1, op)); -} - -void PythonQtWrapper_QPainter::setClipping(QPainter* theWrappedObject, bool enable) -{ - ( theWrappedObject->setClipping(enable)); -} - -void PythonQtWrapper_QPainter::setCompositionMode(QPainter* theWrappedObject, QPainter::CompositionMode mode) -{ - ( theWrappedObject->setCompositionMode(mode)); -} - -void PythonQtWrapper_QPainter::setFont(QPainter* theWrappedObject, const QFont& f) -{ - ( theWrappedObject->setFont(f)); -} - -void PythonQtWrapper_QPainter::setLayoutDirection(QPainter* theWrappedObject, Qt::LayoutDirection direction) -{ - ( theWrappedObject->setLayoutDirection(direction)); -} - -void PythonQtWrapper_QPainter::setOpacity(QPainter* theWrappedObject, qreal opacity) -{ - ( theWrappedObject->setOpacity(opacity)); -} - -void PythonQtWrapper_QPainter::setPen(QPainter* theWrappedObject, Qt::PenStyle style) -{ - ( theWrappedObject->setPen(style)); -} - -void PythonQtWrapper_QPainter::setPen(QPainter* theWrappedObject, const QColor& color) -{ - ( theWrappedObject->setPen(color)); -} - -void PythonQtWrapper_QPainter::setPen(QPainter* theWrappedObject, const QPen& pen) -{ - ( theWrappedObject->setPen(pen)); -} - -void PythonQtWrapper_QPainter::static_QPainter_setRedirected(const QPaintDevice* device, QPaintDevice* replacement, const QPoint& offset) -{ - (QPainter::setRedirected(device, replacement, offset)); -} - -void PythonQtWrapper_QPainter::setRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint, bool on) -{ - ( theWrappedObject->setRenderHint(hint, on)); -} - -void PythonQtWrapper_QPainter::setRenderHints(QPainter* theWrappedObject, QPainter::RenderHints hints, bool on) -{ - ( theWrappedObject->setRenderHints(hints, on)); -} - -void PythonQtWrapper_QPainter::setTransform(QPainter* theWrappedObject, const QTransform& transform, bool combine) -{ - ( theWrappedObject->setTransform(transform, combine)); -} - -void PythonQtWrapper_QPainter::setViewTransformEnabled(QPainter* theWrappedObject, bool enable) -{ - ( theWrappedObject->setViewTransformEnabled(enable)); -} - -void PythonQtWrapper_QPainter::setViewport(QPainter* theWrappedObject, const QRect& viewport) -{ - ( theWrappedObject->setViewport(viewport)); -} - -void PythonQtWrapper_QPainter::setViewport(QPainter* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->setViewport(x, y, w, h)); -} - -void PythonQtWrapper_QPainter::setWindow(QPainter* theWrappedObject, const QRect& window) -{ - ( theWrappedObject->setWindow(window)); -} - -void PythonQtWrapper_QPainter::setWindow(QPainter* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->setWindow(x, y, w, h)); -} - -void PythonQtWrapper_QPainter::setWorldMatrix(QPainter* theWrappedObject, const QMatrix& matrix, bool combine) -{ - ( theWrappedObject->setWorldMatrix(matrix, combine)); -} - -void PythonQtWrapper_QPainter::setWorldMatrixEnabled(QPainter* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setWorldMatrixEnabled(enabled)); -} - -void PythonQtWrapper_QPainter::setWorldTransform(QPainter* theWrappedObject, const QTransform& matrix, bool combine) -{ - ( theWrappedObject->setWorldTransform(matrix, combine)); -} - -void PythonQtWrapper_QPainter::shear(QPainter* theWrappedObject, qreal sh, qreal sv) -{ - ( theWrappedObject->shear(sh, sv)); -} - -void PythonQtWrapper_QPainter::strokePath(QPainter* theWrappedObject, const QPainterPath& path, const QPen& pen) -{ - ( theWrappedObject->strokePath(path, pen)); -} - -bool PythonQtWrapper_QPainter::testRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint) const -{ - return ( theWrappedObject->testRenderHint(hint)); -} - -const QTransform* PythonQtWrapper_QPainter::transform(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->transform()); -} - -void PythonQtWrapper_QPainter::translate(QPainter* theWrappedObject, const QPoint& offset) -{ - ( theWrappedObject->translate(offset)); -} - -void PythonQtWrapper_QPainter::translate(QPainter* theWrappedObject, const QPointF& offset) -{ - ( theWrappedObject->translate(offset)); -} - -void PythonQtWrapper_QPainter::translate(QPainter* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -bool PythonQtWrapper_QPainter::viewTransformEnabled(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->viewTransformEnabled()); -} - -QRect PythonQtWrapper_QPainter::viewport(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->viewport()); -} - -QRect PythonQtWrapper_QPainter::window(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->window()); -} - -const QMatrix* PythonQtWrapper_QPainter::worldMatrix(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->worldMatrix()); -} - -bool PythonQtWrapper_QPainter::worldMatrixEnabled(QPainter* theWrappedObject) const -{ - return ( theWrappedObject->worldMatrixEnabled()); -} - -const QTransform* PythonQtWrapper_QPainter::worldTransform(QPainter* theWrappedObject) const -{ - return &( theWrappedObject->worldTransform()); -} - - - -QPainterPath* PythonQtWrapper_QPainterPath::new_QPainterPath() -{ -return new QPainterPath(); } - -QPainterPath* PythonQtWrapper_QPainterPath::new_QPainterPath(const QPainterPath& other) -{ -return new QPainterPath(other); } - -QPainterPath* PythonQtWrapper_QPainterPath::new_QPainterPath(const QPointF& startPoint) -{ -return new QPainterPath(startPoint); } - -void PythonQtWrapper_QPainterPath::addEllipse(QPainterPath* theWrappedObject, const QPointF& center, qreal rx, qreal ry) -{ - ( theWrappedObject->addEllipse(center, rx, ry)); -} - -void PythonQtWrapper_QPainterPath::addEllipse(QPainterPath* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->addEllipse(rect)); -} - -void PythonQtWrapper_QPainterPath::addEllipse(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->addEllipse(x, y, w, h)); -} - -void PythonQtWrapper_QPainterPath::addPath(QPainterPath* theWrappedObject, const QPainterPath& path) -{ - ( theWrappedObject->addPath(path)); -} - -void PythonQtWrapper_QPainterPath::addPolygon(QPainterPath* theWrappedObject, const QPolygonF& polygon) -{ - ( theWrappedObject->addPolygon(polygon)); -} - -void PythonQtWrapper_QPainterPath::addRect(QPainterPath* theWrappedObject, const QRectF& rect) -{ - ( theWrappedObject->addRect(rect)); -} - -void PythonQtWrapper_QPainterPath::addRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h) -{ - ( theWrappedObject->addRect(x, y, w, h)); -} - -void PythonQtWrapper_QPainterPath::addRegion(QPainterPath* theWrappedObject, const QRegion& region) -{ - ( theWrappedObject->addRegion(region)); -} - -void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int roundness) -{ - ( theWrappedObject->addRoundRect(rect, roundness)); -} - -void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int xRnd, int yRnd) -{ - ( theWrappedObject->addRoundRect(rect, xRnd, yRnd)); -} - -void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int roundness) -{ - ( theWrappedObject->addRoundRect(x, y, w, h, roundness)); -} - -void PythonQtWrapper_QPainterPath::addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xRnd, int yRnd) -{ - ( theWrappedObject->addRoundRect(x, y, w, h, xRnd, yRnd)); -} - -void PythonQtWrapper_QPainterPath::addRoundedRect(QPainterPath* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode) -{ - ( theWrappedObject->addRoundedRect(rect, xRadius, yRadius, mode)); -} - -void PythonQtWrapper_QPainterPath::addRoundedRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal xRadius, qreal yRadius, Qt::SizeMode mode) -{ - ( theWrappedObject->addRoundedRect(x, y, w, h, xRadius, yRadius, mode)); -} - -void PythonQtWrapper_QPainterPath::addText(QPainterPath* theWrappedObject, const QPointF& point, const QFont& f, const QString& text) -{ - ( theWrappedObject->addText(point, f, text)); -} - -void PythonQtWrapper_QPainterPath::addText(QPainterPath* theWrappedObject, qreal x, qreal y, const QFont& f, const QString& text) -{ - ( theWrappedObject->addText(x, y, f, text)); -} - -qreal PythonQtWrapper_QPainterPath::angleAtPercent(QPainterPath* theWrappedObject, qreal t) const -{ - return ( theWrappedObject->angleAtPercent(t)); -} - -void PythonQtWrapper_QPainterPath::arcMoveTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal angle) -{ - ( theWrappedObject->arcMoveTo(rect, angle)); -} - -void PythonQtWrapper_QPainterPath::arcMoveTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal angle) -{ - ( theWrappedObject->arcMoveTo(x, y, w, h, angle)); -} - -void PythonQtWrapper_QPainterPath::arcTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal startAngle, qreal arcLength) -{ - ( theWrappedObject->arcTo(rect, startAngle, arcLength)); -} - -void PythonQtWrapper_QPainterPath::arcTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal startAngle, qreal arcLength) -{ - ( theWrappedObject->arcTo(x, y, w, h, startAngle, arcLength)); -} - -QRectF PythonQtWrapper_QPainterPath::boundingRect(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -void PythonQtWrapper_QPainterPath::closeSubpath(QPainterPath* theWrappedObject) -{ - ( theWrappedObject->closeSubpath()); -} - -void PythonQtWrapper_QPainterPath::connectPath(QPainterPath* theWrappedObject, const QPainterPath& path) -{ - ( theWrappedObject->connectPath(path)); -} - -bool PythonQtWrapper_QPainterPath::contains(QPainterPath* theWrappedObject, const QPainterPath& p) const -{ - return ( theWrappedObject->contains(p)); -} - -bool PythonQtWrapper_QPainterPath::contains(QPainterPath* theWrappedObject, const QPointF& pt) const -{ - return ( theWrappedObject->contains(pt)); -} - -bool PythonQtWrapper_QPainterPath::contains(QPainterPath* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->contains(rect)); -} - -QRectF PythonQtWrapper_QPainterPath::controlPointRect(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->controlPointRect()); -} - -void PythonQtWrapper_QPainterPath::cubicTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt1, const QPointF& ctrlPt2, const QPointF& endPt) -{ - ( theWrappedObject->cubicTo(ctrlPt1, ctrlPt2, endPt)); -} - -void PythonQtWrapper_QPainterPath::cubicTo(QPainterPath* theWrappedObject, qreal ctrlPt1x, qreal ctrlPt1y, qreal ctrlPt2x, qreal ctrlPt2y, qreal endPtx, qreal endPty) -{ - ( theWrappedObject->cubicTo(ctrlPt1x, ctrlPt1y, ctrlPt2x, ctrlPt2y, endPtx, endPty)); -} - -QPointF PythonQtWrapper_QPainterPath::currentPosition(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->currentPosition()); -} - -const QPainterPath::Element* PythonQtWrapper_QPainterPath::elementAt(QPainterPath* theWrappedObject, int i) const -{ - return &( theWrappedObject->elementAt(i)); -} - -int PythonQtWrapper_QPainterPath::elementCount(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->elementCount()); -} - -Qt::FillRule PythonQtWrapper_QPainterPath::fillRule(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->fillRule()); -} - -QPainterPath PythonQtWrapper_QPainterPath::intersected(QPainterPath* theWrappedObject, const QPainterPath& r) const -{ - return ( theWrappedObject->intersected(r)); -} - -bool PythonQtWrapper_QPainterPath::intersects(QPainterPath* theWrappedObject, const QPainterPath& p) const -{ - return ( theWrappedObject->intersects(p)); -} - -bool PythonQtWrapper_QPainterPath::intersects(QPainterPath* theWrappedObject, const QRectF& rect) const -{ - return ( theWrappedObject->intersects(rect)); -} - -bool PythonQtWrapper_QPainterPath::isEmpty(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -qreal PythonQtWrapper_QPainterPath::length(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -void PythonQtWrapper_QPainterPath::lineTo(QPainterPath* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->lineTo(p)); -} - -void PythonQtWrapper_QPainterPath::lineTo(QPainterPath* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->lineTo(x, y)); -} - -void PythonQtWrapper_QPainterPath::moveTo(QPainterPath* theWrappedObject, const QPointF& p) -{ - ( theWrappedObject->moveTo(p)); -} - -void PythonQtWrapper_QPainterPath::moveTo(QPainterPath* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->moveTo(x, y)); -} - -bool PythonQtWrapper_QPainterPath::__ne__(QPainterPath* theWrappedObject, const QPainterPath& other) const -{ - return ( (*theWrappedObject)!= other); -} - -QPainterPath PythonQtWrapper_QPainterPath::__and__(QPainterPath* theWrappedObject, const QPainterPath& other) const -{ - return ( (*theWrappedObject)& other); -} - -QPainterPath* PythonQtWrapper_QPainterPath::__iand__(QPainterPath* theWrappedObject, const QPainterPath& other) -{ - return &( (*theWrappedObject)&= other); -} - -QPainterPath PythonQtWrapper_QPainterPath::__mul__(QPainterPath* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QPainterPath PythonQtWrapper_QPainterPath::__mul__(QPainterPath* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -QPainterPath PythonQtWrapper_QPainterPath::__add__(QPainterPath* theWrappedObject, const QPainterPath& other) const -{ - return ( (*theWrappedObject)+ other); -} - -QPainterPath* PythonQtWrapper_QPainterPath::__iadd__(QPainterPath* theWrappedObject, const QPainterPath& other) -{ - return &( (*theWrappedObject)+= other); -} - -QPainterPath PythonQtWrapper_QPainterPath::__sub__(QPainterPath* theWrappedObject, const QPainterPath& other) const -{ - return ( (*theWrappedObject)- other); -} - -QPainterPath* PythonQtWrapper_QPainterPath::__isub__(QPainterPath* theWrappedObject, const QPainterPath& other) -{ - return &( (*theWrappedObject)-= other); -} - -void PythonQtWrapper_QPainterPath::writeTo(QPainterPath* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QPainterPath::__eq__(QPainterPath* theWrappedObject, const QPainterPath& other) const -{ - return ( (*theWrappedObject)== other); -} - -void PythonQtWrapper_QPainterPath::readFrom(QPainterPath* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPainterPath PythonQtWrapper_QPainterPath::__or__(QPainterPath* theWrappedObject, const QPainterPath& other) const -{ - return ( (*theWrappedObject)| other); -} - -QPainterPath* PythonQtWrapper_QPainterPath::__ior__(QPainterPath* theWrappedObject, const QPainterPath& other) -{ - return &( (*theWrappedObject)|= other); -} - -qreal PythonQtWrapper_QPainterPath::percentAtLength(QPainterPath* theWrappedObject, qreal t) const -{ - return ( theWrappedObject->percentAtLength(t)); -} - -QPointF PythonQtWrapper_QPainterPath::pointAtPercent(QPainterPath* theWrappedObject, qreal t) const -{ - return ( theWrappedObject->pointAtPercent(t)); -} - -void PythonQtWrapper_QPainterPath::quadTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt, const QPointF& endPt) -{ - ( theWrappedObject->quadTo(ctrlPt, endPt)); -} - -void PythonQtWrapper_QPainterPath::quadTo(QPainterPath* theWrappedObject, qreal ctrlPtx, qreal ctrlPty, qreal endPtx, qreal endPty) -{ - ( theWrappedObject->quadTo(ctrlPtx, ctrlPty, endPtx, endPty)); -} - -void PythonQtWrapper_QPainterPath::setElementPositionAt(QPainterPath* theWrappedObject, int i, qreal x, qreal y) -{ - ( theWrappedObject->setElementPositionAt(i, x, y)); -} - -void PythonQtWrapper_QPainterPath::setFillRule(QPainterPath* theWrappedObject, Qt::FillRule fillRule) -{ - ( theWrappedObject->setFillRule(fillRule)); -} - -QPainterPath PythonQtWrapper_QPainterPath::simplified(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->simplified()); -} - -qreal PythonQtWrapper_QPainterPath::slopeAtPercent(QPainterPath* theWrappedObject, qreal t) const -{ - return ( theWrappedObject->slopeAtPercent(t)); -} - -QPainterPath PythonQtWrapper_QPainterPath::subtracted(QPainterPath* theWrappedObject, const QPainterPath& r) const -{ - return ( theWrappedObject->subtracted(r)); -} - -QPainterPath PythonQtWrapper_QPainterPath::subtractedInverted(QPainterPath* theWrappedObject, const QPainterPath& r) const -{ - return ( theWrappedObject->subtractedInverted(r)); -} - -QPolygonF PythonQtWrapper_QPainterPath::toFillPolygon(QPainterPath* theWrappedObject, const QMatrix& matrix) const -{ - return ( theWrappedObject->toFillPolygon(matrix)); -} - -QPolygonF PythonQtWrapper_QPainterPath::toFillPolygon(QPainterPath* theWrappedObject, const QTransform& matrix) const -{ - return ( theWrappedObject->toFillPolygon(matrix)); -} - -QList PythonQtWrapper_QPainterPath::toFillPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix) const -{ - return ( theWrappedObject->toFillPolygons(matrix)); -} - -QList PythonQtWrapper_QPainterPath::toFillPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const -{ - return ( theWrappedObject->toFillPolygons(matrix)); -} - -QPainterPath PythonQtWrapper_QPainterPath::toReversed(QPainterPath* theWrappedObject) const -{ - return ( theWrappedObject->toReversed()); -} - -QList PythonQtWrapper_QPainterPath::toSubpathPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix) const -{ - return ( theWrappedObject->toSubpathPolygons(matrix)); -} - -QList PythonQtWrapper_QPainterPath::toSubpathPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const -{ - return ( theWrappedObject->toSubpathPolygons(matrix)); -} - -void PythonQtWrapper_QPainterPath::translate(QPainterPath* theWrappedObject, const QPointF& offset) -{ - ( theWrappedObject->translate(offset)); -} - -void PythonQtWrapper_QPainterPath::translate(QPainterPath* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QPainterPath PythonQtWrapper_QPainterPath::translated(QPainterPath* theWrappedObject, const QPointF& offset) const -{ - return ( theWrappedObject->translated(offset)); -} - -QPainterPath PythonQtWrapper_QPainterPath::translated(QPainterPath* theWrappedObject, qreal dx, qreal dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -QPainterPath PythonQtWrapper_QPainterPath::united(QPainterPath* theWrappedObject, const QPainterPath& r) const -{ - return ( theWrappedObject->united(r)); -} - -QString PythonQtWrapper_QPainterPath::py_toString(QPainterPath* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QPainterPathStroker* PythonQtWrapper_QPainterPathStroker::new_QPainterPathStroker() -{ -return new QPainterPathStroker(); } - -Qt::PenCapStyle PythonQtWrapper_QPainterPathStroker::capStyle(QPainterPathStroker* theWrappedObject) const -{ - return ( theWrappedObject->capStyle()); -} - -QPainterPath PythonQtWrapper_QPainterPathStroker::createStroke(QPainterPathStroker* theWrappedObject, const QPainterPath& path) const -{ - return ( theWrappedObject->createStroke(path)); -} - -qreal PythonQtWrapper_QPainterPathStroker::curveThreshold(QPainterPathStroker* theWrappedObject) const -{ - return ( theWrappedObject->curveThreshold()); -} - -qreal PythonQtWrapper_QPainterPathStroker::dashOffset(QPainterPathStroker* theWrappedObject) const -{ - return ( theWrappedObject->dashOffset()); -} - -QVector PythonQtWrapper_QPainterPathStroker::dashPattern(QPainterPathStroker* theWrappedObject) const -{ - return ( theWrappedObject->dashPattern()); -} - -Qt::PenJoinStyle PythonQtWrapper_QPainterPathStroker::joinStyle(QPainterPathStroker* theWrappedObject) const -{ - return ( theWrappedObject->joinStyle()); -} - -qreal PythonQtWrapper_QPainterPathStroker::miterLimit(QPainterPathStroker* theWrappedObject) const -{ - return ( theWrappedObject->miterLimit()); -} - -void PythonQtWrapper_QPainterPathStroker::setCapStyle(QPainterPathStroker* theWrappedObject, Qt::PenCapStyle style) -{ - ( theWrappedObject->setCapStyle(style)); -} - -void PythonQtWrapper_QPainterPathStroker::setCurveThreshold(QPainterPathStroker* theWrappedObject, qreal threshold) -{ - ( theWrappedObject->setCurveThreshold(threshold)); -} - -void PythonQtWrapper_QPainterPathStroker::setDashOffset(QPainterPathStroker* theWrappedObject, qreal offset) -{ - ( theWrappedObject->setDashOffset(offset)); -} - -void PythonQtWrapper_QPainterPathStroker::setDashPattern(QPainterPathStroker* theWrappedObject, Qt::PenStyle arg__1) -{ - ( theWrappedObject->setDashPattern(arg__1)); -} - -void PythonQtWrapper_QPainterPathStroker::setDashPattern(QPainterPathStroker* theWrappedObject, const QVector& dashPattern) -{ - ( theWrappedObject->setDashPattern(dashPattern)); -} - -void PythonQtWrapper_QPainterPathStroker::setJoinStyle(QPainterPathStroker* theWrappedObject, Qt::PenJoinStyle style) -{ - ( theWrappedObject->setJoinStyle(style)); -} - -void PythonQtWrapper_QPainterPathStroker::setMiterLimit(QPainterPathStroker* theWrappedObject, qreal length) -{ - ( theWrappedObject->setMiterLimit(length)); -} - -void PythonQtWrapper_QPainterPathStroker::setWidth(QPainterPathStroker* theWrappedObject, qreal width) -{ - ( theWrappedObject->setWidth(width)); -} - -qreal PythonQtWrapper_QPainterPathStroker::width(QPainterPathStroker* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -void PythonQtShell_QPanGesture::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPanGesture::childEvent(arg__1); -} -void PythonQtShell_QPanGesture::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPanGesture::customEvent(arg__1); -} -bool PythonQtShell_QPanGesture::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPanGesture::event(arg__1); -} -bool PythonQtShell_QPanGesture::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPanGesture::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QPanGesture::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPanGesture::timerEvent(arg__1); -} -QPanGesture* PythonQtWrapper_QPanGesture::new_QPanGesture(QObject* parent) -{ -return new PythonQtShell_QPanGesture(parent); } - -qreal PythonQtWrapper_QPanGesture::acceleration(QPanGesture* theWrappedObject) const -{ - return ( theWrappedObject->acceleration()); -} - -QPointF PythonQtWrapper_QPanGesture::delta(QPanGesture* theWrappedObject) const -{ - return ( theWrappedObject->delta()); -} - -QPointF PythonQtWrapper_QPanGesture::lastOffset(QPanGesture* theWrappedObject) const -{ - return ( theWrappedObject->lastOffset()); -} - -QPointF PythonQtWrapper_QPanGesture::offset(QPanGesture* theWrappedObject) const -{ - return ( theWrappedObject->offset()); -} - -void PythonQtWrapper_QPanGesture::setAcceleration(QPanGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setAcceleration(value)); -} - -void PythonQtWrapper_QPanGesture::setLastOffset(QPanGesture* theWrappedObject, const QPointF& value) -{ - ( theWrappedObject->setLastOffset(value)); -} - -void PythonQtWrapper_QPanGesture::setOffset(QPanGesture* theWrappedObject, const QPointF& value) -{ - ( theWrappedObject->setOffset(value)); -} - - - -int PythonQtShell_QPicture::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPicture::devType(); -} -int PythonQtShell_QPicture::metric(QPaintDevice::PaintDeviceMetric m) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&m}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPicture::metric(m); -} -QPaintEngine* PythonQtShell_QPicture::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPicture::paintEngine(); -} -void PythonQtShell_QPicture::setData(const char* data, uint size) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const char*" , "uint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&data, (void*)&size}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPicture::setData(data, size); -} -QPicture* PythonQtWrapper_QPicture::new_QPicture(const QPicture& arg__1) -{ -return new PythonQtShell_QPicture(arg__1); } - -QPicture* PythonQtWrapper_QPicture::new_QPicture(int formatVersion) -{ -return new PythonQtShell_QPicture(formatVersion); } - -QRect PythonQtWrapper_QPicture::boundingRect(QPicture* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -const char* PythonQtWrapper_QPicture::data(QPicture* theWrappedObject) const -{ - return ( theWrappedObject->data()); -} - -int PythonQtWrapper_QPicture::devType(QPicture* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPicture*)theWrappedObject)->promoted_devType()); -} - -bool PythonQtWrapper_QPicture::isNull(QPicture* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QPicture::load(QPicture* theWrappedObject, QIODevice* dev, const char* format) -{ - return ( theWrappedObject->load(dev, format)); -} - -bool PythonQtWrapper_QPicture::load(QPicture* theWrappedObject, const QString& fileName, const char* format) -{ - return ( theWrappedObject->load(fileName, format)); -} - -int PythonQtWrapper_QPicture::metric(QPicture* theWrappedObject, QPaintDevice::PaintDeviceMetric m) const -{ - return ( ((PythonQtPublicPromoter_QPicture*)theWrappedObject)->promoted_metric(m)); -} - -void PythonQtWrapper_QPicture::writeTo(QPicture* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -void PythonQtWrapper_QPicture::readFrom(QPicture* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPaintEngine* PythonQtWrapper_QPicture::paintEngine(QPicture* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPicture*)theWrappedObject)->promoted_paintEngine()); -} - -bool PythonQtWrapper_QPicture::play(QPicture* theWrappedObject, QPainter* p) -{ - return ( theWrappedObject->play(p)); -} - -bool PythonQtWrapper_QPicture::save(QPicture* theWrappedObject, QIODevice* dev, const char* format) -{ - return ( theWrappedObject->save(dev, format)); -} - -bool PythonQtWrapper_QPicture::save(QPicture* theWrappedObject, const QString& fileName, const char* format) -{ - return ( theWrappedObject->save(fileName, format)); -} - -void PythonQtWrapper_QPicture::setBoundingRect(QPicture* theWrappedObject, const QRect& r) -{ - ( theWrappedObject->setBoundingRect(r)); -} - -uint PythonQtWrapper_QPicture::size(QPicture* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - - - -void PythonQtShell_QPictureFormatPlugin::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPictureFormatPlugin::childEvent(arg__1); -} -void PythonQtShell_QPictureFormatPlugin::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPictureFormatPlugin::customEvent(arg__1); -} -bool PythonQtShell_QPictureFormatPlugin::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPictureFormatPlugin::event(arg__1); -} -bool PythonQtShell_QPictureFormatPlugin::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPictureFormatPlugin::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QPictureFormatPlugin::installIOHandler(const QString& format) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "installIOHandler"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&format}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("installIOHandler", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -QStringList PythonQtShell_QPictureFormatPlugin::keys() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keys"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("keys", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -bool PythonQtShell_QPictureFormatPlugin::loadPicture(const QString& format, const QString& filename, QPicture* pic) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadPicture"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "QPicture*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&format, (void*)&filename, (void*)&pic}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("loadPicture", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPictureFormatPlugin::loadPicture(format, filename, pic); -} -bool PythonQtShell_QPictureFormatPlugin::savePicture(const QString& format, const QString& filename, const QPicture& pic) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "savePicture"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QPicture&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&format, (void*)&filename, (void*)&pic}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("savePicture", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPictureFormatPlugin::savePicture(format, filename, pic); -} -void PythonQtShell_QPictureFormatPlugin::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPictureFormatPlugin::timerEvent(arg__1); -} -QPictureFormatPlugin* PythonQtWrapper_QPictureFormatPlugin::new_QPictureFormatPlugin(QObject* parent) -{ -return new PythonQtShell_QPictureFormatPlugin(parent); } - -bool PythonQtWrapper_QPictureFormatPlugin::loadPicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, QPicture* pic) -{ - return ( ((PythonQtPublicPromoter_QPictureFormatPlugin*)theWrappedObject)->promoted_loadPicture(format, filename, pic)); -} - -bool PythonQtWrapper_QPictureFormatPlugin::savePicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, const QPicture& pic) -{ - return ( ((PythonQtPublicPromoter_QPictureFormatPlugin*)theWrappedObject)->promoted_savePicture(format, filename, pic)); -} - - - -QPictureIO* PythonQtWrapper_QPictureIO::new_QPictureIO() -{ -return new QPictureIO(); } - -QPictureIO* PythonQtWrapper_QPictureIO::new_QPictureIO(QIODevice* ioDevice, const char* format) -{ -return new QPictureIO(ioDevice, format); } - -QPictureIO* PythonQtWrapper_QPictureIO::new_QPictureIO(const QString& fileName, const char* format) -{ -return new QPictureIO(fileName, format); } - -QString PythonQtWrapper_QPictureIO::description(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->description()); -} - -QString PythonQtWrapper_QPictureIO::fileName(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -const char* PythonQtWrapper_QPictureIO::format(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -float PythonQtWrapper_QPictureIO::gamma(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->gamma()); -} - -QList PythonQtWrapper_QPictureIO::static_QPictureIO_inputFormats() -{ - return (QPictureIO::inputFormats()); -} - -QIODevice* PythonQtWrapper_QPictureIO::ioDevice(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->ioDevice()); -} - -QList PythonQtWrapper_QPictureIO::static_QPictureIO_outputFormats() -{ - return (QPictureIO::outputFormats()); -} - -const char* PythonQtWrapper_QPictureIO::parameters(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->parameters()); -} - -const QPicture* PythonQtWrapper_QPictureIO::picture(QPictureIO* theWrappedObject) const -{ - return &( theWrappedObject->picture()); -} - -QByteArray PythonQtWrapper_QPictureIO::static_QPictureIO_pictureFormat(QIODevice* arg__1) -{ - return (QPictureIO::pictureFormat(arg__1)); -} - -QByteArray PythonQtWrapper_QPictureIO::static_QPictureIO_pictureFormat(const QString& fileName) -{ - return (QPictureIO::pictureFormat(fileName)); -} - -int PythonQtWrapper_QPictureIO::quality(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->quality()); -} - -bool PythonQtWrapper_QPictureIO::read(QPictureIO* theWrappedObject) -{ - return ( theWrappedObject->read()); -} - -void PythonQtWrapper_QPictureIO::setDescription(QPictureIO* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setDescription(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setFileName(QPictureIO* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setFileName(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setFormat(QPictureIO* theWrappedObject, const char* arg__1) -{ - ( theWrappedObject->setFormat(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setGamma(QPictureIO* theWrappedObject, float arg__1) -{ - ( theWrappedObject->setGamma(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setIODevice(QPictureIO* theWrappedObject, QIODevice* arg__1) -{ - ( theWrappedObject->setIODevice(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setParameters(QPictureIO* theWrappedObject, const char* arg__1) -{ - ( theWrappedObject->setParameters(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setPicture(QPictureIO* theWrappedObject, const QPicture& arg__1) -{ - ( theWrappedObject->setPicture(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setQuality(QPictureIO* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setQuality(arg__1)); -} - -void PythonQtWrapper_QPictureIO::setStatus(QPictureIO* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setStatus(arg__1)); -} - -int PythonQtWrapper_QPictureIO::status(QPictureIO* theWrappedObject) const -{ - return ( theWrappedObject->status()); -} - -bool PythonQtWrapper_QPictureIO::write(QPictureIO* theWrappedObject) -{ - return ( theWrappedObject->write()); -} - - - -void PythonQtShell_QPinchGesture::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPinchGesture::childEvent(arg__1); -} -void PythonQtShell_QPinchGesture::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPinchGesture::customEvent(arg__1); -} -bool PythonQtShell_QPinchGesture::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPinchGesture::event(arg__1); -} -bool PythonQtShell_QPinchGesture::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPinchGesture::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QPinchGesture::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPinchGesture::timerEvent(arg__1); -} -QPinchGesture* PythonQtWrapper_QPinchGesture::new_QPinchGesture(QObject* parent) -{ -return new PythonQtShell_QPinchGesture(parent); } - -QPointF PythonQtWrapper_QPinchGesture::centerPoint(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->centerPoint()); -} - -QPointF PythonQtWrapper_QPinchGesture::lastCenterPoint(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->lastCenterPoint()); -} - -qreal PythonQtWrapper_QPinchGesture::lastRotationAngle(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->lastRotationAngle()); -} - -qreal PythonQtWrapper_QPinchGesture::lastScaleFactor(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->lastScaleFactor()); -} - -qreal PythonQtWrapper_QPinchGesture::rotationAngle(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->rotationAngle()); -} - -qreal PythonQtWrapper_QPinchGesture::scaleFactor(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->scaleFactor()); -} - -void PythonQtWrapper_QPinchGesture::setCenterPoint(QPinchGesture* theWrappedObject, const QPointF& value) -{ - ( theWrappedObject->setCenterPoint(value)); -} - -void PythonQtWrapper_QPinchGesture::setLastCenterPoint(QPinchGesture* theWrappedObject, const QPointF& value) -{ - ( theWrappedObject->setLastCenterPoint(value)); -} - -void PythonQtWrapper_QPinchGesture::setLastRotationAngle(QPinchGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setLastRotationAngle(value)); -} - -void PythonQtWrapper_QPinchGesture::setLastScaleFactor(QPinchGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setLastScaleFactor(value)); -} - -void PythonQtWrapper_QPinchGesture::setRotationAngle(QPinchGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setRotationAngle(value)); -} - -void PythonQtWrapper_QPinchGesture::setScaleFactor(QPinchGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setScaleFactor(value)); -} - -void PythonQtWrapper_QPinchGesture::setStartCenterPoint(QPinchGesture* theWrappedObject, const QPointF& value) -{ - ( theWrappedObject->setStartCenterPoint(value)); -} - -void PythonQtWrapper_QPinchGesture::setTotalRotationAngle(QPinchGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setTotalRotationAngle(value)); -} - -void PythonQtWrapper_QPinchGesture::setTotalScaleFactor(QPinchGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setTotalScaleFactor(value)); -} - -QPointF PythonQtWrapper_QPinchGesture::startCenterPoint(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->startCenterPoint()); -} - -qreal PythonQtWrapper_QPinchGesture::totalRotationAngle(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->totalRotationAngle()); -} - -qreal PythonQtWrapper_QPinchGesture::totalScaleFactor(QPinchGesture* theWrappedObject) const -{ - return ( theWrappedObject->totalScaleFactor()); -} - - - -QPixmapCache* PythonQtWrapper_QPixmapCache::new_QPixmapCache() -{ -return new PythonQtShell_QPixmapCache(); } - -int PythonQtWrapper_QPixmapCache::static_QPixmapCache_cacheLimit() -{ - return (QPixmapCache::cacheLimit()); -} - -void PythonQtWrapper_QPixmapCache::static_QPixmapCache_clear() -{ - (QPixmapCache::clear()); -} - -bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_find(const QPixmapCache::Key& key, QPixmap* pixmap) -{ - return (QPixmapCache::find(key, pixmap)); -} - -bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_find(const QString& key, QPixmap& pixmap) -{ - return (QPixmapCache::find(key, pixmap)); -} - -QPixmapCache::Key PythonQtWrapper_QPixmapCache::static_QPixmapCache_insert(const QPixmap& pixmap) -{ - return (QPixmapCache::insert(pixmap)); -} - -bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_insert(const QString& key, const QPixmap& pixmap) -{ - return (QPixmapCache::insert(key, pixmap)); -} - -void PythonQtWrapper_QPixmapCache::static_QPixmapCache_remove(const QPixmapCache::Key& key) -{ - (QPixmapCache::remove(key)); -} - -void PythonQtWrapper_QPixmapCache::static_QPixmapCache_remove(const QString& key) -{ - (QPixmapCache::remove(key)); -} - -bool PythonQtWrapper_QPixmapCache::static_QPixmapCache_replace(const QPixmapCache::Key& key, const QPixmap& pixmap) -{ - return (QPixmapCache::replace(key, pixmap)); -} - -void PythonQtWrapper_QPixmapCache::static_QPixmapCache_setCacheLimit(int arg__1) -{ - (QPixmapCache::setCacheLimit(arg__1)); -} - - - -QPixmapCache::Key* PythonQtWrapper_QPixmapCache_Key::new_QPixmapCache_Key() -{ -return new QPixmapCache::Key(); } - -QPixmapCache::Key* PythonQtWrapper_QPixmapCache_Key::new_QPixmapCache_Key(const QPixmapCache::Key& other) -{ -return new QPixmapCache::Key(other); } - -bool PythonQtWrapper_QPixmapCache_Key::__ne__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const -{ - return ( (*theWrappedObject)!= key); -} - -QPixmapCache::Key* PythonQtWrapper_QPixmapCache_Key::operator_assign(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& other) -{ - return &( (*theWrappedObject)= other); -} - -bool PythonQtWrapper_QPixmapCache_Key::__eq__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const -{ - return ( (*theWrappedObject)== key); -} - - - -QPlainTextDocumentLayout* PythonQtWrapper_QPlainTextDocumentLayout::new_QPlainTextDocumentLayout(QTextDocument* document) -{ -return new PythonQtShell_QPlainTextDocumentLayout(document); } - -QRectF PythonQtWrapper_QPlainTextDocumentLayout::blockBoundingRect(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const -{ - return ( theWrappedObject->blockBoundingRect(block)); -} - -int PythonQtWrapper_QPlainTextDocumentLayout::cursorWidth(QPlainTextDocumentLayout* theWrappedObject) const -{ - return ( theWrappedObject->cursorWidth()); -} - -QSizeF PythonQtWrapper_QPlainTextDocumentLayout::documentSize(QPlainTextDocumentLayout* theWrappedObject) const -{ - return ( theWrappedObject->documentSize()); -} - -void PythonQtWrapper_QPlainTextDocumentLayout::draw(QPlainTextDocumentLayout* theWrappedObject, QPainter* arg__1, const QAbstractTextDocumentLayout::PaintContext& arg__2) -{ - ( theWrappedObject->draw(arg__1, arg__2)); -} - -void PythonQtWrapper_QPlainTextDocumentLayout::ensureBlockLayout(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const -{ - ( theWrappedObject->ensureBlockLayout(block)); -} - -QRectF PythonQtWrapper_QPlainTextDocumentLayout::frameBoundingRect(QPlainTextDocumentLayout* theWrappedObject, QTextFrame* arg__1) const -{ - return ( theWrappedObject->frameBoundingRect(arg__1)); -} - -int PythonQtWrapper_QPlainTextDocumentLayout::hitTest(QPlainTextDocumentLayout* theWrappedObject, const QPointF& arg__1, Qt::HitTestAccuracy arg__2) const -{ - return ( theWrappedObject->hitTest(arg__1, arg__2)); -} - -int PythonQtWrapper_QPlainTextDocumentLayout::pageCount(QPlainTextDocumentLayout* theWrappedObject) const -{ - return ( theWrappedObject->pageCount()); -} - -void PythonQtWrapper_QPlainTextDocumentLayout::requestUpdate(QPlainTextDocumentLayout* theWrappedObject) -{ - ( theWrappedObject->requestUpdate()); -} - -void PythonQtWrapper_QPlainTextDocumentLayout::setCursorWidth(QPlainTextDocumentLayout* theWrappedObject, int width) -{ - ( theWrappedObject->setCursorWidth(width)); -} - - - -void PythonQtShell_QPlainTextEdit::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::actionEvent(arg__1); -} -bool PythonQtShell_QPlainTextEdit::canInsertFromMimeData(const QMimeData* source) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canInsertFromMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canInsertFromMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::canInsertFromMimeData(source); -} -void PythonQtShell_QPlainTextEdit::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::changeEvent(e); -} -void PythonQtShell_QPlainTextEdit::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::childEvent(arg__1); -} -void PythonQtShell_QPlainTextEdit::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::closeEvent(arg__1); -} -void PythonQtShell_QPlainTextEdit::contextMenuEvent(QContextMenuEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::contextMenuEvent(e); -} -QMimeData* PythonQtShell_QPlainTextEdit::createMimeDataFromSelection() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createMimeDataFromSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QMimeData* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createMimeDataFromSelection", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::createMimeDataFromSelection(); -} -void PythonQtShell_QPlainTextEdit::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::customEvent(arg__1); -} -int PythonQtShell_QPlainTextEdit::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::devType(); -} -void PythonQtShell_QPlainTextEdit::dragEnterEvent(QDragEnterEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::dragEnterEvent(e); -} -void PythonQtShell_QPlainTextEdit::dragLeaveEvent(QDragLeaveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::dragLeaveEvent(e); -} -void PythonQtShell_QPlainTextEdit::dragMoveEvent(QDragMoveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::dragMoveEvent(e); -} -void PythonQtShell_QPlainTextEdit::dropEvent(QDropEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::dropEvent(e); -} -void PythonQtShell_QPlainTextEdit::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::enterEvent(arg__1); -} -bool PythonQtShell_QPlainTextEdit::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::event(e); -} -bool PythonQtShell_QPlainTextEdit::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QPlainTextEdit::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::focusInEvent(e); -} -bool PythonQtShell_QPlainTextEdit::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::focusNextPrevChild(next); -} -void PythonQtShell_QPlainTextEdit::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::focusOutEvent(e); -} -int PythonQtShell_QPlainTextEdit::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::heightForWidth(arg__1); -} -void PythonQtShell_QPlainTextEdit::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::hideEvent(arg__1); -} -void PythonQtShell_QPlainTextEdit::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QPlainTextEdit::inputMethodQuery(Qt::InputMethodQuery property) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&property}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::inputMethodQuery(property); -} -void PythonQtShell_QPlainTextEdit::insertFromMimeData(const QMimeData* source) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertFromMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::insertFromMimeData(source); -} -void PythonQtShell_QPlainTextEdit::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::keyPressEvent(e); -} -void PythonQtShell_QPlainTextEdit::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::keyReleaseEvent(e); -} -void PythonQtShell_QPlainTextEdit::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::languageChange(); -} -void PythonQtShell_QPlainTextEdit::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::leaveEvent(arg__1); -} -QVariant PythonQtShell_QPlainTextEdit::loadResource(int type, const QUrl& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&type, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::loadResource(type, name); -} -int PythonQtShell_QPlainTextEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::metric(arg__1); -} -void PythonQtShell_QPlainTextEdit::mouseDoubleClickEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::mouseDoubleClickEvent(e); -} -void PythonQtShell_QPlainTextEdit::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::mouseMoveEvent(e); -} -void PythonQtShell_QPlainTextEdit::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::mousePressEvent(e); -} -void PythonQtShell_QPlainTextEdit::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::mouseReleaseEvent(e); -} -void PythonQtShell_QPlainTextEdit::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QPlainTextEdit::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::paintEngine(); -} -void PythonQtShell_QPlainTextEdit::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::paintEvent(e); -} -void PythonQtShell_QPlainTextEdit::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::resizeEvent(e); -} -void PythonQtShell_QPlainTextEdit::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QPlainTextEdit::scrollContentsBy(dx, dy); -} -void PythonQtShell_QPlainTextEdit::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::showEvent(arg__1); -} -void PythonQtShell_QPlainTextEdit::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::tabletEvent(arg__1); -} -void PythonQtShell_QPlainTextEdit::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::timerEvent(e); -} -bool PythonQtShell_QPlainTextEdit::viewportEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlainTextEdit::viewportEvent(arg__1); -} -void PythonQtShell_QPlainTextEdit::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlainTextEdit::wheelEvent(e); -} -QPlainTextEdit* PythonQtWrapper_QPlainTextEdit::new_QPlainTextEdit(QWidget* parent) -{ -return new PythonQtShell_QPlainTextEdit(parent); } - -QPlainTextEdit* PythonQtWrapper_QPlainTextEdit::new_QPlainTextEdit(const QString& text, QWidget* parent) -{ -return new PythonQtShell_QPlainTextEdit(text, parent); } - -bool PythonQtWrapper_QPlainTextEdit::backgroundVisible(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->backgroundVisible()); -} - -int PythonQtWrapper_QPlainTextEdit::blockCount(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->blockCount()); -} - -bool PythonQtWrapper_QPlainTextEdit::canInsertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) const -{ - return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_canInsertFromMimeData(source)); -} - -bool PythonQtWrapper_QPlainTextEdit::canPaste(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->canPaste()); -} - -bool PythonQtWrapper_QPlainTextEdit::centerOnScroll(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->centerOnScroll()); -} - -void PythonQtWrapper_QPlainTextEdit::changeEvent(QPlainTextEdit* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_changeEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::contextMenuEvent(QPlainTextEdit* theWrappedObject, QContextMenuEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_contextMenuEvent(e)); -} - -QMimeData* PythonQtWrapper_QPlainTextEdit::createMimeDataFromSelection(QPlainTextEdit* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_createMimeDataFromSelection()); -} - -QMenu* PythonQtWrapper_QPlainTextEdit::createStandardContextMenu(QPlainTextEdit* theWrappedObject) -{ - return ( theWrappedObject->createStandardContextMenu()); -} - -QTextCharFormat PythonQtWrapper_QPlainTextEdit::currentCharFormat(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->currentCharFormat()); -} - -QTextCursor PythonQtWrapper_QPlainTextEdit::cursorForPosition(QPlainTextEdit* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->cursorForPosition(pos)); -} - -QRect PythonQtWrapper_QPlainTextEdit::cursorRect(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->cursorRect()); -} - -QRect PythonQtWrapper_QPlainTextEdit::cursorRect(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) const -{ - return ( theWrappedObject->cursorRect(cursor)); -} - -int PythonQtWrapper_QPlainTextEdit::cursorWidth(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->cursorWidth()); -} - -QTextDocument* PythonQtWrapper_QPlainTextEdit::document(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->document()); -} - -QString PythonQtWrapper_QPlainTextEdit::documentTitle(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->documentTitle()); -} - -void PythonQtWrapper_QPlainTextEdit::dragEnterEvent(QPlainTextEdit* theWrappedObject, QDragEnterEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dragEnterEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::dragLeaveEvent(QPlainTextEdit* theWrappedObject, QDragLeaveEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dragLeaveEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::dragMoveEvent(QPlainTextEdit* theWrappedObject, QDragMoveEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dragMoveEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::dropEvent(QPlainTextEdit* theWrappedObject, QDropEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_dropEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::ensureCursorVisible(QPlainTextEdit* theWrappedObject) -{ - ( theWrappedObject->ensureCursorVisible()); -} - -bool PythonQtWrapper_QPlainTextEdit::event(QPlainTextEdit* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_event(e)); -} - -QList PythonQtWrapper_QPlainTextEdit::extraSelections(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->extraSelections()); -} - -bool PythonQtWrapper_QPlainTextEdit::find(QPlainTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options) -{ - return ( theWrappedObject->find(exp, options)); -} - -void PythonQtWrapper_QPlainTextEdit::focusInEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_focusInEvent(e)); -} - -bool PythonQtWrapper_QPlainTextEdit::focusNextPrevChild(QPlainTextEdit* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QPlainTextEdit::focusOutEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_focusOutEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::inputMethodEvent(QPlainTextEdit* theWrappedObject, QInputMethodEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); -} - -QVariant PythonQtWrapper_QPlainTextEdit::inputMethodQuery(QPlainTextEdit* theWrappedObject, Qt::InputMethodQuery property) const -{ - return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_inputMethodQuery(property)); -} - -void PythonQtWrapper_QPlainTextEdit::insertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_insertFromMimeData(source)); -} - -bool PythonQtWrapper_QPlainTextEdit::isReadOnly(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->isReadOnly()); -} - -bool PythonQtWrapper_QPlainTextEdit::isUndoRedoEnabled(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->isUndoRedoEnabled()); -} - -void PythonQtWrapper_QPlainTextEdit::keyPressEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_keyPressEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::keyReleaseEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_keyReleaseEvent(e)); -} - -QPlainTextEdit::LineWrapMode PythonQtWrapper_QPlainTextEdit::lineWrapMode(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->lineWrapMode()); -} - -QVariant PythonQtWrapper_QPlainTextEdit::loadResource(QPlainTextEdit* theWrappedObject, int type, const QUrl& name) -{ - return ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_loadResource(type, name)); -} - -int PythonQtWrapper_QPlainTextEdit::maximumBlockCount(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->maximumBlockCount()); -} - -void PythonQtWrapper_QPlainTextEdit::mergeCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& modifier) -{ - ( theWrappedObject->mergeCurrentCharFormat(modifier)); -} - -void PythonQtWrapper_QPlainTextEdit::mouseDoubleClickEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mouseDoubleClickEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::mouseMoveEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mouseMoveEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::mousePressEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mousePressEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::mouseReleaseEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_mouseReleaseEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::moveCursor(QPlainTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode) -{ - ( theWrappedObject->moveCursor(operation, mode)); -} - -bool PythonQtWrapper_QPlainTextEdit::overwriteMode(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->overwriteMode()); -} - -void PythonQtWrapper_QPlainTextEdit::paintEvent(QPlainTextEdit* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_paintEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::print(QPlainTextEdit* theWrappedObject, QPrinter* printer) const -{ - ( theWrappedObject->print(printer)); -} - -void PythonQtWrapper_QPlainTextEdit::resizeEvent(QPlainTextEdit* theWrappedObject, QResizeEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_resizeEvent(e)); -} - -void PythonQtWrapper_QPlainTextEdit::scrollContentsBy(QPlainTextEdit* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QPlainTextEdit::setBackgroundVisible(QPlainTextEdit* theWrappedObject, bool visible) -{ - ( theWrappedObject->setBackgroundVisible(visible)); -} - -void PythonQtWrapper_QPlainTextEdit::setCenterOnScroll(QPlainTextEdit* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setCenterOnScroll(enabled)); -} - -void PythonQtWrapper_QPlainTextEdit::setCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& format) -{ - ( theWrappedObject->setCurrentCharFormat(format)); -} - -void PythonQtWrapper_QPlainTextEdit::setCursorWidth(QPlainTextEdit* theWrappedObject, int width) -{ - ( theWrappedObject->setCursorWidth(width)); -} - -void PythonQtWrapper_QPlainTextEdit::setDocument(QPlainTextEdit* theWrappedObject, QTextDocument* document) -{ - ( theWrappedObject->setDocument(document)); -} - -void PythonQtWrapper_QPlainTextEdit::setDocumentTitle(QPlainTextEdit* theWrappedObject, const QString& title) -{ - ( theWrappedObject->setDocumentTitle(title)); -} - -void PythonQtWrapper_QPlainTextEdit::setExtraSelections(QPlainTextEdit* theWrappedObject, const QList& selections) -{ - ( theWrappedObject->setExtraSelections(selections)); -} - -void PythonQtWrapper_QPlainTextEdit::setLineWrapMode(QPlainTextEdit* theWrappedObject, QPlainTextEdit::LineWrapMode mode) -{ - ( theWrappedObject->setLineWrapMode(mode)); -} - -void PythonQtWrapper_QPlainTextEdit::setMaximumBlockCount(QPlainTextEdit* theWrappedObject, int maximum) -{ - ( theWrappedObject->setMaximumBlockCount(maximum)); -} - -void PythonQtWrapper_QPlainTextEdit::setOverwriteMode(QPlainTextEdit* theWrappedObject, bool overwrite) -{ - ( theWrappedObject->setOverwriteMode(overwrite)); -} - -void PythonQtWrapper_QPlainTextEdit::setReadOnly(QPlainTextEdit* theWrappedObject, bool ro) -{ - ( theWrappedObject->setReadOnly(ro)); -} - -void PythonQtWrapper_QPlainTextEdit::setTabChangesFocus(QPlainTextEdit* theWrappedObject, bool b) -{ - ( theWrappedObject->setTabChangesFocus(b)); -} - -void PythonQtWrapper_QPlainTextEdit::setTabStopWidth(QPlainTextEdit* theWrappedObject, int width) -{ - ( theWrappedObject->setTabStopWidth(width)); -} - -void PythonQtWrapper_QPlainTextEdit::setTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) -{ - ( theWrappedObject->setTextCursor(cursor)); -} - -void PythonQtWrapper_QPlainTextEdit::setTextInteractionFlags(QPlainTextEdit* theWrappedObject, Qt::TextInteractionFlags flags) -{ - ( theWrappedObject->setTextInteractionFlags(flags)); -} - -void PythonQtWrapper_QPlainTextEdit::setUndoRedoEnabled(QPlainTextEdit* theWrappedObject, bool enable) -{ - ( theWrappedObject->setUndoRedoEnabled(enable)); -} - -void PythonQtWrapper_QPlainTextEdit::setWordWrapMode(QPlainTextEdit* theWrappedObject, QTextOption::WrapMode policy) -{ - ( theWrappedObject->setWordWrapMode(policy)); -} - -void PythonQtWrapper_QPlainTextEdit::showEvent(QPlainTextEdit* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_showEvent(arg__1)); -} - -bool PythonQtWrapper_QPlainTextEdit::tabChangesFocus(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->tabChangesFocus()); -} - -int PythonQtWrapper_QPlainTextEdit::tabStopWidth(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->tabStopWidth()); -} - -QTextCursor PythonQtWrapper_QPlainTextEdit::textCursor(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->textCursor()); -} - -Qt::TextInteractionFlags PythonQtWrapper_QPlainTextEdit::textInteractionFlags(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->textInteractionFlags()); -} - -void PythonQtWrapper_QPlainTextEdit::timerEvent(QPlainTextEdit* theWrappedObject, QTimerEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_timerEvent(e)); -} - -QString PythonQtWrapper_QPlainTextEdit::toPlainText(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->toPlainText()); -} - -void PythonQtWrapper_QPlainTextEdit::wheelEvent(QPlainTextEdit* theWrappedObject, QWheelEvent* e) -{ - ( ((PythonQtPublicPromoter_QPlainTextEdit*)theWrappedObject)->promoted_wheelEvent(e)); -} - -QTextOption::WrapMode PythonQtWrapper_QPlainTextEdit::wordWrapMode(QPlainTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->wordWrapMode()); -} - - - -void PythonQtShell_QPlastiqueStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::childEvent(arg__1); -} -void PythonQtShell_QPlastiqueStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::customEvent(arg__1); -} -void PythonQtShell_QPlastiqueStyle::drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&control, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::drawComplexControl(control, option, painter, widget); -} -void PythonQtShell_QPlastiqueStyle::drawControl(QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::drawControl(element, option, painter, widget); -} -void PythonQtShell_QPlastiqueStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QPlastiqueStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QPlastiqueStyle::drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::drawPrimitive(element, option, painter, widget); -} -bool PythonQtShell_QPlastiqueStyle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::event(arg__1); -} -bool PythonQtShell_QPlastiqueStyle::eventFilter(QObject* watched, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::eventFilter(watched, event); -} -QPixmap PythonQtShell_QPlastiqueStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::generatedIconPixmap(iconMode, pixmap, opt); -} -QStyle::SubControl PythonQtShell_QPlastiqueStyle::hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&control, (void*)&option, (void*)&pos, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::hitTestComplexControl(control, option, pos, widget); -} -QRect PythonQtShell_QPlastiqueStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::itemPixmapRect(r, flags, pixmap); -} -int PythonQtShell_QPlastiqueStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::pixelMetric(metric, option, widget); -} -void PythonQtShell_QPlastiqueStyle::polish(QApplication* app) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&app}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::polish(app); -} -void PythonQtShell_QPlastiqueStyle::polish(QPalette& pal) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&pal}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::polish(pal); -} -void PythonQtShell_QPlastiqueStyle::polish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::polish(widget); -} -QSize PythonQtShell_QPlastiqueStyle::sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&type, (void*)&option, (void*)&size, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::sizeFromContents(type, option, size, widget); -} -QPalette PythonQtShell_QPlastiqueStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::standardPalette(); -} -QPixmap PythonQtShell_QPlastiqueStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -int PythonQtShell_QPlastiqueStyle::styleHint(QStyle::StyleHint hint, const QStyleOption* option, const QWidget* widget, QStyleHintReturn* returnData) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&option, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::styleHint(hint, option, widget, returnData); -} -QRect PythonQtShell_QPlastiqueStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::subControlRect(cc, opt, sc, widget); -} -QRect PythonQtShell_QPlastiqueStyle::subElementRect(QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&element, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPlastiqueStyle::subElementRect(element, option, widget); -} -void PythonQtShell_QPlastiqueStyle::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::timerEvent(event); -} -void PythonQtShell_QPlastiqueStyle::unpolish(QApplication* app) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&app}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::unpolish(app); -} -void PythonQtShell_QPlastiqueStyle::unpolish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPlastiqueStyle::unpolish(widget); -} -QPlastiqueStyle* PythonQtWrapper_QPlastiqueStyle::new_QPlastiqueStyle() -{ -return new PythonQtShell_QPlastiqueStyle(); } - -void PythonQtWrapper_QPlastiqueStyle::drawComplexControl(QPlastiqueStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_drawComplexControl(control, option, painter, widget)); -} - -void PythonQtWrapper_QPlastiqueStyle::drawControl(QPlastiqueStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_drawControl(element, option, painter, widget)); -} - -void PythonQtWrapper_QPlastiqueStyle::drawPrimitive(QPlastiqueStyle* theWrappedObject, QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_drawPrimitive(element, option, painter, widget)); -} - -bool PythonQtWrapper_QPlastiqueStyle::eventFilter(QPlastiqueStyle* theWrappedObject, QObject* watched, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_eventFilter(watched, event)); -} - -QStyle::SubControl PythonQtWrapper_QPlastiqueStyle::hitTestComplexControl(QPlastiqueStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_hitTestComplexControl(control, option, pos, widget)); -} - -int PythonQtWrapper_QPlastiqueStyle::pixelMetric(QPlastiqueStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_pixelMetric(metric, option, widget)); -} - -void PythonQtWrapper_QPlastiqueStyle::polish(QPlastiqueStyle* theWrappedObject, QApplication* app) -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_polish(app)); -} - -void PythonQtWrapper_QPlastiqueStyle::polish(QPlastiqueStyle* theWrappedObject, QPalette& pal) -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_polish(pal)); -} - -void PythonQtWrapper_QPlastiqueStyle::polish(QPlastiqueStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_polish(widget)); -} - -QSize PythonQtWrapper_QPlastiqueStyle::sizeFromContents(QPlastiqueStyle* theWrappedObject, QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_sizeFromContents(type, option, size, widget)); -} - -QPalette PythonQtWrapper_QPlastiqueStyle::standardPalette(QPlastiqueStyle* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_standardPalette()); -} - -int PythonQtWrapper_QPlastiqueStyle::styleHint(QPlastiqueStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* option, const QWidget* widget, QStyleHintReturn* returnData) const -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_styleHint(hint, option, widget, returnData)); -} - -QRect PythonQtWrapper_QPlastiqueStyle::subControlRect(QPlastiqueStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_subControlRect(cc, opt, sc, widget)); -} - -QRect PythonQtWrapper_QPlastiqueStyle::subElementRect(QPlastiqueStyle* theWrappedObject, QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_subElementRect(element, option, widget)); -} - -void PythonQtWrapper_QPlastiqueStyle::timerEvent(QPlastiqueStyle* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_timerEvent(event)); -} - -void PythonQtWrapper_QPlastiqueStyle::unpolish(QPlastiqueStyle* theWrappedObject, QApplication* app) -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_unpolish(app)); -} - -void PythonQtWrapper_QPlastiqueStyle::unpolish(QPlastiqueStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QPlastiqueStyle*)theWrappedObject)->promoted_unpolish(widget)); -} - - - -QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF() -{ -return new QPolygonF(); } - -QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QPolygon& a) -{ -return new QPolygonF(a); } - -QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QPolygonF& a) -{ -return new QPolygonF(a); } - -QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QRectF& r) -{ -return new QPolygonF(r); } - -QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(const QVector& v) -{ -return new QPolygonF(v); } - -QPolygonF* PythonQtWrapper_QPolygonF::new_QPolygonF(int size) -{ -return new QPolygonF(size); } - -void PythonQtWrapper_QPolygonF::append(QPolygonF* theWrappedObject, const QPointF& t) -{ - ( theWrappedObject->append(t)); -} - -const QPointF* PythonQtWrapper_QPolygonF::at(QPolygonF* theWrappedObject, int i) const -{ - return &( theWrappedObject->at(i)); -} - -QRectF PythonQtWrapper_QPolygonF::boundingRect(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -int PythonQtWrapper_QPolygonF::capacity(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->capacity()); -} - -void PythonQtWrapper_QPolygonF::clear(QPolygonF* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QPolygonF::contains(QPolygonF* theWrappedObject, const QPointF& t) const -{ - return ( theWrappedObject->contains(t)); -} - -bool PythonQtWrapper_QPolygonF::containsPoint(QPolygonF* theWrappedObject, const QPointF& pt, Qt::FillRule fillRule) const -{ - return ( theWrappedObject->containsPoint(pt, fillRule)); -} - -int PythonQtWrapper_QPolygonF::count(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QPolygonF::count(QPolygonF* theWrappedObject, const QPointF& t) const -{ - return ( theWrappedObject->count(t)); -} - -bool PythonQtWrapper_QPolygonF::empty(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->empty()); -} - -bool PythonQtWrapper_QPolygonF::endsWith(QPolygonF* theWrappedObject, const QPointF& t) const -{ - return ( theWrappedObject->endsWith(t)); -} - -QVector* PythonQtWrapper_QPolygonF::fill(QPolygonF* theWrappedObject, const QPointF& t, int size) -{ - return &( theWrappedObject->fill(t, size)); -} - -const QPointF* PythonQtWrapper_QPolygonF::first(QPolygonF* theWrappedObject) const -{ - return &( theWrappedObject->first()); -} - -QVector PythonQtWrapper_QPolygonF::static_QPolygonF_fromList(const QList& list) -{ - return (QPolygonF::fromList(list)); -} - -int PythonQtWrapper_QPolygonF::indexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const -{ - return ( theWrappedObject->indexOf(t, from)); -} - -QPolygonF PythonQtWrapper_QPolygonF::intersected(QPolygonF* theWrappedObject, const QPolygonF& r) const -{ - return ( theWrappedObject->intersected(r)); -} - -bool PythonQtWrapper_QPolygonF::isClosed(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->isClosed()); -} - -bool PythonQtWrapper_QPolygonF::isEmpty(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -const QPointF* PythonQtWrapper_QPolygonF::last(QPolygonF* theWrappedObject) const -{ - return &( theWrappedObject->last()); -} - -int PythonQtWrapper_QPolygonF::lastIndexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const -{ - return ( theWrappedObject->lastIndexOf(t, from)); -} - -QVector PythonQtWrapper_QPolygonF::mid(QPolygonF* theWrappedObject, int pos, int length) const -{ - return ( theWrappedObject->mid(pos, length)); -} - -bool PythonQtWrapper_QPolygonF::__ne__(QPolygonF* theWrappedObject, const QVector& v) const -{ - return ( (*theWrappedObject)!= v); -} - -QPolygonF PythonQtWrapper_QPolygonF::__mul__(QPolygonF* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QPolygonF PythonQtWrapper_QPolygonF::__mul__(QPolygonF* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -void PythonQtWrapper_QPolygonF::writeTo(QPolygonF* theWrappedObject, QDataStream& stream) -{ - stream << (*theWrappedObject); -} - -bool PythonQtWrapper_QPolygonF::__eq__(QPolygonF* theWrappedObject, const QVector& v) const -{ - return ( (*theWrappedObject)== v); -} - -void PythonQtWrapper_QPolygonF::readFrom(QPolygonF* theWrappedObject, QDataStream& stream) -{ - stream >> (*theWrappedObject); -} - -void PythonQtWrapper_QPolygonF::pop_back(QPolygonF* theWrappedObject) -{ - ( theWrappedObject->pop_back()); -} - -void PythonQtWrapper_QPolygonF::pop_front(QPolygonF* theWrappedObject) -{ - ( theWrappedObject->pop_front()); -} - -void PythonQtWrapper_QPolygonF::prepend(QPolygonF* theWrappedObject, const QPointF& t) -{ - ( theWrappedObject->prepend(t)); -} - -void PythonQtWrapper_QPolygonF::push_back(QPolygonF* theWrappedObject, const QPointF& t) -{ - ( theWrappedObject->push_back(t)); -} - -void PythonQtWrapper_QPolygonF::push_front(QPolygonF* theWrappedObject, const QPointF& t) -{ - ( theWrappedObject->push_front(t)); -} - -void PythonQtWrapper_QPolygonF::remove(QPolygonF* theWrappedObject, int i) -{ - ( theWrappedObject->remove(i)); -} - -void PythonQtWrapper_QPolygonF::remove(QPolygonF* theWrappedObject, int i, int n) -{ - ( theWrappedObject->remove(i, n)); -} - -void PythonQtWrapper_QPolygonF::replace(QPolygonF* theWrappedObject, int i, const QPointF& t) -{ - ( theWrappedObject->replace(i, t)); -} - -void PythonQtWrapper_QPolygonF::reserve(QPolygonF* theWrappedObject, int size) -{ - ( theWrappedObject->reserve(size)); -} - -void PythonQtWrapper_QPolygonF::resize(QPolygonF* theWrappedObject, int size) -{ - ( theWrappedObject->resize(size)); -} - -void PythonQtWrapper_QPolygonF::setSharable(QPolygonF* theWrappedObject, bool sharable) -{ - ( theWrappedObject->setSharable(sharable)); -} - -int PythonQtWrapper_QPolygonF::size(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -void PythonQtWrapper_QPolygonF::squeeze(QPolygonF* theWrappedObject) -{ - ( theWrappedObject->squeeze()); -} - -bool PythonQtWrapper_QPolygonF::startsWith(QPolygonF* theWrappedObject, const QPointF& t) const -{ - return ( theWrappedObject->startsWith(t)); -} - -QPolygonF PythonQtWrapper_QPolygonF::subtracted(QPolygonF* theWrappedObject, const QPolygonF& r) const -{ - return ( theWrappedObject->subtracted(r)); -} - -QList PythonQtWrapper_QPolygonF::toList(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->toList()); -} - -QPolygon PythonQtWrapper_QPolygonF::toPolygon(QPolygonF* theWrappedObject) const -{ - return ( theWrappedObject->toPolygon()); -} - -void PythonQtWrapper_QPolygonF::translate(QPolygonF* theWrappedObject, const QPointF& offset) -{ - ( theWrappedObject->translate(offset)); -} - -void PythonQtWrapper_QPolygonF::translate(QPolygonF* theWrappedObject, qreal dx, qreal dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QPolygonF PythonQtWrapper_QPolygonF::translated(QPolygonF* theWrappedObject, const QPointF& offset) const -{ - return ( theWrappedObject->translated(offset)); -} - -QPolygonF PythonQtWrapper_QPolygonF::translated(QPolygonF* theWrappedObject, qreal dx, qreal dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -QPolygonF PythonQtWrapper_QPolygonF::united(QPolygonF* theWrappedObject, const QPolygonF& r) const -{ - return ( theWrappedObject->united(r)); -} - -QPointF PythonQtWrapper_QPolygonF::value(QPolygonF* theWrappedObject, int i) const -{ - return ( theWrappedObject->value(i)); -} - -QPointF PythonQtWrapper_QPolygonF::value(QPolygonF* theWrappedObject, int i, const QPointF& defaultValue) const -{ - return ( theWrappedObject->value(i, defaultValue)); -} - -QString PythonQtWrapper_QPolygonF::py_toString(QPolygonF* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.h deleted file mode 100644 index 93ba9e038..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.h +++ /dev/null @@ -1,2273 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtWrapper_QMatrix4x4 : public QObject -{ Q_OBJECT -public: -public slots: -QMatrix4x4* new_QMatrix4x4(); -QMatrix4x4* new_QMatrix4x4(const QMatrix& matrix); -QMatrix4x4* new_QMatrix4x4(const QTransform& transform); -QMatrix4x4* new_QMatrix4x4(const qreal* values); -QMatrix4x4* new_QMatrix4x4(const qreal* values, int cols, int rows); -QMatrix4x4* new_QMatrix4x4(qreal m11, qreal m12, qreal m13, qreal m14, qreal m21, qreal m22, qreal m23, qreal m24, qreal m31, qreal m32, qreal m33, qreal m34, qreal m41, qreal m42, qreal m43, qreal m44); -QMatrix4x4* new_QMatrix4x4(const QMatrix4x4& other) { -QMatrix4x4* a = new QMatrix4x4(); -*((QMatrix4x4*)a) = other; -return a; } -void delete_QMatrix4x4(QMatrix4x4* obj) { delete obj; } - QVector4D column(QMatrix4x4* theWrappedObject, int index) const; - const qreal* constData(QMatrix4x4* theWrappedObject) const; - void copyDataTo(QMatrix4x4* theWrappedObject, qreal* values) const; - qreal* data(QMatrix4x4* theWrappedObject); - qreal determinant(QMatrix4x4* theWrappedObject) const; - void fill(QMatrix4x4* theWrappedObject, qreal value); - void flipCoordinates(QMatrix4x4* theWrappedObject); - void frustum(QMatrix4x4* theWrappedObject, qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane); - QMatrix4x4 inverted(QMatrix4x4* theWrappedObject, bool* invertible = 0) const; - bool isIdentity(QMatrix4x4* theWrappedObject) const; - void lookAt(QMatrix4x4* theWrappedObject, const QVector3D& eye, const QVector3D& center, const QVector3D& up); - QPoint map(QMatrix4x4* theWrappedObject, const QPoint& point) const; - QPointF map(QMatrix4x4* theWrappedObject, const QPointF& point) const; - QVector3D map(QMatrix4x4* theWrappedObject, const QVector3D& point) const; - QVector4D map(QMatrix4x4* theWrappedObject, const QVector4D& point) const; - QRect mapRect(QMatrix4x4* theWrappedObject, const QRect& rect) const; - QRectF mapRect(QMatrix4x4* theWrappedObject, const QRectF& rect) const; - QVector3D mapVector(QMatrix4x4* theWrappedObject, const QVector3D& vector) const; - bool __ne__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const; - qreal* operator_cast_(QMatrix4x4* theWrappedObject, int row, int column); - QMatrix4x4 __mul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2); - QPoint __mul__(QMatrix4x4* theWrappedObject, const QPoint& point); - QPointF __mul__(QMatrix4x4* theWrappedObject, const QPointF& point); - QVector3D __mul__(QMatrix4x4* theWrappedObject, const QVector3D& vector); - QVector4D __mul__(QMatrix4x4* theWrappedObject, const QVector4D& vector); - QMatrix4x4 __mul__(QMatrix4x4* theWrappedObject, qreal factor); - QMatrix4x4* __imul__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other); - QMatrix4x4* __imul__(QMatrix4x4* theWrappedObject, qreal factor); - QMatrix4x4 __add__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2); - QMatrix4x4* __iadd__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other); - QMatrix4x4 __sub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& m2); - QMatrix4x4* __isub__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other); - QMatrix4x4 __div__(QMatrix4x4* theWrappedObject, qreal divisor); - QMatrix4x4* __idiv__(QMatrix4x4* theWrappedObject, qreal divisor); - void writeTo(QMatrix4x4* theWrappedObject, QDataStream& arg__1); - bool __eq__(QMatrix4x4* theWrappedObject, const QMatrix4x4& other) const; - void readFrom(QMatrix4x4* theWrappedObject, QDataStream& arg__1); - void optimize(QMatrix4x4* theWrappedObject); - void ortho(QMatrix4x4* theWrappedObject, const QRect& rect); - void ortho(QMatrix4x4* theWrappedObject, const QRectF& rect); - void ortho(QMatrix4x4* theWrappedObject, qreal left, qreal right, qreal bottom, qreal top, qreal nearPlane, qreal farPlane); - void perspective(QMatrix4x4* theWrappedObject, qreal angle, qreal aspect, qreal nearPlane, qreal farPlane); - void rotate(QMatrix4x4* theWrappedObject, const QQuaternion& quaternion); - void rotate(QMatrix4x4* theWrappedObject, qreal angle, const QVector3D& vector); - void rotate(QMatrix4x4* theWrappedObject, qreal angle, qreal x, qreal y, qreal z = 0.0f); - QVector4D row(QMatrix4x4* theWrappedObject, int index) const; - void scale(QMatrix4x4* theWrappedObject, const QVector3D& vector); - void scale(QMatrix4x4* theWrappedObject, qreal factor); - void scale(QMatrix4x4* theWrappedObject, qreal x, qreal y); - void scale(QMatrix4x4* theWrappedObject, qreal x, qreal y, qreal z); - void setColumn(QMatrix4x4* theWrappedObject, int index, const QVector4D& value); - void setRow(QMatrix4x4* theWrappedObject, int index, const QVector4D& value); - void setToIdentity(QMatrix4x4* theWrappedObject); - QMatrix toAffine(QMatrix4x4* theWrappedObject) const; - QTransform toTransform(QMatrix4x4* theWrappedObject) const; - QTransform toTransform(QMatrix4x4* theWrappedObject, qreal distanceToPlane) const; - void translate(QMatrix4x4* theWrappedObject, const QVector3D& vector); - void translate(QMatrix4x4* theWrappedObject, qreal x, qreal y); - void translate(QMatrix4x4* theWrappedObject, qreal x, qreal y, qreal z); - QMatrix4x4 transposed(QMatrix4x4* theWrappedObject) const; - QString py_toString(QMatrix4x4*); -}; - - - - - -class PythonQtShell_QMdiArea : public QMdiArea -{ -public: - PythonQtShell_QMdiArea(QWidget* parent = 0):QMdiArea(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* childEvent); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* object, QEvent* event); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* paintEvent); -virtual void resizeEvent(QResizeEvent* resizeEvent); -virtual void scrollContentsBy(int dx, int dy); -virtual void showEvent(QShowEvent* showEvent); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* timerEvent); -virtual bool viewportEvent(QEvent* event); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMdiArea : public QMdiArea -{ public: -inline void promoted_childEvent(QChildEvent* childEvent) { QMdiArea::childEvent(childEvent); } -inline bool promoted_event(QEvent* event) { return QMdiArea::event(event); } -inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QMdiArea::eventFilter(object, event); } -inline void promoted_paintEvent(QPaintEvent* paintEvent) { QMdiArea::paintEvent(paintEvent); } -inline void promoted_resizeEvent(QResizeEvent* resizeEvent) { QMdiArea::resizeEvent(resizeEvent); } -inline void promoted_scrollContentsBy(int dx, int dy) { QMdiArea::scrollContentsBy(dx, dy); } -inline void promoted_showEvent(QShowEvent* showEvent) { QMdiArea::showEvent(showEvent); } -inline void promoted_timerEvent(QTimerEvent* timerEvent) { QMdiArea::timerEvent(timerEvent); } -inline bool promoted_viewportEvent(QEvent* event) { return QMdiArea::viewportEvent(event); } -}; - -class PythonQtWrapper_QMdiArea : public QObject -{ Q_OBJECT -public: -Q_ENUMS(AreaOption ) -Q_FLAGS(AreaOptions ) -enum AreaOption{ - DontMaximizeSubWindowOnActivation = QMdiArea::DontMaximizeSubWindowOnActivation}; -Q_DECLARE_FLAGS(AreaOptions, AreaOption) -public slots: -QMdiArea* new_QMdiArea(QWidget* parent = 0); -void delete_QMdiArea(QMdiArea* obj) { delete obj; } - QMdiArea::WindowOrder activationOrder(QMdiArea* theWrappedObject) const; - QMdiSubWindow* activeSubWindow(QMdiArea* theWrappedObject) const; - QMdiSubWindow* addSubWindow(QMdiArea* theWrappedObject, QWidget* widget, Qt::WindowFlags flags = 0); - QBrush background(QMdiArea* theWrappedObject) const; - void childEvent(QMdiArea* theWrappedObject, QChildEvent* childEvent); - QMdiSubWindow* currentSubWindow(QMdiArea* theWrappedObject) const; - bool documentMode(QMdiArea* theWrappedObject) const; - bool event(QMdiArea* theWrappedObject, QEvent* event); - bool eventFilter(QMdiArea* theWrappedObject, QObject* object, QEvent* event); - QSize minimumSizeHint(QMdiArea* theWrappedObject) const; - void paintEvent(QMdiArea* theWrappedObject, QPaintEvent* paintEvent); - void removeSubWindow(QMdiArea* theWrappedObject, QWidget* widget); - void resizeEvent(QMdiArea* theWrappedObject, QResizeEvent* resizeEvent); - void scrollContentsBy(QMdiArea* theWrappedObject, int dx, int dy); - void setActivationOrder(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order); - void setBackground(QMdiArea* theWrappedObject, const QBrush& background); - void setDocumentMode(QMdiArea* theWrappedObject, bool enabled); - void setOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption option, bool on = true); - void setTabPosition(QMdiArea* theWrappedObject, QTabWidget::TabPosition position); - void setTabShape(QMdiArea* theWrappedObject, QTabWidget::TabShape shape); - void setViewMode(QMdiArea* theWrappedObject, QMdiArea::ViewMode mode); - void showEvent(QMdiArea* theWrappedObject, QShowEvent* showEvent); - QSize sizeHint(QMdiArea* theWrappedObject) const; - QList subWindowList(QMdiArea* theWrappedObject, QMdiArea::WindowOrder order = QMdiArea::CreationOrder) const; - QTabWidget::TabPosition tabPosition(QMdiArea* theWrappedObject) const; - QTabWidget::TabShape tabShape(QMdiArea* theWrappedObject) const; - bool testOption(QMdiArea* theWrappedObject, QMdiArea::AreaOption opton) const; - void timerEvent(QMdiArea* theWrappedObject, QTimerEvent* timerEvent); - QMdiArea::ViewMode viewMode(QMdiArea* theWrappedObject) const; - bool viewportEvent(QMdiArea* theWrappedObject, QEvent* event); -}; - - - - - -class PythonQtShell_QMdiSubWindow : public QMdiSubWindow -{ -public: - PythonQtShell_QMdiSubWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0):QMdiSubWindow(parent, flags),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* changeEvent); -virtual void childEvent(QChildEvent* childEvent); -virtual void closeEvent(QCloseEvent* closeEvent); -virtual void contextMenuEvent(QContextMenuEvent* contextMenuEvent); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* object, QEvent* event); -virtual void focusInEvent(QFocusEvent* focusInEvent); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* focusOutEvent); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* hideEvent); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* keyEvent); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* leaveEvent); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* mouseEvent); -virtual void mouseMoveEvent(QMouseEvent* mouseEvent); -virtual void mousePressEvent(QMouseEvent* mouseEvent); -virtual void mouseReleaseEvent(QMouseEvent* mouseEvent); -virtual void moveEvent(QMoveEvent* moveEvent); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* paintEvent); -virtual void resizeEvent(QResizeEvent* resizeEvent); -virtual void showEvent(QShowEvent* showEvent); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* timerEvent); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMdiSubWindow : public QMdiSubWindow -{ public: -inline void promoted_changeEvent(QEvent* changeEvent) { QMdiSubWindow::changeEvent(changeEvent); } -inline void promoted_childEvent(QChildEvent* childEvent) { QMdiSubWindow::childEvent(childEvent); } -inline void promoted_closeEvent(QCloseEvent* closeEvent) { QMdiSubWindow::closeEvent(closeEvent); } -inline void promoted_contextMenuEvent(QContextMenuEvent* contextMenuEvent) { QMdiSubWindow::contextMenuEvent(contextMenuEvent); } -inline bool promoted_event(QEvent* event) { return QMdiSubWindow::event(event); } -inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QMdiSubWindow::eventFilter(object, event); } -inline void promoted_focusInEvent(QFocusEvent* focusInEvent) { QMdiSubWindow::focusInEvent(focusInEvent); } -inline void promoted_focusOutEvent(QFocusEvent* focusOutEvent) { QMdiSubWindow::focusOutEvent(focusOutEvent); } -inline void promoted_hideEvent(QHideEvent* hideEvent) { QMdiSubWindow::hideEvent(hideEvent); } -inline void promoted_keyPressEvent(QKeyEvent* keyEvent) { QMdiSubWindow::keyPressEvent(keyEvent); } -inline void promoted_leaveEvent(QEvent* leaveEvent) { QMdiSubWindow::leaveEvent(leaveEvent); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mouseDoubleClickEvent(mouseEvent); } -inline void promoted_mouseMoveEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mouseMoveEvent(mouseEvent); } -inline void promoted_mousePressEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mousePressEvent(mouseEvent); } -inline void promoted_mouseReleaseEvent(QMouseEvent* mouseEvent) { QMdiSubWindow::mouseReleaseEvent(mouseEvent); } -inline void promoted_moveEvent(QMoveEvent* moveEvent) { QMdiSubWindow::moveEvent(moveEvent); } -inline void promoted_paintEvent(QPaintEvent* paintEvent) { QMdiSubWindow::paintEvent(paintEvent); } -inline void promoted_resizeEvent(QResizeEvent* resizeEvent) { QMdiSubWindow::resizeEvent(resizeEvent); } -inline void promoted_showEvent(QShowEvent* showEvent) { QMdiSubWindow::showEvent(showEvent); } -inline void promoted_timerEvent(QTimerEvent* timerEvent) { QMdiSubWindow::timerEvent(timerEvent); } -}; - -class PythonQtWrapper_QMdiSubWindow : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SubWindowOption ) -Q_FLAGS(SubWindowOptions ) -enum SubWindowOption{ - AllowOutsideAreaHorizontally = QMdiSubWindow::AllowOutsideAreaHorizontally, AllowOutsideAreaVertically = QMdiSubWindow::AllowOutsideAreaVertically, RubberBandResize = QMdiSubWindow::RubberBandResize, RubberBandMove = QMdiSubWindow::RubberBandMove}; -Q_DECLARE_FLAGS(SubWindowOptions, SubWindowOption) -public slots: -QMdiSubWindow* new_QMdiSubWindow(QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QMdiSubWindow(QMdiSubWindow* obj) { delete obj; } - void changeEvent(QMdiSubWindow* theWrappedObject, QEvent* changeEvent); - void childEvent(QMdiSubWindow* theWrappedObject, QChildEvent* childEvent); - void closeEvent(QMdiSubWindow* theWrappedObject, QCloseEvent* closeEvent); - void contextMenuEvent(QMdiSubWindow* theWrappedObject, QContextMenuEvent* contextMenuEvent); - bool event(QMdiSubWindow* theWrappedObject, QEvent* event); - bool eventFilter(QMdiSubWindow* theWrappedObject, QObject* object, QEvent* event); - void focusInEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusInEvent); - void focusOutEvent(QMdiSubWindow* theWrappedObject, QFocusEvent* focusOutEvent); - void hideEvent(QMdiSubWindow* theWrappedObject, QHideEvent* hideEvent); - bool isShaded(QMdiSubWindow* theWrappedObject) const; - void keyPressEvent(QMdiSubWindow* theWrappedObject, QKeyEvent* keyEvent); - int keyboardPageStep(QMdiSubWindow* theWrappedObject) const; - int keyboardSingleStep(QMdiSubWindow* theWrappedObject) const; - void leaveEvent(QMdiSubWindow* theWrappedObject, QEvent* leaveEvent); - QWidget* maximizedButtonsWidget(QMdiSubWindow* theWrappedObject) const; - QWidget* maximizedSystemMenuIconWidget(QMdiSubWindow* theWrappedObject) const; - QMdiArea* mdiArea(QMdiSubWindow* theWrappedObject) const; - QSize minimumSizeHint(QMdiSubWindow* theWrappedObject) const; - void mouseDoubleClickEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); - void mouseMoveEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); - void mousePressEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); - void mouseReleaseEvent(QMdiSubWindow* theWrappedObject, QMouseEvent* mouseEvent); - void moveEvent(QMdiSubWindow* theWrappedObject, QMoveEvent* moveEvent); - void paintEvent(QMdiSubWindow* theWrappedObject, QPaintEvent* paintEvent); - void resizeEvent(QMdiSubWindow* theWrappedObject, QResizeEvent* resizeEvent); - void setKeyboardPageStep(QMdiSubWindow* theWrappedObject, int step); - void setKeyboardSingleStep(QMdiSubWindow* theWrappedObject, int step); - void setOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption option, bool on = true); - void setSystemMenu(QMdiSubWindow* theWrappedObject, QMenu* systemMenu); - void setWidget(QMdiSubWindow* theWrappedObject, QWidget* widget); - void showEvent(QMdiSubWindow* theWrappedObject, QShowEvent* showEvent); - QSize sizeHint(QMdiSubWindow* theWrappedObject) const; - QMenu* systemMenu(QMdiSubWindow* theWrappedObject) const; - bool testOption(QMdiSubWindow* theWrappedObject, QMdiSubWindow::SubWindowOption arg__1) const; - void timerEvent(QMdiSubWindow* theWrappedObject, QTimerEvent* timerEvent); - QWidget* widget(QMdiSubWindow* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QMenu : public QMenu -{ -public: - PythonQtShell_QMenu(QWidget* parent = 0):QMenu(parent),_wrapper(NULL) {}; - PythonQtShell_QMenu(const QString& title, QWidget* parent = 0):QMenu(title, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMenu : public QMenu -{ public: -inline void promoted_actionEvent(QActionEvent* arg__1) { QMenu::actionEvent(arg__1); } -inline void promoted_changeEvent(QEvent* arg__1) { QMenu::changeEvent(arg__1); } -inline void promoted_enterEvent(QEvent* arg__1) { QMenu::enterEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QMenu::event(arg__1); } -inline bool promoted_focusNextPrevChild(bool next) { return QMenu::focusNextPrevChild(next); } -inline void promoted_hideEvent(QHideEvent* arg__1) { QMenu::hideEvent(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QMenu::keyPressEvent(arg__1); } -inline void promoted_leaveEvent(QEvent* arg__1) { QMenu::leaveEvent(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QMenu::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QMenu::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QMenu::mouseReleaseEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QMenu::paintEvent(arg__1); } -inline void promoted_timerEvent(QTimerEvent* arg__1) { QMenu::timerEvent(arg__1); } -inline void promoted_wheelEvent(QWheelEvent* arg__1) { QMenu::wheelEvent(arg__1); } -}; - -class PythonQtWrapper_QMenu : public QObject -{ Q_OBJECT -public: -public slots: -QMenu* new_QMenu(QWidget* parent = 0); -QMenu* new_QMenu(const QString& title, QWidget* parent = 0); -void delete_QMenu(QMenu* obj) { delete obj; } - QAction* actionAt(QMenu* theWrappedObject, const QPoint& arg__1) const; - void actionEvent(QMenu* theWrappedObject, QActionEvent* arg__1); - QRect actionGeometry(QMenu* theWrappedObject, QAction* arg__1) const; - QAction* activeAction(QMenu* theWrappedObject) const; - void addAction(QMenu* theWrappedObject, QAction* action); - QAction* addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text); - QAction* addAction(QMenu* theWrappedObject, const QIcon& icon, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut = 0); - QAction* addAction(QMenu* theWrappedObject, const QString& text); - QAction* addAction(QMenu* theWrappedObject, const QString& text, const QObject* receiver, const char* member, const QKeySequence& shortcut = 0); - QAction* addMenu(QMenu* theWrappedObject, QMenu* menu); - QMenu* addMenu(QMenu* theWrappedObject, const QIcon& icon, const QString& title); - QMenu* addMenu(QMenu* theWrappedObject, const QString& title); - QAction* addSeparator(QMenu* theWrappedObject); - void changeEvent(QMenu* theWrappedObject, QEvent* arg__1); - void clear(QMenu* theWrappedObject); - QAction* defaultAction(QMenu* theWrappedObject) const; - void enterEvent(QMenu* theWrappedObject, QEvent* arg__1); - bool event(QMenu* theWrappedObject, QEvent* arg__1); - QAction* exec(QMenu* theWrappedObject); - QAction* static_QMenu_exec(QList actions, const QPoint& pos, QAction* at = 0); - QAction* static_QMenu_exec(QList actions, const QPoint& pos, QAction* at, QWidget* parent); - QAction* exec(QMenu* theWrappedObject, const QPoint& pos, QAction* at = 0); - bool focusNextPrevChild(QMenu* theWrappedObject, bool next); - void hideEvent(QMenu* theWrappedObject, QHideEvent* arg__1); - void hideTearOffMenu(QMenu* theWrappedObject); - QIcon icon(QMenu* theWrappedObject) const; - QAction* insertMenu(QMenu* theWrappedObject, QAction* before, QMenu* menu); - QAction* insertSeparator(QMenu* theWrappedObject, QAction* before); - bool isEmpty(QMenu* theWrappedObject) const; - bool isTearOffEnabled(QMenu* theWrappedObject) const; - bool isTearOffMenuVisible(QMenu* theWrappedObject) const; - void keyPressEvent(QMenu* theWrappedObject, QKeyEvent* arg__1); - void leaveEvent(QMenu* theWrappedObject, QEvent* arg__1); - QAction* menuAction(QMenu* theWrappedObject) const; - void mouseMoveEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QMenu* theWrappedObject, QMouseEvent* arg__1); - void paintEvent(QMenu* theWrappedObject, QPaintEvent* arg__1); - void popup(QMenu* theWrappedObject, const QPoint& pos, QAction* at = 0); - bool separatorsCollapsible(QMenu* theWrappedObject) const; - void setActiveAction(QMenu* theWrappedObject, QAction* act); - void setDefaultAction(QMenu* theWrappedObject, QAction* arg__1); - void setIcon(QMenu* theWrappedObject, const QIcon& icon); - void setSeparatorsCollapsible(QMenu* theWrappedObject, bool collapse); - void setTearOffEnabled(QMenu* theWrappedObject, bool arg__1); - void setTitle(QMenu* theWrappedObject, const QString& title); - QSize sizeHint(QMenu* theWrappedObject) const; - void timerEvent(QMenu* theWrappedObject, QTimerEvent* arg__1); - QString title(QMenu* theWrappedObject) const; - void wheelEvent(QMenu* theWrappedObject, QWheelEvent* arg__1); - - QAction* addAction (QMenu* menu, const QString & text, PyObject* callable, const QKeySequence & shortcut = 0) { - QAction* a = menu->addAction(text); - a->setShortcut(shortcut); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - - QAction* addAction (QMenu* menu, const QIcon& icon, const QString& text, PyObject* callable, const QKeySequence& shortcut = 0) - { - QAction* a = menu->addAction(text); - a->setIcon(icon); - a->setShortcut(shortcut); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - -}; - - - - - -class PythonQtShell_QMenuBar : public QMenuBar -{ -public: - PythonQtShell_QMenuBar(QWidget* parent = 0):QMenuBar(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void setVisible(bool visible); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMenuBar : public QMenuBar -{ public: -inline void promoted_actionEvent(QActionEvent* arg__1) { QMenuBar::actionEvent(arg__1); } -inline void promoted_changeEvent(QEvent* arg__1) { QMenuBar::changeEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QMenuBar::event(arg__1); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QMenuBar::eventFilter(arg__1, arg__2); } -inline void promoted_focusInEvent(QFocusEvent* arg__1) { QMenuBar::focusInEvent(arg__1); } -inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QMenuBar::focusOutEvent(arg__1); } -inline int promoted_heightForWidth(int arg__1) const { return QMenuBar::heightForWidth(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QMenuBar::keyPressEvent(arg__1); } -inline void promoted_leaveEvent(QEvent* arg__1) { QMenuBar::leaveEvent(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QMenuBar::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QMenuBar::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QMenuBar::mouseReleaseEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QMenuBar::paintEvent(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QMenuBar::resizeEvent(arg__1); } -inline void promoted_setVisible(bool visible) { QMenuBar::setVisible(visible); } -inline void promoted_timerEvent(QTimerEvent* arg__1) { QMenuBar::timerEvent(arg__1); } -}; - -class PythonQtWrapper_QMenuBar : public QObject -{ Q_OBJECT -public: -public slots: -QMenuBar* new_QMenuBar(QWidget* parent = 0); -void delete_QMenuBar(QMenuBar* obj) { delete obj; } - QAction* actionAt(QMenuBar* theWrappedObject, const QPoint& arg__1) const; - void actionEvent(QMenuBar* theWrappedObject, QActionEvent* arg__1); - QRect actionGeometry(QMenuBar* theWrappedObject, QAction* arg__1) const; - QAction* activeAction(QMenuBar* theWrappedObject) const; - void addAction(QMenuBar* theWrappedObject, QAction* action); - QAction* addAction(QMenuBar* theWrappedObject, const QString& text); - QAction* addAction(QMenuBar* theWrappedObject, const QString& text, const QObject* receiver, const char* member); - QAction* addMenu(QMenuBar* theWrappedObject, QMenu* menu); - QMenu* addMenu(QMenuBar* theWrappedObject, const QIcon& icon, const QString& title); - QMenu* addMenu(QMenuBar* theWrappedObject, const QString& title); - QAction* addSeparator(QMenuBar* theWrappedObject); - void changeEvent(QMenuBar* theWrappedObject, QEvent* arg__1); - void clear(QMenuBar* theWrappedObject); - QWidget* cornerWidget(QMenuBar* theWrappedObject, Qt::Corner corner = Qt::TopRightCorner) const; - bool event(QMenuBar* theWrappedObject, QEvent* arg__1); - bool eventFilter(QMenuBar* theWrappedObject, QObject* arg__1, QEvent* arg__2); - void focusInEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1); - void focusOutEvent(QMenuBar* theWrappedObject, QFocusEvent* arg__1); - int heightForWidth(QMenuBar* theWrappedObject, int arg__1) const; - QAction* insertMenu(QMenuBar* theWrappedObject, QAction* before, QMenu* menu); - QAction* insertSeparator(QMenuBar* theWrappedObject, QAction* before); - bool isDefaultUp(QMenuBar* theWrappedObject) const; - bool isNativeMenuBar(QMenuBar* theWrappedObject) const; - void keyPressEvent(QMenuBar* theWrappedObject, QKeyEvent* arg__1); - void leaveEvent(QMenuBar* theWrappedObject, QEvent* arg__1); - QSize minimumSizeHint(QMenuBar* theWrappedObject) const; - void mouseMoveEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QMenuBar* theWrappedObject, QMouseEvent* arg__1); - void paintEvent(QMenuBar* theWrappedObject, QPaintEvent* arg__1); - void resizeEvent(QMenuBar* theWrappedObject, QResizeEvent* arg__1); - void setActiveAction(QMenuBar* theWrappedObject, QAction* action); - void setCornerWidget(QMenuBar* theWrappedObject, QWidget* w, Qt::Corner corner = Qt::TopRightCorner); - void setDefaultUp(QMenuBar* theWrappedObject, bool arg__1); - void setNativeMenuBar(QMenuBar* theWrappedObject, bool nativeMenuBar); - QSize sizeHint(QMenuBar* theWrappedObject) const; - void timerEvent(QMenuBar* theWrappedObject, QTimerEvent* arg__1); - - QAction* addAction (QMenuBar* menu, const QString & text, PyObject* callable) - { - QAction* a = menu->addAction(text); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - -}; - - - - - -class PythonQtShell_QMessageBox : public QMessageBox -{ -public: - PythonQtShell_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::NoButton, QWidget* parent = 0, Qt::WindowFlags flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint):QMessageBox(icon, title, text, buttons, parent, flags),_wrapper(NULL) {}; - PythonQtShell_QMessageBox(QWidget* parent = 0):QMessageBox(parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int arg__1); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMessageBox : public QMessageBox -{ public: -inline void promoted_changeEvent(QEvent* event) { QMessageBox::changeEvent(event); } -inline void promoted_closeEvent(QCloseEvent* event) { QMessageBox::closeEvent(event); } -inline bool promoted_event(QEvent* e) { return QMessageBox::event(e); } -inline void promoted_keyPressEvent(QKeyEvent* event) { QMessageBox::keyPressEvent(event); } -inline void promoted_resizeEvent(QResizeEvent* event) { QMessageBox::resizeEvent(event); } -inline void promoted_showEvent(QShowEvent* event) { QMessageBox::showEvent(event); } -}; - -class PythonQtWrapper_QMessageBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ButtonRole StandardButton ) -Q_FLAGS(StandardButtons ) -enum ButtonRole{ - InvalidRole = QMessageBox::InvalidRole, AcceptRole = QMessageBox::AcceptRole, RejectRole = QMessageBox::RejectRole, DestructiveRole = QMessageBox::DestructiveRole, ActionRole = QMessageBox::ActionRole, HelpRole = QMessageBox::HelpRole, YesRole = QMessageBox::YesRole, NoRole = QMessageBox::NoRole, ResetRole = QMessageBox::ResetRole, ApplyRole = QMessageBox::ApplyRole, NRoles = QMessageBox::NRoles}; -enum StandardButton{ - NoButton = QMessageBox::NoButton, Ok = QMessageBox::Ok, Save = QMessageBox::Save, SaveAll = QMessageBox::SaveAll, Open = QMessageBox::Open, Yes = QMessageBox::Yes, YesToAll = QMessageBox::YesToAll, No = QMessageBox::No, NoToAll = QMessageBox::NoToAll, Abort = QMessageBox::Abort, Retry = QMessageBox::Retry, Ignore = QMessageBox::Ignore, Close = QMessageBox::Close, Cancel = QMessageBox::Cancel, Discard = QMessageBox::Discard, Help = QMessageBox::Help, Apply = QMessageBox::Apply, Reset = QMessageBox::Reset, RestoreDefaults = QMessageBox::RestoreDefaults, FirstButton = QMessageBox::FirstButton, LastButton = QMessageBox::LastButton, YesAll = QMessageBox::YesAll, NoAll = QMessageBox::NoAll, Default = QMessageBox::Default, Escape = QMessageBox::Escape, FlagMask = QMessageBox::FlagMask, ButtonMask = QMessageBox::ButtonMask}; -Q_DECLARE_FLAGS(StandardButtons, StandardButton) -public slots: -QMessageBox* new_QMessageBox(QMessageBox::Icon icon, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::NoButton, QWidget* parent = 0, Qt::WindowFlags flags = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint); -QMessageBox* new_QMessageBox(QWidget* parent = 0); -void delete_QMessageBox(QMessageBox* obj) { delete obj; } - void static_QMessageBox_about(QWidget* parent, const QString& title, const QString& text); - void static_QMessageBox_aboutQt(QWidget* parent, const QString& title = QString()); - void addButton(QMessageBox* theWrappedObject, QAbstractButton* button, QMessageBox::ButtonRole role); - QPushButton* addButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); - QPushButton* addButton(QMessageBox* theWrappedObject, const QString& text, QMessageBox::ButtonRole role); - QAbstractButton* button(QMessageBox* theWrappedObject, QMessageBox::StandardButton which) const; - QMessageBox::ButtonRole buttonRole(QMessageBox* theWrappedObject, QAbstractButton* button) const; - QList buttons(QMessageBox* theWrappedObject) const; - void changeEvent(QMessageBox* theWrappedObject, QEvent* event); - QAbstractButton* clickedButton(QMessageBox* theWrappedObject) const; - void closeEvent(QMessageBox* theWrappedObject, QCloseEvent* event); - QMessageBox::StandardButton static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); - int static_QMessageBox_critical(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); - QPushButton* defaultButton(QMessageBox* theWrappedObject) const; - QString detailedText(QMessageBox* theWrappedObject) const; - QAbstractButton* escapeButton(QMessageBox* theWrappedObject) const; - bool event(QMessageBox* theWrappedObject, QEvent* e); - QMessageBox::Icon icon(QMessageBox* theWrappedObject) const; - QPixmap iconPixmap(QMessageBox* theWrappedObject) const; - QMessageBox::StandardButton static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); - QMessageBox::StandardButton static_QMessageBox_information(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1 = QMessageBox::NoButton); - QString informativeText(QMessageBox* theWrappedObject) const; - void keyPressEvent(QMessageBox* theWrappedObject, QKeyEvent* event); - void open(QMessageBox* theWrappedObject); - void open(QMessageBox* theWrappedObject, QObject* receiver, const char* member); - QMessageBox::StandardButton static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); - int static_QMessageBox_question(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); - void removeButton(QMessageBox* theWrappedObject, QAbstractButton* button); - void resizeEvent(QMessageBox* theWrappedObject, QResizeEvent* event); - void setDefaultButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); - void setDefaultButton(QMessageBox* theWrappedObject, QPushButton* button); - void setDetailedText(QMessageBox* theWrappedObject, const QString& text); - void setEscapeButton(QMessageBox* theWrappedObject, QAbstractButton* button); - void setEscapeButton(QMessageBox* theWrappedObject, QMessageBox::StandardButton button); - void setIcon(QMessageBox* theWrappedObject, QMessageBox::Icon arg__1); - void setIconPixmap(QMessageBox* theWrappedObject, const QPixmap& pixmap); - void setInformativeText(QMessageBox* theWrappedObject, const QString& text); - void setStandardButtons(QMessageBox* theWrappedObject, QMessageBox::StandardButtons buttons); - void setText(QMessageBox* theWrappedObject, const QString& text); - void setTextFormat(QMessageBox* theWrappedObject, Qt::TextFormat format); - void showEvent(QMessageBox* theWrappedObject, QShowEvent* event); - QSize sizeHint(QMessageBox* theWrappedObject) const; - QMessageBox::StandardButton standardButton(QMessageBox* theWrappedObject, QAbstractButton* button) const; - QMessageBox::StandardButtons standardButtons(QMessageBox* theWrappedObject) const; - QString text(QMessageBox* theWrappedObject) const; - Qt::TextFormat textFormat(QMessageBox* theWrappedObject) const; - QMessageBox::StandardButton static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButtons buttons = QMessageBox::Ok, QMessageBox::StandardButton defaultButton = QMessageBox::NoButton); - int static_QMessageBox_warning(QWidget* parent, const QString& title, const QString& text, QMessageBox::StandardButton button0, QMessageBox::StandardButton button1); -}; - - - - - -class PythonQtShell_QMotifStyle : public QMotifStyle -{ -public: - PythonQtShell_QMotifStyle(bool useHighlightCols = false):QMotifStyle(useHighlightCols),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* o, QEvent* e); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* w) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* arg__1); -virtual void polish(QPalette& arg__1); -virtual void polish(QWidget* arg__1); -virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const; -virtual int styleHint(QStyle::StyleHint hint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget = 0) const; -virtual QRect subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; -virtual void timerEvent(QTimerEvent* event); -virtual void unpolish(QApplication* arg__1); -virtual void unpolish(QWidget* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMotifStyle : public QMotifStyle -{ public: -inline void promoted_drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const { QMotifStyle::drawComplexControl(cc, opt, p, w); } -inline void promoted_drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QMotifStyle::drawControl(element, opt, p, w); } -inline void promoted_drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const { QMotifStyle::drawPrimitive(pe, opt, p, w); } -inline bool promoted_event(QEvent* arg__1) { return QMotifStyle::event(arg__1); } -inline bool promoted_eventFilter(QObject* o, QEvent* e) { return QMotifStyle::eventFilter(o, e); } -inline int promoted_pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const { return QMotifStyle::pixelMetric(metric, option, widget); } -inline void promoted_polish(QApplication* arg__1) { QMotifStyle::polish(arg__1); } -inline void promoted_polish(QPalette& arg__1) { QMotifStyle::polish(arg__1); } -inline void promoted_polish(QWidget* arg__1) { QMotifStyle::polish(arg__1); } -inline QSize promoted_sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const { return QMotifStyle::sizeFromContents(ct, opt, contentsSize, widget); } -inline QPalette promoted_standardPalette() const { return QMotifStyle::standardPalette(); } -inline int promoted_styleHint(QStyle::StyleHint hint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const { return QMotifStyle::styleHint(hint, opt, widget, returnData); } -inline QRect promoted_subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget = 0) const { return QMotifStyle::subControlRect(cc, opt, sc, widget); } -inline QRect promoted_subElementRect(QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const { return QMotifStyle::subElementRect(r, opt, widget); } -inline void promoted_timerEvent(QTimerEvent* event) { QMotifStyle::timerEvent(event); } -inline void promoted_unpolish(QApplication* arg__1) { QMotifStyle::unpolish(arg__1); } -inline void promoted_unpolish(QWidget* arg__1) { QMotifStyle::unpolish(arg__1); } -}; - -class PythonQtWrapper_QMotifStyle : public QObject -{ Q_OBJECT -public: -public slots: -QMotifStyle* new_QMotifStyle(bool useHighlightCols = false); -void delete_QMotifStyle(QMotifStyle* obj) { delete obj; } - void drawComplexControl(QMotifStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* w = 0) const; - void drawControl(QMotifStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - void drawPrimitive(QMotifStyle* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; - bool event(QMotifStyle* theWrappedObject, QEvent* arg__1); - bool eventFilter(QMotifStyle* theWrappedObject, QObject* o, QEvent* e); - int pixelMetric(QMotifStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; - void polish(QMotifStyle* theWrappedObject, QApplication* arg__1); - void polish(QMotifStyle* theWrappedObject, QPalette& arg__1); - void polish(QMotifStyle* theWrappedObject, QWidget* arg__1); - void setUseHighlightColors(QMotifStyle* theWrappedObject, bool arg__1); - QSize sizeFromContents(QMotifStyle* theWrappedObject, QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* widget = 0) const; - QPalette standardPalette(QMotifStyle* theWrappedObject) const; - int styleHint(QMotifStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; - QRect subControlRect(QMotifStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget = 0) const; - QRect subElementRect(QMotifStyle* theWrappedObject, QStyle::SubElement r, const QStyleOption* opt, const QWidget* widget = 0) const; - void timerEvent(QMotifStyle* theWrappedObject, QTimerEvent* event); - void unpolish(QMotifStyle* theWrappedObject, QApplication* arg__1); - void unpolish(QMotifStyle* theWrappedObject, QWidget* arg__1); - bool useHighlightColors(QMotifStyle* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QMouseEvent : public QMouseEvent -{ -public: - PythonQtShell_QMouseEvent(QEvent::Type type, const QPoint& pos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QMouseEvent(type, pos, button, buttons, modifiers),_wrapper(NULL) {}; - PythonQtShell_QMouseEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers):QMouseEvent(type, pos, globalPos, button, buttons, modifiers),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QMouseEvent : public QObject -{ Q_OBJECT -public: -public slots: -QMouseEvent* new_QMouseEvent(QEvent::Type type, const QPoint& pos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); -QMouseEvent* new_QMouseEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); -void delete_QMouseEvent(QMouseEvent* obj) { delete obj; } - Qt::MouseButton button(QMouseEvent* theWrappedObject) const; - Qt::MouseButtons buttons(QMouseEvent* theWrappedObject) const; - QMouseEvent* static_QMouseEvent_createExtendedMouseEvent(QEvent::Type type, const QPointF& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers); - const QPoint* globalPos(QMouseEvent* theWrappedObject) const; - int globalX(QMouseEvent* theWrappedObject) const; - int globalY(QMouseEvent* theWrappedObject) const; - bool hasExtendedInfo(QMouseEvent* theWrappedObject) const; - const QPoint* pos(QMouseEvent* theWrappedObject) const; - QPointF posF(QMouseEvent* theWrappedObject) const; - int x(QMouseEvent* theWrappedObject) const; - int y(QMouseEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QMouseEventTransition : public QMouseEventTransition -{ -public: - PythonQtShell_QMouseEventTransition(QObject* object, QEvent::Type type, Qt::MouseButton button, QState* sourceState = 0):QMouseEventTransition(object, type, button, sourceState),_wrapper(NULL) {}; - PythonQtShell_QMouseEventTransition(QState* sourceState = 0):QMouseEventTransition(sourceState),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool eventTest(QEvent* event); -virtual void onTransition(QEvent* event); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QMouseEventTransition : public QMouseEventTransition -{ public: -inline bool promoted_eventTest(QEvent* event) { return QMouseEventTransition::eventTest(event); } -inline void promoted_onTransition(QEvent* event) { QMouseEventTransition::onTransition(event); } -}; - -class PythonQtWrapper_QMouseEventTransition : public QObject -{ Q_OBJECT -public: -public slots: -QMouseEventTransition* new_QMouseEventTransition(QObject* object, QEvent::Type type, Qt::MouseButton button, QState* sourceState = 0); -QMouseEventTransition* new_QMouseEventTransition(QState* sourceState = 0); -void delete_QMouseEventTransition(QMouseEventTransition* obj) { delete obj; } - Qt::MouseButton button(QMouseEventTransition* theWrappedObject) const; - bool eventTest(QMouseEventTransition* theWrappedObject, QEvent* event); - QPainterPath hitTestPath(QMouseEventTransition* theWrappedObject) const; - Qt::KeyboardModifiers modifierMask(QMouseEventTransition* theWrappedObject) const; - void onTransition(QMouseEventTransition* theWrappedObject, QEvent* event); - void setButton(QMouseEventTransition* theWrappedObject, Qt::MouseButton button); - void setHitTestPath(QMouseEventTransition* theWrappedObject, const QPainterPath& path); - void setModifierMask(QMouseEventTransition* theWrappedObject, Qt::KeyboardModifiers modifiers); -}; - - - - - -class PythonQtShell_QMoveEvent : public QMoveEvent -{ -public: - PythonQtShell_QMoveEvent(const QPoint& pos, const QPoint& oldPos):QMoveEvent(pos, oldPos),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QMoveEvent : public QObject -{ Q_OBJECT -public: -public slots: -QMoveEvent* new_QMoveEvent(const QPoint& pos, const QPoint& oldPos); -void delete_QMoveEvent(QMoveEvent* obj) { delete obj; } - const QPoint* oldPos(QMoveEvent* theWrappedObject) const; - const QPoint* pos(QMoveEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QMovie : public QMovie -{ -public: - PythonQtShell_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(device, format, parent),_wrapper(NULL) {}; - PythonQtShell_QMovie(QObject* parent = 0):QMovie(parent),_wrapper(NULL) {}; - PythonQtShell_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(fileName, format, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QMovie : public QObject -{ Q_OBJECT -public: -public slots: -QMovie* new_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0); -QMovie* new_QMovie(QObject* parent = 0); -QMovie* new_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0); -void delete_QMovie(QMovie* obj) { delete obj; } - QColor backgroundColor(QMovie* theWrappedObject) const; - QMovie::CacheMode cacheMode(QMovie* theWrappedObject) const; - int currentFrameNumber(QMovie* theWrappedObject) const; - QImage currentImage(QMovie* theWrappedObject) const; - QPixmap currentPixmap(QMovie* theWrappedObject) const; - QIODevice* device(QMovie* theWrappedObject) const; - QString fileName(QMovie* theWrappedObject) const; - QByteArray format(QMovie* theWrappedObject) const; - int frameCount(QMovie* theWrappedObject) const; - QRect frameRect(QMovie* theWrappedObject) const; - bool isValid(QMovie* theWrappedObject) const; - bool jumpToFrame(QMovie* theWrappedObject, int frameNumber); - int loopCount(QMovie* theWrappedObject) const; - int nextFrameDelay(QMovie* theWrappedObject) const; - QSize scaledSize(QMovie* theWrappedObject); - void setBackgroundColor(QMovie* theWrappedObject, const QColor& color); - void setCacheMode(QMovie* theWrappedObject, QMovie::CacheMode mode); - void setDevice(QMovie* theWrappedObject, QIODevice* device); - void setFileName(QMovie* theWrappedObject, const QString& fileName); - void setFormat(QMovie* theWrappedObject, const QByteArray& format); - void setScaledSize(QMovie* theWrappedObject, const QSize& size); - int speed(QMovie* theWrappedObject) const; - QMovie::MovieState state(QMovie* theWrappedObject) const; - QList static_QMovie_supportedFormats(); -}; - - - - - -class PythonQtShell_QPageSetupDialog : public QPageSetupDialog -{ -public: - PythonQtShell_QPageSetupDialog(QPrinter* printer, QWidget* parent = 0):QPageSetupDialog(printer, parent),_wrapper(NULL) {}; - PythonQtShell_QPageSetupDialog(QWidget* parent = 0):QPageSetupDialog(parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual int exec(); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPageSetupDialog : public QPageSetupDialog -{ public: -inline int promoted_exec() { return QPageSetupDialog::exec(); } -}; - -class PythonQtWrapper_QPageSetupDialog : public QObject -{ Q_OBJECT -public: -public slots: -QPageSetupDialog* new_QPageSetupDialog(QPrinter* printer, QWidget* parent = 0); -QPageSetupDialog* new_QPageSetupDialog(QWidget* parent = 0); -void delete_QPageSetupDialog(QPageSetupDialog* obj) { delete obj; } - void addEnabledOption(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option); - QPageSetupDialog::PageSetupDialogOptions enabledOptions(QPageSetupDialog* theWrappedObject) const; - int exec(QPageSetupDialog* theWrappedObject); - bool isOptionEnabled(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option) const; - void open(QPageSetupDialog* theWrappedObject); - void open(QPageSetupDialog* theWrappedObject, QObject* receiver, const char* member); - QPageSetupDialog::PageSetupDialogOptions options(QPageSetupDialog* theWrappedObject) const; - void setEnabledOptions(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOptions options); - void setOption(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option, bool on = true); - void setOptions(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOptions options); - bool testOption(QPageSetupDialog* theWrappedObject, QPageSetupDialog::PageSetupDialogOption option) const; -}; - - - - - -class PythonQtShell_QPaintDevice : public QPaintDevice -{ -public: - PythonQtShell_QPaintDevice():QPaintDevice(),_wrapper(NULL) {}; - -virtual int devType() const; -virtual int metric(QPaintDevice::PaintDeviceMetric metric) const; -virtual QPaintEngine* paintEngine() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPaintDevice : public QPaintDevice -{ public: -inline int promoted_devType() const { return QPaintDevice::devType(); } -inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QPaintDevice::metric(metric); } -}; - -class PythonQtWrapper_QPaintDevice : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PaintDeviceMetric ) -enum PaintDeviceMetric{ - PdmWidth = QPaintDevice::PdmWidth, PdmHeight = QPaintDevice::PdmHeight, PdmWidthMM = QPaintDevice::PdmWidthMM, PdmHeightMM = QPaintDevice::PdmHeightMM, PdmNumColors = QPaintDevice::PdmNumColors, PdmDepth = QPaintDevice::PdmDepth, PdmDpiX = QPaintDevice::PdmDpiX, PdmDpiY = QPaintDevice::PdmDpiY, PdmPhysicalDpiX = QPaintDevice::PdmPhysicalDpiX, PdmPhysicalDpiY = QPaintDevice::PdmPhysicalDpiY}; -public slots: -QPaintDevice* new_QPaintDevice(); -void delete_QPaintDevice(QPaintDevice* obj) { delete obj; } - int colorCount(QPaintDevice* theWrappedObject) const; - int depth(QPaintDevice* theWrappedObject) const; - int devType(QPaintDevice* theWrappedObject) const; - int height(QPaintDevice* theWrappedObject) const; - int heightMM(QPaintDevice* theWrappedObject) const; - int logicalDpiX(QPaintDevice* theWrappedObject) const; - int logicalDpiY(QPaintDevice* theWrappedObject) const; - int metric(QPaintDevice* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const; - int numColors(QPaintDevice* theWrappedObject) const; - bool paintingActive(QPaintDevice* theWrappedObject) const; - int physicalDpiX(QPaintDevice* theWrappedObject) const; - int physicalDpiY(QPaintDevice* theWrappedObject) const; - int width(QPaintDevice* theWrappedObject) const; - int widthMM(QPaintDevice* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QPaintEngine : public QPaintEngine -{ -public: - PythonQtShell_QPaintEngine(QPaintEngine::PaintEngineFeatures features = 0):QPaintEngine(features),_wrapper(NULL) {}; - -virtual bool begin(QPaintDevice* pdev); -virtual QPoint coordinateOffset() const; -virtual void drawEllipse(const QRect& r); -virtual void drawEllipse(const QRectF& r); -virtual void drawImage(const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); -virtual void drawLines(const QLine* lines, int lineCount); -virtual void drawLines(const QLineF* lines, int lineCount); -virtual void drawPath(const QPainterPath& path); -virtual void drawPixmap(const QRectF& r, const QPixmap& pm, const QRectF& sr); -virtual void drawPoints(const QPoint* points, int pointCount); -virtual void drawPoints(const QPointF* points, int pointCount); -virtual void drawPolygon(const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode); -virtual void drawPolygon(const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode); -virtual void drawRects(const QRect* rects, int rectCount); -virtual void drawRects(const QRectF* rects, int rectCount); -virtual void drawTextItem(const QPointF& p, const QTextItem& textItem); -virtual void drawTiledPixmap(const QRectF& r, const QPixmap& pixmap, const QPointF& s); -virtual bool end(); -virtual QPaintEngine::Type type() const; -virtual void updateState(const QPaintEngineState& state); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPaintEngine : public QPaintEngine -{ public: -inline QPoint promoted_coordinateOffset() const { return QPaintEngine::coordinateOffset(); } -inline void promoted_drawEllipse(const QRect& r) { QPaintEngine::drawEllipse(r); } -inline void promoted_drawEllipse(const QRectF& r) { QPaintEngine::drawEllipse(r); } -inline void promoted_drawImage(const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor) { QPaintEngine::drawImage(r, pm, sr, flags); } -inline void promoted_drawLines(const QLine* lines, int lineCount) { QPaintEngine::drawLines(lines, lineCount); } -inline void promoted_drawLines(const QLineF* lines, int lineCount) { QPaintEngine::drawLines(lines, lineCount); } -inline void promoted_drawPath(const QPainterPath& path) { QPaintEngine::drawPath(path); } -inline void promoted_drawPoints(const QPoint* points, int pointCount) { QPaintEngine::drawPoints(points, pointCount); } -inline void promoted_drawPoints(const QPointF* points, int pointCount) { QPaintEngine::drawPoints(points, pointCount); } -inline void promoted_drawPolygon(const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode) { QPaintEngine::drawPolygon(points, pointCount, mode); } -inline void promoted_drawPolygon(const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode) { QPaintEngine::drawPolygon(points, pointCount, mode); } -inline void promoted_drawRects(const QRect* rects, int rectCount) { QPaintEngine::drawRects(rects, rectCount); } -inline void promoted_drawRects(const QRectF* rects, int rectCount) { QPaintEngine::drawRects(rects, rectCount); } -inline void promoted_drawTextItem(const QPointF& p, const QTextItem& textItem) { QPaintEngine::drawTextItem(p, textItem); } -inline void promoted_drawTiledPixmap(const QRectF& r, const QPixmap& pixmap, const QPointF& s) { QPaintEngine::drawTiledPixmap(r, pixmap, s); } -}; - -class PythonQtWrapper_QPaintEngine : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PolygonDrawMode Type PaintEngineFeature DirtyFlag ) -Q_FLAGS(PaintEngineFeatures DirtyFlags ) -enum PolygonDrawMode{ - OddEvenMode = QPaintEngine::OddEvenMode, WindingMode = QPaintEngine::WindingMode, ConvexMode = QPaintEngine::ConvexMode, PolylineMode = QPaintEngine::PolylineMode}; -enum Type{ - X11 = QPaintEngine::X11, Windows = QPaintEngine::Windows, QuickDraw = QPaintEngine::QuickDraw, CoreGraphics = QPaintEngine::CoreGraphics, MacPrinter = QPaintEngine::MacPrinter, QWindowSystem = QPaintEngine::QWindowSystem, PostScript = QPaintEngine::PostScript, OpenGL = QPaintEngine::OpenGL, Picture = QPaintEngine::Picture, SVG = QPaintEngine::SVG, Raster = QPaintEngine::Raster, Direct3D = QPaintEngine::Direct3D, Pdf = QPaintEngine::Pdf, OpenVG = QPaintEngine::OpenVG, OpenGL2 = QPaintEngine::OpenGL2, PaintBuffer = QPaintEngine::PaintBuffer, User = QPaintEngine::User, MaxUser = QPaintEngine::MaxUser}; -enum PaintEngineFeature{ - PrimitiveTransform = QPaintEngine::PrimitiveTransform, PatternTransform = QPaintEngine::PatternTransform, PixmapTransform = QPaintEngine::PixmapTransform, PatternBrush = QPaintEngine::PatternBrush, LinearGradientFill = QPaintEngine::LinearGradientFill, RadialGradientFill = QPaintEngine::RadialGradientFill, ConicalGradientFill = QPaintEngine::ConicalGradientFill, AlphaBlend = QPaintEngine::AlphaBlend, PorterDuff = QPaintEngine::PorterDuff, PainterPaths = QPaintEngine::PainterPaths, Antialiasing = QPaintEngine::Antialiasing, BrushStroke = QPaintEngine::BrushStroke, ConstantOpacity = QPaintEngine::ConstantOpacity, MaskedBrush = QPaintEngine::MaskedBrush, PerspectiveTransform = QPaintEngine::PerspectiveTransform, BlendModes = QPaintEngine::BlendModes, ObjectBoundingModeGradients = QPaintEngine::ObjectBoundingModeGradients, RasterOpModes = QPaintEngine::RasterOpModes, PaintOutsidePaintEvent = QPaintEngine::PaintOutsidePaintEvent, AllFeatures = QPaintEngine::AllFeatures}; -enum DirtyFlag{ - DirtyPen = QPaintEngine::DirtyPen, DirtyBrush = QPaintEngine::DirtyBrush, DirtyBrushOrigin = QPaintEngine::DirtyBrushOrigin, DirtyFont = QPaintEngine::DirtyFont, DirtyBackground = QPaintEngine::DirtyBackground, DirtyBackgroundMode = QPaintEngine::DirtyBackgroundMode, DirtyTransform = QPaintEngine::DirtyTransform, DirtyClipRegion = QPaintEngine::DirtyClipRegion, DirtyClipPath = QPaintEngine::DirtyClipPath, DirtyHints = QPaintEngine::DirtyHints, DirtyCompositionMode = QPaintEngine::DirtyCompositionMode, DirtyClipEnabled = QPaintEngine::DirtyClipEnabled, DirtyOpacity = QPaintEngine::DirtyOpacity, AllDirty = QPaintEngine::AllDirty}; -Q_DECLARE_FLAGS(PaintEngineFeatures, PaintEngineFeature) -Q_DECLARE_FLAGS(DirtyFlags, DirtyFlag) -public slots: -QPaintEngine* new_QPaintEngine(QPaintEngine::PaintEngineFeatures features = 0); -void delete_QPaintEngine(QPaintEngine* obj) { delete obj; } - void clearDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df); - QPoint coordinateOffset(QPaintEngine* theWrappedObject) const; - void drawEllipse(QPaintEngine* theWrappedObject, const QRect& r); - void drawEllipse(QPaintEngine* theWrappedObject, const QRectF& r); - void drawImage(QPaintEngine* theWrappedObject, const QRectF& r, const QImage& pm, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); - void drawLines(QPaintEngine* theWrappedObject, const QLine* lines, int lineCount); - void drawLines(QPaintEngine* theWrappedObject, const QLineF* lines, int lineCount); - void drawPath(QPaintEngine* theWrappedObject, const QPainterPath& path); - void drawPoints(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount); - void drawPoints(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount); - void drawPolygon(QPaintEngine* theWrappedObject, const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode); - void drawPolygon(QPaintEngine* theWrappedObject, const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode); - void drawRects(QPaintEngine* theWrappedObject, const QRect* rects, int rectCount); - void drawRects(QPaintEngine* theWrappedObject, const QRectF* rects, int rectCount); - void drawTextItem(QPaintEngine* theWrappedObject, const QPointF& p, const QTextItem& textItem); - void drawTiledPixmap(QPaintEngine* theWrappedObject, const QRectF& r, const QPixmap& pixmap, const QPointF& s); - bool hasFeature(QPaintEngine* theWrappedObject, QPaintEngine::PaintEngineFeatures feature) const; - bool isActive(QPaintEngine* theWrappedObject) const; - bool isExtended(QPaintEngine* theWrappedObject) const; - QPaintDevice* paintDevice(QPaintEngine* theWrappedObject) const; - QPainter* painter(QPaintEngine* theWrappedObject) const; - void setActive(QPaintEngine* theWrappedObject, bool newState); - void setDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df); - void setSystemClip(QPaintEngine* theWrappedObject, const QRegion& baseClip); - void setSystemRect(QPaintEngine* theWrappedObject, const QRect& rect); - void syncState(QPaintEngine* theWrappedObject); - QRegion systemClip(QPaintEngine* theWrappedObject) const; - QRect systemRect(QPaintEngine* theWrappedObject) const; - bool testDirty(QPaintEngine* theWrappedObject, QPaintEngine::DirtyFlags df); -}; - - - - - -class PythonQtShell_QPaintEngineState : public QPaintEngineState -{ -public: - PythonQtShell_QPaintEngineState():QPaintEngineState(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPaintEngineState : public QObject -{ Q_OBJECT -public: -public slots: -QPaintEngineState* new_QPaintEngineState(); -void delete_QPaintEngineState(QPaintEngineState* obj) { delete obj; } - QBrush backgroundBrush(QPaintEngineState* theWrappedObject) const; - Qt::BGMode backgroundMode(QPaintEngineState* theWrappedObject) const; - QBrush brush(QPaintEngineState* theWrappedObject) const; - bool brushNeedsResolving(QPaintEngineState* theWrappedObject) const; - QPointF brushOrigin(QPaintEngineState* theWrappedObject) const; - Qt::ClipOperation clipOperation(QPaintEngineState* theWrappedObject) const; - QPainterPath clipPath(QPaintEngineState* theWrappedObject) const; - QRegion clipRegion(QPaintEngineState* theWrappedObject) const; - QPainter::CompositionMode compositionMode(QPaintEngineState* theWrappedObject) const; - QFont font(QPaintEngineState* theWrappedObject) const; - bool isClipEnabled(QPaintEngineState* theWrappedObject) const; - QMatrix matrix(QPaintEngineState* theWrappedObject) const; - qreal opacity(QPaintEngineState* theWrappedObject) const; - QPainter* painter(QPaintEngineState* theWrappedObject) const; - QPen pen(QPaintEngineState* theWrappedObject) const; - bool penNeedsResolving(QPaintEngineState* theWrappedObject) const; - QPainter::RenderHints renderHints(QPaintEngineState* theWrappedObject) const; - QPaintEngine::DirtyFlags state(QPaintEngineState* theWrappedObject) const; - QTransform transform(QPaintEngineState* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QPaintEvent : public QPaintEvent -{ -public: - PythonQtShell_QPaintEvent(const QRect& paintRect):QPaintEvent(paintRect),_wrapper(NULL) {}; - PythonQtShell_QPaintEvent(const QRegion& paintRegion):QPaintEvent(paintRegion),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPaintEvent : public QObject -{ Q_OBJECT -public: -public slots: -QPaintEvent* new_QPaintEvent(const QRect& paintRect); -QPaintEvent* new_QPaintEvent(const QRegion& paintRegion); -void delete_QPaintEvent(QPaintEvent* obj) { delete obj; } - const QRect* rect(QPaintEvent* theWrappedObject) const; - const QRegion* region(QPaintEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QPainter : public QObject -{ Q_OBJECT -public: -Q_ENUMS(CompositionMode RenderHint ) -Q_FLAGS(RenderHints ) -enum CompositionMode{ - CompositionMode_SourceOver = QPainter::CompositionMode_SourceOver, CompositionMode_DestinationOver = QPainter::CompositionMode_DestinationOver, CompositionMode_Clear = QPainter::CompositionMode_Clear, CompositionMode_Source = QPainter::CompositionMode_Source, CompositionMode_Destination = QPainter::CompositionMode_Destination, CompositionMode_SourceIn = QPainter::CompositionMode_SourceIn, CompositionMode_DestinationIn = QPainter::CompositionMode_DestinationIn, CompositionMode_SourceOut = QPainter::CompositionMode_SourceOut, CompositionMode_DestinationOut = QPainter::CompositionMode_DestinationOut, CompositionMode_SourceAtop = QPainter::CompositionMode_SourceAtop, CompositionMode_DestinationAtop = QPainter::CompositionMode_DestinationAtop, CompositionMode_Xor = QPainter::CompositionMode_Xor, CompositionMode_Plus = QPainter::CompositionMode_Plus, CompositionMode_Multiply = QPainter::CompositionMode_Multiply, CompositionMode_Screen = QPainter::CompositionMode_Screen, CompositionMode_Overlay = QPainter::CompositionMode_Overlay, CompositionMode_Darken = QPainter::CompositionMode_Darken, CompositionMode_Lighten = QPainter::CompositionMode_Lighten, CompositionMode_ColorDodge = QPainter::CompositionMode_ColorDodge, CompositionMode_ColorBurn = QPainter::CompositionMode_ColorBurn, CompositionMode_HardLight = QPainter::CompositionMode_HardLight, CompositionMode_SoftLight = QPainter::CompositionMode_SoftLight, CompositionMode_Difference = QPainter::CompositionMode_Difference, CompositionMode_Exclusion = QPainter::CompositionMode_Exclusion, RasterOp_SourceOrDestination = QPainter::RasterOp_SourceOrDestination, RasterOp_SourceAndDestination = QPainter::RasterOp_SourceAndDestination, RasterOp_SourceXorDestination = QPainter::RasterOp_SourceXorDestination, RasterOp_NotSourceAndNotDestination = QPainter::RasterOp_NotSourceAndNotDestination, RasterOp_NotSourceOrNotDestination = QPainter::RasterOp_NotSourceOrNotDestination, RasterOp_NotSourceXorDestination = QPainter::RasterOp_NotSourceXorDestination, RasterOp_NotSource = QPainter::RasterOp_NotSource, RasterOp_NotSourceAndDestination = QPainter::RasterOp_NotSourceAndDestination, RasterOp_SourceAndNotDestination = QPainter::RasterOp_SourceAndNotDestination}; -enum RenderHint{ - Antialiasing = QPainter::Antialiasing, TextAntialiasing = QPainter::TextAntialiasing, SmoothPixmapTransform = QPainter::SmoothPixmapTransform, HighQualityAntialiasing = QPainter::HighQualityAntialiasing, NonCosmeticDefaultPen = QPainter::NonCosmeticDefaultPen}; -Q_DECLARE_FLAGS(RenderHints, RenderHint) -public slots: -QPainter* new_QPainter(); -void delete_QPainter(QPainter* obj) { delete obj; } - const QBrush* background(QPainter* theWrappedObject) const; - Qt::BGMode backgroundMode(QPainter* theWrappedObject) const; - bool begin(QPainter* theWrappedObject, QPaintDevice* arg__1); - void beginNativePainting(QPainter* theWrappedObject); - QRect boundingRect(QPainter* theWrappedObject, const QRect& rect, int flags, const QString& text); - QRectF boundingRect(QPainter* theWrappedObject, const QRectF& rect, const QString& text, const QTextOption& o = QTextOption()); - QRectF boundingRect(QPainter* theWrappedObject, const QRectF& rect, int flags, const QString& text); - QRect boundingRect(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text); - const QBrush* brush(QPainter* theWrappedObject) const; - QPoint brushOrigin(QPainter* theWrappedObject) const; - QPainterPath clipPath(QPainter* theWrappedObject) const; - QRegion clipRegion(QPainter* theWrappedObject) const; - QMatrix combinedMatrix(QPainter* theWrappedObject) const; - QTransform combinedTransform(QPainter* theWrappedObject) const; - QPainter::CompositionMode compositionMode(QPainter* theWrappedObject) const; - QPaintDevice* device(QPainter* theWrappedObject) const; - const QMatrix* deviceMatrix(QPainter* theWrappedObject) const; - const QTransform* deviceTransform(QPainter* theWrappedObject) const; - void drawArc(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen); - void drawArc(QPainter* theWrappedObject, const QRectF& rect, int a, int alen); - void drawArc(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen); - void drawChord(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen); - void drawChord(QPainter* theWrappedObject, const QRectF& rect, int a, int alen); - void drawChord(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen); - void drawConvexPolygon(QPainter* theWrappedObject, const QPolygon& polygon); - void drawConvexPolygon(QPainter* theWrappedObject, const QPolygonF& polygon); - void drawEllipse(QPainter* theWrappedObject, const QPoint& center, int rx, int ry); - void drawEllipse(QPainter* theWrappedObject, const QPointF& center, qreal rx, qreal ry); - void drawEllipse(QPainter* theWrappedObject, const QRect& r); - void drawEllipse(QPainter* theWrappedObject, const QRectF& r); - void drawEllipse(QPainter* theWrappedObject, int x, int y, int w, int h); - void drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image); - void drawImage(QPainter* theWrappedObject, const QPoint& p, const QImage& image, const QRect& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); - void drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image); - void drawImage(QPainter* theWrappedObject, const QPointF& p, const QImage& image, const QRectF& sr, Qt::ImageConversionFlags flags = Qt::AutoColor); - void drawImage(QPainter* theWrappedObject, const QRect& r, const QImage& image); - void drawImage(QPainter* theWrappedObject, const QRect& targetRect, const QImage& image, const QRect& sourceRect, Qt::ImageConversionFlags flags = Qt::AutoColor); - void drawImage(QPainter* theWrappedObject, const QRectF& r, const QImage& image); - void drawImage(QPainter* theWrappedObject, const QRectF& targetRect, const QImage& image, const QRectF& sourceRect, Qt::ImageConversionFlags flags = Qt::AutoColor); - void drawImage(QPainter* theWrappedObject, int x, int y, const QImage& image, int sx = 0, int sy = 0, int sw = -1, int sh = -1, Qt::ImageConversionFlags flags = Qt::AutoColor); - void drawLine(QPainter* theWrappedObject, const QLine& line); - void drawLine(QPainter* theWrappedObject, const QLineF& line); - void drawLine(QPainter* theWrappedObject, const QPoint& p1, const QPoint& p2); - void drawLine(QPainter* theWrappedObject, const QPointF& p1, const QPointF& p2); - void drawLine(QPainter* theWrappedObject, int x1, int y1, int x2, int y2); - void drawLines(QPainter* theWrappedObject, const QVector& lines); - void drawLines(QPainter* theWrappedObject, const QVector& lines); - void drawLines(QPainter* theWrappedObject, const QVector& pointPairs); - void drawLines(QPainter* theWrappedObject, const QVector& pointPairs); - void drawPath(QPainter* theWrappedObject, const QPainterPath& path); - void drawPicture(QPainter* theWrappedObject, const QPoint& p, const QPicture& picture); - void drawPicture(QPainter* theWrappedObject, const QPointF& p, const QPicture& picture); - void drawPicture(QPainter* theWrappedObject, int x, int y, const QPicture& picture); - void drawPie(QPainter* theWrappedObject, const QRect& arg__1, int a, int alen); - void drawPie(QPainter* theWrappedObject, const QRectF& rect, int a, int alen); - void drawPie(QPainter* theWrappedObject, int x, int y, int w, int h, int a, int alen); - void drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm); - void drawPixmap(QPainter* theWrappedObject, const QPoint& p, const QPixmap& pm, const QRect& sr); - void drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm); - void drawPixmap(QPainter* theWrappedObject, const QPointF& p, const QPixmap& pm, const QRectF& sr); - void drawPixmap(QPainter* theWrappedObject, const QRect& r, const QPixmap& pm); - void drawPixmap(QPainter* theWrappedObject, const QRect& targetRect, const QPixmap& pixmap, const QRect& sourceRect); - void drawPixmap(QPainter* theWrappedObject, const QRectF& targetRect, const QPixmap& pixmap, const QRectF& sourceRect); - void drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm); - void drawPixmap(QPainter* theWrappedObject, int x, int y, const QPixmap& pm, int sx, int sy, int sw, int sh); - void drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm); - void drawPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& pm, int sx, int sy, int sw, int sh); - void drawPoint(QPainter* theWrappedObject, const QPoint& p); - void drawPoint(QPainter* theWrappedObject, const QPointF& pt); - void drawPoint(QPainter* theWrappedObject, int x, int y); - void drawPoints(QPainter* theWrappedObject, const QPolygon& points); - void drawPoints(QPainter* theWrappedObject, const QPolygonF& points); - void drawPolygon(QPainter* theWrappedObject, const QPolygon& polygon, Qt::FillRule fillRule = Qt::OddEvenFill); - void drawPolygon(QPainter* theWrappedObject, const QPolygonF& polygon, Qt::FillRule fillRule = Qt::OddEvenFill); - void drawPolyline(QPainter* theWrappedObject, const QPolygon& polygon); - void drawPolyline(QPainter* theWrappedObject, const QPolygonF& polyline); - void drawRect(QPainter* theWrappedObject, const QRect& rect); - void drawRect(QPainter* theWrappedObject, const QRectF& rect); - void drawRect(QPainter* theWrappedObject, int x1, int y1, int w, int h); - void drawRects(QPainter* theWrappedObject, const QVector& rectangles); - void drawRects(QPainter* theWrappedObject, const QVector& rectangles); - void drawRoundRect(QPainter* theWrappedObject, const QRect& r, int xround = 25, int yround = 25); - void drawRoundRect(QPainter* theWrappedObject, const QRectF& r, int xround = 25, int yround = 25); - void drawRoundRect(QPainter* theWrappedObject, int x, int y, int w, int h, int arg__5 = 25, int arg__6 = 25); - void drawRoundedRect(QPainter* theWrappedObject, const QRect& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); - void drawRoundedRect(QPainter* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); - void drawRoundedRect(QPainter* theWrappedObject, int x, int y, int w, int h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); - void drawText(QPainter* theWrappedObject, const QPoint& p, const QString& s); - void drawText(QPainter* theWrappedObject, const QPointF& p, const QString& s); - void drawText(QPainter* theWrappedObject, const QRect& r, int flags, const QString& text, QRect* br = 0); - void drawText(QPainter* theWrappedObject, const QRectF& r, const QString& text, const QTextOption& o = QTextOption()); - void drawText(QPainter* theWrappedObject, const QRectF& r, int flags, const QString& text, QRectF* br = 0); - void drawText(QPainter* theWrappedObject, int x, int y, const QString& s); - void drawText(QPainter* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, QRect* br = 0); - void drawTextItem(QPainter* theWrappedObject, const QPoint& p, const QTextItem& ti); - void drawTextItem(QPainter* theWrappedObject, const QPointF& p, const QTextItem& ti); - void drawTextItem(QPainter* theWrappedObject, int x, int y, const QTextItem& ti); - void drawTiledPixmap(QPainter* theWrappedObject, const QRect& arg__1, const QPixmap& arg__2, const QPoint& arg__3 = QPoint()); - void drawTiledPixmap(QPainter* theWrappedObject, const QRectF& rect, const QPixmap& pm, const QPointF& offset = QPointF()); - void drawTiledPixmap(QPainter* theWrappedObject, int x, int y, int w, int h, const QPixmap& arg__5, int sx = 0, int sy = 0); - bool end(QPainter* theWrappedObject); - void endNativePainting(QPainter* theWrappedObject); - void eraseRect(QPainter* theWrappedObject, const QRect& arg__1); - void eraseRect(QPainter* theWrappedObject, const QRectF& arg__1); - void eraseRect(QPainter* theWrappedObject, int x, int y, int w, int h); - void fillPath(QPainter* theWrappedObject, const QPainterPath& path, const QBrush& brush); - void fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QBrush& arg__2); - void fillRect(QPainter* theWrappedObject, const QRect& arg__1, const QColor& color); - void fillRect(QPainter* theWrappedObject, const QRect& r, Qt::BrushStyle style); - void fillRect(QPainter* theWrappedObject, const QRect& r, Qt::GlobalColor c); - void fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QBrush& arg__2); - void fillRect(QPainter* theWrappedObject, const QRectF& arg__1, const QColor& color); - void fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::BrushStyle style); - void fillRect(QPainter* theWrappedObject, const QRectF& r, Qt::GlobalColor c); - void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::BrushStyle style); - void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::GlobalColor c); - void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QBrush& arg__5); - void fillRect(QPainter* theWrappedObject, int x, int y, int w, int h, const QColor& color); - const QFont* font(QPainter* theWrappedObject) const; - bool hasClipping(QPainter* theWrappedObject) const; - void initFrom(QPainter* theWrappedObject, const QWidget* widget); - bool isActive(QPainter* theWrappedObject) const; - Qt::LayoutDirection layoutDirection(QPainter* theWrappedObject) const; - qreal opacity(QPainter* theWrappedObject) const; - QPaintEngine* paintEngine(QPainter* theWrappedObject) const; - const QPen* pen(QPainter* theWrappedObject) const; - QPaintDevice* static_QPainter_redirected(const QPaintDevice* device, QPoint* offset = 0); - QPainter::RenderHints renderHints(QPainter* theWrappedObject) const; - void resetMatrix(QPainter* theWrappedObject); - void resetTransform(QPainter* theWrappedObject); - void restore(QPainter* theWrappedObject); - void static_QPainter_restoreRedirected(const QPaintDevice* device); - void rotate(QPainter* theWrappedObject, qreal a); - void save(QPainter* theWrappedObject); - void scale(QPainter* theWrappedObject, qreal sx, qreal sy); - void setBackground(QPainter* theWrappedObject, const QBrush& bg); - void setBackgroundMode(QPainter* theWrappedObject, Qt::BGMode mode); - void setBrush(QPainter* theWrappedObject, Qt::BrushStyle style); - void setBrush(QPainter* theWrappedObject, const QBrush& brush); - void setBrushOrigin(QPainter* theWrappedObject, const QPoint& arg__1); - void setBrushOrigin(QPainter* theWrappedObject, const QPointF& arg__1); - void setBrushOrigin(QPainter* theWrappedObject, int x, int y); - void setClipPath(QPainter* theWrappedObject, const QPainterPath& path, Qt::ClipOperation op = Qt::ReplaceClip); - void setClipRect(QPainter* theWrappedObject, const QRect& arg__1, Qt::ClipOperation op = Qt::ReplaceClip); - void setClipRect(QPainter* theWrappedObject, const QRectF& arg__1, Qt::ClipOperation op = Qt::ReplaceClip); - void setClipRect(QPainter* theWrappedObject, int x, int y, int w, int h, Qt::ClipOperation op = Qt::ReplaceClip); - void setClipRegion(QPainter* theWrappedObject, const QRegion& arg__1, Qt::ClipOperation op = Qt::ReplaceClip); - void setClipping(QPainter* theWrappedObject, bool enable); - void setCompositionMode(QPainter* theWrappedObject, QPainter::CompositionMode mode); - void setFont(QPainter* theWrappedObject, const QFont& f); - void setLayoutDirection(QPainter* theWrappedObject, Qt::LayoutDirection direction); - void setOpacity(QPainter* theWrappedObject, qreal opacity); - void setPen(QPainter* theWrappedObject, Qt::PenStyle style); - void setPen(QPainter* theWrappedObject, const QColor& color); - void setPen(QPainter* theWrappedObject, const QPen& pen); - void static_QPainter_setRedirected(const QPaintDevice* device, QPaintDevice* replacement, const QPoint& offset = QPoint()); - void setRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint, bool on = true); - void setRenderHints(QPainter* theWrappedObject, QPainter::RenderHints hints, bool on = true); - void setTransform(QPainter* theWrappedObject, const QTransform& transform, bool combine = false); - void setViewTransformEnabled(QPainter* theWrappedObject, bool enable); - void setViewport(QPainter* theWrappedObject, const QRect& viewport); - void setViewport(QPainter* theWrappedObject, int x, int y, int w, int h); - void setWindow(QPainter* theWrappedObject, const QRect& window); - void setWindow(QPainter* theWrappedObject, int x, int y, int w, int h); - void setWorldMatrix(QPainter* theWrappedObject, const QMatrix& matrix, bool combine = false); - void setWorldMatrixEnabled(QPainter* theWrappedObject, bool enabled); - void setWorldTransform(QPainter* theWrappedObject, const QTransform& matrix, bool combine = false); - void shear(QPainter* theWrappedObject, qreal sh, qreal sv); - void strokePath(QPainter* theWrappedObject, const QPainterPath& path, const QPen& pen); - bool testRenderHint(QPainter* theWrappedObject, QPainter::RenderHint hint) const; - const QTransform* transform(QPainter* theWrappedObject) const; - void translate(QPainter* theWrappedObject, const QPoint& offset); - void translate(QPainter* theWrappedObject, const QPointF& offset); - void translate(QPainter* theWrappedObject, qreal dx, qreal dy); - bool viewTransformEnabled(QPainter* theWrappedObject) const; - QRect viewport(QPainter* theWrappedObject) const; - QRect window(QPainter* theWrappedObject) const; - const QMatrix* worldMatrix(QPainter* theWrappedObject) const; - bool worldMatrixEnabled(QPainter* theWrappedObject) const; - const QTransform* worldTransform(QPainter* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QPainterPath : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ElementType ) -enum ElementType{ - MoveToElement = QPainterPath::MoveToElement, LineToElement = QPainterPath::LineToElement, CurveToElement = QPainterPath::CurveToElement, CurveToDataElement = QPainterPath::CurveToDataElement}; -public slots: -QPainterPath* new_QPainterPath(); -QPainterPath* new_QPainterPath(const QPainterPath& other); -QPainterPath* new_QPainterPath(const QPointF& startPoint); -void delete_QPainterPath(QPainterPath* obj) { delete obj; } - void addEllipse(QPainterPath* theWrappedObject, const QPointF& center, qreal rx, qreal ry); - void addEllipse(QPainterPath* theWrappedObject, const QRectF& rect); - void addEllipse(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - void addPath(QPainterPath* theWrappedObject, const QPainterPath& path); - void addPolygon(QPainterPath* theWrappedObject, const QPolygonF& polygon); - void addRect(QPainterPath* theWrappedObject, const QRectF& rect); - void addRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h); - void addRegion(QPainterPath* theWrappedObject, const QRegion& region); - void addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int roundness); - void addRoundRect(QPainterPath* theWrappedObject, const QRectF& rect, int xRnd, int yRnd); - void addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int roundness); - void addRoundRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xRnd, int yRnd); - void addRoundedRect(QPainterPath* theWrappedObject, const QRectF& rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); - void addRoundedRect(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize); - void addText(QPainterPath* theWrappedObject, const QPointF& point, const QFont& f, const QString& text); - void addText(QPainterPath* theWrappedObject, qreal x, qreal y, const QFont& f, const QString& text); - qreal angleAtPercent(QPainterPath* theWrappedObject, qreal t) const; - void arcMoveTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal angle); - void arcMoveTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal angle); - void arcTo(QPainterPath* theWrappedObject, const QRectF& rect, qreal startAngle, qreal arcLength); - void arcTo(QPainterPath* theWrappedObject, qreal x, qreal y, qreal w, qreal h, qreal startAngle, qreal arcLength); - QRectF boundingRect(QPainterPath* theWrappedObject) const; - void closeSubpath(QPainterPath* theWrappedObject); - void connectPath(QPainterPath* theWrappedObject, const QPainterPath& path); - bool contains(QPainterPath* theWrappedObject, const QPainterPath& p) const; - bool contains(QPainterPath* theWrappedObject, const QPointF& pt) const; - bool contains(QPainterPath* theWrappedObject, const QRectF& rect) const; - QRectF controlPointRect(QPainterPath* theWrappedObject) const; - void cubicTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt1, const QPointF& ctrlPt2, const QPointF& endPt); - void cubicTo(QPainterPath* theWrappedObject, qreal ctrlPt1x, qreal ctrlPt1y, qreal ctrlPt2x, qreal ctrlPt2y, qreal endPtx, qreal endPty); - QPointF currentPosition(QPainterPath* theWrappedObject) const; - const QPainterPath::Element* elementAt(QPainterPath* theWrappedObject, int i) const; - int elementCount(QPainterPath* theWrappedObject) const; - Qt::FillRule fillRule(QPainterPath* theWrappedObject) const; - QPainterPath intersected(QPainterPath* theWrappedObject, const QPainterPath& r) const; - bool intersects(QPainterPath* theWrappedObject, const QPainterPath& p) const; - bool intersects(QPainterPath* theWrappedObject, const QRectF& rect) const; - bool isEmpty(QPainterPath* theWrappedObject) const; - qreal length(QPainterPath* theWrappedObject) const; - void lineTo(QPainterPath* theWrappedObject, const QPointF& p); - void lineTo(QPainterPath* theWrappedObject, qreal x, qreal y); - void moveTo(QPainterPath* theWrappedObject, const QPointF& p); - void moveTo(QPainterPath* theWrappedObject, qreal x, qreal y); - bool __ne__(QPainterPath* theWrappedObject, const QPainterPath& other) const; - QPainterPath __and__(QPainterPath* theWrappedObject, const QPainterPath& other) const; - QPainterPath* __iand__(QPainterPath* theWrappedObject, const QPainterPath& other); - QPainterPath __mul__(QPainterPath* theWrappedObject, const QMatrix& m); - QPainterPath __mul__(QPainterPath* theWrappedObject, const QTransform& m); - QPainterPath __add__(QPainterPath* theWrappedObject, const QPainterPath& other) const; - QPainterPath* __iadd__(QPainterPath* theWrappedObject, const QPainterPath& other); - QPainterPath __sub__(QPainterPath* theWrappedObject, const QPainterPath& other) const; - QPainterPath* __isub__(QPainterPath* theWrappedObject, const QPainterPath& other); - void writeTo(QPainterPath* theWrappedObject, QDataStream& arg__1); - bool __eq__(QPainterPath* theWrappedObject, const QPainterPath& other) const; - void readFrom(QPainterPath* theWrappedObject, QDataStream& arg__1); - QPainterPath __or__(QPainterPath* theWrappedObject, const QPainterPath& other) const; - QPainterPath* __ior__(QPainterPath* theWrappedObject, const QPainterPath& other); - qreal percentAtLength(QPainterPath* theWrappedObject, qreal t) const; - QPointF pointAtPercent(QPainterPath* theWrappedObject, qreal t) const; - void quadTo(QPainterPath* theWrappedObject, const QPointF& ctrlPt, const QPointF& endPt); - void quadTo(QPainterPath* theWrappedObject, qreal ctrlPtx, qreal ctrlPty, qreal endPtx, qreal endPty); - void setElementPositionAt(QPainterPath* theWrappedObject, int i, qreal x, qreal y); - void setFillRule(QPainterPath* theWrappedObject, Qt::FillRule fillRule); - QPainterPath simplified(QPainterPath* theWrappedObject) const; - qreal slopeAtPercent(QPainterPath* theWrappedObject, qreal t) const; - QPainterPath subtracted(QPainterPath* theWrappedObject, const QPainterPath& r) const; - QPainterPath subtractedInverted(QPainterPath* theWrappedObject, const QPainterPath& r) const; - QPolygonF toFillPolygon(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const; - QPolygonF toFillPolygon(QPainterPath* theWrappedObject, const QTransform& matrix) const; - QList toFillPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const; - QList toFillPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const; - QPainterPath toReversed(QPainterPath* theWrappedObject) const; - QList toSubpathPolygons(QPainterPath* theWrappedObject, const QMatrix& matrix = QMatrix()) const; - QList toSubpathPolygons(QPainterPath* theWrappedObject, const QTransform& matrix) const; - void translate(QPainterPath* theWrappedObject, const QPointF& offset); - void translate(QPainterPath* theWrappedObject, qreal dx, qreal dy); - QPainterPath translated(QPainterPath* theWrappedObject, const QPointF& offset) const; - QPainterPath translated(QPainterPath* theWrappedObject, qreal dx, qreal dy) const; - QPainterPath united(QPainterPath* theWrappedObject, const QPainterPath& r) const; - QString py_toString(QPainterPath*); -}; - - - - - -class PythonQtWrapper_QPainterPathStroker : public QObject -{ Q_OBJECT -public: -public slots: -QPainterPathStroker* new_QPainterPathStroker(); -void delete_QPainterPathStroker(QPainterPathStroker* obj) { delete obj; } - Qt::PenCapStyle capStyle(QPainterPathStroker* theWrappedObject) const; - QPainterPath createStroke(QPainterPathStroker* theWrappedObject, const QPainterPath& path) const; - qreal curveThreshold(QPainterPathStroker* theWrappedObject) const; - qreal dashOffset(QPainterPathStroker* theWrappedObject) const; - QVector dashPattern(QPainterPathStroker* theWrappedObject) const; - Qt::PenJoinStyle joinStyle(QPainterPathStroker* theWrappedObject) const; - qreal miterLimit(QPainterPathStroker* theWrappedObject) const; - void setCapStyle(QPainterPathStroker* theWrappedObject, Qt::PenCapStyle style); - void setCurveThreshold(QPainterPathStroker* theWrappedObject, qreal threshold); - void setDashOffset(QPainterPathStroker* theWrappedObject, qreal offset); - void setDashPattern(QPainterPathStroker* theWrappedObject, Qt::PenStyle arg__1); - void setDashPattern(QPainterPathStroker* theWrappedObject, const QVector& dashPattern); - void setJoinStyle(QPainterPathStroker* theWrappedObject, Qt::PenJoinStyle style); - void setMiterLimit(QPainterPathStroker* theWrappedObject, qreal length); - void setWidth(QPainterPathStroker* theWrappedObject, qreal width); - qreal width(QPainterPathStroker* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QPanGesture : public QPanGesture -{ -public: - PythonQtShell_QPanGesture(QObject* parent = 0):QPanGesture(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPanGesture : public QObject -{ Q_OBJECT -public: -public slots: -QPanGesture* new_QPanGesture(QObject* parent = 0); -void delete_QPanGesture(QPanGesture* obj) { delete obj; } - qreal acceleration(QPanGesture* theWrappedObject) const; - QPointF delta(QPanGesture* theWrappedObject) const; - QPointF lastOffset(QPanGesture* theWrappedObject) const; - QPointF offset(QPanGesture* theWrappedObject) const; - void setAcceleration(QPanGesture* theWrappedObject, qreal value); - void setLastOffset(QPanGesture* theWrappedObject, const QPointF& value); - void setOffset(QPanGesture* theWrappedObject, const QPointF& value); -}; - - - - - -class PythonQtShell_QPicture : public QPicture -{ -public: - PythonQtShell_QPicture(const QPicture& arg__1):QPicture(arg__1),_wrapper(NULL) {}; - PythonQtShell_QPicture(int formatVersion = -1):QPicture(formatVersion),_wrapper(NULL) {}; - -virtual int devType() const; -virtual int metric(QPaintDevice::PaintDeviceMetric m) const; -virtual QPaintEngine* paintEngine() const; -virtual void setData(const char* data, uint size); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPicture : public QPicture -{ public: -inline int promoted_devType() const { return QPicture::devType(); } -inline int promoted_metric(QPaintDevice::PaintDeviceMetric m) const { return QPicture::metric(m); } -inline QPaintEngine* promoted_paintEngine() const { return QPicture::paintEngine(); } -}; - -class PythonQtWrapper_QPicture : public QObject -{ Q_OBJECT -public: -public slots: -QPicture* new_QPicture(const QPicture& arg__1); -QPicture* new_QPicture(int formatVersion = -1); -void delete_QPicture(QPicture* obj) { delete obj; } - QRect boundingRect(QPicture* theWrappedObject) const; - const char* data(QPicture* theWrappedObject) const; - int devType(QPicture* theWrappedObject) const; - bool isNull(QPicture* theWrappedObject) const; - bool load(QPicture* theWrappedObject, QIODevice* dev, const char* format = 0); - bool load(QPicture* theWrappedObject, const QString& fileName, const char* format = 0); - int metric(QPicture* theWrappedObject, QPaintDevice::PaintDeviceMetric m) const; - void writeTo(QPicture* theWrappedObject, QDataStream& arg__1); - void readFrom(QPicture* theWrappedObject, QDataStream& arg__1); - QPaintEngine* paintEngine(QPicture* theWrappedObject) const; - bool play(QPicture* theWrappedObject, QPainter* p); - bool save(QPicture* theWrappedObject, QIODevice* dev, const char* format = 0); - bool save(QPicture* theWrappedObject, const QString& fileName, const char* format = 0); - void setBoundingRect(QPicture* theWrappedObject, const QRect& r); - uint size(QPicture* theWrappedObject) const; - bool __nonzero__(QPicture* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtShell_QPictureFormatPlugin : public QPictureFormatPlugin -{ -public: - PythonQtShell_QPictureFormatPlugin(QObject* parent = 0):QPictureFormatPlugin(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool installIOHandler(const QString& format); -virtual QStringList keys() const; -virtual bool loadPicture(const QString& format, const QString& filename, QPicture* pic); -virtual bool savePicture(const QString& format, const QString& filename, const QPicture& pic); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPictureFormatPlugin : public QPictureFormatPlugin -{ public: -inline bool promoted_loadPicture(const QString& format, const QString& filename, QPicture* pic) { return QPictureFormatPlugin::loadPicture(format, filename, pic); } -inline bool promoted_savePicture(const QString& format, const QString& filename, const QPicture& pic) { return QPictureFormatPlugin::savePicture(format, filename, pic); } -}; - -class PythonQtWrapper_QPictureFormatPlugin : public QObject -{ Q_OBJECT -public: -public slots: -QPictureFormatPlugin* new_QPictureFormatPlugin(QObject* parent = 0); -void delete_QPictureFormatPlugin(QPictureFormatPlugin* obj) { delete obj; } - bool loadPicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, QPicture* pic); - bool savePicture(QPictureFormatPlugin* theWrappedObject, const QString& format, const QString& filename, const QPicture& pic); -}; - - - - - -class PythonQtWrapper_QPictureIO : public QObject -{ Q_OBJECT -public: -public slots: -QPictureIO* new_QPictureIO(); -QPictureIO* new_QPictureIO(QIODevice* ioDevice, const char* format); -QPictureIO* new_QPictureIO(const QString& fileName, const char* format); -void delete_QPictureIO(QPictureIO* obj) { delete obj; } - QString description(QPictureIO* theWrappedObject) const; - QString fileName(QPictureIO* theWrappedObject) const; - const char* format(QPictureIO* theWrappedObject) const; - float gamma(QPictureIO* theWrappedObject) const; - QList static_QPictureIO_inputFormats(); - QIODevice* ioDevice(QPictureIO* theWrappedObject) const; - QList static_QPictureIO_outputFormats(); - const char* parameters(QPictureIO* theWrappedObject) const; - const QPicture* picture(QPictureIO* theWrappedObject) const; - QByteArray static_QPictureIO_pictureFormat(QIODevice* arg__1); - QByteArray static_QPictureIO_pictureFormat(const QString& fileName); - int quality(QPictureIO* theWrappedObject) const; - bool read(QPictureIO* theWrappedObject); - void setDescription(QPictureIO* theWrappedObject, const QString& arg__1); - void setFileName(QPictureIO* theWrappedObject, const QString& arg__1); - void setFormat(QPictureIO* theWrappedObject, const char* arg__1); - void setGamma(QPictureIO* theWrappedObject, float arg__1); - void setIODevice(QPictureIO* theWrappedObject, QIODevice* arg__1); - void setParameters(QPictureIO* theWrappedObject, const char* arg__1); - void setPicture(QPictureIO* theWrappedObject, const QPicture& arg__1); - void setQuality(QPictureIO* theWrappedObject, int arg__1); - void setStatus(QPictureIO* theWrappedObject, int arg__1); - int status(QPictureIO* theWrappedObject) const; - bool write(QPictureIO* theWrappedObject); -}; - - - - - -class PythonQtShell_QPinchGesture : public QPinchGesture -{ -public: - PythonQtShell_QPinchGesture(QObject* parent = 0):QPinchGesture(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPinchGesture : public QObject -{ Q_OBJECT -public: -public slots: -QPinchGesture* new_QPinchGesture(QObject* parent = 0); -void delete_QPinchGesture(QPinchGesture* obj) { delete obj; } - QPointF centerPoint(QPinchGesture* theWrappedObject) const; - QPointF lastCenterPoint(QPinchGesture* theWrappedObject) const; - qreal lastRotationAngle(QPinchGesture* theWrappedObject) const; - qreal lastScaleFactor(QPinchGesture* theWrappedObject) const; - qreal rotationAngle(QPinchGesture* theWrappedObject) const; - qreal scaleFactor(QPinchGesture* theWrappedObject) const; - void setCenterPoint(QPinchGesture* theWrappedObject, const QPointF& value); - void setLastCenterPoint(QPinchGesture* theWrappedObject, const QPointF& value); - void setLastRotationAngle(QPinchGesture* theWrappedObject, qreal value); - void setLastScaleFactor(QPinchGesture* theWrappedObject, qreal value); - void setRotationAngle(QPinchGesture* theWrappedObject, qreal value); - void setScaleFactor(QPinchGesture* theWrappedObject, qreal value); - void setStartCenterPoint(QPinchGesture* theWrappedObject, const QPointF& value); - void setTotalRotationAngle(QPinchGesture* theWrappedObject, qreal value); - void setTotalScaleFactor(QPinchGesture* theWrappedObject, qreal value); - QPointF startCenterPoint(QPinchGesture* theWrappedObject) const; - qreal totalRotationAngle(QPinchGesture* theWrappedObject) const; - qreal totalScaleFactor(QPinchGesture* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QPixmapCache : public QPixmapCache -{ -public: - PythonQtShell_QPixmapCache():QPixmapCache(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPixmapCache : public QObject -{ Q_OBJECT -public: -public slots: -QPixmapCache* new_QPixmapCache(); -void delete_QPixmapCache(QPixmapCache* obj) { delete obj; } - int static_QPixmapCache_cacheLimit(); - void static_QPixmapCache_clear(); - bool static_QPixmapCache_find(const QPixmapCache::Key& key, QPixmap* pixmap); - bool static_QPixmapCache_find(const QString& key, QPixmap& pixmap); - QPixmapCache::Key static_QPixmapCache_insert(const QPixmap& pixmap); - bool static_QPixmapCache_insert(const QString& key, const QPixmap& pixmap); - void static_QPixmapCache_remove(const QPixmapCache::Key& key); - void static_QPixmapCache_remove(const QString& key); - bool static_QPixmapCache_replace(const QPixmapCache::Key& key, const QPixmap& pixmap); - void static_QPixmapCache_setCacheLimit(int arg__1); -}; - - - - - -class PythonQtWrapper_QPixmapCache_Key : public QObject -{ Q_OBJECT -public: -public slots: -QPixmapCache::Key* new_QPixmapCache_Key(); -QPixmapCache::Key* new_QPixmapCache_Key(const QPixmapCache::Key& other); -void delete_QPixmapCache_Key(QPixmapCache::Key* obj) { delete obj; } - bool __ne__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const; - QPixmapCache::Key* operator_assign(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& other); - bool __eq__(QPixmapCache::Key* theWrappedObject, const QPixmapCache::Key& key) const; -}; - - - - - -class PythonQtShell_QPlainTextDocumentLayout : public QPlainTextDocumentLayout -{ -public: - PythonQtShell_QPlainTextDocumentLayout(QTextDocument* document):QPlainTextDocumentLayout(document),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPlainTextDocumentLayout : public QObject -{ Q_OBJECT -public: -public slots: -QPlainTextDocumentLayout* new_QPlainTextDocumentLayout(QTextDocument* document); -void delete_QPlainTextDocumentLayout(QPlainTextDocumentLayout* obj) { delete obj; } - QRectF blockBoundingRect(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const; - int cursorWidth(QPlainTextDocumentLayout* theWrappedObject) const; - QSizeF documentSize(QPlainTextDocumentLayout* theWrappedObject) const; - void draw(QPlainTextDocumentLayout* theWrappedObject, QPainter* arg__1, const QAbstractTextDocumentLayout::PaintContext& arg__2); - void ensureBlockLayout(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const; - QRectF frameBoundingRect(QPlainTextDocumentLayout* theWrappedObject, QTextFrame* arg__1) const; - int hitTest(QPlainTextDocumentLayout* theWrappedObject, const QPointF& arg__1, Qt::HitTestAccuracy arg__2) const; - int pageCount(QPlainTextDocumentLayout* theWrappedObject) const; - void requestUpdate(QPlainTextDocumentLayout* theWrappedObject); - void setCursorWidth(QPlainTextDocumentLayout* theWrappedObject, int width); -}; - - - - - -class PythonQtShell_QPlainTextEdit : public QPlainTextEdit -{ -public: - PythonQtShell_QPlainTextEdit(QWidget* parent = 0):QPlainTextEdit(parent),_wrapper(NULL) {}; - PythonQtShell_QPlainTextEdit(const QString& text, QWidget* parent = 0):QPlainTextEdit(text, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual bool canInsertFromMimeData(const QMimeData* source) const; -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* e); -virtual QMimeData* createMimeDataFromSelection() const; -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* e); -virtual void dragLeaveEvent(QDragLeaveEvent* e); -virtual void dragMoveEvent(QDragMoveEvent* e); -virtual void dropEvent(QDropEvent* e); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; -virtual void insertFromMimeData(const QMimeData* source); -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual QVariant loadResource(int type, const QUrl& name); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* e); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void resizeEvent(QResizeEvent* e); -virtual void scrollContentsBy(int dx, int dy); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual bool viewportEvent(QEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPlainTextEdit : public QPlainTextEdit -{ public: -inline bool promoted_canInsertFromMimeData(const QMimeData* source) const { return QPlainTextEdit::canInsertFromMimeData(source); } -inline void promoted_changeEvent(QEvent* e) { QPlainTextEdit::changeEvent(e); } -inline void promoted_contextMenuEvent(QContextMenuEvent* e) { QPlainTextEdit::contextMenuEvent(e); } -inline QMimeData* promoted_createMimeDataFromSelection() const { return QPlainTextEdit::createMimeDataFromSelection(); } -inline void promoted_dragEnterEvent(QDragEnterEvent* e) { QPlainTextEdit::dragEnterEvent(e); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QPlainTextEdit::dragLeaveEvent(e); } -inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QPlainTextEdit::dragMoveEvent(e); } -inline void promoted_dropEvent(QDropEvent* e) { QPlainTextEdit::dropEvent(e); } -inline bool promoted_event(QEvent* e) { return QPlainTextEdit::event(e); } -inline void promoted_focusInEvent(QFocusEvent* e) { QPlainTextEdit::focusInEvent(e); } -inline bool promoted_focusNextPrevChild(bool next) { return QPlainTextEdit::focusNextPrevChild(next); } -inline void promoted_focusOutEvent(QFocusEvent* e) { QPlainTextEdit::focusOutEvent(e); } -inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QPlainTextEdit::inputMethodEvent(arg__1); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery property) const { return QPlainTextEdit::inputMethodQuery(property); } -inline void promoted_insertFromMimeData(const QMimeData* source) { QPlainTextEdit::insertFromMimeData(source); } -inline void promoted_keyPressEvent(QKeyEvent* e) { QPlainTextEdit::keyPressEvent(e); } -inline void promoted_keyReleaseEvent(QKeyEvent* e) { QPlainTextEdit::keyReleaseEvent(e); } -inline QVariant promoted_loadResource(int type, const QUrl& name) { return QPlainTextEdit::loadResource(type, name); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QPlainTextEdit::mouseDoubleClickEvent(e); } -inline void promoted_mouseMoveEvent(QMouseEvent* e) { QPlainTextEdit::mouseMoveEvent(e); } -inline void promoted_mousePressEvent(QMouseEvent* e) { QPlainTextEdit::mousePressEvent(e); } -inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QPlainTextEdit::mouseReleaseEvent(e); } -inline void promoted_paintEvent(QPaintEvent* e) { QPlainTextEdit::paintEvent(e); } -inline void promoted_resizeEvent(QResizeEvent* e) { QPlainTextEdit::resizeEvent(e); } -inline void promoted_scrollContentsBy(int dx, int dy) { QPlainTextEdit::scrollContentsBy(dx, dy); } -inline void promoted_showEvent(QShowEvent* arg__1) { QPlainTextEdit::showEvent(arg__1); } -inline void promoted_timerEvent(QTimerEvent* e) { QPlainTextEdit::timerEvent(e); } -inline void promoted_wheelEvent(QWheelEvent* e) { QPlainTextEdit::wheelEvent(e); } -}; - -class PythonQtWrapper_QPlainTextEdit : public QObject -{ Q_OBJECT -public: -public slots: -QPlainTextEdit* new_QPlainTextEdit(QWidget* parent = 0); -QPlainTextEdit* new_QPlainTextEdit(const QString& text, QWidget* parent = 0); -void delete_QPlainTextEdit(QPlainTextEdit* obj) { delete obj; } - bool backgroundVisible(QPlainTextEdit* theWrappedObject) const; - int blockCount(QPlainTextEdit* theWrappedObject) const; - bool canInsertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source) const; - bool canPaste(QPlainTextEdit* theWrappedObject) const; - bool centerOnScroll(QPlainTextEdit* theWrappedObject) const; - void changeEvent(QPlainTextEdit* theWrappedObject, QEvent* e); - void contextMenuEvent(QPlainTextEdit* theWrappedObject, QContextMenuEvent* e); - QMimeData* createMimeDataFromSelection(QPlainTextEdit* theWrappedObject) const; - QMenu* createStandardContextMenu(QPlainTextEdit* theWrappedObject); - QTextCharFormat currentCharFormat(QPlainTextEdit* theWrappedObject) const; - QTextCursor cursorForPosition(QPlainTextEdit* theWrappedObject, const QPoint& pos) const; - QRect cursorRect(QPlainTextEdit* theWrappedObject) const; - QRect cursorRect(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor) const; - int cursorWidth(QPlainTextEdit* theWrappedObject) const; - QTextDocument* document(QPlainTextEdit* theWrappedObject) const; - QString documentTitle(QPlainTextEdit* theWrappedObject) const; - void dragEnterEvent(QPlainTextEdit* theWrappedObject, QDragEnterEvent* e); - void dragLeaveEvent(QPlainTextEdit* theWrappedObject, QDragLeaveEvent* e); - void dragMoveEvent(QPlainTextEdit* theWrappedObject, QDragMoveEvent* e); - void dropEvent(QPlainTextEdit* theWrappedObject, QDropEvent* e); - void ensureCursorVisible(QPlainTextEdit* theWrappedObject); - bool event(QPlainTextEdit* theWrappedObject, QEvent* e); - QList extraSelections(QPlainTextEdit* theWrappedObject) const; - bool find(QPlainTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0); - void focusInEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e); - bool focusNextPrevChild(QPlainTextEdit* theWrappedObject, bool next); - void focusOutEvent(QPlainTextEdit* theWrappedObject, QFocusEvent* e); - void inputMethodEvent(QPlainTextEdit* theWrappedObject, QInputMethodEvent* arg__1); - QVariant inputMethodQuery(QPlainTextEdit* theWrappedObject, Qt::InputMethodQuery property) const; - void insertFromMimeData(QPlainTextEdit* theWrappedObject, const QMimeData* source); - bool isReadOnly(QPlainTextEdit* theWrappedObject) const; - bool isUndoRedoEnabled(QPlainTextEdit* theWrappedObject) const; - void keyPressEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e); - void keyReleaseEvent(QPlainTextEdit* theWrappedObject, QKeyEvent* e); - QPlainTextEdit::LineWrapMode lineWrapMode(QPlainTextEdit* theWrappedObject) const; - QVariant loadResource(QPlainTextEdit* theWrappedObject, int type, const QUrl& name); - int maximumBlockCount(QPlainTextEdit* theWrappedObject) const; - void mergeCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& modifier); - void mouseDoubleClickEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); - void mouseMoveEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); - void mousePressEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); - void mouseReleaseEvent(QPlainTextEdit* theWrappedObject, QMouseEvent* e); - void moveCursor(QPlainTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); - bool overwriteMode(QPlainTextEdit* theWrappedObject) const; - void paintEvent(QPlainTextEdit* theWrappedObject, QPaintEvent* e); - void print(QPlainTextEdit* theWrappedObject, QPrinter* printer) const; - void resizeEvent(QPlainTextEdit* theWrappedObject, QResizeEvent* e); - void scrollContentsBy(QPlainTextEdit* theWrappedObject, int dx, int dy); - void setBackgroundVisible(QPlainTextEdit* theWrappedObject, bool visible); - void setCenterOnScroll(QPlainTextEdit* theWrappedObject, bool enabled); - void setCurrentCharFormat(QPlainTextEdit* theWrappedObject, const QTextCharFormat& format); - void setCursorWidth(QPlainTextEdit* theWrappedObject, int width); - void setDocument(QPlainTextEdit* theWrappedObject, QTextDocument* document); - void setDocumentTitle(QPlainTextEdit* theWrappedObject, const QString& title); - void setExtraSelections(QPlainTextEdit* theWrappedObject, const QList& selections); - void setLineWrapMode(QPlainTextEdit* theWrappedObject, QPlainTextEdit::LineWrapMode mode); - void setMaximumBlockCount(QPlainTextEdit* theWrappedObject, int maximum); - void setOverwriteMode(QPlainTextEdit* theWrappedObject, bool overwrite); - void setReadOnly(QPlainTextEdit* theWrappedObject, bool ro); - void setTabChangesFocus(QPlainTextEdit* theWrappedObject, bool b); - void setTabStopWidth(QPlainTextEdit* theWrappedObject, int width); - void setTextCursor(QPlainTextEdit* theWrappedObject, const QTextCursor& cursor); - void setTextInteractionFlags(QPlainTextEdit* theWrappedObject, Qt::TextInteractionFlags flags); - void setUndoRedoEnabled(QPlainTextEdit* theWrappedObject, bool enable); - void setWordWrapMode(QPlainTextEdit* theWrappedObject, QTextOption::WrapMode policy); - void showEvent(QPlainTextEdit* theWrappedObject, QShowEvent* arg__1); - bool tabChangesFocus(QPlainTextEdit* theWrappedObject) const; - int tabStopWidth(QPlainTextEdit* theWrappedObject) const; - QTextCursor textCursor(QPlainTextEdit* theWrappedObject) const; - Qt::TextInteractionFlags textInteractionFlags(QPlainTextEdit* theWrappedObject) const; - void timerEvent(QPlainTextEdit* theWrappedObject, QTimerEvent* e); - QString toPlainText(QPlainTextEdit* theWrappedObject) const; - void wheelEvent(QPlainTextEdit* theWrappedObject, QWheelEvent* e); - QTextOption::WrapMode wordWrapMode(QPlainTextEdit* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QPlastiqueStyle : public QPlastiqueStyle -{ -public: - PythonQtShell_QPlastiqueStyle():QPlastiqueStyle(),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const; -virtual void drawControl(QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* watched, QEvent* event); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget = 0) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* app); -virtual void polish(QPalette& pal); -virtual void polish(QWidget* widget); -virtual QSize sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const; -virtual int styleHint(QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const; -virtual QRect subElementRect(QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const; -virtual void timerEvent(QTimerEvent* event); -virtual void unpolish(QApplication* app); -virtual void unpolish(QWidget* widget); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPlastiqueStyle : public QPlastiqueStyle -{ public: -inline void promoted_drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const { QPlastiqueStyle::drawComplexControl(control, option, painter, widget); } -inline void promoted_drawControl(QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const { QPlastiqueStyle::drawControl(element, option, painter, widget); } -inline void promoted_drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const { QPlastiqueStyle::drawPrimitive(element, option, painter, widget); } -inline bool promoted_eventFilter(QObject* watched, QEvent* event) { return QPlastiqueStyle::eventFilter(watched, event); } -inline QStyle::SubControl promoted_hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget = 0) const { return QPlastiqueStyle::hitTestComplexControl(control, option, pos, widget); } -inline int promoted_pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const { return QPlastiqueStyle::pixelMetric(metric, option, widget); } -inline void promoted_polish(QApplication* app) { QPlastiqueStyle::polish(app); } -inline void promoted_polish(QPalette& pal) { QPlastiqueStyle::polish(pal); } -inline void promoted_polish(QWidget* widget) { QPlastiqueStyle::polish(widget); } -inline QSize promoted_sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const { return QPlastiqueStyle::sizeFromContents(type, option, size, widget); } -inline QPalette promoted_standardPalette() const { return QPlastiqueStyle::standardPalette(); } -inline int promoted_styleHint(QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const { return QPlastiqueStyle::styleHint(hint, option, widget, returnData); } -inline QRect promoted_subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const { return QPlastiqueStyle::subControlRect(cc, opt, sc, widget); } -inline QRect promoted_subElementRect(QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const { return QPlastiqueStyle::subElementRect(element, option, widget); } -inline void promoted_timerEvent(QTimerEvent* event) { QPlastiqueStyle::timerEvent(event); } -inline void promoted_unpolish(QApplication* app) { QPlastiqueStyle::unpolish(app); } -inline void promoted_unpolish(QWidget* widget) { QPlastiqueStyle::unpolish(widget); } -}; - -class PythonQtWrapper_QPlastiqueStyle : public QObject -{ Q_OBJECT -public: -public slots: -QPlastiqueStyle* new_QPlastiqueStyle(); -void delete_QPlastiqueStyle(QPlastiqueStyle* obj) { delete obj; } - void drawComplexControl(QPlastiqueStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const; - void drawControl(QPlastiqueStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const; - void drawPrimitive(QPlastiqueStyle* theWrappedObject, QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; - bool eventFilter(QPlastiqueStyle* theWrappedObject, QObject* watched, QEvent* event); - QStyle::SubControl hitTestComplexControl(QPlastiqueStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget = 0) const; - int pixelMetric(QPlastiqueStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; - void polish(QPlastiqueStyle* theWrappedObject, QApplication* app); - void polish(QPlastiqueStyle* theWrappedObject, QPalette& pal); - void polish(QPlastiqueStyle* theWrappedObject, QWidget* widget); - QSize sizeFromContents(QPlastiqueStyle* theWrappedObject, QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const; - QPalette standardPalette(QPlastiqueStyle* theWrappedObject) const; - int styleHint(QPlastiqueStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; - QRect subControlRect(QPlastiqueStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const; - QRect subElementRect(QPlastiqueStyle* theWrappedObject, QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const; - void timerEvent(QPlastiqueStyle* theWrappedObject, QTimerEvent* event); - void unpolish(QPlastiqueStyle* theWrappedObject, QApplication* app); - void unpolish(QPlastiqueStyle* theWrappedObject, QWidget* widget); -}; - - - - - -class PythonQtWrapper_QPolygonF : public QObject -{ Q_OBJECT -public: -public slots: -QPolygonF* new_QPolygonF(); -QPolygonF* new_QPolygonF(const QPolygon& a); -QPolygonF* new_QPolygonF(const QPolygonF& a); -QPolygonF* new_QPolygonF(const QRectF& r); -QPolygonF* new_QPolygonF(const QVector& v); -QPolygonF* new_QPolygonF(int size); -void delete_QPolygonF(QPolygonF* obj) { delete obj; } - void append(QPolygonF* theWrappedObject, const QPointF& t); - const QPointF* at(QPolygonF* theWrappedObject, int i) const; - QRectF boundingRect(QPolygonF* theWrappedObject) const; - int capacity(QPolygonF* theWrappedObject) const; - void clear(QPolygonF* theWrappedObject); - bool contains(QPolygonF* theWrappedObject, const QPointF& t) const; - bool containsPoint(QPolygonF* theWrappedObject, const QPointF& pt, Qt::FillRule fillRule) const; - int count(QPolygonF* theWrappedObject) const; - int count(QPolygonF* theWrappedObject, const QPointF& t) const; - bool empty(QPolygonF* theWrappedObject) const; - bool endsWith(QPolygonF* theWrappedObject, const QPointF& t) const; - QVector* fill(QPolygonF* theWrappedObject, const QPointF& t, int size); - const QPointF* first(QPolygonF* theWrappedObject) const; - QVector static_QPolygonF_fromList(const QList& list); - int indexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const; - QPolygonF intersected(QPolygonF* theWrappedObject, const QPolygonF& r) const; - bool isClosed(QPolygonF* theWrappedObject) const; - bool isEmpty(QPolygonF* theWrappedObject) const; - const QPointF* last(QPolygonF* theWrappedObject) const; - int lastIndexOf(QPolygonF* theWrappedObject, const QPointF& t, int from) const; - QVector mid(QPolygonF* theWrappedObject, int pos, int length) const; - bool __ne__(QPolygonF* theWrappedObject, const QVector& v) const; - QPolygonF __mul__(QPolygonF* theWrappedObject, const QMatrix& m); - QPolygonF __mul__(QPolygonF* theWrappedObject, const QTransform& m); - void writeTo(QPolygonF* theWrappedObject, QDataStream& stream); - bool __eq__(QPolygonF* theWrappedObject, const QVector& v) const; - void readFrom(QPolygonF* theWrappedObject, QDataStream& stream); - void pop_back(QPolygonF* theWrappedObject); - void pop_front(QPolygonF* theWrappedObject); - void prepend(QPolygonF* theWrappedObject, const QPointF& t); - void push_back(QPolygonF* theWrappedObject, const QPointF& t); - void push_front(QPolygonF* theWrappedObject, const QPointF& t); - void remove(QPolygonF* theWrappedObject, int i); - void remove(QPolygonF* theWrappedObject, int i, int n); - void replace(QPolygonF* theWrappedObject, int i, const QPointF& t); - void reserve(QPolygonF* theWrappedObject, int size); - void resize(QPolygonF* theWrappedObject, int size); - void setSharable(QPolygonF* theWrappedObject, bool sharable); - int size(QPolygonF* theWrappedObject) const; - void squeeze(QPolygonF* theWrappedObject); - bool startsWith(QPolygonF* theWrappedObject, const QPointF& t) const; - QPolygonF subtracted(QPolygonF* theWrappedObject, const QPolygonF& r) const; - QList toList(QPolygonF* theWrappedObject) const; - QPolygon toPolygon(QPolygonF* theWrappedObject) const; - void translate(QPolygonF* theWrappedObject, const QPointF& offset); - void translate(QPolygonF* theWrappedObject, qreal dx, qreal dy); - QPolygonF translated(QPolygonF* theWrappedObject, const QPointF& offset) const; - QPolygonF translated(QPolygonF* theWrappedObject, qreal dx, qreal dy) const; - QPolygonF united(QPolygonF* theWrappedObject, const QPolygonF& r) const; - QPointF value(QPolygonF* theWrappedObject, int i) const; - QPointF value(QPolygonF* theWrappedObject, int i, const QPointF& defaultValue) const; - QString py_toString(QPolygonF*); -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp deleted file mode 100644 index 45c8c0026..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp +++ /dev/null @@ -1,17675 +0,0 @@ -#include "com_trolltech_qt_gui6.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QPrintDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::accept(); -} -void PythonQtShell_QPrintDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::actionEvent(arg__1); -} -void PythonQtShell_QPrintDialog::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::changeEvent(arg__1); -} -void PythonQtShell_QPrintDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::childEvent(arg__1); -} -void PythonQtShell_QPrintDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::closeEvent(arg__1); -} -void PythonQtShell_QPrintDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QPrintDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::customEvent(arg__1); -} -int PythonQtShell_QPrintDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::devType(); -} -void PythonQtShell_QPrintDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::done(result); -} -void PythonQtShell_QPrintDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QPrintDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QPrintDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QPrintDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::dropEvent(arg__1); -} -void PythonQtShell_QPrintDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::enterEvent(arg__1); -} -bool PythonQtShell_QPrintDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::event(arg__1); -} -bool PythonQtShell_QPrintDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::eventFilter(arg__1, arg__2); -} -int PythonQtShell_QPrintDialog::exec() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "exec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("exec", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::exec(); -} -void PythonQtShell_QPrintDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QPrintDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::focusNextPrevChild(next); -} -void PythonQtShell_QPrintDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QPrintDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::heightForWidth(arg__1); -} -void PythonQtShell_QPrintDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::hideEvent(arg__1); -} -void PythonQtShell_QPrintDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QPrintDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QPrintDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QPrintDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QPrintDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::languageChange(); -} -void PythonQtShell_QPrintDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::leaveEvent(arg__1); -} -int PythonQtShell_QPrintDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::metric(arg__1); -} -void PythonQtShell_QPrintDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QPrintDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QPrintDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QPrintDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QPrintDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QPrintDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintDialog::paintEngine(); -} -void PythonQtShell_QPrintDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::paintEvent(arg__1); -} -void PythonQtShell_QPrintDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::reject(); -} -void PythonQtShell_QPrintDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::resizeEvent(arg__1); -} -void PythonQtShell_QPrintDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::showEvent(arg__1); -} -void PythonQtShell_QPrintDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::tabletEvent(arg__1); -} -void PythonQtShell_QPrintDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::timerEvent(arg__1); -} -void PythonQtShell_QPrintDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintDialog::wheelEvent(arg__1); -} -QPrintDialog* PythonQtWrapper_QPrintDialog::new_QPrintDialog(QPrinter* printer, QWidget* parent) -{ -return new PythonQtShell_QPrintDialog(printer, parent); } - -QPrintDialog* PythonQtWrapper_QPrintDialog::new_QPrintDialog(QWidget* parent) -{ -return new PythonQtShell_QPrintDialog(parent); } - -void PythonQtWrapper_QPrintDialog::accepted(QPrintDialog* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_accepted()); -} - -void PythonQtWrapper_QPrintDialog::done(QPrintDialog* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_done(result)); -} - -int PythonQtWrapper_QPrintDialog::exec(QPrintDialog* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QPrintDialog*)theWrappedObject)->promoted_exec()); -} - -void PythonQtWrapper_QPrintDialog::open(QPrintDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QPrintDialog::open(QPrintDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QAbstractPrintDialog::PrintDialogOptions PythonQtWrapper_QPrintDialog::options(QPrintDialog* theWrappedObject) const -{ - return ( theWrappedObject->options()); -} - -void PythonQtWrapper_QPrintDialog::setOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option, bool on) -{ - ( theWrappedObject->setOption(option, on)); -} - -void PythonQtWrapper_QPrintDialog::setOptions(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options) -{ - ( theWrappedObject->setOptions(options)); -} - -bool PythonQtWrapper_QPrintDialog::testOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const -{ - return ( theWrappedObject->testOption(option)); -} - - - -bool PythonQtShell_QPrintEngine::abort() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "abort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("abort", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -int PythonQtShell_QPrintEngine::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QPrintEngine::newPage() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "newPage"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("newPage", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -QPrinter::PrinterState PythonQtShell_QPrintEngine::printerState() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "printerState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPrinter::PrinterState"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPrinter::PrinterState returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("printerState", methodInfo, result); - } else { - returnValue = *((QPrinter::PrinterState*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrinter::PrinterState(); -} -QVariant PythonQtShell_QPrintEngine::property(QPrintEngine::PrintEnginePropertyKey key) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "property"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "QPrintEngine::PrintEnginePropertyKey"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("property", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QVariant(); -} -void PythonQtShell_QPrintEngine::setProperty(QPrintEngine::PrintEnginePropertyKey key, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setProperty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPrintEngine::PrintEnginePropertyKey" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&key, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QPrintEngine* PythonQtWrapper_QPrintEngine::new_QPrintEngine() -{ -return new PythonQtShell_QPrintEngine(); } - - - -void PythonQtShell_QPrintPreviewDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::accept(); -} -void PythonQtShell_QPrintPreviewDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::actionEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::changeEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::childEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::closeEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::customEvent(arg__1); -} -int PythonQtShell_QPrintPreviewDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::devType(); -} -void PythonQtShell_QPrintPreviewDialog::done(int result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&result}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::done(result); -} -void PythonQtShell_QPrintPreviewDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::dropEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::enterEvent(arg__1); -} -bool PythonQtShell_QPrintPreviewDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::event(arg__1); -} -bool PythonQtShell_QPrintPreviewDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QPrintPreviewDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QPrintPreviewDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::focusNextPrevChild(next); -} -void PythonQtShell_QPrintPreviewDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QPrintPreviewDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::heightForWidth(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::hideEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QPrintPreviewDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::languageChange(); -} -void PythonQtShell_QPrintPreviewDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::leaveEvent(arg__1); -} -int PythonQtShell_QPrintPreviewDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::metric(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QPrintPreviewDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewDialog::paintEngine(); -} -void PythonQtShell_QPrintPreviewDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::paintEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::reject(); -} -void PythonQtShell_QPrintPreviewDialog::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::resizeEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::showEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::tabletEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::timerEvent(arg__1); -} -void PythonQtShell_QPrintPreviewDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewDialog::wheelEvent(arg__1); -} -QPrintPreviewDialog* PythonQtWrapper_QPrintPreviewDialog::new_QPrintPreviewDialog(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QPrintPreviewDialog(printer, parent, flags); } - -QPrintPreviewDialog* PythonQtWrapper_QPrintPreviewDialog::new_QPrintPreviewDialog(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QPrintPreviewDialog(parent, flags); } - -void PythonQtWrapper_QPrintPreviewDialog::done(QPrintPreviewDialog* theWrappedObject, int result) -{ - ( ((PythonQtPublicPromoter_QPrintPreviewDialog*)theWrappedObject)->promoted_done(result)); -} - -void PythonQtWrapper_QPrintPreviewDialog::open(QPrintPreviewDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QPrintPreviewDialog::open(QPrintPreviewDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -QPrinter* PythonQtWrapper_QPrintPreviewDialog::printer(QPrintPreviewDialog* theWrappedObject) -{ - return ( theWrappedObject->printer()); -} - -void PythonQtWrapper_QPrintPreviewDialog::setVisible(QPrintPreviewDialog* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - - - -void PythonQtShell_QPrintPreviewWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::actionEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::changeEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::childEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::closeEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::customEvent(arg__1); -} -int PythonQtShell_QPrintPreviewWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::devType(); -} -void PythonQtShell_QPrintPreviewWidget::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::dragEnterEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::dragLeaveEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::dragMoveEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::dropEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::enterEvent(arg__1); -} -bool PythonQtShell_QPrintPreviewWidget::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::event(arg__1); -} -bool PythonQtShell_QPrintPreviewWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QPrintPreviewWidget::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::focusInEvent(arg__1); -} -bool PythonQtShell_QPrintPreviewWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::focusNextPrevChild(next); -} -void PythonQtShell_QPrintPreviewWidget::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::focusOutEvent(arg__1); -} -int PythonQtShell_QPrintPreviewWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::heightForWidth(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::hideEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QPrintPreviewWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::inputMethodQuery(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::keyPressEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::languageChange(); -} -void PythonQtShell_QPrintPreviewWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::leaveEvent(arg__1); -} -int PythonQtShell_QPrintPreviewWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::metric(arg__1); -} -QSize PythonQtShell_QPrintPreviewWidget::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::minimumSizeHint(); -} -void PythonQtShell_QPrintPreviewWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::mouseMoveEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::mousePressEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QPrintPreviewWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::paintEngine(); -} -void PythonQtShell_QPrintPreviewWidget::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::paintEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::resizeEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::showEvent(arg__1); -} -QSize PythonQtShell_QPrintPreviewWidget::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrintPreviewWidget::sizeHint(); -} -void PythonQtShell_QPrintPreviewWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::tabletEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::timerEvent(arg__1); -} -void PythonQtShell_QPrintPreviewWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPrintPreviewWidget::wheelEvent(arg__1); -} -QPrintPreviewWidget* PythonQtWrapper_QPrintPreviewWidget::new_QPrintPreviewWidget(QPrinter* printer, QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QPrintPreviewWidget(printer, parent, flags); } - -QPrintPreviewWidget* PythonQtWrapper_QPrintPreviewWidget::new_QPrintPreviewWidget(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QPrintPreviewWidget(parent, flags); } - -int PythonQtWrapper_QPrintPreviewWidget::currentPage(QPrintPreviewWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentPage()); -} - -int PythonQtWrapper_QPrintPreviewWidget::numPages(QPrintPreviewWidget* theWrappedObject) const -{ - return ( theWrappedObject->numPages()); -} - -QPrinter::Orientation PythonQtWrapper_QPrintPreviewWidget::orientation(QPrintPreviewWidget* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -int PythonQtWrapper_QPrintPreviewWidget::pageCount(QPrintPreviewWidget* theWrappedObject) const -{ - return ( theWrappedObject->pageCount()); -} - -void PythonQtWrapper_QPrintPreviewWidget::setVisible(QPrintPreviewWidget* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -QPrintPreviewWidget::ViewMode PythonQtWrapper_QPrintPreviewWidget::viewMode(QPrintPreviewWidget* theWrappedObject) const -{ - return ( theWrappedObject->viewMode()); -} - -qreal PythonQtWrapper_QPrintPreviewWidget::zoomFactor(QPrintPreviewWidget* theWrappedObject) const -{ - return ( theWrappedObject->zoomFactor()); -} - -QPrintPreviewWidget::ZoomMode PythonQtWrapper_QPrintPreviewWidget::zoomMode(QPrintPreviewWidget* theWrappedObject) const -{ - return ( theWrappedObject->zoomMode()); -} - - - -int PythonQtShell_QPrinter::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrinter::devType(); -} -int PythonQtShell_QPrinter::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrinter::metric(arg__1); -} -QPaintEngine* PythonQtShell_QPrinter::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPrinter::paintEngine(); -} -QPrinter* PythonQtWrapper_QPrinter::new_QPrinter(QPrinter::PrinterMode mode) -{ -return new PythonQtShell_QPrinter(mode); } - -QPrinter* PythonQtWrapper_QPrinter::new_QPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode) -{ -return new PythonQtShell_QPrinter(printer, mode); } - -bool PythonQtWrapper_QPrinter::abort(QPrinter* theWrappedObject) -{ - return ( theWrappedObject->abort()); -} - -int PythonQtWrapper_QPrinter::actualNumCopies(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->actualNumCopies()); -} - -bool PythonQtWrapper_QPrinter::collateCopies(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->collateCopies()); -} - -QPrinter::ColorMode PythonQtWrapper_QPrinter::colorMode(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->colorMode()); -} - -QString PythonQtWrapper_QPrinter::creator(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->creator()); -} - -int PythonQtWrapper_QPrinter::devType(QPrinter* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPrinter*)theWrappedObject)->promoted_devType()); -} - -QString PythonQtWrapper_QPrinter::docName(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->docName()); -} - -bool PythonQtWrapper_QPrinter::doubleSidedPrinting(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->doubleSidedPrinting()); -} - -QPrinter::DuplexMode PythonQtWrapper_QPrinter::duplex(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->duplex()); -} - -bool PythonQtWrapper_QPrinter::fontEmbeddingEnabled(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->fontEmbeddingEnabled()); -} - -int PythonQtWrapper_QPrinter::fromPage(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->fromPage()); -} - -bool PythonQtWrapper_QPrinter::fullPage(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->fullPage()); -} - -void PythonQtWrapper_QPrinter::getPageMargins(QPrinter* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom, QPrinter::Unit unit) const -{ - ( theWrappedObject->getPageMargins(left, top, right, bottom, unit)); -} - -bool PythonQtWrapper_QPrinter::isValid(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -int PythonQtWrapper_QPrinter::metric(QPrinter* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const -{ - return ( ((PythonQtPublicPromoter_QPrinter*)theWrappedObject)->promoted_metric(arg__1)); -} - -bool PythonQtWrapper_QPrinter::newPage(QPrinter* theWrappedObject) -{ - return ( theWrappedObject->newPage()); -} - -int PythonQtWrapper_QPrinter::numCopies(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->numCopies()); -} - -QPrinter::Orientation PythonQtWrapper_QPrinter::orientation(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -QString PythonQtWrapper_QPrinter::outputFileName(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->outputFileName()); -} - -QPrinter::OutputFormat PythonQtWrapper_QPrinter::outputFormat(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->outputFormat()); -} - -QPrinter::PageOrder PythonQtWrapper_QPrinter::pageOrder(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->pageOrder()); -} - -QRect PythonQtWrapper_QPrinter::pageRect(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->pageRect()); -} - -QRectF PythonQtWrapper_QPrinter::pageRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const -{ - return ( theWrappedObject->pageRect(arg__1)); -} - -QPrinter::PageSize PythonQtWrapper_QPrinter::pageSize(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->pageSize()); -} - -QPaintEngine* PythonQtWrapper_QPrinter::paintEngine(QPrinter* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPrinter*)theWrappedObject)->promoted_paintEngine()); -} - -QRect PythonQtWrapper_QPrinter::paperRect(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->paperRect()); -} - -QRectF PythonQtWrapper_QPrinter::paperRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const -{ - return ( theWrappedObject->paperRect(arg__1)); -} - -QPrinter::PageSize PythonQtWrapper_QPrinter::paperSize(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->paperSize()); -} - -QSizeF PythonQtWrapper_QPrinter::paperSize(QPrinter* theWrappedObject, QPrinter::Unit unit) const -{ - return ( theWrappedObject->paperSize(unit)); -} - -QPrinter::PaperSource PythonQtWrapper_QPrinter::paperSource(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->paperSource()); -} - -QPrintEngine* PythonQtWrapper_QPrinter::printEngine(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->printEngine()); -} - -QString PythonQtWrapper_QPrinter::printProgram(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->printProgram()); -} - -QPrinter::PrintRange PythonQtWrapper_QPrinter::printRange(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->printRange()); -} - -QString PythonQtWrapper_QPrinter::printerName(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->printerName()); -} - -QPrinter::PrinterState PythonQtWrapper_QPrinter::printerState(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->printerState()); -} - -int PythonQtWrapper_QPrinter::resolution(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->resolution()); -} - -void PythonQtWrapper_QPrinter::setCollateCopies(QPrinter* theWrappedObject, bool collate) -{ - ( theWrappedObject->setCollateCopies(collate)); -} - -void PythonQtWrapper_QPrinter::setColorMode(QPrinter* theWrappedObject, QPrinter::ColorMode arg__1) -{ - ( theWrappedObject->setColorMode(arg__1)); -} - -void PythonQtWrapper_QPrinter::setCreator(QPrinter* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setCreator(arg__1)); -} - -void PythonQtWrapper_QPrinter::setDocName(QPrinter* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setDocName(arg__1)); -} - -void PythonQtWrapper_QPrinter::setDoubleSidedPrinting(QPrinter* theWrappedObject, bool enable) -{ - ( theWrappedObject->setDoubleSidedPrinting(enable)); -} - -void PythonQtWrapper_QPrinter::setDuplex(QPrinter* theWrappedObject, QPrinter::DuplexMode duplex) -{ - ( theWrappedObject->setDuplex(duplex)); -} - -void PythonQtWrapper_QPrinter::setFontEmbeddingEnabled(QPrinter* theWrappedObject, bool enable) -{ - ( theWrappedObject->setFontEmbeddingEnabled(enable)); -} - -void PythonQtWrapper_QPrinter::setFromTo(QPrinter* theWrappedObject, int fromPage, int toPage) -{ - ( theWrappedObject->setFromTo(fromPage, toPage)); -} - -void PythonQtWrapper_QPrinter::setFullPage(QPrinter* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setFullPage(arg__1)); -} - -void PythonQtWrapper_QPrinter::setNumCopies(QPrinter* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setNumCopies(arg__1)); -} - -void PythonQtWrapper_QPrinter::setOrientation(QPrinter* theWrappedObject, QPrinter::Orientation arg__1) -{ - ( theWrappedObject->setOrientation(arg__1)); -} - -void PythonQtWrapper_QPrinter::setOutputFileName(QPrinter* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setOutputFileName(arg__1)); -} - -void PythonQtWrapper_QPrinter::setOutputFormat(QPrinter* theWrappedObject, QPrinter::OutputFormat format) -{ - ( theWrappedObject->setOutputFormat(format)); -} - -void PythonQtWrapper_QPrinter::setPageMargins(QPrinter* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom, QPrinter::Unit unit) -{ - ( theWrappedObject->setPageMargins(left, top, right, bottom, unit)); -} - -void PythonQtWrapper_QPrinter::setPageOrder(QPrinter* theWrappedObject, QPrinter::PageOrder arg__1) -{ - ( theWrappedObject->setPageOrder(arg__1)); -} - -void PythonQtWrapper_QPrinter::setPageSize(QPrinter* theWrappedObject, QPrinter::PageSize arg__1) -{ - ( theWrappedObject->setPageSize(arg__1)); -} - -void PythonQtWrapper_QPrinter::setPaperSize(QPrinter* theWrappedObject, QPrinter::PageSize arg__1) -{ - ( theWrappedObject->setPaperSize(arg__1)); -} - -void PythonQtWrapper_QPrinter::setPaperSize(QPrinter* theWrappedObject, const QSizeF& paperSize, QPrinter::Unit unit) -{ - ( theWrappedObject->setPaperSize(paperSize, unit)); -} - -void PythonQtWrapper_QPrinter::setPaperSource(QPrinter* theWrappedObject, QPrinter::PaperSource arg__1) -{ - ( theWrappedObject->setPaperSource(arg__1)); -} - -void PythonQtWrapper_QPrinter::setPrintProgram(QPrinter* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setPrintProgram(arg__1)); -} - -void PythonQtWrapper_QPrinter::setPrintRange(QPrinter* theWrappedObject, QPrinter::PrintRange range) -{ - ( theWrappedObject->setPrintRange(range)); -} - -void PythonQtWrapper_QPrinter::setPrinterName(QPrinter* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setPrinterName(arg__1)); -} - -void PythonQtWrapper_QPrinter::setResolution(QPrinter* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setResolution(arg__1)); -} - -QList PythonQtWrapper_QPrinter::supportedResolutions(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->supportedResolutions()); -} - -int PythonQtWrapper_QPrinter::toPage(QPrinter* theWrappedObject) const -{ - return ( theWrappedObject->toPage()); -} - - - -void PythonQtShell_QProgressBar::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::actionEvent(arg__1); -} -void PythonQtShell_QProgressBar::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::changeEvent(arg__1); -} -void PythonQtShell_QProgressBar::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::childEvent(arg__1); -} -void PythonQtShell_QProgressBar::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::closeEvent(arg__1); -} -void PythonQtShell_QProgressBar::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::contextMenuEvent(arg__1); -} -void PythonQtShell_QProgressBar::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::customEvent(arg__1); -} -int PythonQtShell_QProgressBar::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::devType(); -} -void PythonQtShell_QProgressBar::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::dragEnterEvent(arg__1); -} -void PythonQtShell_QProgressBar::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::dragLeaveEvent(arg__1); -} -void PythonQtShell_QProgressBar::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::dragMoveEvent(arg__1); -} -void PythonQtShell_QProgressBar::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::dropEvent(arg__1); -} -void PythonQtShell_QProgressBar::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::enterEvent(arg__1); -} -bool PythonQtShell_QProgressBar::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::event(e); -} -bool PythonQtShell_QProgressBar::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QProgressBar::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::focusInEvent(arg__1); -} -bool PythonQtShell_QProgressBar::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::focusNextPrevChild(next); -} -void PythonQtShell_QProgressBar::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::focusOutEvent(arg__1); -} -int PythonQtShell_QProgressBar::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::heightForWidth(arg__1); -} -void PythonQtShell_QProgressBar::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::hideEvent(arg__1); -} -void PythonQtShell_QProgressBar::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QProgressBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::inputMethodQuery(arg__1); -} -void PythonQtShell_QProgressBar::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::keyPressEvent(arg__1); -} -void PythonQtShell_QProgressBar::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::keyReleaseEvent(arg__1); -} -void PythonQtShell_QProgressBar::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::languageChange(); -} -void PythonQtShell_QProgressBar::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::leaveEvent(arg__1); -} -int PythonQtShell_QProgressBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::metric(arg__1); -} -void PythonQtShell_QProgressBar::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QProgressBar::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::mouseMoveEvent(arg__1); -} -void PythonQtShell_QProgressBar::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::mousePressEvent(arg__1); -} -void PythonQtShell_QProgressBar::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QProgressBar::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QProgressBar::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::paintEngine(); -} -void PythonQtShell_QProgressBar::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::paintEvent(arg__1); -} -void PythonQtShell_QProgressBar::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::resizeEvent(arg__1); -} -void PythonQtShell_QProgressBar::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::showEvent(arg__1); -} -void PythonQtShell_QProgressBar::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::tabletEvent(arg__1); -} -QString PythonQtShell_QProgressBar::text() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressBar::text(); -} -void PythonQtShell_QProgressBar::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::timerEvent(arg__1); -} -void PythonQtShell_QProgressBar::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressBar::wheelEvent(arg__1); -} -QProgressBar* PythonQtWrapper_QProgressBar::new_QProgressBar(QWidget* parent) -{ -return new PythonQtShell_QProgressBar(parent); } - -Qt::Alignment PythonQtWrapper_QProgressBar::alignment(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -bool PythonQtWrapper_QProgressBar::event(QProgressBar* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QProgressBar*)theWrappedObject)->promoted_event(e)); -} - -QString PythonQtWrapper_QProgressBar::format(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -bool PythonQtWrapper_QProgressBar::invertedAppearance(QProgressBar* theWrappedObject) -{ - return ( theWrappedObject->invertedAppearance()); -} - -bool PythonQtWrapper_QProgressBar::isTextVisible(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->isTextVisible()); -} - -int PythonQtWrapper_QProgressBar::maximum(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->maximum()); -} - -int PythonQtWrapper_QProgressBar::minimum(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->minimum()); -} - -QSize PythonQtWrapper_QProgressBar::minimumSizeHint(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -Qt::Orientation PythonQtWrapper_QProgressBar::orientation(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QProgressBar::paintEvent(QProgressBar* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QProgressBar*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QProgressBar::setAlignment(QProgressBar* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setAlignment(alignment)); -} - -void PythonQtWrapper_QProgressBar::setFormat(QProgressBar* theWrappedObject, const QString& format) -{ - ( theWrappedObject->setFormat(format)); -} - -void PythonQtWrapper_QProgressBar::setInvertedAppearance(QProgressBar* theWrappedObject, bool invert) -{ - ( theWrappedObject->setInvertedAppearance(invert)); -} - -void PythonQtWrapper_QProgressBar::setTextDirection(QProgressBar* theWrappedObject, QProgressBar::Direction textDirection) -{ - ( theWrappedObject->setTextDirection(textDirection)); -} - -void PythonQtWrapper_QProgressBar::setTextVisible(QProgressBar* theWrappedObject, bool visible) -{ - ( theWrappedObject->setTextVisible(visible)); -} - -QSize PythonQtWrapper_QProgressBar::sizeHint(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QString PythonQtWrapper_QProgressBar::text(QProgressBar* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QProgressBar*)theWrappedObject)->promoted_text()); -} - -QProgressBar::Direction PythonQtWrapper_QProgressBar::textDirection(QProgressBar* theWrappedObject) -{ - return ( theWrappedObject->textDirection()); -} - -int PythonQtWrapper_QProgressBar::value(QProgressBar* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - - - -void PythonQtShell_QProgressDialog::accept() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "accept"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::accept(); -} -void PythonQtShell_QProgressDialog::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::actionEvent(arg__1); -} -void PythonQtShell_QProgressDialog::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::changeEvent(event); -} -void PythonQtShell_QProgressDialog::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::childEvent(arg__1); -} -void PythonQtShell_QProgressDialog::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QProgressDialog::closeEvent(event); -} -void PythonQtShell_QProgressDialog::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::contextMenuEvent(arg__1); -} -void PythonQtShell_QProgressDialog::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::customEvent(arg__1); -} -int PythonQtShell_QProgressDialog::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::devType(); -} -void PythonQtShell_QProgressDialog::done(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "done"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::done(arg__1); -} -void PythonQtShell_QProgressDialog::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::dragEnterEvent(arg__1); -} -void PythonQtShell_QProgressDialog::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::dragLeaveEvent(arg__1); -} -void PythonQtShell_QProgressDialog::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::dragMoveEvent(arg__1); -} -void PythonQtShell_QProgressDialog::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::dropEvent(arg__1); -} -void PythonQtShell_QProgressDialog::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::enterEvent(arg__1); -} -bool PythonQtShell_QProgressDialog::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::event(arg__1); -} -bool PythonQtShell_QProgressDialog::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QProgressDialog::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::focusInEvent(arg__1); -} -bool PythonQtShell_QProgressDialog::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::focusNextPrevChild(next); -} -void PythonQtShell_QProgressDialog::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::focusOutEvent(arg__1); -} -int PythonQtShell_QProgressDialog::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::heightForWidth(arg__1); -} -void PythonQtShell_QProgressDialog::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::hideEvent(arg__1); -} -void PythonQtShell_QProgressDialog::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QProgressDialog::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::inputMethodQuery(arg__1); -} -void PythonQtShell_QProgressDialog::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::keyPressEvent(arg__1); -} -void PythonQtShell_QProgressDialog::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::keyReleaseEvent(arg__1); -} -void PythonQtShell_QProgressDialog::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::languageChange(); -} -void PythonQtShell_QProgressDialog::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::leaveEvent(arg__1); -} -int PythonQtShell_QProgressDialog::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::metric(arg__1); -} -void PythonQtShell_QProgressDialog::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QProgressDialog::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::mouseMoveEvent(arg__1); -} -void PythonQtShell_QProgressDialog::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::mousePressEvent(arg__1); -} -void PythonQtShell_QProgressDialog::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QProgressDialog::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QProgressDialog::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProgressDialog::paintEngine(); -} -void PythonQtShell_QProgressDialog::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::paintEvent(arg__1); -} -void PythonQtShell_QProgressDialog::reject() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::reject(); -} -void PythonQtShell_QProgressDialog::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QProgressDialog::resizeEvent(event); -} -void PythonQtShell_QProgressDialog::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QProgressDialog::showEvent(event); -} -void PythonQtShell_QProgressDialog::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::tabletEvent(arg__1); -} -void PythonQtShell_QProgressDialog::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::timerEvent(arg__1); -} -void PythonQtShell_QProgressDialog::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProgressDialog::wheelEvent(arg__1); -} -QProgressDialog* PythonQtWrapper_QProgressDialog::new_QProgressDialog(QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QProgressDialog(parent, flags); } - -QProgressDialog* PythonQtWrapper_QProgressDialog::new_QProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent, Qt::WindowFlags flags) -{ -return new PythonQtShell_QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags); } - -bool PythonQtWrapper_QProgressDialog::autoClose(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->autoClose()); -} - -bool PythonQtWrapper_QProgressDialog::autoReset(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->autoReset()); -} - -void PythonQtWrapper_QProgressDialog::changeEvent(QProgressDialog* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_changeEvent(event)); -} - -void PythonQtWrapper_QProgressDialog::closeEvent(QProgressDialog* theWrappedObject, QCloseEvent* event) -{ - ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_closeEvent(event)); -} - -QString PythonQtWrapper_QProgressDialog::labelText(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->labelText()); -} - -int PythonQtWrapper_QProgressDialog::maximum(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->maximum()); -} - -int PythonQtWrapper_QProgressDialog::minimum(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->minimum()); -} - -int PythonQtWrapper_QProgressDialog::minimumDuration(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->minimumDuration()); -} - -void PythonQtWrapper_QProgressDialog::open(QProgressDialog* theWrappedObject) -{ - ( theWrappedObject->open()); -} - -void PythonQtWrapper_QProgressDialog::open(QProgressDialog* theWrappedObject, QObject* receiver, const char* member) -{ - ( theWrappedObject->open(receiver, member)); -} - -void PythonQtWrapper_QProgressDialog::resizeEvent(QProgressDialog* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QProgressDialog::setAutoClose(QProgressDialog* theWrappedObject, bool close) -{ - ( theWrappedObject->setAutoClose(close)); -} - -void PythonQtWrapper_QProgressDialog::setAutoReset(QProgressDialog* theWrappedObject, bool reset) -{ - ( theWrappedObject->setAutoReset(reset)); -} - -void PythonQtWrapper_QProgressDialog::setBar(QProgressDialog* theWrappedObject, QProgressBar* bar) -{ - ( theWrappedObject->setBar(bar)); -} - -void PythonQtWrapper_QProgressDialog::setCancelButton(QProgressDialog* theWrappedObject, QPushButton* button) -{ - ( theWrappedObject->setCancelButton(button)); -} - -void PythonQtWrapper_QProgressDialog::setLabel(QProgressDialog* theWrappedObject, QLabel* label) -{ - ( theWrappedObject->setLabel(label)); -} - -void PythonQtWrapper_QProgressDialog::showEvent(QProgressDialog* theWrappedObject, QShowEvent* event) -{ - ( ((PythonQtPublicPromoter_QProgressDialog*)theWrappedObject)->promoted_showEvent(event)); -} - -QSize PythonQtWrapper_QProgressDialog::sizeHint(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QProgressDialog::value(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - -bool PythonQtWrapper_QProgressDialog::wasCanceled(QProgressDialog* theWrappedObject) const -{ - return ( theWrappedObject->wasCanceled()); -} - - - -void PythonQtShell_QProxyStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::childEvent(arg__1); -} -void PythonQtShell_QProxyStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::customEvent(arg__1); -} -void PythonQtShell_QProxyStyle::drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&control, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::drawComplexControl(control, option, painter, widget); -} -void PythonQtShell_QProxyStyle::drawControl(QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::drawControl(element, option, painter, widget); -} -void PythonQtShell_QProxyStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QProxyStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QProxyStyle::drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&option, (void*)&painter, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::drawPrimitive(element, option, painter, widget); -} -bool PythonQtShell_QProxyStyle::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::event(e); -} -bool PythonQtShell_QProxyStyle::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::eventFilter(arg__1, arg__2); -} -QPixmap PythonQtShell_QProxyStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::generatedIconPixmap(iconMode, pixmap, opt); -} -QStyle::SubControl PythonQtShell_QProxyStyle::hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&control, (void*)&option, (void*)&pos, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::hitTestComplexControl(control, option, pos, widget); -} -QRect PythonQtShell_QProxyStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::itemPixmapRect(r, flags, pixmap); -} -int PythonQtShell_QProxyStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::pixelMetric(metric, option, widget); -} -void PythonQtShell_QProxyStyle::polish(QApplication* app) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&app}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::polish(app); -} -void PythonQtShell_QProxyStyle::polish(QPalette& pal) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&pal}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::polish(pal); -} -void PythonQtShell_QProxyStyle::polish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::polish(widget); -} -QSize PythonQtShell_QProxyStyle::sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&type, (void*)&option, (void*)&size, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::sizeFromContents(type, option, size, widget); -} -QPalette PythonQtShell_QProxyStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::standardPalette(); -} -QPixmap PythonQtShell_QProxyStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::standardPixmap(standardPixmap, opt, widget); -} -int PythonQtShell_QProxyStyle::styleHint(QStyle::StyleHint hint, const QStyleOption* option, const QWidget* widget, QStyleHintReturn* returnData) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&option, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::styleHint(hint, option, widget, returnData); -} -QRect PythonQtShell_QProxyStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::subControlRect(cc, opt, sc, widget); -} -QRect PythonQtShell_QProxyStyle::subElementRect(QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&element, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QProxyStyle::subElementRect(element, option, widget); -} -void PythonQtShell_QProxyStyle::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::timerEvent(arg__1); -} -void PythonQtShell_QProxyStyle::unpolish(QApplication* app) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&app}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::unpolish(app); -} -void PythonQtShell_QProxyStyle::unpolish(QWidget* widget) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QProxyStyle::unpolish(widget); -} -QProxyStyle* PythonQtWrapper_QProxyStyle::new_QProxyStyle(QStyle* baseStyle) -{ -return new PythonQtShell_QProxyStyle(baseStyle); } - -QStyle* PythonQtWrapper_QProxyStyle::baseStyle(QProxyStyle* theWrappedObject) const -{ - return ( theWrappedObject->baseStyle()); -} - -void PythonQtWrapper_QProxyStyle::drawComplexControl(QProxyStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_drawComplexControl(control, option, painter, widget)); -} - -void PythonQtWrapper_QProxyStyle::drawControl(QProxyStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_drawControl(element, option, painter, widget)); -} - -void PythonQtWrapper_QProxyStyle::drawItemPixmap(QProxyStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_drawItemPixmap(painter, rect, alignment, pixmap)); -} - -void PythonQtWrapper_QProxyStyle::drawItemText(QProxyStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_drawItemText(painter, rect, flags, pal, enabled, text, textRole)); -} - -void PythonQtWrapper_QProxyStyle::drawPrimitive(QProxyStyle* theWrappedObject, QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget) const -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_drawPrimitive(element, option, painter, widget)); -} - -bool PythonQtWrapper_QProxyStyle::event(QProxyStyle* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_event(e)); -} - -QPixmap PythonQtWrapper_QProxyStyle::generatedIconPixmap(QProxyStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_generatedIconPixmap(iconMode, pixmap, opt)); -} - -QStyle::SubControl PythonQtWrapper_QProxyStyle::hitTestComplexControl(QProxyStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_hitTestComplexControl(control, option, pos, widget)); -} - -QRect PythonQtWrapper_QProxyStyle::itemPixmapRect(QProxyStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_itemPixmapRect(r, flags, pixmap)); -} - -QRect PythonQtWrapper_QProxyStyle::itemTextRect(QProxyStyle* theWrappedObject, const QFontMetrics& fm, const QRect& r, int flags, bool enabled, const QString& text) const -{ - return ( theWrappedObject->itemTextRect(fm, r, flags, enabled, text)); -} - -int PythonQtWrapper_QProxyStyle::pixelMetric(QProxyStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_pixelMetric(metric, option, widget)); -} - -void PythonQtWrapper_QProxyStyle::polish(QProxyStyle* theWrappedObject, QApplication* app) -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_polish(app)); -} - -void PythonQtWrapper_QProxyStyle::polish(QProxyStyle* theWrappedObject, QPalette& pal) -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_polish(pal)); -} - -void PythonQtWrapper_QProxyStyle::polish(QProxyStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_polish(widget)); -} - -void PythonQtWrapper_QProxyStyle::setBaseStyle(QProxyStyle* theWrappedObject, QStyle* style) -{ - ( theWrappedObject->setBaseStyle(style)); -} - -QSize PythonQtWrapper_QProxyStyle::sizeFromContents(QProxyStyle* theWrappedObject, QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_sizeFromContents(type, option, size, widget)); -} - -QPalette PythonQtWrapper_QProxyStyle::standardPalette(QProxyStyle* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_standardPalette()); -} - -QPixmap PythonQtWrapper_QProxyStyle::standardPixmap(QProxyStyle* theWrappedObject, QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_standardPixmap(standardPixmap, opt, widget)); -} - -int PythonQtWrapper_QProxyStyle::styleHint(QProxyStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* option, const QWidget* widget, QStyleHintReturn* returnData) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_styleHint(hint, option, widget, returnData)); -} - -QRect PythonQtWrapper_QProxyStyle::subControlRect(QProxyStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_subControlRect(cc, opt, sc, widget)); -} - -QRect PythonQtWrapper_QProxyStyle::subElementRect(QProxyStyle* theWrappedObject, QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const -{ - return ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_subElementRect(element, option, widget)); -} - -void PythonQtWrapper_QProxyStyle::unpolish(QProxyStyle* theWrappedObject, QApplication* app) -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_unpolish(app)); -} - -void PythonQtWrapper_QProxyStyle::unpolish(QProxyStyle* theWrappedObject, QWidget* widget) -{ - ( ((PythonQtPublicPromoter_QProxyStyle*)theWrappedObject)->promoted_unpolish(widget)); -} - - - -void PythonQtShell_QPushButton::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::actionEvent(arg__1); -} -void PythonQtShell_QPushButton::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::changeEvent(e); -} -void PythonQtShell_QPushButton::checkStateSet() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::checkStateSet(); -} -void PythonQtShell_QPushButton::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::childEvent(arg__1); -} -void PythonQtShell_QPushButton::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::closeEvent(arg__1); -} -void PythonQtShell_QPushButton::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::contextMenuEvent(arg__1); -} -void PythonQtShell_QPushButton::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::customEvent(arg__1); -} -int PythonQtShell_QPushButton::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::devType(); -} -void PythonQtShell_QPushButton::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::dragEnterEvent(arg__1); -} -void PythonQtShell_QPushButton::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::dragLeaveEvent(arg__1); -} -void PythonQtShell_QPushButton::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::dragMoveEvent(arg__1); -} -void PythonQtShell_QPushButton::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::dropEvent(arg__1); -} -void PythonQtShell_QPushButton::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::enterEvent(arg__1); -} -bool PythonQtShell_QPushButton::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::event(e); -} -bool PythonQtShell_QPushButton::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QPushButton::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::focusInEvent(arg__1); -} -bool PythonQtShell_QPushButton::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::focusNextPrevChild(next); -} -void PythonQtShell_QPushButton::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::focusOutEvent(arg__1); -} -int PythonQtShell_QPushButton::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::heightForWidth(arg__1); -} -void PythonQtShell_QPushButton::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::hideEvent(arg__1); -} -bool PythonQtShell_QPushButton::hitButton(const QPoint& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::hitButton(pos); -} -void PythonQtShell_QPushButton::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QPushButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::inputMethodQuery(arg__1); -} -void PythonQtShell_QPushButton::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::keyPressEvent(arg__1); -} -void PythonQtShell_QPushButton::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::keyReleaseEvent(e); -} -void PythonQtShell_QPushButton::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::languageChange(); -} -void PythonQtShell_QPushButton::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::leaveEvent(arg__1); -} -int PythonQtShell_QPushButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::metric(arg__1); -} -void PythonQtShell_QPushButton::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QPushButton::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::mouseMoveEvent(e); -} -void PythonQtShell_QPushButton::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::mousePressEvent(e); -} -void PythonQtShell_QPushButton::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::mouseReleaseEvent(e); -} -void PythonQtShell_QPushButton::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::moveEvent(arg__1); -} -void PythonQtShell_QPushButton::nextCheckState() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::nextCheckState(); -} -QPaintEngine* PythonQtShell_QPushButton::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPushButton::paintEngine(); -} -void PythonQtShell_QPushButton::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::paintEvent(arg__1); -} -void PythonQtShell_QPushButton::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::resizeEvent(arg__1); -} -void PythonQtShell_QPushButton::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::showEvent(arg__1); -} -void PythonQtShell_QPushButton::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::tabletEvent(arg__1); -} -void PythonQtShell_QPushButton::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::timerEvent(e); -} -void PythonQtShell_QPushButton::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QPushButton::wheelEvent(arg__1); -} -QPushButton* PythonQtWrapper_QPushButton::new_QPushButton(QWidget* parent) -{ -return new PythonQtShell_QPushButton(parent); } - -QPushButton* PythonQtWrapper_QPushButton::new_QPushButton(const QIcon& icon, const QString& text, QWidget* parent) -{ -return new PythonQtShell_QPushButton(icon, text, parent); } - -QPushButton* PythonQtWrapper_QPushButton::new_QPushButton(const QString& text, QWidget* parent) -{ -return new PythonQtShell_QPushButton(text, parent); } - -bool PythonQtWrapper_QPushButton::autoDefault(QPushButton* theWrappedObject) const -{ - return ( theWrappedObject->autoDefault()); -} - -bool PythonQtWrapper_QPushButton::event(QPushButton* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_event(e)); -} - -void PythonQtWrapper_QPushButton::focusInEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_focusInEvent(arg__1)); -} - -void PythonQtWrapper_QPushButton::focusOutEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_focusOutEvent(arg__1)); -} - -bool PythonQtWrapper_QPushButton::isDefault(QPushButton* theWrappedObject) const -{ - return ( theWrappedObject->isDefault()); -} - -bool PythonQtWrapper_QPushButton::isFlat(QPushButton* theWrappedObject) const -{ - return ( theWrappedObject->isFlat()); -} - -void PythonQtWrapper_QPushButton::keyPressEvent(QPushButton* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -QMenu* PythonQtWrapper_QPushButton::menu(QPushButton* theWrappedObject) const -{ - return ( theWrappedObject->menu()); -} - -QSize PythonQtWrapper_QPushButton::minimumSizeHint(QPushButton* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QPushButton::paintEvent(QPushButton* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QPushButton*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QPushButton::setAutoDefault(QPushButton* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setAutoDefault(arg__1)); -} - -void PythonQtWrapper_QPushButton::setDefault(QPushButton* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setDefault(arg__1)); -} - -void PythonQtWrapper_QPushButton::setFlat(QPushButton* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setFlat(arg__1)); -} - -void PythonQtWrapper_QPushButton::setMenu(QPushButton* theWrappedObject, QMenu* menu) -{ - ( theWrappedObject->setMenu(menu)); -} - -QSize PythonQtWrapper_QPushButton::sizeHint(QPushButton* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - - - -QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion() -{ -return new QQuaternion(); } - -QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion(const QVector4D& vector) -{ -return new QQuaternion(vector); } - -QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion(qreal scalar, const QVector3D& vector) -{ -return new QQuaternion(scalar, vector); } - -QQuaternion* PythonQtWrapper_QQuaternion::new_QQuaternion(qreal scalar, qreal xpos, qreal ypos, qreal zpos) -{ -return new QQuaternion(scalar, xpos, ypos, zpos); } - -QQuaternion PythonQtWrapper_QQuaternion::conjugate(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->conjugate()); -} - -QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_fromAxisAndAngle(const QVector3D& axis, qreal angle) -{ - return (QQuaternion::fromAxisAndAngle(axis, angle)); -} - -QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_fromAxisAndAngle(qreal x, qreal y, qreal z, qreal angle) -{ - return (QQuaternion::fromAxisAndAngle(x, y, z, angle)); -} - -bool PythonQtWrapper_QQuaternion::isIdentity(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->isIdentity()); -} - -bool PythonQtWrapper_QQuaternion::isNull(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -qreal PythonQtWrapper_QQuaternion::length(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -qreal PythonQtWrapper_QQuaternion::lengthSquared(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->lengthSquared()); -} - -QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_nlerp(const QQuaternion& q1, const QQuaternion& q2, qreal t) -{ - return (QQuaternion::nlerp(q1, q2, t)); -} - -void PythonQtWrapper_QQuaternion::normalize(QQuaternion* theWrappedObject) -{ - ( theWrappedObject->normalize()); -} - -QQuaternion PythonQtWrapper_QQuaternion::normalized(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->normalized()); -} - -const QQuaternion PythonQtWrapper_QQuaternion::__mul__(QQuaternion* theWrappedObject, const QQuaternion& q2) -{ - return ( (*theWrappedObject)* q2); -} - -const QQuaternion PythonQtWrapper_QQuaternion::__mul__(QQuaternion* theWrappedObject, qreal factor) -{ - return ( (*theWrappedObject)* factor); -} - -QQuaternion* PythonQtWrapper_QQuaternion::__imul__(QQuaternion* theWrappedObject, const QQuaternion& quaternion) -{ - return &( (*theWrappedObject)*= quaternion); -} - -QQuaternion* PythonQtWrapper_QQuaternion::__imul__(QQuaternion* theWrappedObject, qreal factor) -{ - return &( (*theWrappedObject)*= factor); -} - -const QQuaternion PythonQtWrapper_QQuaternion::__add__(QQuaternion* theWrappedObject, const QQuaternion& q2) -{ - return ( (*theWrappedObject)+ q2); -} - -QQuaternion* PythonQtWrapper_QQuaternion::__iadd__(QQuaternion* theWrappedObject, const QQuaternion& quaternion) -{ - return &( (*theWrappedObject)+= quaternion); -} - -const QQuaternion PythonQtWrapper_QQuaternion::__sub__(QQuaternion* theWrappedObject, const QQuaternion& q2) -{ - return ( (*theWrappedObject)- q2); -} - -QQuaternion* PythonQtWrapper_QQuaternion::__isub__(QQuaternion* theWrappedObject, const QQuaternion& quaternion) -{ - return &( (*theWrappedObject)-= quaternion); -} - -const QQuaternion PythonQtWrapper_QQuaternion::__div__(QQuaternion* theWrappedObject, qreal divisor) -{ - return ( (*theWrappedObject)/ divisor); -} - -QQuaternion* PythonQtWrapper_QQuaternion::__idiv__(QQuaternion* theWrappedObject, qreal divisor) -{ - return &( (*theWrappedObject)/= divisor); -} - -void PythonQtWrapper_QQuaternion::writeTo(QQuaternion* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QQuaternion::__eq__(QQuaternion* theWrappedObject, const QQuaternion& q2) -{ - return ( (*theWrappedObject)== q2); -} - -void PythonQtWrapper_QQuaternion::readFrom(QQuaternion* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QVector3D PythonQtWrapper_QQuaternion::rotatedVector(QQuaternion* theWrappedObject, const QVector3D& vector) const -{ - return ( theWrappedObject->rotatedVector(vector)); -} - -qreal PythonQtWrapper_QQuaternion::scalar(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->scalar()); -} - -void PythonQtWrapper_QQuaternion::setScalar(QQuaternion* theWrappedObject, qreal scalar) -{ - ( theWrappedObject->setScalar(scalar)); -} - -void PythonQtWrapper_QQuaternion::setVector(QQuaternion* theWrappedObject, const QVector3D& vector) -{ - ( theWrappedObject->setVector(vector)); -} - -void PythonQtWrapper_QQuaternion::setVector(QQuaternion* theWrappedObject, qreal x, qreal y, qreal z) -{ - ( theWrappedObject->setVector(x, y, z)); -} - -void PythonQtWrapper_QQuaternion::setX(QQuaternion* theWrappedObject, qreal x) -{ - ( theWrappedObject->setX(x)); -} - -void PythonQtWrapper_QQuaternion::setY(QQuaternion* theWrappedObject, qreal y) -{ - ( theWrappedObject->setY(y)); -} - -void PythonQtWrapper_QQuaternion::setZ(QQuaternion* theWrappedObject, qreal z) -{ - ( theWrappedObject->setZ(z)); -} - -QQuaternion PythonQtWrapper_QQuaternion::static_QQuaternion_slerp(const QQuaternion& q1, const QQuaternion& q2, qreal t) -{ - return (QQuaternion::slerp(q1, q2, t)); -} - -QVector4D PythonQtWrapper_QQuaternion::toVector4D(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->toVector4D()); -} - -QVector3D PythonQtWrapper_QQuaternion::vector(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->vector()); -} - -qreal PythonQtWrapper_QQuaternion::x(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -qreal PythonQtWrapper_QQuaternion::y(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -qreal PythonQtWrapper_QQuaternion::z(QQuaternion* theWrappedObject) const -{ - return ( theWrappedObject->z()); -} - -QString PythonQtWrapper_QQuaternion::py_toString(QQuaternion* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient() -{ -return new QRadialGradient(); } - -QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(const QPointF& center, qreal radius) -{ -return new QRadialGradient(center, radius); } - -QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(const QPointF& center, qreal radius, const QPointF& focalPoint) -{ -return new QRadialGradient(center, radius, focalPoint); } - -QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(qreal cx, qreal cy, qreal radius) -{ -return new QRadialGradient(cx, cy, radius); } - -QRadialGradient* PythonQtWrapper_QRadialGradient::new_QRadialGradient(qreal cx, qreal cy, qreal radius, qreal fx, qreal fy) -{ -return new QRadialGradient(cx, cy, radius, fx, fy); } - -QPointF PythonQtWrapper_QRadialGradient::center(QRadialGradient* theWrappedObject) const -{ - return ( theWrappedObject->center()); -} - -QPointF PythonQtWrapper_QRadialGradient::focalPoint(QRadialGradient* theWrappedObject) const -{ - return ( theWrappedObject->focalPoint()); -} - -qreal PythonQtWrapper_QRadialGradient::radius(QRadialGradient* theWrappedObject) const -{ - return ( theWrappedObject->radius()); -} - -void PythonQtWrapper_QRadialGradient::setCenter(QRadialGradient* theWrappedObject, const QPointF& center) -{ - ( theWrappedObject->setCenter(center)); -} - -void PythonQtWrapper_QRadialGradient::setCenter(QRadialGradient* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->setCenter(x, y)); -} - -void PythonQtWrapper_QRadialGradient::setFocalPoint(QRadialGradient* theWrappedObject, const QPointF& focalPoint) -{ - ( theWrappedObject->setFocalPoint(focalPoint)); -} - -void PythonQtWrapper_QRadialGradient::setFocalPoint(QRadialGradient* theWrappedObject, qreal x, qreal y) -{ - ( theWrappedObject->setFocalPoint(x, y)); -} - -void PythonQtWrapper_QRadialGradient::setRadius(QRadialGradient* theWrappedObject, qreal radius) -{ - ( theWrappedObject->setRadius(radius)); -} - - - -void PythonQtShell_QRadioButton::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::actionEvent(arg__1); -} -void PythonQtShell_QRadioButton::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::changeEvent(e); -} -void PythonQtShell_QRadioButton::checkStateSet() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::checkStateSet(); -} -void PythonQtShell_QRadioButton::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::childEvent(arg__1); -} -void PythonQtShell_QRadioButton::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::closeEvent(arg__1); -} -void PythonQtShell_QRadioButton::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::contextMenuEvent(arg__1); -} -void PythonQtShell_QRadioButton::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::customEvent(arg__1); -} -int PythonQtShell_QRadioButton::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::devType(); -} -void PythonQtShell_QRadioButton::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::dragEnterEvent(arg__1); -} -void PythonQtShell_QRadioButton::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::dragLeaveEvent(arg__1); -} -void PythonQtShell_QRadioButton::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::dragMoveEvent(arg__1); -} -void PythonQtShell_QRadioButton::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::dropEvent(arg__1); -} -void PythonQtShell_QRadioButton::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::enterEvent(arg__1); -} -bool PythonQtShell_QRadioButton::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::event(e); -} -bool PythonQtShell_QRadioButton::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QRadioButton::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::focusInEvent(e); -} -bool PythonQtShell_QRadioButton::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::focusNextPrevChild(next); -} -void PythonQtShell_QRadioButton::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::focusOutEvent(e); -} -int PythonQtShell_QRadioButton::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::heightForWidth(arg__1); -} -void PythonQtShell_QRadioButton::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::hideEvent(arg__1); -} -bool PythonQtShell_QRadioButton::hitButton(const QPoint& arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::hitButton(arg__1); -} -void PythonQtShell_QRadioButton::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QRadioButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::inputMethodQuery(arg__1); -} -void PythonQtShell_QRadioButton::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::keyPressEvent(e); -} -void PythonQtShell_QRadioButton::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::keyReleaseEvent(e); -} -void PythonQtShell_QRadioButton::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::languageChange(); -} -void PythonQtShell_QRadioButton::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::leaveEvent(arg__1); -} -int PythonQtShell_QRadioButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::metric(arg__1); -} -QSize PythonQtShell_QRadioButton::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::minimumSizeHint(); -} -void PythonQtShell_QRadioButton::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QRadioButton::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::mouseMoveEvent(arg__1); -} -void PythonQtShell_QRadioButton::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::mousePressEvent(e); -} -void PythonQtShell_QRadioButton::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::mouseReleaseEvent(e); -} -void PythonQtShell_QRadioButton::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::moveEvent(arg__1); -} -void PythonQtShell_QRadioButton::nextCheckState() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::nextCheckState(); -} -QPaintEngine* PythonQtShell_QRadioButton::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRadioButton::paintEngine(); -} -void PythonQtShell_QRadioButton::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::paintEvent(arg__1); -} -void PythonQtShell_QRadioButton::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::resizeEvent(arg__1); -} -void PythonQtShell_QRadioButton::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::showEvent(arg__1); -} -void PythonQtShell_QRadioButton::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::tabletEvent(arg__1); -} -void PythonQtShell_QRadioButton::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::timerEvent(e); -} -void PythonQtShell_QRadioButton::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRadioButton::wheelEvent(arg__1); -} -QRadioButton* PythonQtWrapper_QRadioButton::new_QRadioButton(QWidget* parent) -{ -return new PythonQtShell_QRadioButton(parent); } - -QRadioButton* PythonQtWrapper_QRadioButton::new_QRadioButton(const QString& text, QWidget* parent) -{ -return new PythonQtShell_QRadioButton(text, parent); } - -bool PythonQtWrapper_QRadioButton::event(QRadioButton* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QRadioButton::hitButton(QRadioButton* theWrappedObject, const QPoint& arg__1) const -{ - return ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_hitButton(arg__1)); -} - -void PythonQtWrapper_QRadioButton::mouseMoveEvent(QRadioButton* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QRadioButton::paintEvent(QRadioButton* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QRadioButton*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -QSize PythonQtWrapper_QRadioButton::sizeHint(QRadioButton* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - - - -void PythonQtShell_QRegExpValidator::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRegExpValidator::childEvent(arg__1); -} -void PythonQtShell_QRegExpValidator::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRegExpValidator::customEvent(arg__1); -} -bool PythonQtShell_QRegExpValidator::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRegExpValidator::event(arg__1); -} -bool PythonQtShell_QRegExpValidator::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRegExpValidator::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QRegExpValidator::fixup(QString& arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRegExpValidator::fixup(arg__1); -} -void PythonQtShell_QRegExpValidator::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRegExpValidator::timerEvent(arg__1); -} -QValidator::State PythonQtShell_QRegExpValidator::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRegExpValidator::validate(input, pos); -} -QRegExpValidator* PythonQtWrapper_QRegExpValidator::new_QRegExpValidator(QObject* parent) -{ -return new PythonQtShell_QRegExpValidator(parent); } - -QRegExpValidator* PythonQtWrapper_QRegExpValidator::new_QRegExpValidator(const QRegExp& rx, QObject* parent) -{ -return new PythonQtShell_QRegExpValidator(rx, parent); } - -const QRegExp* PythonQtWrapper_QRegExpValidator::regExp(QRegExpValidator* theWrappedObject) const -{ - return &( theWrappedObject->regExp()); -} - -void PythonQtWrapper_QRegExpValidator::setRegExp(QRegExpValidator* theWrappedObject, const QRegExp& rx) -{ - ( theWrappedObject->setRegExp(rx)); -} - -QValidator::State PythonQtWrapper_QRegExpValidator::validate(QRegExpValidator* theWrappedObject, QString& input, int& pos) const -{ - return ( ((PythonQtPublicPromoter_QRegExpValidator*)theWrappedObject)->promoted_validate(input, pos)); -} - - - -QResizeEvent* PythonQtWrapper_QResizeEvent::new_QResizeEvent(const QSize& size, const QSize& oldSize) -{ -return new PythonQtShell_QResizeEvent(size, oldSize); } - -const QSize* PythonQtWrapper_QResizeEvent::oldSize(QResizeEvent* theWrappedObject) const -{ - return &( theWrappedObject->oldSize()); -} - -const QSize* PythonQtWrapper_QResizeEvent::size(QResizeEvent* theWrappedObject) const -{ - return &( theWrappedObject->size()); -} - - - -void PythonQtShell_QRubberBand::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::actionEvent(arg__1); -} -void PythonQtShell_QRubberBand::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::changeEvent(arg__1); -} -void PythonQtShell_QRubberBand::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::childEvent(arg__1); -} -void PythonQtShell_QRubberBand::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::closeEvent(arg__1); -} -void PythonQtShell_QRubberBand::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::contextMenuEvent(arg__1); -} -void PythonQtShell_QRubberBand::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::customEvent(arg__1); -} -int PythonQtShell_QRubberBand::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::devType(); -} -void PythonQtShell_QRubberBand::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::dragEnterEvent(arg__1); -} -void PythonQtShell_QRubberBand::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::dragLeaveEvent(arg__1); -} -void PythonQtShell_QRubberBand::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::dragMoveEvent(arg__1); -} -void PythonQtShell_QRubberBand::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::dropEvent(arg__1); -} -void PythonQtShell_QRubberBand::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::enterEvent(arg__1); -} -bool PythonQtShell_QRubberBand::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::event(e); -} -bool PythonQtShell_QRubberBand::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QRubberBand::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::focusInEvent(arg__1); -} -bool PythonQtShell_QRubberBand::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::focusNextPrevChild(next); -} -void PythonQtShell_QRubberBand::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::focusOutEvent(arg__1); -} -int PythonQtShell_QRubberBand::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::heightForWidth(arg__1); -} -void PythonQtShell_QRubberBand::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::hideEvent(arg__1); -} -void PythonQtShell_QRubberBand::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QRubberBand::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::inputMethodQuery(arg__1); -} -void PythonQtShell_QRubberBand::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::keyPressEvent(arg__1); -} -void PythonQtShell_QRubberBand::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::keyReleaseEvent(arg__1); -} -void PythonQtShell_QRubberBand::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::languageChange(); -} -void PythonQtShell_QRubberBand::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::leaveEvent(arg__1); -} -int PythonQtShell_QRubberBand::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::metric(arg__1); -} -QSize PythonQtShell_QRubberBand::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::minimumSizeHint(); -} -void PythonQtShell_QRubberBand::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QRubberBand::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::mouseMoveEvent(arg__1); -} -void PythonQtShell_QRubberBand::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::mousePressEvent(arg__1); -} -void PythonQtShell_QRubberBand::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QRubberBand::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QRubberBand::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::paintEngine(); -} -void PythonQtShell_QRubberBand::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::paintEvent(arg__1); -} -void PythonQtShell_QRubberBand::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::resizeEvent(arg__1); -} -void PythonQtShell_QRubberBand::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::showEvent(arg__1); -} -QSize PythonQtShell_QRubberBand::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRubberBand::sizeHint(); -} -void PythonQtShell_QRubberBand::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::tabletEvent(arg__1); -} -void PythonQtShell_QRubberBand::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::timerEvent(arg__1); -} -void PythonQtShell_QRubberBand::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QRubberBand::wheelEvent(arg__1); -} -QRubberBand* PythonQtWrapper_QRubberBand::new_QRubberBand(QRubberBand::Shape arg__1, QWidget* arg__2) -{ -return new PythonQtShell_QRubberBand(arg__1, arg__2); } - -void PythonQtWrapper_QRubberBand::changeEvent(QRubberBand* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -bool PythonQtWrapper_QRubberBand::event(QRubberBand* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_event(e)); -} - -void PythonQtWrapper_QRubberBand::move(QRubberBand* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->move(p)); -} - -void PythonQtWrapper_QRubberBand::move(QRubberBand* theWrappedObject, int x, int y) -{ - ( theWrappedObject->move(x, y)); -} - -void PythonQtWrapper_QRubberBand::moveEvent(QRubberBand* theWrappedObject, QMoveEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_moveEvent(arg__1)); -} - -void PythonQtWrapper_QRubberBand::paintEvent(QRubberBand* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QRubberBand::resize(QRubberBand* theWrappedObject, const QSize& s) -{ - ( theWrappedObject->resize(s)); -} - -void PythonQtWrapper_QRubberBand::resize(QRubberBand* theWrappedObject, int w, int h) -{ - ( theWrappedObject->resize(w, h)); -} - -void PythonQtWrapper_QRubberBand::resizeEvent(QRubberBand* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -void PythonQtWrapper_QRubberBand::setGeometry(QRubberBand* theWrappedObject, const QRect& r) -{ - ( theWrappedObject->setGeometry(r)); -} - -void PythonQtWrapper_QRubberBand::setGeometry(QRubberBand* theWrappedObject, int x, int y, int w, int h) -{ - ( theWrappedObject->setGeometry(x, y, w, h)); -} - -QRubberBand::Shape PythonQtWrapper_QRubberBand::shape(QRubberBand* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -void PythonQtWrapper_QRubberBand::showEvent(QRubberBand* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QRubberBand*)theWrappedObject)->promoted_showEvent(arg__1)); -} - - - -void PythonQtShell_QScrollArea::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::actionEvent(arg__1); -} -void PythonQtShell_QScrollArea::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::changeEvent(arg__1); -} -void PythonQtShell_QScrollArea::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::childEvent(arg__1); -} -void PythonQtShell_QScrollArea::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::closeEvent(arg__1); -} -void PythonQtShell_QScrollArea::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::contextMenuEvent(arg__1); -} -void PythonQtShell_QScrollArea::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::customEvent(arg__1); -} -int PythonQtShell_QScrollArea::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::devType(); -} -void PythonQtShell_QScrollArea::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::dragEnterEvent(arg__1); -} -void PythonQtShell_QScrollArea::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::dragLeaveEvent(arg__1); -} -void PythonQtShell_QScrollArea::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::dragMoveEvent(arg__1); -} -void PythonQtShell_QScrollArea::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::dropEvent(arg__1); -} -void PythonQtShell_QScrollArea::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::enterEvent(arg__1); -} -bool PythonQtShell_QScrollArea::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::event(arg__1); -} -bool PythonQtShell_QScrollArea::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QScrollArea::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::focusInEvent(arg__1); -} -bool PythonQtShell_QScrollArea::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::focusNextPrevChild(next); -} -void PythonQtShell_QScrollArea::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::focusOutEvent(arg__1); -} -int PythonQtShell_QScrollArea::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::heightForWidth(arg__1); -} -void PythonQtShell_QScrollArea::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::hideEvent(arg__1); -} -void PythonQtShell_QScrollArea::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QScrollArea::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::inputMethodQuery(arg__1); -} -void PythonQtShell_QScrollArea::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::keyPressEvent(arg__1); -} -void PythonQtShell_QScrollArea::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::keyReleaseEvent(arg__1); -} -void PythonQtShell_QScrollArea::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::languageChange(); -} -void PythonQtShell_QScrollArea::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::leaveEvent(arg__1); -} -int PythonQtShell_QScrollArea::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::metric(arg__1); -} -void PythonQtShell_QScrollArea::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QScrollArea::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::mouseMoveEvent(arg__1); -} -void PythonQtShell_QScrollArea::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::mousePressEvent(arg__1); -} -void PythonQtShell_QScrollArea::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QScrollArea::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QScrollArea::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::paintEngine(); -} -void PythonQtShell_QScrollArea::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::paintEvent(arg__1); -} -void PythonQtShell_QScrollArea::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::resizeEvent(arg__1); -} -void PythonQtShell_QScrollArea::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QScrollArea::scrollContentsBy(dx, dy); -} -void PythonQtShell_QScrollArea::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::showEvent(arg__1); -} -void PythonQtShell_QScrollArea::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::tabletEvent(arg__1); -} -void PythonQtShell_QScrollArea::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::timerEvent(arg__1); -} -bool PythonQtShell_QScrollArea::viewportEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollArea::viewportEvent(arg__1); -} -void PythonQtShell_QScrollArea::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollArea::wheelEvent(arg__1); -} -QScrollArea* PythonQtWrapper_QScrollArea::new_QScrollArea(QWidget* parent) -{ -return new PythonQtShell_QScrollArea(parent); } - -Qt::Alignment PythonQtWrapper_QScrollArea::alignment(QScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -void PythonQtWrapper_QScrollArea::ensureVisible(QScrollArea* theWrappedObject, int x, int y, int xmargin, int ymargin) -{ - ( theWrappedObject->ensureVisible(x, y, xmargin, ymargin)); -} - -void PythonQtWrapper_QScrollArea::ensureWidgetVisible(QScrollArea* theWrappedObject, QWidget* childWidget, int xmargin, int ymargin) -{ - ( theWrappedObject->ensureWidgetVisible(childWidget, xmargin, ymargin)); -} - -bool PythonQtWrapper_QScrollArea::event(QScrollArea* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QScrollArea::eventFilter(QScrollArea* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -bool PythonQtWrapper_QScrollArea::focusNextPrevChild(QScrollArea* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QScrollArea::resizeEvent(QScrollArea* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -void PythonQtWrapper_QScrollArea::scrollContentsBy(QScrollArea* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QScrollArea*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QScrollArea::setAlignment(QScrollArea* theWrappedObject, Qt::Alignment arg__1) -{ - ( theWrappedObject->setAlignment(arg__1)); -} - -void PythonQtWrapper_QScrollArea::setWidget(QScrollArea* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->setWidget(widget)); -} - -void PythonQtWrapper_QScrollArea::setWidgetResizable(QScrollArea* theWrappedObject, bool resizable) -{ - ( theWrappedObject->setWidgetResizable(resizable)); -} - -QSize PythonQtWrapper_QScrollArea::sizeHint(QScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QWidget* PythonQtWrapper_QScrollArea::takeWidget(QScrollArea* theWrappedObject) -{ - return ( theWrappedObject->takeWidget()); -} - -QWidget* PythonQtWrapper_QScrollArea::widget(QScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->widget()); -} - -bool PythonQtWrapper_QScrollArea::widgetResizable(QScrollArea* theWrappedObject) const -{ - return ( theWrappedObject->widgetResizable()); -} - - - -void PythonQtShell_QScrollBar::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::actionEvent(arg__1); -} -void PythonQtShell_QScrollBar::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::changeEvent(e); -} -void PythonQtShell_QScrollBar::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::childEvent(arg__1); -} -void PythonQtShell_QScrollBar::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::closeEvent(arg__1); -} -void PythonQtShell_QScrollBar::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::contextMenuEvent(arg__1); -} -void PythonQtShell_QScrollBar::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::customEvent(arg__1); -} -int PythonQtShell_QScrollBar::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::devType(); -} -void PythonQtShell_QScrollBar::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::dragEnterEvent(arg__1); -} -void PythonQtShell_QScrollBar::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::dragLeaveEvent(arg__1); -} -void PythonQtShell_QScrollBar::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::dragMoveEvent(arg__1); -} -void PythonQtShell_QScrollBar::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::dropEvent(arg__1); -} -void PythonQtShell_QScrollBar::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::enterEvent(arg__1); -} -bool PythonQtShell_QScrollBar::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::event(event); -} -bool PythonQtShell_QScrollBar::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QScrollBar::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::focusInEvent(arg__1); -} -bool PythonQtShell_QScrollBar::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::focusNextPrevChild(next); -} -void PythonQtShell_QScrollBar::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::focusOutEvent(arg__1); -} -int PythonQtShell_QScrollBar::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::heightForWidth(arg__1); -} -void PythonQtShell_QScrollBar::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::hideEvent(arg__1); -} -void PythonQtShell_QScrollBar::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QScrollBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::inputMethodQuery(arg__1); -} -void PythonQtShell_QScrollBar::keyPressEvent(QKeyEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::keyPressEvent(ev); -} -void PythonQtShell_QScrollBar::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::keyReleaseEvent(arg__1); -} -void PythonQtShell_QScrollBar::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::languageChange(); -} -void PythonQtShell_QScrollBar::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::leaveEvent(arg__1); -} -int PythonQtShell_QScrollBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::metric(arg__1); -} -QSize PythonQtShell_QScrollBar::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::minimumSizeHint(); -} -void PythonQtShell_QScrollBar::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QScrollBar::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::mouseMoveEvent(arg__1); -} -void PythonQtShell_QScrollBar::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::mousePressEvent(arg__1); -} -void PythonQtShell_QScrollBar::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QScrollBar::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QScrollBar::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QScrollBar::paintEngine(); -} -void PythonQtShell_QScrollBar::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::paintEvent(arg__1); -} -void PythonQtShell_QScrollBar::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::resizeEvent(arg__1); -} -void PythonQtShell_QScrollBar::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::showEvent(arg__1); -} -void PythonQtShell_QScrollBar::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::tabletEvent(arg__1); -} -void PythonQtShell_QScrollBar::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::timerEvent(arg__1); -} -void PythonQtShell_QScrollBar::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QScrollBar::wheelEvent(e); -} -QScrollBar* PythonQtWrapper_QScrollBar::new_QScrollBar(QWidget* parent) -{ -return new PythonQtShell_QScrollBar(parent); } - -QScrollBar* PythonQtWrapper_QScrollBar::new_QScrollBar(Qt::Orientation arg__1, QWidget* parent) -{ -return new PythonQtShell_QScrollBar(arg__1, parent); } - -void PythonQtWrapper_QScrollBar::contextMenuEvent(QScrollBar* theWrappedObject, QContextMenuEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_contextMenuEvent(arg__1)); -} - -bool PythonQtWrapper_QScrollBar::event(QScrollBar* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QScrollBar::hideEvent(QScrollBar* theWrappedObject, QHideEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_hideEvent(arg__1)); -} - -void PythonQtWrapper_QScrollBar::mouseMoveEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QScrollBar::mousePressEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QScrollBar::mouseReleaseEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QScrollBar::paintEvent(QScrollBar* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QScrollBar*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -QSize PythonQtWrapper_QScrollBar::sizeHint(QScrollBar* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - - - -bool PythonQtWrapper_QSessionManager::allowsErrorInteraction(QSessionManager* theWrappedObject) -{ - return ( theWrappedObject->allowsErrorInteraction()); -} - -bool PythonQtWrapper_QSessionManager::allowsInteraction(QSessionManager* theWrappedObject) -{ - return ( theWrappedObject->allowsInteraction()); -} - -void PythonQtWrapper_QSessionManager::cancel(QSessionManager* theWrappedObject) -{ - ( theWrappedObject->cancel()); -} - -QStringList PythonQtWrapper_QSessionManager::discardCommand(QSessionManager* theWrappedObject) const -{ - return ( theWrappedObject->discardCommand()); -} - -bool PythonQtWrapper_QSessionManager::isPhase2(QSessionManager* theWrappedObject) const -{ - return ( theWrappedObject->isPhase2()); -} - -void PythonQtWrapper_QSessionManager::release(QSessionManager* theWrappedObject) -{ - ( theWrappedObject->release()); -} - -void PythonQtWrapper_QSessionManager::requestPhase2(QSessionManager* theWrappedObject) -{ - ( theWrappedObject->requestPhase2()); -} - -QStringList PythonQtWrapper_QSessionManager::restartCommand(QSessionManager* theWrappedObject) const -{ - return ( theWrappedObject->restartCommand()); -} - -QSessionManager::RestartHint PythonQtWrapper_QSessionManager::restartHint(QSessionManager* theWrappedObject) const -{ - return ( theWrappedObject->restartHint()); -} - -QString PythonQtWrapper_QSessionManager::sessionId(QSessionManager* theWrappedObject) const -{ - return ( theWrappedObject->sessionId()); -} - -QString PythonQtWrapper_QSessionManager::sessionKey(QSessionManager* theWrappedObject) const -{ - return ( theWrappedObject->sessionKey()); -} - -void PythonQtWrapper_QSessionManager::setDiscardCommand(QSessionManager* theWrappedObject, const QStringList& arg__1) -{ - ( theWrappedObject->setDiscardCommand(arg__1)); -} - -void PythonQtWrapper_QSessionManager::setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QString& value) -{ - ( theWrappedObject->setManagerProperty(name, value)); -} - -void PythonQtWrapper_QSessionManager::setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QStringList& value) -{ - ( theWrappedObject->setManagerProperty(name, value)); -} - -void PythonQtWrapper_QSessionManager::setRestartCommand(QSessionManager* theWrappedObject, const QStringList& arg__1) -{ - ( theWrappedObject->setRestartCommand(arg__1)); -} - -void PythonQtWrapper_QSessionManager::setRestartHint(QSessionManager* theWrappedObject, QSessionManager::RestartHint arg__1) -{ - ( theWrappedObject->setRestartHint(arg__1)); -} - - - -void PythonQtShell_QShortcut::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QShortcut::childEvent(arg__1); -} -void PythonQtShell_QShortcut::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QShortcut::customEvent(arg__1); -} -bool PythonQtShell_QShortcut::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QShortcut::event(e); -} -bool PythonQtShell_QShortcut::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QShortcut::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QShortcut::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QShortcut::timerEvent(arg__1); -} -QShortcut* PythonQtWrapper_QShortcut::new_QShortcut(QWidget* parent) -{ -return new PythonQtShell_QShortcut(parent); } - -QShortcut* PythonQtWrapper_QShortcut::new_QShortcut(const QKeySequence& key, QWidget* parent, const char* member, const char* ambiguousMember, Qt::ShortcutContext context) -{ -return new PythonQtShell_QShortcut(key, parent, member, ambiguousMember, context); } - -bool PythonQtWrapper_QShortcut::autoRepeat(QShortcut* theWrappedObject) const -{ - return ( theWrappedObject->autoRepeat()); -} - -Qt::ShortcutContext PythonQtWrapper_QShortcut::context(QShortcut* theWrappedObject) -{ - return ( theWrappedObject->context()); -} - -bool PythonQtWrapper_QShortcut::event(QShortcut* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QShortcut*)theWrappedObject)->promoted_event(e)); -} - -int PythonQtWrapper_QShortcut::id(QShortcut* theWrappedObject) const -{ - return ( theWrappedObject->id()); -} - -bool PythonQtWrapper_QShortcut::isEnabled(QShortcut* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -QKeySequence PythonQtWrapper_QShortcut::key(QShortcut* theWrappedObject) const -{ - return ( theWrappedObject->key()); -} - -QWidget* PythonQtWrapper_QShortcut::parentWidget(QShortcut* theWrappedObject) const -{ - return ( theWrappedObject->parentWidget()); -} - -void PythonQtWrapper_QShortcut::setAutoRepeat(QShortcut* theWrappedObject, bool on) -{ - ( theWrappedObject->setAutoRepeat(on)); -} - -void PythonQtWrapper_QShortcut::setContext(QShortcut* theWrappedObject, Qt::ShortcutContext context) -{ - ( theWrappedObject->setContext(context)); -} - -void PythonQtWrapper_QShortcut::setEnabled(QShortcut* theWrappedObject, bool enable) -{ - ( theWrappedObject->setEnabled(enable)); -} - -void PythonQtWrapper_QShortcut::setKey(QShortcut* theWrappedObject, const QKeySequence& key) -{ - ( theWrappedObject->setKey(key)); -} - -void PythonQtWrapper_QShortcut::setWhatsThis(QShortcut* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setWhatsThis(text)); -} - -QString PythonQtWrapper_QShortcut::whatsThis(QShortcut* theWrappedObject) const -{ - return ( theWrappedObject->whatsThis()); -} - - - -QShortcutEvent* PythonQtWrapper_QShortcutEvent::new_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous) -{ -return new PythonQtShell_QShortcutEvent(key, id, ambiguous); } - -bool PythonQtWrapper_QShortcutEvent::isAmbiguous(QShortcutEvent* theWrappedObject) const -{ - return ( theWrappedObject->isAmbiguous()); -} - -const QKeySequence* PythonQtWrapper_QShortcutEvent::key(QShortcutEvent* theWrappedObject) const -{ - return &( theWrappedObject->key()); -} - -int PythonQtWrapper_QShortcutEvent::shortcutId(QShortcutEvent* theWrappedObject) const -{ - return ( theWrappedObject->shortcutId()); -} - - - -QShowEvent* PythonQtWrapper_QShowEvent::new_QShowEvent() -{ -return new QShowEvent(); } - - - -void PythonQtShell_QSizeGrip::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::actionEvent(arg__1); -} -void PythonQtShell_QSizeGrip::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::changeEvent(arg__1); -} -void PythonQtShell_QSizeGrip::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::childEvent(arg__1); -} -void PythonQtShell_QSizeGrip::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::closeEvent(arg__1); -} -void PythonQtShell_QSizeGrip::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::contextMenuEvent(arg__1); -} -void PythonQtShell_QSizeGrip::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::customEvent(arg__1); -} -int PythonQtShell_QSizeGrip::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::devType(); -} -void PythonQtShell_QSizeGrip::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::dragEnterEvent(arg__1); -} -void PythonQtShell_QSizeGrip::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::dragLeaveEvent(arg__1); -} -void PythonQtShell_QSizeGrip::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::dragMoveEvent(arg__1); -} -void PythonQtShell_QSizeGrip::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::dropEvent(arg__1); -} -void PythonQtShell_QSizeGrip::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::enterEvent(arg__1); -} -bool PythonQtShell_QSizeGrip::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::event(arg__1); -} -bool PythonQtShell_QSizeGrip::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSizeGrip::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::focusInEvent(arg__1); -} -bool PythonQtShell_QSizeGrip::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::focusNextPrevChild(next); -} -void PythonQtShell_QSizeGrip::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::focusOutEvent(arg__1); -} -int PythonQtShell_QSizeGrip::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::heightForWidth(arg__1); -} -void PythonQtShell_QSizeGrip::hideEvent(QHideEvent* hideEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&hideEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::hideEvent(hideEvent); -} -void PythonQtShell_QSizeGrip::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QSizeGrip::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::inputMethodQuery(arg__1); -} -void PythonQtShell_QSizeGrip::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::keyPressEvent(arg__1); -} -void PythonQtShell_QSizeGrip::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::keyReleaseEvent(arg__1); -} -void PythonQtShell_QSizeGrip::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::languageChange(); -} -void PythonQtShell_QSizeGrip::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::leaveEvent(arg__1); -} -int PythonQtShell_QSizeGrip::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::metric(arg__1); -} -QSize PythonQtShell_QSizeGrip::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::minimumSizeHint(); -} -void PythonQtShell_QSizeGrip::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QSizeGrip::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::mouseMoveEvent(arg__1); -} -void PythonQtShell_QSizeGrip::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::mousePressEvent(arg__1); -} -void PythonQtShell_QSizeGrip::mouseReleaseEvent(QMouseEvent* mouseEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&mouseEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::mouseReleaseEvent(mouseEvent); -} -void PythonQtShell_QSizeGrip::moveEvent(QMoveEvent* moveEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&moveEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::moveEvent(moveEvent); -} -QPaintEngine* PythonQtShell_QSizeGrip::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSizeGrip::paintEngine(); -} -void PythonQtShell_QSizeGrip::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::paintEvent(arg__1); -} -void PythonQtShell_QSizeGrip::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::resizeEvent(arg__1); -} -void PythonQtShell_QSizeGrip::showEvent(QShowEvent* showEvent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&showEvent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::showEvent(showEvent); -} -void PythonQtShell_QSizeGrip::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::tabletEvent(arg__1); -} -void PythonQtShell_QSizeGrip::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::timerEvent(arg__1); -} -void PythonQtShell_QSizeGrip::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSizeGrip::wheelEvent(arg__1); -} -QSizeGrip* PythonQtWrapper_QSizeGrip::new_QSizeGrip(QWidget* parent) -{ -return new PythonQtShell_QSizeGrip(parent); } - -bool PythonQtWrapper_QSizeGrip::event(QSizeGrip* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QSizeGrip::eventFilter(QSizeGrip* theWrappedObject, QObject* arg__1, QEvent* arg__2) -{ - return ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2)); -} - -void PythonQtWrapper_QSizeGrip::hideEvent(QSizeGrip* theWrappedObject, QHideEvent* hideEvent) -{ - ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_hideEvent(hideEvent)); -} - -void PythonQtWrapper_QSizeGrip::mouseMoveEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QSizeGrip::mousePressEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QSizeGrip::mouseReleaseEvent(QSizeGrip* theWrappedObject, QMouseEvent* mouseEvent) -{ - ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_mouseReleaseEvent(mouseEvent)); -} - -void PythonQtWrapper_QSizeGrip::moveEvent(QSizeGrip* theWrappedObject, QMoveEvent* moveEvent) -{ - ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_moveEvent(moveEvent)); -} - -void PythonQtWrapper_QSizeGrip::paintEvent(QSizeGrip* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QSizeGrip::setVisible(QSizeGrip* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setVisible(arg__1)); -} - -void PythonQtWrapper_QSizeGrip::showEvent(QSizeGrip* theWrappedObject, QShowEvent* showEvent) -{ - ( ((PythonQtPublicPromoter_QSizeGrip*)theWrappedObject)->promoted_showEvent(showEvent)); -} - -QSize PythonQtWrapper_QSizeGrip::sizeHint(QSizeGrip* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - - - -void PythonQtShell_QSlider::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::actionEvent(arg__1); -} -void PythonQtShell_QSlider::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::changeEvent(e); -} -void PythonQtShell_QSlider::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::childEvent(arg__1); -} -void PythonQtShell_QSlider::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::closeEvent(arg__1); -} -void PythonQtShell_QSlider::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::contextMenuEvent(arg__1); -} -void PythonQtShell_QSlider::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::customEvent(arg__1); -} -int PythonQtShell_QSlider::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::devType(); -} -void PythonQtShell_QSlider::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::dragEnterEvent(arg__1); -} -void PythonQtShell_QSlider::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::dragLeaveEvent(arg__1); -} -void PythonQtShell_QSlider::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::dragMoveEvent(arg__1); -} -void PythonQtShell_QSlider::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::dropEvent(arg__1); -} -void PythonQtShell_QSlider::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::enterEvent(arg__1); -} -bool PythonQtShell_QSlider::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::event(event); -} -bool PythonQtShell_QSlider::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSlider::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::focusInEvent(arg__1); -} -bool PythonQtShell_QSlider::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::focusNextPrevChild(next); -} -void PythonQtShell_QSlider::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::focusOutEvent(arg__1); -} -int PythonQtShell_QSlider::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::heightForWidth(arg__1); -} -void PythonQtShell_QSlider::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::hideEvent(arg__1); -} -void PythonQtShell_QSlider::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QSlider::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::inputMethodQuery(arg__1); -} -void PythonQtShell_QSlider::keyPressEvent(QKeyEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::keyPressEvent(ev); -} -void PythonQtShell_QSlider::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::keyReleaseEvent(arg__1); -} -void PythonQtShell_QSlider::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::languageChange(); -} -void PythonQtShell_QSlider::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::leaveEvent(arg__1); -} -int PythonQtShell_QSlider::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::metric(arg__1); -} -void PythonQtShell_QSlider::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QSlider::mouseMoveEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::mouseMoveEvent(ev); -} -void PythonQtShell_QSlider::mousePressEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::mousePressEvent(ev); -} -void PythonQtShell_QSlider::mouseReleaseEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::mouseReleaseEvent(ev); -} -void PythonQtShell_QSlider::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QSlider::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSlider::paintEngine(); -} -void PythonQtShell_QSlider::paintEvent(QPaintEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::paintEvent(ev); -} -void PythonQtShell_QSlider::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::resizeEvent(arg__1); -} -void PythonQtShell_QSlider::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::showEvent(arg__1); -} -void PythonQtShell_QSlider::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::tabletEvent(arg__1); -} -void PythonQtShell_QSlider::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::timerEvent(arg__1); -} -void PythonQtShell_QSlider::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSlider::wheelEvent(e); -} -QSlider* PythonQtWrapper_QSlider::new_QSlider(QWidget* parent) -{ -return new PythonQtShell_QSlider(parent); } - -QSlider* PythonQtWrapper_QSlider::new_QSlider(Qt::Orientation orientation, QWidget* parent) -{ -return new PythonQtShell_QSlider(orientation, parent); } - -bool PythonQtWrapper_QSlider::event(QSlider* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_event(event)); -} - -QSize PythonQtWrapper_QSlider::minimumSizeHint(QSlider* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QSlider::mouseMoveEvent(QSlider* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_mouseMoveEvent(ev)); -} - -void PythonQtWrapper_QSlider::mousePressEvent(QSlider* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_mousePressEvent(ev)); -} - -void PythonQtWrapper_QSlider::mouseReleaseEvent(QSlider* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_mouseReleaseEvent(ev)); -} - -void PythonQtWrapper_QSlider::paintEvent(QSlider* theWrappedObject, QPaintEvent* ev) -{ - ( ((PythonQtPublicPromoter_QSlider*)theWrappedObject)->promoted_paintEvent(ev)); -} - -void PythonQtWrapper_QSlider::setTickInterval(QSlider* theWrappedObject, int ti) -{ - ( theWrappedObject->setTickInterval(ti)); -} - -void PythonQtWrapper_QSlider::setTickPosition(QSlider* theWrappedObject, QSlider::TickPosition position) -{ - ( theWrappedObject->setTickPosition(position)); -} - -QSize PythonQtWrapper_QSlider::sizeHint(QSlider* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QSlider::tickInterval(QSlider* theWrappedObject) const -{ - return ( theWrappedObject->tickInterval()); -} - -QSlider::TickPosition PythonQtWrapper_QSlider::tickPosition(QSlider* theWrappedObject) const -{ - return ( theWrappedObject->tickPosition()); -} - - - -void PythonQtShell_QSound::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSound::childEvent(arg__1); -} -void PythonQtShell_QSound::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSound::customEvent(arg__1); -} -bool PythonQtShell_QSound::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSound::event(arg__1); -} -bool PythonQtShell_QSound::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSound::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSound::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSound::timerEvent(arg__1); -} -QSound* PythonQtWrapper_QSound::new_QSound(const QString& filename, QObject* parent) -{ -return new PythonQtShell_QSound(filename, parent); } - -QString PythonQtWrapper_QSound::fileName(QSound* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -bool PythonQtWrapper_QSound::static_QSound_isAvailable() -{ - return (QSound::isAvailable()); -} - -bool PythonQtWrapper_QSound::isFinished(QSound* theWrappedObject) const -{ - return ( theWrappedObject->isFinished()); -} - -int PythonQtWrapper_QSound::loops(QSound* theWrappedObject) const -{ - return ( theWrappedObject->loops()); -} - -int PythonQtWrapper_QSound::loopsRemaining(QSound* theWrappedObject) const -{ - return ( theWrappedObject->loopsRemaining()); -} - -void PythonQtWrapper_QSound::static_QSound_play(const QString& filename) -{ - (QSound::play(filename)); -} - -void PythonQtWrapper_QSound::setLoops(QSound* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setLoops(arg__1)); -} - - - -Qt::Orientations PythonQtShell_QSpacerItem::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::expandingDirections(); -} -QRect PythonQtShell_QSpacerItem::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::geometry(); -} -bool PythonQtShell_QSpacerItem::hasHeightForWidth() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasHeightForWidth", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::hasHeightForWidth(); -} -int PythonQtShell_QSpacerItem::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::heightForWidth(arg__1); -} -void PythonQtShell_QSpacerItem::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpacerItem::invalidate(); -} -bool PythonQtShell_QSpacerItem::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::isEmpty(); -} -QLayout* PythonQtShell_QSpacerItem::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::layout(); -} -QSize PythonQtShell_QSpacerItem::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::maximumSize(); -} -int PythonQtShell_QSpacerItem::minimumHeightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumHeightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::minimumHeightForWidth(arg__1); -} -QSize PythonQtShell_QSpacerItem::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::minimumSize(); -} -void PythonQtShell_QSpacerItem::setGeometry(const QRect& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpacerItem::setGeometry(arg__1); -} -QSize PythonQtShell_QSpacerItem::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::sizeHint(); -} -QSpacerItem* PythonQtShell_QSpacerItem::spacerItem() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "spacerItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("spacerItem", methodInfo, result); - } else { - returnValue = *((QSpacerItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::spacerItem(); -} -QWidget* PythonQtShell_QSpacerItem::widget() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("widget", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpacerItem::widget(); -} -QSpacerItem* PythonQtWrapper_QSpacerItem::new_QSpacerItem(int w, int h, QSizePolicy::Policy hData, QSizePolicy::Policy vData) -{ -return new PythonQtShell_QSpacerItem(w, h, hData, vData); } - -void PythonQtWrapper_QSpacerItem::changeSize(QSpacerItem* theWrappedObject, int w, int h, QSizePolicy::Policy hData, QSizePolicy::Policy vData) -{ - ( theWrappedObject->changeSize(w, h, hData, vData)); -} - -Qt::Orientations PythonQtWrapper_QSpacerItem::expandingDirections(QSpacerItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_expandingDirections()); -} - -QRect PythonQtWrapper_QSpacerItem::geometry(QSpacerItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_geometry()); -} - -bool PythonQtWrapper_QSpacerItem::isEmpty(QSpacerItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_isEmpty()); -} - -QSize PythonQtWrapper_QSpacerItem::maximumSize(QSpacerItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_maximumSize()); -} - -QSize PythonQtWrapper_QSpacerItem::minimumSize(QSpacerItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_minimumSize()); -} - -void PythonQtWrapper_QSpacerItem::setGeometry(QSpacerItem* theWrappedObject, const QRect& arg__1) -{ - ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_setGeometry(arg__1)); -} - -QSize PythonQtWrapper_QSpacerItem::sizeHint(QSpacerItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_sizeHint()); -} - -QSpacerItem* PythonQtWrapper_QSpacerItem::spacerItem(QSpacerItem* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QSpacerItem*)theWrappedObject)->promoted_spacerItem()); -} - - - -void PythonQtShell_QSpinBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::actionEvent(arg__1); -} -void PythonQtShell_QSpinBox::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::changeEvent(event); -} -void PythonQtShell_QSpinBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::childEvent(arg__1); -} -void PythonQtShell_QSpinBox::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::clear(); -} -void PythonQtShell_QSpinBox::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::closeEvent(event); -} -void PythonQtShell_QSpinBox::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::contextMenuEvent(event); -} -void PythonQtShell_QSpinBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::customEvent(arg__1); -} -int PythonQtShell_QSpinBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::devType(); -} -void PythonQtShell_QSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QSpinBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::dropEvent(arg__1); -} -void PythonQtShell_QSpinBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::enterEvent(arg__1); -} -bool PythonQtShell_QSpinBox::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::event(event); -} -bool PythonQtShell_QSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSpinBox::fixup(QString& str) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::fixup(str); -} -void PythonQtShell_QSpinBox::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::focusInEvent(event); -} -bool PythonQtShell_QSpinBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::focusNextPrevChild(next); -} -void PythonQtShell_QSpinBox::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::focusOutEvent(event); -} -int PythonQtShell_QSpinBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::heightForWidth(arg__1); -} -void PythonQtShell_QSpinBox::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::hideEvent(event); -} -void PythonQtShell_QSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QSpinBox::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::keyPressEvent(event); -} -void PythonQtShell_QSpinBox::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::keyReleaseEvent(event); -} -void PythonQtShell_QSpinBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::languageChange(); -} -void PythonQtShell_QSpinBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::leaveEvent(arg__1); -} -int PythonQtShell_QSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::metric(arg__1); -} -void PythonQtShell_QSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QSpinBox::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::mouseMoveEvent(event); -} -void PythonQtShell_QSpinBox::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::mousePressEvent(event); -} -void PythonQtShell_QSpinBox::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::mouseReleaseEvent(event); -} -void PythonQtShell_QSpinBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QSpinBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::paintEngine(); -} -void PythonQtShell_QSpinBox::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::paintEvent(event); -} -void PythonQtShell_QSpinBox::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::resizeEvent(event); -} -void PythonQtShell_QSpinBox::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::showEvent(event); -} -void PythonQtShell_QSpinBox::stepBy(int steps) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::stepBy(steps); -} -QAbstractSpinBox::StepEnabled PythonQtShell_QSpinBox::stepEnabled() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); - } else { - returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::stepEnabled(); -} -void PythonQtShell_QSpinBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::tabletEvent(arg__1); -} -QString PythonQtShell_QSpinBox::textFromValue(int val) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&val}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("textFromValue", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::textFromValue(val); -} -void PythonQtShell_QSpinBox::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSpinBox::timerEvent(event); -} -QValidator::State PythonQtShell_QSpinBox::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::validate(input, pos); -} -int PythonQtShell_QSpinBox::valueFromText(const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("valueFromText", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSpinBox::valueFromText(text); -} -void PythonQtShell_QSpinBox::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSpinBox::wheelEvent(event); -} -QSpinBox* PythonQtWrapper_QSpinBox::new_QSpinBox(QWidget* parent) -{ -return new PythonQtShell_QSpinBox(parent); } - -QString PythonQtWrapper_QSpinBox::cleanText(QSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->cleanText()); -} - -bool PythonQtWrapper_QSpinBox::event(QSpinBox* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_event(event)); -} - -void PythonQtWrapper_QSpinBox::fixup(QSpinBox* theWrappedObject, QString& str) const -{ - ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_fixup(str)); -} - -int PythonQtWrapper_QSpinBox::maximum(QSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->maximum()); -} - -int PythonQtWrapper_QSpinBox::minimum(QSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->minimum()); -} - -QString PythonQtWrapper_QSpinBox::prefix(QSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->prefix()); -} - -void PythonQtWrapper_QSpinBox::setMaximum(QSpinBox* theWrappedObject, int max) -{ - ( theWrappedObject->setMaximum(max)); -} - -void PythonQtWrapper_QSpinBox::setMinimum(QSpinBox* theWrappedObject, int min) -{ - ( theWrappedObject->setMinimum(min)); -} - -void PythonQtWrapper_QSpinBox::setPrefix(QSpinBox* theWrappedObject, const QString& prefix) -{ - ( theWrappedObject->setPrefix(prefix)); -} - -void PythonQtWrapper_QSpinBox::setRange(QSpinBox* theWrappedObject, int min, int max) -{ - ( theWrappedObject->setRange(min, max)); -} - -void PythonQtWrapper_QSpinBox::setSingleStep(QSpinBox* theWrappedObject, int val) -{ - ( theWrappedObject->setSingleStep(val)); -} - -void PythonQtWrapper_QSpinBox::setSuffix(QSpinBox* theWrappedObject, const QString& suffix) -{ - ( theWrappedObject->setSuffix(suffix)); -} - -int PythonQtWrapper_QSpinBox::singleStep(QSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->singleStep()); -} - -QString PythonQtWrapper_QSpinBox::suffix(QSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->suffix()); -} - -QString PythonQtWrapper_QSpinBox::textFromValue(QSpinBox* theWrappedObject, int val) const -{ - return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_textFromValue(val)); -} - -QValidator::State PythonQtWrapper_QSpinBox::validate(QSpinBox* theWrappedObject, QString& input, int& pos) const -{ - return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_validate(input, pos)); -} - -int PythonQtWrapper_QSpinBox::value(QSpinBox* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - -int PythonQtWrapper_QSpinBox::valueFromText(QSpinBox* theWrappedObject, const QString& text) const -{ - return ( ((PythonQtPublicPromoter_QSpinBox*)theWrappedObject)->promoted_valueFromText(text)); -} - - - -void PythonQtShell_QSplashScreen::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::actionEvent(arg__1); -} -void PythonQtShell_QSplashScreen::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::changeEvent(arg__1); -} -void PythonQtShell_QSplashScreen::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::childEvent(arg__1); -} -void PythonQtShell_QSplashScreen::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::closeEvent(arg__1); -} -void PythonQtShell_QSplashScreen::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::contextMenuEvent(arg__1); -} -void PythonQtShell_QSplashScreen::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::customEvent(arg__1); -} -int PythonQtShell_QSplashScreen::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::devType(); -} -void PythonQtShell_QSplashScreen::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::dragEnterEvent(arg__1); -} -void PythonQtShell_QSplashScreen::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::dragLeaveEvent(arg__1); -} -void PythonQtShell_QSplashScreen::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::dragMoveEvent(arg__1); -} -void PythonQtShell_QSplashScreen::drawContents(QPainter* painter) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QSplashScreen::drawContents(painter); -} -void PythonQtShell_QSplashScreen::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::dropEvent(arg__1); -} -void PythonQtShell_QSplashScreen::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::enterEvent(arg__1); -} -bool PythonQtShell_QSplashScreen::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::event(e); -} -bool PythonQtShell_QSplashScreen::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSplashScreen::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::focusInEvent(arg__1); -} -bool PythonQtShell_QSplashScreen::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::focusNextPrevChild(next); -} -void PythonQtShell_QSplashScreen::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::focusOutEvent(arg__1); -} -int PythonQtShell_QSplashScreen::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::heightForWidth(arg__1); -} -void PythonQtShell_QSplashScreen::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::hideEvent(arg__1); -} -void PythonQtShell_QSplashScreen::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QSplashScreen::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::inputMethodQuery(arg__1); -} -void PythonQtShell_QSplashScreen::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::keyPressEvent(arg__1); -} -void PythonQtShell_QSplashScreen::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::keyReleaseEvent(arg__1); -} -void PythonQtShell_QSplashScreen::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::languageChange(); -} -void PythonQtShell_QSplashScreen::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::leaveEvent(arg__1); -} -int PythonQtShell_QSplashScreen::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::metric(arg__1); -} -QSize PythonQtShell_QSplashScreen::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::minimumSizeHint(); -} -void PythonQtShell_QSplashScreen::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QSplashScreen::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::mouseMoveEvent(arg__1); -} -void PythonQtShell_QSplashScreen::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::mousePressEvent(arg__1); -} -void PythonQtShell_QSplashScreen::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QSplashScreen::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QSplashScreen::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::paintEngine(); -} -void PythonQtShell_QSplashScreen::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::paintEvent(arg__1); -} -void PythonQtShell_QSplashScreen::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::resizeEvent(arg__1); -} -void PythonQtShell_QSplashScreen::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::showEvent(arg__1); -} -QSize PythonQtShell_QSplashScreen::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplashScreen::sizeHint(); -} -void PythonQtShell_QSplashScreen::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::tabletEvent(arg__1); -} -void PythonQtShell_QSplashScreen::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::timerEvent(arg__1); -} -void PythonQtShell_QSplashScreen::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplashScreen::wheelEvent(arg__1); -} -QSplashScreen* PythonQtWrapper_QSplashScreen::new_QSplashScreen(QWidget* parent, const QPixmap& pixmap, Qt::WindowFlags f) -{ -return new PythonQtShell_QSplashScreen(parent, pixmap, f); } - -QSplashScreen* PythonQtWrapper_QSplashScreen::new_QSplashScreen(const QPixmap& pixmap, Qt::WindowFlags f) -{ -return new PythonQtShell_QSplashScreen(pixmap, f); } - -void PythonQtWrapper_QSplashScreen::drawContents(QSplashScreen* theWrappedObject, QPainter* painter) -{ - ( ((PythonQtPublicPromoter_QSplashScreen*)theWrappedObject)->promoted_drawContents(painter)); -} - -bool PythonQtWrapper_QSplashScreen::event(QSplashScreen* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QSplashScreen*)theWrappedObject)->promoted_event(e)); -} - -void PythonQtWrapper_QSplashScreen::finish(QSplashScreen* theWrappedObject, QWidget* w) -{ - ( theWrappedObject->finish(w)); -} - -void PythonQtWrapper_QSplashScreen::mousePressEvent(QSplashScreen* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplashScreen*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -const QPixmap PythonQtWrapper_QSplashScreen::pixmap(QSplashScreen* theWrappedObject) const -{ - return ( theWrappedObject->pixmap()); -} - -void PythonQtWrapper_QSplashScreen::setPixmap(QSplashScreen* theWrappedObject, const QPixmap& pixmap) -{ - ( theWrappedObject->setPixmap(pixmap)); -} - - - -void PythonQtShell_QSplitter::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::actionEvent(arg__1); -} -void PythonQtShell_QSplitter::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::changeEvent(arg__1); -} -void PythonQtShell_QSplitter::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::childEvent(arg__1); -} -void PythonQtShell_QSplitter::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::closeEvent(arg__1); -} -void PythonQtShell_QSplitter::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::contextMenuEvent(arg__1); -} -QSplitterHandle* PythonQtShell_QSplitter::createHandle() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createHandle"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSplitterHandle*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSplitterHandle* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createHandle", methodInfo, result); - } else { - returnValue = *((QSplitterHandle**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::createHandle(); -} -void PythonQtShell_QSplitter::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::customEvent(arg__1); -} -int PythonQtShell_QSplitter::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::devType(); -} -void PythonQtShell_QSplitter::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::dragEnterEvent(arg__1); -} -void PythonQtShell_QSplitter::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::dragLeaveEvent(arg__1); -} -void PythonQtShell_QSplitter::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::dragMoveEvent(arg__1); -} -void PythonQtShell_QSplitter::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::dropEvent(arg__1); -} -void PythonQtShell_QSplitter::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::enterEvent(arg__1); -} -bool PythonQtShell_QSplitter::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::event(arg__1); -} -bool PythonQtShell_QSplitter::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSplitter::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::focusInEvent(arg__1); -} -bool PythonQtShell_QSplitter::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::focusNextPrevChild(next); -} -void PythonQtShell_QSplitter::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::focusOutEvent(arg__1); -} -int PythonQtShell_QSplitter::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::heightForWidth(arg__1); -} -void PythonQtShell_QSplitter::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::hideEvent(arg__1); -} -void PythonQtShell_QSplitter::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QSplitter::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::inputMethodQuery(arg__1); -} -void PythonQtShell_QSplitter::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::keyPressEvent(arg__1); -} -void PythonQtShell_QSplitter::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::keyReleaseEvent(arg__1); -} -void PythonQtShell_QSplitter::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::languageChange(); -} -void PythonQtShell_QSplitter::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::leaveEvent(arg__1); -} -int PythonQtShell_QSplitter::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::metric(arg__1); -} -void PythonQtShell_QSplitter::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QSplitter::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::mouseMoveEvent(arg__1); -} -void PythonQtShell_QSplitter::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::mousePressEvent(arg__1); -} -void PythonQtShell_QSplitter::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QSplitter::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QSplitter::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitter::paintEngine(); -} -void PythonQtShell_QSplitter::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::paintEvent(arg__1); -} -void PythonQtShell_QSplitter::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::resizeEvent(arg__1); -} -void PythonQtShell_QSplitter::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::showEvent(arg__1); -} -void PythonQtShell_QSplitter::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::tabletEvent(arg__1); -} -void PythonQtShell_QSplitter::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::timerEvent(arg__1); -} -void PythonQtShell_QSplitter::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitter::wheelEvent(arg__1); -} -QSplitter* PythonQtWrapper_QSplitter::new_QSplitter(QWidget* parent) -{ -return new PythonQtShell_QSplitter(parent); } - -QSplitter* PythonQtWrapper_QSplitter::new_QSplitter(Qt::Orientation arg__1, QWidget* parent) -{ -return new PythonQtShell_QSplitter(arg__1, parent); } - -void PythonQtWrapper_QSplitter::addWidget(QSplitter* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->addWidget(widget)); -} - -void PythonQtWrapper_QSplitter::changeEvent(QSplitter* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -void PythonQtWrapper_QSplitter::childEvent(QSplitter* theWrappedObject, QChildEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_childEvent(arg__1)); -} - -bool PythonQtWrapper_QSplitter::childrenCollapsible(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->childrenCollapsible()); -} - -int PythonQtWrapper_QSplitter::count(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -QSplitterHandle* PythonQtWrapper_QSplitter::createHandle(QSplitter* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_createHandle()); -} - -bool PythonQtWrapper_QSplitter::event(QSplitter* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_event(arg__1)); -} - -void PythonQtWrapper_QSplitter::getRange(QSplitter* theWrappedObject, int index, int* arg__2, int* arg__3) const -{ - ( theWrappedObject->getRange(index, arg__2, arg__3)); -} - -QSplitterHandle* PythonQtWrapper_QSplitter::handle(QSplitter* theWrappedObject, int index) const -{ - return ( theWrappedObject->handle(index)); -} - -int PythonQtWrapper_QSplitter::handleWidth(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->handleWidth()); -} - -int PythonQtWrapper_QSplitter::indexOf(QSplitter* theWrappedObject, QWidget* w) const -{ - return ( theWrappedObject->indexOf(w)); -} - -void PythonQtWrapper_QSplitter::insertWidget(QSplitter* theWrappedObject, int index, QWidget* widget) -{ - ( theWrappedObject->insertWidget(index, widget)); -} - -bool PythonQtWrapper_QSplitter::isCollapsible(QSplitter* theWrappedObject, int index) const -{ - return ( theWrappedObject->isCollapsible(index)); -} - -QSize PythonQtWrapper_QSplitter::minimumSizeHint(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -bool PythonQtWrapper_QSplitter::opaqueResize(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->opaqueResize()); -} - -void PythonQtWrapper_QSplitter::writeTo(QSplitter* theWrappedObject, QTextStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -void PythonQtWrapper_QSplitter::readFrom(QSplitter* theWrappedObject, QTextStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -Qt::Orientation PythonQtWrapper_QSplitter::orientation(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QSplitter::refresh(QSplitter* theWrappedObject) -{ - ( theWrappedObject->refresh()); -} - -void PythonQtWrapper_QSplitter::resizeEvent(QSplitter* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplitter*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -bool PythonQtWrapper_QSplitter::restoreState(QSplitter* theWrappedObject, const QByteArray& state) -{ - return ( theWrappedObject->restoreState(state)); -} - -QByteArray PythonQtWrapper_QSplitter::saveState(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->saveState()); -} - -void PythonQtWrapper_QSplitter::setChildrenCollapsible(QSplitter* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setChildrenCollapsible(arg__1)); -} - -void PythonQtWrapper_QSplitter::setCollapsible(QSplitter* theWrappedObject, int index, bool arg__2) -{ - ( theWrappedObject->setCollapsible(index, arg__2)); -} - -void PythonQtWrapper_QSplitter::setHandleWidth(QSplitter* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setHandleWidth(arg__1)); -} - -void PythonQtWrapper_QSplitter::setOpaqueResize(QSplitter* theWrappedObject, bool opaque) -{ - ( theWrappedObject->setOpaqueResize(opaque)); -} - -void PythonQtWrapper_QSplitter::setOrientation(QSplitter* theWrappedObject, Qt::Orientation arg__1) -{ - ( theWrappedObject->setOrientation(arg__1)); -} - -void PythonQtWrapper_QSplitter::setSizes(QSplitter* theWrappedObject, const QList& list) -{ - ( theWrappedObject->setSizes(list)); -} - -void PythonQtWrapper_QSplitter::setStretchFactor(QSplitter* theWrappedObject, int index, int stretch) -{ - ( theWrappedObject->setStretchFactor(index, stretch)); -} - -QSize PythonQtWrapper_QSplitter::sizeHint(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QList PythonQtWrapper_QSplitter::sizes(QSplitter* theWrappedObject) const -{ - return ( theWrappedObject->sizes()); -} - -QWidget* PythonQtWrapper_QSplitter::widget(QSplitter* theWrappedObject, int index) const -{ - return ( theWrappedObject->widget(index)); -} - - - -void PythonQtShell_QSplitterHandle::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::actionEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::changeEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::childEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::closeEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::contextMenuEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::customEvent(arg__1); -} -int PythonQtShell_QSplitterHandle::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::devType(); -} -void PythonQtShell_QSplitterHandle::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::dragEnterEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::dragLeaveEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::dragMoveEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::dropEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::enterEvent(arg__1); -} -bool PythonQtShell_QSplitterHandle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::event(arg__1); -} -bool PythonQtShell_QSplitterHandle::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSplitterHandle::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::focusInEvent(arg__1); -} -bool PythonQtShell_QSplitterHandle::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::focusNextPrevChild(next); -} -void PythonQtShell_QSplitterHandle::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::focusOutEvent(arg__1); -} -int PythonQtShell_QSplitterHandle::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::heightForWidth(arg__1); -} -void PythonQtShell_QSplitterHandle::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::hideEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QSplitterHandle::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::inputMethodQuery(arg__1); -} -void PythonQtShell_QSplitterHandle::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::keyPressEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::keyReleaseEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::languageChange(); -} -void PythonQtShell_QSplitterHandle::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::leaveEvent(arg__1); -} -int PythonQtShell_QSplitterHandle::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::metric(arg__1); -} -QSize PythonQtShell_QSplitterHandle::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::minimumSizeHint(); -} -void PythonQtShell_QSplitterHandle::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::mouseMoveEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::mousePressEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QSplitterHandle::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSplitterHandle::paintEngine(); -} -void PythonQtShell_QSplitterHandle::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::paintEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::resizeEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::showEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::tabletEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::timerEvent(arg__1); -} -void PythonQtShell_QSplitterHandle::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSplitterHandle::wheelEvent(arg__1); -} -QSplitterHandle* PythonQtWrapper_QSplitterHandle::new_QSplitterHandle(Qt::Orientation o, QSplitter* parent) -{ -return new PythonQtShell_QSplitterHandle(o, parent); } - -bool PythonQtWrapper_QSplitterHandle::event(QSplitterHandle* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_event(arg__1)); -} - -void PythonQtWrapper_QSplitterHandle::mouseMoveEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QSplitterHandle::mousePressEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QSplitterHandle::mouseReleaseEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -bool PythonQtWrapper_QSplitterHandle::opaqueResize(QSplitterHandle* theWrappedObject) const -{ - return ( theWrappedObject->opaqueResize()); -} - -Qt::Orientation PythonQtWrapper_QSplitterHandle::orientation(QSplitterHandle* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QSplitterHandle::paintEvent(QSplitterHandle* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QSplitterHandle*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QSplitterHandle::setOrientation(QSplitterHandle* theWrappedObject, Qt::Orientation o) -{ - ( theWrappedObject->setOrientation(o)); -} - -QSize PythonQtWrapper_QSplitterHandle::sizeHint(QSplitterHandle* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QSplitter* PythonQtWrapper_QSplitterHandle::splitter(QSplitterHandle* theWrappedObject) const -{ - return ( theWrappedObject->splitter()); -} - - - -void PythonQtShell_QStackedLayout::addItem(QLayoutItem* item) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "addItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QLayoutItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedLayout::addItem(item); -} -void PythonQtShell_QStackedLayout::childEvent(QChildEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedLayout::childEvent(e); -} -int PythonQtShell_QStackedLayout::count() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("count", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::count(); -} -void PythonQtShell_QStackedLayout::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedLayout::customEvent(arg__1); -} -bool PythonQtShell_QStackedLayout::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::event(arg__1); -} -bool PythonQtShell_QStackedLayout::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::eventFilter(arg__1, arg__2); -} -Qt::Orientations PythonQtShell_QStackedLayout::expandingDirections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expandingDirections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expandingDirections", methodInfo, result); - } else { - returnValue = *((Qt::Orientations*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::expandingDirections(); -} -QRect PythonQtShell_QStackedLayout::geometry() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "geometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QRect returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("geometry", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::geometry(); -} -int PythonQtShell_QStackedLayout::indexOf(QWidget* arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexOf"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexOf", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::indexOf(arg__1); -} -void PythonQtShell_QStackedLayout::invalidate() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedLayout::invalidate(); -} -bool PythonQtShell_QStackedLayout::isEmpty() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isEmpty"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isEmpty", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::isEmpty(); -} -QLayoutItem* PythonQtShell_QStackedLayout::itemAt(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::itemAt(arg__1); -} -QLayout* PythonQtShell_QStackedLayout::layout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "layout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("layout", methodInfo, result); - } else { - returnValue = *((QLayout**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::layout(); -} -QSize PythonQtShell_QStackedLayout::maximumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "maximumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("maximumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::maximumSize(); -} -QSize PythonQtShell_QStackedLayout::minimumSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minimumSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minimumSize", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::minimumSize(); -} -void PythonQtShell_QStackedLayout::setGeometry(const QRect& rect) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rect}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedLayout::setGeometry(rect); -} -QLayoutItem* PythonQtShell_QStackedLayout::takeAt(int arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "takeAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("takeAt", methodInfo, result); - } else { - returnValue = *((QLayoutItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedLayout::takeAt(arg__1); -} -void PythonQtShell_QStackedLayout::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedLayout::timerEvent(arg__1); -} -QStackedLayout* PythonQtWrapper_QStackedLayout::new_QStackedLayout() -{ -return new PythonQtShell_QStackedLayout(); } - -QStackedLayout* PythonQtWrapper_QStackedLayout::new_QStackedLayout(QLayout* parentLayout) -{ -return new PythonQtShell_QStackedLayout(parentLayout); } - -QStackedLayout* PythonQtWrapper_QStackedLayout::new_QStackedLayout(QWidget* parent) -{ -return new PythonQtShell_QStackedLayout(parent); } - -void PythonQtWrapper_QStackedLayout::addItem(QStackedLayout* theWrappedObject, QLayoutItem* item) -{ - ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_addItem(item)); -} - -int PythonQtWrapper_QStackedLayout::addWidget(QStackedLayout* theWrappedObject, QWidget* w) -{ - return ( theWrappedObject->addWidget(w)); -} - -int PythonQtWrapper_QStackedLayout::count(QStackedLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_count()); -} - -int PythonQtWrapper_QStackedLayout::currentIndex(QStackedLayout* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -QWidget* PythonQtWrapper_QStackedLayout::currentWidget(QStackedLayout* theWrappedObject) const -{ - return ( theWrappedObject->currentWidget()); -} - -int PythonQtWrapper_QStackedLayout::insertWidget(QStackedLayout* theWrappedObject, int index, QWidget* w) -{ - return ( theWrappedObject->insertWidget(index, w)); -} - -QLayoutItem* PythonQtWrapper_QStackedLayout::itemAt(QStackedLayout* theWrappedObject, int arg__1) const -{ - return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_itemAt(arg__1)); -} - -QSize PythonQtWrapper_QStackedLayout::minimumSize(QStackedLayout* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_minimumSize()); -} - -void PythonQtWrapper_QStackedLayout::setGeometry(QStackedLayout* theWrappedObject, const QRect& rect) -{ - ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_setGeometry(rect)); -} - -void PythonQtWrapper_QStackedLayout::setStackingMode(QStackedLayout* theWrappedObject, QStackedLayout::StackingMode stackingMode) -{ - ( theWrappedObject->setStackingMode(stackingMode)); -} - -QSize PythonQtWrapper_QStackedLayout::sizeHint(QStackedLayout* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QStackedLayout::StackingMode PythonQtWrapper_QStackedLayout::stackingMode(QStackedLayout* theWrappedObject) const -{ - return ( theWrappedObject->stackingMode()); -} - -QLayoutItem* PythonQtWrapper_QStackedLayout::takeAt(QStackedLayout* theWrappedObject, int arg__1) -{ - return ( ((PythonQtPublicPromoter_QStackedLayout*)theWrappedObject)->promoted_takeAt(arg__1)); -} - -QWidget* PythonQtWrapper_QStackedLayout::widget(QStackedLayout* theWrappedObject) -{ - return ( theWrappedObject->widget()); -} - -QWidget* PythonQtWrapper_QStackedLayout::widget(QStackedLayout* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->widget(arg__1)); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.h deleted file mode 100644 index 0928645cd..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.h +++ /dev/null @@ -1,2081 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QPrintDialog : public QPrintDialog -{ -public: - PythonQtShell_QPrintDialog(QPrinter* printer, QWidget* parent = 0):QPrintDialog(printer, parent),_wrapper(NULL) {}; - PythonQtShell_QPrintDialog(QWidget* parent = 0):QPrintDialog(parent),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual int exec(); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPrintDialog : public QPrintDialog -{ public: -inline void promoted_accepted() { QPrintDialog::accepted(); } -inline void promoted_done(int result) { QPrintDialog::done(result); } -inline int promoted_exec() { return QPrintDialog::exec(); } -}; - -class PythonQtWrapper_QPrintDialog : public QObject -{ Q_OBJECT -public: -public slots: -QPrintDialog* new_QPrintDialog(QPrinter* printer, QWidget* parent = 0); -QPrintDialog* new_QPrintDialog(QWidget* parent = 0); -void delete_QPrintDialog(QPrintDialog* obj) { delete obj; } - void accepted(QPrintDialog* theWrappedObject); - void done(QPrintDialog* theWrappedObject, int result); - int exec(QPrintDialog* theWrappedObject); - void open(QPrintDialog* theWrappedObject); - void open(QPrintDialog* theWrappedObject, QObject* receiver, const char* member); - QAbstractPrintDialog::PrintDialogOptions options(QPrintDialog* theWrappedObject) const; - void setOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option, bool on = true); - void setOptions(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOptions options); - bool testOption(QPrintDialog* theWrappedObject, QAbstractPrintDialog::PrintDialogOption option) const; -}; - - - - - -class PythonQtShell_QPrintEngine : public QPrintEngine -{ -public: - PythonQtShell_QPrintEngine():QPrintEngine(),_wrapper(NULL) {}; - -virtual bool abort(); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual bool newPage(); -virtual QPrinter::PrinterState printerState() const; -virtual QVariant property(QPrintEngine::PrintEnginePropertyKey key) const; -virtual void setProperty(QPrintEngine::PrintEnginePropertyKey key, const QVariant& value); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPrintEngine : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PrintEnginePropertyKey ) -enum PrintEnginePropertyKey{ - PPK_CollateCopies = QPrintEngine::PPK_CollateCopies, PPK_ColorMode = QPrintEngine::PPK_ColorMode, PPK_Creator = QPrintEngine::PPK_Creator, PPK_DocumentName = QPrintEngine::PPK_DocumentName, PPK_FullPage = QPrintEngine::PPK_FullPage, PPK_NumberOfCopies = QPrintEngine::PPK_NumberOfCopies, PPK_Orientation = QPrintEngine::PPK_Orientation, PPK_OutputFileName = QPrintEngine::PPK_OutputFileName, PPK_PageOrder = QPrintEngine::PPK_PageOrder, PPK_PageRect = QPrintEngine::PPK_PageRect, PPK_PageSize = QPrintEngine::PPK_PageSize, PPK_PaperRect = QPrintEngine::PPK_PaperRect, PPK_PaperSource = QPrintEngine::PPK_PaperSource, PPK_PrinterName = QPrintEngine::PPK_PrinterName, PPK_PrinterProgram = QPrintEngine::PPK_PrinterProgram, PPK_Resolution = QPrintEngine::PPK_Resolution, PPK_SelectionOption = QPrintEngine::PPK_SelectionOption, PPK_SupportedResolutions = QPrintEngine::PPK_SupportedResolutions, PPK_WindowsPageSize = QPrintEngine::PPK_WindowsPageSize, PPK_FontEmbedding = QPrintEngine::PPK_FontEmbedding, PPK_SuppressSystemPrintStatus = QPrintEngine::PPK_SuppressSystemPrintStatus, PPK_Duplex = QPrintEngine::PPK_Duplex, PPK_PaperSources = QPrintEngine::PPK_PaperSources, PPK_CustomPaperSize = QPrintEngine::PPK_CustomPaperSize, PPK_PageMargins = QPrintEngine::PPK_PageMargins, PPK_PaperSize = QPrintEngine::PPK_PaperSize, PPK_CustomBase = QPrintEngine::PPK_CustomBase}; -public slots: -QPrintEngine* new_QPrintEngine(); -void delete_QPrintEngine(QPrintEngine* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QPrintPreviewDialog : public QPrintPreviewDialog -{ -public: - PythonQtShell_QPrintPreviewDialog(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewDialog(printer, parent, flags),_wrapper(NULL) {}; - PythonQtShell_QPrintPreviewDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewDialog(parent, flags),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int result); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPrintPreviewDialog : public QPrintPreviewDialog -{ public: -inline void promoted_done(int result) { QPrintPreviewDialog::done(result); } -}; - -class PythonQtWrapper_QPrintPreviewDialog : public QObject -{ Q_OBJECT -public: -public slots: -QPrintPreviewDialog* new_QPrintPreviewDialog(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0); -QPrintPreviewDialog* new_QPrintPreviewDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QPrintPreviewDialog(QPrintPreviewDialog* obj) { delete obj; } - void done(QPrintPreviewDialog* theWrappedObject, int result); - void open(QPrintPreviewDialog* theWrappedObject); - void open(QPrintPreviewDialog* theWrappedObject, QObject* receiver, const char* member); - QPrinter* printer(QPrintPreviewDialog* theWrappedObject); - void setVisible(QPrintPreviewDialog* theWrappedObject, bool visible); -}; - - - - - -class PythonQtShell_QPrintPreviewWidget : public QPrintPreviewWidget -{ -public: - PythonQtShell_QPrintPreviewWidget(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewWidget(printer, parent, flags),_wrapper(NULL) {}; - PythonQtShell_QPrintPreviewWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0):QPrintPreviewWidget(parent, flags),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QPrintPreviewWidget : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ZoomMode ViewMode ) -enum ZoomMode{ - CustomZoom = QPrintPreviewWidget::CustomZoom, FitToWidth = QPrintPreviewWidget::FitToWidth, FitInView = QPrintPreviewWidget::FitInView}; -enum ViewMode{ - SinglePageView = QPrintPreviewWidget::SinglePageView, FacingPagesView = QPrintPreviewWidget::FacingPagesView, AllPagesView = QPrintPreviewWidget::AllPagesView}; -public slots: -QPrintPreviewWidget* new_QPrintPreviewWidget(QPrinter* printer, QWidget* parent = 0, Qt::WindowFlags flags = 0); -QPrintPreviewWidget* new_QPrintPreviewWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QPrintPreviewWidget(QPrintPreviewWidget* obj) { delete obj; } - int currentPage(QPrintPreviewWidget* theWrappedObject) const; - int numPages(QPrintPreviewWidget* theWrappedObject) const; - QPrinter::Orientation orientation(QPrintPreviewWidget* theWrappedObject) const; - int pageCount(QPrintPreviewWidget* theWrappedObject) const; - void setVisible(QPrintPreviewWidget* theWrappedObject, bool visible); - QPrintPreviewWidget::ViewMode viewMode(QPrintPreviewWidget* theWrappedObject) const; - qreal zoomFactor(QPrintPreviewWidget* theWrappedObject) const; - QPrintPreviewWidget::ZoomMode zoomMode(QPrintPreviewWidget* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QPrinter : public QPrinter -{ -public: - PythonQtShell_QPrinter(QPrinter::PrinterMode mode = QPrinter::ScreenResolution):QPrinter(mode),_wrapper(NULL) {}; - PythonQtShell_QPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode = QPrinter::ScreenResolution):QPrinter(printer, mode),_wrapper(NULL) {}; - -virtual int devType() const; -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QPaintEngine* paintEngine() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPrinter : public QPrinter -{ public: -inline int promoted_devType() const { return QPrinter::devType(); } -inline int promoted_metric(QPaintDevice::PaintDeviceMetric arg__1) const { return QPrinter::metric(arg__1); } -inline QPaintEngine* promoted_paintEngine() const { return QPrinter::paintEngine(); } -}; - -class PythonQtWrapper_QPrinter : public QObject -{ Q_OBJECT -public: -Q_ENUMS(OutputFormat DuplexMode PrintRange Unit PrinterMode Orientation PrinterState ColorMode PaperSource PageOrder PageSize ) -enum OutputFormat{ - NativeFormat = QPrinter::NativeFormat, PdfFormat = QPrinter::PdfFormat, PostScriptFormat = QPrinter::PostScriptFormat}; -enum DuplexMode{ - DuplexNone = QPrinter::DuplexNone, DuplexAuto = QPrinter::DuplexAuto, DuplexLongSide = QPrinter::DuplexLongSide, DuplexShortSide = QPrinter::DuplexShortSide}; -enum PrintRange{ - AllPages = QPrinter::AllPages, Selection = QPrinter::Selection, PageRange = QPrinter::PageRange}; -enum Unit{ - Millimeter = QPrinter::Millimeter, Point = QPrinter::Point, Inch = QPrinter::Inch, Pica = QPrinter::Pica, Didot = QPrinter::Didot, Cicero = QPrinter::Cicero, DevicePixel = QPrinter::DevicePixel}; -enum PrinterMode{ - ScreenResolution = QPrinter::ScreenResolution, PrinterResolution = QPrinter::PrinterResolution, HighResolution = QPrinter::HighResolution}; -enum Orientation{ - Portrait = QPrinter::Portrait, Landscape = QPrinter::Landscape}; -enum PrinterState{ - Idle = QPrinter::Idle, Active = QPrinter::Active, Aborted = QPrinter::Aborted, Error = QPrinter::Error}; -enum ColorMode{ - GrayScale = QPrinter::GrayScale, Color = QPrinter::Color}; -enum PaperSource{ - OnlyOne = QPrinter::OnlyOne, Lower = QPrinter::Lower, Middle = QPrinter::Middle, Manual = QPrinter::Manual, Envelope = QPrinter::Envelope, EnvelopeManual = QPrinter::EnvelopeManual, Auto = QPrinter::Auto, Tractor = QPrinter::Tractor, SmallFormat = QPrinter::SmallFormat, LargeFormat = QPrinter::LargeFormat, LargeCapacity = QPrinter::LargeCapacity, Cassette = QPrinter::Cassette, FormSource = QPrinter::FormSource, MaxPageSource = QPrinter::MaxPageSource}; -enum PageOrder{ - FirstPageFirst = QPrinter::FirstPageFirst, LastPageFirst = QPrinter::LastPageFirst}; -enum PageSize{ - A4 = QPrinter::A4, B5 = QPrinter::B5, Letter = QPrinter::Letter, Legal = QPrinter::Legal, Executive = QPrinter::Executive, A0 = QPrinter::A0, A1 = QPrinter::A1, A2 = QPrinter::A2, A3 = QPrinter::A3, A5 = QPrinter::A5, A6 = QPrinter::A6, A7 = QPrinter::A7, A8 = QPrinter::A8, A9 = QPrinter::A9, B0 = QPrinter::B0, B1 = QPrinter::B1, B10 = QPrinter::B10, B2 = QPrinter::B2, B3 = QPrinter::B3, B4 = QPrinter::B4, B6 = QPrinter::B6, B7 = QPrinter::B7, B8 = QPrinter::B8, B9 = QPrinter::B9, C5E = QPrinter::C5E, Comm10E = QPrinter::Comm10E, DLE = QPrinter::DLE, Folio = QPrinter::Folio, Ledger = QPrinter::Ledger, Tabloid = QPrinter::Tabloid, Custom = QPrinter::Custom, NPageSize = QPrinter::NPageSize, NPaperSize = QPrinter::NPaperSize}; -public slots: -QPrinter* new_QPrinter(QPrinter::PrinterMode mode = QPrinter::ScreenResolution); -QPrinter* new_QPrinter(const QPrinterInfo& printer, QPrinter::PrinterMode mode = QPrinter::ScreenResolution); -void delete_QPrinter(QPrinter* obj) { delete obj; } - bool abort(QPrinter* theWrappedObject); - int actualNumCopies(QPrinter* theWrappedObject) const; - bool collateCopies(QPrinter* theWrappedObject) const; - QPrinter::ColorMode colorMode(QPrinter* theWrappedObject) const; - QString creator(QPrinter* theWrappedObject) const; - int devType(QPrinter* theWrappedObject) const; - QString docName(QPrinter* theWrappedObject) const; - bool doubleSidedPrinting(QPrinter* theWrappedObject) const; - QPrinter::DuplexMode duplex(QPrinter* theWrappedObject) const; - bool fontEmbeddingEnabled(QPrinter* theWrappedObject) const; - int fromPage(QPrinter* theWrappedObject) const; - bool fullPage(QPrinter* theWrappedObject) const; - void getPageMargins(QPrinter* theWrappedObject, qreal* left, qreal* top, qreal* right, qreal* bottom, QPrinter::Unit unit) const; - bool isValid(QPrinter* theWrappedObject) const; - int metric(QPrinter* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const; - bool newPage(QPrinter* theWrappedObject); - int numCopies(QPrinter* theWrappedObject) const; - QPrinter::Orientation orientation(QPrinter* theWrappedObject) const; - QString outputFileName(QPrinter* theWrappedObject) const; - QPrinter::OutputFormat outputFormat(QPrinter* theWrappedObject) const; - QPrinter::PageOrder pageOrder(QPrinter* theWrappedObject) const; - QRect pageRect(QPrinter* theWrappedObject) const; - QRectF pageRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const; - QPrinter::PageSize pageSize(QPrinter* theWrappedObject) const; - QPaintEngine* paintEngine(QPrinter* theWrappedObject) const; - QRect paperRect(QPrinter* theWrappedObject) const; - QRectF paperRect(QPrinter* theWrappedObject, QPrinter::Unit arg__1) const; - QPrinter::PageSize paperSize(QPrinter* theWrappedObject) const; - QSizeF paperSize(QPrinter* theWrappedObject, QPrinter::Unit unit) const; - QPrinter::PaperSource paperSource(QPrinter* theWrappedObject) const; - QPrintEngine* printEngine(QPrinter* theWrappedObject) const; - QString printProgram(QPrinter* theWrappedObject) const; - QPrinter::PrintRange printRange(QPrinter* theWrappedObject) const; - QString printerName(QPrinter* theWrappedObject) const; - QPrinter::PrinterState printerState(QPrinter* theWrappedObject) const; - int resolution(QPrinter* theWrappedObject) const; - void setCollateCopies(QPrinter* theWrappedObject, bool collate); - void setColorMode(QPrinter* theWrappedObject, QPrinter::ColorMode arg__1); - void setCreator(QPrinter* theWrappedObject, const QString& arg__1); - void setDocName(QPrinter* theWrappedObject, const QString& arg__1); - void setDoubleSidedPrinting(QPrinter* theWrappedObject, bool enable); - void setDuplex(QPrinter* theWrappedObject, QPrinter::DuplexMode duplex); - void setFontEmbeddingEnabled(QPrinter* theWrappedObject, bool enable); - void setFromTo(QPrinter* theWrappedObject, int fromPage, int toPage); - void setFullPage(QPrinter* theWrappedObject, bool arg__1); - void setNumCopies(QPrinter* theWrappedObject, int arg__1); - void setOrientation(QPrinter* theWrappedObject, QPrinter::Orientation arg__1); - void setOutputFileName(QPrinter* theWrappedObject, const QString& arg__1); - void setOutputFormat(QPrinter* theWrappedObject, QPrinter::OutputFormat format); - void setPageMargins(QPrinter* theWrappedObject, qreal left, qreal top, qreal right, qreal bottom, QPrinter::Unit unit); - void setPageOrder(QPrinter* theWrappedObject, QPrinter::PageOrder arg__1); - void setPageSize(QPrinter* theWrappedObject, QPrinter::PageSize arg__1); - void setPaperSize(QPrinter* theWrappedObject, QPrinter::PageSize arg__1); - void setPaperSize(QPrinter* theWrappedObject, const QSizeF& paperSize, QPrinter::Unit unit); - void setPaperSource(QPrinter* theWrappedObject, QPrinter::PaperSource arg__1); - void setPrintProgram(QPrinter* theWrappedObject, const QString& arg__1); - void setPrintRange(QPrinter* theWrappedObject, QPrinter::PrintRange range); - void setPrinterName(QPrinter* theWrappedObject, const QString& arg__1); - void setResolution(QPrinter* theWrappedObject, int arg__1); - QList supportedResolutions(QPrinter* theWrappedObject) const; - int toPage(QPrinter* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QProgressBar : public QProgressBar -{ -public: - PythonQtShell_QProgressBar(QWidget* parent = 0):QProgressBar(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual QString text() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QProgressBar : public QProgressBar -{ public: -inline bool promoted_event(QEvent* e) { return QProgressBar::event(e); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QProgressBar::paintEvent(arg__1); } -inline QString promoted_text() const { return QProgressBar::text(); } -}; - -class PythonQtWrapper_QProgressBar : public QObject -{ Q_OBJECT -public: -public slots: -QProgressBar* new_QProgressBar(QWidget* parent = 0); -void delete_QProgressBar(QProgressBar* obj) { delete obj; } - Qt::Alignment alignment(QProgressBar* theWrappedObject) const; - bool event(QProgressBar* theWrappedObject, QEvent* e); - QString format(QProgressBar* theWrappedObject) const; - bool invertedAppearance(QProgressBar* theWrappedObject); - bool isTextVisible(QProgressBar* theWrappedObject) const; - int maximum(QProgressBar* theWrappedObject) const; - int minimum(QProgressBar* theWrappedObject) const; - QSize minimumSizeHint(QProgressBar* theWrappedObject) const; - Qt::Orientation orientation(QProgressBar* theWrappedObject) const; - void paintEvent(QProgressBar* theWrappedObject, QPaintEvent* arg__1); - void setAlignment(QProgressBar* theWrappedObject, Qt::Alignment alignment); - void setFormat(QProgressBar* theWrappedObject, const QString& format); - void setInvertedAppearance(QProgressBar* theWrappedObject, bool invert); - void setTextDirection(QProgressBar* theWrappedObject, QProgressBar::Direction textDirection); - void setTextVisible(QProgressBar* theWrappedObject, bool visible); - QSize sizeHint(QProgressBar* theWrappedObject) const; - QString text(QProgressBar* theWrappedObject) const; - QProgressBar::Direction textDirection(QProgressBar* theWrappedObject); - int value(QProgressBar* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QProgressDialog : public QProgressDialog -{ -public: - PythonQtShell_QProgressDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0):QProgressDialog(parent, flags),_wrapper(NULL) {}; - PythonQtShell_QProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent = 0, Qt::WindowFlags flags = 0):QProgressDialog(labelText, cancelButtonText, minimum, maximum, parent, flags),_wrapper(NULL) {}; - -virtual void accept(); -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void done(int arg__1); -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void reject(); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QProgressDialog : public QProgressDialog -{ public: -inline void promoted_changeEvent(QEvent* event) { QProgressDialog::changeEvent(event); } -inline void promoted_closeEvent(QCloseEvent* event) { QProgressDialog::closeEvent(event); } -inline void promoted_resizeEvent(QResizeEvent* event) { QProgressDialog::resizeEvent(event); } -inline void promoted_showEvent(QShowEvent* event) { QProgressDialog::showEvent(event); } -}; - -class PythonQtWrapper_QProgressDialog : public QObject -{ Q_OBJECT -public: -public slots: -QProgressDialog* new_QProgressDialog(QWidget* parent = 0, Qt::WindowFlags flags = 0); -QProgressDialog* new_QProgressDialog(const QString& labelText, const QString& cancelButtonText, int minimum, int maximum, QWidget* parent = 0, Qt::WindowFlags flags = 0); -void delete_QProgressDialog(QProgressDialog* obj) { delete obj; } - bool autoClose(QProgressDialog* theWrappedObject) const; - bool autoReset(QProgressDialog* theWrappedObject) const; - void changeEvent(QProgressDialog* theWrappedObject, QEvent* event); - void closeEvent(QProgressDialog* theWrappedObject, QCloseEvent* event); - QString labelText(QProgressDialog* theWrappedObject) const; - int maximum(QProgressDialog* theWrappedObject) const; - int minimum(QProgressDialog* theWrappedObject) const; - int minimumDuration(QProgressDialog* theWrappedObject) const; - void open(QProgressDialog* theWrappedObject); - void open(QProgressDialog* theWrappedObject, QObject* receiver, const char* member); - void resizeEvent(QProgressDialog* theWrappedObject, QResizeEvent* event); - void setAutoClose(QProgressDialog* theWrappedObject, bool close); - void setAutoReset(QProgressDialog* theWrappedObject, bool reset); - void setBar(QProgressDialog* theWrappedObject, QProgressBar* bar); - void setCancelButton(QProgressDialog* theWrappedObject, QPushButton* button); - void setLabel(QProgressDialog* theWrappedObject, QLabel* label); - void showEvent(QProgressDialog* theWrappedObject, QShowEvent* event); - QSize sizeHint(QProgressDialog* theWrappedObject) const; - int value(QProgressDialog* theWrappedObject) const; - bool wasCanceled(QProgressDialog* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QProxyStyle : public QProxyStyle -{ -public: - PythonQtShell_QProxyStyle(QStyle* baseStyle = 0):QProxyStyle(baseStyle),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget = 0) const; -virtual void drawControl(QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget = 0) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* app); -virtual void polish(QPalette& pal); -virtual void polish(QWidget* widget); -virtual QSize sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget = 0) const; -virtual int styleHint(QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const; -virtual QRect subElementRect(QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void unpolish(QApplication* app); -virtual void unpolish(QWidget* widget); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QProxyStyle : public QProxyStyle -{ public: -inline void promoted_drawComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget = 0) const { QProxyStyle::drawComplexControl(control, option, painter, widget); } -inline void promoted_drawControl(QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const { QProxyStyle::drawControl(element, option, painter, widget); } -inline void promoted_drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const { QProxyStyle::drawItemPixmap(painter, rect, alignment, pixmap); } -inline void promoted_drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const { QProxyStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); } -inline void promoted_drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const { QProxyStyle::drawPrimitive(element, option, painter, widget); } -inline bool promoted_event(QEvent* e) { return QProxyStyle::event(e); } -inline QPixmap promoted_generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const { return QProxyStyle::generatedIconPixmap(iconMode, pixmap, opt); } -inline QStyle::SubControl promoted_hitTestComplexControl(QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget = 0) const { return QProxyStyle::hitTestComplexControl(control, option, pos, widget); } -inline QRect promoted_itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const { return QProxyStyle::itemPixmapRect(r, flags, pixmap); } -inline int promoted_pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const { return QProxyStyle::pixelMetric(metric, option, widget); } -inline void promoted_polish(QApplication* app) { QProxyStyle::polish(app); } -inline void promoted_polish(QPalette& pal) { QProxyStyle::polish(pal); } -inline void promoted_polish(QWidget* widget) { QProxyStyle::polish(widget); } -inline QSize promoted_sizeFromContents(QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const { return QProxyStyle::sizeFromContents(type, option, size, widget); } -inline QPalette promoted_standardPalette() const { return QProxyStyle::standardPalette(); } -inline QPixmap promoted_standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget = 0) const { return QProxyStyle::standardPixmap(standardPixmap, opt, widget); } -inline int promoted_styleHint(QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const { return QProxyStyle::styleHint(hint, option, widget, returnData); } -inline QRect promoted_subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const { return QProxyStyle::subControlRect(cc, opt, sc, widget); } -inline QRect promoted_subElementRect(QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const { return QProxyStyle::subElementRect(element, option, widget); } -inline void promoted_unpolish(QApplication* app) { QProxyStyle::unpolish(app); } -inline void promoted_unpolish(QWidget* widget) { QProxyStyle::unpolish(widget); } -}; - -class PythonQtWrapper_QProxyStyle : public QObject -{ Q_OBJECT -public: -public slots: -QProxyStyle* new_QProxyStyle(QStyle* baseStyle = 0); -void delete_QProxyStyle(QProxyStyle* obj) { delete obj; } - QStyle* baseStyle(QProxyStyle* theWrappedObject) const; - void drawComplexControl(QProxyStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, QPainter* painter, const QWidget* widget = 0) const; - void drawControl(QProxyStyle* theWrappedObject, QStyle::ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; - void drawItemPixmap(QProxyStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; - void drawItemText(QProxyStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; - void drawPrimitive(QProxyStyle* theWrappedObject, QStyle::PrimitiveElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget = 0) const; - bool event(QProxyStyle* theWrappedObject, QEvent* e); - QPixmap generatedIconPixmap(QProxyStyle* theWrappedObject, QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; - QStyle::SubControl hitTestComplexControl(QProxyStyle* theWrappedObject, QStyle::ComplexControl control, const QStyleOptionComplex* option, const QPoint& pos, const QWidget* widget = 0) const; - QRect itemPixmapRect(QProxyStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const; - QRect itemTextRect(QProxyStyle* theWrappedObject, const QFontMetrics& fm, const QRect& r, int flags, bool enabled, const QString& text) const; - int pixelMetric(QProxyStyle* theWrappedObject, QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; - void polish(QProxyStyle* theWrappedObject, QApplication* app); - void polish(QProxyStyle* theWrappedObject, QPalette& pal); - void polish(QProxyStyle* theWrappedObject, QWidget* widget); - void setBaseStyle(QProxyStyle* theWrappedObject, QStyle* style); - QSize sizeFromContents(QProxyStyle* theWrappedObject, QStyle::ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget) const; - QPalette standardPalette(QProxyStyle* theWrappedObject) const; - QPixmap standardPixmap(QProxyStyle* theWrappedObject, QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget = 0) const; - int styleHint(QProxyStyle* theWrappedObject, QStyle::StyleHint hint, const QStyleOption* option = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; - QRect subControlRect(QProxyStyle* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const; - QRect subElementRect(QProxyStyle* theWrappedObject, QStyle::SubElement element, const QStyleOption* option, const QWidget* widget) const; - void unpolish(QProxyStyle* theWrappedObject, QApplication* app); - void unpolish(QProxyStyle* theWrappedObject, QWidget* widget); -}; - - - - - -class PythonQtShell_QPushButton : public QPushButton -{ -public: - PythonQtShell_QPushButton(QWidget* parent = 0):QPushButton(parent),_wrapper(NULL) {}; - PythonQtShell_QPushButton(const QIcon& icon, const QString& text, QWidget* parent = 0):QPushButton(icon, text, parent),_wrapper(NULL) {}; - PythonQtShell_QPushButton(const QString& text, QWidget* parent = 0):QPushButton(text, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void checkStateSet(); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual bool hitButton(const QPoint& pos) const; -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual void nextCheckState(); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPushButton : public QPushButton -{ public: -inline bool promoted_event(QEvent* e) { return QPushButton::event(e); } -inline void promoted_focusInEvent(QFocusEvent* arg__1) { QPushButton::focusInEvent(arg__1); } -inline void promoted_focusOutEvent(QFocusEvent* arg__1) { QPushButton::focusOutEvent(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QPushButton::keyPressEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QPushButton::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QPushButton : public QObject -{ Q_OBJECT -public: -public slots: -QPushButton* new_QPushButton(QWidget* parent = 0); -QPushButton* new_QPushButton(const QIcon& icon, const QString& text, QWidget* parent = 0); -QPushButton* new_QPushButton(const QString& text, QWidget* parent = 0); -void delete_QPushButton(QPushButton* obj) { delete obj; } - bool autoDefault(QPushButton* theWrappedObject) const; - bool event(QPushButton* theWrappedObject, QEvent* e); - void focusInEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1); - void focusOutEvent(QPushButton* theWrappedObject, QFocusEvent* arg__1); - bool isDefault(QPushButton* theWrappedObject) const; - bool isFlat(QPushButton* theWrappedObject) const; - void keyPressEvent(QPushButton* theWrappedObject, QKeyEvent* arg__1); - QMenu* menu(QPushButton* theWrappedObject) const; - QSize minimumSizeHint(QPushButton* theWrappedObject) const; - void paintEvent(QPushButton* theWrappedObject, QPaintEvent* arg__1); - void setAutoDefault(QPushButton* theWrappedObject, bool arg__1); - void setDefault(QPushButton* theWrappedObject, bool arg__1); - void setFlat(QPushButton* theWrappedObject, bool arg__1); - void setMenu(QPushButton* theWrappedObject, QMenu* menu); - QSize sizeHint(QPushButton* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QQuaternion : public QObject -{ Q_OBJECT -public: -public slots: -QQuaternion* new_QQuaternion(); -QQuaternion* new_QQuaternion(const QVector4D& vector); -QQuaternion* new_QQuaternion(qreal scalar, const QVector3D& vector); -QQuaternion* new_QQuaternion(qreal scalar, qreal xpos, qreal ypos, qreal zpos); -QQuaternion* new_QQuaternion(const QQuaternion& other) { -QQuaternion* a = new QQuaternion(); -*((QQuaternion*)a) = other; -return a; } -void delete_QQuaternion(QQuaternion* obj) { delete obj; } - QQuaternion conjugate(QQuaternion* theWrappedObject) const; - QQuaternion static_QQuaternion_fromAxisAndAngle(const QVector3D& axis, qreal angle); - QQuaternion static_QQuaternion_fromAxisAndAngle(qreal x, qreal y, qreal z, qreal angle); - bool isIdentity(QQuaternion* theWrappedObject) const; - bool isNull(QQuaternion* theWrappedObject) const; - qreal length(QQuaternion* theWrappedObject) const; - qreal lengthSquared(QQuaternion* theWrappedObject) const; - QQuaternion static_QQuaternion_nlerp(const QQuaternion& q1, const QQuaternion& q2, qreal t); - void normalize(QQuaternion* theWrappedObject); - QQuaternion normalized(QQuaternion* theWrappedObject) const; - const QQuaternion __mul__(QQuaternion* theWrappedObject, const QQuaternion& q2); - const QQuaternion __mul__(QQuaternion* theWrappedObject, qreal factor); - QQuaternion* __imul__(QQuaternion* theWrappedObject, const QQuaternion& quaternion); - QQuaternion* __imul__(QQuaternion* theWrappedObject, qreal factor); - const QQuaternion __add__(QQuaternion* theWrappedObject, const QQuaternion& q2); - QQuaternion* __iadd__(QQuaternion* theWrappedObject, const QQuaternion& quaternion); - const QQuaternion __sub__(QQuaternion* theWrappedObject, const QQuaternion& q2); - QQuaternion* __isub__(QQuaternion* theWrappedObject, const QQuaternion& quaternion); - const QQuaternion __div__(QQuaternion* theWrappedObject, qreal divisor); - QQuaternion* __idiv__(QQuaternion* theWrappedObject, qreal divisor); - void writeTo(QQuaternion* theWrappedObject, QDataStream& arg__1); - bool __eq__(QQuaternion* theWrappedObject, const QQuaternion& q2); - void readFrom(QQuaternion* theWrappedObject, QDataStream& arg__1); - QVector3D rotatedVector(QQuaternion* theWrappedObject, const QVector3D& vector) const; - qreal scalar(QQuaternion* theWrappedObject) const; - void setScalar(QQuaternion* theWrappedObject, qreal scalar); - void setVector(QQuaternion* theWrappedObject, const QVector3D& vector); - void setVector(QQuaternion* theWrappedObject, qreal x, qreal y, qreal z); - void setX(QQuaternion* theWrappedObject, qreal x); - void setY(QQuaternion* theWrappedObject, qreal y); - void setZ(QQuaternion* theWrappedObject, qreal z); - QQuaternion static_QQuaternion_slerp(const QQuaternion& q1, const QQuaternion& q2, qreal t); - QVector4D toVector4D(QQuaternion* theWrappedObject) const; - QVector3D vector(QQuaternion* theWrappedObject) const; - qreal x(QQuaternion* theWrappedObject) const; - qreal y(QQuaternion* theWrappedObject) const; - qreal z(QQuaternion* theWrappedObject) const; - QString py_toString(QQuaternion*); - bool __nonzero__(QQuaternion* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QRadialGradient : public QObject -{ Q_OBJECT -public: -public slots: -QRadialGradient* new_QRadialGradient(); -QRadialGradient* new_QRadialGradient(const QPointF& center, qreal radius); -QRadialGradient* new_QRadialGradient(const QPointF& center, qreal radius, const QPointF& focalPoint); -QRadialGradient* new_QRadialGradient(qreal cx, qreal cy, qreal radius); -QRadialGradient* new_QRadialGradient(qreal cx, qreal cy, qreal radius, qreal fx, qreal fy); -QRadialGradient* new_QRadialGradient(const QRadialGradient& other) { -QRadialGradient* a = new QRadialGradient(); -*((QRadialGradient*)a) = other; -return a; } -void delete_QRadialGradient(QRadialGradient* obj) { delete obj; } - QPointF center(QRadialGradient* theWrappedObject) const; - QPointF focalPoint(QRadialGradient* theWrappedObject) const; - qreal radius(QRadialGradient* theWrappedObject) const; - void setCenter(QRadialGradient* theWrappedObject, const QPointF& center); - void setCenter(QRadialGradient* theWrappedObject, qreal x, qreal y); - void setFocalPoint(QRadialGradient* theWrappedObject, const QPointF& focalPoint); - void setFocalPoint(QRadialGradient* theWrappedObject, qreal x, qreal y); - void setRadius(QRadialGradient* theWrappedObject, qreal radius); -}; - - - - - -class PythonQtShell_QRadioButton : public QRadioButton -{ -public: - PythonQtShell_QRadioButton(QWidget* parent = 0):QRadioButton(parent),_wrapper(NULL) {}; - PythonQtShell_QRadioButton(const QString& text, QWidget* parent = 0):QRadioButton(text, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void checkStateSet(); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual bool hitButton(const QPoint& arg__1) const; -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual void nextCheckState(); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QRadioButton : public QRadioButton -{ public: -inline bool promoted_event(QEvent* e) { return QRadioButton::event(e); } -inline bool promoted_hitButton(const QPoint& arg__1) const { return QRadioButton::hitButton(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QRadioButton::mouseMoveEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QRadioButton::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QRadioButton : public QObject -{ Q_OBJECT -public: -public slots: -QRadioButton* new_QRadioButton(QWidget* parent = 0); -QRadioButton* new_QRadioButton(const QString& text, QWidget* parent = 0); -void delete_QRadioButton(QRadioButton* obj) { delete obj; } - bool event(QRadioButton* theWrappedObject, QEvent* e); - bool hitButton(QRadioButton* theWrappedObject, const QPoint& arg__1) const; - void mouseMoveEvent(QRadioButton* theWrappedObject, QMouseEvent* arg__1); - void paintEvent(QRadioButton* theWrappedObject, QPaintEvent* arg__1); - QSize sizeHint(QRadioButton* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QRegExpValidator : public QRegExpValidator -{ -public: - PythonQtShell_QRegExpValidator(QObject* parent):QRegExpValidator(parent),_wrapper(NULL) {}; - PythonQtShell_QRegExpValidator(const QRegExp& rx, QObject* parent):QRegExpValidator(rx, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& arg__1) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual QValidator::State validate(QString& input, int& pos) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QRegExpValidator : public QRegExpValidator -{ public: -inline QValidator::State promoted_validate(QString& input, int& pos) const { return QRegExpValidator::validate(input, pos); } -}; - -class PythonQtWrapper_QRegExpValidator : public QObject -{ Q_OBJECT -public: -public slots: -QRegExpValidator* new_QRegExpValidator(QObject* parent); -QRegExpValidator* new_QRegExpValidator(const QRegExp& rx, QObject* parent); -void delete_QRegExpValidator(QRegExpValidator* obj) { delete obj; } - const QRegExp* regExp(QRegExpValidator* theWrappedObject) const; - void setRegExp(QRegExpValidator* theWrappedObject, const QRegExp& rx); - QValidator::State validate(QRegExpValidator* theWrappedObject, QString& input, int& pos) const; -}; - - - - - -class PythonQtShell_QResizeEvent : public QResizeEvent -{ -public: - PythonQtShell_QResizeEvent(const QSize& size, const QSize& oldSize):QResizeEvent(size, oldSize),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QResizeEvent : public QObject -{ Q_OBJECT -public: -public slots: -QResizeEvent* new_QResizeEvent(const QSize& size, const QSize& oldSize); -void delete_QResizeEvent(QResizeEvent* obj) { delete obj; } - const QSize* oldSize(QResizeEvent* theWrappedObject) const; - const QSize* size(QResizeEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QRubberBand : public QRubberBand -{ -public: - PythonQtShell_QRubberBand(QRubberBand::Shape arg__1, QWidget* arg__2 = 0):QRubberBand(arg__1, arg__2),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QRubberBand : public QRubberBand -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QRubberBand::changeEvent(arg__1); } -inline bool promoted_event(QEvent* e) { return QRubberBand::event(e); } -inline void promoted_moveEvent(QMoveEvent* arg__1) { QRubberBand::moveEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QRubberBand::paintEvent(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QRubberBand::resizeEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* arg__1) { QRubberBand::showEvent(arg__1); } -}; - -class PythonQtWrapper_QRubberBand : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Shape ) -enum Shape{ - Line = QRubberBand::Line, Rectangle = QRubberBand::Rectangle}; -public slots: -QRubberBand* new_QRubberBand(QRubberBand::Shape arg__1, QWidget* arg__2 = 0); -void delete_QRubberBand(QRubberBand* obj) { delete obj; } - void changeEvent(QRubberBand* theWrappedObject, QEvent* arg__1); - bool event(QRubberBand* theWrappedObject, QEvent* e); - void move(QRubberBand* theWrappedObject, const QPoint& p); - void move(QRubberBand* theWrappedObject, int x, int y); - void moveEvent(QRubberBand* theWrappedObject, QMoveEvent* arg__1); - void paintEvent(QRubberBand* theWrappedObject, QPaintEvent* arg__1); - void resize(QRubberBand* theWrappedObject, const QSize& s); - void resize(QRubberBand* theWrappedObject, int w, int h); - void resizeEvent(QRubberBand* theWrappedObject, QResizeEvent* arg__1); - void setGeometry(QRubberBand* theWrappedObject, const QRect& r); - void setGeometry(QRubberBand* theWrappedObject, int x, int y, int w, int h); - QRubberBand::Shape shape(QRubberBand* theWrappedObject) const; - void showEvent(QRubberBand* theWrappedObject, QShowEvent* arg__1); -}; - - - - - -class PythonQtShell_QScrollArea : public QScrollArea -{ -public: - PythonQtShell_QScrollArea(QWidget* parent = 0):QScrollArea(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void scrollContentsBy(int dx, int dy); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool viewportEvent(QEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QScrollArea : public QScrollArea -{ public: -inline bool promoted_event(QEvent* arg__1) { return QScrollArea::event(arg__1); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QScrollArea::eventFilter(arg__1, arg__2); } -inline bool promoted_focusNextPrevChild(bool next) { return QScrollArea::focusNextPrevChild(next); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QScrollArea::resizeEvent(arg__1); } -inline void promoted_scrollContentsBy(int dx, int dy) { QScrollArea::scrollContentsBy(dx, dy); } -}; - -class PythonQtWrapper_QScrollArea : public QObject -{ Q_OBJECT -public: -public slots: -QScrollArea* new_QScrollArea(QWidget* parent = 0); -void delete_QScrollArea(QScrollArea* obj) { delete obj; } - Qt::Alignment alignment(QScrollArea* theWrappedObject) const; - void ensureVisible(QScrollArea* theWrappedObject, int x, int y, int xmargin = 50, int ymargin = 50); - void ensureWidgetVisible(QScrollArea* theWrappedObject, QWidget* childWidget, int xmargin = 50, int ymargin = 50); - bool event(QScrollArea* theWrappedObject, QEvent* arg__1); - bool eventFilter(QScrollArea* theWrappedObject, QObject* arg__1, QEvent* arg__2); - bool focusNextPrevChild(QScrollArea* theWrappedObject, bool next); - void resizeEvent(QScrollArea* theWrappedObject, QResizeEvent* arg__1); - void scrollContentsBy(QScrollArea* theWrappedObject, int dx, int dy); - void setAlignment(QScrollArea* theWrappedObject, Qt::Alignment arg__1); - void setWidget(QScrollArea* theWrappedObject, QWidget* widget); - void setWidgetResizable(QScrollArea* theWrappedObject, bool resizable); - QSize sizeHint(QScrollArea* theWrappedObject) const; - QWidget* takeWidget(QScrollArea* theWrappedObject); - QWidget* widget(QScrollArea* theWrappedObject) const; - bool widgetResizable(QScrollArea* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QScrollBar : public QScrollBar -{ -public: - PythonQtShell_QScrollBar(QWidget* parent = 0):QScrollBar(parent),_wrapper(NULL) {}; - PythonQtShell_QScrollBar(Qt::Orientation arg__1, QWidget* parent = 0):QScrollBar(arg__1, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* ev); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QScrollBar : public QScrollBar -{ public: -inline void promoted_contextMenuEvent(QContextMenuEvent* arg__1) { QScrollBar::contextMenuEvent(arg__1); } -inline bool promoted_event(QEvent* event) { return QScrollBar::event(event); } -inline void promoted_hideEvent(QHideEvent* arg__1) { QScrollBar::hideEvent(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QScrollBar::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QScrollBar::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QScrollBar::mouseReleaseEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QScrollBar::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QScrollBar : public QObject -{ Q_OBJECT -public: -public slots: -QScrollBar* new_QScrollBar(QWidget* parent = 0); -QScrollBar* new_QScrollBar(Qt::Orientation arg__1, QWidget* parent = 0); -void delete_QScrollBar(QScrollBar* obj) { delete obj; } - void contextMenuEvent(QScrollBar* theWrappedObject, QContextMenuEvent* arg__1); - bool event(QScrollBar* theWrappedObject, QEvent* event); - void hideEvent(QScrollBar* theWrappedObject, QHideEvent* arg__1); - void mouseMoveEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QScrollBar* theWrappedObject, QMouseEvent* arg__1); - void paintEvent(QScrollBar* theWrappedObject, QPaintEvent* arg__1); - QSize sizeHint(QScrollBar* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QSessionManager : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RestartHint ) -enum RestartHint{ - RestartIfRunning = QSessionManager::RestartIfRunning, RestartAnyway = QSessionManager::RestartAnyway, RestartImmediately = QSessionManager::RestartImmediately, RestartNever = QSessionManager::RestartNever}; -public slots: - bool allowsErrorInteraction(QSessionManager* theWrappedObject); - bool allowsInteraction(QSessionManager* theWrappedObject); - void cancel(QSessionManager* theWrappedObject); - QStringList discardCommand(QSessionManager* theWrappedObject) const; - bool isPhase2(QSessionManager* theWrappedObject) const; - void release(QSessionManager* theWrappedObject); - void requestPhase2(QSessionManager* theWrappedObject); - QStringList restartCommand(QSessionManager* theWrappedObject) const; - QSessionManager::RestartHint restartHint(QSessionManager* theWrappedObject) const; - QString sessionId(QSessionManager* theWrappedObject) const; - QString sessionKey(QSessionManager* theWrappedObject) const; - void setDiscardCommand(QSessionManager* theWrappedObject, const QStringList& arg__1); - void setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QString& value); - void setManagerProperty(QSessionManager* theWrappedObject, const QString& name, const QStringList& value); - void setRestartCommand(QSessionManager* theWrappedObject, const QStringList& arg__1); - void setRestartHint(QSessionManager* theWrappedObject, QSessionManager::RestartHint arg__1); -}; - - - - - -class PythonQtShell_QShortcut : public QShortcut -{ -public: - PythonQtShell_QShortcut(QWidget* parent):QShortcut(parent),_wrapper(NULL) {}; - PythonQtShell_QShortcut(const QKeySequence& key, QWidget* parent, const char* member = 0, const char* ambiguousMember = 0, Qt::ShortcutContext context = Qt::WindowShortcut):QShortcut(key, parent, member, ambiguousMember, context),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QShortcut : public QShortcut -{ public: -inline bool promoted_event(QEvent* e) { return QShortcut::event(e); } -}; - -class PythonQtWrapper_QShortcut : public QObject -{ Q_OBJECT -public: -public slots: -QShortcut* new_QShortcut(QWidget* parent); -QShortcut* new_QShortcut(const QKeySequence& key, QWidget* parent, const char* member = 0, const char* ambiguousMember = 0, Qt::ShortcutContext context = Qt::WindowShortcut); -void delete_QShortcut(QShortcut* obj) { delete obj; } - bool autoRepeat(QShortcut* theWrappedObject) const; - Qt::ShortcutContext context(QShortcut* theWrappedObject); - bool event(QShortcut* theWrappedObject, QEvent* e); - int id(QShortcut* theWrappedObject) const; - bool isEnabled(QShortcut* theWrappedObject) const; - QKeySequence key(QShortcut* theWrappedObject) const; - QWidget* parentWidget(QShortcut* theWrappedObject) const; - void setAutoRepeat(QShortcut* theWrappedObject, bool on); - void setContext(QShortcut* theWrappedObject, Qt::ShortcutContext context); - void setEnabled(QShortcut* theWrappedObject, bool enable); - void setKey(QShortcut* theWrappedObject, const QKeySequence& key); - void setWhatsThis(QShortcut* theWrappedObject, const QString& text); - QString whatsThis(QShortcut* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QShortcutEvent : public QShortcutEvent -{ -public: - PythonQtShell_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous = false):QShortcutEvent(key, id, ambiguous),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QShortcutEvent : public QObject -{ Q_OBJECT -public: -public slots: -QShortcutEvent* new_QShortcutEvent(const QKeySequence& key, int id, bool ambiguous = false); -void delete_QShortcutEvent(QShortcutEvent* obj) { delete obj; } - bool isAmbiguous(QShortcutEvent* theWrappedObject) const; - const QKeySequence* key(QShortcutEvent* theWrappedObject) const; - int shortcutId(QShortcutEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QShowEvent : public QObject -{ Q_OBJECT -public: -public slots: -QShowEvent* new_QShowEvent(); -void delete_QShowEvent(QShowEvent* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QSizeGrip : public QSizeGrip -{ -public: - PythonQtShell_QSizeGrip(QWidget* parent):QSizeGrip(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* hideEvent); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* mouseEvent); -virtual void moveEvent(QMoveEvent* moveEvent); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* showEvent); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSizeGrip : public QSizeGrip -{ public: -inline bool promoted_event(QEvent* arg__1) { return QSizeGrip::event(arg__1); } -inline bool promoted_eventFilter(QObject* arg__1, QEvent* arg__2) { return QSizeGrip::eventFilter(arg__1, arg__2); } -inline void promoted_hideEvent(QHideEvent* hideEvent) { QSizeGrip::hideEvent(hideEvent); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QSizeGrip::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QSizeGrip::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* mouseEvent) { QSizeGrip::mouseReleaseEvent(mouseEvent); } -inline void promoted_moveEvent(QMoveEvent* moveEvent) { QSizeGrip::moveEvent(moveEvent); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QSizeGrip::paintEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* showEvent) { QSizeGrip::showEvent(showEvent); } -}; - -class PythonQtWrapper_QSizeGrip : public QObject -{ Q_OBJECT -public: -public slots: -QSizeGrip* new_QSizeGrip(QWidget* parent); -void delete_QSizeGrip(QSizeGrip* obj) { delete obj; } - bool event(QSizeGrip* theWrappedObject, QEvent* arg__1); - bool eventFilter(QSizeGrip* theWrappedObject, QObject* arg__1, QEvent* arg__2); - void hideEvent(QSizeGrip* theWrappedObject, QHideEvent* hideEvent); - void mouseMoveEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QSizeGrip* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QSizeGrip* theWrappedObject, QMouseEvent* mouseEvent); - void moveEvent(QSizeGrip* theWrappedObject, QMoveEvent* moveEvent); - void paintEvent(QSizeGrip* theWrappedObject, QPaintEvent* arg__1); - void setVisible(QSizeGrip* theWrappedObject, bool arg__1); - void showEvent(QSizeGrip* theWrappedObject, QShowEvent* showEvent); - QSize sizeHint(QSizeGrip* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QSlider : public QSlider -{ -public: - PythonQtShell_QSlider(QWidget* parent = 0):QSlider(parent),_wrapper(NULL) {}; - PythonQtShell_QSlider(Qt::Orientation orientation, QWidget* parent = 0):QSlider(orientation, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* ev); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* ev); -virtual void mousePressEvent(QMouseEvent* ev); -virtual void mouseReleaseEvent(QMouseEvent* ev); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* ev); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSlider : public QSlider -{ public: -inline bool promoted_event(QEvent* event) { return QSlider::event(event); } -inline void promoted_mouseMoveEvent(QMouseEvent* ev) { QSlider::mouseMoveEvent(ev); } -inline void promoted_mousePressEvent(QMouseEvent* ev) { QSlider::mousePressEvent(ev); } -inline void promoted_mouseReleaseEvent(QMouseEvent* ev) { QSlider::mouseReleaseEvent(ev); } -inline void promoted_paintEvent(QPaintEvent* ev) { QSlider::paintEvent(ev); } -}; - -class PythonQtWrapper_QSlider : public QObject -{ Q_OBJECT -public: -public slots: -QSlider* new_QSlider(QWidget* parent = 0); -QSlider* new_QSlider(Qt::Orientation orientation, QWidget* parent = 0); -void delete_QSlider(QSlider* obj) { delete obj; } - bool event(QSlider* theWrappedObject, QEvent* event); - QSize minimumSizeHint(QSlider* theWrappedObject) const; - void mouseMoveEvent(QSlider* theWrappedObject, QMouseEvent* ev); - void mousePressEvent(QSlider* theWrappedObject, QMouseEvent* ev); - void mouseReleaseEvent(QSlider* theWrappedObject, QMouseEvent* ev); - void paintEvent(QSlider* theWrappedObject, QPaintEvent* ev); - void setTickInterval(QSlider* theWrappedObject, int ti); - void setTickPosition(QSlider* theWrappedObject, QSlider::TickPosition position); - QSize sizeHint(QSlider* theWrappedObject) const; - int tickInterval(QSlider* theWrappedObject) const; - QSlider::TickPosition tickPosition(QSlider* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QSound : public QSound -{ -public: - PythonQtShell_QSound(const QString& filename, QObject* parent = 0):QSound(filename, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QSound : public QObject -{ Q_OBJECT -public: -public slots: -QSound* new_QSound(const QString& filename, QObject* parent = 0); -void delete_QSound(QSound* obj) { delete obj; } - QString fileName(QSound* theWrappedObject) const; - bool static_QSound_isAvailable(); - bool isFinished(QSound* theWrappedObject) const; - int loops(QSound* theWrappedObject) const; - int loopsRemaining(QSound* theWrappedObject) const; - void static_QSound_play(const QString& filename); - void setLoops(QSound* theWrappedObject, int arg__1); -}; - - - - - -class PythonQtShell_QSpacerItem : public QSpacerItem -{ -public: - PythonQtShell_QSpacerItem(int w, int h, QSizePolicy::Policy hData = QSizePolicy::Minimum, QSizePolicy::Policy vData = QSizePolicy::Minimum):QSpacerItem(w, h, hData, vData),_wrapper(NULL) {}; - -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual bool hasHeightForWidth() const; -virtual int heightForWidth(int arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual int minimumHeightForWidth(int arg__1) const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& arg__1); -virtual QSize sizeHint() const; -virtual QSpacerItem* spacerItem(); -virtual QWidget* widget(); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSpacerItem : public QSpacerItem -{ public: -inline Qt::Orientations promoted_expandingDirections() const { return QSpacerItem::expandingDirections(); } -inline QRect promoted_geometry() const { return QSpacerItem::geometry(); } -inline bool promoted_isEmpty() const { return QSpacerItem::isEmpty(); } -inline QSize promoted_maximumSize() const { return QSpacerItem::maximumSize(); } -inline QSize promoted_minimumSize() const { return QSpacerItem::minimumSize(); } -inline void promoted_setGeometry(const QRect& arg__1) { QSpacerItem::setGeometry(arg__1); } -inline QSize promoted_sizeHint() const { return QSpacerItem::sizeHint(); } -inline QSpacerItem* promoted_spacerItem() { return QSpacerItem::spacerItem(); } -}; - -class PythonQtWrapper_QSpacerItem : public QObject -{ Q_OBJECT -public: -public slots: -QSpacerItem* new_QSpacerItem(int w, int h, QSizePolicy::Policy hData = QSizePolicy::Minimum, QSizePolicy::Policy vData = QSizePolicy::Minimum); -void delete_QSpacerItem(QSpacerItem* obj) { delete obj; } - void changeSize(QSpacerItem* theWrappedObject, int w, int h, QSizePolicy::Policy hData = QSizePolicy::Minimum, QSizePolicy::Policy vData = QSizePolicy::Minimum); - Qt::Orientations expandingDirections(QSpacerItem* theWrappedObject) const; - QRect geometry(QSpacerItem* theWrappedObject) const; - bool isEmpty(QSpacerItem* theWrappedObject) const; - QSize maximumSize(QSpacerItem* theWrappedObject) const; - QSize minimumSize(QSpacerItem* theWrappedObject) const; - void setGeometry(QSpacerItem* theWrappedObject, const QRect& arg__1); - QSize sizeHint(QSpacerItem* theWrappedObject) const; - QSpacerItem* spacerItem(QSpacerItem* theWrappedObject); -}; - - - - - -class PythonQtShell_QSpinBox : public QSpinBox -{ -public: - PythonQtShell_QSpinBox(QWidget* parent = 0):QSpinBox(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& str) const; -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void stepBy(int steps); -virtual QAbstractSpinBox::StepEnabled stepEnabled() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual QString textFromValue(int val) const; -virtual void timerEvent(QTimerEvent* event); -virtual QValidator::State validate(QString& input, int& pos) const; -virtual int valueFromText(const QString& text) const; -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSpinBox : public QSpinBox -{ public: -inline bool promoted_event(QEvent* event) { return QSpinBox::event(event); } -inline void promoted_fixup(QString& str) const { QSpinBox::fixup(str); } -inline QString promoted_textFromValue(int val) const { return QSpinBox::textFromValue(val); } -inline QValidator::State promoted_validate(QString& input, int& pos) const { return QSpinBox::validate(input, pos); } -inline int promoted_valueFromText(const QString& text) const { return QSpinBox::valueFromText(text); } -}; - -class PythonQtWrapper_QSpinBox : public QObject -{ Q_OBJECT -public: -public slots: -QSpinBox* new_QSpinBox(QWidget* parent = 0); -void delete_QSpinBox(QSpinBox* obj) { delete obj; } - QString cleanText(QSpinBox* theWrappedObject) const; - bool event(QSpinBox* theWrappedObject, QEvent* event); - void fixup(QSpinBox* theWrappedObject, QString& str) const; - int maximum(QSpinBox* theWrappedObject) const; - int minimum(QSpinBox* theWrappedObject) const; - QString prefix(QSpinBox* theWrappedObject) const; - void setMaximum(QSpinBox* theWrappedObject, int max); - void setMinimum(QSpinBox* theWrappedObject, int min); - void setPrefix(QSpinBox* theWrappedObject, const QString& prefix); - void setRange(QSpinBox* theWrappedObject, int min, int max); - void setSingleStep(QSpinBox* theWrappedObject, int val); - void setSuffix(QSpinBox* theWrappedObject, const QString& suffix); - int singleStep(QSpinBox* theWrappedObject) const; - QString suffix(QSpinBox* theWrappedObject) const; - QString textFromValue(QSpinBox* theWrappedObject, int val) const; - QValidator::State validate(QSpinBox* theWrappedObject, QString& input, int& pos) const; - int value(QSpinBox* theWrappedObject) const; - int valueFromText(QSpinBox* theWrappedObject, const QString& text) const; -}; - - - - - -class PythonQtShell_QSplashScreen : public QSplashScreen -{ -public: - PythonQtShell_QSplashScreen(QWidget* parent, const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0):QSplashScreen(parent, pixmap, f),_wrapper(NULL) {}; - PythonQtShell_QSplashScreen(const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0):QSplashScreen(pixmap, f),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void drawContents(QPainter* painter); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSplashScreen : public QSplashScreen -{ public: -inline void promoted_drawContents(QPainter* painter) { QSplashScreen::drawContents(painter); } -inline bool promoted_event(QEvent* e) { return QSplashScreen::event(e); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QSplashScreen::mousePressEvent(arg__1); } -}; - -class PythonQtWrapper_QSplashScreen : public QObject -{ Q_OBJECT -public: -public slots: -QSplashScreen* new_QSplashScreen(QWidget* parent, const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0); -QSplashScreen* new_QSplashScreen(const QPixmap& pixmap = QPixmap(), Qt::WindowFlags f = 0); -void delete_QSplashScreen(QSplashScreen* obj) { delete obj; } - void drawContents(QSplashScreen* theWrappedObject, QPainter* painter); - bool event(QSplashScreen* theWrappedObject, QEvent* e); - void finish(QSplashScreen* theWrappedObject, QWidget* w); - void mousePressEvent(QSplashScreen* theWrappedObject, QMouseEvent* arg__1); - const QPixmap pixmap(QSplashScreen* theWrappedObject) const; - void setPixmap(QSplashScreen* theWrappedObject, const QPixmap& pixmap); -}; - - - - - -class PythonQtShell_QSplitter : public QSplitter -{ -public: - PythonQtShell_QSplitter(QWidget* parent = 0):QSplitter(parent),_wrapper(NULL) {}; - PythonQtShell_QSplitter(Qt::Orientation arg__1, QWidget* parent = 0):QSplitter(arg__1, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual QSplitterHandle* createHandle(); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSplitter : public QSplitter -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QSplitter::changeEvent(arg__1); } -inline void promoted_childEvent(QChildEvent* arg__1) { QSplitter::childEvent(arg__1); } -inline QSplitterHandle* promoted_createHandle() { return QSplitter::createHandle(); } -inline bool promoted_event(QEvent* arg__1) { return QSplitter::event(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QSplitter::resizeEvent(arg__1); } -}; - -class PythonQtWrapper_QSplitter : public QObject -{ Q_OBJECT -public: -public slots: -QSplitter* new_QSplitter(QWidget* parent = 0); -QSplitter* new_QSplitter(Qt::Orientation arg__1, QWidget* parent = 0); -void delete_QSplitter(QSplitter* obj) { delete obj; } - void addWidget(QSplitter* theWrappedObject, QWidget* widget); - void changeEvent(QSplitter* theWrappedObject, QEvent* arg__1); - void childEvent(QSplitter* theWrappedObject, QChildEvent* arg__1); - bool childrenCollapsible(QSplitter* theWrappedObject) const; - int count(QSplitter* theWrappedObject) const; - QSplitterHandle* createHandle(QSplitter* theWrappedObject); - bool event(QSplitter* theWrappedObject, QEvent* arg__1); - void getRange(QSplitter* theWrappedObject, int index, int* arg__2, int* arg__3) const; - QSplitterHandle* handle(QSplitter* theWrappedObject, int index) const; - int handleWidth(QSplitter* theWrappedObject) const; - int indexOf(QSplitter* theWrappedObject, QWidget* w) const; - void insertWidget(QSplitter* theWrappedObject, int index, QWidget* widget); - bool isCollapsible(QSplitter* theWrappedObject, int index) const; - QSize minimumSizeHint(QSplitter* theWrappedObject) const; - bool opaqueResize(QSplitter* theWrappedObject) const; - void writeTo(QSplitter* theWrappedObject, QTextStream& arg__1); - void readFrom(QSplitter* theWrappedObject, QTextStream& arg__1); - Qt::Orientation orientation(QSplitter* theWrappedObject) const; - void refresh(QSplitter* theWrappedObject); - void resizeEvent(QSplitter* theWrappedObject, QResizeEvent* arg__1); - bool restoreState(QSplitter* theWrappedObject, const QByteArray& state); - QByteArray saveState(QSplitter* theWrappedObject) const; - void setChildrenCollapsible(QSplitter* theWrappedObject, bool arg__1); - void setCollapsible(QSplitter* theWrappedObject, int index, bool arg__2); - void setHandleWidth(QSplitter* theWrappedObject, int arg__1); - void setOpaqueResize(QSplitter* theWrappedObject, bool opaque = true); - void setOrientation(QSplitter* theWrappedObject, Qt::Orientation arg__1); - void setSizes(QSplitter* theWrappedObject, const QList& list); - void setStretchFactor(QSplitter* theWrappedObject, int index, int stretch); - QSize sizeHint(QSplitter* theWrappedObject) const; - QList sizes(QSplitter* theWrappedObject) const; - QWidget* widget(QSplitter* theWrappedObject, int index) const; -}; - - - - - -class PythonQtShell_QSplitterHandle : public QSplitterHandle -{ -public: - PythonQtShell_QSplitterHandle(Qt::Orientation o, QSplitter* parent):QSplitterHandle(o, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSplitterHandle : public QSplitterHandle -{ public: -inline bool promoted_event(QEvent* arg__1) { return QSplitterHandle::event(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QSplitterHandle::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QSplitterHandle::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QSplitterHandle::mouseReleaseEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QSplitterHandle::paintEvent(arg__1); } -}; - -class PythonQtWrapper_QSplitterHandle : public QObject -{ Q_OBJECT -public: -public slots: -QSplitterHandle* new_QSplitterHandle(Qt::Orientation o, QSplitter* parent); -void delete_QSplitterHandle(QSplitterHandle* obj) { delete obj; } - bool event(QSplitterHandle* theWrappedObject, QEvent* arg__1); - void mouseMoveEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QSplitterHandle* theWrappedObject, QMouseEvent* arg__1); - bool opaqueResize(QSplitterHandle* theWrappedObject) const; - Qt::Orientation orientation(QSplitterHandle* theWrappedObject) const; - void paintEvent(QSplitterHandle* theWrappedObject, QPaintEvent* arg__1); - void setOrientation(QSplitterHandle* theWrappedObject, Qt::Orientation o); - QSize sizeHint(QSplitterHandle* theWrappedObject) const; - QSplitter* splitter(QSplitterHandle* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QStackedLayout : public QStackedLayout -{ -public: - PythonQtShell_QStackedLayout():QStackedLayout(),_wrapper(NULL) {}; - PythonQtShell_QStackedLayout(QLayout* parentLayout):QStackedLayout(parentLayout),_wrapper(NULL) {}; - PythonQtShell_QStackedLayout(QWidget* parent):QStackedLayout(parent),_wrapper(NULL) {}; - -virtual void addItem(QLayoutItem* item); -virtual void childEvent(QChildEvent* e); -virtual int count() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual Qt::Orientations expandingDirections() const; -virtual QRect geometry() const; -virtual int indexOf(QWidget* arg__1) const; -virtual void invalidate(); -virtual bool isEmpty() const; -virtual QLayoutItem* itemAt(int arg__1) const; -virtual QLayout* layout(); -virtual QSize maximumSize() const; -virtual QSize minimumSize() const; -virtual void setGeometry(const QRect& rect); -virtual QLayoutItem* takeAt(int arg__1); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStackedLayout : public QStackedLayout -{ public: -inline void promoted_addItem(QLayoutItem* item) { QStackedLayout::addItem(item); } -inline int promoted_count() const { return QStackedLayout::count(); } -inline QLayoutItem* promoted_itemAt(int arg__1) const { return QStackedLayout::itemAt(arg__1); } -inline QSize promoted_minimumSize() const { return QStackedLayout::minimumSize(); } -inline void promoted_setGeometry(const QRect& rect) { QStackedLayout::setGeometry(rect); } -inline QLayoutItem* promoted_takeAt(int arg__1) { return QStackedLayout::takeAt(arg__1); } -}; - -class PythonQtWrapper_QStackedLayout : public QObject -{ Q_OBJECT -public: -public slots: -QStackedLayout* new_QStackedLayout(); -QStackedLayout* new_QStackedLayout(QLayout* parentLayout); -QStackedLayout* new_QStackedLayout(QWidget* parent); -void delete_QStackedLayout(QStackedLayout* obj) { delete obj; } - void addItem(QStackedLayout* theWrappedObject, QLayoutItem* item); - int addWidget(QStackedLayout* theWrappedObject, QWidget* w); - int count(QStackedLayout* theWrappedObject) const; - int currentIndex(QStackedLayout* theWrappedObject) const; - QWidget* currentWidget(QStackedLayout* theWrappedObject) const; - int insertWidget(QStackedLayout* theWrappedObject, int index, QWidget* w); - QLayoutItem* itemAt(QStackedLayout* theWrappedObject, int arg__1) const; - QSize minimumSize(QStackedLayout* theWrappedObject) const; - void setGeometry(QStackedLayout* theWrappedObject, const QRect& rect); - void setStackingMode(QStackedLayout* theWrappedObject, QStackedLayout::StackingMode stackingMode); - QSize sizeHint(QStackedLayout* theWrappedObject) const; - QStackedLayout::StackingMode stackingMode(QStackedLayout* theWrappedObject) const; - QLayoutItem* takeAt(QStackedLayout* theWrappedObject, int arg__1); - QWidget* widget(QStackedLayout* theWrappedObject); - QWidget* widget(QStackedLayout* theWrappedObject, int arg__1) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp deleted file mode 100644 index 766bf477f..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp +++ /dev/null @@ -1,5394 +0,0 @@ -#include "com_trolltech_qt_gui7.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QStackedWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::actionEvent(arg__1); -} -void PythonQtShell_QStackedWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::changeEvent(arg__1); -} -void PythonQtShell_QStackedWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::childEvent(arg__1); -} -void PythonQtShell_QStackedWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::closeEvent(arg__1); -} -void PythonQtShell_QStackedWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QStackedWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::customEvent(arg__1); -} -int PythonQtShell_QStackedWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::devType(); -} -void PythonQtShell_QStackedWidget::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::dragEnterEvent(arg__1); -} -void PythonQtShell_QStackedWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::dragLeaveEvent(arg__1); -} -void PythonQtShell_QStackedWidget::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::dragMoveEvent(arg__1); -} -void PythonQtShell_QStackedWidget::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::dropEvent(arg__1); -} -void PythonQtShell_QStackedWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::enterEvent(arg__1); -} -bool PythonQtShell_QStackedWidget::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::event(e); -} -bool PythonQtShell_QStackedWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QStackedWidget::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::focusInEvent(arg__1); -} -bool PythonQtShell_QStackedWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::focusNextPrevChild(next); -} -void PythonQtShell_QStackedWidget::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::focusOutEvent(arg__1); -} -int PythonQtShell_QStackedWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::heightForWidth(arg__1); -} -void PythonQtShell_QStackedWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::hideEvent(arg__1); -} -void PythonQtShell_QStackedWidget::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QStackedWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::inputMethodQuery(arg__1); -} -void PythonQtShell_QStackedWidget::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::keyPressEvent(arg__1); -} -void PythonQtShell_QStackedWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QStackedWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::languageChange(); -} -void PythonQtShell_QStackedWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::leaveEvent(arg__1); -} -int PythonQtShell_QStackedWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::metric(arg__1); -} -QSize PythonQtShell_QStackedWidget::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::minimumSizeHint(); -} -void PythonQtShell_QStackedWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QStackedWidget::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::mouseMoveEvent(arg__1); -} -void PythonQtShell_QStackedWidget::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::mousePressEvent(arg__1); -} -void PythonQtShell_QStackedWidget::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QStackedWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QStackedWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStackedWidget::paintEngine(); -} -void PythonQtShell_QStackedWidget::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::paintEvent(arg__1); -} -void PythonQtShell_QStackedWidget::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::resizeEvent(arg__1); -} -void PythonQtShell_QStackedWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::showEvent(arg__1); -} -void PythonQtShell_QStackedWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::tabletEvent(arg__1); -} -void PythonQtShell_QStackedWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::timerEvent(arg__1); -} -void PythonQtShell_QStackedWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStackedWidget::wheelEvent(arg__1); -} -QStackedWidget* PythonQtWrapper_QStackedWidget::new_QStackedWidget(QWidget* parent) -{ -return new PythonQtShell_QStackedWidget(parent); } - -int PythonQtWrapper_QStackedWidget::addWidget(QStackedWidget* theWrappedObject, QWidget* w) -{ - return ( theWrappedObject->addWidget(w)); -} - -int PythonQtWrapper_QStackedWidget::count(QStackedWidget* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QStackedWidget::currentIndex(QStackedWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -QWidget* PythonQtWrapper_QStackedWidget::currentWidget(QStackedWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentWidget()); -} - -bool PythonQtWrapper_QStackedWidget::event(QStackedWidget* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QStackedWidget*)theWrappedObject)->promoted_event(e)); -} - -int PythonQtWrapper_QStackedWidget::indexOf(QStackedWidget* theWrappedObject, QWidget* arg__1) const -{ - return ( theWrappedObject->indexOf(arg__1)); -} - -int PythonQtWrapper_QStackedWidget::insertWidget(QStackedWidget* theWrappedObject, int index, QWidget* w) -{ - return ( theWrappedObject->insertWidget(index, w)); -} - -void PythonQtWrapper_QStackedWidget::removeWidget(QStackedWidget* theWrappedObject, QWidget* w) -{ - ( theWrappedObject->removeWidget(w)); -} - -QWidget* PythonQtWrapper_QStackedWidget::widget(QStackedWidget* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->widget(arg__1)); -} - - - -QStandardItem* PythonQtShell_QStandardItem::clone() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStandardItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStandardItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); - } else { - returnValue = *((QStandardItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItem::clone(); -} -QVariant PythonQtShell_QStandardItem::data(int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItem::data(role); -} -bool PythonQtShell_QStandardItem::__lt__(const QStandardItem& other) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QStandardItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItem::operator<(other); -} -void PythonQtShell_QStandardItem::read(QDataStream& in) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&in}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItem::read(in); -} -void PythonQtShell_QStandardItem::setData(const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItem::setData(value, role); -} -int PythonQtShell_QStandardItem::type() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItem::type(); -} -void PythonQtShell_QStandardItem::write(QDataStream& out) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&out}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItem::write(out); -} -QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem() -{ -return new PythonQtShell_QStandardItem(); } - -QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(const QIcon& icon, const QString& text) -{ -return new PythonQtShell_QStandardItem(icon, text); } - -QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(const QString& text) -{ -return new PythonQtShell_QStandardItem(text); } - -QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(int rows, int columns) -{ -return new PythonQtShell_QStandardItem(rows, columns); } - -void PythonQtWrapper_QStandardItem::delete_QStandardItem(QStandardItem* obj) { - if (obj && obj->parent()) { - obj->parent()->removeRow(obj->row()); - } else if (obj) { - delete obj; - } -} - -QString PythonQtWrapper_QStandardItem::accessibleDescription(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->accessibleDescription()); -} - -QString PythonQtWrapper_QStandardItem::accessibleText(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->accessibleText()); -} - -void PythonQtWrapper_QStandardItem::appendColumn(QStandardItem* theWrappedObject, const QList& items) -{ - ( theWrappedObject->appendColumn(items)); -} - -void PythonQtWrapper_QStandardItem::appendRow(QStandardItem* theWrappedObject, QStandardItem* item) -{ - ( theWrappedObject->appendRow(item)); -} - -void PythonQtWrapper_QStandardItem::appendRow(QStandardItem* theWrappedObject, const QList& items) -{ - ( theWrappedObject->appendRow(items)); -} - -void PythonQtWrapper_QStandardItem::appendRows(QStandardItem* theWrappedObject, const QList& items) -{ - ( theWrappedObject->appendRows(items)); -} - -QBrush PythonQtWrapper_QStandardItem::background(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->background()); -} - -Qt::CheckState PythonQtWrapper_QStandardItem::checkState(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->checkState()); -} - -QStandardItem* PythonQtWrapper_QStandardItem::child(QStandardItem* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->child(row, column)); -} - -QStandardItem* PythonQtWrapper_QStandardItem::clone(QStandardItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_clone()); -} - -int PythonQtWrapper_QStandardItem::column(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->column()); -} - -int PythonQtWrapper_QStandardItem::columnCount(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->columnCount()); -} - -QVariant PythonQtWrapper_QStandardItem::data(QStandardItem* theWrappedObject, int role) const -{ - return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_data(role)); -} - -Qt::ItemFlags PythonQtWrapper_QStandardItem::flags(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->flags()); -} - -QFont PythonQtWrapper_QStandardItem::font(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -QBrush PythonQtWrapper_QStandardItem::foreground(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->foreground()); -} - -bool PythonQtWrapper_QStandardItem::hasChildren(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->hasChildren()); -} - -QIcon PythonQtWrapper_QStandardItem::icon(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -QModelIndex PythonQtWrapper_QStandardItem::index(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->index()); -} - -void PythonQtWrapper_QStandardItem::insertColumn(QStandardItem* theWrappedObject, int column, const QList& items) -{ - ( theWrappedObject->insertColumn(column, items)); -} - -void PythonQtWrapper_QStandardItem::insertColumns(QStandardItem* theWrappedObject, int column, int count) -{ - ( theWrappedObject->insertColumns(column, count)); -} - -void PythonQtWrapper_QStandardItem::insertRow(QStandardItem* theWrappedObject, int row, QStandardItem* item) -{ - ( theWrappedObject->insertRow(row, item)); -} - -void PythonQtWrapper_QStandardItem::insertRow(QStandardItem* theWrappedObject, int row, const QList& items) -{ - ( theWrappedObject->insertRow(row, items)); -} - -void PythonQtWrapper_QStandardItem::insertRows(QStandardItem* theWrappedObject, int row, const QList& items) -{ - ( theWrappedObject->insertRows(row, items)); -} - -void PythonQtWrapper_QStandardItem::insertRows(QStandardItem* theWrappedObject, int row, int count) -{ - ( theWrappedObject->insertRows(row, count)); -} - -bool PythonQtWrapper_QStandardItem::isCheckable(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->isCheckable()); -} - -bool PythonQtWrapper_QStandardItem::isDragEnabled(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->isDragEnabled()); -} - -bool PythonQtWrapper_QStandardItem::isDropEnabled(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->isDropEnabled()); -} - -bool PythonQtWrapper_QStandardItem::isEditable(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->isEditable()); -} - -bool PythonQtWrapper_QStandardItem::isEnabled(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->isEnabled()); -} - -bool PythonQtWrapper_QStandardItem::isSelectable(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->isSelectable()); -} - -bool PythonQtWrapper_QStandardItem::isTristate(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->isTristate()); -} - -QStandardItemModel* PythonQtWrapper_QStandardItem::model(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -void PythonQtWrapper_QStandardItem::writeTo(QStandardItem* theWrappedObject, QDataStream& out) -{ - out << (*theWrappedObject); -} - -void PythonQtWrapper_QStandardItem::readFrom(QStandardItem* theWrappedObject, QDataStream& in) -{ - in >> (*theWrappedObject); -} - -QStandardItem* PythonQtWrapper_QStandardItem::parent(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->parent()); -} - -void PythonQtWrapper_QStandardItem::removeColumn(QStandardItem* theWrappedObject, int column) -{ - ( theWrappedObject->removeColumn(column)); -} - -void PythonQtWrapper_QStandardItem::removeColumns(QStandardItem* theWrappedObject, int column, int count) -{ - ( theWrappedObject->removeColumns(column, count)); -} - -void PythonQtWrapper_QStandardItem::removeRow(QStandardItem* theWrappedObject, int row) -{ - ( theWrappedObject->removeRow(row)); -} - -void PythonQtWrapper_QStandardItem::removeRows(QStandardItem* theWrappedObject, int row, int count) -{ - ( theWrappedObject->removeRows(row, count)); -} - -int PythonQtWrapper_QStandardItem::row(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->row()); -} - -int PythonQtWrapper_QStandardItem::rowCount(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->rowCount()); -} - -void PythonQtWrapper_QStandardItem::setAccessibleDescription(QStandardItem* theWrappedObject, const QString& accessibleDescription) -{ - ( theWrappedObject->setAccessibleDescription(accessibleDescription)); -} - -void PythonQtWrapper_QStandardItem::setAccessibleText(QStandardItem* theWrappedObject, const QString& accessibleText) -{ - ( theWrappedObject->setAccessibleText(accessibleText)); -} - -void PythonQtWrapper_QStandardItem::setBackground(QStandardItem* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBackground(brush)); -} - -void PythonQtWrapper_QStandardItem::setCheckState(QStandardItem* theWrappedObject, Qt::CheckState checkState) -{ - ( theWrappedObject->setCheckState(checkState)); -} - -void PythonQtWrapper_QStandardItem::setCheckable(QStandardItem* theWrappedObject, bool checkable) -{ - ( theWrappedObject->setCheckable(checkable)); -} - -void PythonQtWrapper_QStandardItem::setChild(QStandardItem* theWrappedObject, int row, QStandardItem* item) -{ - ( theWrappedObject->setChild(row, item)); -} - -void PythonQtWrapper_QStandardItem::setChild(QStandardItem* theWrappedObject, int row, int column, QStandardItem* item) -{ - ( theWrappedObject->setChild(row, column, item)); -} - -void PythonQtWrapper_QStandardItem::setColumnCount(QStandardItem* theWrappedObject, int columns) -{ - ( theWrappedObject->setColumnCount(columns)); -} - -void PythonQtWrapper_QStandardItem::setData(QStandardItem* theWrappedObject, const QVariant& value, int role) -{ - ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_setData(value, role)); -} - -void PythonQtWrapper_QStandardItem::setDragEnabled(QStandardItem* theWrappedObject, bool dragEnabled) -{ - ( theWrappedObject->setDragEnabled(dragEnabled)); -} - -void PythonQtWrapper_QStandardItem::setDropEnabled(QStandardItem* theWrappedObject, bool dropEnabled) -{ - ( theWrappedObject->setDropEnabled(dropEnabled)); -} - -void PythonQtWrapper_QStandardItem::setEditable(QStandardItem* theWrappedObject, bool editable) -{ - ( theWrappedObject->setEditable(editable)); -} - -void PythonQtWrapper_QStandardItem::setEnabled(QStandardItem* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setEnabled(enabled)); -} - -void PythonQtWrapper_QStandardItem::setFlags(QStandardItem* theWrappedObject, Qt::ItemFlags flags) -{ - ( theWrappedObject->setFlags(flags)); -} - -void PythonQtWrapper_QStandardItem::setFont(QStandardItem* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QStandardItem::setForeground(QStandardItem* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setForeground(brush)); -} - -void PythonQtWrapper_QStandardItem::setIcon(QStandardItem* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setIcon(icon)); -} - -void PythonQtWrapper_QStandardItem::setRowCount(QStandardItem* theWrappedObject, int rows) -{ - ( theWrappedObject->setRowCount(rows)); -} - -void PythonQtWrapper_QStandardItem::setSelectable(QStandardItem* theWrappedObject, bool selectable) -{ - ( theWrappedObject->setSelectable(selectable)); -} - -void PythonQtWrapper_QStandardItem::setSizeHint(QStandardItem* theWrappedObject, const QSize& sizeHint) -{ - ( theWrappedObject->setSizeHint(sizeHint)); -} - -void PythonQtWrapper_QStandardItem::setStatusTip(QStandardItem* theWrappedObject, const QString& statusTip) -{ - ( theWrappedObject->setStatusTip(statusTip)); -} - -void PythonQtWrapper_QStandardItem::setText(QStandardItem* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -void PythonQtWrapper_QStandardItem::setTextAlignment(QStandardItem* theWrappedObject, Qt::Alignment textAlignment) -{ - ( theWrappedObject->setTextAlignment(textAlignment)); -} - -void PythonQtWrapper_QStandardItem::setToolTip(QStandardItem* theWrappedObject, const QString& toolTip) -{ - ( theWrappedObject->setToolTip(toolTip)); -} - -void PythonQtWrapper_QStandardItem::setTristate(QStandardItem* theWrappedObject, bool tristate) -{ - ( theWrappedObject->setTristate(tristate)); -} - -void PythonQtWrapper_QStandardItem::setWhatsThis(QStandardItem* theWrappedObject, const QString& whatsThis) -{ - ( theWrappedObject->setWhatsThis(whatsThis)); -} - -QSize PythonQtWrapper_QStandardItem::sizeHint(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -void PythonQtWrapper_QStandardItem::sortChildren(QStandardItem* theWrappedObject, int column, Qt::SortOrder order) -{ - ( theWrappedObject->sortChildren(column, order)); -} - -QString PythonQtWrapper_QStandardItem::statusTip(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->statusTip()); -} - -QStandardItem* PythonQtWrapper_QStandardItem::takeChild(QStandardItem* theWrappedObject, int row, int column) -{ - return ( theWrappedObject->takeChild(row, column)); -} - -QList PythonQtWrapper_QStandardItem::takeColumn(QStandardItem* theWrappedObject, int column) -{ - return ( theWrappedObject->takeColumn(column)); -} - -QList PythonQtWrapper_QStandardItem::takeRow(QStandardItem* theWrappedObject, int row) -{ - return ( theWrappedObject->takeRow(row)); -} - -QString PythonQtWrapper_QStandardItem::text(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -Qt::Alignment PythonQtWrapper_QStandardItem::textAlignment(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->textAlignment()); -} - -QString PythonQtWrapper_QStandardItem::toolTip(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - -int PythonQtWrapper_QStandardItem::type(QStandardItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_type()); -} - -QString PythonQtWrapper_QStandardItem::whatsThis(QStandardItem* theWrappedObject) const -{ - return ( theWrappedObject->whatsThis()); -} - - - -QModelIndex PythonQtShell_QStandardItemModel::buddy(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::buddy(index); -} -bool PythonQtShell_QStandardItemModel::canFetchMore(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::canFetchMore(parent); -} -void PythonQtShell_QStandardItemModel::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItemModel::childEvent(arg__1); -} -int PythonQtShell_QStandardItemModel::columnCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::columnCount(parent); -} -void PythonQtShell_QStandardItemModel::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItemModel::customEvent(arg__1); -} -QVariant PythonQtShell_QStandardItemModel::data(const QModelIndex& index, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&index, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::data(index, role); -} -bool PythonQtShell_QStandardItemModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::dropMimeData(data, action, row, column, parent); -} -bool PythonQtShell_QStandardItemModel::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::event(arg__1); -} -bool PythonQtShell_QStandardItemModel::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QStandardItemModel::fetchMore(const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItemModel::fetchMore(parent); -} -Qt::ItemFlags PythonQtShell_QStandardItemModel::flags(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); - } else { - returnValue = *((Qt::ItemFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::flags(index); -} -bool PythonQtShell_QStandardItemModel::hasChildren(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasChildren"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasChildren", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::hasChildren(parent); -} -QVariant PythonQtShell_QStandardItemModel::headerData(int section, Qt::Orientation orientation, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::headerData(section, orientation, role); -} -QModelIndex PythonQtShell_QStandardItemModel::index(int row, int column, const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QModelIndex returnValue; - void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::index(row, column, parent); -} -bool PythonQtShell_QStandardItemModel::insertColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::insertColumns(column, count, parent); -} -bool PythonQtShell_QStandardItemModel::insertRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::insertRows(row, count, parent); -} -QMap PythonQtShell_QStandardItemModel::itemData(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMap returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); - } else { - returnValue = *((QMap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::itemData(index); -} -QList PythonQtShell_QStandardItemModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - QList returnValue; - void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::match(start, role, value, hits, flags); -} -QMimeData* PythonQtShell_QStandardItemModel::mimeData(const QList& indexes) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::mimeData(indexes); -} -QStringList PythonQtShell_QStandardItemModel::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::mimeTypes(); -} -QModelIndex PythonQtShell_QStandardItemModel::parent(const QModelIndex& child) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("parent", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::parent(child); -} -bool PythonQtShell_QStandardItemModel::removeColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::removeColumns(column, count, parent); -} -bool PythonQtShell_QStandardItemModel::removeRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::removeRows(row, count, parent); -} -void PythonQtShell_QStandardItemModel::revert() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItemModel::revert(); -} -int PythonQtShell_QStandardItemModel::rowCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::rowCount(parent); -} -bool PythonQtShell_QStandardItemModel::setData(const QModelIndex& index, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::setData(index, value, role); -} -bool PythonQtShell_QStandardItemModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::setHeaderData(section, orientation, value, role); -} -bool PythonQtShell_QStandardItemModel::setItemData(const QModelIndex& index, const QMap& roles) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::setItemData(index, roles); -} -void PythonQtShell_QStandardItemModel::sort(int column, Qt::SortOrder order) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&column, (void*)&order}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItemModel::sort(column, order); -} -QSize PythonQtShell_QStandardItemModel::span(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::span(index); -} -bool PythonQtShell_QStandardItemModel::submit() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::submit(); -} -Qt::DropActions PythonQtShell_QStandardItemModel::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStandardItemModel::supportedDropActions(); -} -void PythonQtShell_QStandardItemModel::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStandardItemModel::timerEvent(arg__1); -} -QStandardItemModel* PythonQtWrapper_QStandardItemModel::new_QStandardItemModel(QObject* parent) -{ -return new PythonQtShell_QStandardItemModel(parent); } - -QStandardItemModel* PythonQtWrapper_QStandardItemModel::new_QStandardItemModel(int rows, int columns, QObject* parent) -{ -return new PythonQtShell_QStandardItemModel(rows, columns, parent); } - -void PythonQtWrapper_QStandardItemModel::appendColumn(QStandardItemModel* theWrappedObject, const QList& items) -{ - ( theWrappedObject->appendColumn(items)); -} - -void PythonQtWrapper_QStandardItemModel::appendRow(QStandardItemModel* theWrappedObject, QStandardItem* item) -{ - ( theWrappedObject->appendRow(item)); -} - -void PythonQtWrapper_QStandardItemModel::appendRow(QStandardItemModel* theWrappedObject, const QList& items) -{ - ( theWrappedObject->appendRow(items)); -} - -void PythonQtWrapper_QStandardItemModel::clear(QStandardItemModel* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -int PythonQtWrapper_QStandardItemModel::columnCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_columnCount(parent)); -} - -QVariant PythonQtWrapper_QStandardItemModel::data(QStandardItemModel* theWrappedObject, const QModelIndex& index, int role) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_data(index, role)); -} - -bool PythonQtWrapper_QStandardItemModel::dropMimeData(QStandardItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); -} - -QList PythonQtWrapper_QStandardItemModel::findItems(QStandardItemModel* theWrappedObject, const QString& text, Qt::MatchFlags flags, int column) const -{ - return ( theWrappedObject->findItems(text, flags, column)); -} - -Qt::ItemFlags PythonQtWrapper_QStandardItemModel::flags(QStandardItemModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_flags(index)); -} - -bool PythonQtWrapper_QStandardItemModel::hasChildren(QStandardItemModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_hasChildren(parent)); -} - -QVariant PythonQtWrapper_QStandardItemModel::headerData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_headerData(section, orientation, role)); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::horizontalHeaderItem(QStandardItemModel* theWrappedObject, int column) const -{ - return ( theWrappedObject->horizontalHeaderItem(column)); -} - -QModelIndex PythonQtWrapper_QStandardItemModel::index(QStandardItemModel* theWrappedObject, int row, int column, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_index(row, column, parent)); -} - -QModelIndex PythonQtWrapper_QStandardItemModel::indexFromItem(QStandardItemModel* theWrappedObject, const QStandardItem* item) const -{ - return ( theWrappedObject->indexFromItem(item)); -} - -void PythonQtWrapper_QStandardItemModel::insertColumn(QStandardItemModel* theWrappedObject, int column, const QList& items) -{ - ( theWrappedObject->insertColumn(column, items)); -} - -bool PythonQtWrapper_QStandardItemModel::insertColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_insertColumns(column, count, parent)); -} - -void PythonQtWrapper_QStandardItemModel::insertRow(QStandardItemModel* theWrappedObject, int row, QStandardItem* item) -{ - ( theWrappedObject->insertRow(row, item)); -} - -void PythonQtWrapper_QStandardItemModel::insertRow(QStandardItemModel* theWrappedObject, int row, const QList& items) -{ - ( theWrappedObject->insertRow(row, items)); -} - -bool PythonQtWrapper_QStandardItemModel::insertRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_insertRows(row, count, parent)); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::invisibleRootItem(QStandardItemModel* theWrappedObject) const -{ - return ( theWrappedObject->invisibleRootItem()); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::item(QStandardItemModel* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->item(row, column)); -} - -QMap PythonQtWrapper_QStandardItemModel::itemData(QStandardItemModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_itemData(index)); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::itemFromIndex(QStandardItemModel* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->itemFromIndex(index)); -} - -const QStandardItem* PythonQtWrapper_QStandardItemModel::itemPrototype(QStandardItemModel* theWrappedObject) const -{ - return ( theWrappedObject->itemPrototype()); -} - -QMimeData* PythonQtWrapper_QStandardItemModel::mimeData(QStandardItemModel* theWrappedObject, const QList& indexes) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_mimeData(indexes)); -} - -QStringList PythonQtWrapper_QStandardItemModel::mimeTypes(QStandardItemModel* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_mimeTypes()); -} - -QModelIndex PythonQtWrapper_QStandardItemModel::parent(QStandardItemModel* theWrappedObject, const QModelIndex& child) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_parent(child)); -} - -bool PythonQtWrapper_QStandardItemModel::removeColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_removeColumns(column, count, parent)); -} - -bool PythonQtWrapper_QStandardItemModel::removeRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_removeRows(row, count, parent)); -} - -int PythonQtWrapper_QStandardItemModel::rowCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_rowCount(parent)); -} - -void PythonQtWrapper_QStandardItemModel::setColumnCount(QStandardItemModel* theWrappedObject, int columns) -{ - ( theWrappedObject->setColumnCount(columns)); -} - -bool PythonQtWrapper_QStandardItemModel::setData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_setData(index, value, role)); -} - -bool PythonQtWrapper_QStandardItemModel::setHeaderData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_setHeaderData(section, orientation, value, role)); -} - -void PythonQtWrapper_QStandardItemModel::setHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column, QStandardItem* item) -{ - ( theWrappedObject->setHorizontalHeaderItem(column, item)); -} - -void PythonQtWrapper_QStandardItemModel::setHorizontalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels) -{ - ( theWrappedObject->setHorizontalHeaderLabels(labels)); -} - -void PythonQtWrapper_QStandardItemModel::setItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item) -{ - ( theWrappedObject->setItem(row, item)); -} - -void PythonQtWrapper_QStandardItemModel::setItem(QStandardItemModel* theWrappedObject, int row, int column, QStandardItem* item) -{ - ( theWrappedObject->setItem(row, column, item)); -} - -bool PythonQtWrapper_QStandardItemModel::setItemData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles) -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_setItemData(index, roles)); -} - -void PythonQtWrapper_QStandardItemModel::setItemPrototype(QStandardItemModel* theWrappedObject, const QStandardItem* item) -{ - ( theWrappedObject->setItemPrototype(item)); -} - -void PythonQtWrapper_QStandardItemModel::setRowCount(QStandardItemModel* theWrappedObject, int rows) -{ - ( theWrappedObject->setRowCount(rows)); -} - -void PythonQtWrapper_QStandardItemModel::setSortRole(QStandardItemModel* theWrappedObject, int role) -{ - ( theWrappedObject->setSortRole(role)); -} - -void PythonQtWrapper_QStandardItemModel::setVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item) -{ - ( theWrappedObject->setVerticalHeaderItem(row, item)); -} - -void PythonQtWrapper_QStandardItemModel::setVerticalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels) -{ - ( theWrappedObject->setVerticalHeaderLabels(labels)); -} - -void PythonQtWrapper_QStandardItemModel::sort(QStandardItemModel* theWrappedObject, int column, Qt::SortOrder order) -{ - ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_sort(column, order)); -} - -int PythonQtWrapper_QStandardItemModel::sortRole(QStandardItemModel* theWrappedObject) const -{ - return ( theWrappedObject->sortRole()); -} - -Qt::DropActions PythonQtWrapper_QStandardItemModel::supportedDropActions(QStandardItemModel* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStandardItemModel*)theWrappedObject)->promoted_supportedDropActions()); -} - -QList PythonQtWrapper_QStandardItemModel::takeColumn(QStandardItemModel* theWrappedObject, int column) -{ - return ( theWrappedObject->takeColumn(column)); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::takeHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column) -{ - return ( theWrappedObject->takeHorizontalHeaderItem(column)); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::takeItem(QStandardItemModel* theWrappedObject, int row, int column) -{ - return ( theWrappedObject->takeItem(row, column)); -} - -QList PythonQtWrapper_QStandardItemModel::takeRow(QStandardItemModel* theWrappedObject, int row) -{ - return ( theWrappedObject->takeRow(row)); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::takeVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row) -{ - return ( theWrappedObject->takeVerticalHeaderItem(row)); -} - -QStandardItem* PythonQtWrapper_QStandardItemModel::verticalHeaderItem(QStandardItemModel* theWrappedObject, int row) const -{ - return ( theWrappedObject->verticalHeaderItem(row)); -} - - - -void PythonQtShell_QStatusBar::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::actionEvent(arg__1); -} -void PythonQtShell_QStatusBar::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::changeEvent(arg__1); -} -void PythonQtShell_QStatusBar::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::childEvent(arg__1); -} -void PythonQtShell_QStatusBar::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::closeEvent(arg__1); -} -void PythonQtShell_QStatusBar::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::contextMenuEvent(arg__1); -} -void PythonQtShell_QStatusBar::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::customEvent(arg__1); -} -int PythonQtShell_QStatusBar::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::devType(); -} -void PythonQtShell_QStatusBar::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::dragEnterEvent(arg__1); -} -void PythonQtShell_QStatusBar::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::dragLeaveEvent(arg__1); -} -void PythonQtShell_QStatusBar::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::dragMoveEvent(arg__1); -} -void PythonQtShell_QStatusBar::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::dropEvent(arg__1); -} -void PythonQtShell_QStatusBar::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::enterEvent(arg__1); -} -bool PythonQtShell_QStatusBar::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::event(arg__1); -} -bool PythonQtShell_QStatusBar::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QStatusBar::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::focusInEvent(arg__1); -} -bool PythonQtShell_QStatusBar::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::focusNextPrevChild(next); -} -void PythonQtShell_QStatusBar::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::focusOutEvent(arg__1); -} -int PythonQtShell_QStatusBar::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::heightForWidth(arg__1); -} -void PythonQtShell_QStatusBar::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::hideEvent(arg__1); -} -void PythonQtShell_QStatusBar::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QStatusBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::inputMethodQuery(arg__1); -} -void PythonQtShell_QStatusBar::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::keyPressEvent(arg__1); -} -void PythonQtShell_QStatusBar::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::keyReleaseEvent(arg__1); -} -void PythonQtShell_QStatusBar::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::languageChange(); -} -void PythonQtShell_QStatusBar::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::leaveEvent(arg__1); -} -int PythonQtShell_QStatusBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::metric(arg__1); -} -QSize PythonQtShell_QStatusBar::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::minimumSizeHint(); -} -void PythonQtShell_QStatusBar::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QStatusBar::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::mouseMoveEvent(arg__1); -} -void PythonQtShell_QStatusBar::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::mousePressEvent(arg__1); -} -void PythonQtShell_QStatusBar::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QStatusBar::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QStatusBar::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::paintEngine(); -} -void PythonQtShell_QStatusBar::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::paintEvent(arg__1); -} -void PythonQtShell_QStatusBar::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::resizeEvent(arg__1); -} -void PythonQtShell_QStatusBar::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::showEvent(arg__1); -} -QSize PythonQtShell_QStatusBar::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStatusBar::sizeHint(); -} -void PythonQtShell_QStatusBar::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::tabletEvent(arg__1); -} -void PythonQtShell_QStatusBar::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::timerEvent(arg__1); -} -void PythonQtShell_QStatusBar::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStatusBar::wheelEvent(arg__1); -} -QStatusBar* PythonQtWrapper_QStatusBar::new_QStatusBar(QWidget* parent) -{ -return new PythonQtShell_QStatusBar(parent); } - -void PythonQtWrapper_QStatusBar::addPermanentWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch) -{ - ( theWrappedObject->addPermanentWidget(widget, stretch)); -} - -void PythonQtWrapper_QStatusBar::addWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch) -{ - ( theWrappedObject->addWidget(widget, stretch)); -} - -QString PythonQtWrapper_QStatusBar::currentMessage(QStatusBar* theWrappedObject) const -{ - return ( theWrappedObject->currentMessage()); -} - -bool PythonQtWrapper_QStatusBar::event(QStatusBar* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_event(arg__1)); -} - -int PythonQtWrapper_QStatusBar::insertPermanentWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch) -{ - return ( theWrappedObject->insertPermanentWidget(index, widget, stretch)); -} - -int PythonQtWrapper_QStatusBar::insertWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch) -{ - return ( theWrappedObject->insertWidget(index, widget, stretch)); -} - -bool PythonQtWrapper_QStatusBar::isSizeGripEnabled(QStatusBar* theWrappedObject) const -{ - return ( theWrappedObject->isSizeGripEnabled()); -} - -void PythonQtWrapper_QStatusBar::paintEvent(QStatusBar* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QStatusBar::removeWidget(QStatusBar* theWrappedObject, QWidget* widget) -{ - ( theWrappedObject->removeWidget(widget)); -} - -void PythonQtWrapper_QStatusBar::resizeEvent(QStatusBar* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -void PythonQtWrapper_QStatusBar::setSizeGripEnabled(QStatusBar* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setSizeGripEnabled(arg__1)); -} - -void PythonQtWrapper_QStatusBar::showEvent(QStatusBar* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QStatusBar*)theWrappedObject)->promoted_showEvent(arg__1)); -} - - - -QStatusTipEvent* PythonQtWrapper_QStatusTipEvent::new_QStatusTipEvent(const QString& tip) -{ -return new QStatusTipEvent(tip); } - -QString PythonQtWrapper_QStatusTipEvent::tip(QStatusTipEvent* theWrappedObject) const -{ - return ( theWrappedObject->tip()); -} - - - -QModelIndex PythonQtShell_QStringListModel::buddy(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::buddy(index); -} -bool PythonQtShell_QStringListModel::canFetchMore(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::canFetchMore(parent); -} -void PythonQtShell_QStringListModel::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStringListModel::childEvent(arg__1); -} -void PythonQtShell_QStringListModel::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStringListModel::customEvent(arg__1); -} -QVariant PythonQtShell_QStringListModel::data(const QModelIndex& index, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&index, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::data(index, role); -} -bool PythonQtShell_QStringListModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::dropMimeData(data, action, row, column, parent); -} -bool PythonQtShell_QStringListModel::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::event(arg__1); -} -bool PythonQtShell_QStringListModel::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QStringListModel::fetchMore(const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStringListModel::fetchMore(parent); -} -Qt::ItemFlags PythonQtShell_QStringListModel::flags(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); - } else { - returnValue = *((Qt::ItemFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::flags(index); -} -QVariant PythonQtShell_QStringListModel::headerData(int section, Qt::Orientation orientation, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::headerData(section, orientation, role); -} -QModelIndex PythonQtShell_QStringListModel::index(int row, int column, const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QModelIndex returnValue; - void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::index(row, column, parent); -} -bool PythonQtShell_QStringListModel::insertColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::insertColumns(column, count, parent); -} -bool PythonQtShell_QStringListModel::insertRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::insertRows(row, count, parent); -} -QMap PythonQtShell_QStringListModel::itemData(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMap returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); - } else { - returnValue = *((QMap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::itemData(index); -} -QList PythonQtShell_QStringListModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - QList returnValue; - void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::match(start, role, value, hits, flags); -} -QMimeData* PythonQtShell_QStringListModel::mimeData(const QList& indexes) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::mimeData(indexes); -} -QStringList PythonQtShell_QStringListModel::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::mimeTypes(); -} -bool PythonQtShell_QStringListModel::removeColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::removeColumns(column, count, parent); -} -bool PythonQtShell_QStringListModel::removeRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::removeRows(row, count, parent); -} -void PythonQtShell_QStringListModel::revert() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStringListModel::revert(); -} -int PythonQtShell_QStringListModel::rowCount(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::rowCount(parent); -} -bool PythonQtShell_QStringListModel::setData(const QModelIndex& index, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::setData(index, value, role); -} -bool PythonQtShell_QStringListModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::setHeaderData(section, orientation, value, role); -} -bool PythonQtShell_QStringListModel::setItemData(const QModelIndex& index, const QMap& roles) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::setItemData(index, roles); -} -void PythonQtShell_QStringListModel::sort(int column, Qt::SortOrder order) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&column, (void*)&order}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStringListModel::sort(column, order); -} -QSize PythonQtShell_QStringListModel::span(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::span(index); -} -bool PythonQtShell_QStringListModel::submit() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::submit(); -} -Qt::DropActions PythonQtShell_QStringListModel::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringListModel::supportedDropActions(); -} -void PythonQtShell_QStringListModel::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStringListModel::timerEvent(arg__1); -} -QStringListModel* PythonQtWrapper_QStringListModel::new_QStringListModel(QObject* parent) -{ -return new PythonQtShell_QStringListModel(parent); } - -QStringListModel* PythonQtWrapper_QStringListModel::new_QStringListModel(const QStringList& strings, QObject* parent) -{ -return new PythonQtShell_QStringListModel(strings, parent); } - -QVariant PythonQtWrapper_QStringListModel::data(QStringListModel* theWrappedObject, const QModelIndex& index, int role) const -{ - return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_data(index, role)); -} - -Qt::ItemFlags PythonQtWrapper_QStringListModel::flags(QStringListModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_flags(index)); -} - -bool PythonQtWrapper_QStringListModel::insertRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_insertRows(row, count, parent)); -} - -bool PythonQtWrapper_QStringListModel::removeRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_removeRows(row, count, parent)); -} - -int PythonQtWrapper_QStringListModel::rowCount(QStringListModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_rowCount(parent)); -} - -bool PythonQtWrapper_QStringListModel::setData(QStringListModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) -{ - return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_setData(index, value, role)); -} - -void PythonQtWrapper_QStringListModel::setStringList(QStringListModel* theWrappedObject, const QStringList& strings) -{ - ( theWrappedObject->setStringList(strings)); -} - -void PythonQtWrapper_QStringListModel::sort(QStringListModel* theWrappedObject, int column, Qt::SortOrder order) -{ - ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_sort(column, order)); -} - -QStringList PythonQtWrapper_QStringListModel::stringList(QStringListModel* theWrappedObject) const -{ - return ( theWrappedObject->stringList()); -} - -Qt::DropActions PythonQtWrapper_QStringListModel::supportedDropActions(QStringListModel* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStringListModel*)theWrappedObject)->promoted_supportedDropActions()); -} - - - -void PythonQtShell_QStyle::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::childEvent(arg__1); -} -void PythonQtShell_QStyle::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::customEvent(arg__1); -} -void PythonQtShell_QStyle::drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&p, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QStyle::drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::ControlElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&element, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QStyle::drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&painter, (void*)&rect, (void*)&alignment, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::drawItemPixmap(painter, rect, alignment, pixmap); -} -void PythonQtShell_QStyle::drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawItemText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QRect&" , "int" , "const QPalette&" , "bool" , "const QString&" , "QPalette::ColorRole"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(8, argumentList); - void* args[8] = {NULL, (void*)&painter, (void*)&rect, (void*)&flags, (void*)&pal, (void*)&enabled, (void*)&text, (void*)&textRole}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); -} -void PythonQtShell_QStyle::drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "drawPrimitive"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyle::PrimitiveElement" , "const QStyleOption*" , "QPainter*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - void* args[5] = {NULL, (void*)&pe, (void*)&opt, (void*)&p, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -bool PythonQtShell_QStyle::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyle::event(arg__1); -} -bool PythonQtShell_QStyle::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyle::eventFilter(arg__1, arg__2); -} -QPixmap PythonQtShell_QStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "generatedIconPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QIcon::Mode" , "const QPixmap&" , "const QStyleOption*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&iconMode, (void*)&pixmap, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("generatedIconPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -QStyle::SubControl PythonQtShell_QStyle::hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitTestComplexControl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle::SubControl" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "const QPoint&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QStyle::SubControl returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&pt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitTestComplexControl", methodInfo, result); - } else { - returnValue = *((QStyle::SubControl*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyle::SubControl(); -} -QRect PythonQtShell_QStyle::itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemPixmapRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QRect&" , "int" , "const QPixmap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&r, (void*)&flags, (void*)&pixmap}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemPixmapRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyle::itemPixmapRect(r, flags, pixmap); -} -QRect PythonQtShell_QStyle::itemTextRect(const QFontMetrics& fm, const QRect& r, int flags, bool enabled, const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemTextRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QFontMetrics&" , "const QRect&" , "int" , "bool" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - QRect returnValue; - void* args[6] = {NULL, (void*)&fm, (void*)&r, (void*)&flags, (void*)&enabled, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemTextRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyle::itemTextRect(fm, r, flags, enabled, text); -} -int PythonQtShell_QStyle::pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pixelMetric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pixelMetric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_QStyle::polish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::polish(arg__1); -} -void PythonQtShell_QStyle::polish(QPalette& arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPalette&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::polish(arg__1); -} -void PythonQtShell_QStyle::polish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "polish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::polish(arg__1); -} -QSize PythonQtShell_QStyle::sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* w) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeFromContents"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "QStyle::ContentsType" , "const QStyleOption*" , "const QSize&" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QSize returnValue; - void* args[5] = {NULL, (void*)&ct, (void*)&opt, (void*)&contentsSize, (void*)&w}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeFromContents", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSize(); -} -QPalette PythonQtShell_QStyle::standardPalette() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPalette"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPalette"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPalette returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPalette", methodInfo, result); - } else { - returnValue = *((QPalette*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyle::standardPalette(); -} -QPixmap PythonQtShell_QStyle::standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "standardPixmap"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPixmap" , "QStyle::StandardPixmap" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QPixmap returnValue; - void* args[4] = {NULL, (void*)&standardPixmap, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("standardPixmap", methodInfo, result); - } else { - returnValue = *((QPixmap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap(); -} -int PythonQtShell_QStyle::styleHint(QStyle::StyleHint stylehint, const QStyleOption* opt, const QWidget* widget, QStyleHintReturn* returnData) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "styleHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - int returnValue = 0; - void* args[5] = {NULL, (void*)&stylehint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("styleHint", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QRect PythonQtShell_QStyle::subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subControlRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::ComplexControl" , "const QStyleOptionComplex*" , "QStyle::SubControl" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - QRect returnValue; - void* args[5] = {NULL, (void*)&cc, (void*)&opt, (void*)&sc, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subControlRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRect(); -} -QRect PythonQtShell_QStyle::subElementRect(QStyle::SubElement subElement, const QStyleOption* option, const QWidget* widget) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "subElementRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "QStyle::SubElement" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QRect returnValue; - void* args[4] = {NULL, (void*)&subElement, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("subElementRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QRect(); -} -void PythonQtShell_QStyle::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::timerEvent(arg__1); -} -void PythonQtShell_QStyle::unpolish(QApplication* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QApplication*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::unpolish(arg__1); -} -void PythonQtShell_QStyle::unpolish(QWidget* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "unpolish"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyle::unpolish(arg__1); -} -QStyle* PythonQtWrapper_QStyle::new_QStyle() -{ -return new PythonQtShell_QStyle(); } - -QRect PythonQtWrapper_QStyle::static_QStyle_alignedRect(Qt::LayoutDirection direction, Qt::Alignment alignment, const QSize& size, const QRect& rectangle) -{ - return (QStyle::alignedRect(direction, alignment, size, rectangle)); -} - -int PythonQtWrapper_QStyle::combinedLayoutSpacing(QStyle* theWrappedObject, QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption* option, QWidget* widget) const -{ - return ( theWrappedObject->combinedLayoutSpacing(controls1, controls2, orientation, option, widget)); -} - -void PythonQtWrapper_QStyle::drawItemPixmap(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const -{ - ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_drawItemPixmap(painter, rect, alignment, pixmap)); -} - -void PythonQtWrapper_QStyle::drawItemText(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) const -{ - ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_drawItemText(painter, rect, flags, pal, enabled, text, textRole)); -} - -QRect PythonQtWrapper_QStyle::itemPixmapRect(QStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const -{ - return ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_itemPixmapRect(r, flags, pixmap)); -} - -int PythonQtWrapper_QStyle::layoutSpacing(QStyle* theWrappedObject, QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option, const QWidget* widget) const -{ - return ( theWrappedObject->layoutSpacing(control1, control2, orientation, option, widget)); -} - -void PythonQtWrapper_QStyle::polish(QStyle* theWrappedObject, QApplication* arg__1) -{ - ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QStyle::polish(QStyle* theWrappedObject, QPalette& arg__1) -{ - ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -void PythonQtWrapper_QStyle::polish(QStyle* theWrappedObject, QWidget* arg__1) -{ - ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_polish(arg__1)); -} - -const QStyle* PythonQtWrapper_QStyle::proxy(QStyle* theWrappedObject) const -{ - return ( theWrappedObject->proxy()); -} - -int PythonQtWrapper_QStyle::static_QStyle_sliderPositionFromValue(int min, int max, int val, int space, bool upsideDown) -{ - return (QStyle::sliderPositionFromValue(min, max, val, space, upsideDown)); -} - -int PythonQtWrapper_QStyle::static_QStyle_sliderValueFromPosition(int min, int max, int pos, int space, bool upsideDown) -{ - return (QStyle::sliderValueFromPosition(min, max, pos, space, upsideDown)); -} - -QIcon PythonQtWrapper_QStyle::standardIcon(QStyle* theWrappedObject, QStyle::StandardPixmap standardIcon, const QStyleOption* option, const QWidget* widget) const -{ - return ( theWrappedObject->standardIcon(standardIcon, option, widget)); -} - -QPalette PythonQtWrapper_QStyle::standardPalette(QStyle* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_standardPalette()); -} - -void PythonQtWrapper_QStyle::unpolish(QStyle* theWrappedObject, QApplication* arg__1) -{ - ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_unpolish(arg__1)); -} - -void PythonQtWrapper_QStyle::unpolish(QStyle* theWrappedObject, QWidget* arg__1) -{ - ( ((PythonQtPublicPromoter_QStyle*)theWrappedObject)->promoted_unpolish(arg__1)); -} - -Qt::Alignment PythonQtWrapper_QStyle::static_QStyle_visualAlignment(Qt::LayoutDirection direction, Qt::Alignment alignment) -{ - return (QStyle::visualAlignment(direction, alignment)); -} - -QPoint PythonQtWrapper_QStyle::static_QStyle_visualPos(Qt::LayoutDirection direction, const QRect& boundingRect, const QPoint& logicalPos) -{ - return (QStyle::visualPos(direction, boundingRect, logicalPos)); -} - -QRect PythonQtWrapper_QStyle::static_QStyle_visualRect(Qt::LayoutDirection direction, const QRect& boundingRect, const QRect& logicalRect) -{ - return (QStyle::visualRect(direction, boundingRect, logicalRect)); -} - - - -QStyleFactory* PythonQtWrapper_QStyleFactory::new_QStyleFactory() -{ -return new PythonQtShell_QStyleFactory(); } - -QStyle* PythonQtWrapper_QStyleFactory::static_QStyleFactory_create(const QString& arg__1) -{ - return (QStyleFactory::create(arg__1)); -} - -QStringList PythonQtWrapper_QStyleFactory::static_QStyleFactory_keys() -{ - return (QStyleFactory::keys()); -} - - - -QStyleHintReturn* PythonQtWrapper_QStyleHintReturn::new_QStyleHintReturn(int version, int type) -{ -return new PythonQtShell_QStyleHintReturn(version, type); } - - - -QStyleHintReturnMask* PythonQtWrapper_QStyleHintReturnMask::new_QStyleHintReturnMask() -{ -return new PythonQtShell_QStyleHintReturnMask(); } - - - -QStyleHintReturnVariant* PythonQtWrapper_QStyleHintReturnVariant::new_QStyleHintReturnVariant() -{ -return new PythonQtShell_QStyleHintReturnVariant(); } - - - -QStyleOption* PythonQtWrapper_QStyleOption::new_QStyleOption(const QStyleOption& other) -{ -return new PythonQtShell_QStyleOption(other); } - -QStyleOption* PythonQtWrapper_QStyleOption::new_QStyleOption(int version, int type) -{ -return new PythonQtShell_QStyleOption(version, type); } - -void PythonQtWrapper_QStyleOption::initFrom(QStyleOption* theWrappedObject, const QWidget* w) -{ - ( theWrappedObject->initFrom(w)); -} - -QString PythonQtWrapper_QStyleOption::py_toString(QStyleOption* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QStyleOptionButton* PythonQtWrapper_QStyleOptionButton::new_QStyleOptionButton() -{ -return new PythonQtShell_QStyleOptionButton(); } - -QStyleOptionButton* PythonQtWrapper_QStyleOptionButton::new_QStyleOptionButton(const QStyleOptionButton& other) -{ -return new PythonQtShell_QStyleOptionButton(other); } - - - -QStyleOptionComboBox* PythonQtWrapper_QStyleOptionComboBox::new_QStyleOptionComboBox() -{ -return new PythonQtShell_QStyleOptionComboBox(); } - -QStyleOptionComboBox* PythonQtWrapper_QStyleOptionComboBox::new_QStyleOptionComboBox(const QStyleOptionComboBox& other) -{ -return new PythonQtShell_QStyleOptionComboBox(other); } - - - -QStyleOptionDockWidget* PythonQtWrapper_QStyleOptionDockWidget::new_QStyleOptionDockWidget() -{ -return new PythonQtShell_QStyleOptionDockWidget(); } - -QStyleOptionDockWidget* PythonQtWrapper_QStyleOptionDockWidget::new_QStyleOptionDockWidget(const QStyleOptionDockWidget& other) -{ -return new PythonQtShell_QStyleOptionDockWidget(other); } - - - -QStyleOptionDockWidgetV2* PythonQtWrapper_QStyleOptionDockWidgetV2::new_QStyleOptionDockWidgetV2() -{ -return new PythonQtShell_QStyleOptionDockWidgetV2(); } - -QStyleOptionDockWidgetV2* PythonQtWrapper_QStyleOptionDockWidgetV2::new_QStyleOptionDockWidgetV2(const QStyleOptionDockWidget& other) -{ -return new PythonQtShell_QStyleOptionDockWidgetV2(other); } - -QStyleOptionDockWidgetV2* PythonQtWrapper_QStyleOptionDockWidgetV2::new_QStyleOptionDockWidgetV2(const QStyleOptionDockWidgetV2& other) -{ -return new PythonQtShell_QStyleOptionDockWidgetV2(other); } - - - -QStyleOptionFocusRect* PythonQtWrapper_QStyleOptionFocusRect::new_QStyleOptionFocusRect() -{ -return new PythonQtShell_QStyleOptionFocusRect(); } - -QStyleOptionFocusRect* PythonQtWrapper_QStyleOptionFocusRect::new_QStyleOptionFocusRect(const QStyleOptionFocusRect& other) -{ -return new PythonQtShell_QStyleOptionFocusRect(other); } - - - -QStyleOptionFrame* PythonQtWrapper_QStyleOptionFrame::new_QStyleOptionFrame() -{ -return new PythonQtShell_QStyleOptionFrame(); } - -QStyleOptionFrame* PythonQtWrapper_QStyleOptionFrame::new_QStyleOptionFrame(const QStyleOptionFrame& other) -{ -return new PythonQtShell_QStyleOptionFrame(other); } - - - -QStyleOptionFrameV2* PythonQtWrapper_QStyleOptionFrameV2::new_QStyleOptionFrameV2() -{ -return new PythonQtShell_QStyleOptionFrameV2(); } - -QStyleOptionFrameV2* PythonQtWrapper_QStyleOptionFrameV2::new_QStyleOptionFrameV2(const QStyleOptionFrame& other) -{ -return new PythonQtShell_QStyleOptionFrameV2(other); } - -QStyleOptionFrameV2* PythonQtWrapper_QStyleOptionFrameV2::new_QStyleOptionFrameV2(const QStyleOptionFrameV2& other) -{ -return new PythonQtShell_QStyleOptionFrameV2(other); } - - - -QStyleOptionFrameV3* PythonQtWrapper_QStyleOptionFrameV3::new_QStyleOptionFrameV3() -{ -return new PythonQtShell_QStyleOptionFrameV3(); } - -QStyleOptionFrameV3* PythonQtWrapper_QStyleOptionFrameV3::new_QStyleOptionFrameV3(const QStyleOptionFrame& other) -{ -return new PythonQtShell_QStyleOptionFrameV3(other); } - -QStyleOptionFrameV3* PythonQtWrapper_QStyleOptionFrameV3::new_QStyleOptionFrameV3(const QStyleOptionFrameV3& other) -{ -return new PythonQtShell_QStyleOptionFrameV3(other); } - - - -QStyleOptionGraphicsItem* PythonQtWrapper_QStyleOptionGraphicsItem::new_QStyleOptionGraphicsItem() -{ -return new PythonQtShell_QStyleOptionGraphicsItem(); } - -QStyleOptionGraphicsItem* PythonQtWrapper_QStyleOptionGraphicsItem::new_QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem& other) -{ -return new PythonQtShell_QStyleOptionGraphicsItem(other); } - -qreal PythonQtWrapper_QStyleOptionGraphicsItem::static_QStyleOptionGraphicsItem_levelOfDetailFromTransform(const QTransform& worldTransform) -{ - return (QStyleOptionGraphicsItem::levelOfDetailFromTransform(worldTransform)); -} - - - -QStyleOptionGroupBox* PythonQtWrapper_QStyleOptionGroupBox::new_QStyleOptionGroupBox() -{ -return new PythonQtShell_QStyleOptionGroupBox(); } - -QStyleOptionGroupBox* PythonQtWrapper_QStyleOptionGroupBox::new_QStyleOptionGroupBox(const QStyleOptionGroupBox& other) -{ -return new PythonQtShell_QStyleOptionGroupBox(other); } - - - -QStyleOptionHeader* PythonQtWrapper_QStyleOptionHeader::new_QStyleOptionHeader() -{ -return new PythonQtShell_QStyleOptionHeader(); } - -QStyleOptionHeader* PythonQtWrapper_QStyleOptionHeader::new_QStyleOptionHeader(const QStyleOptionHeader& other) -{ -return new PythonQtShell_QStyleOptionHeader(other); } - - - -QStyleOptionMenuItem* PythonQtWrapper_QStyleOptionMenuItem::new_QStyleOptionMenuItem() -{ -return new PythonQtShell_QStyleOptionMenuItem(); } - -QStyleOptionMenuItem* PythonQtWrapper_QStyleOptionMenuItem::new_QStyleOptionMenuItem(const QStyleOptionMenuItem& other) -{ -return new PythonQtShell_QStyleOptionMenuItem(other); } - - - -QStyleOptionProgressBar* PythonQtWrapper_QStyleOptionProgressBar::new_QStyleOptionProgressBar() -{ -return new PythonQtShell_QStyleOptionProgressBar(); } - -QStyleOptionProgressBar* PythonQtWrapper_QStyleOptionProgressBar::new_QStyleOptionProgressBar(const QStyleOptionProgressBar& other) -{ -return new PythonQtShell_QStyleOptionProgressBar(other); } - - - -QStyleOptionProgressBarV2* PythonQtWrapper_QStyleOptionProgressBarV2::new_QStyleOptionProgressBarV2() -{ -return new PythonQtShell_QStyleOptionProgressBarV2(); } - -QStyleOptionProgressBarV2* PythonQtWrapper_QStyleOptionProgressBarV2::new_QStyleOptionProgressBarV2(const QStyleOptionProgressBar& other) -{ -return new PythonQtShell_QStyleOptionProgressBarV2(other); } - -QStyleOptionProgressBarV2* PythonQtWrapper_QStyleOptionProgressBarV2::new_QStyleOptionProgressBarV2(const QStyleOptionProgressBarV2& other) -{ -return new PythonQtShell_QStyleOptionProgressBarV2(other); } - - - -QStyleOptionRubberBand* PythonQtWrapper_QStyleOptionRubberBand::new_QStyleOptionRubberBand() -{ -return new PythonQtShell_QStyleOptionRubberBand(); } - -QStyleOptionRubberBand* PythonQtWrapper_QStyleOptionRubberBand::new_QStyleOptionRubberBand(const QStyleOptionRubberBand& other) -{ -return new PythonQtShell_QStyleOptionRubberBand(other); } - - - -QStyleOptionSizeGrip* PythonQtWrapper_QStyleOptionSizeGrip::new_QStyleOptionSizeGrip() -{ -return new PythonQtShell_QStyleOptionSizeGrip(); } - -QStyleOptionSizeGrip* PythonQtWrapper_QStyleOptionSizeGrip::new_QStyleOptionSizeGrip(const QStyleOptionSizeGrip& other) -{ -return new PythonQtShell_QStyleOptionSizeGrip(other); } - - - -QStyleOptionSlider* PythonQtWrapper_QStyleOptionSlider::new_QStyleOptionSlider() -{ -return new PythonQtShell_QStyleOptionSlider(); } - -QStyleOptionSlider* PythonQtWrapper_QStyleOptionSlider::new_QStyleOptionSlider(const QStyleOptionSlider& other) -{ -return new PythonQtShell_QStyleOptionSlider(other); } - - - -QStyleOptionSpinBox* PythonQtWrapper_QStyleOptionSpinBox::new_QStyleOptionSpinBox() -{ -return new PythonQtShell_QStyleOptionSpinBox(); } - -QStyleOptionSpinBox* PythonQtWrapper_QStyleOptionSpinBox::new_QStyleOptionSpinBox(const QStyleOptionSpinBox& other) -{ -return new PythonQtShell_QStyleOptionSpinBox(other); } - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h deleted file mode 100644 index 380b7fc03..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h +++ /dev/null @@ -1,1505 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QStackedWidget : public QStackedWidget -{ -public: - PythonQtShell_QStackedWidget(QWidget* parent = 0):QStackedWidget(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStackedWidget : public QStackedWidget -{ public: -inline bool promoted_event(QEvent* e) { return QStackedWidget::event(e); } -}; - -class PythonQtWrapper_QStackedWidget : public QObject -{ Q_OBJECT -public: -public slots: -QStackedWidget* new_QStackedWidget(QWidget* parent = 0); -void delete_QStackedWidget(QStackedWidget* obj) { delete obj; } - int addWidget(QStackedWidget* theWrappedObject, QWidget* w); - int count(QStackedWidget* theWrappedObject) const; - int currentIndex(QStackedWidget* theWrappedObject) const; - QWidget* currentWidget(QStackedWidget* theWrappedObject) const; - bool event(QStackedWidget* theWrappedObject, QEvent* e); - int indexOf(QStackedWidget* theWrappedObject, QWidget* arg__1) const; - int insertWidget(QStackedWidget* theWrappedObject, int index, QWidget* w); - void removeWidget(QStackedWidget* theWrappedObject, QWidget* w); - QWidget* widget(QStackedWidget* theWrappedObject, int arg__1) const; -}; - - - - - -class PythonQtShell_QStandardItem : public QStandardItem -{ -public: - PythonQtShell_QStandardItem():QStandardItem(),_wrapper(NULL) {}; - PythonQtShell_QStandardItem(const QIcon& icon, const QString& text):QStandardItem(icon, text),_wrapper(NULL) {}; - PythonQtShell_QStandardItem(const QStandardItem& other):QStandardItem(other),_wrapper(NULL) {}; - PythonQtShell_QStandardItem(const QString& text):QStandardItem(text),_wrapper(NULL) {}; - PythonQtShell_QStandardItem(int rows, int columns = 1):QStandardItem(rows, columns),_wrapper(NULL) {}; - -virtual QStandardItem* clone() const; -virtual QVariant data(int role = Qt::UserRole + 1) const; -virtual bool __lt__(const QStandardItem& other) const; -virtual void read(QDataStream& in); -virtual void setData(const QVariant& value, int role = Qt::UserRole + 1); -virtual int type() const; -virtual void write(QDataStream& out) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStandardItem : public QStandardItem -{ public: -inline QStandardItem* promoted_clone() const { return QStandardItem::clone(); } -inline QVariant promoted_data(int role = Qt::UserRole + 1) const { return QStandardItem::data(role); } -inline void promoted_setData(const QVariant& value, int role = Qt::UserRole + 1) { QStandardItem::setData(value, role); } -inline int promoted_type() const { return QStandardItem::type(); } -}; - -class PythonQtWrapper_QStandardItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ItemType ) -enum ItemType{ - Type = QStandardItem::Type, UserType = QStandardItem::UserType}; -public slots: -QStandardItem* new_QStandardItem(); -QStandardItem* new_QStandardItem(const QIcon& icon, const QString& text); -QStandardItem* new_QStandardItem(const QString& text); -QStandardItem* new_QStandardItem(int rows, int columns = 1); -void delete_QStandardItem(QStandardItem* obj); - QString accessibleDescription(QStandardItem* theWrappedObject) const; - QString accessibleText(QStandardItem* theWrappedObject) const; - void appendColumn(QStandardItem* theWrappedObject, const QList& items); - void appendRow(QStandardItem* theWrappedObject, QStandardItem* item); - void appendRow(QStandardItem* theWrappedObject, const QList& items); - void appendRows(QStandardItem* theWrappedObject, const QList& items); - QBrush background(QStandardItem* theWrappedObject) const; - Qt::CheckState checkState(QStandardItem* theWrappedObject) const; - QStandardItem* child(QStandardItem* theWrappedObject, int row, int column = 0) const; - QStandardItem* clone(QStandardItem* theWrappedObject) const; - int column(QStandardItem* theWrappedObject) const; - int columnCount(QStandardItem* theWrappedObject) const; - QVariant data(QStandardItem* theWrappedObject, int role = Qt::UserRole + 1) const; - Qt::ItemFlags flags(QStandardItem* theWrappedObject) const; - QFont font(QStandardItem* theWrappedObject) const; - QBrush foreground(QStandardItem* theWrappedObject) const; - bool hasChildren(QStandardItem* theWrappedObject) const; - QIcon icon(QStandardItem* theWrappedObject) const; - QModelIndex index(QStandardItem* theWrappedObject) const; - void insertColumn(QStandardItem* theWrappedObject, int column, const QList& items); - void insertColumns(QStandardItem* theWrappedObject, int column, int count); - void insertRow(QStandardItem* theWrappedObject, int row, QStandardItem* item); - void insertRow(QStandardItem* theWrappedObject, int row, const QList& items); - void insertRows(QStandardItem* theWrappedObject, int row, const QList& items); - void insertRows(QStandardItem* theWrappedObject, int row, int count); - bool isCheckable(QStandardItem* theWrappedObject) const; - bool isDragEnabled(QStandardItem* theWrappedObject) const; - bool isDropEnabled(QStandardItem* theWrappedObject) const; - bool isEditable(QStandardItem* theWrappedObject) const; - bool isEnabled(QStandardItem* theWrappedObject) const; - bool isSelectable(QStandardItem* theWrappedObject) const; - bool isTristate(QStandardItem* theWrappedObject) const; - QStandardItemModel* model(QStandardItem* theWrappedObject) const; - void writeTo(QStandardItem* theWrappedObject, QDataStream& out); - void readFrom(QStandardItem* theWrappedObject, QDataStream& in); - QStandardItem* parent(QStandardItem* theWrappedObject) const; - void removeColumn(QStandardItem* theWrappedObject, int column); - void removeColumns(QStandardItem* theWrappedObject, int column, int count); - void removeRow(QStandardItem* theWrappedObject, int row); - void removeRows(QStandardItem* theWrappedObject, int row, int count); - int row(QStandardItem* theWrappedObject) const; - int rowCount(QStandardItem* theWrappedObject) const; - void setAccessibleDescription(QStandardItem* theWrappedObject, const QString& accessibleDescription); - void setAccessibleText(QStandardItem* theWrappedObject, const QString& accessibleText); - void setBackground(QStandardItem* theWrappedObject, const QBrush& brush); - void setCheckState(QStandardItem* theWrappedObject, Qt::CheckState checkState); - void setCheckable(QStandardItem* theWrappedObject, bool checkable); - void setChild(QStandardItem* theWrappedObject, int row, QStandardItem* item); - void setChild(QStandardItem* theWrappedObject, int row, int column, QStandardItem* item); - void setColumnCount(QStandardItem* theWrappedObject, int columns); - void setData(QStandardItem* theWrappedObject, const QVariant& value, int role = Qt::UserRole + 1); - void setDragEnabled(QStandardItem* theWrappedObject, bool dragEnabled); - void setDropEnabled(QStandardItem* theWrappedObject, bool dropEnabled); - void setEditable(QStandardItem* theWrappedObject, bool editable); - void setEnabled(QStandardItem* theWrappedObject, bool enabled); - void setFlags(QStandardItem* theWrappedObject, Qt::ItemFlags flags); - void setFont(QStandardItem* theWrappedObject, const QFont& font); - void setForeground(QStandardItem* theWrappedObject, const QBrush& brush); - void setIcon(QStandardItem* theWrappedObject, const QIcon& icon); - void setRowCount(QStandardItem* theWrappedObject, int rows); - void setSelectable(QStandardItem* theWrappedObject, bool selectable); - void setSizeHint(QStandardItem* theWrappedObject, const QSize& sizeHint); - void setStatusTip(QStandardItem* theWrappedObject, const QString& statusTip); - void setText(QStandardItem* theWrappedObject, const QString& text); - void setTextAlignment(QStandardItem* theWrappedObject, Qt::Alignment textAlignment); - void setToolTip(QStandardItem* theWrappedObject, const QString& toolTip); - void setTristate(QStandardItem* theWrappedObject, bool tristate); - void setWhatsThis(QStandardItem* theWrappedObject, const QString& whatsThis); - QSize sizeHint(QStandardItem* theWrappedObject) const; - void sortChildren(QStandardItem* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); - QString statusTip(QStandardItem* theWrappedObject) const; - QStandardItem* takeChild(QStandardItem* theWrappedObject, int row, int column = 0); - QList takeColumn(QStandardItem* theWrappedObject, int column); - QList takeRow(QStandardItem* theWrappedObject, int row); - QString text(QStandardItem* theWrappedObject) const; - Qt::Alignment textAlignment(QStandardItem* theWrappedObject) const; - QString toolTip(QStandardItem* theWrappedObject) const; - int type(QStandardItem* theWrappedObject) const; - QString whatsThis(QStandardItem* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QStandardItemModel : public QStandardItemModel -{ -public: - PythonQtShell_QStandardItemModel(QObject* parent = 0):QStandardItemModel(parent),_wrapper(NULL) {}; - PythonQtShell_QStandardItemModel(int rows, int columns, QObject* parent = 0):QStandardItemModel(rows, columns, parent),_wrapper(NULL) {}; - -virtual QModelIndex buddy(const QModelIndex& index) const; -virtual bool canFetchMore(const QModelIndex& parent) const; -virtual void childEvent(QChildEvent* arg__1); -virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; -virtual void customEvent(QEvent* arg__1); -virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; -virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fetchMore(const QModelIndex& parent); -virtual Qt::ItemFlags flags(const QModelIndex& index) const; -virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const; -virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; -virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const; -virtual bool insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()); -virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()); -virtual QMap itemData(const QModelIndex& index) const; -virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; -virtual QMimeData* mimeData(const QList& indexes) const; -virtual QStringList mimeTypes() const; -virtual QModelIndex parent(const QModelIndex& child) const; -virtual bool removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()); -virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); -virtual void revert(); -virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; -virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); -virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); -virtual bool setItemData(const QModelIndex& index, const QMap& roles); -virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); -virtual QSize span(const QModelIndex& index) const; -virtual bool submit(); -virtual Qt::DropActions supportedDropActions() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStandardItemModel : public QStandardItemModel -{ public: -inline int promoted_columnCount(const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::columnCount(parent); } -inline QVariant promoted_data(const QModelIndex& index, int role = Qt::DisplayRole) const { return QStandardItemModel::data(index, role); } -inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return QStandardItemModel::dropMimeData(data, action, row, column, parent); } -inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return QStandardItemModel::flags(index); } -inline bool promoted_hasChildren(const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::hasChildren(parent); } -inline QVariant promoted_headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { return QStandardItemModel::headerData(section, orientation, role); } -inline QModelIndex promoted_index(int row, int column, const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::index(row, column, parent); } -inline bool promoted_insertColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::insertColumns(column, count, parent); } -inline bool promoted_insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::insertRows(row, count, parent); } -inline QMap promoted_itemData(const QModelIndex& index) const { return QStandardItemModel::itemData(index); } -inline QMimeData* promoted_mimeData(const QList& indexes) const { return QStandardItemModel::mimeData(indexes); } -inline QStringList promoted_mimeTypes() const { return QStandardItemModel::mimeTypes(); } -inline QModelIndex promoted_parent(const QModelIndex& child) const { return QStandardItemModel::parent(child); } -inline bool promoted_removeColumns(int column, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::removeColumns(column, count, parent); } -inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStandardItemModel::removeRows(row, count, parent); } -inline int promoted_rowCount(const QModelIndex& parent = QModelIndex()) const { return QStandardItemModel::rowCount(parent); } -inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) { return QStandardItemModel::setData(index, value, role); } -inline bool promoted_setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole) { return QStandardItemModel::setHeaderData(section, orientation, value, role); } -inline bool promoted_setItemData(const QModelIndex& index, const QMap& roles) { return QStandardItemModel::setItemData(index, roles); } -inline void promoted_sort(int column, Qt::SortOrder order = Qt::AscendingOrder) { QStandardItemModel::sort(column, order); } -inline Qt::DropActions promoted_supportedDropActions() const { return QStandardItemModel::supportedDropActions(); } -}; - -class PythonQtWrapper_QStandardItemModel : public QObject -{ Q_OBJECT -public: -public slots: -QStandardItemModel* new_QStandardItemModel(QObject* parent = 0); -QStandardItemModel* new_QStandardItemModel(int rows, int columns, QObject* parent = 0); -void delete_QStandardItemModel(QStandardItemModel* obj) { delete obj; } - void appendColumn(QStandardItemModel* theWrappedObject, const QList& items); - void appendRow(QStandardItemModel* theWrappedObject, QStandardItem* item); - void appendRow(QStandardItemModel* theWrappedObject, const QList& items); - void clear(QStandardItemModel* theWrappedObject); - int columnCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; - QVariant data(QStandardItemModel* theWrappedObject, const QModelIndex& index, int role = Qt::DisplayRole) const; - bool dropMimeData(QStandardItemModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); - QList findItems(QStandardItemModel* theWrappedObject, const QString& text, Qt::MatchFlags flags = Qt::MatchExactly, int column = 0) const; - Qt::ItemFlags flags(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; - bool hasChildren(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; - QVariant headerData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; - QStandardItem* horizontalHeaderItem(QStandardItemModel* theWrappedObject, int column) const; - QModelIndex index(QStandardItemModel* theWrappedObject, int row, int column, const QModelIndex& parent = QModelIndex()) const; - QModelIndex indexFromItem(QStandardItemModel* theWrappedObject, const QStandardItem* item) const; - void insertColumn(QStandardItemModel* theWrappedObject, int column, const QList& items); - bool insertColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); - void insertRow(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); - void insertRow(QStandardItemModel* theWrappedObject, int row, const QList& items); - bool insertRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); - QStandardItem* invisibleRootItem(QStandardItemModel* theWrappedObject) const; - QStandardItem* item(QStandardItemModel* theWrappedObject, int row, int column = 0) const; - QMap itemData(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; - QStandardItem* itemFromIndex(QStandardItemModel* theWrappedObject, const QModelIndex& index) const; - const QStandardItem* itemPrototype(QStandardItemModel* theWrappedObject) const; - QMimeData* mimeData(QStandardItemModel* theWrappedObject, const QList& indexes) const; - QStringList mimeTypes(QStandardItemModel* theWrappedObject) const; - QModelIndex parent(QStandardItemModel* theWrappedObject, const QModelIndex& child) const; - bool removeColumns(QStandardItemModel* theWrappedObject, int column, int count, const QModelIndex& parent = QModelIndex()); - bool removeRows(QStandardItemModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); - int rowCount(QStandardItemModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; - void setColumnCount(QStandardItemModel* theWrappedObject, int columns); - bool setData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); - bool setHeaderData(QStandardItemModel* theWrappedObject, int section, Qt::Orientation orientation, const QVariant& value, int role = Qt::EditRole); - void setHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column, QStandardItem* item); - void setHorizontalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels); - void setItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); - void setItem(QStandardItemModel* theWrappedObject, int row, int column, QStandardItem* item); - bool setItemData(QStandardItemModel* theWrappedObject, const QModelIndex& index, const QMap& roles); - void setItemPrototype(QStandardItemModel* theWrappedObject, const QStandardItem* item); - void setRowCount(QStandardItemModel* theWrappedObject, int rows); - void setSortRole(QStandardItemModel* theWrappedObject, int role); - void setVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row, QStandardItem* item); - void setVerticalHeaderLabels(QStandardItemModel* theWrappedObject, const QStringList& labels); - void sort(QStandardItemModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); - int sortRole(QStandardItemModel* theWrappedObject) const; - Qt::DropActions supportedDropActions(QStandardItemModel* theWrappedObject) const; - QList takeColumn(QStandardItemModel* theWrappedObject, int column); - QStandardItem* takeHorizontalHeaderItem(QStandardItemModel* theWrappedObject, int column); - QStandardItem* takeItem(QStandardItemModel* theWrappedObject, int row, int column = 0); - QList takeRow(QStandardItemModel* theWrappedObject, int row); - QStandardItem* takeVerticalHeaderItem(QStandardItemModel* theWrappedObject, int row); - QStandardItem* verticalHeaderItem(QStandardItemModel* theWrappedObject, int row) const; -}; - - - - - -class PythonQtShell_QStatusBar : public QStatusBar -{ -public: - PythonQtShell_QStatusBar(QWidget* parent = 0):QStatusBar(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStatusBar : public QStatusBar -{ public: -inline bool promoted_event(QEvent* arg__1) { return QStatusBar::event(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QStatusBar::paintEvent(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QStatusBar::resizeEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* arg__1) { QStatusBar::showEvent(arg__1); } -}; - -class PythonQtWrapper_QStatusBar : public QObject -{ Q_OBJECT -public: -public slots: -QStatusBar* new_QStatusBar(QWidget* parent = 0); -void delete_QStatusBar(QStatusBar* obj) { delete obj; } - void addPermanentWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch = 0); - void addWidget(QStatusBar* theWrappedObject, QWidget* widget, int stretch = 0); - QString currentMessage(QStatusBar* theWrappedObject) const; - bool event(QStatusBar* theWrappedObject, QEvent* arg__1); - int insertPermanentWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch = 0); - int insertWidget(QStatusBar* theWrappedObject, int index, QWidget* widget, int stretch = 0); - bool isSizeGripEnabled(QStatusBar* theWrappedObject) const; - void paintEvent(QStatusBar* theWrappedObject, QPaintEvent* arg__1); - void removeWidget(QStatusBar* theWrappedObject, QWidget* widget); - void resizeEvent(QStatusBar* theWrappedObject, QResizeEvent* arg__1); - void setSizeGripEnabled(QStatusBar* theWrappedObject, bool arg__1); - void showEvent(QStatusBar* theWrappedObject, QShowEvent* arg__1); -}; - - - - - -class PythonQtWrapper_QStatusTipEvent : public QObject -{ Q_OBJECT -public: -public slots: -QStatusTipEvent* new_QStatusTipEvent(const QString& tip); -void delete_QStatusTipEvent(QStatusTipEvent* obj) { delete obj; } - QString tip(QStatusTipEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QStringListModel : public QStringListModel -{ -public: - PythonQtShell_QStringListModel(QObject* parent = 0):QStringListModel(parent),_wrapper(NULL) {}; - PythonQtShell_QStringListModel(const QStringList& strings, QObject* parent = 0):QStringListModel(strings, parent),_wrapper(NULL) {}; - -virtual QModelIndex buddy(const QModelIndex& index) const; -virtual bool canFetchMore(const QModelIndex& parent) const; -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual QVariant data(const QModelIndex& index, int role) const; -virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fetchMore(const QModelIndex& parent); -virtual Qt::ItemFlags flags(const QModelIndex& index) const; -virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const; -virtual QModelIndex index(int row, int column, const QModelIndex& parent) const; -virtual bool insertColumns(int column, int count, const QModelIndex& parent); -virtual bool insertRows(int row, int count, const QModelIndex& parent = QModelIndex()); -virtual QMap itemData(const QModelIndex& index) const; -virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; -virtual QMimeData* mimeData(const QList& indexes) const; -virtual QStringList mimeTypes() const; -virtual bool removeColumns(int column, int count, const QModelIndex& parent); -virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); -virtual void revert(); -virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; -virtual bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); -virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role); -virtual bool setItemData(const QModelIndex& index, const QMap& roles); -virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder); -virtual QSize span(const QModelIndex& index) const; -virtual bool submit(); -virtual Qt::DropActions supportedDropActions() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStringListModel : public QStringListModel -{ public: -inline QVariant promoted_data(const QModelIndex& index, int role) const { return QStringListModel::data(index, role); } -inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return QStringListModel::flags(index); } -inline bool promoted_insertRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStringListModel::insertRows(row, count, parent); } -inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return QStringListModel::removeRows(row, count, parent); } -inline int promoted_rowCount(const QModelIndex& parent = QModelIndex()) const { return QStringListModel::rowCount(parent); } -inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) { return QStringListModel::setData(index, value, role); } -inline void promoted_sort(int column, Qt::SortOrder order = Qt::AscendingOrder) { QStringListModel::sort(column, order); } -inline Qt::DropActions promoted_supportedDropActions() const { return QStringListModel::supportedDropActions(); } -}; - -class PythonQtWrapper_QStringListModel : public QObject -{ Q_OBJECT -public: -public slots: -QStringListModel* new_QStringListModel(QObject* parent = 0); -QStringListModel* new_QStringListModel(const QStringList& strings, QObject* parent = 0); -void delete_QStringListModel(QStringListModel* obj) { delete obj; } - QVariant data(QStringListModel* theWrappedObject, const QModelIndex& index, int role) const; - Qt::ItemFlags flags(QStringListModel* theWrappedObject, const QModelIndex& index) const; - bool insertRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); - bool removeRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); - int rowCount(QStringListModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const; - bool setData(QStringListModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole); - void setStringList(QStringListModel* theWrappedObject, const QStringList& strings); - void sort(QStringListModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); - QStringList stringList(QStringListModel* theWrappedObject) const; - Qt::DropActions supportedDropActions(QStringListModel* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QStyle : public QStyle -{ -public: - PythonQtShell_QStyle():QStyle(),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual void drawComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QPainter* p, const QWidget* widget = 0) const; -virtual void drawControl(QStyle::ControlElement element, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual void drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; -virtual void drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; -virtual void drawPrimitive(QStyle::PrimitiveElement pe, const QStyleOption* opt, QPainter* p, const QWidget* w = 0) const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap& pixmap, const QStyleOption* opt) const; -virtual QStyle::SubControl hitTestComplexControl(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, const QPoint& pt, const QWidget* widget = 0) const; -virtual QRect itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const; -virtual QRect itemTextRect(const QFontMetrics& fm, const QRect& r, int flags, bool enabled, const QString& text) const; -virtual int pixelMetric(QStyle::PixelMetric metric, const QStyleOption* option = 0, const QWidget* widget = 0) const; -virtual void polish(QApplication* arg__1); -virtual void polish(QPalette& arg__1); -virtual void polish(QWidget* arg__1); -virtual QSize sizeFromContents(QStyle::ContentsType ct, const QStyleOption* opt, const QSize& contentsSize, const QWidget* w = 0) const; -virtual QPalette standardPalette() const; -virtual QPixmap standardPixmap(QStyle::StandardPixmap standardPixmap, const QStyleOption* opt = 0, const QWidget* widget = 0) const; -virtual int styleHint(QStyle::StyleHint stylehint, const QStyleOption* opt = 0, const QWidget* widget = 0, QStyleHintReturn* returnData = 0) const; -virtual QRect subControlRect(QStyle::ComplexControl cc, const QStyleOptionComplex* opt, QStyle::SubControl sc, const QWidget* widget = 0) const; -virtual QRect subElementRect(QStyle::SubElement subElement, const QStyleOption* option, const QWidget* widget = 0) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void unpolish(QApplication* arg__1); -virtual void unpolish(QWidget* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStyle : public QStyle -{ public: -inline void promoted_drawItemPixmap(QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const { QStyle::drawItemPixmap(painter, rect, alignment, pixmap); } -inline void promoted_drawItemText(QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const { QStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); } -inline QRect promoted_itemPixmapRect(const QRect& r, int flags, const QPixmap& pixmap) const { return QStyle::itemPixmapRect(r, flags, pixmap); } -inline void promoted_polish(QApplication* arg__1) { QStyle::polish(arg__1); } -inline void promoted_polish(QPalette& arg__1) { QStyle::polish(arg__1); } -inline void promoted_polish(QWidget* arg__1) { QStyle::polish(arg__1); } -inline QPalette promoted_standardPalette() const { return QStyle::standardPalette(); } -inline void promoted_unpolish(QApplication* arg__1) { QStyle::unpolish(arg__1); } -inline void promoted_unpolish(QWidget* arg__1) { QStyle::unpolish(arg__1); } -}; - -class PythonQtWrapper_QStyle : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PixelMetric SubControl StandardPixmap StyleHint PrimitiveElement ControlElement ContentsType StateFlag ComplexControl RequestSoftwareInputPanel SubElement ) -Q_FLAGS(SubControls State ) -enum PixelMetric{ - PM_ButtonMargin = QStyle::PM_ButtonMargin, PM_ButtonDefaultIndicator = QStyle::PM_ButtonDefaultIndicator, PM_MenuButtonIndicator = QStyle::PM_MenuButtonIndicator, PM_ButtonShiftHorizontal = QStyle::PM_ButtonShiftHorizontal, PM_ButtonShiftVertical = QStyle::PM_ButtonShiftVertical, PM_DefaultFrameWidth = QStyle::PM_DefaultFrameWidth, PM_SpinBoxFrameWidth = QStyle::PM_SpinBoxFrameWidth, PM_ComboBoxFrameWidth = QStyle::PM_ComboBoxFrameWidth, PM_MaximumDragDistance = QStyle::PM_MaximumDragDistance, PM_ScrollBarExtent = QStyle::PM_ScrollBarExtent, PM_ScrollBarSliderMin = QStyle::PM_ScrollBarSliderMin, PM_SliderThickness = QStyle::PM_SliderThickness, PM_SliderControlThickness = QStyle::PM_SliderControlThickness, PM_SliderLength = QStyle::PM_SliderLength, PM_SliderTickmarkOffset = QStyle::PM_SliderTickmarkOffset, PM_SliderSpaceAvailable = QStyle::PM_SliderSpaceAvailable, PM_DockWidgetSeparatorExtent = QStyle::PM_DockWidgetSeparatorExtent, PM_DockWidgetHandleExtent = QStyle::PM_DockWidgetHandleExtent, PM_DockWidgetFrameWidth = QStyle::PM_DockWidgetFrameWidth, PM_TabBarTabOverlap = QStyle::PM_TabBarTabOverlap, PM_TabBarTabHSpace = QStyle::PM_TabBarTabHSpace, PM_TabBarTabVSpace = QStyle::PM_TabBarTabVSpace, PM_TabBarBaseHeight = QStyle::PM_TabBarBaseHeight, PM_TabBarBaseOverlap = QStyle::PM_TabBarBaseOverlap, PM_ProgressBarChunkWidth = QStyle::PM_ProgressBarChunkWidth, PM_SplitterWidth = QStyle::PM_SplitterWidth, PM_TitleBarHeight = QStyle::PM_TitleBarHeight, PM_MenuScrollerHeight = QStyle::PM_MenuScrollerHeight, PM_MenuHMargin = QStyle::PM_MenuHMargin, PM_MenuVMargin = QStyle::PM_MenuVMargin, PM_MenuPanelWidth = QStyle::PM_MenuPanelWidth, PM_MenuTearoffHeight = QStyle::PM_MenuTearoffHeight, PM_MenuDesktopFrameWidth = QStyle::PM_MenuDesktopFrameWidth, PM_MenuBarPanelWidth = QStyle::PM_MenuBarPanelWidth, PM_MenuBarItemSpacing = QStyle::PM_MenuBarItemSpacing, PM_MenuBarVMargin = QStyle::PM_MenuBarVMargin, PM_MenuBarHMargin = QStyle::PM_MenuBarHMargin, PM_IndicatorWidth = QStyle::PM_IndicatorWidth, PM_IndicatorHeight = QStyle::PM_IndicatorHeight, PM_ExclusiveIndicatorWidth = QStyle::PM_ExclusiveIndicatorWidth, PM_ExclusiveIndicatorHeight = QStyle::PM_ExclusiveIndicatorHeight, PM_CheckListButtonSize = QStyle::PM_CheckListButtonSize, PM_CheckListControllerSize = QStyle::PM_CheckListControllerSize, PM_DialogButtonsSeparator = QStyle::PM_DialogButtonsSeparator, PM_DialogButtonsButtonWidth = QStyle::PM_DialogButtonsButtonWidth, PM_DialogButtonsButtonHeight = QStyle::PM_DialogButtonsButtonHeight, PM_MdiSubWindowFrameWidth = QStyle::PM_MdiSubWindowFrameWidth, PM_MDIFrameWidth = QStyle::PM_MDIFrameWidth, PM_MdiSubWindowMinimizedWidth = QStyle::PM_MdiSubWindowMinimizedWidth, PM_MDIMinimizedWidth = QStyle::PM_MDIMinimizedWidth, PM_HeaderMargin = QStyle::PM_HeaderMargin, PM_HeaderMarkSize = QStyle::PM_HeaderMarkSize, PM_HeaderGripMargin = QStyle::PM_HeaderGripMargin, PM_TabBarTabShiftHorizontal = QStyle::PM_TabBarTabShiftHorizontal, PM_TabBarTabShiftVertical = QStyle::PM_TabBarTabShiftVertical, PM_TabBarScrollButtonWidth = QStyle::PM_TabBarScrollButtonWidth, PM_ToolBarFrameWidth = QStyle::PM_ToolBarFrameWidth, PM_ToolBarHandleExtent = QStyle::PM_ToolBarHandleExtent, PM_ToolBarItemSpacing = QStyle::PM_ToolBarItemSpacing, PM_ToolBarItemMargin = QStyle::PM_ToolBarItemMargin, PM_ToolBarSeparatorExtent = QStyle::PM_ToolBarSeparatorExtent, PM_ToolBarExtensionExtent = QStyle::PM_ToolBarExtensionExtent, PM_SpinBoxSliderHeight = QStyle::PM_SpinBoxSliderHeight, PM_DefaultTopLevelMargin = QStyle::PM_DefaultTopLevelMargin, PM_DefaultChildMargin = QStyle::PM_DefaultChildMargin, PM_DefaultLayoutSpacing = QStyle::PM_DefaultLayoutSpacing, PM_ToolBarIconSize = QStyle::PM_ToolBarIconSize, PM_ListViewIconSize = QStyle::PM_ListViewIconSize, PM_IconViewIconSize = QStyle::PM_IconViewIconSize, PM_SmallIconSize = QStyle::PM_SmallIconSize, PM_LargeIconSize = QStyle::PM_LargeIconSize, PM_FocusFrameVMargin = QStyle::PM_FocusFrameVMargin, PM_FocusFrameHMargin = QStyle::PM_FocusFrameHMargin, PM_ToolTipLabelFrameWidth = QStyle::PM_ToolTipLabelFrameWidth, PM_CheckBoxLabelSpacing = QStyle::PM_CheckBoxLabelSpacing, PM_TabBarIconSize = QStyle::PM_TabBarIconSize, PM_SizeGripSize = QStyle::PM_SizeGripSize, PM_DockWidgetTitleMargin = QStyle::PM_DockWidgetTitleMargin, PM_MessageBoxIconSize = QStyle::PM_MessageBoxIconSize, PM_ButtonIconSize = QStyle::PM_ButtonIconSize, PM_DockWidgetTitleBarButtonMargin = QStyle::PM_DockWidgetTitleBarButtonMargin, PM_RadioButtonLabelSpacing = QStyle::PM_RadioButtonLabelSpacing, PM_LayoutLeftMargin = QStyle::PM_LayoutLeftMargin, PM_LayoutTopMargin = QStyle::PM_LayoutTopMargin, PM_LayoutRightMargin = QStyle::PM_LayoutRightMargin, PM_LayoutBottomMargin = QStyle::PM_LayoutBottomMargin, PM_LayoutHorizontalSpacing = QStyle::PM_LayoutHorizontalSpacing, PM_LayoutVerticalSpacing = QStyle::PM_LayoutVerticalSpacing, PM_TabBar_ScrollButtonOverlap = QStyle::PM_TabBar_ScrollButtonOverlap, PM_TextCursorWidth = QStyle::PM_TextCursorWidth, PM_TabCloseIndicatorWidth = QStyle::PM_TabCloseIndicatorWidth, PM_TabCloseIndicatorHeight = QStyle::PM_TabCloseIndicatorHeight, PM_ScrollView_ScrollBarSpacing = QStyle::PM_ScrollView_ScrollBarSpacing, PM_SubMenuOverlap = QStyle::PM_SubMenuOverlap, PM_CustomBase = QStyle::PM_CustomBase}; -enum SubControl{ - SC_None = QStyle::SC_None, SC_ScrollBarAddLine = QStyle::SC_ScrollBarAddLine, SC_ScrollBarSubLine = QStyle::SC_ScrollBarSubLine, SC_ScrollBarAddPage = QStyle::SC_ScrollBarAddPage, SC_ScrollBarSubPage = QStyle::SC_ScrollBarSubPage, SC_ScrollBarFirst = QStyle::SC_ScrollBarFirst, SC_ScrollBarLast = QStyle::SC_ScrollBarLast, SC_ScrollBarSlider = QStyle::SC_ScrollBarSlider, SC_ScrollBarGroove = QStyle::SC_ScrollBarGroove, SC_SpinBoxUp = QStyle::SC_SpinBoxUp, SC_SpinBoxDown = QStyle::SC_SpinBoxDown, SC_SpinBoxFrame = QStyle::SC_SpinBoxFrame, SC_SpinBoxEditField = QStyle::SC_SpinBoxEditField, SC_ComboBoxFrame = QStyle::SC_ComboBoxFrame, SC_ComboBoxEditField = QStyle::SC_ComboBoxEditField, SC_ComboBoxArrow = QStyle::SC_ComboBoxArrow, SC_ComboBoxListBoxPopup = QStyle::SC_ComboBoxListBoxPopup, SC_SliderGroove = QStyle::SC_SliderGroove, SC_SliderHandle = QStyle::SC_SliderHandle, SC_SliderTickmarks = QStyle::SC_SliderTickmarks, SC_ToolButton = QStyle::SC_ToolButton, SC_ToolButtonMenu = QStyle::SC_ToolButtonMenu, SC_TitleBarSysMenu = QStyle::SC_TitleBarSysMenu, SC_TitleBarMinButton = QStyle::SC_TitleBarMinButton, SC_TitleBarMaxButton = QStyle::SC_TitleBarMaxButton, SC_TitleBarCloseButton = QStyle::SC_TitleBarCloseButton, SC_TitleBarNormalButton = QStyle::SC_TitleBarNormalButton, SC_TitleBarShadeButton = QStyle::SC_TitleBarShadeButton, SC_TitleBarUnshadeButton = QStyle::SC_TitleBarUnshadeButton, SC_TitleBarContextHelpButton = QStyle::SC_TitleBarContextHelpButton, SC_TitleBarLabel = QStyle::SC_TitleBarLabel, SC_Q3ListView = QStyle::SC_Q3ListView, SC_Q3ListViewBranch = QStyle::SC_Q3ListViewBranch, SC_Q3ListViewExpand = QStyle::SC_Q3ListViewExpand, SC_DialGroove = QStyle::SC_DialGroove, SC_DialHandle = QStyle::SC_DialHandle, SC_DialTickmarks = QStyle::SC_DialTickmarks, SC_GroupBoxCheckBox = QStyle::SC_GroupBoxCheckBox, SC_GroupBoxLabel = QStyle::SC_GroupBoxLabel, SC_GroupBoxContents = QStyle::SC_GroupBoxContents, SC_GroupBoxFrame = QStyle::SC_GroupBoxFrame, SC_MdiMinButton = QStyle::SC_MdiMinButton, SC_MdiNormalButton = QStyle::SC_MdiNormalButton, SC_MdiCloseButton = QStyle::SC_MdiCloseButton, SC_CustomBase = QStyle::SC_CustomBase, SC_All = QStyle::SC_All}; -enum StandardPixmap{ - SP_TitleBarMenuButton = QStyle::SP_TitleBarMenuButton, SP_TitleBarMinButton = QStyle::SP_TitleBarMinButton, SP_TitleBarMaxButton = QStyle::SP_TitleBarMaxButton, SP_TitleBarCloseButton = QStyle::SP_TitleBarCloseButton, SP_TitleBarNormalButton = QStyle::SP_TitleBarNormalButton, SP_TitleBarShadeButton = QStyle::SP_TitleBarShadeButton, SP_TitleBarUnshadeButton = QStyle::SP_TitleBarUnshadeButton, SP_TitleBarContextHelpButton = QStyle::SP_TitleBarContextHelpButton, SP_DockWidgetCloseButton = QStyle::SP_DockWidgetCloseButton, SP_MessageBoxInformation = QStyle::SP_MessageBoxInformation, SP_MessageBoxWarning = QStyle::SP_MessageBoxWarning, SP_MessageBoxCritical = QStyle::SP_MessageBoxCritical, SP_MessageBoxQuestion = QStyle::SP_MessageBoxQuestion, SP_DesktopIcon = QStyle::SP_DesktopIcon, SP_TrashIcon = QStyle::SP_TrashIcon, SP_ComputerIcon = QStyle::SP_ComputerIcon, SP_DriveFDIcon = QStyle::SP_DriveFDIcon, SP_DriveHDIcon = QStyle::SP_DriveHDIcon, SP_DriveCDIcon = QStyle::SP_DriveCDIcon, SP_DriveDVDIcon = QStyle::SP_DriveDVDIcon, SP_DriveNetIcon = QStyle::SP_DriveNetIcon, SP_DirOpenIcon = QStyle::SP_DirOpenIcon, SP_DirClosedIcon = QStyle::SP_DirClosedIcon, SP_DirLinkIcon = QStyle::SP_DirLinkIcon, SP_FileIcon = QStyle::SP_FileIcon, SP_FileLinkIcon = QStyle::SP_FileLinkIcon, SP_ToolBarHorizontalExtensionButton = QStyle::SP_ToolBarHorizontalExtensionButton, SP_ToolBarVerticalExtensionButton = QStyle::SP_ToolBarVerticalExtensionButton, SP_FileDialogStart = QStyle::SP_FileDialogStart, SP_FileDialogEnd = QStyle::SP_FileDialogEnd, SP_FileDialogToParent = QStyle::SP_FileDialogToParent, SP_FileDialogNewFolder = QStyle::SP_FileDialogNewFolder, SP_FileDialogDetailedView = QStyle::SP_FileDialogDetailedView, SP_FileDialogInfoView = QStyle::SP_FileDialogInfoView, SP_FileDialogContentsView = QStyle::SP_FileDialogContentsView, SP_FileDialogListView = QStyle::SP_FileDialogListView, SP_FileDialogBack = QStyle::SP_FileDialogBack, SP_DirIcon = QStyle::SP_DirIcon, SP_DialogOkButton = QStyle::SP_DialogOkButton, SP_DialogCancelButton = QStyle::SP_DialogCancelButton, SP_DialogHelpButton = QStyle::SP_DialogHelpButton, SP_DialogOpenButton = QStyle::SP_DialogOpenButton, SP_DialogSaveButton = QStyle::SP_DialogSaveButton, SP_DialogCloseButton = QStyle::SP_DialogCloseButton, SP_DialogApplyButton = QStyle::SP_DialogApplyButton, SP_DialogResetButton = QStyle::SP_DialogResetButton, SP_DialogDiscardButton = QStyle::SP_DialogDiscardButton, SP_DialogYesButton = QStyle::SP_DialogYesButton, SP_DialogNoButton = QStyle::SP_DialogNoButton, SP_ArrowUp = QStyle::SP_ArrowUp, SP_ArrowDown = QStyle::SP_ArrowDown, SP_ArrowLeft = QStyle::SP_ArrowLeft, SP_ArrowRight = QStyle::SP_ArrowRight, SP_ArrowBack = QStyle::SP_ArrowBack, SP_ArrowForward = QStyle::SP_ArrowForward, SP_DirHomeIcon = QStyle::SP_DirHomeIcon, SP_CommandLink = QStyle::SP_CommandLink, SP_VistaShield = QStyle::SP_VistaShield, SP_BrowserReload = QStyle::SP_BrowserReload, SP_BrowserStop = QStyle::SP_BrowserStop, SP_MediaPlay = QStyle::SP_MediaPlay, SP_MediaStop = QStyle::SP_MediaStop, SP_MediaPause = QStyle::SP_MediaPause, SP_MediaSkipForward = QStyle::SP_MediaSkipForward, SP_MediaSkipBackward = QStyle::SP_MediaSkipBackward, SP_MediaSeekForward = QStyle::SP_MediaSeekForward, SP_MediaSeekBackward = QStyle::SP_MediaSeekBackward, SP_MediaVolume = QStyle::SP_MediaVolume, SP_MediaVolumeMuted = QStyle::SP_MediaVolumeMuted, SP_CustomBase = QStyle::SP_CustomBase}; -enum StyleHint{ - SH_EtchDisabledText = QStyle::SH_EtchDisabledText, SH_DitherDisabledText = QStyle::SH_DitherDisabledText, SH_ScrollBar_MiddleClickAbsolutePosition = QStyle::SH_ScrollBar_MiddleClickAbsolutePosition, SH_ScrollBar_ScrollWhenPointerLeavesControl = QStyle::SH_ScrollBar_ScrollWhenPointerLeavesControl, SH_TabBar_SelectMouseType = QStyle::SH_TabBar_SelectMouseType, SH_TabBar_Alignment = QStyle::SH_TabBar_Alignment, SH_Header_ArrowAlignment = QStyle::SH_Header_ArrowAlignment, SH_Slider_SnapToValue = QStyle::SH_Slider_SnapToValue, SH_Slider_SloppyKeyEvents = QStyle::SH_Slider_SloppyKeyEvents, SH_ProgressDialog_CenterCancelButton = QStyle::SH_ProgressDialog_CenterCancelButton, SH_ProgressDialog_TextLabelAlignment = QStyle::SH_ProgressDialog_TextLabelAlignment, SH_PrintDialog_RightAlignButtons = QStyle::SH_PrintDialog_RightAlignButtons, SH_MainWindow_SpaceBelowMenuBar = QStyle::SH_MainWindow_SpaceBelowMenuBar, SH_FontDialog_SelectAssociatedText = QStyle::SH_FontDialog_SelectAssociatedText, SH_Menu_AllowActiveAndDisabled = QStyle::SH_Menu_AllowActiveAndDisabled, SH_Menu_SpaceActivatesItem = QStyle::SH_Menu_SpaceActivatesItem, SH_Menu_SubMenuPopupDelay = QStyle::SH_Menu_SubMenuPopupDelay, SH_ScrollView_FrameOnlyAroundContents = QStyle::SH_ScrollView_FrameOnlyAroundContents, SH_MenuBar_AltKeyNavigation = QStyle::SH_MenuBar_AltKeyNavigation, SH_ComboBox_ListMouseTracking = QStyle::SH_ComboBox_ListMouseTracking, SH_Menu_MouseTracking = QStyle::SH_Menu_MouseTracking, SH_MenuBar_MouseTracking = QStyle::SH_MenuBar_MouseTracking, SH_ItemView_ChangeHighlightOnFocus = QStyle::SH_ItemView_ChangeHighlightOnFocus, SH_Widget_ShareActivation = QStyle::SH_Widget_ShareActivation, SH_Workspace_FillSpaceOnMaximize = QStyle::SH_Workspace_FillSpaceOnMaximize, SH_ComboBox_Popup = QStyle::SH_ComboBox_Popup, SH_TitleBar_NoBorder = QStyle::SH_TitleBar_NoBorder, SH_Slider_StopMouseOverSlider = QStyle::SH_Slider_StopMouseOverSlider, SH_ScrollBar_StopMouseOverSlider = QStyle::SH_ScrollBar_StopMouseOverSlider, SH_BlinkCursorWhenTextSelected = QStyle::SH_BlinkCursorWhenTextSelected, SH_RichText_FullWidthSelection = QStyle::SH_RichText_FullWidthSelection, SH_Menu_Scrollable = QStyle::SH_Menu_Scrollable, SH_GroupBox_TextLabelVerticalAlignment = QStyle::SH_GroupBox_TextLabelVerticalAlignment, SH_GroupBox_TextLabelColor = QStyle::SH_GroupBox_TextLabelColor, SH_Menu_SloppySubMenus = QStyle::SH_Menu_SloppySubMenus, SH_Table_GridLineColor = QStyle::SH_Table_GridLineColor, SH_LineEdit_PasswordCharacter = QStyle::SH_LineEdit_PasswordCharacter, SH_DialogButtons_DefaultButton = QStyle::SH_DialogButtons_DefaultButton, SH_ToolBox_SelectedPageTitleBold = QStyle::SH_ToolBox_SelectedPageTitleBold, SH_TabBar_PreferNoArrows = QStyle::SH_TabBar_PreferNoArrows, SH_ScrollBar_LeftClickAbsolutePosition = QStyle::SH_ScrollBar_LeftClickAbsolutePosition, SH_Q3ListViewExpand_SelectMouseType = QStyle::SH_Q3ListViewExpand_SelectMouseType, SH_UnderlineShortcut = QStyle::SH_UnderlineShortcut, SH_SpinBox_AnimateButton = QStyle::SH_SpinBox_AnimateButton, SH_SpinBox_KeyPressAutoRepeatRate = QStyle::SH_SpinBox_KeyPressAutoRepeatRate, SH_SpinBox_ClickAutoRepeatRate = QStyle::SH_SpinBox_ClickAutoRepeatRate, SH_Menu_FillScreenWithScroll = QStyle::SH_Menu_FillScreenWithScroll, SH_ToolTipLabel_Opacity = QStyle::SH_ToolTipLabel_Opacity, SH_DrawMenuBarSeparator = QStyle::SH_DrawMenuBarSeparator, SH_TitleBar_ModifyNotification = QStyle::SH_TitleBar_ModifyNotification, SH_Button_FocusPolicy = QStyle::SH_Button_FocusPolicy, SH_MenuBar_DismissOnSecondClick = QStyle::SH_MenuBar_DismissOnSecondClick, SH_MessageBox_UseBorderForButtonSpacing = QStyle::SH_MessageBox_UseBorderForButtonSpacing, SH_TitleBar_AutoRaise = QStyle::SH_TitleBar_AutoRaise, SH_ToolButton_PopupDelay = QStyle::SH_ToolButton_PopupDelay, SH_FocusFrame_Mask = QStyle::SH_FocusFrame_Mask, SH_RubberBand_Mask = QStyle::SH_RubberBand_Mask, SH_WindowFrame_Mask = QStyle::SH_WindowFrame_Mask, SH_SpinControls_DisableOnBounds = QStyle::SH_SpinControls_DisableOnBounds, SH_Dial_BackgroundRole = QStyle::SH_Dial_BackgroundRole, SH_ComboBox_LayoutDirection = QStyle::SH_ComboBox_LayoutDirection, SH_ItemView_EllipsisLocation = QStyle::SH_ItemView_EllipsisLocation, SH_ItemView_ShowDecorationSelected = QStyle::SH_ItemView_ShowDecorationSelected, SH_ItemView_ActivateItemOnSingleClick = QStyle::SH_ItemView_ActivateItemOnSingleClick, SH_ScrollBar_ContextMenu = QStyle::SH_ScrollBar_ContextMenu, SH_ScrollBar_RollBetweenButtons = QStyle::SH_ScrollBar_RollBetweenButtons, SH_Slider_AbsoluteSetButtons = QStyle::SH_Slider_AbsoluteSetButtons, SH_Slider_PageSetButtons = QStyle::SH_Slider_PageSetButtons, SH_Menu_KeyboardSearch = QStyle::SH_Menu_KeyboardSearch, SH_TabBar_ElideMode = QStyle::SH_TabBar_ElideMode, SH_DialogButtonLayout = QStyle::SH_DialogButtonLayout, SH_ComboBox_PopupFrameStyle = QStyle::SH_ComboBox_PopupFrameStyle, SH_MessageBox_TextInteractionFlags = QStyle::SH_MessageBox_TextInteractionFlags, SH_DialogButtonBox_ButtonsHaveIcons = QStyle::SH_DialogButtonBox_ButtonsHaveIcons, SH_SpellCheckUnderlineStyle = QStyle::SH_SpellCheckUnderlineStyle, SH_MessageBox_CenterButtons = QStyle::SH_MessageBox_CenterButtons, SH_Menu_SelectionWrap = QStyle::SH_Menu_SelectionWrap, SH_ItemView_MovementWithoutUpdatingSelection = QStyle::SH_ItemView_MovementWithoutUpdatingSelection, SH_ToolTip_Mask = QStyle::SH_ToolTip_Mask, SH_FocusFrame_AboveWidget = QStyle::SH_FocusFrame_AboveWidget, SH_TextControl_FocusIndicatorTextCharFormat = QStyle::SH_TextControl_FocusIndicatorTextCharFormat, SH_WizardStyle = QStyle::SH_WizardStyle, SH_ItemView_ArrowKeysNavigateIntoChildren = QStyle::SH_ItemView_ArrowKeysNavigateIntoChildren, SH_Menu_Mask = QStyle::SH_Menu_Mask, SH_Menu_FlashTriggeredItem = QStyle::SH_Menu_FlashTriggeredItem, SH_Menu_FadeOutOnHide = QStyle::SH_Menu_FadeOutOnHide, SH_SpinBox_ClickAutoRepeatThreshold = QStyle::SH_SpinBox_ClickAutoRepeatThreshold, SH_ItemView_PaintAlternatingRowColorsForEmptyArea = QStyle::SH_ItemView_PaintAlternatingRowColorsForEmptyArea, SH_FormLayoutWrapPolicy = QStyle::SH_FormLayoutWrapPolicy, SH_TabWidget_DefaultTabPosition = QStyle::SH_TabWidget_DefaultTabPosition, SH_ToolBar_Movable = QStyle::SH_ToolBar_Movable, SH_FormLayoutFieldGrowthPolicy = QStyle::SH_FormLayoutFieldGrowthPolicy, SH_FormLayoutFormAlignment = QStyle::SH_FormLayoutFormAlignment, SH_FormLayoutLabelAlignment = QStyle::SH_FormLayoutLabelAlignment, SH_ItemView_DrawDelegateFrame = QStyle::SH_ItemView_DrawDelegateFrame, SH_TabBar_CloseButtonPosition = QStyle::SH_TabBar_CloseButtonPosition, SH_DockWidget_ButtonsHaveFrame = QStyle::SH_DockWidget_ButtonsHaveFrame, SH_ToolButtonStyle = QStyle::SH_ToolButtonStyle, SH_RequestSoftwareInputPanel = QStyle::SH_RequestSoftwareInputPanel, SH_CustomBase = QStyle::SH_CustomBase}; -enum PrimitiveElement{ - PE_Q3CheckListController = QStyle::PE_Q3CheckListController, PE_Q3CheckListExclusiveIndicator = QStyle::PE_Q3CheckListExclusiveIndicator, PE_Q3CheckListIndicator = QStyle::PE_Q3CheckListIndicator, PE_Q3DockWindowSeparator = QStyle::PE_Q3DockWindowSeparator, PE_Q3Separator = QStyle::PE_Q3Separator, PE_Frame = QStyle::PE_Frame, PE_FrameDefaultButton = QStyle::PE_FrameDefaultButton, PE_FrameDockWidget = QStyle::PE_FrameDockWidget, PE_FrameFocusRect = QStyle::PE_FrameFocusRect, PE_FrameGroupBox = QStyle::PE_FrameGroupBox, PE_FrameLineEdit = QStyle::PE_FrameLineEdit, PE_FrameMenu = QStyle::PE_FrameMenu, PE_FrameStatusBar = QStyle::PE_FrameStatusBar, PE_FrameStatusBarItem = QStyle::PE_FrameStatusBarItem, PE_FrameTabWidget = QStyle::PE_FrameTabWidget, PE_FrameWindow = QStyle::PE_FrameWindow, PE_FrameButtonBevel = QStyle::PE_FrameButtonBevel, PE_FrameButtonTool = QStyle::PE_FrameButtonTool, PE_FrameTabBarBase = QStyle::PE_FrameTabBarBase, PE_PanelButtonCommand = QStyle::PE_PanelButtonCommand, PE_PanelButtonBevel = QStyle::PE_PanelButtonBevel, PE_PanelButtonTool = QStyle::PE_PanelButtonTool, PE_PanelMenuBar = QStyle::PE_PanelMenuBar, PE_PanelToolBar = QStyle::PE_PanelToolBar, PE_PanelLineEdit = QStyle::PE_PanelLineEdit, PE_IndicatorArrowDown = QStyle::PE_IndicatorArrowDown, PE_IndicatorArrowLeft = QStyle::PE_IndicatorArrowLeft, PE_IndicatorArrowRight = QStyle::PE_IndicatorArrowRight, PE_IndicatorArrowUp = QStyle::PE_IndicatorArrowUp, PE_IndicatorBranch = QStyle::PE_IndicatorBranch, PE_IndicatorButtonDropDown = QStyle::PE_IndicatorButtonDropDown, PE_IndicatorViewItemCheck = QStyle::PE_IndicatorViewItemCheck, PE_IndicatorItemViewItemCheck = QStyle::PE_IndicatorItemViewItemCheck, PE_IndicatorCheckBox = QStyle::PE_IndicatorCheckBox, PE_IndicatorDockWidgetResizeHandle = QStyle::PE_IndicatorDockWidgetResizeHandle, PE_IndicatorHeaderArrow = QStyle::PE_IndicatorHeaderArrow, PE_IndicatorMenuCheckMark = QStyle::PE_IndicatorMenuCheckMark, PE_IndicatorProgressChunk = QStyle::PE_IndicatorProgressChunk, PE_IndicatorRadioButton = QStyle::PE_IndicatorRadioButton, PE_IndicatorSpinDown = QStyle::PE_IndicatorSpinDown, PE_IndicatorSpinMinus = QStyle::PE_IndicatorSpinMinus, PE_IndicatorSpinPlus = QStyle::PE_IndicatorSpinPlus, PE_IndicatorSpinUp = QStyle::PE_IndicatorSpinUp, PE_IndicatorToolBarHandle = QStyle::PE_IndicatorToolBarHandle, PE_IndicatorToolBarSeparator = QStyle::PE_IndicatorToolBarSeparator, PE_PanelTipLabel = QStyle::PE_PanelTipLabel, PE_IndicatorTabTear = QStyle::PE_IndicatorTabTear, PE_PanelScrollAreaCorner = QStyle::PE_PanelScrollAreaCorner, PE_Widget = QStyle::PE_Widget, PE_IndicatorColumnViewArrow = QStyle::PE_IndicatorColumnViewArrow, PE_IndicatorItemViewItemDrop = QStyle::PE_IndicatorItemViewItemDrop, PE_PanelItemViewItem = QStyle::PE_PanelItemViewItem, PE_PanelItemViewRow = QStyle::PE_PanelItemViewRow, PE_PanelStatusBar = QStyle::PE_PanelStatusBar, PE_IndicatorTabClose = QStyle::PE_IndicatorTabClose, PE_PanelMenu = QStyle::PE_PanelMenu, PE_CustomBase = QStyle::PE_CustomBase}; -enum ControlElement{ - CE_PushButton = QStyle::CE_PushButton, CE_PushButtonBevel = QStyle::CE_PushButtonBevel, CE_PushButtonLabel = QStyle::CE_PushButtonLabel, CE_CheckBox = QStyle::CE_CheckBox, CE_CheckBoxLabel = QStyle::CE_CheckBoxLabel, CE_RadioButton = QStyle::CE_RadioButton, CE_RadioButtonLabel = QStyle::CE_RadioButtonLabel, CE_TabBarTab = QStyle::CE_TabBarTab, CE_TabBarTabShape = QStyle::CE_TabBarTabShape, CE_TabBarTabLabel = QStyle::CE_TabBarTabLabel, CE_ProgressBar = QStyle::CE_ProgressBar, CE_ProgressBarGroove = QStyle::CE_ProgressBarGroove, CE_ProgressBarContents = QStyle::CE_ProgressBarContents, CE_ProgressBarLabel = QStyle::CE_ProgressBarLabel, CE_MenuItem = QStyle::CE_MenuItem, CE_MenuScroller = QStyle::CE_MenuScroller, CE_MenuVMargin = QStyle::CE_MenuVMargin, CE_MenuHMargin = QStyle::CE_MenuHMargin, CE_MenuTearoff = QStyle::CE_MenuTearoff, CE_MenuEmptyArea = QStyle::CE_MenuEmptyArea, CE_MenuBarItem = QStyle::CE_MenuBarItem, CE_MenuBarEmptyArea = QStyle::CE_MenuBarEmptyArea, CE_ToolButtonLabel = QStyle::CE_ToolButtonLabel, CE_Header = QStyle::CE_Header, CE_HeaderSection = QStyle::CE_HeaderSection, CE_HeaderLabel = QStyle::CE_HeaderLabel, CE_Q3DockWindowEmptyArea = QStyle::CE_Q3DockWindowEmptyArea, CE_ToolBoxTab = QStyle::CE_ToolBoxTab, CE_SizeGrip = QStyle::CE_SizeGrip, CE_Splitter = QStyle::CE_Splitter, CE_RubberBand = QStyle::CE_RubberBand, CE_DockWidgetTitle = QStyle::CE_DockWidgetTitle, CE_ScrollBarAddLine = QStyle::CE_ScrollBarAddLine, CE_ScrollBarSubLine = QStyle::CE_ScrollBarSubLine, CE_ScrollBarAddPage = QStyle::CE_ScrollBarAddPage, CE_ScrollBarSubPage = QStyle::CE_ScrollBarSubPage, CE_ScrollBarSlider = QStyle::CE_ScrollBarSlider, CE_ScrollBarFirst = QStyle::CE_ScrollBarFirst, CE_ScrollBarLast = QStyle::CE_ScrollBarLast, CE_FocusFrame = QStyle::CE_FocusFrame, CE_ComboBoxLabel = QStyle::CE_ComboBoxLabel, CE_ToolBar = QStyle::CE_ToolBar, CE_ToolBoxTabShape = QStyle::CE_ToolBoxTabShape, CE_ToolBoxTabLabel = QStyle::CE_ToolBoxTabLabel, CE_HeaderEmptyArea = QStyle::CE_HeaderEmptyArea, CE_ColumnViewGrip = QStyle::CE_ColumnViewGrip, CE_ItemViewItem = QStyle::CE_ItemViewItem, CE_ShapedFrame = QStyle::CE_ShapedFrame, CE_CustomBase = QStyle::CE_CustomBase}; -enum ContentsType{ - CT_PushButton = QStyle::CT_PushButton, CT_CheckBox = QStyle::CT_CheckBox, CT_RadioButton = QStyle::CT_RadioButton, CT_ToolButton = QStyle::CT_ToolButton, CT_ComboBox = QStyle::CT_ComboBox, CT_Splitter = QStyle::CT_Splitter, CT_Q3DockWindow = QStyle::CT_Q3DockWindow, CT_ProgressBar = QStyle::CT_ProgressBar, CT_MenuItem = QStyle::CT_MenuItem, CT_MenuBarItem = QStyle::CT_MenuBarItem, CT_MenuBar = QStyle::CT_MenuBar, CT_Menu = QStyle::CT_Menu, CT_TabBarTab = QStyle::CT_TabBarTab, CT_Slider = QStyle::CT_Slider, CT_ScrollBar = QStyle::CT_ScrollBar, CT_Q3Header = QStyle::CT_Q3Header, CT_LineEdit = QStyle::CT_LineEdit, CT_SpinBox = QStyle::CT_SpinBox, CT_SizeGrip = QStyle::CT_SizeGrip, CT_TabWidget = QStyle::CT_TabWidget, CT_DialogButtons = QStyle::CT_DialogButtons, CT_HeaderSection = QStyle::CT_HeaderSection, CT_GroupBox = QStyle::CT_GroupBox, CT_MdiControls = QStyle::CT_MdiControls, CT_ItemViewItem = QStyle::CT_ItemViewItem, CT_CustomBase = QStyle::CT_CustomBase}; -enum StateFlag{ - State_None = QStyle::State_None, State_Enabled = QStyle::State_Enabled, State_Raised = QStyle::State_Raised, State_Sunken = QStyle::State_Sunken, State_Off = QStyle::State_Off, State_NoChange = QStyle::State_NoChange, State_On = QStyle::State_On, State_DownArrow = QStyle::State_DownArrow, State_Horizontal = QStyle::State_Horizontal, State_HasFocus = QStyle::State_HasFocus, State_Top = QStyle::State_Top, State_Bottom = QStyle::State_Bottom, State_FocusAtBorder = QStyle::State_FocusAtBorder, State_AutoRaise = QStyle::State_AutoRaise, State_MouseOver = QStyle::State_MouseOver, State_UpArrow = QStyle::State_UpArrow, State_Selected = QStyle::State_Selected, State_Active = QStyle::State_Active, State_Window = QStyle::State_Window, State_Open = QStyle::State_Open, State_Children = QStyle::State_Children, State_Item = QStyle::State_Item, State_Sibling = QStyle::State_Sibling, State_Editing = QStyle::State_Editing, State_KeyboardFocusChange = QStyle::State_KeyboardFocusChange, State_ReadOnly = QStyle::State_ReadOnly, State_Small = QStyle::State_Small, State_Mini = QStyle::State_Mini}; -enum ComplexControl{ - CC_SpinBox = QStyle::CC_SpinBox, CC_ComboBox = QStyle::CC_ComboBox, CC_ScrollBar = QStyle::CC_ScrollBar, CC_Slider = QStyle::CC_Slider, CC_ToolButton = QStyle::CC_ToolButton, CC_TitleBar = QStyle::CC_TitleBar, CC_Q3ListView = QStyle::CC_Q3ListView, CC_Dial = QStyle::CC_Dial, CC_GroupBox = QStyle::CC_GroupBox, CC_MdiControls = QStyle::CC_MdiControls, CC_CustomBase = QStyle::CC_CustomBase}; -enum RequestSoftwareInputPanel{ - RSIP_OnMouseClickAndAlreadyFocused = QStyle::RSIP_OnMouseClickAndAlreadyFocused, RSIP_OnMouseClick = QStyle::RSIP_OnMouseClick}; -enum SubElement{ - SE_PushButtonContents = QStyle::SE_PushButtonContents, SE_PushButtonFocusRect = QStyle::SE_PushButtonFocusRect, SE_CheckBoxIndicator = QStyle::SE_CheckBoxIndicator, SE_CheckBoxContents = QStyle::SE_CheckBoxContents, SE_CheckBoxFocusRect = QStyle::SE_CheckBoxFocusRect, SE_CheckBoxClickRect = QStyle::SE_CheckBoxClickRect, SE_RadioButtonIndicator = QStyle::SE_RadioButtonIndicator, SE_RadioButtonContents = QStyle::SE_RadioButtonContents, SE_RadioButtonFocusRect = QStyle::SE_RadioButtonFocusRect, SE_RadioButtonClickRect = QStyle::SE_RadioButtonClickRect, SE_ComboBoxFocusRect = QStyle::SE_ComboBoxFocusRect, SE_SliderFocusRect = QStyle::SE_SliderFocusRect, SE_Q3DockWindowHandleRect = QStyle::SE_Q3DockWindowHandleRect, SE_ProgressBarGroove = QStyle::SE_ProgressBarGroove, SE_ProgressBarContents = QStyle::SE_ProgressBarContents, SE_ProgressBarLabel = QStyle::SE_ProgressBarLabel, SE_DialogButtonAccept = QStyle::SE_DialogButtonAccept, SE_DialogButtonReject = QStyle::SE_DialogButtonReject, SE_DialogButtonApply = QStyle::SE_DialogButtonApply, SE_DialogButtonHelp = QStyle::SE_DialogButtonHelp, SE_DialogButtonAll = QStyle::SE_DialogButtonAll, SE_DialogButtonAbort = QStyle::SE_DialogButtonAbort, SE_DialogButtonIgnore = QStyle::SE_DialogButtonIgnore, SE_DialogButtonRetry = QStyle::SE_DialogButtonRetry, SE_DialogButtonCustom = QStyle::SE_DialogButtonCustom, SE_ToolBoxTabContents = QStyle::SE_ToolBoxTabContents, SE_HeaderLabel = QStyle::SE_HeaderLabel, SE_HeaderArrow = QStyle::SE_HeaderArrow, SE_TabWidgetTabBar = QStyle::SE_TabWidgetTabBar, SE_TabWidgetTabPane = QStyle::SE_TabWidgetTabPane, SE_TabWidgetTabContents = QStyle::SE_TabWidgetTabContents, SE_TabWidgetLeftCorner = QStyle::SE_TabWidgetLeftCorner, SE_TabWidgetRightCorner = QStyle::SE_TabWidgetRightCorner, SE_ViewItemCheckIndicator = QStyle::SE_ViewItemCheckIndicator, SE_ItemViewItemCheckIndicator = QStyle::SE_ItemViewItemCheckIndicator, SE_TabBarTearIndicator = QStyle::SE_TabBarTearIndicator, SE_TreeViewDisclosureItem = QStyle::SE_TreeViewDisclosureItem, SE_LineEditContents = QStyle::SE_LineEditContents, SE_FrameContents = QStyle::SE_FrameContents, SE_DockWidgetCloseButton = QStyle::SE_DockWidgetCloseButton, SE_DockWidgetFloatButton = QStyle::SE_DockWidgetFloatButton, SE_DockWidgetTitleBarText = QStyle::SE_DockWidgetTitleBarText, SE_DockWidgetIcon = QStyle::SE_DockWidgetIcon, SE_CheckBoxLayoutItem = QStyle::SE_CheckBoxLayoutItem, SE_ComboBoxLayoutItem = QStyle::SE_ComboBoxLayoutItem, SE_DateTimeEditLayoutItem = QStyle::SE_DateTimeEditLayoutItem, SE_DialogButtonBoxLayoutItem = QStyle::SE_DialogButtonBoxLayoutItem, SE_LabelLayoutItem = QStyle::SE_LabelLayoutItem, SE_ProgressBarLayoutItem = QStyle::SE_ProgressBarLayoutItem, SE_PushButtonLayoutItem = QStyle::SE_PushButtonLayoutItem, SE_RadioButtonLayoutItem = QStyle::SE_RadioButtonLayoutItem, SE_SliderLayoutItem = QStyle::SE_SliderLayoutItem, SE_SpinBoxLayoutItem = QStyle::SE_SpinBoxLayoutItem, SE_ToolButtonLayoutItem = QStyle::SE_ToolButtonLayoutItem, SE_FrameLayoutItem = QStyle::SE_FrameLayoutItem, SE_GroupBoxLayoutItem = QStyle::SE_GroupBoxLayoutItem, SE_TabWidgetLayoutItem = QStyle::SE_TabWidgetLayoutItem, SE_ItemViewItemDecoration = QStyle::SE_ItemViewItemDecoration, SE_ItemViewItemText = QStyle::SE_ItemViewItemText, SE_ItemViewItemFocusRect = QStyle::SE_ItemViewItemFocusRect, SE_TabBarTabLeftButton = QStyle::SE_TabBarTabLeftButton, SE_TabBarTabRightButton = QStyle::SE_TabBarTabRightButton, SE_TabBarTabText = QStyle::SE_TabBarTabText, SE_ShapedFrameContents = QStyle::SE_ShapedFrameContents, SE_ToolBarHandle = QStyle::SE_ToolBarHandle, SE_CustomBase = QStyle::SE_CustomBase}; -Q_DECLARE_FLAGS(SubControls, SubControl) -Q_DECLARE_FLAGS(State, StateFlag) -public slots: -QStyle* new_QStyle(); -void delete_QStyle(QStyle* obj) { delete obj; } - QRect static_QStyle_alignedRect(Qt::LayoutDirection direction, Qt::Alignment alignment, const QSize& size, const QRect& rectangle); - int combinedLayoutSpacing(QStyle* theWrappedObject, QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption* option = 0, QWidget* widget = 0) const; - void drawItemPixmap(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int alignment, const QPixmap& pixmap) const; - void drawItemText(QStyle* theWrappedObject, QPainter* painter, const QRect& rect, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole) const; - QRect itemPixmapRect(QStyle* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) const; - int layoutSpacing(QStyle* theWrappedObject, QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption* option = 0, const QWidget* widget = 0) const; - void polish(QStyle* theWrappedObject, QApplication* arg__1); - void polish(QStyle* theWrappedObject, QPalette& arg__1); - void polish(QStyle* theWrappedObject, QWidget* arg__1); - const QStyle* proxy(QStyle* theWrappedObject) const; - int static_QStyle_sliderPositionFromValue(int min, int max, int val, int space, bool upsideDown = false); - int static_QStyle_sliderValueFromPosition(int min, int max, int pos, int space, bool upsideDown = false); - QIcon standardIcon(QStyle* theWrappedObject, QStyle::StandardPixmap standardIcon, const QStyleOption* option = 0, const QWidget* widget = 0) const; - QPalette standardPalette(QStyle* theWrappedObject) const; - void unpolish(QStyle* theWrappedObject, QApplication* arg__1); - void unpolish(QStyle* theWrappedObject, QWidget* arg__1); - Qt::Alignment static_QStyle_visualAlignment(Qt::LayoutDirection direction, Qt::Alignment alignment); - QPoint static_QStyle_visualPos(Qt::LayoutDirection direction, const QRect& boundingRect, const QPoint& logicalPos); - QRect static_QStyle_visualRect(Qt::LayoutDirection direction, const QRect& boundingRect, const QRect& logicalRect); -}; - - - - - -class PythonQtShell_QStyleFactory : public QStyleFactory -{ -public: - PythonQtShell_QStyleFactory():QStyleFactory(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleFactory : public QObject -{ Q_OBJECT -public: -public slots: -QStyleFactory* new_QStyleFactory(); -void delete_QStyleFactory(QStyleFactory* obj) { delete obj; } - QStyle* static_QStyleFactory_create(const QString& arg__1); - QStringList static_QStyleFactory_keys(); -}; - - - - - -class PythonQtShell_QStyleHintReturn : public QStyleHintReturn -{ -public: - PythonQtShell_QStyleHintReturn(int version = QStyleOption::Version, int type = SH_Default):QStyleHintReturn(version, type),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleHintReturn : public QObject -{ Q_OBJECT -public: -Q_ENUMS(HintReturnType StyleOptionVersion StyleOptionType ) -enum HintReturnType{ - SH_Default = QStyleHintReturn::SH_Default, SH_Mask = QStyleHintReturn::SH_Mask, SH_Variant = QStyleHintReturn::SH_Variant}; -enum StyleOptionVersion{ - Version = QStyleHintReturn::Version}; -enum StyleOptionType{ - Type = QStyleHintReturn::Type}; -public slots: -QStyleHintReturn* new_QStyleHintReturn(int version = QStyleOption::Version, int type = SH_Default); -void delete_QStyleHintReturn(QStyleHintReturn* obj) { delete obj; } -void py_set_version(QStyleHintReturn* theWrappedObject, int version){ theWrappedObject->version = version; } -int py_get_version(QStyleHintReturn* theWrappedObject){ return theWrappedObject->version; } -void py_set_type(QStyleHintReturn* theWrappedObject, int type){ theWrappedObject->type = type; } -int py_get_type(QStyleHintReturn* theWrappedObject){ return theWrappedObject->type; } -}; - - - - - -class PythonQtShell_QStyleHintReturnMask : public QStyleHintReturnMask -{ -public: - PythonQtShell_QStyleHintReturnMask():QStyleHintReturnMask(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleHintReturnMask : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleHintReturnMask::Version}; -enum StyleOptionType{ - Type = QStyleHintReturnMask::Type}; -public slots: -QStyleHintReturnMask* new_QStyleHintReturnMask(); -void delete_QStyleHintReturnMask(QStyleHintReturnMask* obj) { delete obj; } -void py_set_region(QStyleHintReturnMask* theWrappedObject, QRegion region){ theWrappedObject->region = region; } -QRegion py_get_region(QStyleHintReturnMask* theWrappedObject){ return theWrappedObject->region; } -}; - - - - - -class PythonQtShell_QStyleHintReturnVariant : public QStyleHintReturnVariant -{ -public: - PythonQtShell_QStyleHintReturnVariant():QStyleHintReturnVariant(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleHintReturnVariant : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleHintReturnVariant::Version}; -enum StyleOptionType{ - Type = QStyleHintReturnVariant::Type}; -public slots: -QStyleHintReturnVariant* new_QStyleHintReturnVariant(); -void delete_QStyleHintReturnVariant(QStyleHintReturnVariant* obj) { delete obj; } -void py_set_variant(QStyleHintReturnVariant* theWrappedObject, QVariant variant){ theWrappedObject->variant = variant; } -QVariant py_get_variant(QStyleHintReturnVariant* theWrappedObject){ return theWrappedObject->variant; } -}; - - - - - -class PythonQtShell_QStyleOption : public QStyleOption -{ -public: - PythonQtShell_QStyleOption(const QStyleOption& other):QStyleOption(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOption(int version = QStyleOption::Version, int type = SO_Default):QStyleOption(version, type),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOption : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType OptionType ) -enum StyleOptionVersion{ - Version = QStyleOption::Version}; -enum StyleOptionType{ - Type = QStyleOption::Type}; -enum OptionType{ - SO_Default = QStyleOption::SO_Default, SO_FocusRect = QStyleOption::SO_FocusRect, SO_Button = QStyleOption::SO_Button, SO_Tab = QStyleOption::SO_Tab, SO_MenuItem = QStyleOption::SO_MenuItem, SO_Frame = QStyleOption::SO_Frame, SO_ProgressBar = QStyleOption::SO_ProgressBar, SO_ToolBox = QStyleOption::SO_ToolBox, SO_Header = QStyleOption::SO_Header, SO_Q3DockWindow = QStyleOption::SO_Q3DockWindow, SO_DockWidget = QStyleOption::SO_DockWidget, SO_Q3ListViewItem = QStyleOption::SO_Q3ListViewItem, SO_ViewItem = QStyleOption::SO_ViewItem, SO_TabWidgetFrame = QStyleOption::SO_TabWidgetFrame, SO_TabBarBase = QStyleOption::SO_TabBarBase, SO_RubberBand = QStyleOption::SO_RubberBand, SO_ToolBar = QStyleOption::SO_ToolBar, SO_GraphicsItem = QStyleOption::SO_GraphicsItem, SO_Complex = QStyleOption::SO_Complex, SO_Slider = QStyleOption::SO_Slider, SO_SpinBox = QStyleOption::SO_SpinBox, SO_ToolButton = QStyleOption::SO_ToolButton, SO_ComboBox = QStyleOption::SO_ComboBox, SO_Q3ListView = QStyleOption::SO_Q3ListView, SO_TitleBar = QStyleOption::SO_TitleBar, SO_GroupBox = QStyleOption::SO_GroupBox, SO_SizeGrip = QStyleOption::SO_SizeGrip, SO_CustomBase = QStyleOption::SO_CustomBase, SO_ComplexCustomBase = QStyleOption::SO_ComplexCustomBase}; -public slots: -QStyleOption* new_QStyleOption(const QStyleOption& other); -QStyleOption* new_QStyleOption(int version = QStyleOption::Version, int type = SO_Default); -void delete_QStyleOption(QStyleOption* obj) { delete obj; } - void initFrom(QStyleOption* theWrappedObject, const QWidget* w); - QString py_toString(QStyleOption*); -void py_set_palette(QStyleOption* theWrappedObject, QPalette palette){ theWrappedObject->palette = palette; } -QPalette py_get_palette(QStyleOption* theWrappedObject){ return theWrappedObject->palette; } -void py_set_version(QStyleOption* theWrappedObject, int version){ theWrappedObject->version = version; } -int py_get_version(QStyleOption* theWrappedObject){ return theWrappedObject->version; } -void py_set_direction(QStyleOption* theWrappedObject, Qt::LayoutDirection direction){ theWrappedObject->direction = direction; } -Qt::LayoutDirection py_get_direction(QStyleOption* theWrappedObject){ return theWrappedObject->direction; } -void py_set_rect(QStyleOption* theWrappedObject, QRect rect){ theWrappedObject->rect = rect; } -QRect py_get_rect(QStyleOption* theWrappedObject){ return theWrappedObject->rect; } -void py_set_type(QStyleOption* theWrappedObject, int type){ theWrappedObject->type = type; } -int py_get_type(QStyleOption* theWrappedObject){ return theWrappedObject->type; } -void py_set_state(QStyleOption* theWrappedObject, QStyle::State state){ theWrappedObject->state = state; } -QStyle::State py_get_state(QStyleOption* theWrappedObject){ return theWrappedObject->state; } -void py_set_fontMetrics(QStyleOption* theWrappedObject, QFontMetrics fontMetrics){ theWrappedObject->fontMetrics = fontMetrics; } -QFontMetrics py_get_fontMetrics(QStyleOption* theWrappedObject){ return theWrappedObject->fontMetrics; } -}; - - - - - -class PythonQtShell_QStyleOptionButton : public QStyleOptionButton -{ -public: - PythonQtShell_QStyleOptionButton():QStyleOptionButton(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionButton(const QStyleOptionButton& other):QStyleOptionButton(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionButton(int version):QStyleOptionButton(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionButton : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ButtonFeature StyleOptionType ) -Q_FLAGS(ButtonFeatures ) -enum StyleOptionVersion{ - Version = QStyleOptionButton::Version}; -enum ButtonFeature{ - None = QStyleOptionButton::None, Flat = QStyleOptionButton::Flat, HasMenu = QStyleOptionButton::HasMenu, DefaultButton = QStyleOptionButton::DefaultButton, AutoDefaultButton = QStyleOptionButton::AutoDefaultButton, CommandLinkButton = QStyleOptionButton::CommandLinkButton}; -enum StyleOptionType{ - Type = QStyleOptionButton::Type}; -Q_DECLARE_FLAGS(ButtonFeatures, ButtonFeature) -public slots: -QStyleOptionButton* new_QStyleOptionButton(); -QStyleOptionButton* new_QStyleOptionButton(const QStyleOptionButton& other); -void delete_QStyleOptionButton(QStyleOptionButton* obj) { delete obj; } -void py_set_iconSize(QStyleOptionButton* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } -QSize py_get_iconSize(QStyleOptionButton* theWrappedObject){ return theWrappedObject->iconSize; } -void py_set_features(QStyleOptionButton* theWrappedObject, QStyleOptionButton::ButtonFeatures features){ theWrappedObject->features = features; } -QStyleOptionButton::ButtonFeatures py_get_features(QStyleOptionButton* theWrappedObject){ return theWrappedObject->features; } -void py_set_icon(QStyleOptionButton* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionButton* theWrappedObject){ return theWrappedObject->icon; } -void py_set_text(QStyleOptionButton* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionButton* theWrappedObject){ return theWrappedObject->text; } -}; - - - - - -class PythonQtShell_QStyleOptionComboBox : public QStyleOptionComboBox -{ -public: - PythonQtShell_QStyleOptionComboBox():QStyleOptionComboBox(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionComboBox(const QStyleOptionComboBox& other):QStyleOptionComboBox(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionComboBox(int version):QStyleOptionComboBox(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionComboBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionComboBox::Version}; -enum StyleOptionType{ - Type = QStyleOptionComboBox::Type}; -public slots: -QStyleOptionComboBox* new_QStyleOptionComboBox(); -QStyleOptionComboBox* new_QStyleOptionComboBox(const QStyleOptionComboBox& other); -void delete_QStyleOptionComboBox(QStyleOptionComboBox* obj) { delete obj; } -void py_set_currentText(QStyleOptionComboBox* theWrappedObject, QString currentText){ theWrappedObject->currentText = currentText; } -QString py_get_currentText(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->currentText; } -void py_set_iconSize(QStyleOptionComboBox* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } -QSize py_get_iconSize(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->iconSize; } -void py_set_editable(QStyleOptionComboBox* theWrappedObject, bool editable){ theWrappedObject->editable = editable; } -bool py_get_editable(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->editable; } -void py_set_frame(QStyleOptionComboBox* theWrappedObject, bool frame){ theWrappedObject->frame = frame; } -bool py_get_frame(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->frame; } -void py_set_popupRect(QStyleOptionComboBox* theWrappedObject, QRect popupRect){ theWrappedObject->popupRect = popupRect; } -QRect py_get_popupRect(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->popupRect; } -void py_set_currentIcon(QStyleOptionComboBox* theWrappedObject, QIcon currentIcon){ theWrappedObject->currentIcon = currentIcon; } -QIcon py_get_currentIcon(QStyleOptionComboBox* theWrappedObject){ return theWrappedObject->currentIcon; } -}; - - - - - -class PythonQtShell_QStyleOptionDockWidget : public QStyleOptionDockWidget -{ -public: - PythonQtShell_QStyleOptionDockWidget():QStyleOptionDockWidget(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionDockWidget(const QStyleOptionDockWidget& other):QStyleOptionDockWidget(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionDockWidget(int version):QStyleOptionDockWidget(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionDockWidget : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionDockWidget::Version}; -enum StyleOptionType{ - Type = QStyleOptionDockWidget::Type}; -public slots: -QStyleOptionDockWidget* new_QStyleOptionDockWidget(); -QStyleOptionDockWidget* new_QStyleOptionDockWidget(const QStyleOptionDockWidget& other); -void delete_QStyleOptionDockWidget(QStyleOptionDockWidget* obj) { delete obj; } -void py_set_title(QStyleOptionDockWidget* theWrappedObject, QString title){ theWrappedObject->title = title; } -QString py_get_title(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->title; } -void py_set_floatable(QStyleOptionDockWidget* theWrappedObject, bool floatable){ theWrappedObject->floatable = floatable; } -bool py_get_floatable(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->floatable; } -void py_set_closable(QStyleOptionDockWidget* theWrappedObject, bool closable){ theWrappedObject->closable = closable; } -bool py_get_closable(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->closable; } -void py_set_movable(QStyleOptionDockWidget* theWrappedObject, bool movable){ theWrappedObject->movable = movable; } -bool py_get_movable(QStyleOptionDockWidget* theWrappedObject){ return theWrappedObject->movable; } -}; - - - - - -class PythonQtShell_QStyleOptionDockWidgetV2 : public QStyleOptionDockWidgetV2 -{ -public: - PythonQtShell_QStyleOptionDockWidgetV2():QStyleOptionDockWidgetV2(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionDockWidgetV2(const QStyleOptionDockWidget& other):QStyleOptionDockWidgetV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionDockWidgetV2(const QStyleOptionDockWidgetV2& other):QStyleOptionDockWidgetV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionDockWidgetV2(int version):QStyleOptionDockWidgetV2(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionDockWidgetV2 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ) -enum StyleOptionVersion{ - Version = QStyleOptionDockWidgetV2::Version}; -public slots: -QStyleOptionDockWidgetV2* new_QStyleOptionDockWidgetV2(); -QStyleOptionDockWidgetV2* new_QStyleOptionDockWidgetV2(const QStyleOptionDockWidget& other); -QStyleOptionDockWidgetV2* new_QStyleOptionDockWidgetV2(const QStyleOptionDockWidgetV2& other); -void delete_QStyleOptionDockWidgetV2(QStyleOptionDockWidgetV2* obj) { delete obj; } -void py_set_verticalTitleBar(QStyleOptionDockWidgetV2* theWrappedObject, bool verticalTitleBar){ theWrappedObject->verticalTitleBar = verticalTitleBar; } -bool py_get_verticalTitleBar(QStyleOptionDockWidgetV2* theWrappedObject){ return theWrappedObject->verticalTitleBar; } -}; - - - - - -class PythonQtShell_QStyleOptionFocusRect : public QStyleOptionFocusRect -{ -public: - PythonQtShell_QStyleOptionFocusRect():QStyleOptionFocusRect(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFocusRect(const QStyleOptionFocusRect& other):QStyleOptionFocusRect(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFocusRect(int version):QStyleOptionFocusRect(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionFocusRect : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionFocusRect::Version}; -enum StyleOptionType{ - Type = QStyleOptionFocusRect::Type}; -public slots: -QStyleOptionFocusRect* new_QStyleOptionFocusRect(); -QStyleOptionFocusRect* new_QStyleOptionFocusRect(const QStyleOptionFocusRect& other); -void delete_QStyleOptionFocusRect(QStyleOptionFocusRect* obj) { delete obj; } -void py_set_backgroundColor(QStyleOptionFocusRect* theWrappedObject, QColor backgroundColor){ theWrappedObject->backgroundColor = backgroundColor; } -QColor py_get_backgroundColor(QStyleOptionFocusRect* theWrappedObject){ return theWrappedObject->backgroundColor; } -}; - - - - - -class PythonQtShell_QStyleOptionFrame : public QStyleOptionFrame -{ -public: - PythonQtShell_QStyleOptionFrame():QStyleOptionFrame(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrame(const QStyleOptionFrame& other):QStyleOptionFrame(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrame(int version):QStyleOptionFrame(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionFrame : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionFrame::Version}; -enum StyleOptionType{ - Type = QStyleOptionFrame::Type}; -public slots: -QStyleOptionFrame* new_QStyleOptionFrame(); -QStyleOptionFrame* new_QStyleOptionFrame(const QStyleOptionFrame& other); -void delete_QStyleOptionFrame(QStyleOptionFrame* obj) { delete obj; } -void py_set_lineWidth(QStyleOptionFrame* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } -int py_get_lineWidth(QStyleOptionFrame* theWrappedObject){ return theWrappedObject->lineWidth; } -void py_set_midLineWidth(QStyleOptionFrame* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } -int py_get_midLineWidth(QStyleOptionFrame* theWrappedObject){ return theWrappedObject->midLineWidth; } -}; - - - - - -class PythonQtShell_QStyleOptionFrameV2 : public QStyleOptionFrameV2 -{ -public: - PythonQtShell_QStyleOptionFrameV2():QStyleOptionFrameV2(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrameV2(const QStyleOptionFrame& other):QStyleOptionFrameV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrameV2(const QStyleOptionFrameV2& other):QStyleOptionFrameV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrameV2(int version):QStyleOptionFrameV2(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionFrameV2 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion FrameFeature ) -Q_FLAGS(FrameFeatures ) -enum StyleOptionVersion{ - Version = QStyleOptionFrameV2::Version}; -enum FrameFeature{ - None = QStyleOptionFrameV2::None, Flat = QStyleOptionFrameV2::Flat}; -Q_DECLARE_FLAGS(FrameFeatures, FrameFeature) -public slots: -QStyleOptionFrameV2* new_QStyleOptionFrameV2(); -QStyleOptionFrameV2* new_QStyleOptionFrameV2(const QStyleOptionFrame& other); -QStyleOptionFrameV2* new_QStyleOptionFrameV2(const QStyleOptionFrameV2& other); -void delete_QStyleOptionFrameV2(QStyleOptionFrameV2* obj) { delete obj; } -void py_set_features(QStyleOptionFrameV2* theWrappedObject, QStyleOptionFrameV2::FrameFeatures features){ theWrappedObject->features = features; } -QStyleOptionFrameV2::FrameFeatures py_get_features(QStyleOptionFrameV2* theWrappedObject){ return theWrappedObject->features; } -}; - - - - - -class PythonQtShell_QStyleOptionFrameV3 : public QStyleOptionFrameV3 -{ -public: - PythonQtShell_QStyleOptionFrameV3():QStyleOptionFrameV3(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrameV3(const QStyleOptionFrame& other):QStyleOptionFrameV3(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrameV3(const QStyleOptionFrameV3& other):QStyleOptionFrameV3(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionFrameV3(int version):QStyleOptionFrameV3(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionFrameV3 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ) -enum StyleOptionVersion{ - Version = QStyleOptionFrameV3::Version}; -public slots: -QStyleOptionFrameV3* new_QStyleOptionFrameV3(); -QStyleOptionFrameV3* new_QStyleOptionFrameV3(const QStyleOptionFrame& other); -QStyleOptionFrameV3* new_QStyleOptionFrameV3(const QStyleOptionFrameV3& other); -void delete_QStyleOptionFrameV3(QStyleOptionFrameV3* obj) { delete obj; } -void py_set_frameShape(QStyleOptionFrameV3* theWrappedObject, QFrame::Shape frameShape){ theWrappedObject->frameShape = frameShape; } -QFrame::Shape py_get_frameShape(QStyleOptionFrameV3* theWrappedObject){ return theWrappedObject->frameShape; } -void py_set_unused(QStyleOptionFrameV3* theWrappedObject, uint unused){ theWrappedObject->unused = unused; } -uint py_get_unused(QStyleOptionFrameV3* theWrappedObject){ return theWrappedObject->unused; } -}; - - - - - -class PythonQtShell_QStyleOptionGraphicsItem : public QStyleOptionGraphicsItem -{ -public: - PythonQtShell_QStyleOptionGraphicsItem():QStyleOptionGraphicsItem(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem& other):QStyleOptionGraphicsItem(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionGraphicsItem(int version):QStyleOptionGraphicsItem(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionGraphicsItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionGraphicsItem::Version}; -enum StyleOptionType{ - Type = QStyleOptionGraphicsItem::Type}; -public slots: -QStyleOptionGraphicsItem* new_QStyleOptionGraphicsItem(); -QStyleOptionGraphicsItem* new_QStyleOptionGraphicsItem(const QStyleOptionGraphicsItem& other); -void delete_QStyleOptionGraphicsItem(QStyleOptionGraphicsItem* obj) { delete obj; } - qreal static_QStyleOptionGraphicsItem_levelOfDetailFromTransform(const QTransform& worldTransform); -void py_set_exposedRect(QStyleOptionGraphicsItem* theWrappedObject, QRectF exposedRect){ theWrappedObject->exposedRect = exposedRect; } -QRectF py_get_exposedRect(QStyleOptionGraphicsItem* theWrappedObject){ return theWrappedObject->exposedRect; } -void py_set_matrix(QStyleOptionGraphicsItem* theWrappedObject, QMatrix matrix){ theWrappedObject->matrix = matrix; } -QMatrix py_get_matrix(QStyleOptionGraphicsItem* theWrappedObject){ return theWrappedObject->matrix; } -void py_set_levelOfDetail(QStyleOptionGraphicsItem* theWrappedObject, qreal levelOfDetail){ theWrappedObject->levelOfDetail = levelOfDetail; } -qreal py_get_levelOfDetail(QStyleOptionGraphicsItem* theWrappedObject){ return theWrappedObject->levelOfDetail; } -}; - - - - - -class PythonQtShell_QStyleOptionGroupBox : public QStyleOptionGroupBox -{ -public: - PythonQtShell_QStyleOptionGroupBox():QStyleOptionGroupBox(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionGroupBox(const QStyleOptionGroupBox& other):QStyleOptionGroupBox(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionGroupBox(int version):QStyleOptionGroupBox(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionGroupBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionGroupBox::Version}; -enum StyleOptionType{ - Type = QStyleOptionGroupBox::Type}; -public slots: -QStyleOptionGroupBox* new_QStyleOptionGroupBox(); -QStyleOptionGroupBox* new_QStyleOptionGroupBox(const QStyleOptionGroupBox& other); -void delete_QStyleOptionGroupBox(QStyleOptionGroupBox* obj) { delete obj; } -void py_set_lineWidth(QStyleOptionGroupBox* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } -int py_get_lineWidth(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->lineWidth; } -void py_set_features(QStyleOptionGroupBox* theWrappedObject, QStyleOptionFrameV2::FrameFeatures features){ theWrappedObject->features = features; } -QStyleOptionFrameV2::FrameFeatures py_get_features(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->features; } -void py_set_textAlignment(QStyleOptionGroupBox* theWrappedObject, Qt::Alignment textAlignment){ theWrappedObject->textAlignment = textAlignment; } -Qt::Alignment py_get_textAlignment(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->textAlignment; } -void py_set_midLineWidth(QStyleOptionGroupBox* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } -int py_get_midLineWidth(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->midLineWidth; } -void py_set_text(QStyleOptionGroupBox* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->text; } -void py_set_textColor(QStyleOptionGroupBox* theWrappedObject, QColor textColor){ theWrappedObject->textColor = textColor; } -QColor py_get_textColor(QStyleOptionGroupBox* theWrappedObject){ return theWrappedObject->textColor; } -}; - - - - - -class PythonQtShell_QStyleOptionHeader : public QStyleOptionHeader -{ -public: - PythonQtShell_QStyleOptionHeader():QStyleOptionHeader(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionHeader(const QStyleOptionHeader& other):QStyleOptionHeader(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionHeader(int version):QStyleOptionHeader(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionHeader : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion SectionPosition SelectedPosition StyleOptionType SortIndicator ) -enum StyleOptionVersion{ - Version = QStyleOptionHeader::Version}; -enum SectionPosition{ - Beginning = QStyleOptionHeader::Beginning, Middle = QStyleOptionHeader::Middle, End = QStyleOptionHeader::End, OnlyOneSection = QStyleOptionHeader::OnlyOneSection}; -enum SelectedPosition{ - NotAdjacent = QStyleOptionHeader::NotAdjacent, NextIsSelected = QStyleOptionHeader::NextIsSelected, PreviousIsSelected = QStyleOptionHeader::PreviousIsSelected, NextAndPreviousAreSelected = QStyleOptionHeader::NextAndPreviousAreSelected}; -enum StyleOptionType{ - Type = QStyleOptionHeader::Type}; -enum SortIndicator{ - None = QStyleOptionHeader::None, SortUp = QStyleOptionHeader::SortUp, SortDown = QStyleOptionHeader::SortDown}; -public slots: -QStyleOptionHeader* new_QStyleOptionHeader(); -QStyleOptionHeader* new_QStyleOptionHeader(const QStyleOptionHeader& other); -void delete_QStyleOptionHeader(QStyleOptionHeader* obj) { delete obj; } -void py_set_section(QStyleOptionHeader* theWrappedObject, int section){ theWrappedObject->section = section; } -int py_get_section(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->section; } -void py_set_sortIndicator(QStyleOptionHeader* theWrappedObject, QStyleOptionHeader::SortIndicator sortIndicator){ theWrappedObject->sortIndicator = sortIndicator; } -QStyleOptionHeader::SortIndicator py_get_sortIndicator(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->sortIndicator; } -void py_set_position(QStyleOptionHeader* theWrappedObject, QStyleOptionHeader::SectionPosition position){ theWrappedObject->position = position; } -QStyleOptionHeader::SectionPosition py_get_position(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->position; } -void py_set_icon(QStyleOptionHeader* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->icon; } -void py_set_textAlignment(QStyleOptionHeader* theWrappedObject, Qt::Alignment textAlignment){ theWrappedObject->textAlignment = textAlignment; } -Qt::Alignment py_get_textAlignment(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->textAlignment; } -void py_set_text(QStyleOptionHeader* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->text; } -void py_set_selectedPosition(QStyleOptionHeader* theWrappedObject, QStyleOptionHeader::SelectedPosition selectedPosition){ theWrappedObject->selectedPosition = selectedPosition; } -QStyleOptionHeader::SelectedPosition py_get_selectedPosition(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->selectedPosition; } -void py_set_iconAlignment(QStyleOptionHeader* theWrappedObject, Qt::Alignment iconAlignment){ theWrappedObject->iconAlignment = iconAlignment; } -Qt::Alignment py_get_iconAlignment(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->iconAlignment; } -void py_set_orientation(QStyleOptionHeader* theWrappedObject, Qt::Orientation orientation){ theWrappedObject->orientation = orientation; } -Qt::Orientation py_get_orientation(QStyleOptionHeader* theWrappedObject){ return theWrappedObject->orientation; } -}; - - - - - -class PythonQtShell_QStyleOptionMenuItem : public QStyleOptionMenuItem -{ -public: - PythonQtShell_QStyleOptionMenuItem():QStyleOptionMenuItem(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionMenuItem(const QStyleOptionMenuItem& other):QStyleOptionMenuItem(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionMenuItem(int version):QStyleOptionMenuItem(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionMenuItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType CheckType MenuItemType ) -enum StyleOptionVersion{ - Version = QStyleOptionMenuItem::Version}; -enum StyleOptionType{ - Type = QStyleOptionMenuItem::Type}; -enum CheckType{ - NotCheckable = QStyleOptionMenuItem::NotCheckable, Exclusive = QStyleOptionMenuItem::Exclusive, NonExclusive = QStyleOptionMenuItem::NonExclusive}; -enum MenuItemType{ - Normal = QStyleOptionMenuItem::Normal, DefaultItem = QStyleOptionMenuItem::DefaultItem, Separator = QStyleOptionMenuItem::Separator, SubMenu = QStyleOptionMenuItem::SubMenu, Scroller = QStyleOptionMenuItem::Scroller, TearOff = QStyleOptionMenuItem::TearOff, Margin = QStyleOptionMenuItem::Margin, EmptyArea = QStyleOptionMenuItem::EmptyArea}; -public slots: -QStyleOptionMenuItem* new_QStyleOptionMenuItem(); -QStyleOptionMenuItem* new_QStyleOptionMenuItem(const QStyleOptionMenuItem& other); -void delete_QStyleOptionMenuItem(QStyleOptionMenuItem* obj) { delete obj; } -void py_set_menuHasCheckableItems(QStyleOptionMenuItem* theWrappedObject, bool menuHasCheckableItems){ theWrappedObject->menuHasCheckableItems = menuHasCheckableItems; } -bool py_get_menuHasCheckableItems(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->menuHasCheckableItems; } -void py_set_menuRect(QStyleOptionMenuItem* theWrappedObject, QRect menuRect){ theWrappedObject->menuRect = menuRect; } -QRect py_get_menuRect(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->menuRect; } -void py_set_checkType(QStyleOptionMenuItem* theWrappedObject, QStyleOptionMenuItem::CheckType checkType){ theWrappedObject->checkType = checkType; } -QStyleOptionMenuItem::CheckType py_get_checkType(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->checkType; } -void py_set_icon(QStyleOptionMenuItem* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->icon; } -void py_set_checked(QStyleOptionMenuItem* theWrappedObject, bool checked){ theWrappedObject->checked = checked; } -bool py_get_checked(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->checked; } -void py_set_maxIconWidth(QStyleOptionMenuItem* theWrappedObject, int maxIconWidth){ theWrappedObject->maxIconWidth = maxIconWidth; } -int py_get_maxIconWidth(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->maxIconWidth; } -void py_set_tabWidth(QStyleOptionMenuItem* theWrappedObject, int tabWidth){ theWrappedObject->tabWidth = tabWidth; } -int py_get_tabWidth(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->tabWidth; } -void py_set_text(QStyleOptionMenuItem* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->text; } -void py_set_font(QStyleOptionMenuItem* theWrappedObject, QFont font){ theWrappedObject->font = font; } -QFont py_get_font(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->font; } -void py_set_menuItemType(QStyleOptionMenuItem* theWrappedObject, QStyleOptionMenuItem::MenuItemType menuItemType){ theWrappedObject->menuItemType = menuItemType; } -QStyleOptionMenuItem::MenuItemType py_get_menuItemType(QStyleOptionMenuItem* theWrappedObject){ return theWrappedObject->menuItemType; } -}; - - - - - -class PythonQtShell_QStyleOptionProgressBar : public QStyleOptionProgressBar -{ -public: - PythonQtShell_QStyleOptionProgressBar():QStyleOptionProgressBar(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionProgressBar(const QStyleOptionProgressBar& other):QStyleOptionProgressBar(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionProgressBar(int version):QStyleOptionProgressBar(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionProgressBar : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionProgressBar::Version}; -enum StyleOptionType{ - Type = QStyleOptionProgressBar::Type}; -public slots: -QStyleOptionProgressBar* new_QStyleOptionProgressBar(); -QStyleOptionProgressBar* new_QStyleOptionProgressBar(const QStyleOptionProgressBar& other); -void delete_QStyleOptionProgressBar(QStyleOptionProgressBar* obj) { delete obj; } -void py_set_minimum(QStyleOptionProgressBar* theWrappedObject, int minimum){ theWrappedObject->minimum = minimum; } -int py_get_minimum(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->minimum; } -void py_set_maximum(QStyleOptionProgressBar* theWrappedObject, int maximum){ theWrappedObject->maximum = maximum; } -int py_get_maximum(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->maximum; } -void py_set_progress(QStyleOptionProgressBar* theWrappedObject, int progress){ theWrappedObject->progress = progress; } -int py_get_progress(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->progress; } -void py_set_textAlignment(QStyleOptionProgressBar* theWrappedObject, Qt::Alignment textAlignment){ theWrappedObject->textAlignment = textAlignment; } -Qt::Alignment py_get_textAlignment(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->textAlignment; } -void py_set_text(QStyleOptionProgressBar* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->text; } -void py_set_textVisible(QStyleOptionProgressBar* theWrappedObject, bool textVisible){ theWrappedObject->textVisible = textVisible; } -bool py_get_textVisible(QStyleOptionProgressBar* theWrappedObject){ return theWrappedObject->textVisible; } -}; - - - - - -class PythonQtShell_QStyleOptionProgressBarV2 : public QStyleOptionProgressBarV2 -{ -public: - PythonQtShell_QStyleOptionProgressBarV2():QStyleOptionProgressBarV2(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionProgressBarV2(const QStyleOptionProgressBar& other):QStyleOptionProgressBarV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionProgressBarV2(const QStyleOptionProgressBarV2& other):QStyleOptionProgressBarV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionProgressBarV2(int version):QStyleOptionProgressBarV2(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionProgressBarV2 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionProgressBarV2::Version}; -enum StyleOptionType{ - Type = QStyleOptionProgressBarV2::Type}; -public slots: -QStyleOptionProgressBarV2* new_QStyleOptionProgressBarV2(); -QStyleOptionProgressBarV2* new_QStyleOptionProgressBarV2(const QStyleOptionProgressBar& other); -QStyleOptionProgressBarV2* new_QStyleOptionProgressBarV2(const QStyleOptionProgressBarV2& other); -void delete_QStyleOptionProgressBarV2(QStyleOptionProgressBarV2* obj) { delete obj; } -void py_set_bottomToTop(QStyleOptionProgressBarV2* theWrappedObject, bool bottomToTop){ theWrappedObject->bottomToTop = bottomToTop; } -bool py_get_bottomToTop(QStyleOptionProgressBarV2* theWrappedObject){ return theWrappedObject->bottomToTop; } -void py_set_invertedAppearance(QStyleOptionProgressBarV2* theWrappedObject, bool invertedAppearance){ theWrappedObject->invertedAppearance = invertedAppearance; } -bool py_get_invertedAppearance(QStyleOptionProgressBarV2* theWrappedObject){ return theWrappedObject->invertedAppearance; } -void py_set_orientation(QStyleOptionProgressBarV2* theWrappedObject, Qt::Orientation orientation){ theWrappedObject->orientation = orientation; } -Qt::Orientation py_get_orientation(QStyleOptionProgressBarV2* theWrappedObject){ return theWrappedObject->orientation; } -}; - - - - - -class PythonQtShell_QStyleOptionRubberBand : public QStyleOptionRubberBand -{ -public: - PythonQtShell_QStyleOptionRubberBand():QStyleOptionRubberBand(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionRubberBand(const QStyleOptionRubberBand& other):QStyleOptionRubberBand(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionRubberBand(int version):QStyleOptionRubberBand(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionRubberBand : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionRubberBand::Version}; -enum StyleOptionType{ - Type = QStyleOptionRubberBand::Type}; -public slots: -QStyleOptionRubberBand* new_QStyleOptionRubberBand(); -QStyleOptionRubberBand* new_QStyleOptionRubberBand(const QStyleOptionRubberBand& other); -void delete_QStyleOptionRubberBand(QStyleOptionRubberBand* obj) { delete obj; } -void py_set_opaque(QStyleOptionRubberBand* theWrappedObject, bool opaque){ theWrappedObject->opaque = opaque; } -bool py_get_opaque(QStyleOptionRubberBand* theWrappedObject){ return theWrappedObject->opaque; } -void py_set_shape(QStyleOptionRubberBand* theWrappedObject, QRubberBand::Shape shape){ theWrappedObject->shape = shape; } -QRubberBand::Shape py_get_shape(QStyleOptionRubberBand* theWrappedObject){ return theWrappedObject->shape; } -}; - - - - - -class PythonQtShell_QStyleOptionSizeGrip : public QStyleOptionSizeGrip -{ -public: - PythonQtShell_QStyleOptionSizeGrip():QStyleOptionSizeGrip(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionSizeGrip(const QStyleOptionSizeGrip& other):QStyleOptionSizeGrip(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionSizeGrip(int version):QStyleOptionSizeGrip(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionSizeGrip : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionSizeGrip::Version}; -enum StyleOptionType{ - Type = QStyleOptionSizeGrip::Type}; -public slots: -QStyleOptionSizeGrip* new_QStyleOptionSizeGrip(); -QStyleOptionSizeGrip* new_QStyleOptionSizeGrip(const QStyleOptionSizeGrip& other); -void delete_QStyleOptionSizeGrip(QStyleOptionSizeGrip* obj) { delete obj; } -void py_set_corner(QStyleOptionSizeGrip* theWrappedObject, Qt::Corner corner){ theWrappedObject->corner = corner; } -Qt::Corner py_get_corner(QStyleOptionSizeGrip* theWrappedObject){ return theWrappedObject->corner; } -}; - - - - - -class PythonQtShell_QStyleOptionSlider : public QStyleOptionSlider -{ -public: - PythonQtShell_QStyleOptionSlider():QStyleOptionSlider(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionSlider(const QStyleOptionSlider& other):QStyleOptionSlider(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionSlider(int version):QStyleOptionSlider(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionSlider : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionSlider::Version}; -enum StyleOptionType{ - Type = QStyleOptionSlider::Type}; -public slots: -QStyleOptionSlider* new_QStyleOptionSlider(); -QStyleOptionSlider* new_QStyleOptionSlider(const QStyleOptionSlider& other); -void delete_QStyleOptionSlider(QStyleOptionSlider* obj) { delete obj; } -void py_set_tickInterval(QStyleOptionSlider* theWrappedObject, int tickInterval){ theWrappedObject->tickInterval = tickInterval; } -int py_get_tickInterval(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->tickInterval; } -void py_set_minimum(QStyleOptionSlider* theWrappedObject, int minimum){ theWrappedObject->minimum = minimum; } -int py_get_minimum(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->minimum; } -void py_set_notchTarget(QStyleOptionSlider* theWrappedObject, qreal notchTarget){ theWrappedObject->notchTarget = notchTarget; } -qreal py_get_notchTarget(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->notchTarget; } -void py_set_maximum(QStyleOptionSlider* theWrappedObject, int maximum){ theWrappedObject->maximum = maximum; } -int py_get_maximum(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->maximum; } -void py_set_sliderPosition(QStyleOptionSlider* theWrappedObject, int sliderPosition){ theWrappedObject->sliderPosition = sliderPosition; } -int py_get_sliderPosition(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->sliderPosition; } -void py_set_dialWrapping(QStyleOptionSlider* theWrappedObject, bool dialWrapping){ theWrappedObject->dialWrapping = dialWrapping; } -bool py_get_dialWrapping(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->dialWrapping; } -void py_set_sliderValue(QStyleOptionSlider* theWrappedObject, int sliderValue){ theWrappedObject->sliderValue = sliderValue; } -int py_get_sliderValue(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->sliderValue; } -void py_set_singleStep(QStyleOptionSlider* theWrappedObject, int singleStep){ theWrappedObject->singleStep = singleStep; } -int py_get_singleStep(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->singleStep; } -void py_set_tickPosition(QStyleOptionSlider* theWrappedObject, QSlider::TickPosition tickPosition){ theWrappedObject->tickPosition = tickPosition; } -QSlider::TickPosition py_get_tickPosition(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->tickPosition; } -void py_set_pageStep(QStyleOptionSlider* theWrappedObject, int pageStep){ theWrappedObject->pageStep = pageStep; } -int py_get_pageStep(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->pageStep; } -void py_set_orientation(QStyleOptionSlider* theWrappedObject, Qt::Orientation orientation){ theWrappedObject->orientation = orientation; } -Qt::Orientation py_get_orientation(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->orientation; } -void py_set_upsideDown(QStyleOptionSlider* theWrappedObject, bool upsideDown){ theWrappedObject->upsideDown = upsideDown; } -bool py_get_upsideDown(QStyleOptionSlider* theWrappedObject){ return theWrappedObject->upsideDown; } -}; - - - - - -class PythonQtShell_QStyleOptionSpinBox : public QStyleOptionSpinBox -{ -public: - PythonQtShell_QStyleOptionSpinBox():QStyleOptionSpinBox(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionSpinBox(const QStyleOptionSpinBox& other):QStyleOptionSpinBox(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionSpinBox(int version):QStyleOptionSpinBox(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionSpinBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionSpinBox::Version}; -enum StyleOptionType{ - Type = QStyleOptionSpinBox::Type}; -public slots: -QStyleOptionSpinBox* new_QStyleOptionSpinBox(); -QStyleOptionSpinBox* new_QStyleOptionSpinBox(const QStyleOptionSpinBox& other); -void delete_QStyleOptionSpinBox(QStyleOptionSpinBox* obj) { delete obj; } -void py_set_stepEnabled(QStyleOptionSpinBox* theWrappedObject, QAbstractSpinBox::StepEnabled stepEnabled){ theWrappedObject->stepEnabled = stepEnabled; } -QAbstractSpinBox::StepEnabled py_get_stepEnabled(QStyleOptionSpinBox* theWrappedObject){ return theWrappedObject->stepEnabled; } -void py_set_buttonSymbols(QStyleOptionSpinBox* theWrappedObject, QAbstractSpinBox::ButtonSymbols buttonSymbols){ theWrappedObject->buttonSymbols = buttonSymbols; } -QAbstractSpinBox::ButtonSymbols py_get_buttonSymbols(QStyleOptionSpinBox* theWrappedObject){ return theWrappedObject->buttonSymbols; } -void py_set_frame(QStyleOptionSpinBox* theWrappedObject, bool frame){ theWrappedObject->frame = frame; } -bool py_get_frame(QStyleOptionSpinBox* theWrappedObject){ return theWrappedObject->frame; } -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp deleted file mode 100644 index c0a824834..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp +++ /dev/null @@ -1,8182 +0,0 @@ -#include "com_trolltech_qt_gui8.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QStyleOptionTab* PythonQtWrapper_QStyleOptionTab::new_QStyleOptionTab() -{ -return new PythonQtShell_QStyleOptionTab(); } - -QStyleOptionTab* PythonQtWrapper_QStyleOptionTab::new_QStyleOptionTab(const QStyleOptionTab& other) -{ -return new PythonQtShell_QStyleOptionTab(other); } - - - -QStyleOptionTabBarBase* PythonQtWrapper_QStyleOptionTabBarBase::new_QStyleOptionTabBarBase() -{ -return new PythonQtShell_QStyleOptionTabBarBase(); } - -QStyleOptionTabBarBase* PythonQtWrapper_QStyleOptionTabBarBase::new_QStyleOptionTabBarBase(const QStyleOptionTabBarBase& other) -{ -return new PythonQtShell_QStyleOptionTabBarBase(other); } - - - -QStyleOptionTabBarBaseV2* PythonQtWrapper_QStyleOptionTabBarBaseV2::new_QStyleOptionTabBarBaseV2() -{ -return new PythonQtShell_QStyleOptionTabBarBaseV2(); } - -QStyleOptionTabBarBaseV2* PythonQtWrapper_QStyleOptionTabBarBaseV2::new_QStyleOptionTabBarBaseV2(const QStyleOptionTabBarBase& other) -{ -return new PythonQtShell_QStyleOptionTabBarBaseV2(other); } - -QStyleOptionTabBarBaseV2* PythonQtWrapper_QStyleOptionTabBarBaseV2::new_QStyleOptionTabBarBaseV2(const QStyleOptionTabBarBaseV2& other) -{ -return new PythonQtShell_QStyleOptionTabBarBaseV2(other); } - - - -QStyleOptionTabV2* PythonQtWrapper_QStyleOptionTabV2::new_QStyleOptionTabV2() -{ -return new PythonQtShell_QStyleOptionTabV2(); } - -QStyleOptionTabV2* PythonQtWrapper_QStyleOptionTabV2::new_QStyleOptionTabV2(const QStyleOptionTab& other) -{ -return new PythonQtShell_QStyleOptionTabV2(other); } - -QStyleOptionTabV2* PythonQtWrapper_QStyleOptionTabV2::new_QStyleOptionTabV2(const QStyleOptionTabV2& other) -{ -return new PythonQtShell_QStyleOptionTabV2(other); } - - - -QStyleOptionTabV3* PythonQtWrapper_QStyleOptionTabV3::new_QStyleOptionTabV3() -{ -return new PythonQtShell_QStyleOptionTabV3(); } - -QStyleOptionTabV3* PythonQtWrapper_QStyleOptionTabV3::new_QStyleOptionTabV3(const QStyleOptionTab& other) -{ -return new PythonQtShell_QStyleOptionTabV3(other); } - -QStyleOptionTabV3* PythonQtWrapper_QStyleOptionTabV3::new_QStyleOptionTabV3(const QStyleOptionTabV2& other) -{ -return new PythonQtShell_QStyleOptionTabV3(other); } - -QStyleOptionTabV3* PythonQtWrapper_QStyleOptionTabV3::new_QStyleOptionTabV3(const QStyleOptionTabV3& other) -{ -return new PythonQtShell_QStyleOptionTabV3(other); } - - - -QStyleOptionTabWidgetFrame* PythonQtWrapper_QStyleOptionTabWidgetFrame::new_QStyleOptionTabWidgetFrame() -{ -return new PythonQtShell_QStyleOptionTabWidgetFrame(); } - -QStyleOptionTabWidgetFrame* PythonQtWrapper_QStyleOptionTabWidgetFrame::new_QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame& other) -{ -return new PythonQtShell_QStyleOptionTabWidgetFrame(other); } - - - -QStyleOptionTitleBar* PythonQtWrapper_QStyleOptionTitleBar::new_QStyleOptionTitleBar() -{ -return new PythonQtShell_QStyleOptionTitleBar(); } - -QStyleOptionTitleBar* PythonQtWrapper_QStyleOptionTitleBar::new_QStyleOptionTitleBar(const QStyleOptionTitleBar& other) -{ -return new PythonQtShell_QStyleOptionTitleBar(other); } - - - -QStyleOptionToolBar* PythonQtWrapper_QStyleOptionToolBar::new_QStyleOptionToolBar() -{ -return new PythonQtShell_QStyleOptionToolBar(); } - -QStyleOptionToolBar* PythonQtWrapper_QStyleOptionToolBar::new_QStyleOptionToolBar(const QStyleOptionToolBar& other) -{ -return new PythonQtShell_QStyleOptionToolBar(other); } - - - -QStyleOptionToolBox* PythonQtWrapper_QStyleOptionToolBox::new_QStyleOptionToolBox() -{ -return new PythonQtShell_QStyleOptionToolBox(); } - -QStyleOptionToolBox* PythonQtWrapper_QStyleOptionToolBox::new_QStyleOptionToolBox(const QStyleOptionToolBox& other) -{ -return new PythonQtShell_QStyleOptionToolBox(other); } - - - -QStyleOptionToolBoxV2* PythonQtWrapper_QStyleOptionToolBoxV2::new_QStyleOptionToolBoxV2() -{ -return new PythonQtShell_QStyleOptionToolBoxV2(); } - -QStyleOptionToolBoxV2* PythonQtWrapper_QStyleOptionToolBoxV2::new_QStyleOptionToolBoxV2(const QStyleOptionToolBox& other) -{ -return new PythonQtShell_QStyleOptionToolBoxV2(other); } - -QStyleOptionToolBoxV2* PythonQtWrapper_QStyleOptionToolBoxV2::new_QStyleOptionToolBoxV2(const QStyleOptionToolBoxV2& other) -{ -return new PythonQtShell_QStyleOptionToolBoxV2(other); } - - - -QStyleOptionToolButton* PythonQtWrapper_QStyleOptionToolButton::new_QStyleOptionToolButton() -{ -return new PythonQtShell_QStyleOptionToolButton(); } - -QStyleOptionToolButton* PythonQtWrapper_QStyleOptionToolButton::new_QStyleOptionToolButton(const QStyleOptionToolButton& other) -{ -return new PythonQtShell_QStyleOptionToolButton(other); } - - - -QStyleOptionViewItem* PythonQtWrapper_QStyleOptionViewItem::new_QStyleOptionViewItem() -{ -return new PythonQtShell_QStyleOptionViewItem(); } - -QStyleOptionViewItem* PythonQtWrapper_QStyleOptionViewItem::new_QStyleOptionViewItem(const QStyleOptionViewItem& other) -{ -return new PythonQtShell_QStyleOptionViewItem(other); } - - - -QStyleOptionViewItemV2* PythonQtWrapper_QStyleOptionViewItemV2::new_QStyleOptionViewItemV2() -{ -return new PythonQtShell_QStyleOptionViewItemV2(); } - -QStyleOptionViewItemV2* PythonQtWrapper_QStyleOptionViewItemV2::new_QStyleOptionViewItemV2(const QStyleOptionViewItem& other) -{ -return new PythonQtShell_QStyleOptionViewItemV2(other); } - -QStyleOptionViewItemV2* PythonQtWrapper_QStyleOptionViewItemV2::new_QStyleOptionViewItemV2(const QStyleOptionViewItemV2& other) -{ -return new PythonQtShell_QStyleOptionViewItemV2(other); } - - - -QStyleOptionViewItemV3* PythonQtWrapper_QStyleOptionViewItemV3::new_QStyleOptionViewItemV3() -{ -return new PythonQtShell_QStyleOptionViewItemV3(); } - -QStyleOptionViewItemV3* PythonQtWrapper_QStyleOptionViewItemV3::new_QStyleOptionViewItemV3(const QStyleOptionViewItem& other) -{ -return new PythonQtShell_QStyleOptionViewItemV3(other); } - -QStyleOptionViewItemV3* PythonQtWrapper_QStyleOptionViewItemV3::new_QStyleOptionViewItemV3(const QStyleOptionViewItemV3& other) -{ -return new PythonQtShell_QStyleOptionViewItemV3(other); } - - - -QStyleOptionViewItemV4* PythonQtWrapper_QStyleOptionViewItemV4::new_QStyleOptionViewItemV4() -{ -return new PythonQtShell_QStyleOptionViewItemV4(); } - -QStyleOptionViewItemV4* PythonQtWrapper_QStyleOptionViewItemV4::new_QStyleOptionViewItemV4(const QStyleOptionViewItem& other) -{ -return new PythonQtShell_QStyleOptionViewItemV4(other); } - -QStyleOptionViewItemV4* PythonQtWrapper_QStyleOptionViewItemV4::new_QStyleOptionViewItemV4(const QStyleOptionViewItemV4& other) -{ -return new PythonQtShell_QStyleOptionViewItemV4(other); } - - - -QStylePainter* PythonQtWrapper_QStylePainter::new_QStylePainter() -{ -return new QStylePainter(); } - -QStylePainter* PythonQtWrapper_QStylePainter::new_QStylePainter(QPaintDevice* pd, QWidget* w) -{ -return new QStylePainter(pd, w); } - -QStylePainter* PythonQtWrapper_QStylePainter::new_QStylePainter(QWidget* w) -{ -return new QStylePainter(w); } - -bool PythonQtWrapper_QStylePainter::begin(QStylePainter* theWrappedObject, QPaintDevice* pd, QWidget* w) -{ - return ( theWrappedObject->begin(pd, w)); -} - -bool PythonQtWrapper_QStylePainter::begin(QStylePainter* theWrappedObject, QWidget* w) -{ - return ( theWrappedObject->begin(w)); -} - -void PythonQtWrapper_QStylePainter::drawComplexControl(QStylePainter* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex& opt) -{ - ( theWrappedObject->drawComplexControl(cc, opt)); -} - -void PythonQtWrapper_QStylePainter::drawControl(QStylePainter* theWrappedObject, QStyle::ControlElement ce, const QStyleOption& opt) -{ - ( theWrappedObject->drawControl(ce, opt)); -} - -void PythonQtWrapper_QStylePainter::drawItemPixmap(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap) -{ - ( theWrappedObject->drawItemPixmap(r, flags, pixmap)); -} - -void PythonQtWrapper_QStylePainter::drawItemText(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole) -{ - ( theWrappedObject->drawItemText(r, flags, pal, enabled, text, textRole)); -} - -void PythonQtWrapper_QStylePainter::drawPrimitive(QStylePainter* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption& opt) -{ - ( theWrappedObject->drawPrimitive(pe, opt)); -} - -QStyle* PythonQtWrapper_QStylePainter::style(QStylePainter* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - - - -void PythonQtShell_QStylePlugin::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStylePlugin::childEvent(arg__1); -} -QStyle* PythonQtShell_QStylePlugin::create(const QString& key) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "create"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle*" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QStyle* returnValue = 0; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("create", methodInfo, result); - } else { - returnValue = *((QStyle**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QStylePlugin::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStylePlugin::customEvent(arg__1); -} -bool PythonQtShell_QStylePlugin::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStylePlugin::event(arg__1); -} -bool PythonQtShell_QStylePlugin::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStylePlugin::eventFilter(arg__1, arg__2); -} -QStringList PythonQtShell_QStylePlugin::keys() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keys"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("keys", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -void PythonQtShell_QStylePlugin::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStylePlugin::timerEvent(arg__1); -} -QStylePlugin* PythonQtWrapper_QStylePlugin::new_QStylePlugin(QObject* parent) -{ -return new PythonQtShell_QStylePlugin(parent); } - - - -void PythonQtShell_QStyledItemDelegate::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::childEvent(arg__1); -} -QWidget* PythonQtShell_QStyledItemDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QWidget* returnValue = 0; - void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createEditor", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyledItemDelegate::createEditor(parent, option, index); -} -void PythonQtShell_QStyledItemDelegate::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::customEvent(arg__1); -} -QString PythonQtShell_QStyledItemDelegate::displayText(const QVariant& value, const QLocale& locale) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "displayText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QVariant&" , "const QLocale&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QString returnValue; - void* args[3] = {NULL, (void*)&value, (void*)&locale}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("displayText", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyledItemDelegate::displayText(value, locale); -} -bool PythonQtShell_QStyledItemDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("editorEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyledItemDelegate::editorEvent(event, model, option, index); -} -bool PythonQtShell_QStyledItemDelegate::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyledItemDelegate::event(arg__1); -} -bool PythonQtShell_QStyledItemDelegate::eventFilter(QObject* object, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyledItemDelegate::eventFilter(object, event); -} -void PythonQtShell_QStyledItemDelegate::initStyleOption(QStyleOptionViewItem* option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initStyleOption"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStyleOptionViewItem*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::initStyleOption(option, index); -} -void PythonQtShell_QStyledItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPainter*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&painter, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::paint(painter, option, index); -} -void PythonQtShell_QStyledItemDelegate::setEditorData(QWidget* editor, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::setEditorData(editor, index); -} -void PythonQtShell_QStyledItemDelegate::setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModelData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemModel*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&editor, (void*)&model, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::setModelData(editor, model, index); -} -QSize PythonQtShell_QStyledItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QSize returnValue; - void* args[3] = {NULL, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStyledItemDelegate::sizeHint(option, index); -} -void PythonQtShell_QStyledItemDelegate::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::timerEvent(arg__1); -} -void PythonQtShell_QStyledItemDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometry"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&editor, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QStyledItemDelegate::updateEditorGeometry(editor, option, index); -} -QStyledItemDelegate* PythonQtWrapper_QStyledItemDelegate::new_QStyledItemDelegate(QObject* parent) -{ -return new PythonQtShell_QStyledItemDelegate(parent); } - -QWidget* PythonQtWrapper_QStyledItemDelegate::createEditor(QStyledItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_createEditor(parent, option, index)); -} - -QString PythonQtWrapper_QStyledItemDelegate::displayText(QStyledItemDelegate* theWrappedObject, const QVariant& value, const QLocale& locale) const -{ - return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_displayText(value, locale)); -} - -bool PythonQtWrapper_QStyledItemDelegate::editorEvent(QStyledItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) -{ - return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_editorEvent(event, model, option, index)); -} - -bool PythonQtWrapper_QStyledItemDelegate::eventFilter(QStyledItemDelegate* theWrappedObject, QObject* object, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_eventFilter(object, event)); -} - -void PythonQtWrapper_QStyledItemDelegate::initStyleOption(QStyledItemDelegate* theWrappedObject, QStyleOptionViewItem* option, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_initStyleOption(option, index)); -} - -QItemEditorFactory* PythonQtWrapper_QStyledItemDelegate::itemEditorFactory(QStyledItemDelegate* theWrappedObject) const -{ - return ( theWrappedObject->itemEditorFactory()); -} - -void PythonQtWrapper_QStyledItemDelegate::paint(QStyledItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_paint(painter, option, index)); -} - -void PythonQtWrapper_QStyledItemDelegate::setEditorData(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_setEditorData(editor, index)); -} - -void PythonQtWrapper_QStyledItemDelegate::setItemEditorFactory(QStyledItemDelegate* theWrappedObject, QItemEditorFactory* factory) -{ - ( theWrappedObject->setItemEditorFactory(factory)); -} - -void PythonQtWrapper_QStyledItemDelegate::setModelData(QStyledItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_setModelData(editor, model, index)); -} - -QSize PythonQtWrapper_QStyledItemDelegate::sizeHint(QStyledItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_sizeHint(option, index)); -} - -void PythonQtWrapper_QStyledItemDelegate::updateEditorGeometry(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const -{ - ( ((PythonQtPublicPromoter_QStyledItemDelegate*)theWrappedObject)->promoted_updateEditorGeometry(editor, option, index)); -} - - - -void PythonQtShell_QSwipeGesture::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSwipeGesture::childEvent(arg__1); -} -void PythonQtShell_QSwipeGesture::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSwipeGesture::customEvent(arg__1); -} -bool PythonQtShell_QSwipeGesture::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSwipeGesture::event(arg__1); -} -bool PythonQtShell_QSwipeGesture::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSwipeGesture::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSwipeGesture::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSwipeGesture::timerEvent(arg__1); -} -QSwipeGesture* PythonQtWrapper_QSwipeGesture::new_QSwipeGesture(QObject* parent) -{ -return new PythonQtShell_QSwipeGesture(parent); } - -QSwipeGesture::SwipeDirection PythonQtWrapper_QSwipeGesture::horizontalDirection(QSwipeGesture* theWrappedObject) const -{ - return ( theWrappedObject->horizontalDirection()); -} - -void PythonQtWrapper_QSwipeGesture::setSwipeAngle(QSwipeGesture* theWrappedObject, qreal value) -{ - ( theWrappedObject->setSwipeAngle(value)); -} - -qreal PythonQtWrapper_QSwipeGesture::swipeAngle(QSwipeGesture* theWrappedObject) const -{ - return ( theWrappedObject->swipeAngle()); -} - -QSwipeGesture::SwipeDirection PythonQtWrapper_QSwipeGesture::verticalDirection(QSwipeGesture* theWrappedObject) const -{ - return ( theWrappedObject->verticalDirection()); -} - - - -void PythonQtShell_QSyntaxHighlighter::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSyntaxHighlighter::childEvent(arg__1); -} -void PythonQtShell_QSyntaxHighlighter::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSyntaxHighlighter::customEvent(arg__1); -} -bool PythonQtShell_QSyntaxHighlighter::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSyntaxHighlighter::event(arg__1); -} -bool PythonQtShell_QSyntaxHighlighter::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSyntaxHighlighter::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSyntaxHighlighter::highlightBlock(const QString& text) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "highlightBlock"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QSyntaxHighlighter::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSyntaxHighlighter::timerEvent(arg__1); -} -QSyntaxHighlighter* PythonQtWrapper_QSyntaxHighlighter::new_QSyntaxHighlighter(QObject* parent) -{ -return new PythonQtShell_QSyntaxHighlighter(parent); } - -QSyntaxHighlighter* PythonQtWrapper_QSyntaxHighlighter::new_QSyntaxHighlighter(QTextDocument* parent) -{ -return new PythonQtShell_QSyntaxHighlighter(parent); } - -QSyntaxHighlighter* PythonQtWrapper_QSyntaxHighlighter::new_QSyntaxHighlighter(QTextEdit* parent) -{ -return new PythonQtShell_QSyntaxHighlighter(parent); } - -QTextDocument* PythonQtWrapper_QSyntaxHighlighter::document(QSyntaxHighlighter* theWrappedObject) const -{ - return ( theWrappedObject->document()); -} - -void PythonQtWrapper_QSyntaxHighlighter::setDocument(QSyntaxHighlighter* theWrappedObject, QTextDocument* doc) -{ - ( theWrappedObject->setDocument(doc)); -} - - - -void PythonQtShell_QSystemTrayIcon::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSystemTrayIcon::childEvent(arg__1); -} -void PythonQtShell_QSystemTrayIcon::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSystemTrayIcon::customEvent(arg__1); -} -bool PythonQtShell_QSystemTrayIcon::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSystemTrayIcon::event(event); -} -bool PythonQtShell_QSystemTrayIcon::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSystemTrayIcon::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QSystemTrayIcon::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSystemTrayIcon::timerEvent(arg__1); -} -QSystemTrayIcon* PythonQtWrapper_QSystemTrayIcon::new_QSystemTrayIcon(QObject* parent) -{ -return new PythonQtShell_QSystemTrayIcon(parent); } - -QSystemTrayIcon* PythonQtWrapper_QSystemTrayIcon::new_QSystemTrayIcon(const QIcon& icon, QObject* parent) -{ -return new PythonQtShell_QSystemTrayIcon(icon, parent); } - -QMenu* PythonQtWrapper_QSystemTrayIcon::contextMenu(QSystemTrayIcon* theWrappedObject) const -{ - return ( theWrappedObject->contextMenu()); -} - -bool PythonQtWrapper_QSystemTrayIcon::event(QSystemTrayIcon* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QSystemTrayIcon*)theWrappedObject)->promoted_event(event)); -} - -QRect PythonQtWrapper_QSystemTrayIcon::geometry(QSystemTrayIcon* theWrappedObject) const -{ - return ( theWrappedObject->geometry()); -} - -QIcon PythonQtWrapper_QSystemTrayIcon::icon(QSystemTrayIcon* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -bool PythonQtWrapper_QSystemTrayIcon::static_QSystemTrayIcon_isSystemTrayAvailable() -{ - return (QSystemTrayIcon::isSystemTrayAvailable()); -} - -bool PythonQtWrapper_QSystemTrayIcon::isVisible(QSystemTrayIcon* theWrappedObject) const -{ - return ( theWrappedObject->isVisible()); -} - -void PythonQtWrapper_QSystemTrayIcon::setContextMenu(QSystemTrayIcon* theWrappedObject, QMenu* menu) -{ - ( theWrappedObject->setContextMenu(menu)); -} - -void PythonQtWrapper_QSystemTrayIcon::setIcon(QSystemTrayIcon* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setIcon(icon)); -} - -void PythonQtWrapper_QSystemTrayIcon::setToolTip(QSystemTrayIcon* theWrappedObject, const QString& tip) -{ - ( theWrappedObject->setToolTip(tip)); -} - -void PythonQtWrapper_QSystemTrayIcon::showMessage(QSystemTrayIcon* theWrappedObject, const QString& title, const QString& msg, QSystemTrayIcon::MessageIcon icon, int msecs) -{ - ( theWrappedObject->showMessage(title, msg, icon, msecs)); -} - -bool PythonQtWrapper_QSystemTrayIcon::static_QSystemTrayIcon_supportsMessages() -{ - return (QSystemTrayIcon::supportsMessages()); -} - -QString PythonQtWrapper_QSystemTrayIcon::toolTip(QSystemTrayIcon* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - - - -void PythonQtShell_QTabBar::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::actionEvent(arg__1); -} -void PythonQtShell_QTabBar::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::changeEvent(arg__1); -} -void PythonQtShell_QTabBar::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::childEvent(arg__1); -} -void PythonQtShell_QTabBar::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::closeEvent(arg__1); -} -void PythonQtShell_QTabBar::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::contextMenuEvent(arg__1); -} -void PythonQtShell_QTabBar::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::customEvent(arg__1); -} -int PythonQtShell_QTabBar::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::devType(); -} -void PythonQtShell_QTabBar::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::dragEnterEvent(arg__1); -} -void PythonQtShell_QTabBar::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::dragLeaveEvent(arg__1); -} -void PythonQtShell_QTabBar::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::dragMoveEvent(arg__1); -} -void PythonQtShell_QTabBar::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::dropEvent(arg__1); -} -void PythonQtShell_QTabBar::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::enterEvent(arg__1); -} -bool PythonQtShell_QTabBar::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::event(arg__1); -} -bool PythonQtShell_QTabBar::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTabBar::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::focusInEvent(arg__1); -} -bool PythonQtShell_QTabBar::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::focusNextPrevChild(next); -} -void PythonQtShell_QTabBar::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::focusOutEvent(arg__1); -} -int PythonQtShell_QTabBar::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::heightForWidth(arg__1); -} -void PythonQtShell_QTabBar::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::hideEvent(arg__1); -} -void PythonQtShell_QTabBar::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QTabBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::inputMethodQuery(arg__1); -} -void PythonQtShell_QTabBar::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::keyPressEvent(arg__1); -} -void PythonQtShell_QTabBar::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::keyReleaseEvent(arg__1); -} -void PythonQtShell_QTabBar::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::languageChange(); -} -void PythonQtShell_QTabBar::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::leaveEvent(arg__1); -} -int PythonQtShell_QTabBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::metric(arg__1); -} -void PythonQtShell_QTabBar::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QTabBar::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::mouseMoveEvent(arg__1); -} -void PythonQtShell_QTabBar::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::mousePressEvent(arg__1); -} -void PythonQtShell_QTabBar::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QTabBar::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTabBar::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::paintEngine(); -} -void PythonQtShell_QTabBar::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::paintEvent(arg__1); -} -void PythonQtShell_QTabBar::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::resizeEvent(arg__1); -} -void PythonQtShell_QTabBar::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::showEvent(arg__1); -} -void PythonQtShell_QTabBar::tabInserted(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::tabInserted(index); -} -void PythonQtShell_QTabBar::tabLayoutChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabLayoutChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::tabLayoutChange(); -} -void PythonQtShell_QTabBar::tabRemoved(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::tabRemoved(index); -} -QSize PythonQtShell_QTabBar::tabSizeHint(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("tabSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabBar::tabSizeHint(index); -} -void PythonQtShell_QTabBar::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::tabletEvent(arg__1); -} -void PythonQtShell_QTabBar::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabBar::timerEvent(arg__1); -} -void PythonQtShell_QTabBar::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTabBar::wheelEvent(event); -} -QTabBar* PythonQtWrapper_QTabBar::new_QTabBar(QWidget* parent) -{ -return new PythonQtShell_QTabBar(parent); } - -int PythonQtWrapper_QTabBar::addTab(QTabBar* theWrappedObject, const QIcon& icon, const QString& text) -{ - return ( theWrappedObject->addTab(icon, text)); -} - -int PythonQtWrapper_QTabBar::addTab(QTabBar* theWrappedObject, const QString& text) -{ - return ( theWrappedObject->addTab(text)); -} - -void PythonQtWrapper_QTabBar::changeEvent(QTabBar* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -int PythonQtWrapper_QTabBar::count(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QTabBar::currentIndex(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -bool PythonQtWrapper_QTabBar::documentMode(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->documentMode()); -} - -bool PythonQtWrapper_QTabBar::drawBase(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->drawBase()); -} - -Qt::TextElideMode PythonQtWrapper_QTabBar::elideMode(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->elideMode()); -} - -bool PythonQtWrapper_QTabBar::event(QTabBar* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_event(arg__1)); -} - -bool PythonQtWrapper_QTabBar::expanding(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->expanding()); -} - -void PythonQtWrapper_QTabBar::hideEvent(QTabBar* theWrappedObject, QHideEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_hideEvent(arg__1)); -} - -QSize PythonQtWrapper_QTabBar::iconSize(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->iconSize()); -} - -int PythonQtWrapper_QTabBar::insertTab(QTabBar* theWrappedObject, int index, const QIcon& icon, const QString& text) -{ - return ( theWrappedObject->insertTab(index, icon, text)); -} - -int PythonQtWrapper_QTabBar::insertTab(QTabBar* theWrappedObject, int index, const QString& text) -{ - return ( theWrappedObject->insertTab(index, text)); -} - -bool PythonQtWrapper_QTabBar::isMovable(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->isMovable()); -} - -bool PythonQtWrapper_QTabBar::isTabEnabled(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->isTabEnabled(index)); -} - -void PythonQtWrapper_QTabBar::keyPressEvent(QTabBar* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -QSize PythonQtWrapper_QTabBar::minimumSizeHint(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QTabBar::mouseMoveEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_mouseMoveEvent(arg__1)); -} - -void PythonQtWrapper_QTabBar::mousePressEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QTabBar::mouseReleaseEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QTabBar::moveTab(QTabBar* theWrappedObject, int from, int to) -{ - ( theWrappedObject->moveTab(from, to)); -} - -void PythonQtWrapper_QTabBar::paintEvent(QTabBar* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QTabBar::removeTab(QTabBar* theWrappedObject, int index) -{ - ( theWrappedObject->removeTab(index)); -} - -void PythonQtWrapper_QTabBar::resizeEvent(QTabBar* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -QTabBar::SelectionBehavior PythonQtWrapper_QTabBar::selectionBehaviorOnRemove(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->selectionBehaviorOnRemove()); -} - -void PythonQtWrapper_QTabBar::setDocumentMode(QTabBar* theWrappedObject, bool set) -{ - ( theWrappedObject->setDocumentMode(set)); -} - -void PythonQtWrapper_QTabBar::setDrawBase(QTabBar* theWrappedObject, bool drawTheBase) -{ - ( theWrappedObject->setDrawBase(drawTheBase)); -} - -void PythonQtWrapper_QTabBar::setElideMode(QTabBar* theWrappedObject, Qt::TextElideMode arg__1) -{ - ( theWrappedObject->setElideMode(arg__1)); -} - -void PythonQtWrapper_QTabBar::setExpanding(QTabBar* theWrappedObject, bool enabled) -{ - ( theWrappedObject->setExpanding(enabled)); -} - -void PythonQtWrapper_QTabBar::setIconSize(QTabBar* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setIconSize(size)); -} - -void PythonQtWrapper_QTabBar::setMovable(QTabBar* theWrappedObject, bool movable) -{ - ( theWrappedObject->setMovable(movable)); -} - -void PythonQtWrapper_QTabBar::setSelectionBehaviorOnRemove(QTabBar* theWrappedObject, QTabBar::SelectionBehavior behavior) -{ - ( theWrappedObject->setSelectionBehaviorOnRemove(behavior)); -} - -void PythonQtWrapper_QTabBar::setShape(QTabBar* theWrappedObject, QTabBar::Shape shape) -{ - ( theWrappedObject->setShape(shape)); -} - -void PythonQtWrapper_QTabBar::setTabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position, QWidget* widget) -{ - ( theWrappedObject->setTabButton(index, position, widget)); -} - -void PythonQtWrapper_QTabBar::setTabData(QTabBar* theWrappedObject, int index, const QVariant& data) -{ - ( theWrappedObject->setTabData(index, data)); -} - -void PythonQtWrapper_QTabBar::setTabEnabled(QTabBar* theWrappedObject, int index, bool arg__2) -{ - ( theWrappedObject->setTabEnabled(index, arg__2)); -} - -void PythonQtWrapper_QTabBar::setTabIcon(QTabBar* theWrappedObject, int index, const QIcon& icon) -{ - ( theWrappedObject->setTabIcon(index, icon)); -} - -void PythonQtWrapper_QTabBar::setTabText(QTabBar* theWrappedObject, int index, const QString& text) -{ - ( theWrappedObject->setTabText(index, text)); -} - -void PythonQtWrapper_QTabBar::setTabTextColor(QTabBar* theWrappedObject, int index, const QColor& color) -{ - ( theWrappedObject->setTabTextColor(index, color)); -} - -void PythonQtWrapper_QTabBar::setTabToolTip(QTabBar* theWrappedObject, int index, const QString& tip) -{ - ( theWrappedObject->setTabToolTip(index, tip)); -} - -void PythonQtWrapper_QTabBar::setTabWhatsThis(QTabBar* theWrappedObject, int index, const QString& text) -{ - ( theWrappedObject->setTabWhatsThis(index, text)); -} - -void PythonQtWrapper_QTabBar::setTabsClosable(QTabBar* theWrappedObject, bool closable) -{ - ( theWrappedObject->setTabsClosable(closable)); -} - -void PythonQtWrapper_QTabBar::setUsesScrollButtons(QTabBar* theWrappedObject, bool useButtons) -{ - ( theWrappedObject->setUsesScrollButtons(useButtons)); -} - -QTabBar::Shape PythonQtWrapper_QTabBar::shape(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - -void PythonQtWrapper_QTabBar::showEvent(QTabBar* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_showEvent(arg__1)); -} - -QSize PythonQtWrapper_QTabBar::sizeHint(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -int PythonQtWrapper_QTabBar::tabAt(QTabBar* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->tabAt(pos)); -} - -QWidget* PythonQtWrapper_QTabBar::tabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position) const -{ - return ( theWrappedObject->tabButton(index, position)); -} - -QVariant PythonQtWrapper_QTabBar::tabData(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabData(index)); -} - -QIcon PythonQtWrapper_QTabBar::tabIcon(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabIcon(index)); -} - -void PythonQtWrapper_QTabBar::tabInserted(QTabBar* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabInserted(index)); -} - -void PythonQtWrapper_QTabBar::tabLayoutChange(QTabBar* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabLayoutChange()); -} - -QRect PythonQtWrapper_QTabBar::tabRect(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabRect(index)); -} - -void PythonQtWrapper_QTabBar::tabRemoved(QTabBar* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabRemoved(index)); -} - -QSize PythonQtWrapper_QTabBar::tabSizeHint(QTabBar* theWrappedObject, int index) const -{ - return ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_tabSizeHint(index)); -} - -QString PythonQtWrapper_QTabBar::tabText(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabText(index)); -} - -QColor PythonQtWrapper_QTabBar::tabTextColor(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabTextColor(index)); -} - -QString PythonQtWrapper_QTabBar::tabToolTip(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabToolTip(index)); -} - -QString PythonQtWrapper_QTabBar::tabWhatsThis(QTabBar* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabWhatsThis(index)); -} - -bool PythonQtWrapper_QTabBar::tabsClosable(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->tabsClosable()); -} - -bool PythonQtWrapper_QTabBar::usesScrollButtons(QTabBar* theWrappedObject) const -{ - return ( theWrappedObject->usesScrollButtons()); -} - -void PythonQtWrapper_QTabBar::wheelEvent(QTabBar* theWrappedObject, QWheelEvent* event) -{ - ( ((PythonQtPublicPromoter_QTabBar*)theWrappedObject)->promoted_wheelEvent(event)); -} - - - -void PythonQtShell_QTabWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::actionEvent(arg__1); -} -void PythonQtShell_QTabWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::changeEvent(arg__1); -} -void PythonQtShell_QTabWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::childEvent(arg__1); -} -void PythonQtShell_QTabWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::closeEvent(arg__1); -} -void PythonQtShell_QTabWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QTabWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::customEvent(arg__1); -} -int PythonQtShell_QTabWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::devType(); -} -void PythonQtShell_QTabWidget::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::dragEnterEvent(arg__1); -} -void PythonQtShell_QTabWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::dragLeaveEvent(arg__1); -} -void PythonQtShell_QTabWidget::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::dragMoveEvent(arg__1); -} -void PythonQtShell_QTabWidget::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::dropEvent(arg__1); -} -void PythonQtShell_QTabWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::enterEvent(arg__1); -} -bool PythonQtShell_QTabWidget::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::event(arg__1); -} -bool PythonQtShell_QTabWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTabWidget::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::focusInEvent(arg__1); -} -bool PythonQtShell_QTabWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::focusNextPrevChild(next); -} -void PythonQtShell_QTabWidget::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::focusOutEvent(arg__1); -} -int PythonQtShell_QTabWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::heightForWidth(arg__1); -} -void PythonQtShell_QTabWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::hideEvent(arg__1); -} -void PythonQtShell_QTabWidget::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QTabWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::inputMethodQuery(arg__1); -} -void PythonQtShell_QTabWidget::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::keyPressEvent(arg__1); -} -void PythonQtShell_QTabWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QTabWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::languageChange(); -} -void PythonQtShell_QTabWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::leaveEvent(arg__1); -} -int PythonQtShell_QTabWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::metric(arg__1); -} -void PythonQtShell_QTabWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QTabWidget::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::mouseMoveEvent(arg__1); -} -void PythonQtShell_QTabWidget::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::mousePressEvent(arg__1); -} -void PythonQtShell_QTabWidget::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QTabWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTabWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTabWidget::paintEngine(); -} -void PythonQtShell_QTabWidget::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::paintEvent(arg__1); -} -void PythonQtShell_QTabWidget::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::resizeEvent(arg__1); -} -void PythonQtShell_QTabWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::showEvent(arg__1); -} -void PythonQtShell_QTabWidget::tabInserted(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::tabInserted(index); -} -void PythonQtShell_QTabWidget::tabRemoved(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::tabRemoved(index); -} -void PythonQtShell_QTabWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::tabletEvent(arg__1); -} -void PythonQtShell_QTabWidget::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::timerEvent(arg__1); -} -void PythonQtShell_QTabWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTabWidget::wheelEvent(arg__1); -} -QTabWidget* PythonQtWrapper_QTabWidget::new_QTabWidget(QWidget* parent) -{ -return new PythonQtShell_QTabWidget(parent); } - -int PythonQtWrapper_QTabWidget::addTab(QTabWidget* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& label) -{ - return ( theWrappedObject->addTab(widget, icon, label)); -} - -int PythonQtWrapper_QTabWidget::addTab(QTabWidget* theWrappedObject, QWidget* widget, const QString& arg__2) -{ - return ( theWrappedObject->addTab(widget, arg__2)); -} - -void PythonQtWrapper_QTabWidget::changeEvent(QTabWidget* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -void PythonQtWrapper_QTabWidget::clear(QTabWidget* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -QWidget* PythonQtWrapper_QTabWidget::cornerWidget(QTabWidget* theWrappedObject, Qt::Corner corner) const -{ - return ( theWrappedObject->cornerWidget(corner)); -} - -int PythonQtWrapper_QTabWidget::count(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QTabWidget::currentIndex(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -QWidget* PythonQtWrapper_QTabWidget::currentWidget(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentWidget()); -} - -bool PythonQtWrapper_QTabWidget::documentMode(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->documentMode()); -} - -Qt::TextElideMode PythonQtWrapper_QTabWidget::elideMode(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->elideMode()); -} - -bool PythonQtWrapper_QTabWidget::event(QTabWidget* theWrappedObject, QEvent* arg__1) -{ - return ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_event(arg__1)); -} - -QSize PythonQtWrapper_QTabWidget::iconSize(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->iconSize()); -} - -int PythonQtWrapper_QTabWidget::indexOf(QTabWidget* theWrappedObject, QWidget* widget) const -{ - return ( theWrappedObject->indexOf(widget)); -} - -int PythonQtWrapper_QTabWidget::insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& label) -{ - return ( theWrappedObject->insertTab(index, widget, icon, label)); -} - -int PythonQtWrapper_QTabWidget::insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QString& arg__3) -{ - return ( theWrappedObject->insertTab(index, widget, arg__3)); -} - -bool PythonQtWrapper_QTabWidget::isMovable(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->isMovable()); -} - -bool PythonQtWrapper_QTabWidget::isTabEnabled(QTabWidget* theWrappedObject, int index) const -{ - return ( theWrappedObject->isTabEnabled(index)); -} - -void PythonQtWrapper_QTabWidget::keyPressEvent(QTabWidget* theWrappedObject, QKeyEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_keyPressEvent(arg__1)); -} - -QSize PythonQtWrapper_QTabWidget::minimumSizeHint(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QTabWidget::paintEvent(QTabWidget* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -void PythonQtWrapper_QTabWidget::removeTab(QTabWidget* theWrappedObject, int index) -{ - ( theWrappedObject->removeTab(index)); -} - -void PythonQtWrapper_QTabWidget::resizeEvent(QTabWidget* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - -void PythonQtWrapper_QTabWidget::setCornerWidget(QTabWidget* theWrappedObject, QWidget* w, Qt::Corner corner) -{ - ( theWrappedObject->setCornerWidget(w, corner)); -} - -void PythonQtWrapper_QTabWidget::setDocumentMode(QTabWidget* theWrappedObject, bool set) -{ - ( theWrappedObject->setDocumentMode(set)); -} - -void PythonQtWrapper_QTabWidget::setElideMode(QTabWidget* theWrappedObject, Qt::TextElideMode arg__1) -{ - ( theWrappedObject->setElideMode(arg__1)); -} - -void PythonQtWrapper_QTabWidget::setIconSize(QTabWidget* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setIconSize(size)); -} - -void PythonQtWrapper_QTabWidget::setMovable(QTabWidget* theWrappedObject, bool movable) -{ - ( theWrappedObject->setMovable(movable)); -} - -void PythonQtWrapper_QTabWidget::setTabEnabled(QTabWidget* theWrappedObject, int index, bool arg__2) -{ - ( theWrappedObject->setTabEnabled(index, arg__2)); -} - -void PythonQtWrapper_QTabWidget::setTabIcon(QTabWidget* theWrappedObject, int index, const QIcon& icon) -{ - ( theWrappedObject->setTabIcon(index, icon)); -} - -void PythonQtWrapper_QTabWidget::setTabPosition(QTabWidget* theWrappedObject, QTabWidget::TabPosition arg__1) -{ - ( theWrappedObject->setTabPosition(arg__1)); -} - -void PythonQtWrapper_QTabWidget::setTabShape(QTabWidget* theWrappedObject, QTabWidget::TabShape s) -{ - ( theWrappedObject->setTabShape(s)); -} - -void PythonQtWrapper_QTabWidget::setTabText(QTabWidget* theWrappedObject, int index, const QString& arg__2) -{ - ( theWrappedObject->setTabText(index, arg__2)); -} - -void PythonQtWrapper_QTabWidget::setTabToolTip(QTabWidget* theWrappedObject, int index, const QString& tip) -{ - ( theWrappedObject->setTabToolTip(index, tip)); -} - -void PythonQtWrapper_QTabWidget::setTabWhatsThis(QTabWidget* theWrappedObject, int index, const QString& text) -{ - ( theWrappedObject->setTabWhatsThis(index, text)); -} - -void PythonQtWrapper_QTabWidget::setTabsClosable(QTabWidget* theWrappedObject, bool closeable) -{ - ( theWrappedObject->setTabsClosable(closeable)); -} - -void PythonQtWrapper_QTabWidget::setUsesScrollButtons(QTabWidget* theWrappedObject, bool useButtons) -{ - ( theWrappedObject->setUsesScrollButtons(useButtons)); -} - -void PythonQtWrapper_QTabWidget::showEvent(QTabWidget* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_showEvent(arg__1)); -} - -QSize PythonQtWrapper_QTabWidget::sizeHint(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QIcon PythonQtWrapper_QTabWidget::tabIcon(QTabWidget* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabIcon(index)); -} - -void PythonQtWrapper_QTabWidget::tabInserted(QTabWidget* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_tabInserted(index)); -} - -QTabWidget::TabPosition PythonQtWrapper_QTabWidget::tabPosition(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->tabPosition()); -} - -void PythonQtWrapper_QTabWidget::tabRemoved(QTabWidget* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QTabWidget*)theWrappedObject)->promoted_tabRemoved(index)); -} - -QTabWidget::TabShape PythonQtWrapper_QTabWidget::tabShape(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->tabShape()); -} - -QString PythonQtWrapper_QTabWidget::tabText(QTabWidget* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabText(index)); -} - -QString PythonQtWrapper_QTabWidget::tabToolTip(QTabWidget* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabToolTip(index)); -} - -QString PythonQtWrapper_QTabWidget::tabWhatsThis(QTabWidget* theWrappedObject, int index) const -{ - return ( theWrappedObject->tabWhatsThis(index)); -} - -bool PythonQtWrapper_QTabWidget::tabsClosable(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->tabsClosable()); -} - -bool PythonQtWrapper_QTabWidget::usesScrollButtons(QTabWidget* theWrappedObject) const -{ - return ( theWrappedObject->usesScrollButtons()); -} - -QWidget* PythonQtWrapper_QTabWidget::widget(QTabWidget* theWrappedObject, int index) const -{ - return ( theWrappedObject->widget(index)); -} - - - -void PythonQtShell_QTableView::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::actionEvent(arg__1); -} -void PythonQtShell_QTableView::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::changeEvent(arg__1); -} -void PythonQtShell_QTableView::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::childEvent(arg__1); -} -void PythonQtShell_QTableView::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::closeEditor(editor, hint); -} -void PythonQtShell_QTableView::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::closeEvent(arg__1); -} -void PythonQtShell_QTableView::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::commitData(editor); -} -void PythonQtShell_QTableView::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::contextMenuEvent(arg__1); -} -void PythonQtShell_QTableView::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::currentChanged(current, previous); -} -void PythonQtShell_QTableView::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::customEvent(arg__1); -} -void PythonQtShell_QTableView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QTableView::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::devType(); -} -void PythonQtShell_QTableView::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::doItemsLayout(); -} -void PythonQtShell_QTableView::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableView::dragEnterEvent(event); -} -void PythonQtShell_QTableView::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableView::dragLeaveEvent(event); -} -void PythonQtShell_QTableView::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableView::dragMoveEvent(event); -} -void PythonQtShell_QTableView::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableView::dropEvent(event); -} -bool PythonQtShell_QTableView::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::edit(index, trigger, event); -} -void PythonQtShell_QTableView::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::editorDestroyed(editor); -} -void PythonQtShell_QTableView::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::enterEvent(arg__1); -} -bool PythonQtShell_QTableView::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::event(event); -} -bool PythonQtShell_QTableView::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTableView::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::focusInEvent(event); -} -bool PythonQtShell_QTableView::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::focusNextPrevChild(next); -} -void PythonQtShell_QTableView::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::focusOutEvent(event); -} -int PythonQtShell_QTableView::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::heightForWidth(arg__1); -} -void PythonQtShell_QTableView::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::hideEvent(arg__1); -} -int PythonQtShell_QTableView::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::horizontalOffset(); -} -void PythonQtShell_QTableView::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::horizontalScrollbarAction(action); -} -void PythonQtShell_QTableView::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QTableView::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::indexAt(p); -} -void PythonQtShell_QTableView::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableView::inputMethodEvent(event); -} -QVariant PythonQtShell_QTableView::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::inputMethodQuery(query); -} -bool PythonQtShell_QTableView::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::isIndexHidden(index); -} -void PythonQtShell_QTableView::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::keyPressEvent(event); -} -void PythonQtShell_QTableView::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::keyReleaseEvent(arg__1); -} -void PythonQtShell_QTableView::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::keyboardSearch(search); -} -void PythonQtShell_QTableView::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::languageChange(); -} -void PythonQtShell_QTableView::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::leaveEvent(arg__1); -} -int PythonQtShell_QTableView::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::metric(arg__1); -} -void PythonQtShell_QTableView::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::mouseDoubleClickEvent(event); -} -void PythonQtShell_QTableView::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::mouseMoveEvent(event); -} -void PythonQtShell_QTableView::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::mousePressEvent(event); -} -void PythonQtShell_QTableView::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::mouseReleaseEvent(event); -} -void PythonQtShell_QTableView::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTableView::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::paintEngine(); -} -void PythonQtShell_QTableView::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::paintEvent(e); -} -void PythonQtShell_QTableView::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::reset(); -} -void PythonQtShell_QTableView::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::resizeEvent(event); -} -void PythonQtShell_QTableView::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QTableView::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::rowsInserted(parent, start, end); -} -void PythonQtShell_QTableView::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableView::scrollContentsBy(dx, dy); -} -void PythonQtShell_QTableView::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::scrollTo(index, hint); -} -void PythonQtShell_QTableView::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::selectAll(); -} -QList PythonQtShell_QTableView::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::selectedIndexes(); -} -void PythonQtShell_QTableView::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QTableView::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::selectionCommand(index, event); -} -void PythonQtShell_QTableView::setModel(QAbstractItemModel* model) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QAbstractItemModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&model}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::setModel(model); -} -void PythonQtShell_QTableView::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::setRootIndex(index); -} -void PythonQtShell_QTableView::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::setSelection(rect, command); -} -void PythonQtShell_QTableView::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::setSelectionModel(selectionModel); -} -void PythonQtShell_QTableView::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::showEvent(arg__1); -} -int PythonQtShell_QTableView::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::sizeHintForColumn(column); -} -int PythonQtShell_QTableView::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::sizeHintForRow(row); -} -void PythonQtShell_QTableView::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::startDrag(supportedActions); -} -void PythonQtShell_QTableView::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::tabletEvent(arg__1); -} -void PythonQtShell_QTableView::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::timerEvent(event); -} -void PythonQtShell_QTableView::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::updateEditorData(); -} -void PythonQtShell_QTableView::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::updateEditorGeometries(); -} -void PythonQtShell_QTableView::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::updateGeometries(); -} -int PythonQtShell_QTableView::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::verticalOffset(); -} -void PythonQtShell_QTableView::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::verticalScrollbarAction(action); -} -void PythonQtShell_QTableView::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QTableView::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::viewOptions(); -} -bool PythonQtShell_QTableView::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::viewportEvent(event); -} -QRect PythonQtShell_QTableView::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::visualRect(index); -} -QRegion PythonQtShell_QTableView::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableView::visualRegionForSelection(selection); -} -void PythonQtShell_QTableView::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableView::wheelEvent(arg__1); -} -QTableView* PythonQtWrapper_QTableView::new_QTableView(QWidget* parent) -{ -return new PythonQtShell_QTableView(parent); } - -void PythonQtWrapper_QTableView::clearSpans(QTableView* theWrappedObject) -{ - ( theWrappedObject->clearSpans()); -} - -int PythonQtWrapper_QTableView::columnAt(QTableView* theWrappedObject, int x) const -{ - return ( theWrappedObject->columnAt(x)); -} - -int PythonQtWrapper_QTableView::columnSpan(QTableView* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->columnSpan(row, column)); -} - -int PythonQtWrapper_QTableView::columnViewportPosition(QTableView* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnViewportPosition(column)); -} - -int PythonQtWrapper_QTableView::columnWidth(QTableView* theWrappedObject, int column) const -{ - return ( theWrappedObject->columnWidth(column)); -} - -void PythonQtWrapper_QTableView::currentChanged(QTableView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_currentChanged(current, previous)); -} - -Qt::PenStyle PythonQtWrapper_QTableView::gridStyle(QTableView* theWrappedObject) const -{ - return ( theWrappedObject->gridStyle()); -} - -QHeaderView* PythonQtWrapper_QTableView::horizontalHeader(QTableView* theWrappedObject) const -{ - return ( theWrappedObject->horizontalHeader()); -} - -int PythonQtWrapper_QTableView::horizontalOffset(QTableView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_horizontalOffset()); -} - -void PythonQtWrapper_QTableView::horizontalScrollbarAction(QTableView* theWrappedObject, int action) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_horizontalScrollbarAction(action)); -} - -QModelIndex PythonQtWrapper_QTableView::indexAt(QTableView* theWrappedObject, const QPoint& p) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_indexAt(p)); -} - -bool PythonQtWrapper_QTableView::isColumnHidden(QTableView* theWrappedObject, int column) const -{ - return ( theWrappedObject->isColumnHidden(column)); -} - -bool PythonQtWrapper_QTableView::isCornerButtonEnabled(QTableView* theWrappedObject) const -{ - return ( theWrappedObject->isCornerButtonEnabled()); -} - -bool PythonQtWrapper_QTableView::isIndexHidden(QTableView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_isIndexHidden(index)); -} - -bool PythonQtWrapper_QTableView::isRowHidden(QTableView* theWrappedObject, int row) const -{ - return ( theWrappedObject->isRowHidden(row)); -} - -bool PythonQtWrapper_QTableView::isSortingEnabled(QTableView* theWrappedObject) const -{ - return ( theWrappedObject->isSortingEnabled()); -} - -void PythonQtWrapper_QTableView::paintEvent(QTableView* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_paintEvent(e)); -} - -int PythonQtWrapper_QTableView::rowAt(QTableView* theWrappedObject, int y) const -{ - return ( theWrappedObject->rowAt(y)); -} - -int PythonQtWrapper_QTableView::rowHeight(QTableView* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowHeight(row)); -} - -int PythonQtWrapper_QTableView::rowSpan(QTableView* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->rowSpan(row, column)); -} - -int PythonQtWrapper_QTableView::rowViewportPosition(QTableView* theWrappedObject, int row) const -{ - return ( theWrappedObject->rowViewportPosition(row)); -} - -void PythonQtWrapper_QTableView::scrollContentsBy(QTableView* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QTableView::scrollTo(QTableView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_scrollTo(index, hint)); -} - -QList PythonQtWrapper_QTableView::selectedIndexes(QTableView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_selectedIndexes()); -} - -void PythonQtWrapper_QTableView::selectionChanged(QTableView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_selectionChanged(selected, deselected)); -} - -void PythonQtWrapper_QTableView::setColumnHidden(QTableView* theWrappedObject, int column, bool hide) -{ - ( theWrappedObject->setColumnHidden(column, hide)); -} - -void PythonQtWrapper_QTableView::setColumnWidth(QTableView* theWrappedObject, int column, int width) -{ - ( theWrappedObject->setColumnWidth(column, width)); -} - -void PythonQtWrapper_QTableView::setCornerButtonEnabled(QTableView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setCornerButtonEnabled(enable)); -} - -void PythonQtWrapper_QTableView::setGridStyle(QTableView* theWrappedObject, Qt::PenStyle style) -{ - ( theWrappedObject->setGridStyle(style)); -} - -void PythonQtWrapper_QTableView::setHorizontalHeader(QTableView* theWrappedObject, QHeaderView* header) -{ - ( theWrappedObject->setHorizontalHeader(header)); -} - -void PythonQtWrapper_QTableView::setModel(QTableView* theWrappedObject, QAbstractItemModel* model) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setModel(model)); -} - -void PythonQtWrapper_QTableView::setRootIndex(QTableView* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setRootIndex(index)); -} - -void PythonQtWrapper_QTableView::setRowHeight(QTableView* theWrappedObject, int row, int height) -{ - ( theWrappedObject->setRowHeight(row, height)); -} - -void PythonQtWrapper_QTableView::setRowHidden(QTableView* theWrappedObject, int row, bool hide) -{ - ( theWrappedObject->setRowHidden(row, hide)); -} - -void PythonQtWrapper_QTableView::setSelection(QTableView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setSelection(rect, command)); -} - -void PythonQtWrapper_QTableView::setSelectionModel(QTableView* theWrappedObject, QItemSelectionModel* selectionModel) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_setSelectionModel(selectionModel)); -} - -void PythonQtWrapper_QTableView::setSortingEnabled(QTableView* theWrappedObject, bool enable) -{ - ( theWrappedObject->setSortingEnabled(enable)); -} - -void PythonQtWrapper_QTableView::setSpan(QTableView* theWrappedObject, int row, int column, int rowSpan, int columnSpan) -{ - ( theWrappedObject->setSpan(row, column, rowSpan, columnSpan)); -} - -void PythonQtWrapper_QTableView::setVerticalHeader(QTableView* theWrappedObject, QHeaderView* header) -{ - ( theWrappedObject->setVerticalHeader(header)); -} - -void PythonQtWrapper_QTableView::setWordWrap(QTableView* theWrappedObject, bool on) -{ - ( theWrappedObject->setWordWrap(on)); -} - -bool PythonQtWrapper_QTableView::showGrid(QTableView* theWrappedObject) const -{ - return ( theWrappedObject->showGrid()); -} - -int PythonQtWrapper_QTableView::sizeHintForColumn(QTableView* theWrappedObject, int column) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_sizeHintForColumn(column)); -} - -int PythonQtWrapper_QTableView::sizeHintForRow(QTableView* theWrappedObject, int row) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_sizeHintForRow(row)); -} - -void PythonQtWrapper_QTableView::sortByColumn(QTableView* theWrappedObject, int column, Qt::SortOrder order) -{ - ( theWrappedObject->sortByColumn(column, order)); -} - -void PythonQtWrapper_QTableView::timerEvent(QTableView* theWrappedObject, QTimerEvent* event) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_timerEvent(event)); -} - -void PythonQtWrapper_QTableView::updateGeometries(QTableView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_updateGeometries()); -} - -QHeaderView* PythonQtWrapper_QTableView::verticalHeader(QTableView* theWrappedObject) const -{ - return ( theWrappedObject->verticalHeader()); -} - -int PythonQtWrapper_QTableView::verticalOffset(QTableView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_verticalOffset()); -} - -void PythonQtWrapper_QTableView::verticalScrollbarAction(QTableView* theWrappedObject, int action) -{ - ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_verticalScrollbarAction(action)); -} - -QStyleOptionViewItem PythonQtWrapper_QTableView::viewOptions(QTableView* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_viewOptions()); -} - -QRect PythonQtWrapper_QTableView::visualRect(QTableView* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_visualRect(index)); -} - -QRegion PythonQtWrapper_QTableView::visualRegionForSelection(QTableView* theWrappedObject, const QItemSelection& selection) const -{ - return ( ((PythonQtPublicPromoter_QTableView*)theWrappedObject)->promoted_visualRegionForSelection(selection)); -} - -bool PythonQtWrapper_QTableView::wordWrap(QTableView* theWrappedObject) const -{ - return ( theWrappedObject->wordWrap()); -} - - - -void PythonQtShell_QTableWidget::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::actionEvent(arg__1); -} -void PythonQtShell_QTableWidget::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::changeEvent(arg__1); -} -void PythonQtShell_QTableWidget::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::childEvent(arg__1); -} -void PythonQtShell_QTableWidget::closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEditor"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*" , "QAbstractItemDelegate::EndEditHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&editor, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::closeEditor(editor, hint); -} -void PythonQtShell_QTableWidget::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::closeEvent(arg__1); -} -void PythonQtShell_QTableWidget::commitData(QWidget* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "commitData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::commitData(editor); -} -void PythonQtShell_QTableWidget::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::contextMenuEvent(arg__1); -} -void PythonQtShell_QTableWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "currentChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)¤t, (void*)&previous}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::currentChanged(current, previous); -} -void PythonQtShell_QTableWidget::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::customEvent(arg__1); -} -void PythonQtShell_QTableWidget::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&topLeft, (void*)&bottomRight}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::dataChanged(topLeft, bottomRight); -} -int PythonQtShell_QTableWidget::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::devType(); -} -void PythonQtShell_QTableWidget::doItemsLayout() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "doItemsLayout"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::doItemsLayout(); -} -void PythonQtShell_QTableWidget::dragEnterEvent(QDragEnterEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableWidget::dragEnterEvent(event); -} -void PythonQtShell_QTableWidget::dragLeaveEvent(QDragLeaveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableWidget::dragLeaveEvent(event); -} -void PythonQtShell_QTableWidget::dragMoveEvent(QDragMoveEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableWidget::dragMoveEvent(event); -} -void PythonQtShell_QTableWidget::dropEvent(QDropEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableWidget::dropEvent(event); -} -bool PythonQtShell_QTableWidget::dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QMimeData*" , "Qt::DropAction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)&row, (void*)&column, (void*)&data, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::dropMimeData(row, column, data, action); -} -bool PythonQtShell_QTableWidget::edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "edit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("edit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::edit(index, trigger, event); -} -void PythonQtShell_QTableWidget::editorDestroyed(QObject* editor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "editorDestroyed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&editor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::editorDestroyed(editor); -} -void PythonQtShell_QTableWidget::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::enterEvent(arg__1); -} -bool PythonQtShell_QTableWidget::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::event(e); -} -bool PythonQtShell_QTableWidget::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTableWidget::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::focusInEvent(event); -} -bool PythonQtShell_QTableWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::focusNextPrevChild(next); -} -void PythonQtShell_QTableWidget::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::focusOutEvent(event); -} -int PythonQtShell_QTableWidget::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::heightForWidth(arg__1); -} -void PythonQtShell_QTableWidget::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::hideEvent(arg__1); -} -int PythonQtShell_QTableWidget::horizontalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("horizontalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::horizontalOffset(); -} -void PythonQtShell_QTableWidget::horizontalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::horizontalScrollbarAction(action); -} -void PythonQtShell_QTableWidget::horizontalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "horizontalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::horizontalScrollbarValueChanged(value); -} -QModelIndex PythonQtShell_QTableWidget::indexAt(const QPoint& p) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "indexAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("indexAt", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::indexAt(p); -} -void PythonQtShell_QTableWidget::inputMethodEvent(QInputMethodEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QTableWidget::inputMethodEvent(event); -} -QVariant PythonQtShell_QTableWidget::inputMethodQuery(Qt::InputMethodQuery query) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::inputMethodQuery(query); -} -bool PythonQtShell_QTableWidget::isIndexHidden(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isIndexHidden"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isIndexHidden", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::isIndexHidden(index); -} -void PythonQtShell_QTableWidget::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::keyPressEvent(event); -} -void PythonQtShell_QTableWidget::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::keyReleaseEvent(arg__1); -} -void PythonQtShell_QTableWidget::keyboardSearch(const QString& search) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyboardSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&search}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::keyboardSearch(search); -} -void PythonQtShell_QTableWidget::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::languageChange(); -} -void PythonQtShell_QTableWidget::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::leaveEvent(arg__1); -} -int PythonQtShell_QTableWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::metric(arg__1); -} -QMimeData* PythonQtShell_QTableWidget::mimeData(const QList items) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&items}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::mimeData(items); -} -QStringList PythonQtShell_QTableWidget::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::mimeTypes(); -} -void PythonQtShell_QTableWidget::mouseDoubleClickEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::mouseDoubleClickEvent(event); -} -void PythonQtShell_QTableWidget::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::mouseMoveEvent(event); -} -void PythonQtShell_QTableWidget::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::mousePressEvent(event); -} -void PythonQtShell_QTableWidget::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::mouseReleaseEvent(event); -} -void PythonQtShell_QTableWidget::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTableWidget::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::paintEngine(); -} -void PythonQtShell_QTableWidget::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::paintEvent(e); -} -void PythonQtShell_QTableWidget::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::reset(); -} -void PythonQtShell_QTableWidget::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::resizeEvent(event); -} -void PythonQtShell_QTableWidget::rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsAboutToBeRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::rowsAboutToBeRemoved(parent, start, end); -} -void PythonQtShell_QTableWidget::rowsInserted(const QModelIndex& parent, int start, int end) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowsInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&parent, (void*)&start, (void*)&end}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::rowsInserted(parent, start, end); -} -void PythonQtShell_QTableWidget::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTableWidget::scrollContentsBy(dx, dy); -} -void PythonQtShell_QTableWidget::scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "QAbstractItemView::ScrollHint"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&hint}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::scrollTo(index, hint); -} -void PythonQtShell_QTableWidget::selectAll() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectAll"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::selectAll(); -} -QList PythonQtShell_QTableWidget::selectedIndexes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectedIndexes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectedIndexes", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::selectedIndexes(); -} -void PythonQtShell_QTableWidget::selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&selected, (void*)&deselected}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::selectionChanged(selected, deselected); -} -QItemSelectionModel::SelectionFlags PythonQtShell_QTableWidget::selectionCommand(const QModelIndex& index, const QEvent* event) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selectionCommand"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selectionCommand", methodInfo, result); - } else { - returnValue = *((QItemSelectionModel::SelectionFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::selectionCommand(index, event); -} -void PythonQtShell_QTableWidget::setRootIndex(const QModelIndex& index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setRootIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::setRootIndex(index); -} -void PythonQtShell_QTableWidget::setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QRect&" , "QItemSelectionModel::SelectionFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&rect, (void*)&command}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::setSelection(rect, command); -} -void PythonQtShell_QTableWidget::setSelectionModel(QItemSelectionModel* selectionModel) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSelectionModel"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QItemSelectionModel*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selectionModel}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::setSelectionModel(selectionModel); -} -void PythonQtShell_QTableWidget::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::showEvent(arg__1); -} -int PythonQtShell_QTableWidget::sizeHintForColumn(int column) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForColumn"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForColumn", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::sizeHintForColumn(column); -} -int PythonQtShell_QTableWidget::sizeHintForRow(int row) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sizeHintForRow"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sizeHintForRow", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::sizeHintForRow(row); -} -void PythonQtShell_QTableWidget::startDrag(Qt::DropActions supportedActions) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "startDrag"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&supportedActions}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::startDrag(supportedActions); -} -Qt::DropActions PythonQtShell_QTableWidget::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::supportedDropActions(); -} -void PythonQtShell_QTableWidget::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::tabletEvent(arg__1); -} -void PythonQtShell_QTableWidget::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::timerEvent(event); -} -void PythonQtShell_QTableWidget::updateEditorData() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::updateEditorData(); -} -void PythonQtShell_QTableWidget::updateEditorGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateEditorGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::updateEditorGeometries(); -} -void PythonQtShell_QTableWidget::updateGeometries() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateGeometries"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::updateGeometries(); -} -int PythonQtShell_QTableWidget::verticalOffset() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalOffset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("verticalOffset", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::verticalOffset(); -} -void PythonQtShell_QTableWidget::verticalScrollbarAction(int action) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarAction"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::verticalScrollbarAction(action); -} -void PythonQtShell_QTableWidget::verticalScrollbarValueChanged(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "verticalScrollbarValueChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::verticalScrollbarValueChanged(value); -} -QStyleOptionViewItem PythonQtShell_QTableWidget::viewOptions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewOptions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyleOptionViewItem"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStyleOptionViewItem returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewOptions", methodInfo, result); - } else { - returnValue = *((QStyleOptionViewItem*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::viewOptions(); -} -bool PythonQtShell_QTableWidget::viewportEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::viewportEvent(event); -} -QRect PythonQtShell_QTableWidget::visualRect(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRect"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRect" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRect returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRect", methodInfo, result); - } else { - returnValue = *((QRect*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::visualRect(index); -} -QRegion PythonQtShell_QTableWidget::visualRegionForSelection(const QItemSelection& selection) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "visualRegionForSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QRegion" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QRegion returnValue; - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("visualRegionForSelection", methodInfo, result); - } else { - returnValue = *((QRegion*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidget::visualRegionForSelection(selection); -} -void PythonQtShell_QTableWidget::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidget::wheelEvent(arg__1); -} -QTableWidget* PythonQtWrapper_QTableWidget::new_QTableWidget(QWidget* parent) -{ -return new PythonQtShell_QTableWidget(parent); } - -QTableWidget* PythonQtWrapper_QTableWidget::new_QTableWidget(int rows, int columns, QWidget* parent) -{ -return new PythonQtShell_QTableWidget(rows, columns, parent); } - -QWidget* PythonQtWrapper_QTableWidget::cellWidget(QTableWidget* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->cellWidget(row, column)); -} - -void PythonQtWrapper_QTableWidget::closePersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item) -{ - ( theWrappedObject->closePersistentEditor(item)); -} - -int PythonQtWrapper_QTableWidget::column(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const -{ - return ( theWrappedObject->column(item)); -} - -int PythonQtWrapper_QTableWidget::columnCount(QTableWidget* theWrappedObject) const -{ - return ( theWrappedObject->columnCount()); -} - -int PythonQtWrapper_QTableWidget::currentColumn(QTableWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentColumn()); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::currentItem(QTableWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentItem()); -} - -int PythonQtWrapper_QTableWidget::currentRow(QTableWidget* theWrappedObject) const -{ - return ( theWrappedObject->currentRow()); -} - -void PythonQtWrapper_QTableWidget::dropEvent(QTableWidget* theWrappedObject, QDropEvent* event) -{ - ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_dropEvent(event)); -} - -bool PythonQtWrapper_QTableWidget::dropMimeData(QTableWidget* theWrappedObject, int row, int column, const QMimeData* data, Qt::DropAction action) -{ - return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_dropMimeData(row, column, data, action)); -} - -void PythonQtWrapper_QTableWidget::editItem(QTableWidget* theWrappedObject, QTableWidgetItem* item) -{ - ( theWrappedObject->editItem(item)); -} - -bool PythonQtWrapper_QTableWidget::event(QTableWidget* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_event(e)); -} - -QList PythonQtWrapper_QTableWidget::findItems(QTableWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const -{ - return ( theWrappedObject->findItems(text, flags)); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::horizontalHeaderItem(QTableWidget* theWrappedObject, int column) const -{ - return ( theWrappedObject->horizontalHeaderItem(column)); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::item(QTableWidget* theWrappedObject, int row, int column) const -{ - return ( theWrappedObject->item(row, column)); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::itemAt(QTableWidget* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->itemAt(p)); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::itemAt(QTableWidget* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->itemAt(x, y)); -} - -const QTableWidgetItem* PythonQtWrapper_QTableWidget::itemPrototype(QTableWidget* theWrappedObject) const -{ - return ( theWrappedObject->itemPrototype()); -} - -QStringList PythonQtWrapper_QTableWidget::mimeTypes(QTableWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_mimeTypes()); -} - -void PythonQtWrapper_QTableWidget::openPersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item) -{ - ( theWrappedObject->openPersistentEditor(item)); -} - -void PythonQtWrapper_QTableWidget::removeCellWidget(QTableWidget* theWrappedObject, int row, int column) -{ - ( theWrappedObject->removeCellWidget(row, column)); -} - -int PythonQtWrapper_QTableWidget::row(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const -{ - return ( theWrappedObject->row(item)); -} - -int PythonQtWrapper_QTableWidget::rowCount(QTableWidget* theWrappedObject) const -{ - return ( theWrappedObject->rowCount()); -} - -QList PythonQtWrapper_QTableWidget::selectedItems(QTableWidget* theWrappedObject) -{ - return ( theWrappedObject->selectedItems()); -} - -QList PythonQtWrapper_QTableWidget::selectedRanges(QTableWidget* theWrappedObject) const -{ - return ( theWrappedObject->selectedRanges()); -} - -void PythonQtWrapper_QTableWidget::setCellWidget(QTableWidget* theWrappedObject, int row, int column, QWidget* widget) -{ - ( theWrappedObject->setCellWidget(row, column, widget)); -} - -void PythonQtWrapper_QTableWidget::setColumnCount(QTableWidget* theWrappedObject, int columns) -{ - ( theWrappedObject->setColumnCount(columns)); -} - -void PythonQtWrapper_QTableWidget::setCurrentCell(QTableWidget* theWrappedObject, int row, int column) -{ - ( theWrappedObject->setCurrentCell(row, column)); -} - -void PythonQtWrapper_QTableWidget::setCurrentCell(QTableWidget* theWrappedObject, int row, int column, QItemSelectionModel::SelectionFlags command) -{ - ( theWrappedObject->setCurrentCell(row, column, command)); -} - -void PythonQtWrapper_QTableWidget::setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item) -{ - ( theWrappedObject->setCurrentItem(item)); -} - -void PythonQtWrapper_QTableWidget::setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item, QItemSelectionModel::SelectionFlags command) -{ - ( theWrappedObject->setCurrentItem(item, command)); -} - -void PythonQtWrapper_QTableWidget::setHorizontalHeaderItem(QTableWidget* theWrappedObject, int column, QTableWidgetItem* item) -{ - ( theWrappedObject->setHorizontalHeaderItem(column, item)); -} - -void PythonQtWrapper_QTableWidget::setHorizontalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels) -{ - ( theWrappedObject->setHorizontalHeaderLabels(labels)); -} - -void PythonQtWrapper_QTableWidget::setItem(QTableWidget* theWrappedObject, int row, int column, QTableWidgetItem* item) -{ - ( theWrappedObject->setItem(row, column, item)); -} - -void PythonQtWrapper_QTableWidget::setItemPrototype(QTableWidget* theWrappedObject, const QTableWidgetItem* item) -{ - ( theWrappedObject->setItemPrototype(item)); -} - -void PythonQtWrapper_QTableWidget::setRangeSelected(QTableWidget* theWrappedObject, const QTableWidgetSelectionRange& range, bool select) -{ - ( theWrappedObject->setRangeSelected(range, select)); -} - -void PythonQtWrapper_QTableWidget::setRowCount(QTableWidget* theWrappedObject, int rows) -{ - ( theWrappedObject->setRowCount(rows)); -} - -void PythonQtWrapper_QTableWidget::setVerticalHeaderItem(QTableWidget* theWrappedObject, int row, QTableWidgetItem* item) -{ - ( theWrappedObject->setVerticalHeaderItem(row, item)); -} - -void PythonQtWrapper_QTableWidget::setVerticalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels) -{ - ( theWrappedObject->setVerticalHeaderLabels(labels)); -} - -void PythonQtWrapper_QTableWidget::sortItems(QTableWidget* theWrappedObject, int column, Qt::SortOrder order) -{ - ( theWrappedObject->sortItems(column, order)); -} - -Qt::DropActions PythonQtWrapper_QTableWidget::supportedDropActions(QTableWidget* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTableWidget*)theWrappedObject)->promoted_supportedDropActions()); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::takeHorizontalHeaderItem(QTableWidget* theWrappedObject, int column) -{ - return ( theWrappedObject->takeHorizontalHeaderItem(column)); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::takeItem(QTableWidget* theWrappedObject, int row, int column) -{ - return ( theWrappedObject->takeItem(row, column)); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::takeVerticalHeaderItem(QTableWidget* theWrappedObject, int row) -{ - return ( theWrappedObject->takeVerticalHeaderItem(row)); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidget::verticalHeaderItem(QTableWidget* theWrappedObject, int row) const -{ - return ( theWrappedObject->verticalHeaderItem(row)); -} - -int PythonQtWrapper_QTableWidget::visualColumn(QTableWidget* theWrappedObject, int logicalColumn) const -{ - return ( theWrappedObject->visualColumn(logicalColumn)); -} - -QRect PythonQtWrapper_QTableWidget::visualItemRect(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const -{ - return ( theWrappedObject->visualItemRect(item)); -} - -int PythonQtWrapper_QTableWidget::visualRow(QTableWidget* theWrappedObject, int logicalRow) const -{ - return ( theWrappedObject->visualRow(logicalRow)); -} - - - -QTableWidgetItem* PythonQtShell_QTableWidgetItem::clone() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTableWidgetItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QTableWidgetItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); - } else { - returnValue = *((QTableWidgetItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidgetItem::clone(); -} -QVariant PythonQtShell_QTableWidgetItem::data(int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidgetItem::data(role); -} -bool PythonQtShell_QTableWidgetItem::__lt__(const QTableWidgetItem& other) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "__lt__"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QTableWidgetItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("__lt__", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTableWidgetItem::operator<(other); -} -void PythonQtShell_QTableWidgetItem::read(QDataStream& in) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&in}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidgetItem::read(in); -} -void PythonQtShell_QTableWidgetItem::setData(int role, const QVariant& value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QVariant&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&role, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidgetItem::setData(role, value); -} -void PythonQtShell_QTableWidgetItem::write(QDataStream& out) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDataStream&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&out}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTableWidgetItem::write(out); -} -QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::new_QTableWidgetItem(const QIcon& icon, const QString& text, int type) -{ -return new PythonQtShell_QTableWidgetItem(icon, text, type); } - -QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::new_QTableWidgetItem(const QString& text, int type) -{ -return new PythonQtShell_QTableWidgetItem(text, type); } - -QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::new_QTableWidgetItem(int type) -{ -return new PythonQtShell_QTableWidgetItem(type); } - -QBrush PythonQtWrapper_QTableWidgetItem::background(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->background()); -} - -Qt::CheckState PythonQtWrapper_QTableWidgetItem::checkState(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->checkState()); -} - -QTableWidgetItem* PythonQtWrapper_QTableWidgetItem::clone(QTableWidgetItem* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTableWidgetItem*)theWrappedObject)->promoted_clone()); -} - -int PythonQtWrapper_QTableWidgetItem::column(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->column()); -} - -QVariant PythonQtWrapper_QTableWidgetItem::data(QTableWidgetItem* theWrappedObject, int role) const -{ - return ( ((PythonQtPublicPromoter_QTableWidgetItem*)theWrappedObject)->promoted_data(role)); -} - -Qt::ItemFlags PythonQtWrapper_QTableWidgetItem::flags(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->flags()); -} - -QFont PythonQtWrapper_QTableWidgetItem::font(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -QBrush PythonQtWrapper_QTableWidgetItem::foreground(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->foreground()); -} - -QIcon PythonQtWrapper_QTableWidgetItem::icon(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->icon()); -} - -bool PythonQtWrapper_QTableWidgetItem::isSelected(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->isSelected()); -} - -void PythonQtWrapper_QTableWidgetItem::writeTo(QTableWidgetItem* theWrappedObject, QDataStream& out) -{ - out << (*theWrappedObject); -} - -void PythonQtWrapper_QTableWidgetItem::readFrom(QTableWidgetItem* theWrappedObject, QDataStream& in) -{ - in >> (*theWrappedObject); -} - -int PythonQtWrapper_QTableWidgetItem::row(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->row()); -} - -void PythonQtWrapper_QTableWidgetItem::setBackground(QTableWidgetItem* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBackground(brush)); -} - -void PythonQtWrapper_QTableWidgetItem::setCheckState(QTableWidgetItem* theWrappedObject, Qt::CheckState state) -{ - ( theWrappedObject->setCheckState(state)); -} - -void PythonQtWrapper_QTableWidgetItem::setData(QTableWidgetItem* theWrappedObject, int role, const QVariant& value) -{ - ( ((PythonQtPublicPromoter_QTableWidgetItem*)theWrappedObject)->promoted_setData(role, value)); -} - -void PythonQtWrapper_QTableWidgetItem::setFlags(QTableWidgetItem* theWrappedObject, Qt::ItemFlags flags) -{ - ( theWrappedObject->setFlags(flags)); -} - -void PythonQtWrapper_QTableWidgetItem::setFont(QTableWidgetItem* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QTableWidgetItem::setForeground(QTableWidgetItem* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setForeground(brush)); -} - -void PythonQtWrapper_QTableWidgetItem::setIcon(QTableWidgetItem* theWrappedObject, const QIcon& icon) -{ - ( theWrappedObject->setIcon(icon)); -} - -void PythonQtWrapper_QTableWidgetItem::setSelected(QTableWidgetItem* theWrappedObject, bool select) -{ - ( theWrappedObject->setSelected(select)); -} - -void PythonQtWrapper_QTableWidgetItem::setSizeHint(QTableWidgetItem* theWrappedObject, const QSize& size) -{ - ( theWrappedObject->setSizeHint(size)); -} - -void PythonQtWrapper_QTableWidgetItem::setStatusTip(QTableWidgetItem* theWrappedObject, const QString& statusTip) -{ - ( theWrappedObject->setStatusTip(statusTip)); -} - -void PythonQtWrapper_QTableWidgetItem::setText(QTableWidgetItem* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setText(text)); -} - -void PythonQtWrapper_QTableWidgetItem::setTextAlignment(QTableWidgetItem* theWrappedObject, int alignment) -{ - ( theWrappedObject->setTextAlignment(alignment)); -} - -void PythonQtWrapper_QTableWidgetItem::setToolTip(QTableWidgetItem* theWrappedObject, const QString& toolTip) -{ - ( theWrappedObject->setToolTip(toolTip)); -} - -void PythonQtWrapper_QTableWidgetItem::setWhatsThis(QTableWidgetItem* theWrappedObject, const QString& whatsThis) -{ - ( theWrappedObject->setWhatsThis(whatsThis)); -} - -QSize PythonQtWrapper_QTableWidgetItem::sizeHint(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -QString PythonQtWrapper_QTableWidgetItem::statusTip(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->statusTip()); -} - -QTableWidget* PythonQtWrapper_QTableWidgetItem::tableWidget(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->tableWidget()); -} - -QString PythonQtWrapper_QTableWidgetItem::text(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -int PythonQtWrapper_QTableWidgetItem::textAlignment(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->textAlignment()); -} - -QString PythonQtWrapper_QTableWidgetItem::toolTip(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - -int PythonQtWrapper_QTableWidgetItem::type(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -QString PythonQtWrapper_QTableWidgetItem::whatsThis(QTableWidgetItem* theWrappedObject) const -{ - return ( theWrappedObject->whatsThis()); -} - - - -QTableWidgetSelectionRange* PythonQtWrapper_QTableWidgetSelectionRange::new_QTableWidgetSelectionRange() -{ -return new QTableWidgetSelectionRange(); } - -QTableWidgetSelectionRange* PythonQtWrapper_QTableWidgetSelectionRange::new_QTableWidgetSelectionRange(const QTableWidgetSelectionRange& other) -{ -return new QTableWidgetSelectionRange(other); } - -QTableWidgetSelectionRange* PythonQtWrapper_QTableWidgetSelectionRange::new_QTableWidgetSelectionRange(int top, int left, int bottom, int right) -{ -return new QTableWidgetSelectionRange(top, left, bottom, right); } - -int PythonQtWrapper_QTableWidgetSelectionRange::bottomRow(QTableWidgetSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->bottomRow()); -} - -int PythonQtWrapper_QTableWidgetSelectionRange::columnCount(QTableWidgetSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->columnCount()); -} - -int PythonQtWrapper_QTableWidgetSelectionRange::leftColumn(QTableWidgetSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->leftColumn()); -} - -int PythonQtWrapper_QTableWidgetSelectionRange::rightColumn(QTableWidgetSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->rightColumn()); -} - -int PythonQtWrapper_QTableWidgetSelectionRange::rowCount(QTableWidgetSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->rowCount()); -} - -int PythonQtWrapper_QTableWidgetSelectionRange::topRow(QTableWidgetSelectionRange* theWrappedObject) const -{ - return ( theWrappedObject->topRow()); -} - - - -QTabletEvent* PythonQtWrapper_QTabletEvent::new_QTabletEvent(QEvent::Type t, const QPoint& pos, const QPoint& globalPos, const QPointF& hiResGlobalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID) -{ -return new PythonQtShell_QTabletEvent(t, pos, globalPos, hiResGlobalPos, device, pointerType, pressure, xTilt, yTilt, tangentialPressure, rotation, z, keyState, uniqueID); } - -QTabletEvent::TabletDevice PythonQtWrapper_QTabletEvent::device(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -const QPoint* PythonQtWrapper_QTabletEvent::globalPos(QTabletEvent* theWrappedObject) const -{ - return &( theWrappedObject->globalPos()); -} - -int PythonQtWrapper_QTabletEvent::globalX(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalX()); -} - -int PythonQtWrapper_QTabletEvent::globalY(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->globalY()); -} - -const QPointF* PythonQtWrapper_QTabletEvent::hiResGlobalPos(QTabletEvent* theWrappedObject) const -{ - return &( theWrappedObject->hiResGlobalPos()); -} - -qreal PythonQtWrapper_QTabletEvent::hiResGlobalX(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->hiResGlobalX()); -} - -qreal PythonQtWrapper_QTabletEvent::hiResGlobalY(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->hiResGlobalY()); -} - -QTabletEvent::PointerType PythonQtWrapper_QTabletEvent::pointerType(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->pointerType()); -} - -const QPoint* PythonQtWrapper_QTabletEvent::pos(QTabletEvent* theWrappedObject) const -{ - return &( theWrappedObject->pos()); -} - -qreal PythonQtWrapper_QTabletEvent::pressure(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->pressure()); -} - -qreal PythonQtWrapper_QTabletEvent::rotation(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->rotation()); -} - -qreal PythonQtWrapper_QTabletEvent::tangentialPressure(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->tangentialPressure()); -} - -qint64 PythonQtWrapper_QTabletEvent::uniqueId(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->uniqueId()); -} - -int PythonQtWrapper_QTabletEvent::x(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QTabletEvent::xTilt(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->xTilt()); -} - -int PythonQtWrapper_QTabletEvent::y(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - -int PythonQtWrapper_QTabletEvent::yTilt(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->yTilt()); -} - -int PythonQtWrapper_QTabletEvent::z(QTabletEvent* theWrappedObject) const -{ - return ( theWrappedObject->z()); -} - - - -QTextBlock* PythonQtWrapper_QTextBlock::new_QTextBlock() -{ -return new QTextBlock(); } - -QTextBlock* PythonQtWrapper_QTextBlock::new_QTextBlock(const QTextBlock& o) -{ -return new QTextBlock(o); } - -QTextBlock::iterator PythonQtWrapper_QTextBlock::begin(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->begin()); -} - -QTextBlockFormat PythonQtWrapper_QTextBlock::blockFormat(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->blockFormat()); -} - -int PythonQtWrapper_QTextBlock::blockFormatIndex(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->blockFormatIndex()); -} - -int PythonQtWrapper_QTextBlock::blockNumber(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->blockNumber()); -} - -QTextCharFormat PythonQtWrapper_QTextBlock::charFormat(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->charFormat()); -} - -int PythonQtWrapper_QTextBlock::charFormatIndex(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->charFormatIndex()); -} - -void PythonQtWrapper_QTextBlock::clearLayout(QTextBlock* theWrappedObject) -{ - ( theWrappedObject->clearLayout()); -} - -bool PythonQtWrapper_QTextBlock::contains(QTextBlock* theWrappedObject, int position) const -{ - return ( theWrappedObject->contains(position)); -} - -const QTextDocument* PythonQtWrapper_QTextBlock::document(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->document()); -} - -QTextBlock::iterator PythonQtWrapper_QTextBlock::end(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->end()); -} - -int PythonQtWrapper_QTextBlock::firstLineNumber(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->firstLineNumber()); -} - -int PythonQtWrapper_QTextBlock::fragmentIndex(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->fragmentIndex()); -} - -bool PythonQtWrapper_QTextBlock::isValid(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -bool PythonQtWrapper_QTextBlock::isVisible(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->isVisible()); -} - -QTextLayout* PythonQtWrapper_QTextBlock::layout(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->layout()); -} - -int PythonQtWrapper_QTextBlock::length(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -int PythonQtWrapper_QTextBlock::lineCount(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->lineCount()); -} - -QTextBlock PythonQtWrapper_QTextBlock::next(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->next()); -} - -bool PythonQtWrapper_QTextBlock::__ne__(QTextBlock* theWrappedObject, const QTextBlock& o) const -{ - return ( (*theWrappedObject)!= o); -} - -bool PythonQtWrapper_QTextBlock::__lt__(QTextBlock* theWrappedObject, const QTextBlock& o) const -{ - return ( (*theWrappedObject)< o); -} - -bool PythonQtWrapper_QTextBlock::__eq__(QTextBlock* theWrappedObject, const QTextBlock& o) const -{ - return ( (*theWrappedObject)== o); -} - -int PythonQtWrapper_QTextBlock::position(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->position()); -} - -QTextBlock PythonQtWrapper_QTextBlock::previous(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->previous()); -} - -int PythonQtWrapper_QTextBlock::revision(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->revision()); -} - -void PythonQtWrapper_QTextBlock::setLineCount(QTextBlock* theWrappedObject, int count) -{ - ( theWrappedObject->setLineCount(count)); -} - -void PythonQtWrapper_QTextBlock::setRevision(QTextBlock* theWrappedObject, int rev) -{ - ( theWrappedObject->setRevision(rev)); -} - -void PythonQtWrapper_QTextBlock::setUserData(QTextBlock* theWrappedObject, QTextBlockUserData* data) -{ - ( theWrappedObject->setUserData(data)); -} - -void PythonQtWrapper_QTextBlock::setUserState(QTextBlock* theWrappedObject, int state) -{ - ( theWrappedObject->setUserState(state)); -} - -void PythonQtWrapper_QTextBlock::setVisible(QTextBlock* theWrappedObject, bool visible) -{ - ( theWrappedObject->setVisible(visible)); -} - -QString PythonQtWrapper_QTextBlock::text(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -QTextList* PythonQtWrapper_QTextBlock::textList(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->textList()); -} - -QTextBlockUserData* PythonQtWrapper_QTextBlock::userData(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->userData()); -} - -int PythonQtWrapper_QTextBlock::userState(QTextBlock* theWrappedObject) const -{ - return ( theWrappedObject->userState()); -} - - - -QTextBlockFormat* PythonQtWrapper_QTextBlockFormat::new_QTextBlockFormat() -{ -return new PythonQtShell_QTextBlockFormat(); } - -Qt::Alignment PythonQtWrapper_QTextBlockFormat::alignment(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -qreal PythonQtWrapper_QTextBlockFormat::bottomMargin(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->bottomMargin()); -} - -int PythonQtWrapper_QTextBlockFormat::indent(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->indent()); -} - -bool PythonQtWrapper_QTextBlockFormat::isValid(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -qreal PythonQtWrapper_QTextBlockFormat::leftMargin(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->leftMargin()); -} - -bool PythonQtWrapper_QTextBlockFormat::nonBreakableLines(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->nonBreakableLines()); -} - -QTextFormat::PageBreakFlags PythonQtWrapper_QTextBlockFormat::pageBreakPolicy(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->pageBreakPolicy()); -} - -qreal PythonQtWrapper_QTextBlockFormat::rightMargin(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->rightMargin()); -} - -void PythonQtWrapper_QTextBlockFormat::setAlignment(QTextBlockFormat* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setAlignment(alignment)); -} - -void PythonQtWrapper_QTextBlockFormat::setBottomMargin(QTextBlockFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setBottomMargin(margin)); -} - -void PythonQtWrapper_QTextBlockFormat::setIndent(QTextBlockFormat* theWrappedObject, int indent) -{ - ( theWrappedObject->setIndent(indent)); -} - -void PythonQtWrapper_QTextBlockFormat::setLeftMargin(QTextBlockFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setLeftMargin(margin)); -} - -void PythonQtWrapper_QTextBlockFormat::setNonBreakableLines(QTextBlockFormat* theWrappedObject, bool b) -{ - ( theWrappedObject->setNonBreakableLines(b)); -} - -void PythonQtWrapper_QTextBlockFormat::setPageBreakPolicy(QTextBlockFormat* theWrappedObject, QTextFormat::PageBreakFlags flags) -{ - ( theWrappedObject->setPageBreakPolicy(flags)); -} - -void PythonQtWrapper_QTextBlockFormat::setRightMargin(QTextBlockFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setRightMargin(margin)); -} - -void PythonQtWrapper_QTextBlockFormat::setTabPositions(QTextBlockFormat* theWrappedObject, const QList& tabs) -{ - ( theWrappedObject->setTabPositions(tabs)); -} - -void PythonQtWrapper_QTextBlockFormat::setTextIndent(QTextBlockFormat* theWrappedObject, qreal aindent) -{ - ( theWrappedObject->setTextIndent(aindent)); -} - -void PythonQtWrapper_QTextBlockFormat::setTopMargin(QTextBlockFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setTopMargin(margin)); -} - -QList PythonQtWrapper_QTextBlockFormat::tabPositions(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->tabPositions()); -} - -qreal PythonQtWrapper_QTextBlockFormat::textIndent(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->textIndent()); -} - -qreal PythonQtWrapper_QTextBlockFormat::topMargin(QTextBlockFormat* theWrappedObject) const -{ - return ( theWrappedObject->topMargin()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.h deleted file mode 100644 index 8a7ba518f..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.h +++ /dev/null @@ -1,1723 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QStyleOptionTab : public QStyleOptionTab -{ -public: - PythonQtShell_QStyleOptionTab():QStyleOptionTab(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTab(const QStyleOptionTab& other):QStyleOptionTab(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTab(int version):QStyleOptionTab(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionTab : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion CornerWidget TabPosition SelectedPosition StyleOptionType ) -Q_FLAGS(CornerWidgets ) -enum StyleOptionVersion{ - Version = QStyleOptionTab::Version}; -enum CornerWidget{ - NoCornerWidgets = QStyleOptionTab::NoCornerWidgets, LeftCornerWidget = QStyleOptionTab::LeftCornerWidget, RightCornerWidget = QStyleOptionTab::RightCornerWidget}; -enum TabPosition{ - Beginning = QStyleOptionTab::Beginning, Middle = QStyleOptionTab::Middle, End = QStyleOptionTab::End, OnlyOneTab = QStyleOptionTab::OnlyOneTab}; -enum SelectedPosition{ - NotAdjacent = QStyleOptionTab::NotAdjacent, NextIsSelected = QStyleOptionTab::NextIsSelected, PreviousIsSelected = QStyleOptionTab::PreviousIsSelected}; -enum StyleOptionType{ - Type = QStyleOptionTab::Type}; -Q_DECLARE_FLAGS(CornerWidgets, CornerWidget) -public slots: -QStyleOptionTab* new_QStyleOptionTab(); -QStyleOptionTab* new_QStyleOptionTab(const QStyleOptionTab& other); -void delete_QStyleOptionTab(QStyleOptionTab* obj) { delete obj; } -void py_set_row(QStyleOptionTab* theWrappedObject, int row){ theWrappedObject->row = row; } -int py_get_row(QStyleOptionTab* theWrappedObject){ return theWrappedObject->row; } -void py_set_cornerWidgets(QStyleOptionTab* theWrappedObject, QStyleOptionTab::CornerWidgets cornerWidgets){ theWrappedObject->cornerWidgets = cornerWidgets; } -QStyleOptionTab::CornerWidgets py_get_cornerWidgets(QStyleOptionTab* theWrappedObject){ return theWrappedObject->cornerWidgets; } -void py_set_position(QStyleOptionTab* theWrappedObject, QStyleOptionTab::TabPosition position){ theWrappedObject->position = position; } -QStyleOptionTab::TabPosition py_get_position(QStyleOptionTab* theWrappedObject){ return theWrappedObject->position; } -void py_set_icon(QStyleOptionTab* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionTab* theWrappedObject){ return theWrappedObject->icon; } -void py_set_shape(QStyleOptionTab* theWrappedObject, QTabBar::Shape shape){ theWrappedObject->shape = shape; } -QTabBar::Shape py_get_shape(QStyleOptionTab* theWrappedObject){ return theWrappedObject->shape; } -void py_set_text(QStyleOptionTab* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionTab* theWrappedObject){ return theWrappedObject->text; } -void py_set_selectedPosition(QStyleOptionTab* theWrappedObject, QStyleOptionTab::SelectedPosition selectedPosition){ theWrappedObject->selectedPosition = selectedPosition; } -QStyleOptionTab::SelectedPosition py_get_selectedPosition(QStyleOptionTab* theWrappedObject){ return theWrappedObject->selectedPosition; } -}; - - - - - -class PythonQtShell_QStyleOptionTabBarBase : public QStyleOptionTabBarBase -{ -public: - PythonQtShell_QStyleOptionTabBarBase():QStyleOptionTabBarBase(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabBarBase(const QStyleOptionTabBarBase& other):QStyleOptionTabBarBase(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabBarBase(int version):QStyleOptionTabBarBase(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionTabBarBase : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionTabBarBase::Version}; -enum StyleOptionType{ - Type = QStyleOptionTabBarBase::Type}; -public slots: -QStyleOptionTabBarBase* new_QStyleOptionTabBarBase(); -QStyleOptionTabBarBase* new_QStyleOptionTabBarBase(const QStyleOptionTabBarBase& other); -void delete_QStyleOptionTabBarBase(QStyleOptionTabBarBase* obj) { delete obj; } -void py_set_selectedTabRect(QStyleOptionTabBarBase* theWrappedObject, QRect selectedTabRect){ theWrappedObject->selectedTabRect = selectedTabRect; } -QRect py_get_selectedTabRect(QStyleOptionTabBarBase* theWrappedObject){ return theWrappedObject->selectedTabRect; } -void py_set_shape(QStyleOptionTabBarBase* theWrappedObject, QTabBar::Shape shape){ theWrappedObject->shape = shape; } -QTabBar::Shape py_get_shape(QStyleOptionTabBarBase* theWrappedObject){ return theWrappedObject->shape; } -void py_set_tabBarRect(QStyleOptionTabBarBase* theWrappedObject, QRect tabBarRect){ theWrappedObject->tabBarRect = tabBarRect; } -QRect py_get_tabBarRect(QStyleOptionTabBarBase* theWrappedObject){ return theWrappedObject->tabBarRect; } -}; - - - - - -class PythonQtShell_QStyleOptionTabBarBaseV2 : public QStyleOptionTabBarBaseV2 -{ -public: - PythonQtShell_QStyleOptionTabBarBaseV2():QStyleOptionTabBarBaseV2(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabBarBaseV2(const QStyleOptionTabBarBase& other):QStyleOptionTabBarBaseV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabBarBaseV2(const QStyleOptionTabBarBaseV2& other):QStyleOptionTabBarBaseV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabBarBaseV2(int version):QStyleOptionTabBarBaseV2(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionTabBarBaseV2 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ) -enum StyleOptionVersion{ - Version = QStyleOptionTabBarBaseV2::Version}; -public slots: -QStyleOptionTabBarBaseV2* new_QStyleOptionTabBarBaseV2(); -QStyleOptionTabBarBaseV2* new_QStyleOptionTabBarBaseV2(const QStyleOptionTabBarBase& other); -QStyleOptionTabBarBaseV2* new_QStyleOptionTabBarBaseV2(const QStyleOptionTabBarBaseV2& other); -void delete_QStyleOptionTabBarBaseV2(QStyleOptionTabBarBaseV2* obj) { delete obj; } -void py_set_documentMode(QStyleOptionTabBarBaseV2* theWrappedObject, bool documentMode){ theWrappedObject->documentMode = documentMode; } -bool py_get_documentMode(QStyleOptionTabBarBaseV2* theWrappedObject){ return theWrappedObject->documentMode; } -}; - - - - - -class PythonQtShell_QStyleOptionTabV2 : public QStyleOptionTabV2 -{ -public: - PythonQtShell_QStyleOptionTabV2():QStyleOptionTabV2(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabV2(const QStyleOptionTab& other):QStyleOptionTabV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabV2(const QStyleOptionTabV2& other):QStyleOptionTabV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabV2(int version):QStyleOptionTabV2(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionTabV2 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ) -enum StyleOptionVersion{ - Version = QStyleOptionTabV2::Version}; -public slots: -QStyleOptionTabV2* new_QStyleOptionTabV2(); -QStyleOptionTabV2* new_QStyleOptionTabV2(const QStyleOptionTab& other); -QStyleOptionTabV2* new_QStyleOptionTabV2(const QStyleOptionTabV2& other); -void delete_QStyleOptionTabV2(QStyleOptionTabV2* obj) { delete obj; } -void py_set_iconSize(QStyleOptionTabV2* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } -QSize py_get_iconSize(QStyleOptionTabV2* theWrappedObject){ return theWrappedObject->iconSize; } -}; - - - - - -class PythonQtShell_QStyleOptionTabV3 : public QStyleOptionTabV3 -{ -public: - PythonQtShell_QStyleOptionTabV3():QStyleOptionTabV3(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabV3(const QStyleOptionTab& other):QStyleOptionTabV3(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabV3(const QStyleOptionTabV2& other):QStyleOptionTabV3(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabV3(const QStyleOptionTabV3& other):QStyleOptionTabV3(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabV3(int version):QStyleOptionTabV3(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionTabV3 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ) -enum StyleOptionVersion{ - Version = QStyleOptionTabV3::Version}; -public slots: -QStyleOptionTabV3* new_QStyleOptionTabV3(); -QStyleOptionTabV3* new_QStyleOptionTabV3(const QStyleOptionTab& other); -QStyleOptionTabV3* new_QStyleOptionTabV3(const QStyleOptionTabV2& other); -QStyleOptionTabV3* new_QStyleOptionTabV3(const QStyleOptionTabV3& other); -void delete_QStyleOptionTabV3(QStyleOptionTabV3* obj) { delete obj; } -void py_set_documentMode(QStyleOptionTabV3* theWrappedObject, bool documentMode){ theWrappedObject->documentMode = documentMode; } -bool py_get_documentMode(QStyleOptionTabV3* theWrappedObject){ return theWrappedObject->documentMode; } -void py_set_rightButtonSize(QStyleOptionTabV3* theWrappedObject, QSize rightButtonSize){ theWrappedObject->rightButtonSize = rightButtonSize; } -QSize py_get_rightButtonSize(QStyleOptionTabV3* theWrappedObject){ return theWrappedObject->rightButtonSize; } -void py_set_leftButtonSize(QStyleOptionTabV3* theWrappedObject, QSize leftButtonSize){ theWrappedObject->leftButtonSize = leftButtonSize; } -QSize py_get_leftButtonSize(QStyleOptionTabV3* theWrappedObject){ return theWrappedObject->leftButtonSize; } -}; - - - - - -class PythonQtShell_QStyleOptionTabWidgetFrame : public QStyleOptionTabWidgetFrame -{ -public: - PythonQtShell_QStyleOptionTabWidgetFrame():QStyleOptionTabWidgetFrame(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame& other):QStyleOptionTabWidgetFrame(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTabWidgetFrame(int version):QStyleOptionTabWidgetFrame(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionTabWidgetFrame : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionTabWidgetFrame::Version}; -enum StyleOptionType{ - Type = QStyleOptionTabWidgetFrame::Type}; -public slots: -QStyleOptionTabWidgetFrame* new_QStyleOptionTabWidgetFrame(); -QStyleOptionTabWidgetFrame* new_QStyleOptionTabWidgetFrame(const QStyleOptionTabWidgetFrame& other); -void delete_QStyleOptionTabWidgetFrame(QStyleOptionTabWidgetFrame* obj) { delete obj; } -void py_set_lineWidth(QStyleOptionTabWidgetFrame* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } -int py_get_lineWidth(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->lineWidth; } -void py_set_rightCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject, QSize rightCornerWidgetSize){ theWrappedObject->rightCornerWidgetSize = rightCornerWidgetSize; } -QSize py_get_rightCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->rightCornerWidgetSize; } -void py_set_tabBarSize(QStyleOptionTabWidgetFrame* theWrappedObject, QSize tabBarSize){ theWrappedObject->tabBarSize = tabBarSize; } -QSize py_get_tabBarSize(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->tabBarSize; } -void py_set_shape(QStyleOptionTabWidgetFrame* theWrappedObject, QTabBar::Shape shape){ theWrappedObject->shape = shape; } -QTabBar::Shape py_get_shape(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->shape; } -void py_set_midLineWidth(QStyleOptionTabWidgetFrame* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } -int py_get_midLineWidth(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->midLineWidth; } -void py_set_leftCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject, QSize leftCornerWidgetSize){ theWrappedObject->leftCornerWidgetSize = leftCornerWidgetSize; } -QSize py_get_leftCornerWidgetSize(QStyleOptionTabWidgetFrame* theWrappedObject){ return theWrappedObject->leftCornerWidgetSize; } -}; - - - - - -class PythonQtShell_QStyleOptionTitleBar : public QStyleOptionTitleBar -{ -public: - PythonQtShell_QStyleOptionTitleBar():QStyleOptionTitleBar(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTitleBar(const QStyleOptionTitleBar& other):QStyleOptionTitleBar(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionTitleBar(int version):QStyleOptionTitleBar(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionTitleBar : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionTitleBar::Version}; -enum StyleOptionType{ - Type = QStyleOptionTitleBar::Type}; -public slots: -QStyleOptionTitleBar* new_QStyleOptionTitleBar(); -QStyleOptionTitleBar* new_QStyleOptionTitleBar(const QStyleOptionTitleBar& other); -void delete_QStyleOptionTitleBar(QStyleOptionTitleBar* obj) { delete obj; } -void py_set_titleBarFlags(QStyleOptionTitleBar* theWrappedObject, Qt::WindowFlags titleBarFlags){ theWrappedObject->titleBarFlags = titleBarFlags; } -Qt::WindowFlags py_get_titleBarFlags(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->titleBarFlags; } -void py_set_icon(QStyleOptionTitleBar* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->icon; } -void py_set_text(QStyleOptionTitleBar* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->text; } -void py_set_titleBarState(QStyleOptionTitleBar* theWrappedObject, int titleBarState){ theWrappedObject->titleBarState = titleBarState; } -int py_get_titleBarState(QStyleOptionTitleBar* theWrappedObject){ return theWrappedObject->titleBarState; } -}; - - - - - -class PythonQtShell_QStyleOptionToolBar : public QStyleOptionToolBar -{ -public: - PythonQtShell_QStyleOptionToolBar():QStyleOptionToolBar(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolBar(const QStyleOptionToolBar& other):QStyleOptionToolBar(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolBar(int version):QStyleOptionToolBar(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionToolBar : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ToolBarPosition ToolBarFeature ) -Q_FLAGS(ToolBarFeatures ) -enum StyleOptionVersion{ - Version = QStyleOptionToolBar::Version}; -enum StyleOptionType{ - Type = QStyleOptionToolBar::Type}; -enum ToolBarPosition{ - Beginning = QStyleOptionToolBar::Beginning, Middle = QStyleOptionToolBar::Middle, End = QStyleOptionToolBar::End, OnlyOne = QStyleOptionToolBar::OnlyOne}; -enum ToolBarFeature{ - None = QStyleOptionToolBar::None, Movable = QStyleOptionToolBar::Movable}; -Q_DECLARE_FLAGS(ToolBarFeatures, ToolBarFeature) -public slots: -QStyleOptionToolBar* new_QStyleOptionToolBar(); -QStyleOptionToolBar* new_QStyleOptionToolBar(const QStyleOptionToolBar& other); -void delete_QStyleOptionToolBar(QStyleOptionToolBar* obj) { delete obj; } -void py_set_lineWidth(QStyleOptionToolBar* theWrappedObject, int lineWidth){ theWrappedObject->lineWidth = lineWidth; } -int py_get_lineWidth(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->lineWidth; } -void py_set_positionWithinLine(QStyleOptionToolBar* theWrappedObject, QStyleOptionToolBar::ToolBarPosition positionWithinLine){ theWrappedObject->positionWithinLine = positionWithinLine; } -QStyleOptionToolBar::ToolBarPosition py_get_positionWithinLine(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->positionWithinLine; } -void py_set_positionOfLine(QStyleOptionToolBar* theWrappedObject, QStyleOptionToolBar::ToolBarPosition positionOfLine){ theWrappedObject->positionOfLine = positionOfLine; } -QStyleOptionToolBar::ToolBarPosition py_get_positionOfLine(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->positionOfLine; } -void py_set_features(QStyleOptionToolBar* theWrappedObject, QStyleOptionToolBar::ToolBarFeatures features){ theWrappedObject->features = features; } -QStyleOptionToolBar::ToolBarFeatures py_get_features(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->features; } -void py_set_toolBarArea(QStyleOptionToolBar* theWrappedObject, Qt::ToolBarArea toolBarArea){ theWrappedObject->toolBarArea = toolBarArea; } -Qt::ToolBarArea py_get_toolBarArea(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->toolBarArea; } -void py_set_midLineWidth(QStyleOptionToolBar* theWrappedObject, int midLineWidth){ theWrappedObject->midLineWidth = midLineWidth; } -int py_get_midLineWidth(QStyleOptionToolBar* theWrappedObject){ return theWrappedObject->midLineWidth; } -}; - - - - - -class PythonQtShell_QStyleOptionToolBox : public QStyleOptionToolBox -{ -public: - PythonQtShell_QStyleOptionToolBox():QStyleOptionToolBox(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolBox(const QStyleOptionToolBox& other):QStyleOptionToolBox(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolBox(int version):QStyleOptionToolBox(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionToolBox : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType ) -enum StyleOptionVersion{ - Version = QStyleOptionToolBox::Version}; -enum StyleOptionType{ - Type = QStyleOptionToolBox::Type}; -public slots: -QStyleOptionToolBox* new_QStyleOptionToolBox(); -QStyleOptionToolBox* new_QStyleOptionToolBox(const QStyleOptionToolBox& other); -void delete_QStyleOptionToolBox(QStyleOptionToolBox* obj) { delete obj; } -void py_set_icon(QStyleOptionToolBox* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionToolBox* theWrappedObject){ return theWrappedObject->icon; } -void py_set_text(QStyleOptionToolBox* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionToolBox* theWrappedObject){ return theWrappedObject->text; } -}; - - - - - -class PythonQtShell_QStyleOptionToolBoxV2 : public QStyleOptionToolBoxV2 -{ -public: - PythonQtShell_QStyleOptionToolBoxV2():QStyleOptionToolBoxV2(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolBoxV2(const QStyleOptionToolBox& other):QStyleOptionToolBoxV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolBoxV2(const QStyleOptionToolBoxV2& other):QStyleOptionToolBoxV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolBoxV2(int version):QStyleOptionToolBoxV2(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionToolBoxV2 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion TabPosition SelectedPosition ) -enum StyleOptionVersion{ - Version = QStyleOptionToolBoxV2::Version}; -enum TabPosition{ - Beginning = QStyleOptionToolBoxV2::Beginning, Middle = QStyleOptionToolBoxV2::Middle, End = QStyleOptionToolBoxV2::End, OnlyOneTab = QStyleOptionToolBoxV2::OnlyOneTab}; -enum SelectedPosition{ - NotAdjacent = QStyleOptionToolBoxV2::NotAdjacent, NextIsSelected = QStyleOptionToolBoxV2::NextIsSelected, PreviousIsSelected = QStyleOptionToolBoxV2::PreviousIsSelected}; -public slots: -QStyleOptionToolBoxV2* new_QStyleOptionToolBoxV2(); -QStyleOptionToolBoxV2* new_QStyleOptionToolBoxV2(const QStyleOptionToolBox& other); -QStyleOptionToolBoxV2* new_QStyleOptionToolBoxV2(const QStyleOptionToolBoxV2& other); -void delete_QStyleOptionToolBoxV2(QStyleOptionToolBoxV2* obj) { delete obj; } -void py_set_position(QStyleOptionToolBoxV2* theWrappedObject, QStyleOptionToolBoxV2::TabPosition position){ theWrappedObject->position = position; } -QStyleOptionToolBoxV2::TabPosition py_get_position(QStyleOptionToolBoxV2* theWrappedObject){ return theWrappedObject->position; } -void py_set_selectedPosition(QStyleOptionToolBoxV2* theWrappedObject, QStyleOptionToolBoxV2::SelectedPosition selectedPosition){ theWrappedObject->selectedPosition = selectedPosition; } -QStyleOptionToolBoxV2::SelectedPosition py_get_selectedPosition(QStyleOptionToolBoxV2* theWrappedObject){ return theWrappedObject->selectedPosition; } -}; - - - - - -class PythonQtShell_QStyleOptionToolButton : public QStyleOptionToolButton -{ -public: - PythonQtShell_QStyleOptionToolButton():QStyleOptionToolButton(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolButton(const QStyleOptionToolButton& other):QStyleOptionToolButton(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionToolButton(int version):QStyleOptionToolButton(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionToolButton : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ToolButtonFeature StyleOptionType ) -Q_FLAGS(ToolButtonFeatures ) -enum StyleOptionVersion{ - Version = QStyleOptionToolButton::Version}; -enum ToolButtonFeature{ - None = QStyleOptionToolButton::None, Arrow = QStyleOptionToolButton::Arrow, Menu = QStyleOptionToolButton::Menu, MenuButtonPopup = QStyleOptionToolButton::MenuButtonPopup, PopupDelay = QStyleOptionToolButton::PopupDelay, HasMenu = QStyleOptionToolButton::HasMenu}; -enum StyleOptionType{ - Type = QStyleOptionToolButton::Type}; -Q_DECLARE_FLAGS(ToolButtonFeatures, ToolButtonFeature) -public slots: -QStyleOptionToolButton* new_QStyleOptionToolButton(); -QStyleOptionToolButton* new_QStyleOptionToolButton(const QStyleOptionToolButton& other); -void delete_QStyleOptionToolButton(QStyleOptionToolButton* obj) { delete obj; } -void py_set_iconSize(QStyleOptionToolButton* theWrappedObject, QSize iconSize){ theWrappedObject->iconSize = iconSize; } -QSize py_get_iconSize(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->iconSize; } -void py_set_toolButtonStyle(QStyleOptionToolButton* theWrappedObject, Qt::ToolButtonStyle toolButtonStyle){ theWrappedObject->toolButtonStyle = toolButtonStyle; } -Qt::ToolButtonStyle py_get_toolButtonStyle(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->toolButtonStyle; } -void py_set_features(QStyleOptionToolButton* theWrappedObject, QStyleOptionToolButton::ToolButtonFeatures features){ theWrappedObject->features = features; } -QStyleOptionToolButton::ToolButtonFeatures py_get_features(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->features; } -void py_set_arrowType(QStyleOptionToolButton* theWrappedObject, Qt::ArrowType arrowType){ theWrappedObject->arrowType = arrowType; } -Qt::ArrowType py_get_arrowType(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->arrowType; } -void py_set_icon(QStyleOptionToolButton* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->icon; } -void py_set_pos(QStyleOptionToolButton* theWrappedObject, QPoint pos){ theWrappedObject->pos = pos; } -QPoint py_get_pos(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->pos; } -void py_set_text(QStyleOptionToolButton* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->text; } -void py_set_font(QStyleOptionToolButton* theWrappedObject, QFont font){ theWrappedObject->font = font; } -QFont py_get_font(QStyleOptionToolButton* theWrappedObject){ return theWrappedObject->font; } -}; - - - - - -class PythonQtShell_QStyleOptionViewItem : public QStyleOptionViewItem -{ -public: - PythonQtShell_QStyleOptionViewItem():QStyleOptionViewItem(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItem(const QStyleOptionViewItem& other):QStyleOptionViewItem(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItem(int version):QStyleOptionViewItem(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionViewItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion StyleOptionType Position ) -enum StyleOptionVersion{ - Version = QStyleOptionViewItem::Version}; -enum StyleOptionType{ - Type = QStyleOptionViewItem::Type}; -enum Position{ - Left = QStyleOptionViewItem::Left, Right = QStyleOptionViewItem::Right, Top = QStyleOptionViewItem::Top, Bottom = QStyleOptionViewItem::Bottom}; -public slots: -QStyleOptionViewItem* new_QStyleOptionViewItem(); -QStyleOptionViewItem* new_QStyleOptionViewItem(const QStyleOptionViewItem& other); -void delete_QStyleOptionViewItem(QStyleOptionViewItem* obj) { delete obj; } -void py_set_showDecorationSelected(QStyleOptionViewItem* theWrappedObject, bool showDecorationSelected){ theWrappedObject->showDecorationSelected = showDecorationSelected; } -bool py_get_showDecorationSelected(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->showDecorationSelected; } -void py_set_decorationPosition(QStyleOptionViewItem* theWrappedObject, QStyleOptionViewItem::Position decorationPosition){ theWrappedObject->decorationPosition = decorationPosition; } -QStyleOptionViewItem::Position py_get_decorationPosition(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->decorationPosition; } -void py_set_decorationAlignment(QStyleOptionViewItem* theWrappedObject, Qt::Alignment decorationAlignment){ theWrappedObject->decorationAlignment = decorationAlignment; } -Qt::Alignment py_get_decorationAlignment(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->decorationAlignment; } -void py_set_displayAlignment(QStyleOptionViewItem* theWrappedObject, Qt::Alignment displayAlignment){ theWrappedObject->displayAlignment = displayAlignment; } -Qt::Alignment py_get_displayAlignment(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->displayAlignment; } -void py_set_textElideMode(QStyleOptionViewItem* theWrappedObject, Qt::TextElideMode textElideMode){ theWrappedObject->textElideMode = textElideMode; } -Qt::TextElideMode py_get_textElideMode(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->textElideMode; } -void py_set_decorationSize(QStyleOptionViewItem* theWrappedObject, QSize decorationSize){ theWrappedObject->decorationSize = decorationSize; } -QSize py_get_decorationSize(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->decorationSize; } -void py_set_font(QStyleOptionViewItem* theWrappedObject, QFont font){ theWrappedObject->font = font; } -QFont py_get_font(QStyleOptionViewItem* theWrappedObject){ return theWrappedObject->font; } -}; - - - - - -class PythonQtShell_QStyleOptionViewItemV2 : public QStyleOptionViewItemV2 -{ -public: - PythonQtShell_QStyleOptionViewItemV2():QStyleOptionViewItemV2(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV2(const QStyleOptionViewItem& other):QStyleOptionViewItemV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV2(const QStyleOptionViewItemV2& other):QStyleOptionViewItemV2(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV2(int version):QStyleOptionViewItemV2(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionViewItemV2 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ViewItemFeature ) -Q_FLAGS(ViewItemFeatures ) -enum StyleOptionVersion{ - Version = QStyleOptionViewItemV2::Version}; -enum ViewItemFeature{ - None = QStyleOptionViewItemV2::None, WrapText = QStyleOptionViewItemV2::WrapText, Alternate = QStyleOptionViewItemV2::Alternate, HasCheckIndicator = QStyleOptionViewItemV2::HasCheckIndicator, HasDisplay = QStyleOptionViewItemV2::HasDisplay, HasDecoration = QStyleOptionViewItemV2::HasDecoration}; -Q_DECLARE_FLAGS(ViewItemFeatures, ViewItemFeature) -public slots: -QStyleOptionViewItemV2* new_QStyleOptionViewItemV2(); -QStyleOptionViewItemV2* new_QStyleOptionViewItemV2(const QStyleOptionViewItem& other); -QStyleOptionViewItemV2* new_QStyleOptionViewItemV2(const QStyleOptionViewItemV2& other); -void delete_QStyleOptionViewItemV2(QStyleOptionViewItemV2* obj) { delete obj; } -void py_set_features(QStyleOptionViewItemV2* theWrappedObject, QStyleOptionViewItemV2::ViewItemFeatures features){ theWrappedObject->features = features; } -QStyleOptionViewItemV2::ViewItemFeatures py_get_features(QStyleOptionViewItemV2* theWrappedObject){ return theWrappedObject->features; } -}; - - - - - -class PythonQtShell_QStyleOptionViewItemV3 : public QStyleOptionViewItemV3 -{ -public: - PythonQtShell_QStyleOptionViewItemV3():QStyleOptionViewItemV3(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV3(const QStyleOptionViewItem& other):QStyleOptionViewItemV3(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV3(const QStyleOptionViewItemV3& other):QStyleOptionViewItemV3(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV3(int version):QStyleOptionViewItemV3(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionViewItemV3 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleOptionVersion ) -enum StyleOptionVersion{ - Version = QStyleOptionViewItemV3::Version}; -public slots: -QStyleOptionViewItemV3* new_QStyleOptionViewItemV3(); -QStyleOptionViewItemV3* new_QStyleOptionViewItemV3(const QStyleOptionViewItem& other); -QStyleOptionViewItemV3* new_QStyleOptionViewItemV3(const QStyleOptionViewItemV3& other); -void delete_QStyleOptionViewItemV3(QStyleOptionViewItemV3* obj) { delete obj; } -const QWidget* py_get_widget(QStyleOptionViewItemV3* theWrappedObject){ return theWrappedObject->widget; } -void py_set_locale(QStyleOptionViewItemV3* theWrappedObject, QLocale locale){ theWrappedObject->locale = locale; } -QLocale py_get_locale(QStyleOptionViewItemV3* theWrappedObject){ return theWrappedObject->locale; } -}; - - - - - -class PythonQtShell_QStyleOptionViewItemV4 : public QStyleOptionViewItemV4 -{ -public: - PythonQtShell_QStyleOptionViewItemV4():QStyleOptionViewItemV4(),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV4(const QStyleOptionViewItem& other):QStyleOptionViewItemV4(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV4(const QStyleOptionViewItemV4& other):QStyleOptionViewItemV4(other),_wrapper(NULL) {}; - PythonQtShell_QStyleOptionViewItemV4(int version):QStyleOptionViewItemV4(version),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStyleOptionViewItemV4 : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ViewItemPosition StyleOptionVersion ) -enum ViewItemPosition{ - Invalid = QStyleOptionViewItemV4::Invalid, Beginning = QStyleOptionViewItemV4::Beginning, Middle = QStyleOptionViewItemV4::Middle, End = QStyleOptionViewItemV4::End, OnlyOne = QStyleOptionViewItemV4::OnlyOne}; -enum StyleOptionVersion{ - Version = QStyleOptionViewItemV4::Version}; -public slots: -QStyleOptionViewItemV4* new_QStyleOptionViewItemV4(); -QStyleOptionViewItemV4* new_QStyleOptionViewItemV4(const QStyleOptionViewItem& other); -QStyleOptionViewItemV4* new_QStyleOptionViewItemV4(const QStyleOptionViewItemV4& other); -void delete_QStyleOptionViewItemV4(QStyleOptionViewItemV4* obj) { delete obj; } -void py_set_checkState(QStyleOptionViewItemV4* theWrappedObject, Qt::CheckState checkState){ theWrappedObject->checkState = checkState; } -Qt::CheckState py_get_checkState(QStyleOptionViewItemV4* theWrappedObject){ return theWrappedObject->checkState; } -void py_set_viewItemPosition(QStyleOptionViewItemV4* theWrappedObject, QStyleOptionViewItemV4::ViewItemPosition viewItemPosition){ theWrappedObject->viewItemPosition = viewItemPosition; } -QStyleOptionViewItemV4::ViewItemPosition py_get_viewItemPosition(QStyleOptionViewItemV4* theWrappedObject){ return theWrappedObject->viewItemPosition; } -void py_set_icon(QStyleOptionViewItemV4* theWrappedObject, QIcon icon){ theWrappedObject->icon = icon; } -QIcon py_get_icon(QStyleOptionViewItemV4* theWrappedObject){ return theWrappedObject->icon; } -void py_set_backgroundBrush(QStyleOptionViewItemV4* theWrappedObject, QBrush backgroundBrush){ theWrappedObject->backgroundBrush = backgroundBrush; } -QBrush py_get_backgroundBrush(QStyleOptionViewItemV4* theWrappedObject){ return theWrappedObject->backgroundBrush; } -void py_set_index(QStyleOptionViewItemV4* theWrappedObject, QModelIndex index){ theWrappedObject->index = index; } -QModelIndex py_get_index(QStyleOptionViewItemV4* theWrappedObject){ return theWrappedObject->index; } -void py_set_text(QStyleOptionViewItemV4* theWrappedObject, QString text){ theWrappedObject->text = text; } -QString py_get_text(QStyleOptionViewItemV4* theWrappedObject){ return theWrappedObject->text; } -}; - - - - - -class PythonQtWrapper_QStylePainter : public QObject -{ Q_OBJECT -public: -public slots: -QStylePainter* new_QStylePainter(); -QStylePainter* new_QStylePainter(QPaintDevice* pd, QWidget* w); -QStylePainter* new_QStylePainter(QWidget* w); -void delete_QStylePainter(QStylePainter* obj) { delete obj; } - bool begin(QStylePainter* theWrappedObject, QPaintDevice* pd, QWidget* w); - bool begin(QStylePainter* theWrappedObject, QWidget* w); - void drawComplexControl(QStylePainter* theWrappedObject, QStyle::ComplexControl cc, const QStyleOptionComplex& opt); - void drawControl(QStylePainter* theWrappedObject, QStyle::ControlElement ce, const QStyleOption& opt); - void drawItemPixmap(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPixmap& pixmap); - void drawItemText(QStylePainter* theWrappedObject, const QRect& r, int flags, const QPalette& pal, bool enabled, const QString& text, QPalette::ColorRole textRole = QPalette::NoRole); - void drawPrimitive(QStylePainter* theWrappedObject, QStyle::PrimitiveElement pe, const QStyleOption& opt); - QStyle* style(QStylePainter* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QStylePlugin : public QStylePlugin -{ -public: - PythonQtShell_QStylePlugin(QObject* parent = 0):QStylePlugin(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QStyle* create(const QString& key); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QStringList keys() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QStylePlugin : public QObject -{ Q_OBJECT -public: -public slots: -QStylePlugin* new_QStylePlugin(QObject* parent = 0); -void delete_QStylePlugin(QStylePlugin* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QStyledItemDelegate : public QStyledItemDelegate -{ -public: - PythonQtShell_QStyledItemDelegate(QObject* parent = 0):QStyledItemDelegate(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void customEvent(QEvent* arg__1); -virtual QString displayText(const QVariant& value, const QLocale& locale) const; -virtual bool editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* object, QEvent* event); -virtual void initStyleOption(QStyleOptionViewItem* option, const QModelIndex& index) const; -virtual void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void setEditorData(QWidget* editor, const QModelIndex& index) const; -virtual void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; -virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QStyledItemDelegate : public QStyledItemDelegate -{ public: -inline QWidget* promoted_createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const { return QStyledItemDelegate::createEditor(parent, option, index); } -inline QString promoted_displayText(const QVariant& value, const QLocale& locale) const { return QStyledItemDelegate::displayText(value, locale); } -inline bool promoted_editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index) { return QStyledItemDelegate::editorEvent(event, model, option, index); } -inline bool promoted_eventFilter(QObject* object, QEvent* event) { return QStyledItemDelegate::eventFilter(object, event); } -inline void promoted_initStyleOption(QStyleOptionViewItem* option, const QModelIndex& index) const { QStyledItemDelegate::initStyleOption(option, index); } -inline void promoted_paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { QStyledItemDelegate::paint(painter, option, index); } -inline void promoted_setEditorData(QWidget* editor, const QModelIndex& index) const { QStyledItemDelegate::setEditorData(editor, index); } -inline void promoted_setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const { QStyledItemDelegate::setModelData(editor, model, index); } -inline QSize promoted_sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const { return QStyledItemDelegate::sizeHint(option, index); } -inline void promoted_updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const { QStyledItemDelegate::updateEditorGeometry(editor, option, index); } -}; - -class PythonQtWrapper_QStyledItemDelegate : public QObject -{ Q_OBJECT -public: -public slots: -QStyledItemDelegate* new_QStyledItemDelegate(QObject* parent = 0); -void delete_QStyledItemDelegate(QStyledItemDelegate* obj) { delete obj; } - QWidget* createEditor(QStyledItemDelegate* theWrappedObject, QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const; - QString displayText(QStyledItemDelegate* theWrappedObject, const QVariant& value, const QLocale& locale) const; - bool editorEvent(QStyledItemDelegate* theWrappedObject, QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index); - bool eventFilter(QStyledItemDelegate* theWrappedObject, QObject* object, QEvent* event); - void initStyleOption(QStyledItemDelegate* theWrappedObject, QStyleOptionViewItem* option, const QModelIndex& index) const; - QItemEditorFactory* itemEditorFactory(QStyledItemDelegate* theWrappedObject) const; - void paint(QStyledItemDelegate* theWrappedObject, QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; - void setEditorData(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QModelIndex& index) const; - void setItemEditorFactory(QStyledItemDelegate* theWrappedObject, QItemEditorFactory* factory); - void setModelData(QStyledItemDelegate* theWrappedObject, QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const; - QSize sizeHint(QStyledItemDelegate* theWrappedObject, const QStyleOptionViewItem& option, const QModelIndex& index) const; - void updateEditorGeometry(QStyledItemDelegate* theWrappedObject, QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const; -}; - - - - - -class PythonQtShell_QSwipeGesture : public QSwipeGesture -{ -public: - PythonQtShell_QSwipeGesture(QObject* parent = 0):QSwipeGesture(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QSwipeGesture : public QObject -{ Q_OBJECT -public: -public slots: -QSwipeGesture* new_QSwipeGesture(QObject* parent = 0); -void delete_QSwipeGesture(QSwipeGesture* obj) { delete obj; } - QSwipeGesture::SwipeDirection horizontalDirection(QSwipeGesture* theWrappedObject) const; - void setSwipeAngle(QSwipeGesture* theWrappedObject, qreal value); - qreal swipeAngle(QSwipeGesture* theWrappedObject) const; - QSwipeGesture::SwipeDirection verticalDirection(QSwipeGesture* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QSyntaxHighlighter : public QSyntaxHighlighter -{ -public: - PythonQtShell_QSyntaxHighlighter(QObject* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {}; - PythonQtShell_QSyntaxHighlighter(QTextDocument* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {}; - PythonQtShell_QSyntaxHighlighter(QTextEdit* parent):QSyntaxHighlighter(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void highlightBlock(const QString& text); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QSyntaxHighlighter : public QObject -{ Q_OBJECT -public: -public slots: -QSyntaxHighlighter* new_QSyntaxHighlighter(QObject* parent); -QSyntaxHighlighter* new_QSyntaxHighlighter(QTextDocument* parent); -QSyntaxHighlighter* new_QSyntaxHighlighter(QTextEdit* parent); -void delete_QSyntaxHighlighter(QSyntaxHighlighter* obj) { delete obj; } - QTextDocument* document(QSyntaxHighlighter* theWrappedObject) const; - void setDocument(QSyntaxHighlighter* theWrappedObject, QTextDocument* doc); -}; - - - - - -class PythonQtShell_QSystemTrayIcon : public QSystemTrayIcon -{ -public: - PythonQtShell_QSystemTrayIcon(QObject* parent = 0):QSystemTrayIcon(parent),_wrapper(NULL) {}; - PythonQtShell_QSystemTrayIcon(const QIcon& icon, QObject* parent = 0):QSystemTrayIcon(icon, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSystemTrayIcon : public QSystemTrayIcon -{ public: -inline bool promoted_event(QEvent* event) { return QSystemTrayIcon::event(event); } -}; - -class PythonQtWrapper_QSystemTrayIcon : public QObject -{ Q_OBJECT -public: -Q_ENUMS(MessageIcon ActivationReason ) -enum MessageIcon{ - NoIcon = QSystemTrayIcon::NoIcon, Information = QSystemTrayIcon::Information, Warning = QSystemTrayIcon::Warning, Critical = QSystemTrayIcon::Critical}; -enum ActivationReason{ - Unknown = QSystemTrayIcon::Unknown, Context = QSystemTrayIcon::Context, DoubleClick = QSystemTrayIcon::DoubleClick, Trigger = QSystemTrayIcon::Trigger, MiddleClick = QSystemTrayIcon::MiddleClick}; -public slots: -QSystemTrayIcon* new_QSystemTrayIcon(QObject* parent = 0); -QSystemTrayIcon* new_QSystemTrayIcon(const QIcon& icon, QObject* parent = 0); -void delete_QSystemTrayIcon(QSystemTrayIcon* obj) { delete obj; } - QMenu* contextMenu(QSystemTrayIcon* theWrappedObject) const; - bool event(QSystemTrayIcon* theWrappedObject, QEvent* event); - QRect geometry(QSystemTrayIcon* theWrappedObject) const; - QIcon icon(QSystemTrayIcon* theWrappedObject) const; - bool static_QSystemTrayIcon_isSystemTrayAvailable(); - bool isVisible(QSystemTrayIcon* theWrappedObject) const; - void setContextMenu(QSystemTrayIcon* theWrappedObject, QMenu* menu); - void setIcon(QSystemTrayIcon* theWrappedObject, const QIcon& icon); - void setToolTip(QSystemTrayIcon* theWrappedObject, const QString& tip); - void showMessage(QSystemTrayIcon* theWrappedObject, const QString& title, const QString& msg, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information, int msecs = 10000); - bool static_QSystemTrayIcon_supportsMessages(); - QString toolTip(QSystemTrayIcon* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTabBar : public QTabBar -{ -public: - PythonQtShell_QTabBar(QWidget* parent = 0):QTabBar(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabInserted(int index); -virtual void tabLayoutChange(); -virtual void tabRemoved(int index); -virtual QSize tabSizeHint(int index) const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTabBar : public QTabBar -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QTabBar::changeEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QTabBar::event(arg__1); } -inline void promoted_hideEvent(QHideEvent* arg__1) { QTabBar::hideEvent(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QTabBar::keyPressEvent(arg__1); } -inline void promoted_mouseMoveEvent(QMouseEvent* arg__1) { QTabBar::mouseMoveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QTabBar::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QTabBar::mouseReleaseEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QTabBar::paintEvent(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QTabBar::resizeEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* arg__1) { QTabBar::showEvent(arg__1); } -inline void promoted_tabInserted(int index) { QTabBar::tabInserted(index); } -inline void promoted_tabLayoutChange() { QTabBar::tabLayoutChange(); } -inline void promoted_tabRemoved(int index) { QTabBar::tabRemoved(index); } -inline QSize promoted_tabSizeHint(int index) const { return QTabBar::tabSizeHint(index); } -inline void promoted_wheelEvent(QWheelEvent* event) { QTabBar::wheelEvent(event); } -}; - -class PythonQtWrapper_QTabBar : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SelectionBehavior ButtonPosition ) -enum SelectionBehavior{ - SelectLeftTab = QTabBar::SelectLeftTab, SelectRightTab = QTabBar::SelectRightTab, SelectPreviousTab = QTabBar::SelectPreviousTab}; -enum ButtonPosition{ - LeftSide = QTabBar::LeftSide, RightSide = QTabBar::RightSide}; -public slots: -QTabBar* new_QTabBar(QWidget* parent = 0); -void delete_QTabBar(QTabBar* obj) { delete obj; } - int addTab(QTabBar* theWrappedObject, const QIcon& icon, const QString& text); - int addTab(QTabBar* theWrappedObject, const QString& text); - void changeEvent(QTabBar* theWrappedObject, QEvent* arg__1); - int count(QTabBar* theWrappedObject) const; - int currentIndex(QTabBar* theWrappedObject) const; - bool documentMode(QTabBar* theWrappedObject) const; - bool drawBase(QTabBar* theWrappedObject) const; - Qt::TextElideMode elideMode(QTabBar* theWrappedObject) const; - bool event(QTabBar* theWrappedObject, QEvent* arg__1); - bool expanding(QTabBar* theWrappedObject) const; - void hideEvent(QTabBar* theWrappedObject, QHideEvent* arg__1); - QSize iconSize(QTabBar* theWrappedObject) const; - int insertTab(QTabBar* theWrappedObject, int index, const QIcon& icon, const QString& text); - int insertTab(QTabBar* theWrappedObject, int index, const QString& text); - bool isMovable(QTabBar* theWrappedObject) const; - bool isTabEnabled(QTabBar* theWrappedObject, int index) const; - void keyPressEvent(QTabBar* theWrappedObject, QKeyEvent* arg__1); - QSize minimumSizeHint(QTabBar* theWrappedObject) const; - void mouseMoveEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1); - void mousePressEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QTabBar* theWrappedObject, QMouseEvent* arg__1); - void moveTab(QTabBar* theWrappedObject, int from, int to); - void paintEvent(QTabBar* theWrappedObject, QPaintEvent* arg__1); - void removeTab(QTabBar* theWrappedObject, int index); - void resizeEvent(QTabBar* theWrappedObject, QResizeEvent* arg__1); - QTabBar::SelectionBehavior selectionBehaviorOnRemove(QTabBar* theWrappedObject) const; - void setDocumentMode(QTabBar* theWrappedObject, bool set); - void setDrawBase(QTabBar* theWrappedObject, bool drawTheBase); - void setElideMode(QTabBar* theWrappedObject, Qt::TextElideMode arg__1); - void setExpanding(QTabBar* theWrappedObject, bool enabled); - void setIconSize(QTabBar* theWrappedObject, const QSize& size); - void setMovable(QTabBar* theWrappedObject, bool movable); - void setSelectionBehaviorOnRemove(QTabBar* theWrappedObject, QTabBar::SelectionBehavior behavior); - void setShape(QTabBar* theWrappedObject, QTabBar::Shape shape); - void setTabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position, QWidget* widget); - void setTabData(QTabBar* theWrappedObject, int index, const QVariant& data); - void setTabEnabled(QTabBar* theWrappedObject, int index, bool arg__2); - void setTabIcon(QTabBar* theWrappedObject, int index, const QIcon& icon); - void setTabText(QTabBar* theWrappedObject, int index, const QString& text); - void setTabTextColor(QTabBar* theWrappedObject, int index, const QColor& color); - void setTabToolTip(QTabBar* theWrappedObject, int index, const QString& tip); - void setTabWhatsThis(QTabBar* theWrappedObject, int index, const QString& text); - void setTabsClosable(QTabBar* theWrappedObject, bool closable); - void setUsesScrollButtons(QTabBar* theWrappedObject, bool useButtons); - QTabBar::Shape shape(QTabBar* theWrappedObject) const; - void showEvent(QTabBar* theWrappedObject, QShowEvent* arg__1); - QSize sizeHint(QTabBar* theWrappedObject) const; - int tabAt(QTabBar* theWrappedObject, const QPoint& pos) const; - QWidget* tabButton(QTabBar* theWrappedObject, int index, QTabBar::ButtonPosition position) const; - QVariant tabData(QTabBar* theWrappedObject, int index) const; - QIcon tabIcon(QTabBar* theWrappedObject, int index) const; - void tabInserted(QTabBar* theWrappedObject, int index); - void tabLayoutChange(QTabBar* theWrappedObject); - QRect tabRect(QTabBar* theWrappedObject, int index) const; - void tabRemoved(QTabBar* theWrappedObject, int index); - QSize tabSizeHint(QTabBar* theWrappedObject, int index) const; - QString tabText(QTabBar* theWrappedObject, int index) const; - QColor tabTextColor(QTabBar* theWrappedObject, int index) const; - QString tabToolTip(QTabBar* theWrappedObject, int index) const; - QString tabWhatsThis(QTabBar* theWrappedObject, int index) const; - bool tabsClosable(QTabBar* theWrappedObject) const; - bool usesScrollButtons(QTabBar* theWrappedObject) const; - void wheelEvent(QTabBar* theWrappedObject, QWheelEvent* event); -}; - - - - - -class PythonQtShell_QTabWidget : public QTabWidget -{ -public: - PythonQtShell_QTabWidget(QWidget* parent = 0):QTabWidget(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabInserted(int index); -virtual void tabRemoved(int index); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTabWidget : public QTabWidget -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QTabWidget::changeEvent(arg__1); } -inline bool promoted_event(QEvent* arg__1) { return QTabWidget::event(arg__1); } -inline void promoted_keyPressEvent(QKeyEvent* arg__1) { QTabWidget::keyPressEvent(arg__1); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QTabWidget::paintEvent(arg__1); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { QTabWidget::resizeEvent(arg__1); } -inline void promoted_showEvent(QShowEvent* arg__1) { QTabWidget::showEvent(arg__1); } -inline void promoted_tabInserted(int index) { QTabWidget::tabInserted(index); } -inline void promoted_tabRemoved(int index) { QTabWidget::tabRemoved(index); } -}; - -class PythonQtWrapper_QTabWidget : public QObject -{ Q_OBJECT -public: -public slots: -QTabWidget* new_QTabWidget(QWidget* parent = 0); -void delete_QTabWidget(QTabWidget* obj) { delete obj; } - int addTab(QTabWidget* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& label); - int addTab(QTabWidget* theWrappedObject, QWidget* widget, const QString& arg__2); - void changeEvent(QTabWidget* theWrappedObject, QEvent* arg__1); - void clear(QTabWidget* theWrappedObject); - QWidget* cornerWidget(QTabWidget* theWrappedObject, Qt::Corner corner = Qt::TopRightCorner) const; - int count(QTabWidget* theWrappedObject) const; - int currentIndex(QTabWidget* theWrappedObject) const; - QWidget* currentWidget(QTabWidget* theWrappedObject) const; - bool documentMode(QTabWidget* theWrappedObject) const; - Qt::TextElideMode elideMode(QTabWidget* theWrappedObject) const; - bool event(QTabWidget* theWrappedObject, QEvent* arg__1); - QSize iconSize(QTabWidget* theWrappedObject) const; - int indexOf(QTabWidget* theWrappedObject, QWidget* widget) const; - int insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& label); - int insertTab(QTabWidget* theWrappedObject, int index, QWidget* widget, const QString& arg__3); - bool isMovable(QTabWidget* theWrappedObject) const; - bool isTabEnabled(QTabWidget* theWrappedObject, int index) const; - void keyPressEvent(QTabWidget* theWrappedObject, QKeyEvent* arg__1); - QSize minimumSizeHint(QTabWidget* theWrappedObject) const; - void paintEvent(QTabWidget* theWrappedObject, QPaintEvent* arg__1); - void removeTab(QTabWidget* theWrappedObject, int index); - void resizeEvent(QTabWidget* theWrappedObject, QResizeEvent* arg__1); - void setCornerWidget(QTabWidget* theWrappedObject, QWidget* w, Qt::Corner corner = Qt::TopRightCorner); - void setDocumentMode(QTabWidget* theWrappedObject, bool set); - void setElideMode(QTabWidget* theWrappedObject, Qt::TextElideMode arg__1); - void setIconSize(QTabWidget* theWrappedObject, const QSize& size); - void setMovable(QTabWidget* theWrappedObject, bool movable); - void setTabEnabled(QTabWidget* theWrappedObject, int index, bool arg__2); - void setTabIcon(QTabWidget* theWrappedObject, int index, const QIcon& icon); - void setTabPosition(QTabWidget* theWrappedObject, QTabWidget::TabPosition arg__1); - void setTabShape(QTabWidget* theWrappedObject, QTabWidget::TabShape s); - void setTabText(QTabWidget* theWrappedObject, int index, const QString& arg__2); - void setTabToolTip(QTabWidget* theWrappedObject, int index, const QString& tip); - void setTabWhatsThis(QTabWidget* theWrappedObject, int index, const QString& text); - void setTabsClosable(QTabWidget* theWrappedObject, bool closeable); - void setUsesScrollButtons(QTabWidget* theWrappedObject, bool useButtons); - void showEvent(QTabWidget* theWrappedObject, QShowEvent* arg__1); - QSize sizeHint(QTabWidget* theWrappedObject) const; - QIcon tabIcon(QTabWidget* theWrappedObject, int index) const; - void tabInserted(QTabWidget* theWrappedObject, int index); - QTabWidget::TabPosition tabPosition(QTabWidget* theWrappedObject) const; - void tabRemoved(QTabWidget* theWrappedObject, int index); - QTabWidget::TabShape tabShape(QTabWidget* theWrappedObject) const; - QString tabText(QTabWidget* theWrappedObject, int index) const; - QString tabToolTip(QTabWidget* theWrappedObject, int index) const; - QString tabWhatsThis(QTabWidget* theWrappedObject, int index) const; - bool tabsClosable(QTabWidget* theWrappedObject) const; - bool usesScrollButtons(QTabWidget* theWrappedObject) const; - QWidget* widget(QTabWidget* theWrappedObject, int index) const; -}; - - - - - -class PythonQtShell_QTableView : public QTableView -{ -public: - PythonQtShell_QTableView(QWidget* parent = 0):QTableView(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void dropEvent(QDropEvent* event); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* event); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setModel(QAbstractItemModel* model); -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTableView : public QTableView -{ public: -inline void promoted_currentChanged(const QModelIndex& current, const QModelIndex& previous) { QTableView::currentChanged(current, previous); } -inline int promoted_horizontalOffset() const { return QTableView::horizontalOffset(); } -inline void promoted_horizontalScrollbarAction(int action) { QTableView::horizontalScrollbarAction(action); } -inline QModelIndex promoted_indexAt(const QPoint& p) const { return QTableView::indexAt(p); } -inline bool promoted_isIndexHidden(const QModelIndex& index) const { return QTableView::isIndexHidden(index); } -inline void promoted_paintEvent(QPaintEvent* e) { QTableView::paintEvent(e); } -inline void promoted_scrollContentsBy(int dx, int dy) { QTableView::scrollContentsBy(dx, dy); } -inline void promoted_scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible) { QTableView::scrollTo(index, hint); } -inline QList promoted_selectedIndexes() const { return QTableView::selectedIndexes(); } -inline void promoted_selectionChanged(const QItemSelection& selected, const QItemSelection& deselected) { QTableView::selectionChanged(selected, deselected); } -inline void promoted_setModel(QAbstractItemModel* model) { QTableView::setModel(model); } -inline void promoted_setRootIndex(const QModelIndex& index) { QTableView::setRootIndex(index); } -inline void promoted_setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command) { QTableView::setSelection(rect, command); } -inline void promoted_setSelectionModel(QItemSelectionModel* selectionModel) { QTableView::setSelectionModel(selectionModel); } -inline int promoted_sizeHintForColumn(int column) const { return QTableView::sizeHintForColumn(column); } -inline int promoted_sizeHintForRow(int row) const { return QTableView::sizeHintForRow(row); } -inline void promoted_timerEvent(QTimerEvent* event) { QTableView::timerEvent(event); } -inline void promoted_updateGeometries() { QTableView::updateGeometries(); } -inline int promoted_verticalOffset() const { return QTableView::verticalOffset(); } -inline void promoted_verticalScrollbarAction(int action) { QTableView::verticalScrollbarAction(action); } -inline QStyleOptionViewItem promoted_viewOptions() const { return QTableView::viewOptions(); } -inline QRect promoted_visualRect(const QModelIndex& index) const { return QTableView::visualRect(index); } -inline QRegion promoted_visualRegionForSelection(const QItemSelection& selection) const { return QTableView::visualRegionForSelection(selection); } -}; - -class PythonQtWrapper_QTableView : public QObject -{ Q_OBJECT -public: -public slots: -QTableView* new_QTableView(QWidget* parent = 0); -void delete_QTableView(QTableView* obj) { delete obj; } - void clearSpans(QTableView* theWrappedObject); - int columnAt(QTableView* theWrappedObject, int x) const; - int columnSpan(QTableView* theWrappedObject, int row, int column) const; - int columnViewportPosition(QTableView* theWrappedObject, int column) const; - int columnWidth(QTableView* theWrappedObject, int column) const; - void currentChanged(QTableView* theWrappedObject, const QModelIndex& current, const QModelIndex& previous); - Qt::PenStyle gridStyle(QTableView* theWrappedObject) const; - QHeaderView* horizontalHeader(QTableView* theWrappedObject) const; - int horizontalOffset(QTableView* theWrappedObject) const; - void horizontalScrollbarAction(QTableView* theWrappedObject, int action); - QModelIndex indexAt(QTableView* theWrappedObject, const QPoint& p) const; - bool isColumnHidden(QTableView* theWrappedObject, int column) const; - bool isCornerButtonEnabled(QTableView* theWrappedObject) const; - bool isIndexHidden(QTableView* theWrappedObject, const QModelIndex& index) const; - bool isRowHidden(QTableView* theWrappedObject, int row) const; - bool isSortingEnabled(QTableView* theWrappedObject) const; - void paintEvent(QTableView* theWrappedObject, QPaintEvent* e); - int rowAt(QTableView* theWrappedObject, int y) const; - int rowHeight(QTableView* theWrappedObject, int row) const; - int rowSpan(QTableView* theWrappedObject, int row, int column) const; - int rowViewportPosition(QTableView* theWrappedObject, int row) const; - void scrollContentsBy(QTableView* theWrappedObject, int dx, int dy); - void scrollTo(QTableView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); - QList selectedIndexes(QTableView* theWrappedObject) const; - void selectionChanged(QTableView* theWrappedObject, const QItemSelection& selected, const QItemSelection& deselected); - void setColumnHidden(QTableView* theWrappedObject, int column, bool hide); - void setColumnWidth(QTableView* theWrappedObject, int column, int width); - void setCornerButtonEnabled(QTableView* theWrappedObject, bool enable); - void setGridStyle(QTableView* theWrappedObject, Qt::PenStyle style); - void setHorizontalHeader(QTableView* theWrappedObject, QHeaderView* header); - void setModel(QTableView* theWrappedObject, QAbstractItemModel* model); - void setRootIndex(QTableView* theWrappedObject, const QModelIndex& index); - void setRowHeight(QTableView* theWrappedObject, int row, int height); - void setRowHidden(QTableView* theWrappedObject, int row, bool hide); - void setSelection(QTableView* theWrappedObject, const QRect& rect, QItemSelectionModel::SelectionFlags command); - void setSelectionModel(QTableView* theWrappedObject, QItemSelectionModel* selectionModel); - void setSortingEnabled(QTableView* theWrappedObject, bool enable); - void setSpan(QTableView* theWrappedObject, int row, int column, int rowSpan, int columnSpan); - void setVerticalHeader(QTableView* theWrappedObject, QHeaderView* header); - void setWordWrap(QTableView* theWrappedObject, bool on); - bool showGrid(QTableView* theWrappedObject) const; - int sizeHintForColumn(QTableView* theWrappedObject, int column) const; - int sizeHintForRow(QTableView* theWrappedObject, int row) const; - void sortByColumn(QTableView* theWrappedObject, int column, Qt::SortOrder order); - void timerEvent(QTableView* theWrappedObject, QTimerEvent* event); - void updateGeometries(QTableView* theWrappedObject); - QHeaderView* verticalHeader(QTableView* theWrappedObject) const; - int verticalOffset(QTableView* theWrappedObject) const; - void verticalScrollbarAction(QTableView* theWrappedObject, int action); - QStyleOptionViewItem viewOptions(QTableView* theWrappedObject) const; - QRect visualRect(QTableView* theWrappedObject, const QModelIndex& index) const; - QRegion visualRegionForSelection(QTableView* theWrappedObject, const QItemSelection& selection) const; - bool wordWrap(QTableView* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTableWidget : public QTableWidget -{ -public: - PythonQtShell_QTableWidget(QWidget* parent = 0):QTableWidget(parent),_wrapper(NULL) {}; - PythonQtShell_QTableWidget(int rows, int columns, QWidget* parent = 0):QTableWidget(rows, columns, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEditor(QWidget* editor, QAbstractItemDelegate::EndEditHint hint); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void commitData(QWidget* editor); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous); -virtual void customEvent(QEvent* arg__1); -virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight); -virtual int devType() const; -virtual void doItemsLayout(); -virtual void dragEnterEvent(QDragEnterEvent* event); -virtual void dragLeaveEvent(QDragLeaveEvent* event); -virtual void dragMoveEvent(QDragMoveEvent* event); -virtual void dropEvent(QDropEvent* event); -virtual bool dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action); -virtual bool edit(const QModelIndex& index, QAbstractItemView::EditTrigger trigger, QEvent* event); -virtual void editorDestroyed(QObject* editor); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual int horizontalOffset() const; -virtual void horizontalScrollbarAction(int action); -virtual void horizontalScrollbarValueChanged(int value); -virtual QModelIndex indexAt(const QPoint& p) const; -virtual void inputMethodEvent(QInputMethodEvent* event); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; -virtual bool isIndexHidden(const QModelIndex& index) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void keyboardSearch(const QString& search); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QMimeData* mimeData(const QList items) const; -virtual QStringList mimeTypes() const; -virtual void mouseDoubleClickEvent(QMouseEvent* event); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void reset(); -virtual void resizeEvent(QResizeEvent* event); -virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end); -virtual void rowsInserted(const QModelIndex& parent, int start, int end); -virtual void scrollContentsBy(int dx, int dy); -virtual void scrollTo(const QModelIndex& index, QAbstractItemView::ScrollHint hint); -virtual void selectAll(); -virtual QList selectedIndexes() const; -virtual void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); -virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex& index, const QEvent* event) const; -virtual void setRootIndex(const QModelIndex& index); -virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); -virtual void setSelectionModel(QItemSelectionModel* selectionModel); -virtual void showEvent(QShowEvent* arg__1); -virtual int sizeHintForColumn(int column) const; -virtual int sizeHintForRow(int row) const; -virtual void startDrag(Qt::DropActions supportedActions); -virtual Qt::DropActions supportedDropActions() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* event); -virtual void updateEditorData(); -virtual void updateEditorGeometries(); -virtual void updateGeometries(); -virtual int verticalOffset() const; -virtual void verticalScrollbarAction(int action); -virtual void verticalScrollbarValueChanged(int value); -virtual QStyleOptionViewItem viewOptions() const; -virtual bool viewportEvent(QEvent* event); -virtual QRect visualRect(const QModelIndex& index) const; -virtual QRegion visualRegionForSelection(const QItemSelection& selection) const; -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTableWidget : public QTableWidget -{ public: -inline void promoted_dropEvent(QDropEvent* event) { QTableWidget::dropEvent(event); } -inline bool promoted_dropMimeData(int row, int column, const QMimeData* data, Qt::DropAction action) { return QTableWidget::dropMimeData(row, column, data, action); } -inline bool promoted_event(QEvent* e) { return QTableWidget::event(e); } -inline QStringList promoted_mimeTypes() const { return QTableWidget::mimeTypes(); } -inline Qt::DropActions promoted_supportedDropActions() const { return QTableWidget::supportedDropActions(); } -}; - -class PythonQtWrapper_QTableWidget : public QObject -{ Q_OBJECT -public: -public slots: -QTableWidget* new_QTableWidget(QWidget* parent = 0); -QTableWidget* new_QTableWidget(int rows, int columns, QWidget* parent = 0); -void delete_QTableWidget(QTableWidget* obj) { delete obj; } - QWidget* cellWidget(QTableWidget* theWrappedObject, int row, int column) const; - void closePersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item); - int column(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const; - int columnCount(QTableWidget* theWrappedObject) const; - int currentColumn(QTableWidget* theWrappedObject) const; - QTableWidgetItem* currentItem(QTableWidget* theWrappedObject) const; - int currentRow(QTableWidget* theWrappedObject) const; - void dropEvent(QTableWidget* theWrappedObject, QDropEvent* event); - bool dropMimeData(QTableWidget* theWrappedObject, int row, int column, const QMimeData* data, Qt::DropAction action); - void editItem(QTableWidget* theWrappedObject, QTableWidgetItem* item); - bool event(QTableWidget* theWrappedObject, QEvent* e); - QList findItems(QTableWidget* theWrappedObject, const QString& text, Qt::MatchFlags flags) const; - QTableWidgetItem* horizontalHeaderItem(QTableWidget* theWrappedObject, int column) const; - QTableWidgetItem* item(QTableWidget* theWrappedObject, int row, int column) const; - QTableWidgetItem* itemAt(QTableWidget* theWrappedObject, const QPoint& p) const; - QTableWidgetItem* itemAt(QTableWidget* theWrappedObject, int x, int y) const; - const QTableWidgetItem* itemPrototype(QTableWidget* theWrappedObject) const; - QStringList mimeTypes(QTableWidget* theWrappedObject) const; - void openPersistentEditor(QTableWidget* theWrappedObject, QTableWidgetItem* item); - void removeCellWidget(QTableWidget* theWrappedObject, int row, int column); - int row(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const; - int rowCount(QTableWidget* theWrappedObject) const; - QList selectedItems(QTableWidget* theWrappedObject); - QList selectedRanges(QTableWidget* theWrappedObject) const; - void setCellWidget(QTableWidget* theWrappedObject, int row, int column, QWidget* widget); - void setColumnCount(QTableWidget* theWrappedObject, int columns); - void setCurrentCell(QTableWidget* theWrappedObject, int row, int column); - void setCurrentCell(QTableWidget* theWrappedObject, int row, int column, QItemSelectionModel::SelectionFlags command); - void setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item); - void setCurrentItem(QTableWidget* theWrappedObject, QTableWidgetItem* item, QItemSelectionModel::SelectionFlags command); - void setHorizontalHeaderItem(QTableWidget* theWrappedObject, int column, QTableWidgetItem* item); - void setHorizontalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels); - void setItem(QTableWidget* theWrappedObject, int row, int column, QTableWidgetItem* item); - void setItemPrototype(QTableWidget* theWrappedObject, const QTableWidgetItem* item); - void setRangeSelected(QTableWidget* theWrappedObject, const QTableWidgetSelectionRange& range, bool select); - void setRowCount(QTableWidget* theWrappedObject, int rows); - void setVerticalHeaderItem(QTableWidget* theWrappedObject, int row, QTableWidgetItem* item); - void setVerticalHeaderLabels(QTableWidget* theWrappedObject, const QStringList& labels); - void sortItems(QTableWidget* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder); - Qt::DropActions supportedDropActions(QTableWidget* theWrappedObject) const; - QTableWidgetItem* takeHorizontalHeaderItem(QTableWidget* theWrappedObject, int column); - QTableWidgetItem* takeItem(QTableWidget* theWrappedObject, int row, int column); - QTableWidgetItem* takeVerticalHeaderItem(QTableWidget* theWrappedObject, int row); - QTableWidgetItem* verticalHeaderItem(QTableWidget* theWrappedObject, int row) const; - int visualColumn(QTableWidget* theWrappedObject, int logicalColumn) const; - QRect visualItemRect(QTableWidget* theWrappedObject, const QTableWidgetItem* item) const; - int visualRow(QTableWidget* theWrappedObject, int logicalRow) const; -}; - - - - - -class PythonQtShell_QTableWidgetItem : public QTableWidgetItem -{ -public: - PythonQtShell_QTableWidgetItem(const QIcon& icon, const QString& text, int type = Type):QTableWidgetItem(icon, text, type),_wrapper(NULL) {}; - PythonQtShell_QTableWidgetItem(const QString& text, int type = Type):QTableWidgetItem(text, type),_wrapper(NULL) {}; - PythonQtShell_QTableWidgetItem(int type = Type):QTableWidgetItem(type),_wrapper(NULL) {}; - -virtual QTableWidgetItem* clone() const; -virtual QVariant data(int role) const; -virtual bool __lt__(const QTableWidgetItem& other) const; -virtual void read(QDataStream& in); -virtual void setData(int role, const QVariant& value); -virtual void write(QDataStream& out) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTableWidgetItem : public QTableWidgetItem -{ public: -inline QTableWidgetItem* promoted_clone() const { return QTableWidgetItem::clone(); } -inline QVariant promoted_data(int role) const { return QTableWidgetItem::data(role); } -inline void promoted_setData(int role, const QVariant& value) { QTableWidgetItem::setData(role, value); } -}; - -class PythonQtWrapper_QTableWidgetItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ItemType ) -enum ItemType{ - Type = QTableWidgetItem::Type, UserType = QTableWidgetItem::UserType}; -public slots: -QTableWidgetItem* new_QTableWidgetItem(const QIcon& icon, const QString& text, int type = Type); -QTableWidgetItem* new_QTableWidgetItem(const QString& text, int type = Type); -QTableWidgetItem* new_QTableWidgetItem(int type = Type); -void delete_QTableWidgetItem(QTableWidgetItem* obj) { delete obj; } - QBrush background(QTableWidgetItem* theWrappedObject) const; - Qt::CheckState checkState(QTableWidgetItem* theWrappedObject) const; - QTableWidgetItem* clone(QTableWidgetItem* theWrappedObject) const; - int column(QTableWidgetItem* theWrappedObject) const; - QVariant data(QTableWidgetItem* theWrappedObject, int role) const; - Qt::ItemFlags flags(QTableWidgetItem* theWrappedObject) const; - QFont font(QTableWidgetItem* theWrappedObject) const; - QBrush foreground(QTableWidgetItem* theWrappedObject) const; - QIcon icon(QTableWidgetItem* theWrappedObject) const; - bool isSelected(QTableWidgetItem* theWrappedObject) const; - void writeTo(QTableWidgetItem* theWrappedObject, QDataStream& out); - void readFrom(QTableWidgetItem* theWrappedObject, QDataStream& in); - int row(QTableWidgetItem* theWrappedObject) const; - void setBackground(QTableWidgetItem* theWrappedObject, const QBrush& brush); - void setCheckState(QTableWidgetItem* theWrappedObject, Qt::CheckState state); - void setData(QTableWidgetItem* theWrappedObject, int role, const QVariant& value); - void setFlags(QTableWidgetItem* theWrappedObject, Qt::ItemFlags flags); - void setFont(QTableWidgetItem* theWrappedObject, const QFont& font); - void setForeground(QTableWidgetItem* theWrappedObject, const QBrush& brush); - void setIcon(QTableWidgetItem* theWrappedObject, const QIcon& icon); - void setSelected(QTableWidgetItem* theWrappedObject, bool select); - void setSizeHint(QTableWidgetItem* theWrappedObject, const QSize& size); - void setStatusTip(QTableWidgetItem* theWrappedObject, const QString& statusTip); - void setText(QTableWidgetItem* theWrappedObject, const QString& text); - void setTextAlignment(QTableWidgetItem* theWrappedObject, int alignment); - void setToolTip(QTableWidgetItem* theWrappedObject, const QString& toolTip); - void setWhatsThis(QTableWidgetItem* theWrappedObject, const QString& whatsThis); - QSize sizeHint(QTableWidgetItem* theWrappedObject) const; - QString statusTip(QTableWidgetItem* theWrappedObject) const; - QTableWidget* tableWidget(QTableWidgetItem* theWrappedObject) const; - QString text(QTableWidgetItem* theWrappedObject) const; - int textAlignment(QTableWidgetItem* theWrappedObject) const; - QString toolTip(QTableWidgetItem* theWrappedObject) const; - int type(QTableWidgetItem* theWrappedObject) const; - QString whatsThis(QTableWidgetItem* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTableWidgetSelectionRange : public QObject -{ Q_OBJECT -public: -public slots: -QTableWidgetSelectionRange* new_QTableWidgetSelectionRange(); -QTableWidgetSelectionRange* new_QTableWidgetSelectionRange(const QTableWidgetSelectionRange& other); -QTableWidgetSelectionRange* new_QTableWidgetSelectionRange(int top, int left, int bottom, int right); -void delete_QTableWidgetSelectionRange(QTableWidgetSelectionRange* obj) { delete obj; } - int bottomRow(QTableWidgetSelectionRange* theWrappedObject) const; - int columnCount(QTableWidgetSelectionRange* theWrappedObject) const; - int leftColumn(QTableWidgetSelectionRange* theWrappedObject) const; - int rightColumn(QTableWidgetSelectionRange* theWrappedObject) const; - int rowCount(QTableWidgetSelectionRange* theWrappedObject) const; - int topRow(QTableWidgetSelectionRange* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTabletEvent : public QTabletEvent -{ -public: - PythonQtShell_QTabletEvent(QEvent::Type t, const QPoint& pos, const QPoint& globalPos, const QPointF& hiResGlobalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID):QTabletEvent(t, pos, globalPos, hiResGlobalPos, device, pointerType, pressure, xTilt, yTilt, tangentialPressure, rotation, z, keyState, uniqueID),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTabletEvent : public QObject -{ Q_OBJECT -public: -Q_ENUMS(TabletDevice PointerType ) -enum TabletDevice{ - NoDevice = QTabletEvent::NoDevice, Puck = QTabletEvent::Puck, Stylus = QTabletEvent::Stylus, Airbrush = QTabletEvent::Airbrush, FourDMouse = QTabletEvent::FourDMouse, XFreeEraser = QTabletEvent::XFreeEraser, RotationStylus = QTabletEvent::RotationStylus}; -enum PointerType{ - UnknownPointer = QTabletEvent::UnknownPointer, Pen = QTabletEvent::Pen, Cursor = QTabletEvent::Cursor, Eraser = QTabletEvent::Eraser}; -public slots: -QTabletEvent* new_QTabletEvent(QEvent::Type t, const QPoint& pos, const QPoint& globalPos, const QPointF& hiResGlobalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID); -void delete_QTabletEvent(QTabletEvent* obj) { delete obj; } - QTabletEvent::TabletDevice device(QTabletEvent* theWrappedObject) const; - const QPoint* globalPos(QTabletEvent* theWrappedObject) const; - int globalX(QTabletEvent* theWrappedObject) const; - int globalY(QTabletEvent* theWrappedObject) const; - const QPointF* hiResGlobalPos(QTabletEvent* theWrappedObject) const; - qreal hiResGlobalX(QTabletEvent* theWrappedObject) const; - qreal hiResGlobalY(QTabletEvent* theWrappedObject) const; - QTabletEvent::PointerType pointerType(QTabletEvent* theWrappedObject) const; - const QPoint* pos(QTabletEvent* theWrappedObject) const; - qreal pressure(QTabletEvent* theWrappedObject) const; - qreal rotation(QTabletEvent* theWrappedObject) const; - qreal tangentialPressure(QTabletEvent* theWrappedObject) const; - qint64 uniqueId(QTabletEvent* theWrappedObject) const; - int x(QTabletEvent* theWrappedObject) const; - int xTilt(QTabletEvent* theWrappedObject) const; - int y(QTabletEvent* theWrappedObject) const; - int yTilt(QTabletEvent* theWrappedObject) const; - int z(QTabletEvent* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextBlock : public QObject -{ Q_OBJECT -public: -public slots: -QTextBlock* new_QTextBlock(); -QTextBlock* new_QTextBlock(const QTextBlock& o); -void delete_QTextBlock(QTextBlock* obj) { delete obj; } - QTextBlock::iterator begin(QTextBlock* theWrappedObject) const; - QTextBlockFormat blockFormat(QTextBlock* theWrappedObject) const; - int blockFormatIndex(QTextBlock* theWrappedObject) const; - int blockNumber(QTextBlock* theWrappedObject) const; - QTextCharFormat charFormat(QTextBlock* theWrappedObject) const; - int charFormatIndex(QTextBlock* theWrappedObject) const; - void clearLayout(QTextBlock* theWrappedObject); - bool contains(QTextBlock* theWrappedObject, int position) const; - const QTextDocument* document(QTextBlock* theWrappedObject) const; - QTextBlock::iterator end(QTextBlock* theWrappedObject) const; - int firstLineNumber(QTextBlock* theWrappedObject) const; - int fragmentIndex(QTextBlock* theWrappedObject) const; - bool isValid(QTextBlock* theWrappedObject) const; - bool isVisible(QTextBlock* theWrappedObject) const; - QTextLayout* layout(QTextBlock* theWrappedObject) const; - int length(QTextBlock* theWrappedObject) const; - int lineCount(QTextBlock* theWrappedObject) const; - QTextBlock next(QTextBlock* theWrappedObject) const; - bool __ne__(QTextBlock* theWrappedObject, const QTextBlock& o) const; - bool __lt__(QTextBlock* theWrappedObject, const QTextBlock& o) const; - bool __eq__(QTextBlock* theWrappedObject, const QTextBlock& o) const; - int position(QTextBlock* theWrappedObject) const; - QTextBlock previous(QTextBlock* theWrappedObject) const; - int revision(QTextBlock* theWrappedObject) const; - void setLineCount(QTextBlock* theWrappedObject, int count); - void setRevision(QTextBlock* theWrappedObject, int rev); - void setUserData(QTextBlock* theWrappedObject, QTextBlockUserData* data); - void setUserState(QTextBlock* theWrappedObject, int state); - void setVisible(QTextBlock* theWrappedObject, bool visible); - QString text(QTextBlock* theWrappedObject) const; - QTextList* textList(QTextBlock* theWrappedObject) const; - QTextBlockUserData* userData(QTextBlock* theWrappedObject) const; - int userState(QTextBlock* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextBlockFormat : public QTextBlockFormat -{ -public: - PythonQtShell_QTextBlockFormat():QTextBlockFormat(),_wrapper(NULL) {}; - PythonQtShell_QTextBlockFormat(const QTextFormat& fmt):QTextBlockFormat(fmt),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextBlockFormat : public QObject -{ Q_OBJECT -public: -public slots: -QTextBlockFormat* new_QTextBlockFormat(); -QTextBlockFormat* new_QTextBlockFormat(const QTextBlockFormat& other) { -PythonQtShell_QTextBlockFormat* a = new PythonQtShell_QTextBlockFormat(); -*((QTextBlockFormat*)a) = other; -return a; } -void delete_QTextBlockFormat(QTextBlockFormat* obj) { delete obj; } - Qt::Alignment alignment(QTextBlockFormat* theWrappedObject) const; - qreal bottomMargin(QTextBlockFormat* theWrappedObject) const; - int indent(QTextBlockFormat* theWrappedObject) const; - bool isValid(QTextBlockFormat* theWrappedObject) const; - qreal leftMargin(QTextBlockFormat* theWrappedObject) const; - bool nonBreakableLines(QTextBlockFormat* theWrappedObject) const; - QTextFormat::PageBreakFlags pageBreakPolicy(QTextBlockFormat* theWrappedObject) const; - qreal rightMargin(QTextBlockFormat* theWrappedObject) const; - void setAlignment(QTextBlockFormat* theWrappedObject, Qt::Alignment alignment); - void setBottomMargin(QTextBlockFormat* theWrappedObject, qreal margin); - void setIndent(QTextBlockFormat* theWrappedObject, int indent); - void setLeftMargin(QTextBlockFormat* theWrappedObject, qreal margin); - void setNonBreakableLines(QTextBlockFormat* theWrappedObject, bool b); - void setPageBreakPolicy(QTextBlockFormat* theWrappedObject, QTextFormat::PageBreakFlags flags); - void setRightMargin(QTextBlockFormat* theWrappedObject, qreal margin); - void setTabPositions(QTextBlockFormat* theWrappedObject, const QList& tabs); - void setTextIndent(QTextBlockFormat* theWrappedObject, qreal aindent); - void setTopMargin(QTextBlockFormat* theWrappedObject, qreal margin); - QList tabPositions(QTextBlockFormat* theWrappedObject) const; - qreal textIndent(QTextBlockFormat* theWrappedObject) const; - qreal topMargin(QTextBlockFormat* theWrappedObject) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp deleted file mode 100644 index dde5837f1..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp +++ /dev/null @@ -1,9671 +0,0 @@ -#include "com_trolltech_qt_gui9.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -void PythonQtShell_QTextBlockGroup::blockFormatChanged(const QTextBlock& block) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockFormatChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QTextBlock&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&block}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBlockGroup::blockFormatChanged(block); -} -void PythonQtShell_QTextBlockGroup::blockInserted(const QTextBlock& block) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QTextBlock&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&block}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBlockGroup::blockInserted(block); -} -void PythonQtShell_QTextBlockGroup::blockRemoved(const QTextBlock& block) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QTextBlock&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&block}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBlockGroup::blockRemoved(block); -} -void PythonQtShell_QTextBlockGroup::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBlockGroup::childEvent(arg__1); -} -void PythonQtShell_QTextBlockGroup::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBlockGroup::customEvent(arg__1); -} -bool PythonQtShell_QTextBlockGroup::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBlockGroup::event(arg__1); -} -bool PythonQtShell_QTextBlockGroup::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBlockGroup::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTextBlockGroup::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBlockGroup::timerEvent(arg__1); -} -void PythonQtWrapper_QTextBlockGroup::blockFormatChanged(QTextBlockGroup* theWrappedObject, const QTextBlock& block) -{ - ( ((PythonQtPublicPromoter_QTextBlockGroup*)theWrappedObject)->promoted_blockFormatChanged(block)); -} - -void PythonQtWrapper_QTextBlockGroup::blockInserted(QTextBlockGroup* theWrappedObject, const QTextBlock& block) -{ - ( ((PythonQtPublicPromoter_QTextBlockGroup*)theWrappedObject)->promoted_blockInserted(block)); -} - -void PythonQtWrapper_QTextBlockGroup::blockRemoved(QTextBlockGroup* theWrappedObject, const QTextBlock& block) -{ - ( ((PythonQtPublicPromoter_QTextBlockGroup*)theWrappedObject)->promoted_blockRemoved(block)); -} - - - -QTextBlockUserData* PythonQtWrapper_QTextBlockUserData::new_QTextBlockUserData() -{ -return new PythonQtShell_QTextBlockUserData(); } - - - -void PythonQtShell_QTextBrowser::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::actionEvent(arg__1); -} -void PythonQtShell_QTextBrowser::backward() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "backward"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::backward(); -} -bool PythonQtShell_QTextBrowser::canInsertFromMimeData(const QMimeData* source) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canInsertFromMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canInsertFromMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::canInsertFromMimeData(source); -} -void PythonQtShell_QTextBrowser::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::changeEvent(e); -} -void PythonQtShell_QTextBrowser::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::childEvent(arg__1); -} -void PythonQtShell_QTextBrowser::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::closeEvent(arg__1); -} -void PythonQtShell_QTextBrowser::contextMenuEvent(QContextMenuEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::contextMenuEvent(e); -} -QMimeData* PythonQtShell_QTextBrowser::createMimeDataFromSelection() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createMimeDataFromSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QMimeData* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createMimeDataFromSelection", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::createMimeDataFromSelection(); -} -void PythonQtShell_QTextBrowser::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::customEvent(arg__1); -} -int PythonQtShell_QTextBrowser::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::devType(); -} -void PythonQtShell_QTextBrowser::dragEnterEvent(QDragEnterEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::dragEnterEvent(e); -} -void PythonQtShell_QTextBrowser::dragLeaveEvent(QDragLeaveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::dragLeaveEvent(e); -} -void PythonQtShell_QTextBrowser::dragMoveEvent(QDragMoveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::dragMoveEvent(e); -} -void PythonQtShell_QTextBrowser::dropEvent(QDropEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::dropEvent(e); -} -void PythonQtShell_QTextBrowser::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::enterEvent(arg__1); -} -bool PythonQtShell_QTextBrowser::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::event(e); -} -bool PythonQtShell_QTextBrowser::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTextBrowser::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::focusInEvent(e); -} -bool PythonQtShell_QTextBrowser::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::focusNextPrevChild(next); -} -void PythonQtShell_QTextBrowser::focusOutEvent(QFocusEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::focusOutEvent(ev); -} -void PythonQtShell_QTextBrowser::forward() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "forward"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::forward(); -} -int PythonQtShell_QTextBrowser::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::heightForWidth(arg__1); -} -void PythonQtShell_QTextBrowser::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::hideEvent(arg__1); -} -void PythonQtShell_QTextBrowser::home() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "home"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::home(); -} -void PythonQtShell_QTextBrowser::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QTextBrowser::inputMethodQuery(Qt::InputMethodQuery property) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&property}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::inputMethodQuery(property); -} -void PythonQtShell_QTextBrowser::insertFromMimeData(const QMimeData* source) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertFromMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::insertFromMimeData(source); -} -void PythonQtShell_QTextBrowser::keyPressEvent(QKeyEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::keyPressEvent(ev); -} -void PythonQtShell_QTextBrowser::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::keyReleaseEvent(e); -} -void PythonQtShell_QTextBrowser::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::languageChange(); -} -void PythonQtShell_QTextBrowser::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::leaveEvent(arg__1); -} -QVariant PythonQtShell_QTextBrowser::loadResource(int type, const QUrl& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&type, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::loadResource(type, name); -} -int PythonQtShell_QTextBrowser::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::metric(arg__1); -} -void PythonQtShell_QTextBrowser::mouseDoubleClickEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::mouseDoubleClickEvent(e); -} -void PythonQtShell_QTextBrowser::mouseMoveEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::mouseMoveEvent(ev); -} -void PythonQtShell_QTextBrowser::mousePressEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::mousePressEvent(ev); -} -void PythonQtShell_QTextBrowser::mouseReleaseEvent(QMouseEvent* ev) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::mouseReleaseEvent(ev); -} -void PythonQtShell_QTextBrowser::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTextBrowser::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::paintEngine(); -} -void PythonQtShell_QTextBrowser::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::paintEvent(e); -} -void PythonQtShell_QTextBrowser::reload() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reload"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::reload(); -} -void PythonQtShell_QTextBrowser::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::resizeEvent(e); -} -void PythonQtShell_QTextBrowser::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTextBrowser::scrollContentsBy(dx, dy); -} -void PythonQtShell_QTextBrowser::setSource(const QUrl& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSource"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::setSource(name); -} -void PythonQtShell_QTextBrowser::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::showEvent(arg__1); -} -void PythonQtShell_QTextBrowser::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::tabletEvent(arg__1); -} -void PythonQtShell_QTextBrowser::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::timerEvent(e); -} -bool PythonQtShell_QTextBrowser::viewportEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextBrowser::viewportEvent(arg__1); -} -void PythonQtShell_QTextBrowser::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextBrowser::wheelEvent(e); -} -QTextBrowser* PythonQtWrapper_QTextBrowser::new_QTextBrowser(QWidget* parent) -{ -return new PythonQtShell_QTextBrowser(parent); } - -int PythonQtWrapper_QTextBrowser::backwardHistoryCount(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->backwardHistoryCount()); -} - -void PythonQtWrapper_QTextBrowser::clearHistory(QTextBrowser* theWrappedObject) -{ - ( theWrappedObject->clearHistory()); -} - -bool PythonQtWrapper_QTextBrowser::event(QTextBrowser* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QTextBrowser::focusNextPrevChild(QTextBrowser* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QTextBrowser::focusOutEvent(QTextBrowser* theWrappedObject, QFocusEvent* ev) -{ - ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_focusOutEvent(ev)); -} - -int PythonQtWrapper_QTextBrowser::forwardHistoryCount(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->forwardHistoryCount()); -} - -QString PythonQtWrapper_QTextBrowser::historyTitle(QTextBrowser* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->historyTitle(arg__1)); -} - -QUrl PythonQtWrapper_QTextBrowser::historyUrl(QTextBrowser* theWrappedObject, int arg__1) const -{ - return ( theWrappedObject->historyUrl(arg__1)); -} - -bool PythonQtWrapper_QTextBrowser::isBackwardAvailable(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->isBackwardAvailable()); -} - -bool PythonQtWrapper_QTextBrowser::isForwardAvailable(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->isForwardAvailable()); -} - -void PythonQtWrapper_QTextBrowser::keyPressEvent(QTextBrowser* theWrappedObject, QKeyEvent* ev) -{ - ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_keyPressEvent(ev)); -} - -QVariant PythonQtWrapper_QTextBrowser::loadResource(QTextBrowser* theWrappedObject, int type, const QUrl& name) -{ - return ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_loadResource(type, name)); -} - -void PythonQtWrapper_QTextBrowser::mouseMoveEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_mouseMoveEvent(ev)); -} - -void PythonQtWrapper_QTextBrowser::mousePressEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_mousePressEvent(ev)); -} - -void PythonQtWrapper_QTextBrowser::mouseReleaseEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev) -{ - ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_mouseReleaseEvent(ev)); -} - -bool PythonQtWrapper_QTextBrowser::openExternalLinks(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->openExternalLinks()); -} - -bool PythonQtWrapper_QTextBrowser::openLinks(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->openLinks()); -} - -void PythonQtWrapper_QTextBrowser::paintEvent(QTextBrowser* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextBrowser*)theWrappedObject)->promoted_paintEvent(e)); -} - -QStringList PythonQtWrapper_QTextBrowser::searchPaths(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->searchPaths()); -} - -void PythonQtWrapper_QTextBrowser::setOpenExternalLinks(QTextBrowser* theWrappedObject, bool open) -{ - ( theWrappedObject->setOpenExternalLinks(open)); -} - -void PythonQtWrapper_QTextBrowser::setOpenLinks(QTextBrowser* theWrappedObject, bool open) -{ - ( theWrappedObject->setOpenLinks(open)); -} - -void PythonQtWrapper_QTextBrowser::setSearchPaths(QTextBrowser* theWrappedObject, const QStringList& paths) -{ - ( theWrappedObject->setSearchPaths(paths)); -} - -QUrl PythonQtWrapper_QTextBrowser::source(QTextBrowser* theWrappedObject) const -{ - return ( theWrappedObject->source()); -} - - - -QTextCharFormat* PythonQtWrapper_QTextCharFormat::new_QTextCharFormat() -{ -return new PythonQtShell_QTextCharFormat(); } - -QString PythonQtWrapper_QTextCharFormat::anchorHref(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->anchorHref()); -} - -QStringList PythonQtWrapper_QTextCharFormat::anchorNames(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->anchorNames()); -} - -QFont PythonQtWrapper_QTextCharFormat::font(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -QFont::Capitalization PythonQtWrapper_QTextCharFormat::fontCapitalization(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontCapitalization()); -} - -QString PythonQtWrapper_QTextCharFormat::fontFamily(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontFamily()); -} - -bool PythonQtWrapper_QTextCharFormat::fontFixedPitch(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontFixedPitch()); -} - -bool PythonQtWrapper_QTextCharFormat::fontItalic(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontItalic()); -} - -bool PythonQtWrapper_QTextCharFormat::fontKerning(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontKerning()); -} - -qreal PythonQtWrapper_QTextCharFormat::fontLetterSpacing(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontLetterSpacing()); -} - -bool PythonQtWrapper_QTextCharFormat::fontOverline(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontOverline()); -} - -qreal PythonQtWrapper_QTextCharFormat::fontPointSize(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontPointSize()); -} - -bool PythonQtWrapper_QTextCharFormat::fontStrikeOut(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontStrikeOut()); -} - -QFont::StyleHint PythonQtWrapper_QTextCharFormat::fontStyleHint(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontStyleHint()); -} - -QFont::StyleStrategy PythonQtWrapper_QTextCharFormat::fontStyleStrategy(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontStyleStrategy()); -} - -bool PythonQtWrapper_QTextCharFormat::fontUnderline(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontUnderline()); -} - -int PythonQtWrapper_QTextCharFormat::fontWeight(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontWeight()); -} - -qreal PythonQtWrapper_QTextCharFormat::fontWordSpacing(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->fontWordSpacing()); -} - -bool PythonQtWrapper_QTextCharFormat::isAnchor(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->isAnchor()); -} - -bool PythonQtWrapper_QTextCharFormat::isValid(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -void PythonQtWrapper_QTextCharFormat::setAnchor(QTextCharFormat* theWrappedObject, bool anchor) -{ - ( theWrappedObject->setAnchor(anchor)); -} - -void PythonQtWrapper_QTextCharFormat::setAnchorHref(QTextCharFormat* theWrappedObject, const QString& value) -{ - ( theWrappedObject->setAnchorHref(value)); -} - -void PythonQtWrapper_QTextCharFormat::setAnchorNames(QTextCharFormat* theWrappedObject, const QStringList& names) -{ - ( theWrappedObject->setAnchorNames(names)); -} - -void PythonQtWrapper_QTextCharFormat::setFont(QTextCharFormat* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setFont(font)); -} - -void PythonQtWrapper_QTextCharFormat::setFontCapitalization(QTextCharFormat* theWrappedObject, QFont::Capitalization capitalization) -{ - ( theWrappedObject->setFontCapitalization(capitalization)); -} - -void PythonQtWrapper_QTextCharFormat::setFontFamily(QTextCharFormat* theWrappedObject, const QString& family) -{ - ( theWrappedObject->setFontFamily(family)); -} - -void PythonQtWrapper_QTextCharFormat::setFontFixedPitch(QTextCharFormat* theWrappedObject, bool fixedPitch) -{ - ( theWrappedObject->setFontFixedPitch(fixedPitch)); -} - -void PythonQtWrapper_QTextCharFormat::setFontItalic(QTextCharFormat* theWrappedObject, bool italic) -{ - ( theWrappedObject->setFontItalic(italic)); -} - -void PythonQtWrapper_QTextCharFormat::setFontKerning(QTextCharFormat* theWrappedObject, bool enable) -{ - ( theWrappedObject->setFontKerning(enable)); -} - -void PythonQtWrapper_QTextCharFormat::setFontLetterSpacing(QTextCharFormat* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setFontLetterSpacing(spacing)); -} - -void PythonQtWrapper_QTextCharFormat::setFontOverline(QTextCharFormat* theWrappedObject, bool overline) -{ - ( theWrappedObject->setFontOverline(overline)); -} - -void PythonQtWrapper_QTextCharFormat::setFontPointSize(QTextCharFormat* theWrappedObject, qreal size) -{ - ( theWrappedObject->setFontPointSize(size)); -} - -void PythonQtWrapper_QTextCharFormat::setFontStrikeOut(QTextCharFormat* theWrappedObject, bool strikeOut) -{ - ( theWrappedObject->setFontStrikeOut(strikeOut)); -} - -void PythonQtWrapper_QTextCharFormat::setFontStyleHint(QTextCharFormat* theWrappedObject, QFont::StyleHint hint, QFont::StyleStrategy strategy) -{ - ( theWrappedObject->setFontStyleHint(hint, strategy)); -} - -void PythonQtWrapper_QTextCharFormat::setFontStyleStrategy(QTextCharFormat* theWrappedObject, QFont::StyleStrategy strategy) -{ - ( theWrappedObject->setFontStyleStrategy(strategy)); -} - -void PythonQtWrapper_QTextCharFormat::setFontUnderline(QTextCharFormat* theWrappedObject, bool underline) -{ - ( theWrappedObject->setFontUnderline(underline)); -} - -void PythonQtWrapper_QTextCharFormat::setFontWeight(QTextCharFormat* theWrappedObject, int weight) -{ - ( theWrappedObject->setFontWeight(weight)); -} - -void PythonQtWrapper_QTextCharFormat::setFontWordSpacing(QTextCharFormat* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setFontWordSpacing(spacing)); -} - -void PythonQtWrapper_QTextCharFormat::setTableCellColumnSpan(QTextCharFormat* theWrappedObject, int tableCellColumnSpan) -{ - ( theWrappedObject->setTableCellColumnSpan(tableCellColumnSpan)); -} - -void PythonQtWrapper_QTextCharFormat::setTableCellRowSpan(QTextCharFormat* theWrappedObject, int tableCellRowSpan) -{ - ( theWrappedObject->setTableCellRowSpan(tableCellRowSpan)); -} - -void PythonQtWrapper_QTextCharFormat::setTextOutline(QTextCharFormat* theWrappedObject, const QPen& pen) -{ - ( theWrappedObject->setTextOutline(pen)); -} - -void PythonQtWrapper_QTextCharFormat::setToolTip(QTextCharFormat* theWrappedObject, const QString& tip) -{ - ( theWrappedObject->setToolTip(tip)); -} - -void PythonQtWrapper_QTextCharFormat::setUnderlineColor(QTextCharFormat* theWrappedObject, const QColor& color) -{ - ( theWrappedObject->setUnderlineColor(color)); -} - -void PythonQtWrapper_QTextCharFormat::setUnderlineStyle(QTextCharFormat* theWrappedObject, QTextCharFormat::UnderlineStyle style) -{ - ( theWrappedObject->setUnderlineStyle(style)); -} - -void PythonQtWrapper_QTextCharFormat::setVerticalAlignment(QTextCharFormat* theWrappedObject, QTextCharFormat::VerticalAlignment alignment) -{ - ( theWrappedObject->setVerticalAlignment(alignment)); -} - -int PythonQtWrapper_QTextCharFormat::tableCellColumnSpan(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->tableCellColumnSpan()); -} - -int PythonQtWrapper_QTextCharFormat::tableCellRowSpan(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->tableCellRowSpan()); -} - -QPen PythonQtWrapper_QTextCharFormat::textOutline(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->textOutline()); -} - -QString PythonQtWrapper_QTextCharFormat::toolTip(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->toolTip()); -} - -QColor PythonQtWrapper_QTextCharFormat::underlineColor(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->underlineColor()); -} - -QTextCharFormat::UnderlineStyle PythonQtWrapper_QTextCharFormat::underlineStyle(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->underlineStyle()); -} - -QTextCharFormat::VerticalAlignment PythonQtWrapper_QTextCharFormat::verticalAlignment(QTextCharFormat* theWrappedObject) const -{ - return ( theWrappedObject->verticalAlignment()); -} - - - -QList PythonQtShell_QTextCodecPlugin::aliases() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "aliases"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("aliases", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -void PythonQtShell_QTextCodecPlugin::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextCodecPlugin::childEvent(arg__1); -} -QTextCodec* PythonQtShell_QTextCodecPlugin::createForMib(int mib) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createForMib"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTextCodec*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QTextCodec* returnValue = 0; - void* args[2] = {NULL, (void*)&mib}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createForMib", methodInfo, result); - } else { - returnValue = *((QTextCodec**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QTextCodec* PythonQtShell_QTextCodecPlugin::createForName(const QByteArray& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createForName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTextCodec*" , "const QByteArray&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QTextCodec* returnValue = 0; - void* args[2] = {NULL, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createForName", methodInfo, result); - } else { - returnValue = *((QTextCodec**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_QTextCodecPlugin::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextCodecPlugin::customEvent(arg__1); -} -bool PythonQtShell_QTextCodecPlugin::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextCodecPlugin::event(arg__1); -} -bool PythonQtShell_QTextCodecPlugin::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextCodecPlugin::eventFilter(arg__1, arg__2); -} -QList PythonQtShell_QTextCodecPlugin::mibEnums() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mibEnums"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mibEnums", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QList PythonQtShell_QTextCodecPlugin::names() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "names"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("names", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -void PythonQtShell_QTextCodecPlugin::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextCodecPlugin::timerEvent(arg__1); -} -QTextCodecPlugin* PythonQtWrapper_QTextCodecPlugin::new_QTextCodecPlugin(QObject* parent) -{ -return new PythonQtShell_QTextCodecPlugin(parent); } - - - -QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor() -{ -return new QTextCursor(); } - -QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(QTextDocument* document) -{ -return new QTextCursor(document); } - -QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(QTextFrame* frame) -{ -return new QTextCursor(frame); } - -QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(const QTextBlock& block) -{ -return new QTextCursor(block); } - -QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(const QTextCursor& cursor) -{ -return new QTextCursor(cursor); } - -int PythonQtWrapper_QTextCursor::anchor(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->anchor()); -} - -bool PythonQtWrapper_QTextCursor::atBlockEnd(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->atBlockEnd()); -} - -bool PythonQtWrapper_QTextCursor::atBlockStart(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->atBlockStart()); -} - -bool PythonQtWrapper_QTextCursor::atEnd(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->atEnd()); -} - -bool PythonQtWrapper_QTextCursor::atStart(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->atStart()); -} - -void PythonQtWrapper_QTextCursor::beginEditBlock(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->beginEditBlock()); -} - -QTextBlock PythonQtWrapper_QTextCursor::block(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->block()); -} - -QTextCharFormat PythonQtWrapper_QTextCursor::blockCharFormat(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->blockCharFormat()); -} - -QTextBlockFormat PythonQtWrapper_QTextCursor::blockFormat(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->blockFormat()); -} - -int PythonQtWrapper_QTextCursor::blockNumber(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->blockNumber()); -} - -QTextCharFormat PythonQtWrapper_QTextCursor::charFormat(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->charFormat()); -} - -void PythonQtWrapper_QTextCursor::clearSelection(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->clearSelection()); -} - -int PythonQtWrapper_QTextCursor::columnNumber(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->columnNumber()); -} - -QTextList* PythonQtWrapper_QTextCursor::createList(QTextCursor* theWrappedObject, QTextListFormat::Style style) -{ - return ( theWrappedObject->createList(style)); -} - -QTextList* PythonQtWrapper_QTextCursor::createList(QTextCursor* theWrappedObject, const QTextListFormat& format) -{ - return ( theWrappedObject->createList(format)); -} - -QTextFrame* PythonQtWrapper_QTextCursor::currentFrame(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->currentFrame()); -} - -QTextList* PythonQtWrapper_QTextCursor::currentList(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->currentList()); -} - -QTextTable* PythonQtWrapper_QTextCursor::currentTable(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->currentTable()); -} - -void PythonQtWrapper_QTextCursor::deleteChar(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->deleteChar()); -} - -void PythonQtWrapper_QTextCursor::deletePreviousChar(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->deletePreviousChar()); -} - -QTextDocument* PythonQtWrapper_QTextCursor::document(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->document()); -} - -void PythonQtWrapper_QTextCursor::endEditBlock(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->endEditBlock()); -} - -bool PythonQtWrapper_QTextCursor::hasComplexSelection(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->hasComplexSelection()); -} - -bool PythonQtWrapper_QTextCursor::hasSelection(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->hasSelection()); -} - -void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->insertBlock()); -} - -void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format) -{ - ( theWrappedObject->insertBlock(format)); -} - -void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format, const QTextCharFormat& charFormat) -{ - ( theWrappedObject->insertBlock(format, charFormat)); -} - -void PythonQtWrapper_QTextCursor::insertFragment(QTextCursor* theWrappedObject, const QTextDocumentFragment& fragment) -{ - ( theWrappedObject->insertFragment(fragment)); -} - -QTextFrame* PythonQtWrapper_QTextCursor::insertFrame(QTextCursor* theWrappedObject, const QTextFrameFormat& format) -{ - return ( theWrappedObject->insertFrame(format)); -} - -void PythonQtWrapper_QTextCursor::insertHtml(QTextCursor* theWrappedObject, const QString& html) -{ - ( theWrappedObject->insertHtml(html)); -} - -void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QImage& image, const QString& name) -{ - ( theWrappedObject->insertImage(image, name)); -} - -void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QString& name) -{ - ( theWrappedObject->insertImage(name)); -} - -void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format) -{ - ( theWrappedObject->insertImage(format)); -} - -void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format, QTextFrameFormat::Position alignment) -{ - ( theWrappedObject->insertImage(format, alignment)); -} - -QTextList* PythonQtWrapper_QTextCursor::insertList(QTextCursor* theWrappedObject, QTextListFormat::Style style) -{ - return ( theWrappedObject->insertList(style)); -} - -QTextList* PythonQtWrapper_QTextCursor::insertList(QTextCursor* theWrappedObject, const QTextListFormat& format) -{ - return ( theWrappedObject->insertList(format)); -} - -QTextTable* PythonQtWrapper_QTextCursor::insertTable(QTextCursor* theWrappedObject, int rows, int cols) -{ - return ( theWrappedObject->insertTable(rows, cols)); -} - -QTextTable* PythonQtWrapper_QTextCursor::insertTable(QTextCursor* theWrappedObject, int rows, int cols, const QTextTableFormat& format) -{ - return ( theWrappedObject->insertTable(rows, cols, format)); -} - -void PythonQtWrapper_QTextCursor::insertText(QTextCursor* theWrappedObject, const QString& text) -{ - ( theWrappedObject->insertText(text)); -} - -void PythonQtWrapper_QTextCursor::insertText(QTextCursor* theWrappedObject, const QString& text, const QTextCharFormat& format) -{ - ( theWrappedObject->insertText(text, format)); -} - -bool PythonQtWrapper_QTextCursor::isCopyOf(QTextCursor* theWrappedObject, const QTextCursor& other) const -{ - return ( theWrappedObject->isCopyOf(other)); -} - -bool PythonQtWrapper_QTextCursor::isNull(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -void PythonQtWrapper_QTextCursor::joinPreviousEditBlock(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->joinPreviousEditBlock()); -} - -void PythonQtWrapper_QTextCursor::mergeBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier) -{ - ( theWrappedObject->mergeBlockCharFormat(modifier)); -} - -void PythonQtWrapper_QTextCursor::mergeBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& modifier) -{ - ( theWrappedObject->mergeBlockFormat(modifier)); -} - -void PythonQtWrapper_QTextCursor::mergeCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier) -{ - ( theWrappedObject->mergeCharFormat(modifier)); -} - -bool PythonQtWrapper_QTextCursor::movePosition(QTextCursor* theWrappedObject, QTextCursor::MoveOperation op, QTextCursor::MoveMode arg__2, int n) -{ - return ( theWrappedObject->movePosition(op, arg__2, n)); -} - -bool PythonQtWrapper_QTextCursor::__ne__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const -{ - return ( (*theWrappedObject)!= rhs); -} - -bool PythonQtWrapper_QTextCursor::__lt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const -{ - return ( (*theWrappedObject)< rhs); -} - -bool PythonQtWrapper_QTextCursor::__le__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const -{ - return ( (*theWrappedObject)<= rhs); -} - -bool PythonQtWrapper_QTextCursor::__eq__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const -{ - return ( (*theWrappedObject)== rhs); -} - -bool PythonQtWrapper_QTextCursor::__gt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const -{ - return ( (*theWrappedObject)> rhs); -} - -bool PythonQtWrapper_QTextCursor::__ge__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const -{ - return ( (*theWrappedObject)>= rhs); -} - -int PythonQtWrapper_QTextCursor::position(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->position()); -} - -void PythonQtWrapper_QTextCursor::removeSelectedText(QTextCursor* theWrappedObject) -{ - ( theWrappedObject->removeSelectedText()); -} - -void PythonQtWrapper_QTextCursor::select(QTextCursor* theWrappedObject, QTextCursor::SelectionType selection) -{ - ( theWrappedObject->select(selection)); -} - -void PythonQtWrapper_QTextCursor::selectedTableCells(QTextCursor* theWrappedObject, int* firstRow, int* numRows, int* firstColumn, int* numColumns) const -{ - ( theWrappedObject->selectedTableCells(firstRow, numRows, firstColumn, numColumns)); -} - -QString PythonQtWrapper_QTextCursor::selectedText(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->selectedText()); -} - -QTextDocumentFragment PythonQtWrapper_QTextCursor::selection(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->selection()); -} - -int PythonQtWrapper_QTextCursor::selectionEnd(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->selectionEnd()); -} - -int PythonQtWrapper_QTextCursor::selectionStart(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->selectionStart()); -} - -void PythonQtWrapper_QTextCursor::setBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format) -{ - ( theWrappedObject->setBlockCharFormat(format)); -} - -void PythonQtWrapper_QTextCursor::setBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& format) -{ - ( theWrappedObject->setBlockFormat(format)); -} - -void PythonQtWrapper_QTextCursor::setCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format) -{ - ( theWrappedObject->setCharFormat(format)); -} - -void PythonQtWrapper_QTextCursor::setPosition(QTextCursor* theWrappedObject, int pos, QTextCursor::MoveMode mode) -{ - ( theWrappedObject->setPosition(pos, mode)); -} - -void PythonQtWrapper_QTextCursor::setVisualNavigation(QTextCursor* theWrappedObject, bool b) -{ - ( theWrappedObject->setVisualNavigation(b)); -} - -bool PythonQtWrapper_QTextCursor::visualNavigation(QTextCursor* theWrappedObject) const -{ - return ( theWrappedObject->visualNavigation()); -} - - - -void PythonQtShell_QTextDocument::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextDocument::childEvent(arg__1); -} -void PythonQtShell_QTextDocument::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextDocument::clear(); -} -QTextObject* PythonQtShell_QTextDocument::createObject(const QTextFormat& f) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createObject"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTextObject*" , "const QTextFormat&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QTextObject* returnValue = 0; - void* args[2] = {NULL, (void*)&f}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createObject", methodInfo, result); - } else { - returnValue = *((QTextObject**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextDocument::createObject(f); -} -void PythonQtShell_QTextDocument::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextDocument::customEvent(arg__1); -} -bool PythonQtShell_QTextDocument::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextDocument::event(arg__1); -} -bool PythonQtShell_QTextDocument::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextDocument::eventFilter(arg__1, arg__2); -} -QVariant PythonQtShell_QTextDocument::loadResource(int type, const QUrl& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&type, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextDocument::loadResource(type, name); -} -void PythonQtShell_QTextDocument::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextDocument::timerEvent(arg__1); -} -QTextDocument* PythonQtWrapper_QTextDocument::new_QTextDocument(QObject* parent) -{ -return new PythonQtShell_QTextDocument(parent); } - -QTextDocument* PythonQtWrapper_QTextDocument::new_QTextDocument(const QString& text, QObject* parent) -{ -return new PythonQtShell_QTextDocument(text, parent); } - -void PythonQtWrapper_QTextDocument::addResource(QTextDocument* theWrappedObject, int type, const QUrl& name, const QVariant& resource) -{ - ( theWrappedObject->addResource(type, name, resource)); -} - -void PythonQtWrapper_QTextDocument::adjustSize(QTextDocument* theWrappedObject) -{ - ( theWrappedObject->adjustSize()); -} - -QVector PythonQtWrapper_QTextDocument::allFormats(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->allFormats()); -} - -int PythonQtWrapper_QTextDocument::availableRedoSteps(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->availableRedoSteps()); -} - -int PythonQtWrapper_QTextDocument::availableUndoSteps(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->availableUndoSteps()); -} - -QTextBlock PythonQtWrapper_QTextDocument::begin(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->begin()); -} - -int PythonQtWrapper_QTextDocument::blockCount(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->blockCount()); -} - -QChar PythonQtWrapper_QTextDocument::characterAt(QTextDocument* theWrappedObject, int pos) const -{ - return ( theWrappedObject->characterAt(pos)); -} - -int PythonQtWrapper_QTextDocument::characterCount(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->characterCount()); -} - -void PythonQtWrapper_QTextDocument::clear(QTextDocument* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_clear()); -} - -QTextDocument* PythonQtWrapper_QTextDocument::clone(QTextDocument* theWrappedObject, QObject* parent) const -{ - return ( theWrappedObject->clone(parent)); -} - -QTextObject* PythonQtWrapper_QTextDocument::createObject(QTextDocument* theWrappedObject, const QTextFormat& f) -{ - return ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_createObject(f)); -} - -QFont PythonQtWrapper_QTextDocument::defaultFont(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->defaultFont()); -} - -QString PythonQtWrapper_QTextDocument::defaultStyleSheet(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->defaultStyleSheet()); -} - -QTextOption PythonQtWrapper_QTextDocument::defaultTextOption(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->defaultTextOption()); -} - -QAbstractTextDocumentLayout* PythonQtWrapper_QTextDocument::documentLayout(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->documentLayout()); -} - -qreal PythonQtWrapper_QTextDocument::documentMargin(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->documentMargin()); -} - -void PythonQtWrapper_QTextDocument::drawContents(QTextDocument* theWrappedObject, QPainter* painter, const QRectF& rect) -{ - ( theWrappedObject->drawContents(painter, rect)); -} - -QTextBlock PythonQtWrapper_QTextDocument::end(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->end()); -} - -QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QRegExp& expr, const QTextCursor& from, QTextDocument::FindFlags options) const -{ - return ( theWrappedObject->find(expr, from, options)); -} - -QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QRegExp& expr, int from, QTextDocument::FindFlags options) const -{ - return ( theWrappedObject->find(expr, from, options)); -} - -QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QString& subString, const QTextCursor& from, QTextDocument::FindFlags options) const -{ - return ( theWrappedObject->find(subString, from, options)); -} - -QTextCursor PythonQtWrapper_QTextDocument::find(QTextDocument* theWrappedObject, const QString& subString, int from, QTextDocument::FindFlags options) const -{ - return ( theWrappedObject->find(subString, from, options)); -} - -QTextBlock PythonQtWrapper_QTextDocument::findBlock(QTextDocument* theWrappedObject, int pos) const -{ - return ( theWrappedObject->findBlock(pos)); -} - -QTextBlock PythonQtWrapper_QTextDocument::findBlockByLineNumber(QTextDocument* theWrappedObject, int blockNumber) const -{ - return ( theWrappedObject->findBlockByLineNumber(blockNumber)); -} - -QTextBlock PythonQtWrapper_QTextDocument::findBlockByNumber(QTextDocument* theWrappedObject, int blockNumber) const -{ - return ( theWrappedObject->findBlockByNumber(blockNumber)); -} - -QTextBlock PythonQtWrapper_QTextDocument::firstBlock(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->firstBlock()); -} - -QTextFrame* PythonQtWrapper_QTextDocument::frameAt(QTextDocument* theWrappedObject, int pos) const -{ - return ( theWrappedObject->frameAt(pos)); -} - -qreal PythonQtWrapper_QTextDocument::idealWidth(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->idealWidth()); -} - -qreal PythonQtWrapper_QTextDocument::indentWidth(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->indentWidth()); -} - -bool PythonQtWrapper_QTextDocument::isEmpty(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -bool PythonQtWrapper_QTextDocument::isModified(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->isModified()); -} - -bool PythonQtWrapper_QTextDocument::isRedoAvailable(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->isRedoAvailable()); -} - -bool PythonQtWrapper_QTextDocument::isUndoAvailable(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->isUndoAvailable()); -} - -bool PythonQtWrapper_QTextDocument::isUndoRedoEnabled(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->isUndoRedoEnabled()); -} - -QTextBlock PythonQtWrapper_QTextDocument::lastBlock(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->lastBlock()); -} - -int PythonQtWrapper_QTextDocument::lineCount(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->lineCount()); -} - -QVariant PythonQtWrapper_QTextDocument::loadResource(QTextDocument* theWrappedObject, int type, const QUrl& name) -{ - return ( ((PythonQtPublicPromoter_QTextDocument*)theWrappedObject)->promoted_loadResource(type, name)); -} - -void PythonQtWrapper_QTextDocument::markContentsDirty(QTextDocument* theWrappedObject, int from, int length) -{ - ( theWrappedObject->markContentsDirty(from, length)); -} - -int PythonQtWrapper_QTextDocument::maximumBlockCount(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->maximumBlockCount()); -} - -QString PythonQtWrapper_QTextDocument::metaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info) const -{ - return ( theWrappedObject->metaInformation(info)); -} - -QTextObject* PythonQtWrapper_QTextDocument::object(QTextDocument* theWrappedObject, int objectIndex) const -{ - return ( theWrappedObject->object(objectIndex)); -} - -QTextObject* PythonQtWrapper_QTextDocument::objectForFormat(QTextDocument* theWrappedObject, const QTextFormat& arg__1) const -{ - return ( theWrappedObject->objectForFormat(arg__1)); -} - -int PythonQtWrapper_QTextDocument::pageCount(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->pageCount()); -} - -QSizeF PythonQtWrapper_QTextDocument::pageSize(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->pageSize()); -} - -void PythonQtWrapper_QTextDocument::print(QTextDocument* theWrappedObject, QPrinter* printer) const -{ - ( theWrappedObject->print(printer)); -} - -void PythonQtWrapper_QTextDocument::redo(QTextDocument* theWrappedObject, QTextCursor* cursor) -{ - ( theWrappedObject->redo(cursor)); -} - -QVariant PythonQtWrapper_QTextDocument::resource(QTextDocument* theWrappedObject, int type, const QUrl& name) const -{ - return ( theWrappedObject->resource(type, name)); -} - -int PythonQtWrapper_QTextDocument::revision(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->revision()); -} - -QTextFrame* PythonQtWrapper_QTextDocument::rootFrame(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->rootFrame()); -} - -void PythonQtWrapper_QTextDocument::setDefaultFont(QTextDocument* theWrappedObject, const QFont& font) -{ - ( theWrappedObject->setDefaultFont(font)); -} - -void PythonQtWrapper_QTextDocument::setDefaultStyleSheet(QTextDocument* theWrappedObject, const QString& sheet) -{ - ( theWrappedObject->setDefaultStyleSheet(sheet)); -} - -void PythonQtWrapper_QTextDocument::setDefaultTextOption(QTextDocument* theWrappedObject, const QTextOption& option) -{ - ( theWrappedObject->setDefaultTextOption(option)); -} - -void PythonQtWrapper_QTextDocument::setDocumentLayout(QTextDocument* theWrappedObject, QAbstractTextDocumentLayout* layout) -{ - ( theWrappedObject->setDocumentLayout(layout)); -} - -void PythonQtWrapper_QTextDocument::setDocumentMargin(QTextDocument* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setDocumentMargin(margin)); -} - -void PythonQtWrapper_QTextDocument::setHtml(QTextDocument* theWrappedObject, const QString& html) -{ - ( theWrappedObject->setHtml(html)); -} - -void PythonQtWrapper_QTextDocument::setIndentWidth(QTextDocument* theWrappedObject, qreal width) -{ - ( theWrappedObject->setIndentWidth(width)); -} - -void PythonQtWrapper_QTextDocument::setMaximumBlockCount(QTextDocument* theWrappedObject, int maximum) -{ - ( theWrappedObject->setMaximumBlockCount(maximum)); -} - -void PythonQtWrapper_QTextDocument::setMetaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info, const QString& arg__2) -{ - ( theWrappedObject->setMetaInformation(info, arg__2)); -} - -void PythonQtWrapper_QTextDocument::setPageSize(QTextDocument* theWrappedObject, const QSizeF& size) -{ - ( theWrappedObject->setPageSize(size)); -} - -void PythonQtWrapper_QTextDocument::setPlainText(QTextDocument* theWrappedObject, const QString& text) -{ - ( theWrappedObject->setPlainText(text)); -} - -void PythonQtWrapper_QTextDocument::setTextWidth(QTextDocument* theWrappedObject, qreal width) -{ - ( theWrappedObject->setTextWidth(width)); -} - -void PythonQtWrapper_QTextDocument::setUndoRedoEnabled(QTextDocument* theWrappedObject, bool enable) -{ - ( theWrappedObject->setUndoRedoEnabled(enable)); -} - -void PythonQtWrapper_QTextDocument::setUseDesignMetrics(QTextDocument* theWrappedObject, bool b) -{ - ( theWrappedObject->setUseDesignMetrics(b)); -} - -QSizeF PythonQtWrapper_QTextDocument::size(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -qreal PythonQtWrapper_QTextDocument::textWidth(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->textWidth()); -} - -QString PythonQtWrapper_QTextDocument::toHtml(QTextDocument* theWrappedObject, const QByteArray& encoding) const -{ - return ( theWrappedObject->toHtml(encoding)); -} - -QString PythonQtWrapper_QTextDocument::toPlainText(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->toPlainText()); -} - -void PythonQtWrapper_QTextDocument::undo(QTextDocument* theWrappedObject, QTextCursor* cursor) -{ - ( theWrappedObject->undo(cursor)); -} - -bool PythonQtWrapper_QTextDocument::useDesignMetrics(QTextDocument* theWrappedObject) const -{ - return ( theWrappedObject->useDesignMetrics()); -} - - - -QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment() -{ -return new QTextDocumentFragment(); } - -QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment(const QTextCursor& range) -{ -return new QTextDocumentFragment(range); } - -QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment(const QTextDocument* document) -{ -return new QTextDocumentFragment(document); } - -QTextDocumentFragment* PythonQtWrapper_QTextDocumentFragment::new_QTextDocumentFragment(const QTextDocumentFragment& rhs) -{ -return new QTextDocumentFragment(rhs); } - -QTextDocumentFragment PythonQtWrapper_QTextDocumentFragment::static_QTextDocumentFragment_fromHtml(const QString& html) -{ - return (QTextDocumentFragment::fromHtml(html)); -} - -QTextDocumentFragment PythonQtWrapper_QTextDocumentFragment::static_QTextDocumentFragment_fromHtml(const QString& html, const QTextDocument* resourceProvider) -{ - return (QTextDocumentFragment::fromHtml(html, resourceProvider)); -} - -QTextDocumentFragment PythonQtWrapper_QTextDocumentFragment::static_QTextDocumentFragment_fromPlainText(const QString& plainText) -{ - return (QTextDocumentFragment::fromPlainText(plainText)); -} - -bool PythonQtWrapper_QTextDocumentFragment::isEmpty(QTextDocumentFragment* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -QString PythonQtWrapper_QTextDocumentFragment::toHtml(QTextDocumentFragment* theWrappedObject) const -{ - return ( theWrappedObject->toHtml()); -} - -QString PythonQtWrapper_QTextDocumentFragment::toHtml(QTextDocumentFragment* theWrappedObject, const QByteArray& encoding) const -{ - return ( theWrappedObject->toHtml(encoding)); -} - -QString PythonQtWrapper_QTextDocumentFragment::toPlainText(QTextDocumentFragment* theWrappedObject) const -{ - return ( theWrappedObject->toPlainText()); -} - - - -QTextDocumentWriter* PythonQtWrapper_QTextDocumentWriter::new_QTextDocumentWriter() -{ -return new QTextDocumentWriter(); } - -QTextDocumentWriter* PythonQtWrapper_QTextDocumentWriter::new_QTextDocumentWriter(QIODevice* device, const QByteArray& format) -{ -return new QTextDocumentWriter(device, format); } - -QTextDocumentWriter* PythonQtWrapper_QTextDocumentWriter::new_QTextDocumentWriter(const QString& fileName, const QByteArray& format) -{ -return new QTextDocumentWriter(fileName, format); } - -QTextCodec* PythonQtWrapper_QTextDocumentWriter::codec(QTextDocumentWriter* theWrappedObject) const -{ - return ( theWrappedObject->codec()); -} - -QIODevice* PythonQtWrapper_QTextDocumentWriter::device(QTextDocumentWriter* theWrappedObject) const -{ - return ( theWrappedObject->device()); -} - -QString PythonQtWrapper_QTextDocumentWriter::fileName(QTextDocumentWriter* theWrappedObject) const -{ - return ( theWrappedObject->fileName()); -} - -QByteArray PythonQtWrapper_QTextDocumentWriter::format(QTextDocumentWriter* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -void PythonQtWrapper_QTextDocumentWriter::setCodec(QTextDocumentWriter* theWrappedObject, QTextCodec* codec) -{ - ( theWrappedObject->setCodec(codec)); -} - -void PythonQtWrapper_QTextDocumentWriter::setDevice(QTextDocumentWriter* theWrappedObject, QIODevice* device) -{ - ( theWrappedObject->setDevice(device)); -} - -void PythonQtWrapper_QTextDocumentWriter::setFileName(QTextDocumentWriter* theWrappedObject, const QString& fileName) -{ - ( theWrappedObject->setFileName(fileName)); -} - -void PythonQtWrapper_QTextDocumentWriter::setFormat(QTextDocumentWriter* theWrappedObject, const QByteArray& format) -{ - ( theWrappedObject->setFormat(format)); -} - -QList PythonQtWrapper_QTextDocumentWriter::static_QTextDocumentWriter_supportedDocumentFormats() -{ - return (QTextDocumentWriter::supportedDocumentFormats()); -} - -bool PythonQtWrapper_QTextDocumentWriter::write(QTextDocumentWriter* theWrappedObject, const QTextDocument* document) -{ - return ( theWrappedObject->write(document)); -} - -bool PythonQtWrapper_QTextDocumentWriter::write(QTextDocumentWriter* theWrappedObject, const QTextDocumentFragment& fragment) -{ - return ( theWrappedObject->write(fragment)); -} - - - -void PythonQtShell_QTextEdit::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::actionEvent(arg__1); -} -bool PythonQtShell_QTextEdit::canInsertFromMimeData(const QMimeData* source) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canInsertFromMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canInsertFromMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::canInsertFromMimeData(source); -} -void PythonQtShell_QTextEdit::changeEvent(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::changeEvent(e); -} -void PythonQtShell_QTextEdit::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::childEvent(arg__1); -} -void PythonQtShell_QTextEdit::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::closeEvent(arg__1); -} -void PythonQtShell_QTextEdit::contextMenuEvent(QContextMenuEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::contextMenuEvent(e); -} -QMimeData* PythonQtShell_QTextEdit::createMimeDataFromSelection() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createMimeDataFromSelection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QMimeData* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createMimeDataFromSelection", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::createMimeDataFromSelection(); -} -void PythonQtShell_QTextEdit::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::customEvent(arg__1); -} -int PythonQtShell_QTextEdit::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::devType(); -} -void PythonQtShell_QTextEdit::dragEnterEvent(QDragEnterEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::dragEnterEvent(e); -} -void PythonQtShell_QTextEdit::dragLeaveEvent(QDragLeaveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::dragLeaveEvent(e); -} -void PythonQtShell_QTextEdit::dragMoveEvent(QDragMoveEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::dragMoveEvent(e); -} -void PythonQtShell_QTextEdit::dropEvent(QDropEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::dropEvent(e); -} -void PythonQtShell_QTextEdit::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::enterEvent(arg__1); -} -bool PythonQtShell_QTextEdit::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::event(e); -} -bool PythonQtShell_QTextEdit::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTextEdit::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::focusInEvent(e); -} -bool PythonQtShell_QTextEdit::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::focusNextPrevChild(next); -} -void PythonQtShell_QTextEdit::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::focusOutEvent(e); -} -int PythonQtShell_QTextEdit::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::heightForWidth(arg__1); -} -void PythonQtShell_QTextEdit::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::hideEvent(arg__1); -} -void PythonQtShell_QTextEdit::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QTextEdit::inputMethodQuery(Qt::InputMethodQuery property) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&property}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::inputMethodQuery(property); -} -void PythonQtShell_QTextEdit::insertFromMimeData(const QMimeData* source) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertFromMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::insertFromMimeData(source); -} -void PythonQtShell_QTextEdit::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::keyPressEvent(e); -} -void PythonQtShell_QTextEdit::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::keyReleaseEvent(e); -} -void PythonQtShell_QTextEdit::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::languageChange(); -} -void PythonQtShell_QTextEdit::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::leaveEvent(arg__1); -} -QVariant PythonQtShell_QTextEdit::loadResource(int type, const QUrl& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "loadResource"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&type, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("loadResource", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::loadResource(type, name); -} -int PythonQtShell_QTextEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::metric(arg__1); -} -void PythonQtShell_QTextEdit::mouseDoubleClickEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::mouseDoubleClickEvent(e); -} -void PythonQtShell_QTextEdit::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::mouseMoveEvent(e); -} -void PythonQtShell_QTextEdit::mousePressEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::mousePressEvent(e); -} -void PythonQtShell_QTextEdit::mouseReleaseEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::mouseReleaseEvent(e); -} -void PythonQtShell_QTextEdit::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTextEdit::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::paintEngine(); -} -void PythonQtShell_QTextEdit::paintEvent(QPaintEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::paintEvent(e); -} -void PythonQtShell_QTextEdit::resizeEvent(QResizeEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::resizeEvent(e); -} -void PythonQtShell_QTextEdit::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTextEdit::scrollContentsBy(dx, dy); -} -void PythonQtShell_QTextEdit::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::showEvent(arg__1); -} -void PythonQtShell_QTextEdit::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::tabletEvent(arg__1); -} -void PythonQtShell_QTextEdit::timerEvent(QTimerEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::timerEvent(e); -} -bool PythonQtShell_QTextEdit::viewportEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("viewportEvent", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextEdit::viewportEvent(arg__1); -} -void PythonQtShell_QTextEdit::wheelEvent(QWheelEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextEdit::wheelEvent(e); -} -QTextEdit* PythonQtWrapper_QTextEdit::new_QTextEdit(QWidget* parent) -{ -return new PythonQtShell_QTextEdit(parent); } - -QTextEdit* PythonQtWrapper_QTextEdit::new_QTextEdit(const QString& text, QWidget* parent) -{ -return new PythonQtShell_QTextEdit(text, parent); } - -bool PythonQtWrapper_QTextEdit::acceptRichText(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->acceptRichText()); -} - -Qt::Alignment PythonQtWrapper_QTextEdit::alignment(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -QString PythonQtWrapper_QTextEdit::anchorAt(QTextEdit* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->anchorAt(pos)); -} - -QTextEdit::AutoFormatting PythonQtWrapper_QTextEdit::autoFormatting(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->autoFormatting()); -} - -bool PythonQtWrapper_QTextEdit::canInsertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source) const -{ - return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_canInsertFromMimeData(source)); -} - -bool PythonQtWrapper_QTextEdit::canPaste(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->canPaste()); -} - -void PythonQtWrapper_QTextEdit::changeEvent(QTextEdit* theWrappedObject, QEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_changeEvent(e)); -} - -void PythonQtWrapper_QTextEdit::contextMenuEvent(QTextEdit* theWrappedObject, QContextMenuEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_contextMenuEvent(e)); -} - -QMimeData* PythonQtWrapper_QTextEdit::createMimeDataFromSelection(QTextEdit* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_createMimeDataFromSelection()); -} - -QMenu* PythonQtWrapper_QTextEdit::createStandardContextMenu(QTextEdit* theWrappedObject) -{ - return ( theWrappedObject->createStandardContextMenu()); -} - -QMenu* PythonQtWrapper_QTextEdit::createStandardContextMenu(QTextEdit* theWrappedObject, const QPoint& position) -{ - return ( theWrappedObject->createStandardContextMenu(position)); -} - -QTextCharFormat PythonQtWrapper_QTextEdit::currentCharFormat(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->currentCharFormat()); -} - -QFont PythonQtWrapper_QTextEdit::currentFont(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->currentFont()); -} - -QTextCursor PythonQtWrapper_QTextEdit::cursorForPosition(QTextEdit* theWrappedObject, const QPoint& pos) const -{ - return ( theWrappedObject->cursorForPosition(pos)); -} - -QRect PythonQtWrapper_QTextEdit::cursorRect(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->cursorRect()); -} - -QRect PythonQtWrapper_QTextEdit::cursorRect(QTextEdit* theWrappedObject, const QTextCursor& cursor) const -{ - return ( theWrappedObject->cursorRect(cursor)); -} - -int PythonQtWrapper_QTextEdit::cursorWidth(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->cursorWidth()); -} - -QTextDocument* PythonQtWrapper_QTextEdit::document(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->document()); -} - -QString PythonQtWrapper_QTextEdit::documentTitle(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->documentTitle()); -} - -void PythonQtWrapper_QTextEdit::dragEnterEvent(QTextEdit* theWrappedObject, QDragEnterEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dragEnterEvent(e)); -} - -void PythonQtWrapper_QTextEdit::dragLeaveEvent(QTextEdit* theWrappedObject, QDragLeaveEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dragLeaveEvent(e)); -} - -void PythonQtWrapper_QTextEdit::dragMoveEvent(QTextEdit* theWrappedObject, QDragMoveEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dragMoveEvent(e)); -} - -void PythonQtWrapper_QTextEdit::dropEvent(QTextEdit* theWrappedObject, QDropEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_dropEvent(e)); -} - -void PythonQtWrapper_QTextEdit::ensureCursorVisible(QTextEdit* theWrappedObject) -{ - ( theWrappedObject->ensureCursorVisible()); -} - -bool PythonQtWrapper_QTextEdit::event(QTextEdit* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_event(e)); -} - -QList PythonQtWrapper_QTextEdit::extraSelections(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->extraSelections()); -} - -bool PythonQtWrapper_QTextEdit::find(QTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options) -{ - return ( theWrappedObject->find(exp, options)); -} - -void PythonQtWrapper_QTextEdit::focusInEvent(QTextEdit* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_focusInEvent(e)); -} - -bool PythonQtWrapper_QTextEdit::focusNextPrevChild(QTextEdit* theWrappedObject, bool next) -{ - return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_focusNextPrevChild(next)); -} - -void PythonQtWrapper_QTextEdit::focusOutEvent(QTextEdit* theWrappedObject, QFocusEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_focusOutEvent(e)); -} - -QString PythonQtWrapper_QTextEdit::fontFamily(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->fontFamily()); -} - -bool PythonQtWrapper_QTextEdit::fontItalic(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->fontItalic()); -} - -qreal PythonQtWrapper_QTextEdit::fontPointSize(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->fontPointSize()); -} - -bool PythonQtWrapper_QTextEdit::fontUnderline(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->fontUnderline()); -} - -int PythonQtWrapper_QTextEdit::fontWeight(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->fontWeight()); -} - -void PythonQtWrapper_QTextEdit::inputMethodEvent(QTextEdit* theWrappedObject, QInputMethodEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_inputMethodEvent(arg__1)); -} - -QVariant PythonQtWrapper_QTextEdit::inputMethodQuery(QTextEdit* theWrappedObject, Qt::InputMethodQuery property) const -{ - return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_inputMethodQuery(property)); -} - -void PythonQtWrapper_QTextEdit::insertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_insertFromMimeData(source)); -} - -bool PythonQtWrapper_QTextEdit::isReadOnly(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->isReadOnly()); -} - -bool PythonQtWrapper_QTextEdit::isUndoRedoEnabled(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->isUndoRedoEnabled()); -} - -void PythonQtWrapper_QTextEdit::keyPressEvent(QTextEdit* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_keyPressEvent(e)); -} - -void PythonQtWrapper_QTextEdit::keyReleaseEvent(QTextEdit* theWrappedObject, QKeyEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_keyReleaseEvent(e)); -} - -int PythonQtWrapper_QTextEdit::lineWrapColumnOrWidth(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->lineWrapColumnOrWidth()); -} - -QTextEdit::LineWrapMode PythonQtWrapper_QTextEdit::lineWrapMode(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->lineWrapMode()); -} - -QVariant PythonQtWrapper_QTextEdit::loadResource(QTextEdit* theWrappedObject, int type, const QUrl& name) -{ - return ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_loadResource(type, name)); -} - -void PythonQtWrapper_QTextEdit::mergeCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& modifier) -{ - ( theWrappedObject->mergeCurrentCharFormat(modifier)); -} - -void PythonQtWrapper_QTextEdit::mouseDoubleClickEvent(QTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mouseDoubleClickEvent(e)); -} - -void PythonQtWrapper_QTextEdit::mouseMoveEvent(QTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mouseMoveEvent(e)); -} - -void PythonQtWrapper_QTextEdit::mousePressEvent(QTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mousePressEvent(e)); -} - -void PythonQtWrapper_QTextEdit::mouseReleaseEvent(QTextEdit* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_mouseReleaseEvent(e)); -} - -void PythonQtWrapper_QTextEdit::moveCursor(QTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode) -{ - ( theWrappedObject->moveCursor(operation, mode)); -} - -bool PythonQtWrapper_QTextEdit::overwriteMode(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->overwriteMode()); -} - -void PythonQtWrapper_QTextEdit::paintEvent(QTextEdit* theWrappedObject, QPaintEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_paintEvent(e)); -} - -void PythonQtWrapper_QTextEdit::print(QTextEdit* theWrappedObject, QPrinter* printer) const -{ - ( theWrappedObject->print(printer)); -} - -void PythonQtWrapper_QTextEdit::resizeEvent(QTextEdit* theWrappedObject, QResizeEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_resizeEvent(e)); -} - -void PythonQtWrapper_QTextEdit::scrollContentsBy(QTextEdit* theWrappedObject, int dx, int dy) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_scrollContentsBy(dx, dy)); -} - -void PythonQtWrapper_QTextEdit::setAcceptRichText(QTextEdit* theWrappedObject, bool accept) -{ - ( theWrappedObject->setAcceptRichText(accept)); -} - -void PythonQtWrapper_QTextEdit::setAutoFormatting(QTextEdit* theWrappedObject, QTextEdit::AutoFormatting features) -{ - ( theWrappedObject->setAutoFormatting(features)); -} - -void PythonQtWrapper_QTextEdit::setCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& format) -{ - ( theWrappedObject->setCurrentCharFormat(format)); -} - -void PythonQtWrapper_QTextEdit::setCursorWidth(QTextEdit* theWrappedObject, int width) -{ - ( theWrappedObject->setCursorWidth(width)); -} - -void PythonQtWrapper_QTextEdit::setDocument(QTextEdit* theWrappedObject, QTextDocument* document) -{ - ( theWrappedObject->setDocument(document)); -} - -void PythonQtWrapper_QTextEdit::setDocumentTitle(QTextEdit* theWrappedObject, const QString& title) -{ - ( theWrappedObject->setDocumentTitle(title)); -} - -void PythonQtWrapper_QTextEdit::setExtraSelections(QTextEdit* theWrappedObject, const QList& selections) -{ - ( theWrappedObject->setExtraSelections(selections)); -} - -void PythonQtWrapper_QTextEdit::setLineWrapColumnOrWidth(QTextEdit* theWrappedObject, int w) -{ - ( theWrappedObject->setLineWrapColumnOrWidth(w)); -} - -void PythonQtWrapper_QTextEdit::setLineWrapMode(QTextEdit* theWrappedObject, QTextEdit::LineWrapMode mode) -{ - ( theWrappedObject->setLineWrapMode(mode)); -} - -void PythonQtWrapper_QTextEdit::setOverwriteMode(QTextEdit* theWrappedObject, bool overwrite) -{ - ( theWrappedObject->setOverwriteMode(overwrite)); -} - -void PythonQtWrapper_QTextEdit::setReadOnly(QTextEdit* theWrappedObject, bool ro) -{ - ( theWrappedObject->setReadOnly(ro)); -} - -void PythonQtWrapper_QTextEdit::setTabChangesFocus(QTextEdit* theWrappedObject, bool b) -{ - ( theWrappedObject->setTabChangesFocus(b)); -} - -void PythonQtWrapper_QTextEdit::setTabStopWidth(QTextEdit* theWrappedObject, int width) -{ - ( theWrappedObject->setTabStopWidth(width)); -} - -void PythonQtWrapper_QTextEdit::setTextCursor(QTextEdit* theWrappedObject, const QTextCursor& cursor) -{ - ( theWrappedObject->setTextCursor(cursor)); -} - -void PythonQtWrapper_QTextEdit::setTextInteractionFlags(QTextEdit* theWrappedObject, Qt::TextInteractionFlags flags) -{ - ( theWrappedObject->setTextInteractionFlags(flags)); -} - -void PythonQtWrapper_QTextEdit::setUndoRedoEnabled(QTextEdit* theWrappedObject, bool enable) -{ - ( theWrappedObject->setUndoRedoEnabled(enable)); -} - -void PythonQtWrapper_QTextEdit::setWordWrapMode(QTextEdit* theWrappedObject, QTextOption::WrapMode policy) -{ - ( theWrappedObject->setWordWrapMode(policy)); -} - -void PythonQtWrapper_QTextEdit::showEvent(QTextEdit* theWrappedObject, QShowEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_showEvent(arg__1)); -} - -bool PythonQtWrapper_QTextEdit::tabChangesFocus(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->tabChangesFocus()); -} - -int PythonQtWrapper_QTextEdit::tabStopWidth(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->tabStopWidth()); -} - -QColor PythonQtWrapper_QTextEdit::textBackgroundColor(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->textBackgroundColor()); -} - -QColor PythonQtWrapper_QTextEdit::textColor(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->textColor()); -} - -QTextCursor PythonQtWrapper_QTextEdit::textCursor(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->textCursor()); -} - -Qt::TextInteractionFlags PythonQtWrapper_QTextEdit::textInteractionFlags(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->textInteractionFlags()); -} - -void PythonQtWrapper_QTextEdit::timerEvent(QTextEdit* theWrappedObject, QTimerEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_timerEvent(e)); -} - -QString PythonQtWrapper_QTextEdit::toHtml(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->toHtml()); -} - -QString PythonQtWrapper_QTextEdit::toPlainText(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->toPlainText()); -} - -void PythonQtWrapper_QTextEdit::wheelEvent(QTextEdit* theWrappedObject, QWheelEvent* e) -{ - ( ((PythonQtPublicPromoter_QTextEdit*)theWrappedObject)->promoted_wheelEvent(e)); -} - -QTextOption::WrapMode PythonQtWrapper_QTextEdit::wordWrapMode(QTextEdit* theWrappedObject) const -{ - return ( theWrappedObject->wordWrapMode()); -} - - - -QTextFragment* PythonQtWrapper_QTextFragment::new_QTextFragment() -{ -return new QTextFragment(); } - -QTextFragment* PythonQtWrapper_QTextFragment::new_QTextFragment(const QTextFragment& o) -{ -return new QTextFragment(o); } - -QTextCharFormat PythonQtWrapper_QTextFragment::charFormat(QTextFragment* theWrappedObject) const -{ - return ( theWrappedObject->charFormat()); -} - -int PythonQtWrapper_QTextFragment::charFormatIndex(QTextFragment* theWrappedObject) const -{ - return ( theWrappedObject->charFormatIndex()); -} - -bool PythonQtWrapper_QTextFragment::contains(QTextFragment* theWrappedObject, int position) const -{ - return ( theWrappedObject->contains(position)); -} - -bool PythonQtWrapper_QTextFragment::isValid(QTextFragment* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -int PythonQtWrapper_QTextFragment::length(QTextFragment* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -bool PythonQtWrapper_QTextFragment::__ne__(QTextFragment* theWrappedObject, const QTextFragment& o) const -{ - return ( (*theWrappedObject)!= o); -} - -bool PythonQtWrapper_QTextFragment::__lt__(QTextFragment* theWrappedObject, const QTextFragment& o) const -{ - return ( (*theWrappedObject)< o); -} - -bool PythonQtWrapper_QTextFragment::__eq__(QTextFragment* theWrappedObject, const QTextFragment& o) const -{ - return ( (*theWrappedObject)== o); -} - -int PythonQtWrapper_QTextFragment::position(QTextFragment* theWrappedObject) const -{ - return ( theWrappedObject->position()); -} - -QString PythonQtWrapper_QTextFragment::text(QTextFragment* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - - - -void PythonQtShell_QTextFrame::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextFrame::childEvent(arg__1); -} -void PythonQtShell_QTextFrame::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextFrame::customEvent(arg__1); -} -bool PythonQtShell_QTextFrame::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextFrame::event(arg__1); -} -bool PythonQtShell_QTextFrame::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextFrame::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTextFrame::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextFrame::timerEvent(arg__1); -} -QTextFrame* PythonQtWrapper_QTextFrame::new_QTextFrame(QTextDocument* doc) -{ -return new PythonQtShell_QTextFrame(doc); } - -QTextFrame::iterator PythonQtWrapper_QTextFrame::begin(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->begin()); -} - -QList PythonQtWrapper_QTextFrame::childFrames(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->childFrames()); -} - -QTextFrame::iterator PythonQtWrapper_QTextFrame::end(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->end()); -} - -QTextCursor PythonQtWrapper_QTextFrame::firstCursorPosition(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->firstCursorPosition()); -} - -int PythonQtWrapper_QTextFrame::firstPosition(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->firstPosition()); -} - -QTextFrameFormat PythonQtWrapper_QTextFrame::frameFormat(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->frameFormat()); -} - -QTextCursor PythonQtWrapper_QTextFrame::lastCursorPosition(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->lastCursorPosition()); -} - -int PythonQtWrapper_QTextFrame::lastPosition(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->lastPosition()); -} - -QTextFrame* PythonQtWrapper_QTextFrame::parentFrame(QTextFrame* theWrappedObject) const -{ - return ( theWrappedObject->parentFrame()); -} - -void PythonQtWrapper_QTextFrame::setFrameFormat(QTextFrame* theWrappedObject, const QTextFrameFormat& format) -{ - ( theWrappedObject->setFrameFormat(format)); -} - - - -QTextFrameFormat* PythonQtWrapper_QTextFrameFormat::new_QTextFrameFormat() -{ -return new PythonQtShell_QTextFrameFormat(); } - -qreal PythonQtWrapper_QTextFrameFormat::border(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->border()); -} - -QBrush PythonQtWrapper_QTextFrameFormat::borderBrush(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->borderBrush()); -} - -QTextFrameFormat::BorderStyle PythonQtWrapper_QTextFrameFormat::borderStyle(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->borderStyle()); -} - -qreal PythonQtWrapper_QTextFrameFormat::bottomMargin(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->bottomMargin()); -} - -QTextLength PythonQtWrapper_QTextFrameFormat::height(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QTextFrameFormat::isValid(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -qreal PythonQtWrapper_QTextFrameFormat::leftMargin(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->leftMargin()); -} - -qreal PythonQtWrapper_QTextFrameFormat::margin(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->margin()); -} - -qreal PythonQtWrapper_QTextFrameFormat::padding(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->padding()); -} - -QTextFormat::PageBreakFlags PythonQtWrapper_QTextFrameFormat::pageBreakPolicy(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->pageBreakPolicy()); -} - -QTextFrameFormat::Position PythonQtWrapper_QTextFrameFormat::position(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->position()); -} - -qreal PythonQtWrapper_QTextFrameFormat::rightMargin(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->rightMargin()); -} - -void PythonQtWrapper_QTextFrameFormat::setBorder(QTextFrameFormat* theWrappedObject, qreal border) -{ - ( theWrappedObject->setBorder(border)); -} - -void PythonQtWrapper_QTextFrameFormat::setBorderBrush(QTextFrameFormat* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBorderBrush(brush)); -} - -void PythonQtWrapper_QTextFrameFormat::setBorderStyle(QTextFrameFormat* theWrappedObject, QTextFrameFormat::BorderStyle style) -{ - ( theWrappedObject->setBorderStyle(style)); -} - -void PythonQtWrapper_QTextFrameFormat::setBottomMargin(QTextFrameFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setBottomMargin(margin)); -} - -void PythonQtWrapper_QTextFrameFormat::setHeight(QTextFrameFormat* theWrappedObject, const QTextLength& height) -{ - ( theWrappedObject->setHeight(height)); -} - -void PythonQtWrapper_QTextFrameFormat::setHeight(QTextFrameFormat* theWrappedObject, qreal height) -{ - ( theWrappedObject->setHeight(height)); -} - -void PythonQtWrapper_QTextFrameFormat::setLeftMargin(QTextFrameFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setLeftMargin(margin)); -} - -void PythonQtWrapper_QTextFrameFormat::setMargin(QTextFrameFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setMargin(margin)); -} - -void PythonQtWrapper_QTextFrameFormat::setPadding(QTextFrameFormat* theWrappedObject, qreal padding) -{ - ( theWrappedObject->setPadding(padding)); -} - -void PythonQtWrapper_QTextFrameFormat::setPageBreakPolicy(QTextFrameFormat* theWrappedObject, QTextFormat::PageBreakFlags flags) -{ - ( theWrappedObject->setPageBreakPolicy(flags)); -} - -void PythonQtWrapper_QTextFrameFormat::setPosition(QTextFrameFormat* theWrappedObject, QTextFrameFormat::Position f) -{ - ( theWrappedObject->setPosition(f)); -} - -void PythonQtWrapper_QTextFrameFormat::setRightMargin(QTextFrameFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setRightMargin(margin)); -} - -void PythonQtWrapper_QTextFrameFormat::setTopMargin(QTextFrameFormat* theWrappedObject, qreal margin) -{ - ( theWrappedObject->setTopMargin(margin)); -} - -void PythonQtWrapper_QTextFrameFormat::setWidth(QTextFrameFormat* theWrappedObject, const QTextLength& length) -{ - ( theWrappedObject->setWidth(length)); -} - -void PythonQtWrapper_QTextFrameFormat::setWidth(QTextFrameFormat* theWrappedObject, qreal width) -{ - ( theWrappedObject->setWidth(width)); -} - -qreal PythonQtWrapper_QTextFrameFormat::topMargin(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->topMargin()); -} - -QTextLength PythonQtWrapper_QTextFrameFormat::width(QTextFrameFormat* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -QTextImageFormat* PythonQtWrapper_QTextImageFormat::new_QTextImageFormat() -{ -return new PythonQtShell_QTextImageFormat(); } - -qreal PythonQtWrapper_QTextImageFormat::height(QTextImageFormat* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QTextImageFormat::isValid(QTextImageFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QString PythonQtWrapper_QTextImageFormat::name(QTextImageFormat* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - -void PythonQtWrapper_QTextImageFormat::setHeight(QTextImageFormat* theWrappedObject, qreal height) -{ - ( theWrappedObject->setHeight(height)); -} - -void PythonQtWrapper_QTextImageFormat::setName(QTextImageFormat* theWrappedObject, const QString& name) -{ - ( theWrappedObject->setName(name)); -} - -void PythonQtWrapper_QTextImageFormat::setWidth(QTextImageFormat* theWrappedObject, qreal width) -{ - ( theWrappedObject->setWidth(width)); -} - -qreal PythonQtWrapper_QTextImageFormat::width(QTextImageFormat* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -QTextInlineObject* PythonQtWrapper_QTextInlineObject::new_QTextInlineObject() -{ -return new QTextInlineObject(); } - -qreal PythonQtWrapper_QTextInlineObject::ascent(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->ascent()); -} - -qreal PythonQtWrapper_QTextInlineObject::descent(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->descent()); -} - -QTextFormat PythonQtWrapper_QTextInlineObject::format(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -int PythonQtWrapper_QTextInlineObject::formatIndex(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->formatIndex()); -} - -qreal PythonQtWrapper_QTextInlineObject::height(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QTextInlineObject::isValid(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QRectF PythonQtWrapper_QTextInlineObject::rect(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -void PythonQtWrapper_QTextInlineObject::setAscent(QTextInlineObject* theWrappedObject, qreal a) -{ - ( theWrappedObject->setAscent(a)); -} - -void PythonQtWrapper_QTextInlineObject::setDescent(QTextInlineObject* theWrappedObject, qreal d) -{ - ( theWrappedObject->setDescent(d)); -} - -void PythonQtWrapper_QTextInlineObject::setWidth(QTextInlineObject* theWrappedObject, qreal w) -{ - ( theWrappedObject->setWidth(w)); -} - -Qt::LayoutDirection PythonQtWrapper_QTextInlineObject::textDirection(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->textDirection()); -} - -int PythonQtWrapper_QTextInlineObject::textPosition(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->textPosition()); -} - -qreal PythonQtWrapper_QTextInlineObject::width(QTextInlineObject* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -QTextItem* PythonQtWrapper_QTextItem::new_QTextItem() -{ -return new PythonQtShell_QTextItem(); } - -qreal PythonQtWrapper_QTextItem::ascent(QTextItem* theWrappedObject) const -{ - return ( theWrappedObject->ascent()); -} - -qreal PythonQtWrapper_QTextItem::descent(QTextItem* theWrappedObject) const -{ - return ( theWrappedObject->descent()); -} - -QFont PythonQtWrapper_QTextItem::font(QTextItem* theWrappedObject) const -{ - return ( theWrappedObject->font()); -} - -QTextItem::RenderFlags PythonQtWrapper_QTextItem::renderFlags(QTextItem* theWrappedObject) const -{ - return ( theWrappedObject->renderFlags()); -} - -QString PythonQtWrapper_QTextItem::text(QTextItem* theWrappedObject) const -{ - return ( theWrappedObject->text()); -} - -qreal PythonQtWrapper_QTextItem::width(QTextItem* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -QTextLine* PythonQtWrapper_QTextLine::new_QTextLine() -{ -return new QTextLine(); } - -qreal PythonQtWrapper_QTextLine::ascent(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->ascent()); -} - -qreal PythonQtWrapper_QTextLine::cursorToX(QTextLine* theWrappedObject, int cursorPos, QTextLine::Edge edge) const -{ - return ( theWrappedObject->cursorToX(cursorPos, edge)); -} - -qreal PythonQtWrapper_QTextLine::descent(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->descent()); -} - -void PythonQtWrapper_QTextLine::draw(QTextLine* theWrappedObject, QPainter* p, const QPointF& point, const QTextLayout::FormatRange* selection) const -{ - ( theWrappedObject->draw(p, point, selection)); -} - -qreal PythonQtWrapper_QTextLine::height(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QTextLine::isValid(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -qreal PythonQtWrapper_QTextLine::leading(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->leading()); -} - -bool PythonQtWrapper_QTextLine::leadingIncluded(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->leadingIncluded()); -} - -int PythonQtWrapper_QTextLine::lineNumber(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->lineNumber()); -} - -QRectF PythonQtWrapper_QTextLine::naturalTextRect(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->naturalTextRect()); -} - -qreal PythonQtWrapper_QTextLine::naturalTextWidth(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->naturalTextWidth()); -} - -QPointF PythonQtWrapper_QTextLine::position(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->position()); -} - -QRectF PythonQtWrapper_QTextLine::rect(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -void PythonQtWrapper_QTextLine::setLeadingIncluded(QTextLine* theWrappedObject, bool included) -{ - ( theWrappedObject->setLeadingIncluded(included)); -} - -void PythonQtWrapper_QTextLine::setLineWidth(QTextLine* theWrappedObject, qreal width) -{ - ( theWrappedObject->setLineWidth(width)); -} - -void PythonQtWrapper_QTextLine::setNumColumns(QTextLine* theWrappedObject, int columns) -{ - ( theWrappedObject->setNumColumns(columns)); -} - -void PythonQtWrapper_QTextLine::setNumColumns(QTextLine* theWrappedObject, int columns, qreal alignmentWidth) -{ - ( theWrappedObject->setNumColumns(columns, alignmentWidth)); -} - -void PythonQtWrapper_QTextLine::setPosition(QTextLine* theWrappedObject, const QPointF& pos) -{ - ( theWrappedObject->setPosition(pos)); -} - -int PythonQtWrapper_QTextLine::textLength(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->textLength()); -} - -int PythonQtWrapper_QTextLine::textStart(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->textStart()); -} - -qreal PythonQtWrapper_QTextLine::width(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -qreal PythonQtWrapper_QTextLine::x(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->x()); -} - -int PythonQtWrapper_QTextLine::xToCursor(QTextLine* theWrappedObject, qreal x, QTextLine::CursorPosition arg__2) const -{ - return ( theWrappedObject->xToCursor(x, arg__2)); -} - -qreal PythonQtWrapper_QTextLine::y(QTextLine* theWrappedObject) const -{ - return ( theWrappedObject->y()); -} - - - -void PythonQtShell_QTextList::blockFormatChanged(const QTextBlock& block) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockFormatChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QTextBlock&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&block}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextList::blockFormatChanged(block); -} -void PythonQtShell_QTextList::blockInserted(const QTextBlock& block) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QTextBlock&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&block}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextList::blockInserted(block); -} -void PythonQtShell_QTextList::blockRemoved(const QTextBlock& block) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "blockRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QTextBlock&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&block}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextList::blockRemoved(block); -} -void PythonQtShell_QTextList::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextList::childEvent(arg__1); -} -void PythonQtShell_QTextList::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextList::customEvent(arg__1); -} -bool PythonQtShell_QTextList::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextList::event(arg__1); -} -bool PythonQtShell_QTextList::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextList::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTextList::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextList::timerEvent(arg__1); -} -QTextList* PythonQtWrapper_QTextList::new_QTextList(QTextDocument* doc) -{ -return new PythonQtShell_QTextList(doc); } - -void PythonQtWrapper_QTextList::add(QTextList* theWrappedObject, const QTextBlock& block) -{ - ( theWrappedObject->add(block)); -} - -int PythonQtWrapper_QTextList::count(QTextList* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -QTextListFormat PythonQtWrapper_QTextList::format(QTextList* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -QTextBlock PythonQtWrapper_QTextList::item(QTextList* theWrappedObject, int i) const -{ - return ( theWrappedObject->item(i)); -} - -int PythonQtWrapper_QTextList::itemNumber(QTextList* theWrappedObject, const QTextBlock& arg__1) const -{ - return ( theWrappedObject->itemNumber(arg__1)); -} - -QString PythonQtWrapper_QTextList::itemText(QTextList* theWrappedObject, const QTextBlock& arg__1) const -{ - return ( theWrappedObject->itemText(arg__1)); -} - -void PythonQtWrapper_QTextList::remove(QTextList* theWrappedObject, const QTextBlock& arg__1) -{ - ( theWrappedObject->remove(arg__1)); -} - -void PythonQtWrapper_QTextList::removeItem(QTextList* theWrappedObject, int i) -{ - ( theWrappedObject->removeItem(i)); -} - -void PythonQtWrapper_QTextList::setFormat(QTextList* theWrappedObject, const QTextListFormat& format) -{ - ( theWrappedObject->setFormat(format)); -} - - - -QTextListFormat* PythonQtWrapper_QTextListFormat::new_QTextListFormat() -{ -return new PythonQtShell_QTextListFormat(); } - -int PythonQtWrapper_QTextListFormat::indent(QTextListFormat* theWrappedObject) const -{ - return ( theWrappedObject->indent()); -} - -bool PythonQtWrapper_QTextListFormat::isValid(QTextListFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -void PythonQtWrapper_QTextListFormat::setIndent(QTextListFormat* theWrappedObject, int indent) -{ - ( theWrappedObject->setIndent(indent)); -} - -void PythonQtWrapper_QTextListFormat::setStyle(QTextListFormat* theWrappedObject, QTextListFormat::Style style) -{ - ( theWrappedObject->setStyle(style)); -} - -QTextListFormat::Style PythonQtWrapper_QTextListFormat::style(QTextListFormat* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - - - -void PythonQtShell_QTextObject::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextObject::childEvent(arg__1); -} -void PythonQtShell_QTextObject::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextObject::customEvent(arg__1); -} -bool PythonQtShell_QTextObject::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextObject::event(arg__1); -} -bool PythonQtShell_QTextObject::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextObject::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTextObject::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextObject::timerEvent(arg__1); -} -QTextDocument* PythonQtWrapper_QTextObject::document(QTextObject* theWrappedObject) const -{ - return ( theWrappedObject->document()); -} - -QTextFormat PythonQtWrapper_QTextObject::format(QTextObject* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -int PythonQtWrapper_QTextObject::formatIndex(QTextObject* theWrappedObject) const -{ - return ( theWrappedObject->formatIndex()); -} - -int PythonQtWrapper_QTextObject::objectIndex(QTextObject* theWrappedObject) const -{ - return ( theWrappedObject->objectIndex()); -} - - - -void PythonQtShell_QTextTable::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextTable::childEvent(arg__1); -} -void PythonQtShell_QTextTable::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextTable::customEvent(arg__1); -} -bool PythonQtShell_QTextTable::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextTable::event(arg__1); -} -bool PythonQtShell_QTextTable::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTextTable::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTextTable::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTextTable::timerEvent(arg__1); -} -QTextTable* PythonQtWrapper_QTextTable::new_QTextTable(QTextDocument* doc) -{ -return new PythonQtShell_QTextTable(doc); } - -void PythonQtWrapper_QTextTable::appendColumns(QTextTable* theWrappedObject, int count) -{ - ( theWrappedObject->appendColumns(count)); -} - -void PythonQtWrapper_QTextTable::appendRows(QTextTable* theWrappedObject, int count) -{ - ( theWrappedObject->appendRows(count)); -} - -QTextTableCell PythonQtWrapper_QTextTable::cellAt(QTextTable* theWrappedObject, const QTextCursor& c) const -{ - return ( theWrappedObject->cellAt(c)); -} - -QTextTableCell PythonQtWrapper_QTextTable::cellAt(QTextTable* theWrappedObject, int position) const -{ - return ( theWrappedObject->cellAt(position)); -} - -QTextTableCell PythonQtWrapper_QTextTable::cellAt(QTextTable* theWrappedObject, int row, int col) const -{ - return ( theWrappedObject->cellAt(row, col)); -} - -int PythonQtWrapper_QTextTable::columns(QTextTable* theWrappedObject) const -{ - return ( theWrappedObject->columns()); -} - -QTextTableFormat PythonQtWrapper_QTextTable::format(QTextTable* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -void PythonQtWrapper_QTextTable::insertColumns(QTextTable* theWrappedObject, int pos, int num) -{ - ( theWrappedObject->insertColumns(pos, num)); -} - -void PythonQtWrapper_QTextTable::insertRows(QTextTable* theWrappedObject, int pos, int num) -{ - ( theWrappedObject->insertRows(pos, num)); -} - -void PythonQtWrapper_QTextTable::mergeCells(QTextTable* theWrappedObject, const QTextCursor& cursor) -{ - ( theWrappedObject->mergeCells(cursor)); -} - -void PythonQtWrapper_QTextTable::mergeCells(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols) -{ - ( theWrappedObject->mergeCells(row, col, numRows, numCols)); -} - -void PythonQtWrapper_QTextTable::removeColumns(QTextTable* theWrappedObject, int pos, int num) -{ - ( theWrappedObject->removeColumns(pos, num)); -} - -void PythonQtWrapper_QTextTable::removeRows(QTextTable* theWrappedObject, int pos, int num) -{ - ( theWrappedObject->removeRows(pos, num)); -} - -void PythonQtWrapper_QTextTable::resize(QTextTable* theWrappedObject, int rows, int cols) -{ - ( theWrappedObject->resize(rows, cols)); -} - -QTextCursor PythonQtWrapper_QTextTable::rowEnd(QTextTable* theWrappedObject, const QTextCursor& c) const -{ - return ( theWrappedObject->rowEnd(c)); -} - -QTextCursor PythonQtWrapper_QTextTable::rowStart(QTextTable* theWrappedObject, const QTextCursor& c) const -{ - return ( theWrappedObject->rowStart(c)); -} - -int PythonQtWrapper_QTextTable::rows(QTextTable* theWrappedObject) const -{ - return ( theWrappedObject->rows()); -} - -void PythonQtWrapper_QTextTable::setFormat(QTextTable* theWrappedObject, const QTextTableFormat& format) -{ - ( theWrappedObject->setFormat(format)); -} - -void PythonQtWrapper_QTextTable::splitCell(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols) -{ - ( theWrappedObject->splitCell(row, col, numRows, numCols)); -} - - - -QTextTableCell* PythonQtWrapper_QTextTableCell::new_QTextTableCell() -{ -return new QTextTableCell(); } - -QTextTableCell* PythonQtWrapper_QTextTableCell::new_QTextTableCell(const QTextTableCell& o) -{ -return new QTextTableCell(o); } - -QTextFrame::iterator PythonQtWrapper_QTextTableCell::begin(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->begin()); -} - -int PythonQtWrapper_QTextTableCell::column(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->column()); -} - -int PythonQtWrapper_QTextTableCell::columnSpan(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->columnSpan()); -} - -QTextFrame::iterator PythonQtWrapper_QTextTableCell::end(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->end()); -} - -QTextCursor PythonQtWrapper_QTextTableCell::firstCursorPosition(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->firstCursorPosition()); -} - -int PythonQtWrapper_QTextTableCell::firstPosition(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->firstPosition()); -} - -QTextCharFormat PythonQtWrapper_QTextTableCell::format(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -bool PythonQtWrapper_QTextTableCell::isValid(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QTextCursor PythonQtWrapper_QTextTableCell::lastCursorPosition(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->lastCursorPosition()); -} - -int PythonQtWrapper_QTextTableCell::lastPosition(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->lastPosition()); -} - -bool PythonQtWrapper_QTextTableCell::__ne__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QTextTableCell::__eq__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const -{ - return ( (*theWrappedObject)== other); -} - -int PythonQtWrapper_QTextTableCell::row(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->row()); -} - -int PythonQtWrapper_QTextTableCell::rowSpan(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->rowSpan()); -} - -void PythonQtWrapper_QTextTableCell::setFormat(QTextTableCell* theWrappedObject, const QTextCharFormat& format) -{ - ( theWrappedObject->setFormat(format)); -} - -int PythonQtWrapper_QTextTableCell::tableCellFormatIndex(QTextTableCell* theWrappedObject) const -{ - return ( theWrappedObject->tableCellFormatIndex()); -} - - - -QTextTableCellFormat* PythonQtWrapper_QTextTableCellFormat::new_QTextTableCellFormat() -{ -return new PythonQtShell_QTextTableCellFormat(); } - -qreal PythonQtWrapper_QTextTableCellFormat::bottomPadding(QTextTableCellFormat* theWrappedObject) const -{ - return ( theWrappedObject->bottomPadding()); -} - -bool PythonQtWrapper_QTextTableCellFormat::isValid(QTextTableCellFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -qreal PythonQtWrapper_QTextTableCellFormat::leftPadding(QTextTableCellFormat* theWrappedObject) const -{ - return ( theWrappedObject->leftPadding()); -} - -qreal PythonQtWrapper_QTextTableCellFormat::rightPadding(QTextTableCellFormat* theWrappedObject) const -{ - return ( theWrappedObject->rightPadding()); -} - -void PythonQtWrapper_QTextTableCellFormat::setBottomPadding(QTextTableCellFormat* theWrappedObject, qreal padding) -{ - ( theWrappedObject->setBottomPadding(padding)); -} - -void PythonQtWrapper_QTextTableCellFormat::setLeftPadding(QTextTableCellFormat* theWrappedObject, qreal padding) -{ - ( theWrappedObject->setLeftPadding(padding)); -} - -void PythonQtWrapper_QTextTableCellFormat::setPadding(QTextTableCellFormat* theWrappedObject, qreal padding) -{ - ( theWrappedObject->setPadding(padding)); -} - -void PythonQtWrapper_QTextTableCellFormat::setRightPadding(QTextTableCellFormat* theWrappedObject, qreal padding) -{ - ( theWrappedObject->setRightPadding(padding)); -} - -void PythonQtWrapper_QTextTableCellFormat::setTopPadding(QTextTableCellFormat* theWrappedObject, qreal padding) -{ - ( theWrappedObject->setTopPadding(padding)); -} - -qreal PythonQtWrapper_QTextTableCellFormat::topPadding(QTextTableCellFormat* theWrappedObject) const -{ - return ( theWrappedObject->topPadding()); -} - - - -QTextTableFormat* PythonQtWrapper_QTextTableFormat::new_QTextTableFormat() -{ -return new PythonQtShell_QTextTableFormat(); } - -Qt::Alignment PythonQtWrapper_QTextTableFormat::alignment(QTextTableFormat* theWrappedObject) const -{ - return ( theWrappedObject->alignment()); -} - -qreal PythonQtWrapper_QTextTableFormat::cellPadding(QTextTableFormat* theWrappedObject) const -{ - return ( theWrappedObject->cellPadding()); -} - -qreal PythonQtWrapper_QTextTableFormat::cellSpacing(QTextTableFormat* theWrappedObject) const -{ - return ( theWrappedObject->cellSpacing()); -} - -void PythonQtWrapper_QTextTableFormat::clearColumnWidthConstraints(QTextTableFormat* theWrappedObject) -{ - ( theWrappedObject->clearColumnWidthConstraints()); -} - -QVector PythonQtWrapper_QTextTableFormat::columnWidthConstraints(QTextTableFormat* theWrappedObject) const -{ - return ( theWrappedObject->columnWidthConstraints()); -} - -int PythonQtWrapper_QTextTableFormat::columns(QTextTableFormat* theWrappedObject) const -{ - return ( theWrappedObject->columns()); -} - -int PythonQtWrapper_QTextTableFormat::headerRowCount(QTextTableFormat* theWrappedObject) const -{ - return ( theWrappedObject->headerRowCount()); -} - -bool PythonQtWrapper_QTextTableFormat::isValid(QTextTableFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -void PythonQtWrapper_QTextTableFormat::setAlignment(QTextTableFormat* theWrappedObject, Qt::Alignment alignment) -{ - ( theWrappedObject->setAlignment(alignment)); -} - -void PythonQtWrapper_QTextTableFormat::setCellPadding(QTextTableFormat* theWrappedObject, qreal padding) -{ - ( theWrappedObject->setCellPadding(padding)); -} - -void PythonQtWrapper_QTextTableFormat::setCellSpacing(QTextTableFormat* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setCellSpacing(spacing)); -} - -void PythonQtWrapper_QTextTableFormat::setColumnWidthConstraints(QTextTableFormat* theWrappedObject, const QVector& constraints) -{ - ( theWrappedObject->setColumnWidthConstraints(constraints)); -} - -void PythonQtWrapper_QTextTableFormat::setColumns(QTextTableFormat* theWrappedObject, int columns) -{ - ( theWrappedObject->setColumns(columns)); -} - -void PythonQtWrapper_QTextTableFormat::setHeaderRowCount(QTextTableFormat* theWrappedObject, int count) -{ - ( theWrappedObject->setHeaderRowCount(count)); -} - - - -QTileRules* PythonQtWrapper_QTileRules::new_QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule) -{ -return new PythonQtShell_QTileRules(horizontalRule, verticalRule); } - -QTileRules* PythonQtWrapper_QTileRules::new_QTileRules(Qt::TileRule rule) -{ -return new PythonQtShell_QTileRules(rule); } - - - -void PythonQtShell_QTimeEdit::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::actionEvent(arg__1); -} -void PythonQtShell_QTimeEdit::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::changeEvent(event); -} -void PythonQtShell_QTimeEdit::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::childEvent(arg__1); -} -void PythonQtShell_QTimeEdit::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::clear(); -} -void PythonQtShell_QTimeEdit::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::closeEvent(event); -} -void PythonQtShell_QTimeEdit::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::contextMenuEvent(event); -} -void PythonQtShell_QTimeEdit::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::customEvent(arg__1); -} -QDateTime PythonQtShell_QTimeEdit::dateTimeFromText(const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dateTimeFromText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QDateTime" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QDateTime returnValue; - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dateTimeFromText", methodInfo, result); - } else { - returnValue = *((QDateTime*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::dateTimeFromText(text); -} -int PythonQtShell_QTimeEdit::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::devType(); -} -void PythonQtShell_QTimeEdit::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::dragEnterEvent(arg__1); -} -void PythonQtShell_QTimeEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::dragLeaveEvent(arg__1); -} -void PythonQtShell_QTimeEdit::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::dragMoveEvent(arg__1); -} -void PythonQtShell_QTimeEdit::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::dropEvent(arg__1); -} -void PythonQtShell_QTimeEdit::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::enterEvent(arg__1); -} -bool PythonQtShell_QTimeEdit::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::event(event); -} -bool PythonQtShell_QTimeEdit::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QTimeEdit::fixup(QString& input) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&input}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::fixup(input); -} -void PythonQtShell_QTimeEdit::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::focusInEvent(event); -} -bool PythonQtShell_QTimeEdit::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::focusNextPrevChild(next); -} -void PythonQtShell_QTimeEdit::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::focusOutEvent(event); -} -int PythonQtShell_QTimeEdit::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::heightForWidth(arg__1); -} -void PythonQtShell_QTimeEdit::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::hideEvent(event); -} -void PythonQtShell_QTimeEdit::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QTimeEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::inputMethodQuery(arg__1); -} -void PythonQtShell_QTimeEdit::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::keyPressEvent(event); -} -void PythonQtShell_QTimeEdit::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::keyReleaseEvent(event); -} -void PythonQtShell_QTimeEdit::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::languageChange(); -} -void PythonQtShell_QTimeEdit::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::leaveEvent(arg__1); -} -int PythonQtShell_QTimeEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::metric(arg__1); -} -void PythonQtShell_QTimeEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QTimeEdit::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::mouseMoveEvent(event); -} -void PythonQtShell_QTimeEdit::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::mousePressEvent(event); -} -void PythonQtShell_QTimeEdit::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::mouseReleaseEvent(event); -} -void PythonQtShell_QTimeEdit::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QTimeEdit::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::paintEngine(); -} -void PythonQtShell_QTimeEdit::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::paintEvent(event); -} -void PythonQtShell_QTimeEdit::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::resizeEvent(event); -} -void PythonQtShell_QTimeEdit::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::showEvent(event); -} -void PythonQtShell_QTimeEdit::stepBy(int steps) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::stepBy(steps); -} -QAbstractSpinBox::StepEnabled PythonQtShell_QTimeEdit::stepEnabled() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("stepEnabled", methodInfo, result); - } else { - returnValue = *((QAbstractSpinBox::StepEnabled*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::stepEnabled(); -} -void PythonQtShell_QTimeEdit::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::tabletEvent(arg__1); -} -QString PythonQtShell_QTimeEdit::textFromDateTime(const QDateTime& dt) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromDateTime"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "const QDateTime&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&dt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("textFromDateTime", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::textFromDateTime(dt); -} -void PythonQtShell_QTimeEdit::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTimeEdit::timerEvent(event); -} -QValidator::State PythonQtShell_QTimeEdit::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("validate", methodInfo, result); - } else { - returnValue = *((QValidator::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTimeEdit::validate(input, pos); -} -void PythonQtShell_QTimeEdit::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QTimeEdit::wheelEvent(event); -} -QTimeEdit* PythonQtWrapper_QTimeEdit::new_QTimeEdit(QWidget* parent) -{ -return new PythonQtShell_QTimeEdit(parent); } - -QTimeEdit* PythonQtWrapper_QTimeEdit::new_QTimeEdit(const QTime& time, QWidget* parent) -{ -return new PythonQtShell_QTimeEdit(time, parent); } - - - -void PythonQtShell_QToolBar::actionEvent(QActionEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - 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; - } - Py_XDECREF(obj); -} - QToolBar::actionEvent(event); -} -void PythonQtShell_QToolBar::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::changeEvent(event); -} -void PythonQtShell_QToolBar::childEvent(QChildEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::childEvent(event); -} -void PythonQtShell_QToolBar::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::closeEvent(arg__1); -} -void PythonQtShell_QToolBar::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::contextMenuEvent(arg__1); -} -void PythonQtShell_QToolBar::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::customEvent(arg__1); -} -int PythonQtShell_QToolBar::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::devType(); -} -void PythonQtShell_QToolBar::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::dragEnterEvent(arg__1); -} -void PythonQtShell_QToolBar::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::dragLeaveEvent(arg__1); -} -void PythonQtShell_QToolBar::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::dragMoveEvent(arg__1); -} -void PythonQtShell_QToolBar::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::dropEvent(arg__1); -} -void PythonQtShell_QToolBar::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::enterEvent(arg__1); -} -bool PythonQtShell_QToolBar::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::event(event); -} -bool PythonQtShell_QToolBar::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QToolBar::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::focusInEvent(arg__1); -} -bool PythonQtShell_QToolBar::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::focusNextPrevChild(next); -} -void PythonQtShell_QToolBar::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::focusOutEvent(arg__1); -} -int PythonQtShell_QToolBar::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::heightForWidth(arg__1); -} -void PythonQtShell_QToolBar::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::hideEvent(arg__1); -} -void PythonQtShell_QToolBar::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QToolBar::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::inputMethodQuery(arg__1); -} -void PythonQtShell_QToolBar::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::keyPressEvent(arg__1); -} -void PythonQtShell_QToolBar::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::keyReleaseEvent(arg__1); -} -void PythonQtShell_QToolBar::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::languageChange(); -} -void PythonQtShell_QToolBar::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::leaveEvent(arg__1); -} -int PythonQtShell_QToolBar::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::metric(arg__1); -} -QSize PythonQtShell_QToolBar::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::minimumSizeHint(); -} -void PythonQtShell_QToolBar::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QToolBar::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::mouseMoveEvent(arg__1); -} -void PythonQtShell_QToolBar::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::mousePressEvent(arg__1); -} -void PythonQtShell_QToolBar::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QToolBar::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QToolBar::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::paintEngine(); -} -void PythonQtShell_QToolBar::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QToolBar::paintEvent(event); -} -void PythonQtShell_QToolBar::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(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; - } - Py_XDECREF(obj); -} - QToolBar::resizeEvent(event); -} -void PythonQtShell_QToolBar::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::showEvent(arg__1); -} -QSize PythonQtShell_QToolBar::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBar::sizeHint(); -} -void PythonQtShell_QToolBar::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::tabletEvent(arg__1); -} -void PythonQtShell_QToolBar::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::timerEvent(arg__1); -} -void PythonQtShell_QToolBar::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBar::wheelEvent(arg__1); -} -QToolBar* PythonQtWrapper_QToolBar::new_QToolBar(QWidget* parent) -{ -return new PythonQtShell_QToolBar(parent); } - -QToolBar* PythonQtWrapper_QToolBar::new_QToolBar(const QString& title, QWidget* parent) -{ -return new PythonQtShell_QToolBar(title, parent); } - -QAction* PythonQtWrapper_QToolBar::actionAt(QToolBar* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->actionAt(p)); -} - -QAction* PythonQtWrapper_QToolBar::actionAt(QToolBar* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->actionAt(x, y)); -} - -void PythonQtWrapper_QToolBar::actionEvent(QToolBar* theWrappedObject, QActionEvent* event) -{ - ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_actionEvent(event)); -} - -QRect PythonQtWrapper_QToolBar::actionGeometry(QToolBar* theWrappedObject, QAction* action) const -{ - return ( theWrappedObject->actionGeometry(action)); -} - -void PythonQtWrapper_QToolBar::addAction(QToolBar* theWrappedObject, QAction* action) -{ - ( theWrappedObject->addAction(action)); -} - -QAction* PythonQtWrapper_QToolBar::addAction(QToolBar* theWrappedObject, const QIcon& icon, const QString& text) -{ - return ( theWrappedObject->addAction(icon, text)); -} - -QAction* PythonQtWrapper_QToolBar::addAction(QToolBar* theWrappedObject, const QIcon& icon, const QString& text, const QObject* receiver, const char* member) -{ - return ( theWrappedObject->addAction(icon, text, receiver, member)); -} - -QAction* PythonQtWrapper_QToolBar::addAction(QToolBar* theWrappedObject, const QString& text) -{ - return ( theWrappedObject->addAction(text)); -} - -QAction* PythonQtWrapper_QToolBar::addAction(QToolBar* theWrappedObject, const QString& text, const QObject* receiver, const char* member) -{ - return ( theWrappedObject->addAction(text, receiver, member)); -} - -QAction* PythonQtWrapper_QToolBar::addSeparator(QToolBar* theWrappedObject) -{ - return ( theWrappedObject->addSeparator()); -} - -QAction* PythonQtWrapper_QToolBar::addWidget(QToolBar* theWrappedObject, QWidget* widget) -{ - return ( theWrappedObject->addWidget(widget)); -} - -Qt::ToolBarAreas PythonQtWrapper_QToolBar::allowedAreas(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->allowedAreas()); -} - -void PythonQtWrapper_QToolBar::changeEvent(QToolBar* theWrappedObject, QEvent* event) -{ - ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_changeEvent(event)); -} - -void PythonQtWrapper_QToolBar::childEvent(QToolBar* theWrappedObject, QChildEvent* event) -{ - ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_childEvent(event)); -} - -void PythonQtWrapper_QToolBar::clear(QToolBar* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QToolBar::event(QToolBar* theWrappedObject, QEvent* event) -{ - return ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_event(event)); -} - -QSize PythonQtWrapper_QToolBar::iconSize(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->iconSize()); -} - -QAction* PythonQtWrapper_QToolBar::insertSeparator(QToolBar* theWrappedObject, QAction* before) -{ - return ( theWrappedObject->insertSeparator(before)); -} - -QAction* PythonQtWrapper_QToolBar::insertWidget(QToolBar* theWrappedObject, QAction* before, QWidget* widget) -{ - return ( theWrappedObject->insertWidget(before, widget)); -} - -bool PythonQtWrapper_QToolBar::isAreaAllowed(QToolBar* theWrappedObject, Qt::ToolBarArea area) const -{ - return ( theWrappedObject->isAreaAllowed(area)); -} - -bool PythonQtWrapper_QToolBar::isFloatable(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->isFloatable()); -} - -bool PythonQtWrapper_QToolBar::isFloating(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->isFloating()); -} - -bool PythonQtWrapper_QToolBar::isMovable(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->isMovable()); -} - -Qt::Orientation PythonQtWrapper_QToolBar::orientation(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->orientation()); -} - -void PythonQtWrapper_QToolBar::paintEvent(QToolBar* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_paintEvent(event)); -} - -void PythonQtWrapper_QToolBar::resizeEvent(QToolBar* theWrappedObject, QResizeEvent* event) -{ - ( ((PythonQtPublicPromoter_QToolBar*)theWrappedObject)->promoted_resizeEvent(event)); -} - -void PythonQtWrapper_QToolBar::setAllowedAreas(QToolBar* theWrappedObject, Qt::ToolBarAreas areas) -{ - ( theWrappedObject->setAllowedAreas(areas)); -} - -void PythonQtWrapper_QToolBar::setFloatable(QToolBar* theWrappedObject, bool floatable) -{ - ( theWrappedObject->setFloatable(floatable)); -} - -void PythonQtWrapper_QToolBar::setMovable(QToolBar* theWrappedObject, bool movable) -{ - ( theWrappedObject->setMovable(movable)); -} - -void PythonQtWrapper_QToolBar::setOrientation(QToolBar* theWrappedObject, Qt::Orientation orientation) -{ - ( theWrappedObject->setOrientation(orientation)); -} - -QAction* PythonQtWrapper_QToolBar::toggleViewAction(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->toggleViewAction()); -} - -Qt::ToolButtonStyle PythonQtWrapper_QToolBar::toolButtonStyle(QToolBar* theWrappedObject) const -{ - return ( theWrappedObject->toolButtonStyle()); -} - -QWidget* PythonQtWrapper_QToolBar::widgetForAction(QToolBar* theWrappedObject, QAction* action) const -{ - return ( theWrappedObject->widgetForAction(action)); -} - - - -QToolBarChangeEvent* PythonQtWrapper_QToolBarChangeEvent::new_QToolBarChangeEvent(bool t) -{ -return new QToolBarChangeEvent(t); } - -bool PythonQtWrapper_QToolBarChangeEvent::toggle(QToolBarChangeEvent* theWrappedObject) const -{ - return ( theWrappedObject->toggle()); -} - - - -void PythonQtShell_QToolBox::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::actionEvent(arg__1); -} -void PythonQtShell_QToolBox::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::changeEvent(arg__1); -} -void PythonQtShell_QToolBox::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::childEvent(arg__1); -} -void PythonQtShell_QToolBox::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::closeEvent(arg__1); -} -void PythonQtShell_QToolBox::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::contextMenuEvent(arg__1); -} -void PythonQtShell_QToolBox::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::customEvent(arg__1); -} -int PythonQtShell_QToolBox::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::devType(); -} -void PythonQtShell_QToolBox::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::dragEnterEvent(arg__1); -} -void PythonQtShell_QToolBox::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::dragLeaveEvent(arg__1); -} -void PythonQtShell_QToolBox::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::dragMoveEvent(arg__1); -} -void PythonQtShell_QToolBox::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::dropEvent(arg__1); -} -void PythonQtShell_QToolBox::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::enterEvent(arg__1); -} -bool PythonQtShell_QToolBox::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::event(e); -} -bool PythonQtShell_QToolBox::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QToolBox::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::focusInEvent(arg__1); -} -bool PythonQtShell_QToolBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::focusNextPrevChild(next); -} -void PythonQtShell_QToolBox::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::focusOutEvent(arg__1); -} -int PythonQtShell_QToolBox::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::heightForWidth(arg__1); -} -void PythonQtShell_QToolBox::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::hideEvent(arg__1); -} -void PythonQtShell_QToolBox::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QToolBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::inputMethodQuery(arg__1); -} -void PythonQtShell_QToolBox::itemInserted(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemInserted"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::itemInserted(index); -} -void PythonQtShell_QToolBox::itemRemoved(int index) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemRemoved"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::itemRemoved(index); -} -void PythonQtShell_QToolBox::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::keyPressEvent(arg__1); -} -void PythonQtShell_QToolBox::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::keyReleaseEvent(arg__1); -} -void PythonQtShell_QToolBox::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::languageChange(); -} -void PythonQtShell_QToolBox::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::leaveEvent(arg__1); -} -int PythonQtShell_QToolBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::metric(arg__1); -} -QSize PythonQtShell_QToolBox::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::minimumSizeHint(); -} -void PythonQtShell_QToolBox::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QToolBox::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::mouseMoveEvent(arg__1); -} -void PythonQtShell_QToolBox::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::mousePressEvent(arg__1); -} -void PythonQtShell_QToolBox::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QToolBox::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_QToolBox::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolBox::paintEngine(); -} -void PythonQtShell_QToolBox::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::paintEvent(arg__1); -} -void PythonQtShell_QToolBox::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::resizeEvent(arg__1); -} -void PythonQtShell_QToolBox::showEvent(QShowEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::showEvent(e); -} -void PythonQtShell_QToolBox::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::tabletEvent(arg__1); -} -void PythonQtShell_QToolBox::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::timerEvent(arg__1); -} -void PythonQtShell_QToolBox::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolBox::wheelEvent(arg__1); -} -QToolBox* PythonQtWrapper_QToolBox::new_QToolBox(QWidget* parent, Qt::WindowFlags f) -{ -return new PythonQtShell_QToolBox(parent, f); } - -int PythonQtWrapper_QToolBox::addItem(QToolBox* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& text) -{ - return ( theWrappedObject->addItem(widget, icon, text)); -} - -int PythonQtWrapper_QToolBox::addItem(QToolBox* theWrappedObject, QWidget* widget, const QString& text) -{ - return ( theWrappedObject->addItem(widget, text)); -} - -void PythonQtWrapper_QToolBox::changeEvent(QToolBox* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -int PythonQtWrapper_QToolBox::count(QToolBox* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QToolBox::currentIndex(QToolBox* theWrappedObject) const -{ - return ( theWrappedObject->currentIndex()); -} - -QWidget* PythonQtWrapper_QToolBox::currentWidget(QToolBox* theWrappedObject) const -{ - return ( theWrappedObject->currentWidget()); -} - -bool PythonQtWrapper_QToolBox::event(QToolBox* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_event(e)); -} - -int PythonQtWrapper_QToolBox::indexOf(QToolBox* theWrappedObject, QWidget* widget) const -{ - return ( theWrappedObject->indexOf(widget)); -} - -int PythonQtWrapper_QToolBox::insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& text) -{ - return ( theWrappedObject->insertItem(index, widget, icon, text)); -} - -int PythonQtWrapper_QToolBox::insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QString& text) -{ - return ( theWrappedObject->insertItem(index, widget, text)); -} - -bool PythonQtWrapper_QToolBox::isItemEnabled(QToolBox* theWrappedObject, int index) const -{ - return ( theWrappedObject->isItemEnabled(index)); -} - -QIcon PythonQtWrapper_QToolBox::itemIcon(QToolBox* theWrappedObject, int index) const -{ - return ( theWrappedObject->itemIcon(index)); -} - -void PythonQtWrapper_QToolBox::itemInserted(QToolBox* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_itemInserted(index)); -} - -void PythonQtWrapper_QToolBox::itemRemoved(QToolBox* theWrappedObject, int index) -{ - ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_itemRemoved(index)); -} - -QString PythonQtWrapper_QToolBox::itemText(QToolBox* theWrappedObject, int index) const -{ - return ( theWrappedObject->itemText(index)); -} - -QString PythonQtWrapper_QToolBox::itemToolTip(QToolBox* theWrappedObject, int index) const -{ - return ( theWrappedObject->itemToolTip(index)); -} - -void PythonQtWrapper_QToolBox::removeItem(QToolBox* theWrappedObject, int index) -{ - ( theWrappedObject->removeItem(index)); -} - -void PythonQtWrapper_QToolBox::setItemEnabled(QToolBox* theWrappedObject, int index, bool enabled) -{ - ( theWrappedObject->setItemEnabled(index, enabled)); -} - -void PythonQtWrapper_QToolBox::setItemIcon(QToolBox* theWrappedObject, int index, const QIcon& icon) -{ - ( theWrappedObject->setItemIcon(index, icon)); -} - -void PythonQtWrapper_QToolBox::setItemText(QToolBox* theWrappedObject, int index, const QString& text) -{ - ( theWrappedObject->setItemText(index, text)); -} - -void PythonQtWrapper_QToolBox::setItemToolTip(QToolBox* theWrappedObject, int index, const QString& toolTip) -{ - ( theWrappedObject->setItemToolTip(index, toolTip)); -} - -void PythonQtWrapper_QToolBox::showEvent(QToolBox* theWrappedObject, QShowEvent* e) -{ - ( ((PythonQtPublicPromoter_QToolBox*)theWrappedObject)->promoted_showEvent(e)); -} - -QWidget* PythonQtWrapper_QToolBox::widget(QToolBox* theWrappedObject, int index) const -{ - return ( theWrappedObject->widget(index)); -} - - - -void PythonQtShell_QToolButton::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::actionEvent(arg__1); -} -void PythonQtShell_QToolButton::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::changeEvent(arg__1); -} -void PythonQtShell_QToolButton::checkStateSet() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "checkStateSet"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::checkStateSet(); -} -void PythonQtShell_QToolButton::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::childEvent(arg__1); -} -void PythonQtShell_QToolButton::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::closeEvent(arg__1); -} -void PythonQtShell_QToolButton::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::contextMenuEvent(arg__1); -} -void PythonQtShell_QToolButton::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::customEvent(arg__1); -} -int PythonQtShell_QToolButton::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::devType(); -} -void PythonQtShell_QToolButton::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::dragEnterEvent(arg__1); -} -void PythonQtShell_QToolButton::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::dragLeaveEvent(arg__1); -} -void PythonQtShell_QToolButton::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::dragMoveEvent(arg__1); -} -void PythonQtShell_QToolButton::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::dropEvent(arg__1); -} -void PythonQtShell_QToolButton::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::enterEvent(arg__1); -} -bool PythonQtShell_QToolButton::event(QEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::event(e); -} -bool PythonQtShell_QToolButton::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QToolButton::focusInEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::focusInEvent(e); -} -bool PythonQtShell_QToolButton::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::focusNextPrevChild(next); -} -void PythonQtShell_QToolButton::focusOutEvent(QFocusEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::focusOutEvent(e); -} -int PythonQtShell_QToolButton::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::heightForWidth(arg__1); -} -void PythonQtShell_QToolButton::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::hideEvent(arg__1); -} -bool PythonQtShell_QToolButton::hitButton(const QPoint& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hitButton"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hitButton", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::hitButton(pos); -} -void PythonQtShell_QToolButton::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_QToolButton::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::inputMethodQuery(arg__1); -} -void PythonQtShell_QToolButton::keyPressEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::keyPressEvent(e); -} -void PythonQtShell_QToolButton::keyReleaseEvent(QKeyEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::keyReleaseEvent(e); -} -void PythonQtShell_QToolButton::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::languageChange(); -} -void PythonQtShell_QToolButton::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::leaveEvent(arg__1); -} -int PythonQtShell_QToolButton::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::metric(arg__1); -} -void PythonQtShell_QToolButton::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_QToolButton::mouseMoveEvent(QMouseEvent* e) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::mouseMoveEvent(e); -} -void PythonQtShell_QToolButton::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::mousePressEvent(arg__1); -} -void PythonQtShell_QToolButton::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::mouseReleaseEvent(arg__1); -} -void PythonQtShell_QToolButton::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::moveEvent(arg__1); -} -void PythonQtShell_QToolButton::nextCheckState() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextCheckState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::nextCheckState(); -} -QPaintEngine* PythonQtShell_QToolButton::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QToolButton::paintEngine(); -} -void PythonQtShell_QToolButton::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::paintEvent(arg__1); -} -void PythonQtShell_QToolButton::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::resizeEvent(arg__1); -} -void PythonQtShell_QToolButton::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::showEvent(arg__1); -} -void PythonQtShell_QToolButton::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::tabletEvent(arg__1); -} -void PythonQtShell_QToolButton::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::timerEvent(arg__1); -} -void PythonQtShell_QToolButton::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QToolButton::wheelEvent(arg__1); -} -QToolButton* PythonQtWrapper_QToolButton::new_QToolButton(QWidget* parent) -{ -return new PythonQtShell_QToolButton(parent); } - -void PythonQtWrapper_QToolButton::actionEvent(QToolButton* theWrappedObject, QActionEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_actionEvent(arg__1)); -} - -Qt::ArrowType PythonQtWrapper_QToolButton::arrowType(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->arrowType()); -} - -bool PythonQtWrapper_QToolButton::autoRaise(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->autoRaise()); -} - -void PythonQtWrapper_QToolButton::changeEvent(QToolButton* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_changeEvent(arg__1)); -} - -QAction* PythonQtWrapper_QToolButton::defaultAction(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->defaultAction()); -} - -void PythonQtWrapper_QToolButton::enterEvent(QToolButton* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_enterEvent(arg__1)); -} - -bool PythonQtWrapper_QToolButton::event(QToolButton* theWrappedObject, QEvent* e) -{ - return ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_event(e)); -} - -bool PythonQtWrapper_QToolButton::hitButton(QToolButton* theWrappedObject, const QPoint& pos) const -{ - return ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_hitButton(pos)); -} - -void PythonQtWrapper_QToolButton::leaveEvent(QToolButton* theWrappedObject, QEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_leaveEvent(arg__1)); -} - -QMenu* PythonQtWrapper_QToolButton::menu(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->menu()); -} - -QSize PythonQtWrapper_QToolButton::minimumSizeHint(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->minimumSizeHint()); -} - -void PythonQtWrapper_QToolButton::mousePressEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_mousePressEvent(arg__1)); -} - -void PythonQtWrapper_QToolButton::mouseReleaseEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_mouseReleaseEvent(arg__1)); -} - -void PythonQtWrapper_QToolButton::nextCheckState(QToolButton* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_nextCheckState()); -} - -void PythonQtWrapper_QToolButton::paintEvent(QToolButton* theWrappedObject, QPaintEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_paintEvent(arg__1)); -} - -QToolButton::ToolButtonPopupMode PythonQtWrapper_QToolButton::popupMode(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->popupMode()); -} - -void PythonQtWrapper_QToolButton::setArrowType(QToolButton* theWrappedObject, Qt::ArrowType type) -{ - ( theWrappedObject->setArrowType(type)); -} - -void PythonQtWrapper_QToolButton::setAutoRaise(QToolButton* theWrappedObject, bool enable) -{ - ( theWrappedObject->setAutoRaise(enable)); -} - -void PythonQtWrapper_QToolButton::setMenu(QToolButton* theWrappedObject, QMenu* menu) -{ - ( theWrappedObject->setMenu(menu)); -} - -void PythonQtWrapper_QToolButton::setPopupMode(QToolButton* theWrappedObject, QToolButton::ToolButtonPopupMode mode) -{ - ( theWrappedObject->setPopupMode(mode)); -} - -QSize PythonQtWrapper_QToolButton::sizeHint(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->sizeHint()); -} - -void PythonQtWrapper_QToolButton::timerEvent(QToolButton* theWrappedObject, QTimerEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_QToolButton*)theWrappedObject)->promoted_timerEvent(arg__1)); -} - -Qt::ToolButtonStyle PythonQtWrapper_QToolButton::toolButtonStyle(QToolButton* theWrappedObject) const -{ - return ( theWrappedObject->toolButtonStyle()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.h deleted file mode 100644 index bb9917ed2..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.h +++ /dev/null @@ -1,1732 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QTextBlockGroup : public QTextBlockGroup -{ -public: - PythonQtShell_QTextBlockGroup(QTextDocument* doc):QTextBlockGroup(doc),_wrapper(NULL) {}; - -virtual void blockFormatChanged(const QTextBlock& block); -virtual void blockInserted(const QTextBlock& block); -virtual void blockRemoved(const QTextBlock& block); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTextBlockGroup : public QTextBlockGroup -{ public: -inline void promoted_blockFormatChanged(const QTextBlock& block) { QTextBlockGroup::blockFormatChanged(block); } -inline void promoted_blockInserted(const QTextBlock& block) { QTextBlockGroup::blockInserted(block); } -inline void promoted_blockRemoved(const QTextBlock& block) { QTextBlockGroup::blockRemoved(block); } -}; - -class PythonQtWrapper_QTextBlockGroup : public QObject -{ Q_OBJECT -public: -public slots: - void blockFormatChanged(QTextBlockGroup* theWrappedObject, const QTextBlock& block); - void blockInserted(QTextBlockGroup* theWrappedObject, const QTextBlock& block); - void blockRemoved(QTextBlockGroup* theWrappedObject, const QTextBlock& block); -}; - - - - - -class PythonQtShell_QTextBlockUserData : public QTextBlockUserData -{ -public: - PythonQtShell_QTextBlockUserData():QTextBlockUserData(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextBlockUserData : public QObject -{ Q_OBJECT -public: -public slots: -QTextBlockUserData* new_QTextBlockUserData(); -void delete_QTextBlockUserData(QTextBlockUserData* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QTextBrowser : public QTextBrowser -{ -public: - PythonQtShell_QTextBrowser(QWidget* parent = 0):QTextBrowser(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void backward(); -virtual bool canInsertFromMimeData(const QMimeData* source) const; -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* e); -virtual QMimeData* createMimeDataFromSelection() const; -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* e); -virtual void dragLeaveEvent(QDragLeaveEvent* e); -virtual void dragMoveEvent(QDragMoveEvent* e); -virtual void dropEvent(QDropEvent* e); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* ev); -virtual void forward(); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void home(); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; -virtual void insertFromMimeData(const QMimeData* source); -virtual void keyPressEvent(QKeyEvent* ev); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual QVariant loadResource(int type, const QUrl& name); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* e); -virtual void mouseMoveEvent(QMouseEvent* ev); -virtual void mousePressEvent(QMouseEvent* ev); -virtual void mouseReleaseEvent(QMouseEvent* ev); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void reload(); -virtual void resizeEvent(QResizeEvent* e); -virtual void scrollContentsBy(int dx, int dy); -virtual void setSource(const QUrl& name); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual bool viewportEvent(QEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTextBrowser : public QTextBrowser -{ public: -inline void promoted_backward() { QTextBrowser::backward(); } -inline bool promoted_event(QEvent* e) { return QTextBrowser::event(e); } -inline bool promoted_focusNextPrevChild(bool next) { return QTextBrowser::focusNextPrevChild(next); } -inline void promoted_focusOutEvent(QFocusEvent* ev) { QTextBrowser::focusOutEvent(ev); } -inline void promoted_forward() { QTextBrowser::forward(); } -inline void promoted_home() { QTextBrowser::home(); } -inline void promoted_keyPressEvent(QKeyEvent* ev) { QTextBrowser::keyPressEvent(ev); } -inline QVariant promoted_loadResource(int type, const QUrl& name) { return QTextBrowser::loadResource(type, name); } -inline void promoted_mouseMoveEvent(QMouseEvent* ev) { QTextBrowser::mouseMoveEvent(ev); } -inline void promoted_mousePressEvent(QMouseEvent* ev) { QTextBrowser::mousePressEvent(ev); } -inline void promoted_mouseReleaseEvent(QMouseEvent* ev) { QTextBrowser::mouseReleaseEvent(ev); } -inline void promoted_paintEvent(QPaintEvent* e) { QTextBrowser::paintEvent(e); } -inline void promoted_reload() { QTextBrowser::reload(); } -inline void promoted_setSource(const QUrl& name) { QTextBrowser::setSource(name); } -}; - -class PythonQtWrapper_QTextBrowser : public QObject -{ Q_OBJECT -public: -public slots: -QTextBrowser* new_QTextBrowser(QWidget* parent = 0); -void delete_QTextBrowser(QTextBrowser* obj) { delete obj; } - int backwardHistoryCount(QTextBrowser* theWrappedObject) const; - void clearHistory(QTextBrowser* theWrappedObject); - bool event(QTextBrowser* theWrappedObject, QEvent* e); - bool focusNextPrevChild(QTextBrowser* theWrappedObject, bool next); - void focusOutEvent(QTextBrowser* theWrappedObject, QFocusEvent* ev); - int forwardHistoryCount(QTextBrowser* theWrappedObject) const; - QString historyTitle(QTextBrowser* theWrappedObject, int arg__1) const; - QUrl historyUrl(QTextBrowser* theWrappedObject, int arg__1) const; - bool isBackwardAvailable(QTextBrowser* theWrappedObject) const; - bool isForwardAvailable(QTextBrowser* theWrappedObject) const; - void keyPressEvent(QTextBrowser* theWrappedObject, QKeyEvent* ev); - QVariant loadResource(QTextBrowser* theWrappedObject, int type, const QUrl& name); - void mouseMoveEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); - void mousePressEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); - void mouseReleaseEvent(QTextBrowser* theWrappedObject, QMouseEvent* ev); - bool openExternalLinks(QTextBrowser* theWrappedObject) const; - bool openLinks(QTextBrowser* theWrappedObject) const; - void paintEvent(QTextBrowser* theWrappedObject, QPaintEvent* e); - QStringList searchPaths(QTextBrowser* theWrappedObject) const; - void setOpenExternalLinks(QTextBrowser* theWrappedObject, bool open); - void setOpenLinks(QTextBrowser* theWrappedObject, bool open); - void setSearchPaths(QTextBrowser* theWrappedObject, const QStringList& paths); - QUrl source(QTextBrowser* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextCharFormat : public QTextCharFormat -{ -public: - PythonQtShell_QTextCharFormat():QTextCharFormat(),_wrapper(NULL) {}; - PythonQtShell_QTextCharFormat(const QTextFormat& fmt):QTextCharFormat(fmt),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextCharFormat : public QObject -{ Q_OBJECT -public: -Q_ENUMS(VerticalAlignment UnderlineStyle ) -enum VerticalAlignment{ - AlignNormal = QTextCharFormat::AlignNormal, AlignSuperScript = QTextCharFormat::AlignSuperScript, AlignSubScript = QTextCharFormat::AlignSubScript, AlignMiddle = QTextCharFormat::AlignMiddle, AlignTop = QTextCharFormat::AlignTop, AlignBottom = QTextCharFormat::AlignBottom}; -enum UnderlineStyle{ - NoUnderline = QTextCharFormat::NoUnderline, SingleUnderline = QTextCharFormat::SingleUnderline, DashUnderline = QTextCharFormat::DashUnderline, DotLine = QTextCharFormat::DotLine, DashDotLine = QTextCharFormat::DashDotLine, DashDotDotLine = QTextCharFormat::DashDotDotLine, WaveUnderline = QTextCharFormat::WaveUnderline, SpellCheckUnderline = QTextCharFormat::SpellCheckUnderline}; -public slots: -QTextCharFormat* new_QTextCharFormat(); -QTextCharFormat* new_QTextCharFormat(const QTextCharFormat& other) { -PythonQtShell_QTextCharFormat* a = new PythonQtShell_QTextCharFormat(); -*((QTextCharFormat*)a) = other; -return a; } -void delete_QTextCharFormat(QTextCharFormat* obj) { delete obj; } - QString anchorHref(QTextCharFormat* theWrappedObject) const; - QStringList anchorNames(QTextCharFormat* theWrappedObject) const; - QFont font(QTextCharFormat* theWrappedObject) const; - QFont::Capitalization fontCapitalization(QTextCharFormat* theWrappedObject) const; - QString fontFamily(QTextCharFormat* theWrappedObject) const; - bool fontFixedPitch(QTextCharFormat* theWrappedObject) const; - bool fontItalic(QTextCharFormat* theWrappedObject) const; - bool fontKerning(QTextCharFormat* theWrappedObject) const; - qreal fontLetterSpacing(QTextCharFormat* theWrappedObject) const; - bool fontOverline(QTextCharFormat* theWrappedObject) const; - qreal fontPointSize(QTextCharFormat* theWrappedObject) const; - bool fontStrikeOut(QTextCharFormat* theWrappedObject) const; - QFont::StyleHint fontStyleHint(QTextCharFormat* theWrappedObject) const; - QFont::StyleStrategy fontStyleStrategy(QTextCharFormat* theWrappedObject) const; - bool fontUnderline(QTextCharFormat* theWrappedObject) const; - int fontWeight(QTextCharFormat* theWrappedObject) const; - qreal fontWordSpacing(QTextCharFormat* theWrappedObject) const; - bool isAnchor(QTextCharFormat* theWrappedObject) const; - bool isValid(QTextCharFormat* theWrappedObject) const; - void setAnchor(QTextCharFormat* theWrappedObject, bool anchor); - void setAnchorHref(QTextCharFormat* theWrappedObject, const QString& value); - void setAnchorNames(QTextCharFormat* theWrappedObject, const QStringList& names); - void setFont(QTextCharFormat* theWrappedObject, const QFont& font); - void setFontCapitalization(QTextCharFormat* theWrappedObject, QFont::Capitalization capitalization); - void setFontFamily(QTextCharFormat* theWrappedObject, const QString& family); - void setFontFixedPitch(QTextCharFormat* theWrappedObject, bool fixedPitch); - void setFontItalic(QTextCharFormat* theWrappedObject, bool italic); - void setFontKerning(QTextCharFormat* theWrappedObject, bool enable); - void setFontLetterSpacing(QTextCharFormat* theWrappedObject, qreal spacing); - void setFontOverline(QTextCharFormat* theWrappedObject, bool overline); - void setFontPointSize(QTextCharFormat* theWrappedObject, qreal size); - void setFontStrikeOut(QTextCharFormat* theWrappedObject, bool strikeOut); - void setFontStyleHint(QTextCharFormat* theWrappedObject, QFont::StyleHint hint, QFont::StyleStrategy strategy = QFont::PreferDefault); - void setFontStyleStrategy(QTextCharFormat* theWrappedObject, QFont::StyleStrategy strategy); - void setFontUnderline(QTextCharFormat* theWrappedObject, bool underline); - void setFontWeight(QTextCharFormat* theWrappedObject, int weight); - void setFontWordSpacing(QTextCharFormat* theWrappedObject, qreal spacing); - void setTableCellColumnSpan(QTextCharFormat* theWrappedObject, int tableCellColumnSpan); - void setTableCellRowSpan(QTextCharFormat* theWrappedObject, int tableCellRowSpan); - void setTextOutline(QTextCharFormat* theWrappedObject, const QPen& pen); - void setToolTip(QTextCharFormat* theWrappedObject, const QString& tip); - void setUnderlineColor(QTextCharFormat* theWrappedObject, const QColor& color); - void setUnderlineStyle(QTextCharFormat* theWrappedObject, QTextCharFormat::UnderlineStyle style); - void setVerticalAlignment(QTextCharFormat* theWrappedObject, QTextCharFormat::VerticalAlignment alignment); - int tableCellColumnSpan(QTextCharFormat* theWrappedObject) const; - int tableCellRowSpan(QTextCharFormat* theWrappedObject) const; - QPen textOutline(QTextCharFormat* theWrappedObject) const; - QString toolTip(QTextCharFormat* theWrappedObject) const; - QColor underlineColor(QTextCharFormat* theWrappedObject) const; - QTextCharFormat::UnderlineStyle underlineStyle(QTextCharFormat* theWrappedObject) const; - QTextCharFormat::VerticalAlignment verticalAlignment(QTextCharFormat* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextCodecPlugin : public QTextCodecPlugin -{ -public: - PythonQtShell_QTextCodecPlugin(QObject* parent = 0):QTextCodecPlugin(parent),_wrapper(NULL) {}; - -virtual QList aliases() const; -virtual void childEvent(QChildEvent* arg__1); -virtual QTextCodec* createForMib(int mib); -virtual QTextCodec* createForName(const QByteArray& name); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QList mibEnums() const; -virtual QList names() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextCodecPlugin : public QObject -{ Q_OBJECT -public: -public slots: -QTextCodecPlugin* new_QTextCodecPlugin(QObject* parent = 0); -void delete_QTextCodecPlugin(QTextCodecPlugin* obj) { delete obj; } -}; - - - - - -class PythonQtWrapper_QTextCursor : public QObject -{ Q_OBJECT -public: -Q_ENUMS(MoveMode MoveOperation SelectionType ) -enum MoveMode{ - MoveAnchor = QTextCursor::MoveAnchor, KeepAnchor = QTextCursor::KeepAnchor}; -enum MoveOperation{ - NoMove = QTextCursor::NoMove, Start = QTextCursor::Start, Up = QTextCursor::Up, StartOfLine = QTextCursor::StartOfLine, StartOfBlock = QTextCursor::StartOfBlock, StartOfWord = QTextCursor::StartOfWord, PreviousBlock = QTextCursor::PreviousBlock, PreviousCharacter = QTextCursor::PreviousCharacter, PreviousWord = QTextCursor::PreviousWord, Left = QTextCursor::Left, WordLeft = QTextCursor::WordLeft, End = QTextCursor::End, Down = QTextCursor::Down, EndOfLine = QTextCursor::EndOfLine, EndOfWord = QTextCursor::EndOfWord, EndOfBlock = QTextCursor::EndOfBlock, NextBlock = QTextCursor::NextBlock, NextCharacter = QTextCursor::NextCharacter, NextWord = QTextCursor::NextWord, Right = QTextCursor::Right, WordRight = QTextCursor::WordRight, NextCell = QTextCursor::NextCell, PreviousCell = QTextCursor::PreviousCell, NextRow = QTextCursor::NextRow, PreviousRow = QTextCursor::PreviousRow}; -enum SelectionType{ - WordUnderCursor = QTextCursor::WordUnderCursor, LineUnderCursor = QTextCursor::LineUnderCursor, BlockUnderCursor = QTextCursor::BlockUnderCursor, Document = QTextCursor::Document}; -public slots: -QTextCursor* new_QTextCursor(); -QTextCursor* new_QTextCursor(QTextDocument* document); -QTextCursor* new_QTextCursor(QTextFrame* frame); -QTextCursor* new_QTextCursor(const QTextBlock& block); -QTextCursor* new_QTextCursor(const QTextCursor& cursor); -void delete_QTextCursor(QTextCursor* obj) { delete obj; } - int anchor(QTextCursor* theWrappedObject) const; - bool atBlockEnd(QTextCursor* theWrappedObject) const; - bool atBlockStart(QTextCursor* theWrappedObject) const; - bool atEnd(QTextCursor* theWrappedObject) const; - bool atStart(QTextCursor* theWrappedObject) const; - void beginEditBlock(QTextCursor* theWrappedObject); - QTextBlock block(QTextCursor* theWrappedObject) const; - QTextCharFormat blockCharFormat(QTextCursor* theWrappedObject) const; - QTextBlockFormat blockFormat(QTextCursor* theWrappedObject) const; - int blockNumber(QTextCursor* theWrappedObject) const; - QTextCharFormat charFormat(QTextCursor* theWrappedObject) const; - void clearSelection(QTextCursor* theWrappedObject); - int columnNumber(QTextCursor* theWrappedObject) const; - QTextList* createList(QTextCursor* theWrappedObject, QTextListFormat::Style style); - QTextList* createList(QTextCursor* theWrappedObject, const QTextListFormat& format); - QTextFrame* currentFrame(QTextCursor* theWrappedObject) const; - QTextList* currentList(QTextCursor* theWrappedObject) const; - QTextTable* currentTable(QTextCursor* theWrappedObject) const; - void deleteChar(QTextCursor* theWrappedObject); - void deletePreviousChar(QTextCursor* theWrappedObject); - QTextDocument* document(QTextCursor* theWrappedObject) const; - void endEditBlock(QTextCursor* theWrappedObject); - bool hasComplexSelection(QTextCursor* theWrappedObject) const; - bool hasSelection(QTextCursor* theWrappedObject) const; - void insertBlock(QTextCursor* theWrappedObject); - void insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format); - void insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format, const QTextCharFormat& charFormat); - void insertFragment(QTextCursor* theWrappedObject, const QTextDocumentFragment& fragment); - QTextFrame* insertFrame(QTextCursor* theWrappedObject, const QTextFrameFormat& format); - void insertHtml(QTextCursor* theWrappedObject, const QString& html); - void insertImage(QTextCursor* theWrappedObject, const QImage& image, const QString& name = QString()); - void insertImage(QTextCursor* theWrappedObject, const QString& name); - void insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format); - void insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format, QTextFrameFormat::Position alignment); - QTextList* insertList(QTextCursor* theWrappedObject, QTextListFormat::Style style); - QTextList* insertList(QTextCursor* theWrappedObject, const QTextListFormat& format); - QTextTable* insertTable(QTextCursor* theWrappedObject, int rows, int cols); - QTextTable* insertTable(QTextCursor* theWrappedObject, int rows, int cols, const QTextTableFormat& format); - void insertText(QTextCursor* theWrappedObject, const QString& text); - void insertText(QTextCursor* theWrappedObject, const QString& text, const QTextCharFormat& format); - bool isCopyOf(QTextCursor* theWrappedObject, const QTextCursor& other) const; - bool isNull(QTextCursor* theWrappedObject) const; - void joinPreviousEditBlock(QTextCursor* theWrappedObject); - void mergeBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier); - void mergeBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& modifier); - void mergeCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier); - bool movePosition(QTextCursor* theWrappedObject, QTextCursor::MoveOperation op, QTextCursor::MoveMode arg__2 = QTextCursor::MoveAnchor, int n = 1); - bool __ne__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; - bool __lt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; - bool __le__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; - bool __eq__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; - bool __gt__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; - bool __ge__(QTextCursor* theWrappedObject, const QTextCursor& rhs) const; - int position(QTextCursor* theWrappedObject) const; - void removeSelectedText(QTextCursor* theWrappedObject); - void select(QTextCursor* theWrappedObject, QTextCursor::SelectionType selection); - void selectedTableCells(QTextCursor* theWrappedObject, int* firstRow, int* numRows, int* firstColumn, int* numColumns) const; - QString selectedText(QTextCursor* theWrappedObject) const; - QTextDocumentFragment selection(QTextCursor* theWrappedObject) const; - int selectionEnd(QTextCursor* theWrappedObject) const; - int selectionStart(QTextCursor* theWrappedObject) const; - void setBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format); - void setBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& format); - void setCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format); - void setPosition(QTextCursor* theWrappedObject, int pos, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); - void setVisualNavigation(QTextCursor* theWrappedObject, bool b); - bool visualNavigation(QTextCursor* theWrappedObject) const; - bool __nonzero__(QTextCursor* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtShell_QTextDocument : public QTextDocument -{ -public: - PythonQtShell_QTextDocument(QObject* parent = 0):QTextDocument(parent),_wrapper(NULL) {}; - PythonQtShell_QTextDocument(const QString& text, QObject* parent = 0):QTextDocument(text, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual QTextObject* createObject(const QTextFormat& f); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QVariant loadResource(int type, const QUrl& name); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTextDocument : public QTextDocument -{ public: -inline void promoted_clear() { QTextDocument::clear(); } -inline QTextObject* promoted_createObject(const QTextFormat& f) { return QTextDocument::createObject(f); } -inline QVariant promoted_loadResource(int type, const QUrl& name) { return QTextDocument::loadResource(type, name); } -}; - -class PythonQtWrapper_QTextDocument : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ResourceType FindFlag MetaInformation ) -Q_FLAGS(FindFlags ) -enum ResourceType{ - HtmlResource = QTextDocument::HtmlResource, ImageResource = QTextDocument::ImageResource, StyleSheetResource = QTextDocument::StyleSheetResource, UserResource = QTextDocument::UserResource}; -enum FindFlag{ - FindBackward = QTextDocument::FindBackward, FindCaseSensitively = QTextDocument::FindCaseSensitively, FindWholeWords = QTextDocument::FindWholeWords}; -enum MetaInformation{ - DocumentTitle = QTextDocument::DocumentTitle, DocumentUrl = QTextDocument::DocumentUrl}; -Q_DECLARE_FLAGS(FindFlags, FindFlag) -public slots: -QTextDocument* new_QTextDocument(QObject* parent = 0); -QTextDocument* new_QTextDocument(const QString& text, QObject* parent = 0); -void delete_QTextDocument(QTextDocument* obj) { delete obj; } - void addResource(QTextDocument* theWrappedObject, int type, const QUrl& name, const QVariant& resource); - void adjustSize(QTextDocument* theWrappedObject); - QVector allFormats(QTextDocument* theWrappedObject) const; - int availableRedoSteps(QTextDocument* theWrappedObject) const; - int availableUndoSteps(QTextDocument* theWrappedObject) const; - QTextBlock begin(QTextDocument* theWrappedObject) const; - int blockCount(QTextDocument* theWrappedObject) const; - QChar characterAt(QTextDocument* theWrappedObject, int pos) const; - int characterCount(QTextDocument* theWrappedObject) const; - void clear(QTextDocument* theWrappedObject); - QTextDocument* clone(QTextDocument* theWrappedObject, QObject* parent = 0) const; - QTextObject* createObject(QTextDocument* theWrappedObject, const QTextFormat& f); - QFont defaultFont(QTextDocument* theWrappedObject) const; - QString defaultStyleSheet(QTextDocument* theWrappedObject) const; - QTextOption defaultTextOption(QTextDocument* theWrappedObject) const; - QAbstractTextDocumentLayout* documentLayout(QTextDocument* theWrappedObject) const; - qreal documentMargin(QTextDocument* theWrappedObject) const; - void drawContents(QTextDocument* theWrappedObject, QPainter* painter, const QRectF& rect = QRectF()); - QTextBlock end(QTextDocument* theWrappedObject) const; - QTextCursor find(QTextDocument* theWrappedObject, const QRegExp& expr, const QTextCursor& from, QTextDocument::FindFlags options = 0) const; - QTextCursor find(QTextDocument* theWrappedObject, const QRegExp& expr, int from = 0, QTextDocument::FindFlags options = 0) const; - QTextCursor find(QTextDocument* theWrappedObject, const QString& subString, const QTextCursor& from, QTextDocument::FindFlags options = 0) const; - QTextCursor find(QTextDocument* theWrappedObject, const QString& subString, int from = 0, QTextDocument::FindFlags options = 0) const; - QTextBlock findBlock(QTextDocument* theWrappedObject, int pos) const; - QTextBlock findBlockByLineNumber(QTextDocument* theWrappedObject, int blockNumber) const; - QTextBlock findBlockByNumber(QTextDocument* theWrappedObject, int blockNumber) const; - QTextBlock firstBlock(QTextDocument* theWrappedObject) const; - QTextFrame* frameAt(QTextDocument* theWrappedObject, int pos) const; - qreal idealWidth(QTextDocument* theWrappedObject) const; - qreal indentWidth(QTextDocument* theWrappedObject) const; - bool isEmpty(QTextDocument* theWrappedObject) const; - bool isModified(QTextDocument* theWrappedObject) const; - bool isRedoAvailable(QTextDocument* theWrappedObject) const; - bool isUndoAvailable(QTextDocument* theWrappedObject) const; - bool isUndoRedoEnabled(QTextDocument* theWrappedObject) const; - QTextBlock lastBlock(QTextDocument* theWrappedObject) const; - int lineCount(QTextDocument* theWrappedObject) const; - QVariant loadResource(QTextDocument* theWrappedObject, int type, const QUrl& name); - void markContentsDirty(QTextDocument* theWrappedObject, int from, int length); - int maximumBlockCount(QTextDocument* theWrappedObject) const; - QString metaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info) const; - QTextObject* object(QTextDocument* theWrappedObject, int objectIndex) const; - QTextObject* objectForFormat(QTextDocument* theWrappedObject, const QTextFormat& arg__1) const; - int pageCount(QTextDocument* theWrappedObject) const; - QSizeF pageSize(QTextDocument* theWrappedObject) const; - void print(QTextDocument* theWrappedObject, QPrinter* printer) const; - void redo(QTextDocument* theWrappedObject, QTextCursor* cursor); - QVariant resource(QTextDocument* theWrappedObject, int type, const QUrl& name) const; - int revision(QTextDocument* theWrappedObject) const; - QTextFrame* rootFrame(QTextDocument* theWrappedObject) const; - void setDefaultFont(QTextDocument* theWrappedObject, const QFont& font); - void setDefaultStyleSheet(QTextDocument* theWrappedObject, const QString& sheet); - void setDefaultTextOption(QTextDocument* theWrappedObject, const QTextOption& option); - void setDocumentLayout(QTextDocument* theWrappedObject, QAbstractTextDocumentLayout* layout); - void setDocumentMargin(QTextDocument* theWrappedObject, qreal margin); - void setHtml(QTextDocument* theWrappedObject, const QString& html); - void setIndentWidth(QTextDocument* theWrappedObject, qreal width); - void setMaximumBlockCount(QTextDocument* theWrappedObject, int maximum); - void setMetaInformation(QTextDocument* theWrappedObject, QTextDocument::MetaInformation info, const QString& arg__2); - void setPageSize(QTextDocument* theWrappedObject, const QSizeF& size); - void setPlainText(QTextDocument* theWrappedObject, const QString& text); - void setTextWidth(QTextDocument* theWrappedObject, qreal width); - void setUndoRedoEnabled(QTextDocument* theWrappedObject, bool enable); - void setUseDesignMetrics(QTextDocument* theWrappedObject, bool b); - QSizeF size(QTextDocument* theWrappedObject) const; - qreal textWidth(QTextDocument* theWrappedObject) const; - QString toHtml(QTextDocument* theWrappedObject, const QByteArray& encoding = QByteArray()) const; - QString toPlainText(QTextDocument* theWrappedObject) const; - void undo(QTextDocument* theWrappedObject, QTextCursor* cursor); - bool useDesignMetrics(QTextDocument* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextDocumentFragment : public QObject -{ Q_OBJECT -public: -public slots: -QTextDocumentFragment* new_QTextDocumentFragment(); -QTextDocumentFragment* new_QTextDocumentFragment(const QTextCursor& range); -QTextDocumentFragment* new_QTextDocumentFragment(const QTextDocument* document); -QTextDocumentFragment* new_QTextDocumentFragment(const QTextDocumentFragment& rhs); -void delete_QTextDocumentFragment(QTextDocumentFragment* obj) { delete obj; } - QTextDocumentFragment static_QTextDocumentFragment_fromHtml(const QString& html); - QTextDocumentFragment static_QTextDocumentFragment_fromHtml(const QString& html, const QTextDocument* resourceProvider); - QTextDocumentFragment static_QTextDocumentFragment_fromPlainText(const QString& plainText); - bool isEmpty(QTextDocumentFragment* theWrappedObject) const; - QString toHtml(QTextDocumentFragment* theWrappedObject) const; - QString toHtml(QTextDocumentFragment* theWrappedObject, const QByteArray& encoding) const; - QString toPlainText(QTextDocumentFragment* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextDocumentWriter : public QObject -{ Q_OBJECT -public: -public slots: -QTextDocumentWriter* new_QTextDocumentWriter(); -QTextDocumentWriter* new_QTextDocumentWriter(QIODevice* device, const QByteArray& format); -QTextDocumentWriter* new_QTextDocumentWriter(const QString& fileName, const QByteArray& format = QByteArray()); -void delete_QTextDocumentWriter(QTextDocumentWriter* obj) { delete obj; } - QTextCodec* codec(QTextDocumentWriter* theWrappedObject) const; - QIODevice* device(QTextDocumentWriter* theWrappedObject) const; - QString fileName(QTextDocumentWriter* theWrappedObject) const; - QByteArray format(QTextDocumentWriter* theWrappedObject) const; - void setCodec(QTextDocumentWriter* theWrappedObject, QTextCodec* codec); - void setDevice(QTextDocumentWriter* theWrappedObject, QIODevice* device); - void setFileName(QTextDocumentWriter* theWrappedObject, const QString& fileName); - void setFormat(QTextDocumentWriter* theWrappedObject, const QByteArray& format); - QList static_QTextDocumentWriter_supportedDocumentFormats(); - bool write(QTextDocumentWriter* theWrappedObject, const QTextDocument* document); - bool write(QTextDocumentWriter* theWrappedObject, const QTextDocumentFragment& fragment); -}; - - - - - -class PythonQtShell_QTextEdit : public QTextEdit -{ -public: - PythonQtShell_QTextEdit(QWidget* parent = 0):QTextEdit(parent),_wrapper(NULL) {}; - PythonQtShell_QTextEdit(const QString& text, QWidget* parent = 0):QTextEdit(text, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual bool canInsertFromMimeData(const QMimeData* source) const; -virtual void changeEvent(QEvent* e); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* e); -virtual QMimeData* createMimeDataFromSelection() const; -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* e); -virtual void dragLeaveEvent(QDragLeaveEvent* e); -virtual void dragMoveEvent(QDragMoveEvent* e); -virtual void dropEvent(QDropEvent* e); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery property) const; -virtual void insertFromMimeData(const QMimeData* source); -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual QVariant loadResource(int type, const QUrl& name); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* e); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* e); -virtual void mouseReleaseEvent(QMouseEvent* e); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* e); -virtual void resizeEvent(QResizeEvent* e); -virtual void scrollContentsBy(int dx, int dy); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* e); -virtual bool viewportEvent(QEvent* arg__1); -virtual void wheelEvent(QWheelEvent* e); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTextEdit : public QTextEdit -{ public: -inline bool promoted_canInsertFromMimeData(const QMimeData* source) const { return QTextEdit::canInsertFromMimeData(source); } -inline void promoted_changeEvent(QEvent* e) { QTextEdit::changeEvent(e); } -inline void promoted_contextMenuEvent(QContextMenuEvent* e) { QTextEdit::contextMenuEvent(e); } -inline QMimeData* promoted_createMimeDataFromSelection() const { return QTextEdit::createMimeDataFromSelection(); } -inline void promoted_dragEnterEvent(QDragEnterEvent* e) { QTextEdit::dragEnterEvent(e); } -inline void promoted_dragLeaveEvent(QDragLeaveEvent* e) { QTextEdit::dragLeaveEvent(e); } -inline void promoted_dragMoveEvent(QDragMoveEvent* e) { QTextEdit::dragMoveEvent(e); } -inline void promoted_dropEvent(QDropEvent* e) { QTextEdit::dropEvent(e); } -inline bool promoted_event(QEvent* e) { return QTextEdit::event(e); } -inline void promoted_focusInEvent(QFocusEvent* e) { QTextEdit::focusInEvent(e); } -inline bool promoted_focusNextPrevChild(bool next) { return QTextEdit::focusNextPrevChild(next); } -inline void promoted_focusOutEvent(QFocusEvent* e) { QTextEdit::focusOutEvent(e); } -inline void promoted_inputMethodEvent(QInputMethodEvent* arg__1) { QTextEdit::inputMethodEvent(arg__1); } -inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery property) const { return QTextEdit::inputMethodQuery(property); } -inline void promoted_insertFromMimeData(const QMimeData* source) { QTextEdit::insertFromMimeData(source); } -inline void promoted_keyPressEvent(QKeyEvent* e) { QTextEdit::keyPressEvent(e); } -inline void promoted_keyReleaseEvent(QKeyEvent* e) { QTextEdit::keyReleaseEvent(e); } -inline QVariant promoted_loadResource(int type, const QUrl& name) { return QTextEdit::loadResource(type, name); } -inline void promoted_mouseDoubleClickEvent(QMouseEvent* e) { QTextEdit::mouseDoubleClickEvent(e); } -inline void promoted_mouseMoveEvent(QMouseEvent* e) { QTextEdit::mouseMoveEvent(e); } -inline void promoted_mousePressEvent(QMouseEvent* e) { QTextEdit::mousePressEvent(e); } -inline void promoted_mouseReleaseEvent(QMouseEvent* e) { QTextEdit::mouseReleaseEvent(e); } -inline void promoted_paintEvent(QPaintEvent* e) { QTextEdit::paintEvent(e); } -inline void promoted_resizeEvent(QResizeEvent* e) { QTextEdit::resizeEvent(e); } -inline void promoted_scrollContentsBy(int dx, int dy) { QTextEdit::scrollContentsBy(dx, dy); } -inline void promoted_showEvent(QShowEvent* arg__1) { QTextEdit::showEvent(arg__1); } -inline void promoted_timerEvent(QTimerEvent* e) { QTextEdit::timerEvent(e); } -inline void promoted_wheelEvent(QWheelEvent* e) { QTextEdit::wheelEvent(e); } -}; - -class PythonQtWrapper_QTextEdit : public QObject -{ Q_OBJECT -public: -Q_ENUMS(AutoFormattingFlag ) -Q_FLAGS(AutoFormatting ) -enum AutoFormattingFlag{ - AutoNone = QTextEdit::AutoNone, AutoBulletList = QTextEdit::AutoBulletList, AutoAll = QTextEdit::AutoAll}; -Q_DECLARE_FLAGS(AutoFormatting, AutoFormattingFlag) -public slots: -QTextEdit* new_QTextEdit(QWidget* parent = 0); -QTextEdit* new_QTextEdit(const QString& text, QWidget* parent = 0); -void delete_QTextEdit(QTextEdit* obj) { delete obj; } - bool acceptRichText(QTextEdit* theWrappedObject) const; - Qt::Alignment alignment(QTextEdit* theWrappedObject) const; - QString anchorAt(QTextEdit* theWrappedObject, const QPoint& pos) const; - QTextEdit::AutoFormatting autoFormatting(QTextEdit* theWrappedObject) const; - bool canInsertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source) const; - bool canPaste(QTextEdit* theWrappedObject) const; - void changeEvent(QTextEdit* theWrappedObject, QEvent* e); - void contextMenuEvent(QTextEdit* theWrappedObject, QContextMenuEvent* e); - QMimeData* createMimeDataFromSelection(QTextEdit* theWrappedObject) const; - QMenu* createStandardContextMenu(QTextEdit* theWrappedObject); - QMenu* createStandardContextMenu(QTextEdit* theWrappedObject, const QPoint& position); - QTextCharFormat currentCharFormat(QTextEdit* theWrappedObject) const; - QFont currentFont(QTextEdit* theWrappedObject) const; - QTextCursor cursorForPosition(QTextEdit* theWrappedObject, const QPoint& pos) const; - QRect cursorRect(QTextEdit* theWrappedObject) const; - QRect cursorRect(QTextEdit* theWrappedObject, const QTextCursor& cursor) const; - int cursorWidth(QTextEdit* theWrappedObject) const; - QTextDocument* document(QTextEdit* theWrappedObject) const; - QString documentTitle(QTextEdit* theWrappedObject) const; - void dragEnterEvent(QTextEdit* theWrappedObject, QDragEnterEvent* e); - void dragLeaveEvent(QTextEdit* theWrappedObject, QDragLeaveEvent* e); - void dragMoveEvent(QTextEdit* theWrappedObject, QDragMoveEvent* e); - void dropEvent(QTextEdit* theWrappedObject, QDropEvent* e); - void ensureCursorVisible(QTextEdit* theWrappedObject); - bool event(QTextEdit* theWrappedObject, QEvent* e); - QList extraSelections(QTextEdit* theWrappedObject) const; - bool find(QTextEdit* theWrappedObject, const QString& exp, QTextDocument::FindFlags options = 0); - void focusInEvent(QTextEdit* theWrappedObject, QFocusEvent* e); - bool focusNextPrevChild(QTextEdit* theWrappedObject, bool next); - void focusOutEvent(QTextEdit* theWrappedObject, QFocusEvent* e); - QString fontFamily(QTextEdit* theWrappedObject) const; - bool fontItalic(QTextEdit* theWrappedObject) const; - qreal fontPointSize(QTextEdit* theWrappedObject) const; - bool fontUnderline(QTextEdit* theWrappedObject) const; - int fontWeight(QTextEdit* theWrappedObject) const; - void inputMethodEvent(QTextEdit* theWrappedObject, QInputMethodEvent* arg__1); - QVariant inputMethodQuery(QTextEdit* theWrappedObject, Qt::InputMethodQuery property) const; - void insertFromMimeData(QTextEdit* theWrappedObject, const QMimeData* source); - bool isReadOnly(QTextEdit* theWrappedObject) const; - bool isUndoRedoEnabled(QTextEdit* theWrappedObject) const; - void keyPressEvent(QTextEdit* theWrappedObject, QKeyEvent* e); - void keyReleaseEvent(QTextEdit* theWrappedObject, QKeyEvent* e); - int lineWrapColumnOrWidth(QTextEdit* theWrappedObject) const; - QTextEdit::LineWrapMode lineWrapMode(QTextEdit* theWrappedObject) const; - QVariant loadResource(QTextEdit* theWrappedObject, int type, const QUrl& name); - void mergeCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& modifier); - void mouseDoubleClickEvent(QTextEdit* theWrappedObject, QMouseEvent* e); - void mouseMoveEvent(QTextEdit* theWrappedObject, QMouseEvent* e); - void mousePressEvent(QTextEdit* theWrappedObject, QMouseEvent* e); - void mouseReleaseEvent(QTextEdit* theWrappedObject, QMouseEvent* e); - void moveCursor(QTextEdit* theWrappedObject, QTextCursor::MoveOperation operation, QTextCursor::MoveMode mode = QTextCursor::MoveAnchor); - bool overwriteMode(QTextEdit* theWrappedObject) const; - void paintEvent(QTextEdit* theWrappedObject, QPaintEvent* e); - void print(QTextEdit* theWrappedObject, QPrinter* printer) const; - void resizeEvent(QTextEdit* theWrappedObject, QResizeEvent* e); - void scrollContentsBy(QTextEdit* theWrappedObject, int dx, int dy); - void setAcceptRichText(QTextEdit* theWrappedObject, bool accept); - void setAutoFormatting(QTextEdit* theWrappedObject, QTextEdit::AutoFormatting features); - void setCurrentCharFormat(QTextEdit* theWrappedObject, const QTextCharFormat& format); - void setCursorWidth(QTextEdit* theWrappedObject, int width); - void setDocument(QTextEdit* theWrappedObject, QTextDocument* document); - void setDocumentTitle(QTextEdit* theWrappedObject, const QString& title); - void setExtraSelections(QTextEdit* theWrappedObject, const QList& selections); - void setLineWrapColumnOrWidth(QTextEdit* theWrappedObject, int w); - void setLineWrapMode(QTextEdit* theWrappedObject, QTextEdit::LineWrapMode mode); - void setOverwriteMode(QTextEdit* theWrappedObject, bool overwrite); - void setReadOnly(QTextEdit* theWrappedObject, bool ro); - void setTabChangesFocus(QTextEdit* theWrappedObject, bool b); - void setTabStopWidth(QTextEdit* theWrappedObject, int width); - void setTextCursor(QTextEdit* theWrappedObject, const QTextCursor& cursor); - void setTextInteractionFlags(QTextEdit* theWrappedObject, Qt::TextInteractionFlags flags); - void setUndoRedoEnabled(QTextEdit* theWrappedObject, bool enable); - void setWordWrapMode(QTextEdit* theWrappedObject, QTextOption::WrapMode policy); - void showEvent(QTextEdit* theWrappedObject, QShowEvent* arg__1); - bool tabChangesFocus(QTextEdit* theWrappedObject) const; - int tabStopWidth(QTextEdit* theWrappedObject) const; - QColor textBackgroundColor(QTextEdit* theWrappedObject) const; - QColor textColor(QTextEdit* theWrappedObject) const; - QTextCursor textCursor(QTextEdit* theWrappedObject) const; - Qt::TextInteractionFlags textInteractionFlags(QTextEdit* theWrappedObject) const; - void timerEvent(QTextEdit* theWrappedObject, QTimerEvent* e); - QString toHtml(QTextEdit* theWrappedObject) const; - QString toPlainText(QTextEdit* theWrappedObject) const; - void wheelEvent(QTextEdit* theWrappedObject, QWheelEvent* e); - QTextOption::WrapMode wordWrapMode(QTextEdit* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextFragment : public QObject -{ Q_OBJECT -public: -public slots: -QTextFragment* new_QTextFragment(); -QTextFragment* new_QTextFragment(const QTextFragment& o); -void delete_QTextFragment(QTextFragment* obj) { delete obj; } - QTextCharFormat charFormat(QTextFragment* theWrappedObject) const; - int charFormatIndex(QTextFragment* theWrappedObject) const; - bool contains(QTextFragment* theWrappedObject, int position) const; - bool isValid(QTextFragment* theWrappedObject) const; - int length(QTextFragment* theWrappedObject) const; - bool __ne__(QTextFragment* theWrappedObject, const QTextFragment& o) const; - bool __lt__(QTextFragment* theWrappedObject, const QTextFragment& o) const; - bool __eq__(QTextFragment* theWrappedObject, const QTextFragment& o) const; - int position(QTextFragment* theWrappedObject) const; - QString text(QTextFragment* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextFrame : public QTextFrame -{ -public: - PythonQtShell_QTextFrame(QTextDocument* doc):QTextFrame(doc),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextFrame : public QObject -{ Q_OBJECT -public: -public slots: -QTextFrame* new_QTextFrame(QTextDocument* doc); -void delete_QTextFrame(QTextFrame* obj) { delete obj; } - QTextFrame::iterator begin(QTextFrame* theWrappedObject) const; - QList childFrames(QTextFrame* theWrappedObject) const; - QTextFrame::iterator end(QTextFrame* theWrappedObject) const; - QTextCursor firstCursorPosition(QTextFrame* theWrappedObject) const; - int firstPosition(QTextFrame* theWrappedObject) const; - QTextFrameFormat frameFormat(QTextFrame* theWrappedObject) const; - QTextCursor lastCursorPosition(QTextFrame* theWrappedObject) const; - int lastPosition(QTextFrame* theWrappedObject) const; - QTextFrame* parentFrame(QTextFrame* theWrappedObject) const; - void setFrameFormat(QTextFrame* theWrappedObject, const QTextFrameFormat& format); -}; - - - - - -class PythonQtShell_QTextFrameFormat : public QTextFrameFormat -{ -public: - PythonQtShell_QTextFrameFormat():QTextFrameFormat(),_wrapper(NULL) {}; - PythonQtShell_QTextFrameFormat(const QTextFormat& fmt):QTextFrameFormat(fmt),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextFrameFormat : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Position BorderStyle ) -enum Position{ - InFlow = QTextFrameFormat::InFlow, FloatLeft = QTextFrameFormat::FloatLeft, FloatRight = QTextFrameFormat::FloatRight}; -enum BorderStyle{ - BorderStyle_None = QTextFrameFormat::BorderStyle_None, BorderStyle_Dotted = QTextFrameFormat::BorderStyle_Dotted, BorderStyle_Dashed = QTextFrameFormat::BorderStyle_Dashed, BorderStyle_Solid = QTextFrameFormat::BorderStyle_Solid, BorderStyle_Double = QTextFrameFormat::BorderStyle_Double, BorderStyle_DotDash = QTextFrameFormat::BorderStyle_DotDash, BorderStyle_DotDotDash = QTextFrameFormat::BorderStyle_DotDotDash, BorderStyle_Groove = QTextFrameFormat::BorderStyle_Groove, BorderStyle_Ridge = QTextFrameFormat::BorderStyle_Ridge, BorderStyle_Inset = QTextFrameFormat::BorderStyle_Inset, BorderStyle_Outset = QTextFrameFormat::BorderStyle_Outset}; -public slots: -QTextFrameFormat* new_QTextFrameFormat(); -QTextFrameFormat* new_QTextFrameFormat(const QTextFrameFormat& other) { -PythonQtShell_QTextFrameFormat* a = new PythonQtShell_QTextFrameFormat(); -*((QTextFrameFormat*)a) = other; -return a; } -void delete_QTextFrameFormat(QTextFrameFormat* obj) { delete obj; } - qreal border(QTextFrameFormat* theWrappedObject) const; - QBrush borderBrush(QTextFrameFormat* theWrappedObject) const; - QTextFrameFormat::BorderStyle borderStyle(QTextFrameFormat* theWrappedObject) const; - qreal bottomMargin(QTextFrameFormat* theWrappedObject) const; - QTextLength height(QTextFrameFormat* theWrappedObject) const; - bool isValid(QTextFrameFormat* theWrappedObject) const; - qreal leftMargin(QTextFrameFormat* theWrappedObject) const; - qreal margin(QTextFrameFormat* theWrappedObject) const; - qreal padding(QTextFrameFormat* theWrappedObject) const; - QTextFormat::PageBreakFlags pageBreakPolicy(QTextFrameFormat* theWrappedObject) const; - QTextFrameFormat::Position position(QTextFrameFormat* theWrappedObject) const; - qreal rightMargin(QTextFrameFormat* theWrappedObject) const; - void setBorder(QTextFrameFormat* theWrappedObject, qreal border); - void setBorderBrush(QTextFrameFormat* theWrappedObject, const QBrush& brush); - void setBorderStyle(QTextFrameFormat* theWrappedObject, QTextFrameFormat::BorderStyle style); - void setBottomMargin(QTextFrameFormat* theWrappedObject, qreal margin); - void setHeight(QTextFrameFormat* theWrappedObject, const QTextLength& height); - void setHeight(QTextFrameFormat* theWrappedObject, qreal height); - void setLeftMargin(QTextFrameFormat* theWrappedObject, qreal margin); - void setMargin(QTextFrameFormat* theWrappedObject, qreal margin); - void setPadding(QTextFrameFormat* theWrappedObject, qreal padding); - void setPageBreakPolicy(QTextFrameFormat* theWrappedObject, QTextFormat::PageBreakFlags flags); - void setPosition(QTextFrameFormat* theWrappedObject, QTextFrameFormat::Position f); - void setRightMargin(QTextFrameFormat* theWrappedObject, qreal margin); - void setTopMargin(QTextFrameFormat* theWrappedObject, qreal margin); - void setWidth(QTextFrameFormat* theWrappedObject, const QTextLength& length); - void setWidth(QTextFrameFormat* theWrappedObject, qreal width); - qreal topMargin(QTextFrameFormat* theWrappedObject) const; - QTextLength width(QTextFrameFormat* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextImageFormat : public QTextImageFormat -{ -public: - PythonQtShell_QTextImageFormat():QTextImageFormat(),_wrapper(NULL) {}; - PythonQtShell_QTextImageFormat(const QTextFormat& format):QTextImageFormat(format),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextImageFormat : public QObject -{ Q_OBJECT -public: -public slots: -QTextImageFormat* new_QTextImageFormat(); -QTextImageFormat* new_QTextImageFormat(const QTextImageFormat& other) { -PythonQtShell_QTextImageFormat* a = new PythonQtShell_QTextImageFormat(); -*((QTextImageFormat*)a) = other; -return a; } -void delete_QTextImageFormat(QTextImageFormat* obj) { delete obj; } - qreal height(QTextImageFormat* theWrappedObject) const; - bool isValid(QTextImageFormat* theWrappedObject) const; - QString name(QTextImageFormat* theWrappedObject) const; - void setHeight(QTextImageFormat* theWrappedObject, qreal height); - void setName(QTextImageFormat* theWrappedObject, const QString& name); - void setWidth(QTextImageFormat* theWrappedObject, qreal width); - qreal width(QTextImageFormat* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextInlineObject : public QObject -{ Q_OBJECT -public: -public slots: -QTextInlineObject* new_QTextInlineObject(); -QTextInlineObject* new_QTextInlineObject(const QTextInlineObject& other) { -QTextInlineObject* a = new QTextInlineObject(); -*((QTextInlineObject*)a) = other; -return a; } -void delete_QTextInlineObject(QTextInlineObject* obj) { delete obj; } - qreal ascent(QTextInlineObject* theWrappedObject) const; - qreal descent(QTextInlineObject* theWrappedObject) const; - QTextFormat format(QTextInlineObject* theWrappedObject) const; - int formatIndex(QTextInlineObject* theWrappedObject) const; - qreal height(QTextInlineObject* theWrappedObject) const; - bool isValid(QTextInlineObject* theWrappedObject) const; - QRectF rect(QTextInlineObject* theWrappedObject) const; - void setAscent(QTextInlineObject* theWrappedObject, qreal a); - void setDescent(QTextInlineObject* theWrappedObject, qreal d); - void setWidth(QTextInlineObject* theWrappedObject, qreal w); - Qt::LayoutDirection textDirection(QTextInlineObject* theWrappedObject) const; - int textPosition(QTextInlineObject* theWrappedObject) const; - qreal width(QTextInlineObject* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextItem : public QTextItem -{ -public: - PythonQtShell_QTextItem():QTextItem(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextItem : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RenderFlag ) -Q_FLAGS(RenderFlags ) -enum RenderFlag{ - RightToLeft = QTextItem::RightToLeft, Overline = QTextItem::Overline, Underline = QTextItem::Underline, StrikeOut = QTextItem::StrikeOut, Dummy = QTextItem::Dummy}; -Q_DECLARE_FLAGS(RenderFlags, RenderFlag) -public slots: -QTextItem* new_QTextItem(); -void delete_QTextItem(QTextItem* obj) { delete obj; } - qreal ascent(QTextItem* theWrappedObject) const; - qreal descent(QTextItem* theWrappedObject) const; - QFont font(QTextItem* theWrappedObject) const; - QTextItem::RenderFlags renderFlags(QTextItem* theWrappedObject) const; - QString text(QTextItem* theWrappedObject) const; - qreal width(QTextItem* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextLine : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Edge CursorPosition ) -enum Edge{ - Leading = QTextLine::Leading, Trailing = QTextLine::Trailing}; -enum CursorPosition{ - CursorBetweenCharacters = QTextLine::CursorBetweenCharacters, CursorOnCharacter = QTextLine::CursorOnCharacter}; -public slots: -QTextLine* new_QTextLine(); -QTextLine* new_QTextLine(const QTextLine& other) { -QTextLine* a = new QTextLine(); -*((QTextLine*)a) = other; -return a; } -void delete_QTextLine(QTextLine* obj) { delete obj; } - qreal ascent(QTextLine* theWrappedObject) const; - qreal cursorToX(QTextLine* theWrappedObject, int cursorPos, QTextLine::Edge edge = QTextLine::Leading) const; - qreal descent(QTextLine* theWrappedObject) const; - void draw(QTextLine* theWrappedObject, QPainter* p, const QPointF& point, const QTextLayout::FormatRange* selection = 0) const; - qreal height(QTextLine* theWrappedObject) const; - bool isValid(QTextLine* theWrappedObject) const; - qreal leading(QTextLine* theWrappedObject) const; - bool leadingIncluded(QTextLine* theWrappedObject) const; - int lineNumber(QTextLine* theWrappedObject) const; - QRectF naturalTextRect(QTextLine* theWrappedObject) const; - qreal naturalTextWidth(QTextLine* theWrappedObject) const; - QPointF position(QTextLine* theWrappedObject) const; - QRectF rect(QTextLine* theWrappedObject) const; - void setLeadingIncluded(QTextLine* theWrappedObject, bool included); - void setLineWidth(QTextLine* theWrappedObject, qreal width); - void setNumColumns(QTextLine* theWrappedObject, int columns); - void setNumColumns(QTextLine* theWrappedObject, int columns, qreal alignmentWidth); - void setPosition(QTextLine* theWrappedObject, const QPointF& pos); - int textLength(QTextLine* theWrappedObject) const; - int textStart(QTextLine* theWrappedObject) const; - qreal width(QTextLine* theWrappedObject) const; - qreal x(QTextLine* theWrappedObject) const; - int xToCursor(QTextLine* theWrappedObject, qreal x, QTextLine::CursorPosition arg__2 = QTextLine::CursorBetweenCharacters) const; - qreal y(QTextLine* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextList : public QTextList -{ -public: - PythonQtShell_QTextList(QTextDocument* doc):QTextList(doc),_wrapper(NULL) {}; - -virtual void blockFormatChanged(const QTextBlock& block); -virtual void blockInserted(const QTextBlock& block); -virtual void blockRemoved(const QTextBlock& block); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextList : public QObject -{ Q_OBJECT -public: -public slots: -QTextList* new_QTextList(QTextDocument* doc); -void delete_QTextList(QTextList* obj) { delete obj; } - void add(QTextList* theWrappedObject, const QTextBlock& block); - int count(QTextList* theWrappedObject) const; - QTextListFormat format(QTextList* theWrappedObject) const; - QTextBlock item(QTextList* theWrappedObject, int i) const; - int itemNumber(QTextList* theWrappedObject, const QTextBlock& arg__1) const; - QString itemText(QTextList* theWrappedObject, const QTextBlock& arg__1) const; - void remove(QTextList* theWrappedObject, const QTextBlock& arg__1); - void removeItem(QTextList* theWrappedObject, int i); - void setFormat(QTextList* theWrappedObject, const QTextListFormat& format); -}; - - - - - -class PythonQtShell_QTextListFormat : public QTextListFormat -{ -public: - PythonQtShell_QTextListFormat():QTextListFormat(),_wrapper(NULL) {}; - PythonQtShell_QTextListFormat(const QTextFormat& fmt):QTextListFormat(fmt),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextListFormat : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Style ) -enum Style{ - ListDisc = QTextListFormat::ListDisc, ListCircle = QTextListFormat::ListCircle, ListSquare = QTextListFormat::ListSquare, ListDecimal = QTextListFormat::ListDecimal, ListLowerAlpha = QTextListFormat::ListLowerAlpha, ListUpperAlpha = QTextListFormat::ListUpperAlpha, ListLowerRoman = QTextListFormat::ListLowerRoman, ListUpperRoman = QTextListFormat::ListUpperRoman, ListStyleUndefined = QTextListFormat::ListStyleUndefined}; -public slots: -QTextListFormat* new_QTextListFormat(); -QTextListFormat* new_QTextListFormat(const QTextListFormat& other) { -PythonQtShell_QTextListFormat* a = new PythonQtShell_QTextListFormat(); -*((QTextListFormat*)a) = other; -return a; } -void delete_QTextListFormat(QTextListFormat* obj) { delete obj; } - int indent(QTextListFormat* theWrappedObject) const; - bool isValid(QTextListFormat* theWrappedObject) const; - void setIndent(QTextListFormat* theWrappedObject, int indent); - void setStyle(QTextListFormat* theWrappedObject, QTextListFormat::Style style); - QTextListFormat::Style style(QTextListFormat* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextObject : public QTextObject -{ -public: - PythonQtShell_QTextObject(QTextDocument* doc):QTextObject(doc),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextObject : public QObject -{ Q_OBJECT -public: -public slots: - QTextDocument* document(QTextObject* theWrappedObject) const; - QTextFormat format(QTextObject* theWrappedObject) const; - int formatIndex(QTextObject* theWrappedObject) const; - int objectIndex(QTextObject* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextTable : public QTextTable -{ -public: - PythonQtShell_QTextTable(QTextDocument* doc):QTextTable(doc),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextTable : public QObject -{ Q_OBJECT -public: -public slots: -QTextTable* new_QTextTable(QTextDocument* doc); -void delete_QTextTable(QTextTable* obj) { delete obj; } - void appendColumns(QTextTable* theWrappedObject, int count); - void appendRows(QTextTable* theWrappedObject, int count); - QTextTableCell cellAt(QTextTable* theWrappedObject, const QTextCursor& c) const; - QTextTableCell cellAt(QTextTable* theWrappedObject, int position) const; - QTextTableCell cellAt(QTextTable* theWrappedObject, int row, int col) const; - int columns(QTextTable* theWrappedObject) const; - QTextTableFormat format(QTextTable* theWrappedObject) const; - void insertColumns(QTextTable* theWrappedObject, int pos, int num); - void insertRows(QTextTable* theWrappedObject, int pos, int num); - void mergeCells(QTextTable* theWrappedObject, const QTextCursor& cursor); - void mergeCells(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols); - void removeColumns(QTextTable* theWrappedObject, int pos, int num); - void removeRows(QTextTable* theWrappedObject, int pos, int num); - void resize(QTextTable* theWrappedObject, int rows, int cols); - QTextCursor rowEnd(QTextTable* theWrappedObject, const QTextCursor& c) const; - QTextCursor rowStart(QTextTable* theWrappedObject, const QTextCursor& c) const; - int rows(QTextTable* theWrappedObject) const; - void setFormat(QTextTable* theWrappedObject, const QTextTableFormat& format); - void splitCell(QTextTable* theWrappedObject, int row, int col, int numRows, int numCols); -}; - - - - - -class PythonQtWrapper_QTextTableCell : public QObject -{ Q_OBJECT -public: -public slots: -QTextTableCell* new_QTextTableCell(); -QTextTableCell* new_QTextTableCell(const QTextTableCell& o); -void delete_QTextTableCell(QTextTableCell* obj) { delete obj; } - QTextFrame::iterator begin(QTextTableCell* theWrappedObject) const; - int column(QTextTableCell* theWrappedObject) const; - int columnSpan(QTextTableCell* theWrappedObject) const; - QTextFrame::iterator end(QTextTableCell* theWrappedObject) const; - QTextCursor firstCursorPosition(QTextTableCell* theWrappedObject) const; - int firstPosition(QTextTableCell* theWrappedObject) const; - QTextCharFormat format(QTextTableCell* theWrappedObject) const; - bool isValid(QTextTableCell* theWrappedObject) const; - QTextCursor lastCursorPosition(QTextTableCell* theWrappedObject) const; - int lastPosition(QTextTableCell* theWrappedObject) const; - bool __ne__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const; - bool __eq__(QTextTableCell* theWrappedObject, const QTextTableCell& other) const; - int row(QTextTableCell* theWrappedObject) const; - int rowSpan(QTextTableCell* theWrappedObject) const; - void setFormat(QTextTableCell* theWrappedObject, const QTextCharFormat& format); - int tableCellFormatIndex(QTextTableCell* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextTableCellFormat : public QTextTableCellFormat -{ -public: - PythonQtShell_QTextTableCellFormat():QTextTableCellFormat(),_wrapper(NULL) {}; - PythonQtShell_QTextTableCellFormat(const QTextFormat& fmt):QTextTableCellFormat(fmt),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextTableCellFormat : public QObject -{ Q_OBJECT -public: -public slots: -QTextTableCellFormat* new_QTextTableCellFormat(); -QTextTableCellFormat* new_QTextTableCellFormat(const QTextTableCellFormat& other) { -PythonQtShell_QTextTableCellFormat* a = new PythonQtShell_QTextTableCellFormat(); -*((QTextTableCellFormat*)a) = other; -return a; } -void delete_QTextTableCellFormat(QTextTableCellFormat* obj) { delete obj; } - qreal bottomPadding(QTextTableCellFormat* theWrappedObject) const; - bool isValid(QTextTableCellFormat* theWrappedObject) const; - qreal leftPadding(QTextTableCellFormat* theWrappedObject) const; - qreal rightPadding(QTextTableCellFormat* theWrappedObject) const; - void setBottomPadding(QTextTableCellFormat* theWrappedObject, qreal padding); - void setLeftPadding(QTextTableCellFormat* theWrappedObject, qreal padding); - void setPadding(QTextTableCellFormat* theWrappedObject, qreal padding); - void setRightPadding(QTextTableCellFormat* theWrappedObject, qreal padding); - void setTopPadding(QTextTableCellFormat* theWrappedObject, qreal padding); - qreal topPadding(QTextTableCellFormat* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QTextTableFormat : public QTextTableFormat -{ -public: - PythonQtShell_QTextTableFormat():QTextTableFormat(),_wrapper(NULL) {}; - PythonQtShell_QTextTableFormat(const QTextFormat& fmt):QTextTableFormat(fmt),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTextTableFormat : public QObject -{ Q_OBJECT -public: -public slots: -QTextTableFormat* new_QTextTableFormat(); -QTextTableFormat* new_QTextTableFormat(const QTextTableFormat& other) { -PythonQtShell_QTextTableFormat* a = new PythonQtShell_QTextTableFormat(); -*((QTextTableFormat*)a) = other; -return a; } -void delete_QTextTableFormat(QTextTableFormat* obj) { delete obj; } - Qt::Alignment alignment(QTextTableFormat* theWrappedObject) const; - qreal cellPadding(QTextTableFormat* theWrappedObject) const; - qreal cellSpacing(QTextTableFormat* theWrappedObject) const; - void clearColumnWidthConstraints(QTextTableFormat* theWrappedObject); - QVector columnWidthConstraints(QTextTableFormat* theWrappedObject) const; - int columns(QTextTableFormat* theWrappedObject) const; - int headerRowCount(QTextTableFormat* theWrappedObject) const; - bool isValid(QTextTableFormat* theWrappedObject) const; - void setAlignment(QTextTableFormat* theWrappedObject, Qt::Alignment alignment); - void setCellPadding(QTextTableFormat* theWrappedObject, qreal padding); - void setCellSpacing(QTextTableFormat* theWrappedObject, qreal spacing); - void setColumnWidthConstraints(QTextTableFormat* theWrappedObject, const QVector& constraints); - void setColumns(QTextTableFormat* theWrappedObject, int columns); - void setHeaderRowCount(QTextTableFormat* theWrappedObject, int count); -}; - - - - - -class PythonQtShell_QTileRules : public QTileRules -{ -public: - PythonQtShell_QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule):QTileRules(horizontalRule, verticalRule),_wrapper(NULL) {}; - PythonQtShell_QTileRules(Qt::TileRule rule = Qt::StretchTile):QTileRules(rule),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTileRules : public QObject -{ Q_OBJECT -public: -public slots: -QTileRules* new_QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule); -QTileRules* new_QTileRules(Qt::TileRule rule = Qt::StretchTile); -void delete_QTileRules(QTileRules* obj) { delete obj; } -void py_set_vertical(QTileRules* theWrappedObject, Qt::TileRule vertical){ theWrappedObject->vertical = vertical; } -Qt::TileRule py_get_vertical(QTileRules* theWrappedObject){ return theWrappedObject->vertical; } -void py_set_horizontal(QTileRules* theWrappedObject, Qt::TileRule horizontal){ theWrappedObject->horizontal = horizontal; } -Qt::TileRule py_get_horizontal(QTileRules* theWrappedObject){ return theWrappedObject->horizontal; } -}; - - - - - -class PythonQtShell_QTimeEdit : public QTimeEdit -{ -public: - PythonQtShell_QTimeEdit(QWidget* parent = 0):QTimeEdit(parent),_wrapper(NULL) {}; - PythonQtShell_QTimeEdit(const QTime& time, QWidget* parent = 0):QTimeEdit(time, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void closeEvent(QCloseEvent* event); -virtual void contextMenuEvent(QContextMenuEvent* event); -virtual void customEvent(QEvent* arg__1); -virtual QDateTime dateTimeFromText(const QString& text) const; -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fixup(QString& input) const; -virtual void focusInEvent(QFocusEvent* event); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* event); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* event); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* event); -virtual void keyReleaseEvent(QKeyEvent* event); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* event); -virtual void mousePressEvent(QMouseEvent* event); -virtual void mouseReleaseEvent(QMouseEvent* event); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* event); -virtual void stepBy(int steps); -virtual QAbstractSpinBox::StepEnabled stepEnabled() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual QString textFromDateTime(const QDateTime& dt) const; -virtual void timerEvent(QTimerEvent* event); -virtual QValidator::State validate(QString& input, int& pos) const; -virtual void wheelEvent(QWheelEvent* event); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTimeEdit : public QObject -{ Q_OBJECT -public: -public slots: -QTimeEdit* new_QTimeEdit(QWidget* parent = 0); -QTimeEdit* new_QTimeEdit(const QTime& time, QWidget* parent = 0); -void delete_QTimeEdit(QTimeEdit* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QToolBar : public QToolBar -{ -public: - PythonQtShell_QToolBar(QWidget* parent = 0):QToolBar(parent),_wrapper(NULL) {}; - PythonQtShell_QToolBar(const QString& title, QWidget* parent = 0):QToolBar(title, parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* event); -virtual void changeEvent(QEvent* event); -virtual void childEvent(QChildEvent* event); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* event); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* event); -virtual void resizeEvent(QResizeEvent* event); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QToolBar : public QToolBar -{ public: -inline void promoted_actionEvent(QActionEvent* event) { QToolBar::actionEvent(event); } -inline void promoted_changeEvent(QEvent* event) { QToolBar::changeEvent(event); } -inline void promoted_childEvent(QChildEvent* event) { QToolBar::childEvent(event); } -inline bool promoted_event(QEvent* event) { return QToolBar::event(event); } -inline void promoted_paintEvent(QPaintEvent* event) { QToolBar::paintEvent(event); } -inline void promoted_resizeEvent(QResizeEvent* event) { QToolBar::resizeEvent(event); } -}; - -class PythonQtWrapper_QToolBar : public QObject -{ Q_OBJECT -public: -public slots: -QToolBar* new_QToolBar(QWidget* parent = 0); -QToolBar* new_QToolBar(const QString& title, QWidget* parent = 0); -void delete_QToolBar(QToolBar* obj) { delete obj; } - QAction* actionAt(QToolBar* theWrappedObject, const QPoint& p) const; - QAction* actionAt(QToolBar* theWrappedObject, int x, int y) const; - void actionEvent(QToolBar* theWrappedObject, QActionEvent* event); - QRect actionGeometry(QToolBar* theWrappedObject, QAction* action) const; - void addAction(QToolBar* theWrappedObject, QAction* action); - QAction* addAction(QToolBar* theWrappedObject, const QIcon& icon, const QString& text); - QAction* addAction(QToolBar* theWrappedObject, const QIcon& icon, const QString& text, const QObject* receiver, const char* member); - QAction* addAction(QToolBar* theWrappedObject, const QString& text); - QAction* addAction(QToolBar* theWrappedObject, const QString& text, const QObject* receiver, const char* member); - QAction* addSeparator(QToolBar* theWrappedObject); - QAction* addWidget(QToolBar* theWrappedObject, QWidget* widget); - Qt::ToolBarAreas allowedAreas(QToolBar* theWrappedObject) const; - void changeEvent(QToolBar* theWrappedObject, QEvent* event); - void childEvent(QToolBar* theWrappedObject, QChildEvent* event); - void clear(QToolBar* theWrappedObject); - bool event(QToolBar* theWrappedObject, QEvent* event); - QSize iconSize(QToolBar* theWrappedObject) const; - QAction* insertSeparator(QToolBar* theWrappedObject, QAction* before); - QAction* insertWidget(QToolBar* theWrappedObject, QAction* before, QWidget* widget); - bool isAreaAllowed(QToolBar* theWrappedObject, Qt::ToolBarArea area) const; - bool isFloatable(QToolBar* theWrappedObject) const; - bool isFloating(QToolBar* theWrappedObject) const; - bool isMovable(QToolBar* theWrappedObject) const; - Qt::Orientation orientation(QToolBar* theWrappedObject) const; - void paintEvent(QToolBar* theWrappedObject, QPaintEvent* event); - void resizeEvent(QToolBar* theWrappedObject, QResizeEvent* event); - void setAllowedAreas(QToolBar* theWrappedObject, Qt::ToolBarAreas areas); - void setFloatable(QToolBar* theWrappedObject, bool floatable); - void setMovable(QToolBar* theWrappedObject, bool movable); - void setOrientation(QToolBar* theWrappedObject, Qt::Orientation orientation); - QAction* toggleViewAction(QToolBar* theWrappedObject) const; - Qt::ToolButtonStyle toolButtonStyle(QToolBar* theWrappedObject) const; - QWidget* widgetForAction(QToolBar* theWrappedObject, QAction* action) const; - - QAction* addAction (QToolBar* menu, const QString & text, PyObject* callable) - { - QAction* a = menu->addAction(text); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - - QAction* addAction (QToolBar* menu, const QIcon& icon, const QString& text, PyObject* callable) - { - QAction* a = menu->addAction(text); - a->setIcon(icon); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - -}; - - - - - -class PythonQtWrapper_QToolBarChangeEvent : public QObject -{ Q_OBJECT -public: -public slots: -QToolBarChangeEvent* new_QToolBarChangeEvent(bool t); -void delete_QToolBarChangeEvent(QToolBarChangeEvent* obj) { delete obj; } - bool toggle(QToolBarChangeEvent* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QToolBox : public QToolBox -{ -public: - PythonQtShell_QToolBox(QWidget* parent = 0, Qt::WindowFlags f = 0):QToolBox(parent, f),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void itemInserted(int index); -virtual void itemRemoved(int index); -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* e); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QToolBox : public QToolBox -{ public: -inline void promoted_changeEvent(QEvent* arg__1) { QToolBox::changeEvent(arg__1); } -inline bool promoted_event(QEvent* e) { return QToolBox::event(e); } -inline void promoted_itemInserted(int index) { QToolBox::itemInserted(index); } -inline void promoted_itemRemoved(int index) { QToolBox::itemRemoved(index); } -inline void promoted_showEvent(QShowEvent* e) { QToolBox::showEvent(e); } -}; - -class PythonQtWrapper_QToolBox : public QObject -{ Q_OBJECT -public: -public slots: -QToolBox* new_QToolBox(QWidget* parent = 0, Qt::WindowFlags f = 0); -void delete_QToolBox(QToolBox* obj) { delete obj; } - int addItem(QToolBox* theWrappedObject, QWidget* widget, const QIcon& icon, const QString& text); - int addItem(QToolBox* theWrappedObject, QWidget* widget, const QString& text); - void changeEvent(QToolBox* theWrappedObject, QEvent* arg__1); - int count(QToolBox* theWrappedObject) const; - int currentIndex(QToolBox* theWrappedObject) const; - QWidget* currentWidget(QToolBox* theWrappedObject) const; - bool event(QToolBox* theWrappedObject, QEvent* e); - int indexOf(QToolBox* theWrappedObject, QWidget* widget) const; - int insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QIcon& icon, const QString& text); - int insertItem(QToolBox* theWrappedObject, int index, QWidget* widget, const QString& text); - bool isItemEnabled(QToolBox* theWrappedObject, int index) const; - QIcon itemIcon(QToolBox* theWrappedObject, int index) const; - void itemInserted(QToolBox* theWrappedObject, int index); - void itemRemoved(QToolBox* theWrappedObject, int index); - QString itemText(QToolBox* theWrappedObject, int index) const; - QString itemToolTip(QToolBox* theWrappedObject, int index) const; - void removeItem(QToolBox* theWrappedObject, int index); - void setItemEnabled(QToolBox* theWrappedObject, int index, bool enabled); - void setItemIcon(QToolBox* theWrappedObject, int index, const QIcon& icon); - void setItemText(QToolBox* theWrappedObject, int index, const QString& text); - void setItemToolTip(QToolBox* theWrappedObject, int index, const QString& toolTip); - void showEvent(QToolBox* theWrappedObject, QShowEvent* e); - QWidget* widget(QToolBox* theWrappedObject, int index) const; -}; - - - - - -class PythonQtShell_QToolButton : public QToolButton -{ -public: - PythonQtShell_QToolButton(QWidget* parent = 0):QToolButton(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void checkStateSet(); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* e); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* e); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* e); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual bool hitButton(const QPoint& pos) const; -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* e); -virtual void keyReleaseEvent(QKeyEvent* e); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* e); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual void nextCheckState(); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QToolButton : public QToolButton -{ public: -inline void promoted_actionEvent(QActionEvent* arg__1) { QToolButton::actionEvent(arg__1); } -inline void promoted_changeEvent(QEvent* arg__1) { QToolButton::changeEvent(arg__1); } -inline void promoted_enterEvent(QEvent* arg__1) { QToolButton::enterEvent(arg__1); } -inline bool promoted_event(QEvent* e) { return QToolButton::event(e); } -inline bool promoted_hitButton(const QPoint& pos) const { return QToolButton::hitButton(pos); } -inline void promoted_leaveEvent(QEvent* arg__1) { QToolButton::leaveEvent(arg__1); } -inline void promoted_mousePressEvent(QMouseEvent* arg__1) { QToolButton::mousePressEvent(arg__1); } -inline void promoted_mouseReleaseEvent(QMouseEvent* arg__1) { QToolButton::mouseReleaseEvent(arg__1); } -inline void promoted_nextCheckState() { QToolButton::nextCheckState(); } -inline void promoted_paintEvent(QPaintEvent* arg__1) { QToolButton::paintEvent(arg__1); } -inline void promoted_timerEvent(QTimerEvent* arg__1) { QToolButton::timerEvent(arg__1); } -}; - -class PythonQtWrapper_QToolButton : public QObject -{ Q_OBJECT -public: -public slots: -QToolButton* new_QToolButton(QWidget* parent = 0); -void delete_QToolButton(QToolButton* obj) { delete obj; } - void actionEvent(QToolButton* theWrappedObject, QActionEvent* arg__1); - Qt::ArrowType arrowType(QToolButton* theWrappedObject) const; - bool autoRaise(QToolButton* theWrappedObject) const; - void changeEvent(QToolButton* theWrappedObject, QEvent* arg__1); - QAction* defaultAction(QToolButton* theWrappedObject) const; - void enterEvent(QToolButton* theWrappedObject, QEvent* arg__1); - bool event(QToolButton* theWrappedObject, QEvent* e); - bool hitButton(QToolButton* theWrappedObject, const QPoint& pos) const; - void leaveEvent(QToolButton* theWrappedObject, QEvent* arg__1); - QMenu* menu(QToolButton* theWrappedObject) const; - QSize minimumSizeHint(QToolButton* theWrappedObject) const; - void mousePressEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1); - void mouseReleaseEvent(QToolButton* theWrappedObject, QMouseEvent* arg__1); - void nextCheckState(QToolButton* theWrappedObject); - void paintEvent(QToolButton* theWrappedObject, QPaintEvent* arg__1); - QToolButton::ToolButtonPopupMode popupMode(QToolButton* theWrappedObject) const; - void setArrowType(QToolButton* theWrappedObject, Qt::ArrowType type); - void setAutoRaise(QToolButton* theWrappedObject, bool enable); - void setMenu(QToolButton* theWrappedObject, QMenu* menu); - void setPopupMode(QToolButton* theWrappedObject, QToolButton::ToolButtonPopupMode mode); - QSize sizeHint(QToolButton* theWrappedObject) const; - void timerEvent(QToolButton* theWrappedObject, QTimerEvent* arg__1); - Qt::ToolButtonStyle toolButtonStyle(QToolButton* theWrappedObject) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp deleted file mode 100644 index f25015472..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp +++ /dev/null @@ -1,687 +0,0 @@ -#include -#include "com_trolltech_qt_gui_init.h" -#include "com_trolltech_qt_gui0.h" -#include "com_trolltech_qt_gui1.h" -#include "com_trolltech_qt_gui2.h" -#include "com_trolltech_qt_gui3.h" -#include "com_trolltech_qt_gui4.h" -#include "com_trolltech_qt_gui5.h" -#include "com_trolltech_qt_gui6.h" -#include "com_trolltech_qt_gui7.h" -#include "com_trolltech_qt_gui8.h" -#include "com_trolltech_qt_gui9.h" -#include "com_trolltech_qt_gui10.h" - -static void* polymorphichandler_QStyleOption(const void *ptr, char **class_name) -{ - Q_ASSERT(ptr != 0); - QStyleOption *object = (QStyleOption *)ptr; - if (object->type == QStyleOption::SO_Default) { - *class_name = "QStyleOption"; - return (QStyleOption*)object; - } - if (object->type == QStyleOptionDockWidget::Type && object->version == QStyleOptionDockWidget::Version) { - *class_name = "QStyleOptionDockWidget"; - return (QStyleOptionDockWidget*)object; - } - if (object->type == QStyleOptionToolBar::Type && object->version == QStyleOptionToolBar::Version) { - *class_name = "QStyleOptionToolBar"; - return (QStyleOptionToolBar*)object; - } - if (object->type == QStyleOptionFrame::Type && object->version == QStyleOptionFrame::Version) { - *class_name = "QStyleOptionFrame"; - return (QStyleOptionFrame*)object; - } - if (object->type == QStyleOptionComplex::Type && object->version == QStyleOptionComplex::Version) { - *class_name = "QStyleOptionComplex"; - return (QStyleOptionComplex*)object; - } - if (object->type == QStyleOptionTab::Type && object->version == QStyleOptionTab::Version) { - *class_name = "QStyleOptionTab"; - return (QStyleOptionTab*)object; - } - if (object->type == QStyleOptionProgressBar::Type && object->version == QStyleOptionProgressBar::Version) { - *class_name = "QStyleOptionProgressBar"; - return (QStyleOptionProgressBar*)object; - } - if (object->type == QStyleOptionToolBox::Type && object->version == QStyleOptionToolBox::Version) { - *class_name = "QStyleOptionToolBox"; - return (QStyleOptionToolBox*)object; - } - if (object->type == QStyleOptionGraphicsItem::Type && object->version == QStyleOptionGraphicsItem::Version) { - *class_name = "QStyleOptionGraphicsItem"; - return (QStyleOptionGraphicsItem*)object; - } - if (object->type == QStyleOptionButton::Type && object->version == QStyleOptionButton::Version) { - *class_name = "QStyleOptionButton"; - return (QStyleOptionButton*)object; - } - if (object->type == QStyleOptionFocusRect::Type && object->version == QStyleOptionFocusRect::Version) { - *class_name = "QStyleOptionFocusRect"; - return (QStyleOptionFocusRect*)object; - } - if (object->type == QStyleOptionRubberBand::Type && object->version == QStyleOptionRubberBand::Version) { - *class_name = "QStyleOptionRubberBand"; - return (QStyleOptionRubberBand*)object; - } - if (object->type == QStyleOptionMenuItem::Type && object->version == QStyleOptionMenuItem::Version) { - *class_name = "QStyleOptionMenuItem"; - return (QStyleOptionMenuItem*)object; - } - if (object->type == QStyleOptionTabBarBase::Type && object->version == QStyleOptionTabBarBase::Version) { - *class_name = "QStyleOptionTabBarBase"; - return (QStyleOptionTabBarBase*)object; - } - if (object->type == QStyleOptionViewItem::Type && object->version == QStyleOptionViewItem::Version) { - *class_name = "QStyleOptionViewItem"; - return (QStyleOptionViewItem*)object; - } - if (object->type == QStyleOptionTabWidgetFrame::Type && object->version == QStyleOptionTabWidgetFrame::Version) { - *class_name = "QStyleOptionTabWidgetFrame"; - return (QStyleOptionTabWidgetFrame*)object; - } - if (object->type == QStyleOptionHeader::Type && object->version == QStyleOptionHeader::Version) { - *class_name = "QStyleOptionHeader"; - return (QStyleOptionHeader*)object; - } - if (object->type == QStyleOptionSpinBox::Type && object->version == QStyleOptionSpinBox::Version) { - *class_name = "QStyleOptionSpinBox"; - return (QStyleOptionSpinBox*)object; - } - if (object->type == QStyleOptionProgressBarV2::Type && object->version == QStyleOptionProgressBarV2::Version) { - *class_name = "QStyleOptionProgressBarV2"; - return (QStyleOptionProgressBarV2*)object; - } - if (object->type == QStyleOptionDockWidgetV2::Type && object->version == QStyleOptionDockWidgetV2::Version) { - *class_name = "QStyleOptionDockWidgetV2"; - return (QStyleOptionDockWidgetV2*)object; - } - if (object->type == QStyleOptionTabV2::Type && object->version == QStyleOptionTabV2::Version) { - *class_name = "QStyleOptionTabV2"; - return (QStyleOptionTabV2*)object; - } - if (object->type == QStyleOptionToolButton::Type && object->version == QStyleOptionToolButton::Version) { - *class_name = "QStyleOptionToolButton"; - return (QStyleOptionToolButton*)object; - } - if (object->type == QStyleOptionFrameV2::Type && object->version == QStyleOptionFrameV2::Version) { - *class_name = "QStyleOptionFrameV2"; - return (QStyleOptionFrameV2*)object; - } - if (object->type == QStyleOptionViewItemV2::Type && object->version == QStyleOptionViewItemV2::Version) { - *class_name = "QStyleOptionViewItemV2"; - return (QStyleOptionViewItemV2*)object; - } - if (object->type == QStyleOptionTitleBar::Type && object->version == QStyleOptionTitleBar::Version) { - *class_name = "QStyleOptionTitleBar"; - return (QStyleOptionTitleBar*)object; - } - if (object->type == QStyleOptionTabBarBaseV2::Type && object->version == QStyleOptionTabBarBaseV2::Version) { - *class_name = "QStyleOptionTabBarBaseV2"; - return (QStyleOptionTabBarBaseV2*)object; - } - if (object->type == QStyleOptionSlider::Type && object->version == QStyleOptionSlider::Version) { - *class_name = "QStyleOptionSlider"; - return (QStyleOptionSlider*)object; - } - if (object->type == QStyleOptionToolBoxV2::Type && object->version == QStyleOptionToolBoxV2::Version) { - *class_name = "QStyleOptionToolBoxV2"; - return (QStyleOptionToolBoxV2*)object; - } - if (object->type == QStyleOptionComboBox::Type && object->version == QStyleOptionComboBox::Version) { - *class_name = "QStyleOptionComboBox"; - return (QStyleOptionComboBox*)object; - } - if (object->type == QStyleOptionSizeGrip::Type && object->version == QStyleOptionSizeGrip::Version) { - *class_name = "QStyleOptionSizeGrip"; - return (QStyleOptionSizeGrip*)object; - } - if (object->type == QStyleOptionGroupBox::Type && object->version == QStyleOptionGroupBox::Version) { - *class_name = "QStyleOptionGroupBox"; - return (QStyleOptionGroupBox*)object; - } - if (object->type == QStyleOptionViewItemV3::Type && object->version == QStyleOptionViewItemV3::Version) { - *class_name = "QStyleOptionViewItemV3"; - return (QStyleOptionViewItemV3*)object; - } - if (object->type == QStyleOptionTabV3::Type && object->version == QStyleOptionTabV3::Version) { - *class_name = "QStyleOptionTabV3"; - return (QStyleOptionTabV3*)object; - } - if (object->type == QStyleOptionFrameV3::Type && object->version == QStyleOptionFrameV3::Version) { - *class_name = "QStyleOptionFrameV3"; - return (QStyleOptionFrameV3*)object; - } - if (object->type == QStyleOptionViewItemV4::Type && object->version == QStyleOptionViewItemV4::Version) { - *class_name = "QStyleOptionViewItemV4"; - return (QStyleOptionViewItemV4*)object; - } - return NULL; -} -static void* polymorphichandler_QGradient(const void *ptr, char **class_name) -{ - Q_ASSERT(ptr != 0); - QGradient *object = (QGradient *)ptr; - if (object->type() == QGradient::NoGradient) { - *class_name = "QGradient"; - return (QGradient*)object; - } - if (object->type() == QGradient::LinearGradient) { - *class_name = "QLinearGradient"; - return (QLinearGradient*)object; - } - if (object->type() == QGradient::ConicalGradient) { - *class_name = "QConicalGradient"; - return (QConicalGradient*)object; - } - if (object->type() == QGradient::RadialGradient) { - *class_name = "QRadialGradient"; - return (QRadialGradient*)object; - } - return NULL; -} -static void* polymorphichandler_QEvent(const void *ptr, char **class_name) -{ - Q_ASSERT(ptr != 0); - QEvent *object = (QEvent *)ptr; - if (object->type() == QEvent::FocusIn || object->type() == QEvent::FocusOut) { - *class_name = "QFocusEvent"; - return (QFocusEvent*)object; - } - if (object->type() == QEvent::WhatsThisClicked) { - *class_name = "QWhatsThisClickedEvent"; - return (QWhatsThisClickedEvent*)object; - } - if (object->type() == QEvent::Move) { - *class_name = "QMoveEvent"; - return (QMoveEvent*)object; - } - if (object->type() == QEvent::HoverEnter || object->type() == QEvent::HoverLeave || object->type() == QEvent::HoverMove) { - *class_name = "QHoverEvent"; - return (QHoverEvent*)object; - } - if (object->type() == QEvent::DragResponse) { - *class_name = "QDragResponseEvent"; - return (QDragResponseEvent*)object; - } - if (object->type() == QEvent::DragLeave) { - *class_name = "QDragLeaveEvent"; - return (QDragLeaveEvent*)object; - } - if (object->type() == QEvent::ToolTip || object->type() == QEvent::WhatsThis) { - *class_name = "QHelpEvent"; - return (QHelpEvent*)object; - } - if (object->type() == QEvent::FileOpen) { - *class_name = "QFileOpenEvent"; - return (QFileOpenEvent*)object; - } - if (object->type() == QEvent::Clipboard) { - *class_name = "QClipboardEvent"; - return (QClipboardEvent*)object; - } - if (object->type() == QEvent::StatusTip) { - *class_name = "QStatusTipEvent"; - return (QStatusTipEvent*)object; - } - if (object->type() == QEvent::IconDrag) { - *class_name = "QIconDragEvent"; - return (QIconDragEvent*)object; - } - if (object->type() == QEvent::Paint) { - *class_name = "QPaintEvent"; - return (QPaintEvent*)object; - } - if (object->type() == QEvent::Hide) { - *class_name = "QHideEvent"; - return (QHideEvent*)object; - } - if (object->type() == QEvent::ToolBarChange) { - *class_name = "QToolBarChangeEvent"; - return (QToolBarChangeEvent*)object; - } - if (object->type() == QEvent::ActionAdded || object->type() == QEvent::ActionRemoved || object->type() == QEvent::ActionChanged) { - *class_name = "QActionEvent"; - return (QActionEvent*)object; - } - if (object->type() == QEvent::WindowStateChange) { - *class_name = "QWindowStateChangeEvent"; - return (QWindowStateChangeEvent*)object; - } - if (object->type() == QEvent::Shortcut) { - *class_name = "QShortcutEvent"; - return (QShortcutEvent*)object; - } - if (object->type() == QEvent::Close) { - *class_name = "QCloseEvent"; - return (QCloseEvent*)object; - } - if (object->type() == QEvent::Show) { - *class_name = "QShowEvent"; - return (QShowEvent*)object; - } - if (object->type() == QEvent::AccessibilityDescription || object->type() == QEvent::AccessibilityHelp) { - *class_name = "QAccessibleEvent"; - return (QAccessibleEvent*)object; - } - if (object->type() == QEvent::Resize) { - *class_name = "QResizeEvent"; - return (QResizeEvent*)object; - } - if (object->type() == QEvent::Drop) { - *class_name = "QDropEvent"; - return (QDropEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneHoverEnter || object->type() == QEvent::GraphicsSceneHoverLeave || object->type() == QEvent::GraphicsSceneHoverMove) { - *class_name = "QGraphicsSceneHoverEvent"; - return (QGraphicsSceneHoverEvent*)object; - } - if (object->type() == QEvent::KeyPress || object->type() == QEvent::KeyRelease) { - *class_name = "QKeyEvent"; - return (QKeyEvent*)object; - } - if (object->type() == QEvent::MouseButtonDblClick || object->type() == QEvent::MouseButtonPress || object->type() == QEvent::MouseButtonRelease || object->type() == QEvent::MouseMove) { - *class_name = "QMouseEvent"; - return (QMouseEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneHelp) { - *class_name = "QGraphicsSceneHelpEvent"; - return (QGraphicsSceneHelpEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneMouseDoubleClick || object->type() == QEvent::GraphicsSceneMouseMove || object->type() == QEvent::GraphicsSceneMousePress || object->type() == QEvent::GraphicsSceneMouseRelease) { - *class_name = "QGraphicsSceneMouseEvent"; - return (QGraphicsSceneMouseEvent*)object; - } - if (object->type() == QEvent::TouchBegin || object->type() == QEvent::TouchUpdate || object->type() == QEvent::TouchEnd) { - *class_name = "QTouchEvent"; - return (QTouchEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneDragEnter || object->type() == QEvent::GraphicsSceneDragLeave || object->type() == QEvent::GraphicsSceneDragMove || object->type() == QEvent::GraphicsSceneDrop) { - *class_name = "QGraphicsSceneDragDropEvent"; - return (QGraphicsSceneDragDropEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneResize) { - *class_name = "QGraphicsSceneResizeEvent"; - return (QGraphicsSceneResizeEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneMove) { - *class_name = "QGraphicsSceneMoveEvent"; - return (QGraphicsSceneMoveEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneContextMenu) { - *class_name = "QGraphicsSceneContextMenuEvent"; - return (QGraphicsSceneContextMenuEvent*)object; - } - if (object->type() == QEvent::DragMove) { - *class_name = "QDragMoveEvent"; - return (QDragMoveEvent*)object; - } - if (object->type() == QEvent::TabletMove || object->type() == QEvent::TabletPress || object->type() == QEvent::TabletRelease) { - *class_name = "QTabletEvent"; - return (QTabletEvent*)object; - } - if (object->type() == QEvent::Wheel) { - *class_name = "QWheelEvent"; - return (QWheelEvent*)object; - } - if (object->type() == QEvent::ContextMenu) { - *class_name = "QContextMenuEvent"; - return (QContextMenuEvent*)object; - } - if (object->type() == QEvent::GraphicsSceneWheel) { - *class_name = "QGraphicsSceneWheelEvent"; - return (QGraphicsSceneWheelEvent*)object; - } - if (object->type() == QEvent::DragEnter) { - *class_name = "QDragEnterEvent"; - return (QDragEnterEvent*)object; - } - return NULL; -} - -void PythonQt_init_QtGui(PyObject* module) { -PythonQt::priv()->registerClass(&QAbstractButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAbstractGraphicsShapeItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QAbstractGraphicsShapeItem", "QGraphicsItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerClass(&QAbstractItemDelegate::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractItemView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractPageSetupDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractPrintDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractScrollArea::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractSlider::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractSpinBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractTableModel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessible", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessible2Interface", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleBridge", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleInterface", "QAccessible", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleInterfaceEx", "QAccessibleInterface", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleObject", "QAccessibleInterface", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleObjectEx", "QAccessibleInterfaceEx", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAccessiblePlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleTableInterface", "QAccessible2Interface", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleWidget", "QAccessibleObject", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAccessibleWidgetEx", "QAccessibleObjectEx", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAction::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QActionEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QActionGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QApplication::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QBoxLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QButtonGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCDEStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCalendarWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCheckBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCleanlooksStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QClipboard::staticMetaObject, "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QClipboardEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QCloseEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QColorDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QColumnView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QComboBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCommandLinkButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCommonStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QCompleter::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QConicalGradient", "QGradient", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QContextMenuEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDataWidgetMapper::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDateEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDateTimeEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QDesktopServices", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDesktopWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDial::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDialogButtonBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDockWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDoubleSpinBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDoubleValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QDrag::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QDragEnterEvent", "QDragMoveEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QDragLeaveEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QDragMoveEvent", "QDropEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QDragResponseEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QDropEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QErrorMessage::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QFileDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QFileIconProvider", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QFileOpenEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QFocusEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QFocusFrame::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QFontComboBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QFontDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QFontInfo", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QFontMetrics", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QFontMetricsF", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QFormLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QFrame::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGesture::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGradient", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QGraphicsAnchor::staticMetaObject, "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsAnchorLayout", "QGraphicsLayout", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsEffect::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsEllipseItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsGridLayout", "QGraphicsLayout", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsItemAnimation::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsItemGroup", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QGraphicsItemGroup", "QGraphicsItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QGraphicsLayout", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QGraphicsLayout", "QGraphicsLayoutItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QGraphicsLayoutItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsLineItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QGraphicsLineItem", "QGraphicsItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QGraphicsLinearLayout", "QGraphicsLayout", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsObject::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QGraphicsObject", "QGraphicsItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerClass(&QGraphicsOpacityEffect::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsPathItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsPixmapItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QGraphicsPixmapItem", "QGraphicsItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QGraphicsPolygonItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsProxyWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsRectItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsRotation::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsScale::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsScene::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneContextMenuEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneDragDropEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneHelpEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneHoverEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneMouseEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneMoveEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneResizeEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSceneWheelEvent", "QGraphicsSceneEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QGraphicsSimpleTextItem", "QAbstractGraphicsShapeItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsTextItem::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsTransform::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGraphicsWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QGraphicsWidget", "QGraphicsLayoutItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerClass(&QGridLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QGroupBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QHBoxLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QHeaderView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QHelpEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QHideEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QHoverEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QIconDragEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QIconEngine", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QIconEnginePluginV2::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QImageIOHandler", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QImageIOPlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QImageReader", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QImageWriter", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QInputContext::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QInputContextFactory", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QInputContextPlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QInputDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QInputEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QIntValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QItemDelegate::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QItemEditorCreatorBase", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QItemEditorFactory", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QItemSelection", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Add); -PythonQt::priv()->registerClass(&QItemSelectionModel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QItemSelectionRange", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QKeyEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QKeyEventTransition::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QLCDNumber::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QLabel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QLayout", "QLayoutItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QLayoutItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QLineEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QLinearGradient", "QGradient", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QListView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QListWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QListWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QMainWindow::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QMargins", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QMatrix4x4", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerClass(&QMdiArea::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QMdiSubWindow::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QMenu::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QMenuBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QMessageBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QMotifStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QMouseEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QMouseEventTransition::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QMoveEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QMovie::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QPageSetupDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPaintDevice", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPaintEngine", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPaintEngineState", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPaintEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPainter", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QPainterPath", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_And|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_InplaceOr|PythonQt::Type_RichCompare|PythonQt::Type_Or|PythonQt::Type_InplaceAnd|PythonQt::Type_Subtract|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QPainterPathStroker", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QPanGesture::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPicture", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero); -PythonQt::self()->addParentClass("QPicture", "QPaintDevice",PythonQtUpcastingOffset()); -PythonQt::priv()->registerClass(&QPictureFormatPlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPictureIO", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QPinchGesture::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPixmapCache", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPixmapCache::Key", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QPlainTextDocumentLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QPlainTextEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QPlastiqueStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPolygonF", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerClass(&QPrintDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPrintEngine", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QPrintPreviewDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QPrintPreviewWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QPrinter", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QPrinter", "QPaintDevice",PythonQtUpcastingOffset()); -PythonQt::priv()->registerClass(&QProgressBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QProgressDialog::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QProxyStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QPushButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QQuaternion", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QRadialGradient", "QGradient", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QRadioButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QRegExpValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QResizeEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QRubberBand::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QScrollArea::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QScrollBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSessionManager::staticMetaObject, "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QShortcut::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QShortcutEvent", "QEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QShowEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QSizeGrip::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSlider::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSound::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QSpacerItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QSpacerItem", "QLayoutItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerClass(&QSpinBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSplashScreen::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSplitter::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSplitterHandle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QStackedLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QStackedWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStandardItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QStandardItemModel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QStatusBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStatusTipEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QStringListModel::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleFactory", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleHintReturn", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleHintReturnMask", "QStyleHintReturn", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleHintReturnVariant", "QStyleHintReturn", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOption", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionButton", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionComboBox", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionDockWidget", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionDockWidgetV2", "QStyleOptionDockWidget", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionFocusRect", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionFrame", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionFrameV2", "QStyleOptionFrame", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionFrameV3", "QStyleOptionFrameV2", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionGraphicsItem", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionGroupBox", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionHeader", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionMenuItem", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionProgressBar", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionProgressBarV2", "QStyleOptionProgressBar", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionRubberBand", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionSizeGrip", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionSlider", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionSpinBox", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionTab", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionTabBarBase", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionTabBarBaseV2", "QStyleOptionTabBarBase", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionTabV2", "QStyleOptionTab", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionTabV3", "QStyleOptionTabV2", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionTabWidgetFrame", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionTitleBar", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionToolBar", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionToolBox", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionToolBoxV2", "QStyleOptionToolBox", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionToolButton", "QStyleOptionComplex", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionViewItem", "QStyleOption", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionViewItemV2", "QStyleOptionViewItem", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionViewItemV3", "QStyleOptionViewItemV2", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStyleOptionViewItemV4", "QStyleOptionViewItemV3", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QStylePainter", "QPainter", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QStylePlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QStyledItemDelegate::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSwipeGesture::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSyntaxHighlighter::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QSystemTrayIcon::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTabBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTabWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTableView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTableWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTableWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTableWidgetSelectionRange", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTabletEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextBlock", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTextBlockFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QTextBlockGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextBlockUserData", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTextBrowser::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextCharFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QTextCodecPlugin::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextCursor", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QTextDocument::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextDocumentFragment", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTextDocumentWriter", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QTextEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextFragment", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QTextFrame::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextFrameFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTextImageFormat", "QTextCharFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTextInlineObject", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTextItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextLine", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QTextList::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextListFormat", "QTextFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QTextObject::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTextTable::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTextTableCell", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTextTableCellFormat", "QTextCharFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTextTableFormat", "QTextFrameFormat", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTileRules", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTimeEdit::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QToolBar::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QToolBarChangeEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QToolBox::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QToolButton::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QToolTip", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTouchEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTouchEvent::TouchPoint", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QTransform", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerClass(&QTreeView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTreeWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QTreeWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QUndoCommand", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QUndoGroup::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QUndoStack::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QUndoView::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QVBoxLayout::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QValidator::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QVector2D", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QVector3D", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QVector4D", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_Divide|PythonQt::Type_InplaceDivide|PythonQt::Type_NonZero|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_RichCompare|PythonQt::Type_Subtract|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QWhatsThis", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QWhatsThisClickedEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QWheelEvent", "QInputEvent", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QWidget::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QWidget", "QPaintDevice",PythonQtUpcastingOffset()); -PythonQt::priv()->registerClass(&QWidgetAction::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QWidgetItem", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::self()->addParentClass("QWidgetItem", "QLayoutItem",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QWindowStateChangeEvent", "QEvent", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QWindowsStyle::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QWizard::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QWizardPage::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QWorkspace::staticMetaObject, "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); - -PythonQt::self()->addPolymorphicHandler("QStyleOption", polymorphichandler_QStyleOption); -PythonQt::self()->addPolymorphicHandler("QGradient", polymorphichandler_QGradient); -PythonQt::self()->addPolymorphicHandler("QEvent", polymorphichandler_QEvent); -} diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.h deleted file mode 100644 index 361043160..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef COM_TROLLTECH_QT_GUI_INIT_H -#define COM_TROLLTECH_QT_GUI_INIT_H - -#include "PythonQtSystem.h" - -PYTHONQT_EXPORT void PythonQt_init_QtGui(PyObject* module); - -#endif // COM_TROLLTECH_QT_GUI_INIT_H diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin.pri b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin.pri deleted file mode 100644 index 4aa1ce87b..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin.pri +++ /dev/null @@ -1,6 +0,0 @@ -HEADERS += \ - $$PWD/com_trolltech_qt_gui_builtin0.h \ - -SOURCES += \ - $$PWD/com_trolltech_qt_gui_builtin0.cpp \ - $$PWD/com_trolltech_qt_gui_builtin_init.cpp diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp deleted file mode 100644 index f95514c9f..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp +++ /dev/null @@ -1,3716 +0,0 @@ -#include "com_trolltech_qt_gui_builtin0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -int PythonQtShell_QBitmap::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBitmap::devType(); -} -int PythonQtShell_QBitmap::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBitmap::metric(arg__1); -} -QPaintEngine* PythonQtShell_QBitmap::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QBitmap::paintEngine(); -} -QBitmap* PythonQtWrapper_QBitmap::new_QBitmap() -{ -return new PythonQtShell_QBitmap(); } - -QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(const QPixmap& arg__1) -{ -return new PythonQtShell_QBitmap(arg__1); } - -QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(const QSize& arg__1) -{ -return new PythonQtShell_QBitmap(arg__1); } - -QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(const QString& fileName, const char* format) -{ -return new PythonQtShell_QBitmap(fileName, format); } - -QBitmap* PythonQtWrapper_QBitmap::new_QBitmap(int w, int h) -{ -return new PythonQtShell_QBitmap(w, h); } - -void PythonQtWrapper_QBitmap::clear(QBitmap* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -QBitmap PythonQtWrapper_QBitmap::static_QBitmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags) -{ - return (QBitmap::fromImage(image, flags)); -} - -QBitmap PythonQtWrapper_QBitmap::transformed(QBitmap* theWrappedObject, const QMatrix& arg__1) const -{ - return ( theWrappedObject->transformed(arg__1)); -} - -QBitmap PythonQtWrapper_QBitmap::transformed(QBitmap* theWrappedObject, const QTransform& matrix) const -{ - return ( theWrappedObject->transformed(matrix)); -} - - - -QBrush* PythonQtWrapper_QBrush::new_QBrush() -{ -return new QBrush(); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(Qt::BrushStyle bs) -{ -return new QBrush(bs); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(Qt::GlobalColor color, const QPixmap& pixmap) -{ -return new QBrush(color, pixmap); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(const QBrush& brush) -{ -return new QBrush(brush); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(const QColor& color, Qt::BrushStyle bs) -{ -return new QBrush(color, bs); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(const QColor& color, const QPixmap& pixmap) -{ -return new QBrush(color, pixmap); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(const QGradient& gradient) -{ -return new QBrush(gradient); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(const QImage& image) -{ -return new QBrush(image); } - -QBrush* PythonQtWrapper_QBrush::new_QBrush(const QPixmap& pixmap) -{ -return new QBrush(pixmap); } - -const QColor* PythonQtWrapper_QBrush::color(QBrush* theWrappedObject) const -{ - return &( theWrappedObject->color()); -} - -const QGradient* PythonQtWrapper_QBrush::gradient(QBrush* theWrappedObject) const -{ - return ( theWrappedObject->gradient()); -} - -bool PythonQtWrapper_QBrush::isOpaque(QBrush* theWrappedObject) const -{ - return ( theWrappedObject->isOpaque()); -} - -const QMatrix* PythonQtWrapper_QBrush::matrix(QBrush* theWrappedObject) const -{ - return &( theWrappedObject->matrix()); -} - -bool PythonQtWrapper_QBrush::__ne__(QBrush* theWrappedObject, const QBrush& b) const -{ - return ( (*theWrappedObject)!= b); -} - -void PythonQtWrapper_QBrush::writeTo(QBrush* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QBrush::__eq__(QBrush* theWrappedObject, const QBrush& b) const -{ - return ( (*theWrappedObject)== b); -} - -void PythonQtWrapper_QBrush::readFrom(QBrush* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QBrush::setColor(QBrush* theWrappedObject, Qt::GlobalColor color) -{ - ( theWrappedObject->setColor(color)); -} - -void PythonQtWrapper_QBrush::setColor(QBrush* theWrappedObject, const QColor& color) -{ - ( theWrappedObject->setColor(color)); -} - -void PythonQtWrapper_QBrush::setMatrix(QBrush* theWrappedObject, const QMatrix& mat) -{ - ( theWrappedObject->setMatrix(mat)); -} - -void PythonQtWrapper_QBrush::setStyle(QBrush* theWrappedObject, Qt::BrushStyle arg__1) -{ - ( theWrappedObject->setStyle(arg__1)); -} - -void PythonQtWrapper_QBrush::setTexture(QBrush* theWrappedObject, const QPixmap& pixmap) -{ - ( theWrappedObject->setTexture(pixmap)); -} - -void PythonQtWrapper_QBrush::setTextureImage(QBrush* theWrappedObject, const QImage& image) -{ - ( theWrappedObject->setTextureImage(image)); -} - -void PythonQtWrapper_QBrush::setTransform(QBrush* theWrappedObject, const QTransform& arg__1) -{ - ( theWrappedObject->setTransform(arg__1)); -} - -Qt::BrushStyle PythonQtWrapper_QBrush::style(QBrush* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - -QPixmap PythonQtWrapper_QBrush::texture(QBrush* theWrappedObject) const -{ - return ( theWrappedObject->texture()); -} - -QImage PythonQtWrapper_QBrush::textureImage(QBrush* theWrappedObject) const -{ - return ( theWrappedObject->textureImage()); -} - -QTransform PythonQtWrapper_QBrush::transform(QBrush* theWrappedObject) const -{ - return ( theWrappedObject->transform()); -} - -QString PythonQtWrapper_QBrush::py_toString(QBrush* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QColor* PythonQtWrapper_QColor::new_QColor() -{ -return new QColor(); } - -QColor* PythonQtWrapper_QColor::new_QColor(Qt::GlobalColor color) -{ -return new QColor(color); } - -QColor* PythonQtWrapper_QColor::new_QColor(const QColor& color) -{ -return new QColor(color); } - -QColor* PythonQtWrapper_QColor::new_QColor(const QString& name) -{ -return new QColor(name); } - -QColor* PythonQtWrapper_QColor::new_QColor(int r, int g, int b, int a) -{ -return new QColor(r, g, b, a); } - -QColor* PythonQtWrapper_QColor::new_QColor(unsigned int rgb) -{ -return new QColor(rgb); } - -int PythonQtWrapper_QColor::alpha(QColor* theWrappedObject) const -{ - return ( theWrappedObject->alpha()); -} - -qreal PythonQtWrapper_QColor::alphaF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->alphaF()); -} - -int PythonQtWrapper_QColor::black(QColor* theWrappedObject) const -{ - return ( theWrappedObject->black()); -} - -qreal PythonQtWrapper_QColor::blackF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->blackF()); -} - -int PythonQtWrapper_QColor::blue(QColor* theWrappedObject) const -{ - return ( theWrappedObject->blue()); -} - -qreal PythonQtWrapper_QColor::blueF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->blueF()); -} - -QStringList PythonQtWrapper_QColor::static_QColor_colorNames() -{ - return (QColor::colorNames()); -} - -QColor PythonQtWrapper_QColor::convertTo(QColor* theWrappedObject, QColor::Spec colorSpec) const -{ - return ( theWrappedObject->convertTo(colorSpec)); -} - -int PythonQtWrapper_QColor::cyan(QColor* theWrappedObject) const -{ - return ( theWrappedObject->cyan()); -} - -qreal PythonQtWrapper_QColor::cyanF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->cyanF()); -} - -QColor PythonQtWrapper_QColor::darker(QColor* theWrappedObject, int f) const -{ - return ( theWrappedObject->darker(f)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromCmyk(int c, int m, int y, int k, int a) -{ - return (QColor::fromCmyk(c, m, y, k, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a) -{ - return (QColor::fromCmykF(c, m, y, k, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromHsl(int h, int s, int l, int a) -{ - return (QColor::fromHsl(h, s, l, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromHslF(qreal h, qreal s, qreal l, qreal a) -{ - return (QColor::fromHslF(h, s, l, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromHsv(int h, int s, int v, int a) -{ - return (QColor::fromHsv(h, s, v, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromHsvF(qreal h, qreal s, qreal v, qreal a) -{ - return (QColor::fromHsvF(h, s, v, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromRgb(int r, int g, int b, int a) -{ - return (QColor::fromRgb(r, g, b, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromRgb(unsigned int rgb) -{ - return (QColor::fromRgb(rgb)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromRgbF(qreal r, qreal g, qreal b, qreal a) -{ - return (QColor::fromRgbF(r, g, b, a)); -} - -QColor PythonQtWrapper_QColor::static_QColor_fromRgba(unsigned int rgba) -{ - return (QColor::fromRgba(rgba)); -} - -void PythonQtWrapper_QColor::getCmykF(QColor* theWrappedObject, qreal* c, qreal* m, qreal* y, qreal* k, qreal* a) -{ - ( theWrappedObject->getCmykF(c, m, y, k, a)); -} - -void PythonQtWrapper_QColor::getHsl(QColor* theWrappedObject, int* h, int* s, int* l, int* a) const -{ - ( theWrappedObject->getHsl(h, s, l, a)); -} - -void PythonQtWrapper_QColor::getHslF(QColor* theWrappedObject, qreal* h, qreal* s, qreal* l, qreal* a) const -{ - ( theWrappedObject->getHslF(h, s, l, a)); -} - -void PythonQtWrapper_QColor::getHsvF(QColor* theWrappedObject, qreal* h, qreal* s, qreal* v, qreal* a) const -{ - ( theWrappedObject->getHsvF(h, s, v, a)); -} - -void PythonQtWrapper_QColor::getRgbF(QColor* theWrappedObject, qreal* r, qreal* g, qreal* b, qreal* a) const -{ - ( theWrappedObject->getRgbF(r, g, b, a)); -} - -int PythonQtWrapper_QColor::green(QColor* theWrappedObject) const -{ - return ( theWrappedObject->green()); -} - -qreal PythonQtWrapper_QColor::greenF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->greenF()); -} - -int PythonQtWrapper_QColor::hslHue(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hslHue()); -} - -qreal PythonQtWrapper_QColor::hslHueF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hslHueF()); -} - -int PythonQtWrapper_QColor::hslSaturation(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hslSaturation()); -} - -qreal PythonQtWrapper_QColor::hslSaturationF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hslSaturationF()); -} - -int PythonQtWrapper_QColor::hsvHue(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hsvHue()); -} - -qreal PythonQtWrapper_QColor::hsvHueF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hsvHueF()); -} - -int PythonQtWrapper_QColor::hsvSaturation(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hsvSaturation()); -} - -qreal PythonQtWrapper_QColor::hsvSaturationF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hsvSaturationF()); -} - -int PythonQtWrapper_QColor::hue(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hue()); -} - -qreal PythonQtWrapper_QColor::hueF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->hueF()); -} - -bool PythonQtWrapper_QColor::isValid(QColor* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QColor PythonQtWrapper_QColor::lighter(QColor* theWrappedObject, int f) const -{ - return ( theWrappedObject->lighter(f)); -} - -int PythonQtWrapper_QColor::lightness(QColor* theWrappedObject) const -{ - return ( theWrappedObject->lightness()); -} - -qreal PythonQtWrapper_QColor::lightnessF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->lightnessF()); -} - -int PythonQtWrapper_QColor::magenta(QColor* theWrappedObject) const -{ - return ( theWrappedObject->magenta()); -} - -qreal PythonQtWrapper_QColor::magentaF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->magentaF()); -} - -QString PythonQtWrapper_QColor::name(QColor* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - -bool PythonQtWrapper_QColor::__ne__(QColor* theWrappedObject, const QColor& c) const -{ - return ( (*theWrappedObject)!= c); -} - -void PythonQtWrapper_QColor::writeTo(QColor* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QColor::__eq__(QColor* theWrappedObject, const QColor& c) const -{ - return ( (*theWrappedObject)== c); -} - -void PythonQtWrapper_QColor::readFrom(QColor* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -int PythonQtWrapper_QColor::red(QColor* theWrappedObject) const -{ - return ( theWrappedObject->red()); -} - -qreal PythonQtWrapper_QColor::redF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->redF()); -} - -unsigned int PythonQtWrapper_QColor::rgb(QColor* theWrappedObject) const -{ - return ( theWrappedObject->rgb()); -} - -unsigned int PythonQtWrapper_QColor::rgba(QColor* theWrappedObject) const -{ - return ( theWrappedObject->rgba()); -} - -int PythonQtWrapper_QColor::saturation(QColor* theWrappedObject) const -{ - return ( theWrappedObject->saturation()); -} - -qreal PythonQtWrapper_QColor::saturationF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->saturationF()); -} - -void PythonQtWrapper_QColor::setAlpha(QColor* theWrappedObject, int alpha) -{ - ( theWrappedObject->setAlpha(alpha)); -} - -void PythonQtWrapper_QColor::setAlphaF(QColor* theWrappedObject, qreal alpha) -{ - ( theWrappedObject->setAlphaF(alpha)); -} - -void PythonQtWrapper_QColor::setBlue(QColor* theWrappedObject, int blue) -{ - ( theWrappedObject->setBlue(blue)); -} - -void PythonQtWrapper_QColor::setBlueF(QColor* theWrappedObject, qreal blue) -{ - ( theWrappedObject->setBlueF(blue)); -} - -void PythonQtWrapper_QColor::setCmyk(QColor* theWrappedObject, int c, int m, int y, int k, int a) -{ - ( theWrappedObject->setCmyk(c, m, y, k, a)); -} - -void PythonQtWrapper_QColor::setCmykF(QColor* theWrappedObject, qreal c, qreal m, qreal y, qreal k, qreal a) -{ - ( theWrappedObject->setCmykF(c, m, y, k, a)); -} - -void PythonQtWrapper_QColor::setGreen(QColor* theWrappedObject, int green) -{ - ( theWrappedObject->setGreen(green)); -} - -void PythonQtWrapper_QColor::setGreenF(QColor* theWrappedObject, qreal green) -{ - ( theWrappedObject->setGreenF(green)); -} - -void PythonQtWrapper_QColor::setHsl(QColor* theWrappedObject, int h, int s, int l, int a) -{ - ( theWrappedObject->setHsl(h, s, l, a)); -} - -void PythonQtWrapper_QColor::setHslF(QColor* theWrappedObject, qreal h, qreal s, qreal l, qreal a) -{ - ( theWrappedObject->setHslF(h, s, l, a)); -} - -void PythonQtWrapper_QColor::setHsv(QColor* theWrappedObject, int h, int s, int v, int a) -{ - ( theWrappedObject->setHsv(h, s, v, a)); -} - -void PythonQtWrapper_QColor::setHsvF(QColor* theWrappedObject, qreal h, qreal s, qreal v, qreal a) -{ - ( theWrappedObject->setHsvF(h, s, v, a)); -} - -void PythonQtWrapper_QColor::setNamedColor(QColor* theWrappedObject, const QString& name) -{ - ( theWrappedObject->setNamedColor(name)); -} - -void PythonQtWrapper_QColor::setRed(QColor* theWrappedObject, int red) -{ - ( theWrappedObject->setRed(red)); -} - -void PythonQtWrapper_QColor::setRedF(QColor* theWrappedObject, qreal red) -{ - ( theWrappedObject->setRedF(red)); -} - -void PythonQtWrapper_QColor::setRgb(QColor* theWrappedObject, int r, int g, int b, int a) -{ - ( theWrappedObject->setRgb(r, g, b, a)); -} - -void PythonQtWrapper_QColor::setRgb(QColor* theWrappedObject, unsigned int rgb) -{ - ( theWrappedObject->setRgb(rgb)); -} - -void PythonQtWrapper_QColor::setRgbF(QColor* theWrappedObject, qreal r, qreal g, qreal b, qreal a) -{ - ( theWrappedObject->setRgbF(r, g, b, a)); -} - -void PythonQtWrapper_QColor::setRgba(QColor* theWrappedObject, unsigned int rgba) -{ - ( theWrappedObject->setRgba(rgba)); -} - -QColor::Spec PythonQtWrapper_QColor::spec(QColor* theWrappedObject) const -{ - return ( theWrappedObject->spec()); -} - -QColor PythonQtWrapper_QColor::toCmyk(QColor* theWrappedObject) const -{ - return ( theWrappedObject->toCmyk()); -} - -QColor PythonQtWrapper_QColor::toHsl(QColor* theWrappedObject) const -{ - return ( theWrappedObject->toHsl()); -} - -QColor PythonQtWrapper_QColor::toHsv(QColor* theWrappedObject) const -{ - return ( theWrappedObject->toHsv()); -} - -QColor PythonQtWrapper_QColor::toRgb(QColor* theWrappedObject) const -{ - return ( theWrappedObject->toRgb()); -} - -int PythonQtWrapper_QColor::value(QColor* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - -qreal PythonQtWrapper_QColor::valueF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->valueF()); -} - -int PythonQtWrapper_QColor::yellow(QColor* theWrappedObject) const -{ - return ( theWrappedObject->yellow()); -} - -qreal PythonQtWrapper_QColor::yellowF(QColor* theWrappedObject) const -{ - return ( theWrappedObject->yellowF()); -} - -QString PythonQtWrapper_QColor::py_toString(QColor* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QCursor* PythonQtWrapper_QCursor::new_QCursor() -{ -return new QCursor(); } - -QCursor* PythonQtWrapper_QCursor::new_QCursor(Qt::CursorShape shape) -{ -return new QCursor(shape); } - -QCursor* PythonQtWrapper_QCursor::new_QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX, int hotY) -{ -return new QCursor(bitmap, mask, hotX, hotY); } - -QCursor* PythonQtWrapper_QCursor::new_QCursor(const QCursor& cursor) -{ -return new QCursor(cursor); } - -QCursor* PythonQtWrapper_QCursor::new_QCursor(const QPixmap& pixmap, int hotX, int hotY) -{ -return new QCursor(pixmap, hotX, hotY); } - -const QBitmap* PythonQtWrapper_QCursor::bitmap(QCursor* theWrappedObject) const -{ - return ( theWrappedObject->bitmap()); -} - -QPoint PythonQtWrapper_QCursor::hotSpot(QCursor* theWrappedObject) const -{ - return ( theWrappedObject->hotSpot()); -} - -const QBitmap* PythonQtWrapper_QCursor::mask(QCursor* theWrappedObject) const -{ - return ( theWrappedObject->mask()); -} - -void PythonQtWrapper_QCursor::writeTo(QCursor* theWrappedObject, QDataStream& outS) -{ - outS << (*theWrappedObject); -} - -void PythonQtWrapper_QCursor::readFrom(QCursor* theWrappedObject, QDataStream& inS) -{ - inS >> (*theWrappedObject); -} - -QPixmap PythonQtWrapper_QCursor::pixmap(QCursor* theWrappedObject) const -{ - return ( theWrappedObject->pixmap()); -} - -QPoint PythonQtWrapper_QCursor::static_QCursor_pos() -{ - return (QCursor::pos()); -} - -void PythonQtWrapper_QCursor::static_QCursor_setPos(const QPoint& p) -{ - (QCursor::setPos(p)); -} - -void PythonQtWrapper_QCursor::static_QCursor_setPos(int x, int y) -{ - (QCursor::setPos(x, y)); -} - -void PythonQtWrapper_QCursor::setShape(QCursor* theWrappedObject, Qt::CursorShape newShape) -{ - ( theWrappedObject->setShape(newShape)); -} - -Qt::CursorShape PythonQtWrapper_QCursor::shape(QCursor* theWrappedObject) const -{ - return ( theWrappedObject->shape()); -} - - - -QFont* PythonQtWrapper_QFont::new_QFont() -{ -return new QFont(); } - -QFont* PythonQtWrapper_QFont::new_QFont(const QFont& arg__1) -{ -return new QFont(arg__1); } - -QFont* PythonQtWrapper_QFont::new_QFont(const QFont& arg__1, QPaintDevice* pd) -{ -return new QFont(arg__1, pd); } - -QFont* PythonQtWrapper_QFont::new_QFont(const QString& family, int pointSize, int weight, bool italic) -{ -return new QFont(family, pointSize, weight, italic); } - -bool PythonQtWrapper_QFont::bold(QFont* theWrappedObject) const -{ - return ( theWrappedObject->bold()); -} - -void PythonQtWrapper_QFont::static_QFont_cacheStatistics() -{ - (QFont::cacheStatistics()); -} - -QFont::Capitalization PythonQtWrapper_QFont::capitalization(QFont* theWrappedObject) const -{ - return ( theWrappedObject->capitalization()); -} - -void PythonQtWrapper_QFont::static_QFont_cleanup() -{ - (QFont::cleanup()); -} - -QString PythonQtWrapper_QFont::defaultFamily(QFont* theWrappedObject) const -{ - return ( theWrappedObject->defaultFamily()); -} - -bool PythonQtWrapper_QFont::exactMatch(QFont* theWrappedObject) const -{ - return ( theWrappedObject->exactMatch()); -} - -QString PythonQtWrapper_QFont::family(QFont* theWrappedObject) const -{ - return ( theWrappedObject->family()); -} - -bool PythonQtWrapper_QFont::fixedPitch(QFont* theWrappedObject) const -{ - return ( theWrappedObject->fixedPitch()); -} - -bool PythonQtWrapper_QFont::fromString(QFont* theWrappedObject, const QString& arg__1) -{ - return ( theWrappedObject->fromString(arg__1)); -} - -Qt::HANDLE PythonQtWrapper_QFont::handle(QFont* theWrappedObject) const -{ - return ( theWrappedObject->handle()); -} - -void PythonQtWrapper_QFont::static_QFont_initialize() -{ - (QFont::initialize()); -} - -void PythonQtWrapper_QFont::static_QFont_insertSubstitution(const QString& arg__1, const QString& arg__2) -{ - (QFont::insertSubstitution(arg__1, arg__2)); -} - -void PythonQtWrapper_QFont::static_QFont_insertSubstitutions(const QString& arg__1, const QStringList& arg__2) -{ - (QFont::insertSubstitutions(arg__1, arg__2)); -} - -bool PythonQtWrapper_QFont::isCopyOf(QFont* theWrappedObject, const QFont& arg__1) const -{ - return ( theWrappedObject->isCopyOf(arg__1)); -} - -bool PythonQtWrapper_QFont::italic(QFont* theWrappedObject) const -{ - return ( theWrappedObject->italic()); -} - -bool PythonQtWrapper_QFont::kerning(QFont* theWrappedObject) const -{ - return ( theWrappedObject->kerning()); -} - -QString PythonQtWrapper_QFont::key(QFont* theWrappedObject) const -{ - return ( theWrappedObject->key()); -} - -QString PythonQtWrapper_QFont::lastResortFamily(QFont* theWrappedObject) const -{ - return ( theWrappedObject->lastResortFamily()); -} - -QString PythonQtWrapper_QFont::lastResortFont(QFont* theWrappedObject) const -{ - return ( theWrappedObject->lastResortFont()); -} - -qreal PythonQtWrapper_QFont::letterSpacing(QFont* theWrappedObject) const -{ - return ( theWrappedObject->letterSpacing()); -} - -QFont::SpacingType PythonQtWrapper_QFont::letterSpacingType(QFont* theWrappedObject) const -{ - return ( theWrappedObject->letterSpacingType()); -} - -bool PythonQtWrapper_QFont::__ne__(QFont* theWrappedObject, const QFont& arg__1) const -{ - return ( (*theWrappedObject)!= arg__1); -} - -bool PythonQtWrapper_QFont::__lt__(QFont* theWrappedObject, const QFont& arg__1) const -{ - return ( (*theWrappedObject)< arg__1); -} - -void PythonQtWrapper_QFont::writeTo(QFont* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QFont::__eq__(QFont* theWrappedObject, const QFont& arg__1) const -{ - return ( (*theWrappedObject)== arg__1); -} - -void PythonQtWrapper_QFont::readFrom(QFont* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -bool PythonQtWrapper_QFont::overline(QFont* theWrappedObject) const -{ - return ( theWrappedObject->overline()); -} - -int PythonQtWrapper_QFont::pixelSize(QFont* theWrappedObject) const -{ - return ( theWrappedObject->pixelSize()); -} - -int PythonQtWrapper_QFont::pointSize(QFont* theWrappedObject) const -{ - return ( theWrappedObject->pointSize()); -} - -qreal PythonQtWrapper_QFont::pointSizeF(QFont* theWrappedObject) const -{ - return ( theWrappedObject->pointSizeF()); -} - -bool PythonQtWrapper_QFont::rawMode(QFont* theWrappedObject) const -{ - return ( theWrappedObject->rawMode()); -} - -QString PythonQtWrapper_QFont::rawName(QFont* theWrappedObject) const -{ - return ( theWrappedObject->rawName()); -} - -void PythonQtWrapper_QFont::static_QFont_removeSubstitution(const QString& arg__1) -{ - (QFont::removeSubstitution(arg__1)); -} - -uint PythonQtWrapper_QFont::resolve(QFont* theWrappedObject) const -{ - return ( theWrappedObject->resolve()); -} - -QFont PythonQtWrapper_QFont::resolve(QFont* theWrappedObject, const QFont& arg__1) const -{ - return ( theWrappedObject->resolve(arg__1)); -} - -void PythonQtWrapper_QFont::resolve(QFont* theWrappedObject, uint mask) -{ - ( theWrappedObject->resolve(mask)); -} - -void PythonQtWrapper_QFont::setBold(QFont* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setBold(arg__1)); -} - -void PythonQtWrapper_QFont::setCapitalization(QFont* theWrappedObject, QFont::Capitalization arg__1) -{ - ( theWrappedObject->setCapitalization(arg__1)); -} - -void PythonQtWrapper_QFont::setFamily(QFont* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setFamily(arg__1)); -} - -void PythonQtWrapper_QFont::setFixedPitch(QFont* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setFixedPitch(arg__1)); -} - -void PythonQtWrapper_QFont::setItalic(QFont* theWrappedObject, bool b) -{ - ( theWrappedObject->setItalic(b)); -} - -void PythonQtWrapper_QFont::setKerning(QFont* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setKerning(arg__1)); -} - -void PythonQtWrapper_QFont::setLetterSpacing(QFont* theWrappedObject, QFont::SpacingType type, qreal spacing) -{ - ( theWrappedObject->setLetterSpacing(type, spacing)); -} - -void PythonQtWrapper_QFont::setOverline(QFont* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setOverline(arg__1)); -} - -void PythonQtWrapper_QFont::setPixelSize(QFont* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setPixelSize(arg__1)); -} - -void PythonQtWrapper_QFont::setPointSize(QFont* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setPointSize(arg__1)); -} - -void PythonQtWrapper_QFont::setPointSizeF(QFont* theWrappedObject, qreal arg__1) -{ - ( theWrappedObject->setPointSizeF(arg__1)); -} - -void PythonQtWrapper_QFont::setRawMode(QFont* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setRawMode(arg__1)); -} - -void PythonQtWrapper_QFont::setRawName(QFont* theWrappedObject, const QString& arg__1) -{ - ( theWrappedObject->setRawName(arg__1)); -} - -void PythonQtWrapper_QFont::setStretch(QFont* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setStretch(arg__1)); -} - -void PythonQtWrapper_QFont::setStrikeOut(QFont* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setStrikeOut(arg__1)); -} - -void PythonQtWrapper_QFont::setStyle(QFont* theWrappedObject, QFont::Style style) -{ - ( theWrappedObject->setStyle(style)); -} - -void PythonQtWrapper_QFont::setStyleHint(QFont* theWrappedObject, QFont::StyleHint arg__1, QFont::StyleStrategy arg__2) -{ - ( theWrappedObject->setStyleHint(arg__1, arg__2)); -} - -void PythonQtWrapper_QFont::setStyleStrategy(QFont* theWrappedObject, QFont::StyleStrategy s) -{ - ( theWrappedObject->setStyleStrategy(s)); -} - -void PythonQtWrapper_QFont::setUnderline(QFont* theWrappedObject, bool arg__1) -{ - ( theWrappedObject->setUnderline(arg__1)); -} - -void PythonQtWrapper_QFont::setWeight(QFont* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setWeight(arg__1)); -} - -void PythonQtWrapper_QFont::setWordSpacing(QFont* theWrappedObject, qreal spacing) -{ - ( theWrappedObject->setWordSpacing(spacing)); -} - -int PythonQtWrapper_QFont::stretch(QFont* theWrappedObject) const -{ - return ( theWrappedObject->stretch()); -} - -bool PythonQtWrapper_QFont::strikeOut(QFont* theWrappedObject) const -{ - return ( theWrappedObject->strikeOut()); -} - -QFont::Style PythonQtWrapper_QFont::style(QFont* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - -QFont::StyleHint PythonQtWrapper_QFont::styleHint(QFont* theWrappedObject) const -{ - return ( theWrappedObject->styleHint()); -} - -QFont::StyleStrategy PythonQtWrapper_QFont::styleStrategy(QFont* theWrappedObject) const -{ - return ( theWrappedObject->styleStrategy()); -} - -QString PythonQtWrapper_QFont::static_QFont_substitute(const QString& arg__1) -{ - return (QFont::substitute(arg__1)); -} - -QStringList PythonQtWrapper_QFont::static_QFont_substitutes(const QString& arg__1) -{ - return (QFont::substitutes(arg__1)); -} - -QStringList PythonQtWrapper_QFont::static_QFont_substitutions() -{ - return (QFont::substitutions()); -} - -QString PythonQtWrapper_QFont::toString(QFont* theWrappedObject) const -{ - return ( theWrappedObject->toString()); -} - -bool PythonQtWrapper_QFont::underline(QFont* theWrappedObject) const -{ - return ( theWrappedObject->underline()); -} - -int PythonQtWrapper_QFont::weight(QFont* theWrappedObject) const -{ - return ( theWrappedObject->weight()); -} - -qreal PythonQtWrapper_QFont::wordSpacing(QFont* theWrappedObject) const -{ - return ( theWrappedObject->wordSpacing()); -} - -QString PythonQtWrapper_QFont::py_toString(QFont* obj) { return obj->toString(); } - - -QIcon* PythonQtWrapper_QIcon::new_QIcon() -{ -return new QIcon(); } - -QIcon* PythonQtWrapper_QIcon::new_QIcon(QIconEngine* engine) -{ -return new QIcon(engine); } - -QIcon* PythonQtWrapper_QIcon::new_QIcon(QIconEngineV2* engine) -{ -return new QIcon(engine); } - -QIcon* PythonQtWrapper_QIcon::new_QIcon(const QIcon& other) -{ -return new QIcon(other); } - -QIcon* PythonQtWrapper_QIcon::new_QIcon(const QPixmap& pixmap) -{ -return new QIcon(pixmap); } - -QIcon* PythonQtWrapper_QIcon::new_QIcon(const QString& fileName) -{ -return new QIcon(fileName); } - -QSize PythonQtWrapper_QIcon::actualSize(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state) const -{ - return ( theWrappedObject->actualSize(size, mode, state)); -} - -void PythonQtWrapper_QIcon::addFile(QIcon* theWrappedObject, const QString& fileName, const QSize& size, QIcon::Mode mode, QIcon::State state) -{ - ( theWrappedObject->addFile(fileName, size, mode, state)); -} - -void PythonQtWrapper_QIcon::addPixmap(QIcon* theWrappedObject, const QPixmap& pixmap, QIcon::Mode mode, QIcon::State state) -{ - ( theWrappedObject->addPixmap(pixmap, mode, state)); -} - -QList PythonQtWrapper_QIcon::availableSizes(QIcon* theWrappedObject, QIcon::Mode mode, QIcon::State state) const -{ - return ( theWrappedObject->availableSizes(mode, state)); -} - -qint64 PythonQtWrapper_QIcon::cacheKey(QIcon* theWrappedObject) const -{ - return ( theWrappedObject->cacheKey()); -} - -QIcon PythonQtWrapper_QIcon::static_QIcon_fromTheme(const QString& name, const QIcon& fallback) -{ - return (QIcon::fromTheme(name, fallback)); -} - -bool PythonQtWrapper_QIcon::static_QIcon_hasThemeIcon(const QString& name) -{ - return (QIcon::hasThemeIcon(name)); -} - -bool PythonQtWrapper_QIcon::isNull(QIcon* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -void PythonQtWrapper_QIcon::writeTo(QIcon* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -void PythonQtWrapper_QIcon::readFrom(QIcon* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QIcon::paint(QIcon* theWrappedObject, QPainter* painter, const QRect& rect, Qt::Alignment alignment, QIcon::Mode mode, QIcon::State state) const -{ - ( theWrappedObject->paint(painter, rect, alignment, mode, state)); -} - -void PythonQtWrapper_QIcon::paint(QIcon* theWrappedObject, QPainter* painter, int x, int y, int w, int h, Qt::Alignment alignment, QIcon::Mode mode, QIcon::State state) const -{ - ( theWrappedObject->paint(painter, x, y, w, h, alignment, mode, state)); -} - -QPixmap PythonQtWrapper_QIcon::pixmap(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode, QIcon::State state) const -{ - return ( theWrappedObject->pixmap(size, mode, state)); -} - -QPixmap PythonQtWrapper_QIcon::pixmap(QIcon* theWrappedObject, int extent, QIcon::Mode mode, QIcon::State state) const -{ - return ( theWrappedObject->pixmap(extent, mode, state)); -} - -QPixmap PythonQtWrapper_QIcon::pixmap(QIcon* theWrappedObject, int w, int h, QIcon::Mode mode, QIcon::State state) const -{ - return ( theWrappedObject->pixmap(w, h, mode, state)); -} - -void PythonQtWrapper_QIcon::static_QIcon_setThemeName(const QString& path) -{ - (QIcon::setThemeName(path)); -} - -void PythonQtWrapper_QIcon::static_QIcon_setThemeSearchPaths(const QStringList& searchpath) -{ - (QIcon::setThemeSearchPaths(searchpath)); -} - -QString PythonQtWrapper_QIcon::static_QIcon_themeName() -{ - return (QIcon::themeName()); -} - -QStringList PythonQtWrapper_QIcon::static_QIcon_themeSearchPaths() -{ - return (QIcon::themeSearchPaths()); -} - - - -int PythonQtShell_QImage::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImage::devType(); -} -int PythonQtShell_QImage::metric(QPaintDevice::PaintDeviceMetric metric) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&metric}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImage::metric(metric); -} -QPaintEngine* PythonQtShell_QImage::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QImage::paintEngine(); -} -QImage* PythonQtWrapper_QImage::new_QImage() -{ -return new PythonQtShell_QImage(); } - -QImage* PythonQtWrapper_QImage::new_QImage(const QImage& arg__1) -{ -return new PythonQtShell_QImage(arg__1); } - -QImage* PythonQtWrapper_QImage::new_QImage(const QSize& size, QImage::Format format) -{ -return new PythonQtShell_QImage(size, format); } - -QImage* PythonQtWrapper_QImage::new_QImage(const QString& fileName, const char* format) -{ -return new PythonQtShell_QImage(fileName, format); } - -QImage* PythonQtWrapper_QImage::new_QImage(int width, int height, QImage::Format format) -{ -return new PythonQtShell_QImage(width, height, format); } - -bool PythonQtWrapper_QImage::allGray(QImage* theWrappedObject) const -{ - return ( theWrappedObject->allGray()); -} - -QImage PythonQtWrapper_QImage::alphaChannel(QImage* theWrappedObject) const -{ - return ( theWrappedObject->alphaChannel()); -} - -int PythonQtWrapper_QImage::byteCount(QImage* theWrappedObject) const -{ - return ( theWrappedObject->byteCount()); -} - -int PythonQtWrapper_QImage::bytesPerLine(QImage* theWrappedObject) const -{ - return ( theWrappedObject->bytesPerLine()); -} - -qint64 PythonQtWrapper_QImage::cacheKey(QImage* theWrappedObject) const -{ - return ( theWrappedObject->cacheKey()); -} - -unsigned int PythonQtWrapper_QImage::color(QImage* theWrappedObject, int i) const -{ - return ( theWrappedObject->color(i)); -} - -int PythonQtWrapper_QImage::colorCount(QImage* theWrappedObject) const -{ - return ( theWrappedObject->colorCount()); -} - -QVector PythonQtWrapper_QImage::colorTable(QImage* theWrappedObject) const -{ - return ( theWrappedObject->colorTable()); -} - -QImage PythonQtWrapper_QImage::convertToFormat(QImage* theWrappedObject, QImage::Format f, Qt::ImageConversionFlags flags) const -{ - return ( theWrappedObject->convertToFormat(f, flags)); -} - -QImage PythonQtWrapper_QImage::convertToFormat(QImage* theWrappedObject, QImage::Format f, const QVector& colorTable, Qt::ImageConversionFlags flags) const -{ - return ( theWrappedObject->convertToFormat(f, colorTable, flags)); -} - -QImage PythonQtWrapper_QImage::copy(QImage* theWrappedObject, const QRect& rect) const -{ - return ( theWrappedObject->copy(rect)); -} - -QImage PythonQtWrapper_QImage::copy(QImage* theWrappedObject, int x, int y, int w, int h) const -{ - return ( theWrappedObject->copy(x, y, w, h)); -} - -QImage PythonQtWrapper_QImage::createAlphaMask(QImage* theWrappedObject, Qt::ImageConversionFlags flags) const -{ - return ( theWrappedObject->createAlphaMask(flags)); -} - -QImage PythonQtWrapper_QImage::createHeuristicMask(QImage* theWrappedObject, bool clipTight) const -{ - return ( theWrappedObject->createHeuristicMask(clipTight)); -} - -QImage PythonQtWrapper_QImage::createMaskFromColor(QImage* theWrappedObject, unsigned int color, Qt::MaskMode mode) const -{ - return ( theWrappedObject->createMaskFromColor(color, mode)); -} - -int PythonQtWrapper_QImage::depth(QImage* theWrappedObject) const -{ - return ( theWrappedObject->depth()); -} - -int PythonQtWrapper_QImage::devType(QImage* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QImage*)theWrappedObject)->promoted_devType()); -} - -int PythonQtWrapper_QImage::dotsPerMeterX(QImage* theWrappedObject) const -{ - return ( theWrappedObject->dotsPerMeterX()); -} - -int PythonQtWrapper_QImage::dotsPerMeterY(QImage* theWrappedObject) const -{ - return ( theWrappedObject->dotsPerMeterY()); -} - -void PythonQtWrapper_QImage::fill(QImage* theWrappedObject, uint pixel) -{ - ( theWrappedObject->fill(pixel)); -} - -QImage::Format PythonQtWrapper_QImage::format(QImage* theWrappedObject) const -{ - return ( theWrappedObject->format()); -} - -QImage PythonQtWrapper_QImage::static_QImage_fromData(const QByteArray& data, const char* format) -{ - return (QImage::fromData(data, format)); -} - -bool PythonQtWrapper_QImage::hasAlphaChannel(QImage* theWrappedObject) const -{ - return ( theWrappedObject->hasAlphaChannel()); -} - -int PythonQtWrapper_QImage::height(QImage* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -void PythonQtWrapper_QImage::invertPixels(QImage* theWrappedObject, QImage::InvertMode arg__1) -{ - ( theWrappedObject->invertPixels(arg__1)); -} - -bool PythonQtWrapper_QImage::isGrayscale(QImage* theWrappedObject) const -{ - return ( theWrappedObject->isGrayscale()); -} - -bool PythonQtWrapper_QImage::isNull(QImage* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QImage::load(QImage* theWrappedObject, QIODevice* device, const char* format) -{ - return ( theWrappedObject->load(device, format)); -} - -bool PythonQtWrapper_QImage::load(QImage* theWrappedObject, const QString& fileName, const char* format) -{ - return ( theWrappedObject->load(fileName, format)); -} - -bool PythonQtWrapper_QImage::loadFromData(QImage* theWrappedObject, const QByteArray& data, const char* aformat) -{ - return ( theWrappedObject->loadFromData(data, aformat)); -} - -int PythonQtWrapper_QImage::metric(QImage* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const -{ - return ( ((PythonQtPublicPromoter_QImage*)theWrappedObject)->promoted_metric(metric)); -} - -QImage PythonQtWrapper_QImage::mirrored(QImage* theWrappedObject, bool horizontally, bool vertically) const -{ - return ( theWrappedObject->mirrored(horizontally, vertically)); -} - -int PythonQtWrapper_QImage::numBytes(QImage* theWrappedObject) const -{ - return ( theWrappedObject->numBytes()); -} - -int PythonQtWrapper_QImage::numColors(QImage* theWrappedObject) const -{ - return ( theWrappedObject->numColors()); -} - -QPoint PythonQtWrapper_QImage::offset(QImage* theWrappedObject) const -{ - return ( theWrappedObject->offset()); -} - -bool PythonQtWrapper_QImage::__ne__(QImage* theWrappedObject, const QImage& arg__1) const -{ - return ( (*theWrappedObject)!= arg__1); -} - -void PythonQtWrapper_QImage::writeTo(QImage* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QImage::__eq__(QImage* theWrappedObject, const QImage& arg__1) const -{ - return ( (*theWrappedObject)== arg__1); -} - -void PythonQtWrapper_QImage::readFrom(QImage* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPaintEngine* PythonQtWrapper_QImage::paintEngine(QImage* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QImage*)theWrappedObject)->promoted_paintEngine()); -} - -unsigned int PythonQtWrapper_QImage::pixel(QImage* theWrappedObject, const QPoint& pt) const -{ - return ( theWrappedObject->pixel(pt)); -} - -unsigned int PythonQtWrapper_QImage::pixel(QImage* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->pixel(x, y)); -} - -int PythonQtWrapper_QImage::pixelIndex(QImage* theWrappedObject, const QPoint& pt) const -{ - return ( theWrappedObject->pixelIndex(pt)); -} - -int PythonQtWrapper_QImage::pixelIndex(QImage* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->pixelIndex(x, y)); -} - -QRect PythonQtWrapper_QImage::rect(QImage* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -QImage PythonQtWrapper_QImage::rgbSwapped(QImage* theWrappedObject) const -{ - return ( theWrappedObject->rgbSwapped()); -} - -bool PythonQtWrapper_QImage::save(QImage* theWrappedObject, QIODevice* device, const char* format, int quality) const -{ - return ( theWrappedObject->save(device, format, quality)); -} - -bool PythonQtWrapper_QImage::save(QImage* theWrappedObject, const QString& fileName, const char* format, int quality) const -{ - return ( theWrappedObject->save(fileName, format, quality)); -} - -QImage PythonQtWrapper_QImage::scaled(QImage* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaled(s, aspectMode, mode)); -} - -QImage PythonQtWrapper_QImage::scaled(QImage* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaled(w, h, aspectMode, mode)); -} - -QImage PythonQtWrapper_QImage::scaledToHeight(QImage* theWrappedObject, int h, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaledToHeight(h, mode)); -} - -QImage PythonQtWrapper_QImage::scaledToWidth(QImage* theWrappedObject, int w, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaledToWidth(w, mode)); -} - -void PythonQtWrapper_QImage::setAlphaChannel(QImage* theWrappedObject, const QImage& alphaChannel) -{ - ( theWrappedObject->setAlphaChannel(alphaChannel)); -} - -void PythonQtWrapper_QImage::setColor(QImage* theWrappedObject, int i, unsigned int c) -{ - ( theWrappedObject->setColor(i, c)); -} - -void PythonQtWrapper_QImage::setColorCount(QImage* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setColorCount(arg__1)); -} - -void PythonQtWrapper_QImage::setDotsPerMeterX(QImage* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setDotsPerMeterX(arg__1)); -} - -void PythonQtWrapper_QImage::setDotsPerMeterY(QImage* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setDotsPerMeterY(arg__1)); -} - -void PythonQtWrapper_QImage::setNumColors(QImage* theWrappedObject, int arg__1) -{ - ( theWrappedObject->setNumColors(arg__1)); -} - -void PythonQtWrapper_QImage::setOffset(QImage* theWrappedObject, const QPoint& arg__1) -{ - ( theWrappedObject->setOffset(arg__1)); -} - -void PythonQtWrapper_QImage::setPixel(QImage* theWrappedObject, const QPoint& pt, uint index_or_rgb) -{ - ( theWrappedObject->setPixel(pt, index_or_rgb)); -} - -void PythonQtWrapper_QImage::setPixel(QImage* theWrappedObject, int x, int y, uint index_or_rgb) -{ - ( theWrappedObject->setPixel(x, y, index_or_rgb)); -} - -void PythonQtWrapper_QImage::setText(QImage* theWrappedObject, const QString& key, const QString& value) -{ - ( theWrappedObject->setText(key, value)); -} - -QSize PythonQtWrapper_QImage::size(QImage* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QString PythonQtWrapper_QImage::text(QImage* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->text(key)); -} - -QStringList PythonQtWrapper_QImage::textKeys(QImage* theWrappedObject) const -{ - return ( theWrappedObject->textKeys()); -} - -QImage PythonQtWrapper_QImage::transformed(QImage* theWrappedObject, const QMatrix& matrix, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->transformed(matrix, mode)); -} - -QImage PythonQtWrapper_QImage::transformed(QImage* theWrappedObject, const QTransform& matrix, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->transformed(matrix, mode)); -} - -QMatrix PythonQtWrapper_QImage::static_QImage_trueMatrix(const QMatrix& arg__1, int w, int h) -{ - return (QImage::trueMatrix(arg__1, w, h)); -} - -QTransform PythonQtWrapper_QImage::static_QImage_trueMatrix(const QTransform& arg__1, int w, int h) -{ - return (QImage::trueMatrix(arg__1, w, h)); -} - -bool PythonQtWrapper_QImage::valid(QImage* theWrappedObject, const QPoint& pt) const -{ - return ( theWrappedObject->valid(pt)); -} - -bool PythonQtWrapper_QImage::valid(QImage* theWrappedObject, int x, int y) const -{ - return ( theWrappedObject->valid(x, y)); -} - -int PythonQtWrapper_QImage::width(QImage* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence() -{ -return new QKeySequence(); } - -QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(QKeySequence::StandardKey key) -{ -return new QKeySequence(key); } - -QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(const QKeySequence& ks) -{ -return new QKeySequence(ks); } - -QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(const QString& key) -{ -return new QKeySequence(key); } - -QKeySequence* PythonQtWrapper_QKeySequence::new_QKeySequence(int k1, int k2, int k3, int k4) -{ -return new QKeySequence(k1, k2, k3, k4); } - -uint PythonQtWrapper_QKeySequence::count(QKeySequence* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -QKeySequence PythonQtWrapper_QKeySequence::static_QKeySequence_fromString(const QString& str, QKeySequence::SequenceFormat format) -{ - return (QKeySequence::fromString(str, format)); -} - -bool PythonQtWrapper_QKeySequence::isEmpty(QKeySequence* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -QList PythonQtWrapper_QKeySequence::static_QKeySequence_keyBindings(QKeySequence::StandardKey key) -{ - return (QKeySequence::keyBindings(key)); -} - -QKeySequence::SequenceMatch PythonQtWrapper_QKeySequence::matches(QKeySequence* theWrappedObject, const QKeySequence& seq) const -{ - return ( theWrappedObject->matches(seq)); -} - -QKeySequence PythonQtWrapper_QKeySequence::static_QKeySequence_mnemonic(const QString& text) -{ - return (QKeySequence::mnemonic(text)); -} - -int PythonQtWrapper_QKeySequence::operator_cast_int(QKeySequence* theWrappedObject) const -{ - return ( theWrappedObject->operator int()); -} - -bool PythonQtWrapper_QKeySequence::__ne__(QKeySequence* theWrappedObject, const QKeySequence& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QKeySequence::__lt__(QKeySequence* theWrappedObject, const QKeySequence& ks) const -{ - return ( (*theWrappedObject)< ks); -} - -void PythonQtWrapper_QKeySequence::writeTo(QKeySequence* theWrappedObject, QDataStream& in) -{ - in << (*theWrappedObject); -} - -bool PythonQtWrapper_QKeySequence::__le__(QKeySequence* theWrappedObject, const QKeySequence& other) const -{ - return ( (*theWrappedObject)<= other); -} - -bool PythonQtWrapper_QKeySequence::__eq__(QKeySequence* theWrappedObject, const QKeySequence& other) const -{ - return ( (*theWrappedObject)== other); -} - -bool PythonQtWrapper_QKeySequence::__gt__(QKeySequence* theWrappedObject, const QKeySequence& other) const -{ - return ( (*theWrappedObject)> other); -} - -bool PythonQtWrapper_QKeySequence::__ge__(QKeySequence* theWrappedObject, const QKeySequence& other) const -{ - return ( (*theWrappedObject)>= other); -} - -void PythonQtWrapper_QKeySequence::readFrom(QKeySequence* theWrappedObject, QDataStream& out) -{ - out >> (*theWrappedObject); -} - -int PythonQtWrapper_QKeySequence::operator_subscript(QKeySequence* theWrappedObject, uint i) const -{ - return ( (*theWrappedObject)[i]); -} - -QString PythonQtWrapper_QKeySequence::toString(QKeySequence* theWrappedObject, QKeySequence::SequenceFormat format) const -{ - return ( theWrappedObject->toString(format)); -} - -QString PythonQtWrapper_QKeySequence::py_toString(QKeySequence* obj) { return obj->toString(); } - - -QMatrix* PythonQtWrapper_QMatrix::new_QMatrix() -{ -return new QMatrix(); } - -QMatrix* PythonQtWrapper_QMatrix::new_QMatrix(const QMatrix& matrix) -{ -return new QMatrix(matrix); } - -QMatrix* PythonQtWrapper_QMatrix::new_QMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy) -{ -return new QMatrix(m11, m12, m21, m22, dx, dy); } - -qreal PythonQtWrapper_QMatrix::det(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->det()); -} - -qreal PythonQtWrapper_QMatrix::determinant(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->determinant()); -} - -qreal PythonQtWrapper_QMatrix::dx(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->dx()); -} - -qreal PythonQtWrapper_QMatrix::dy(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->dy()); -} - -QMatrix PythonQtWrapper_QMatrix::inverted(QMatrix* theWrappedObject, bool* invertible) const -{ - return ( theWrappedObject->inverted(invertible)); -} - -bool PythonQtWrapper_QMatrix::isIdentity(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->isIdentity()); -} - -bool PythonQtWrapper_QMatrix::isInvertible(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->isInvertible()); -} - -qreal PythonQtWrapper_QMatrix::m11(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->m11()); -} - -qreal PythonQtWrapper_QMatrix::m12(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->m12()); -} - -qreal PythonQtWrapper_QMatrix::m21(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->m21()); -} - -qreal PythonQtWrapper_QMatrix::m22(QMatrix* theWrappedObject) const -{ - return ( theWrappedObject->m22()); -} - -QLine PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QLine& l) const -{ - return ( theWrappedObject->map(l)); -} - -QLineF PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QLineF& l) const -{ - return ( theWrappedObject->map(l)); -} - -QPainterPath PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPainterPath& p) const -{ - return ( theWrappedObject->map(p)); -} - -QPoint PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->map(p)); -} - -QPointF PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPointF& p) const -{ - return ( theWrappedObject->map(p)); -} - -QPolygon PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPolygon& a) const -{ - return ( theWrappedObject->map(a)); -} - -QPolygonF PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QPolygonF& a) const -{ - return ( theWrappedObject->map(a)); -} - -QRegion PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, const QRegion& r) const -{ - return ( theWrappedObject->map(r)); -} - -void PythonQtWrapper_QMatrix::map(QMatrix* theWrappedObject, qreal x, qreal y, qreal* tx, qreal* ty) const -{ - ( theWrappedObject->map(x, y, tx, ty)); -} - -QRect PythonQtWrapper_QMatrix::mapRect(QMatrix* theWrappedObject, const QRect& arg__1) const -{ - return ( theWrappedObject->mapRect(arg__1)); -} - -QRectF PythonQtWrapper_QMatrix::mapRect(QMatrix* theWrappedObject, const QRectF& arg__1) const -{ - return ( theWrappedObject->mapRect(arg__1)); -} - -QPolygon PythonQtWrapper_QMatrix::mapToPolygon(QMatrix* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->mapToPolygon(r)); -} - -bool PythonQtWrapper_QMatrix::__ne__(QMatrix* theWrappedObject, const QMatrix& arg__1) const -{ - return ( (*theWrappedObject)!= arg__1); -} - -QMatrix PythonQtWrapper_QMatrix::__mul__(QMatrix* theWrappedObject, const QMatrix& o) const -{ - return ( (*theWrappedObject)* o); -} - -QMatrix* PythonQtWrapper_QMatrix::__imul__(QMatrix* theWrappedObject, const QMatrix& arg__1) -{ - return &( (*theWrappedObject)*= arg__1); -} - -void PythonQtWrapper_QMatrix::writeTo(QMatrix* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QMatrix::__eq__(QMatrix* theWrappedObject, const QMatrix& arg__1) const -{ - return ( (*theWrappedObject)== arg__1); -} - -void PythonQtWrapper_QMatrix::readFrom(QMatrix* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QMatrix::reset(QMatrix* theWrappedObject) -{ - ( theWrappedObject->reset()); -} - -QMatrix* PythonQtWrapper_QMatrix::rotate(QMatrix* theWrappedObject, qreal a) -{ - return &( theWrappedObject->rotate(a)); -} - -QMatrix* PythonQtWrapper_QMatrix::scale(QMatrix* theWrappedObject, qreal sx, qreal sy) -{ - return &( theWrappedObject->scale(sx, sy)); -} - -void PythonQtWrapper_QMatrix::setMatrix(QMatrix* theWrappedObject, qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy) -{ - ( theWrappedObject->setMatrix(m11, m12, m21, m22, dx, dy)); -} - -QMatrix* PythonQtWrapper_QMatrix::shear(QMatrix* theWrappedObject, qreal sh, qreal sv) -{ - return &( theWrappedObject->shear(sh, sv)); -} - -QMatrix* PythonQtWrapper_QMatrix::translate(QMatrix* theWrappedObject, qreal dx, qreal dy) -{ - return &( theWrappedObject->translate(dx, dy)); -} - -QString PythonQtWrapper_QMatrix::py_toString(QMatrix* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QPalette* PythonQtWrapper_QPalette::new_QPalette() -{ -return new QPalette(); } - -QPalette* PythonQtWrapper_QPalette::new_QPalette(Qt::GlobalColor button) -{ -return new QPalette(button); } - -QPalette* PythonQtWrapper_QPalette::new_QPalette(const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window) -{ -return new QPalette(windowText, button, light, dark, mid, text, bright_text, base, window); } - -QPalette* PythonQtWrapper_QPalette::new_QPalette(const QColor& button) -{ -return new QPalette(button); } - -QPalette* PythonQtWrapper_QPalette::new_QPalette(const QColor& button, const QColor& window) -{ -return new QPalette(button, window); } - -QPalette* PythonQtWrapper_QPalette::new_QPalette(const QPalette& palette) -{ -return new QPalette(palette); } - -const QBrush* PythonQtWrapper_QPalette::alternateBase(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->alternateBase()); -} - -const QBrush* PythonQtWrapper_QPalette::base(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->base()); -} - -const QBrush* PythonQtWrapper_QPalette::brightText(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->brightText()); -} - -const QBrush* PythonQtWrapper_QPalette::brush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const -{ - return &( theWrappedObject->brush(cg, cr)); -} - -const QBrush* PythonQtWrapper_QPalette::brush(QPalette* theWrappedObject, QPalette::ColorRole cr) const -{ - return &( theWrappedObject->brush(cr)); -} - -const QBrush* PythonQtWrapper_QPalette::button(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->button()); -} - -const QBrush* PythonQtWrapper_QPalette::buttonText(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->buttonText()); -} - -qint64 PythonQtWrapper_QPalette::cacheKey(QPalette* theWrappedObject) const -{ - return ( theWrappedObject->cacheKey()); -} - -const QColor* PythonQtWrapper_QPalette::color(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const -{ - return &( theWrappedObject->color(cg, cr)); -} - -const QColor* PythonQtWrapper_QPalette::color(QPalette* theWrappedObject, QPalette::ColorRole cr) const -{ - return &( theWrappedObject->color(cr)); -} - -QPalette::ColorGroup PythonQtWrapper_QPalette::currentColorGroup(QPalette* theWrappedObject) const -{ - return ( theWrappedObject->currentColorGroup()); -} - -const QBrush* PythonQtWrapper_QPalette::dark(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->dark()); -} - -const QBrush* PythonQtWrapper_QPalette::highlight(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->highlight()); -} - -const QBrush* PythonQtWrapper_QPalette::highlightedText(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->highlightedText()); -} - -bool PythonQtWrapper_QPalette::isBrushSet(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const -{ - return ( theWrappedObject->isBrushSet(cg, cr)); -} - -bool PythonQtWrapper_QPalette::isCopyOf(QPalette* theWrappedObject, const QPalette& p) const -{ - return ( theWrappedObject->isCopyOf(p)); -} - -bool PythonQtWrapper_QPalette::isEqual(QPalette* theWrappedObject, QPalette::ColorGroup cr1, QPalette::ColorGroup cr2) const -{ - return ( theWrappedObject->isEqual(cr1, cr2)); -} - -const QBrush* PythonQtWrapper_QPalette::light(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->light()); -} - -const QBrush* PythonQtWrapper_QPalette::link(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->link()); -} - -const QBrush* PythonQtWrapper_QPalette::linkVisited(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->linkVisited()); -} - -const QBrush* PythonQtWrapper_QPalette::mid(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->mid()); -} - -const QBrush* PythonQtWrapper_QPalette::midlight(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->midlight()); -} - -bool PythonQtWrapper_QPalette::__ne__(QPalette* theWrappedObject, const QPalette& p) const -{ - return ( (*theWrappedObject)!= p); -} - -void PythonQtWrapper_QPalette::writeTo(QPalette* theWrappedObject, QDataStream& ds) -{ - ds << (*theWrappedObject); -} - -bool PythonQtWrapper_QPalette::__eq__(QPalette* theWrappedObject, const QPalette& p) const -{ - return ( (*theWrappedObject)== p); -} - -void PythonQtWrapper_QPalette::readFrom(QPalette* theWrappedObject, QDataStream& ds) -{ - ds >> (*theWrappedObject); -} - -uint PythonQtWrapper_QPalette::resolve(QPalette* theWrappedObject) const -{ - return ( theWrappedObject->resolve()); -} - -QPalette PythonQtWrapper_QPalette::resolve(QPalette* theWrappedObject, const QPalette& arg__1) const -{ - return ( theWrappedObject->resolve(arg__1)); -} - -void PythonQtWrapper_QPalette::resolve(QPalette* theWrappedObject, uint mask) -{ - ( theWrappedObject->resolve(mask)); -} - -void PythonQtWrapper_QPalette::setBrush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QBrush& brush) -{ - ( theWrappedObject->setBrush(cg, cr, brush)); -} - -void PythonQtWrapper_QPalette::setBrush(QPalette* theWrappedObject, QPalette::ColorRole cr, const QBrush& brush) -{ - ( theWrappedObject->setBrush(cr, brush)); -} - -void PythonQtWrapper_QPalette::setColor(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QColor& color) -{ - ( theWrappedObject->setColor(cg, cr, color)); -} - -void PythonQtWrapper_QPalette::setColor(QPalette* theWrappedObject, QPalette::ColorRole cr, const QColor& color) -{ - ( theWrappedObject->setColor(cr, color)); -} - -void PythonQtWrapper_QPalette::setColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cr, const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window) -{ - ( theWrappedObject->setColorGroup(cr, windowText, button, light, dark, mid, text, bright_text, base, window)); -} - -void PythonQtWrapper_QPalette::setCurrentColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cg) -{ - ( theWrappedObject->setCurrentColorGroup(cg)); -} - -const QBrush* PythonQtWrapper_QPalette::shadow(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->shadow()); -} - -const QBrush* PythonQtWrapper_QPalette::text(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->text()); -} - -const QBrush* PythonQtWrapper_QPalette::toolTipBase(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->toolTipBase()); -} - -const QBrush* PythonQtWrapper_QPalette::toolTipText(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->toolTipText()); -} - -const QBrush* PythonQtWrapper_QPalette::window(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->window()); -} - -const QBrush* PythonQtWrapper_QPalette::windowText(QPalette* theWrappedObject) const -{ - return &( theWrappedObject->windowText()); -} - - - -QPen* PythonQtWrapper_QPen::new_QPen() -{ -return new QPen(); } - -QPen* PythonQtWrapper_QPen::new_QPen(Qt::PenStyle arg__1) -{ -return new QPen(arg__1); } - -QPen* PythonQtWrapper_QPen::new_QPen(const QBrush& brush, qreal width, Qt::PenStyle s, Qt::PenCapStyle c, Qt::PenJoinStyle j) -{ -return new QPen(brush, width, s, c, j); } - -QPen* PythonQtWrapper_QPen::new_QPen(const QColor& color) -{ -return new QPen(color); } - -QPen* PythonQtWrapper_QPen::new_QPen(const QPen& pen) -{ -return new QPen(pen); } - -QBrush PythonQtWrapper_QPen::brush(QPen* theWrappedObject) const -{ - return ( theWrappedObject->brush()); -} - -Qt::PenCapStyle PythonQtWrapper_QPen::capStyle(QPen* theWrappedObject) const -{ - return ( theWrappedObject->capStyle()); -} - -QColor PythonQtWrapper_QPen::color(QPen* theWrappedObject) const -{ - return ( theWrappedObject->color()); -} - -qreal PythonQtWrapper_QPen::dashOffset(QPen* theWrappedObject) const -{ - return ( theWrappedObject->dashOffset()); -} - -QVector PythonQtWrapper_QPen::dashPattern(QPen* theWrappedObject) const -{ - return ( theWrappedObject->dashPattern()); -} - -bool PythonQtWrapper_QPen::isCosmetic(QPen* theWrappedObject) const -{ - return ( theWrappedObject->isCosmetic()); -} - -bool PythonQtWrapper_QPen::isSolid(QPen* theWrappedObject) const -{ - return ( theWrappedObject->isSolid()); -} - -Qt::PenJoinStyle PythonQtWrapper_QPen::joinStyle(QPen* theWrappedObject) const -{ - return ( theWrappedObject->joinStyle()); -} - -qreal PythonQtWrapper_QPen::miterLimit(QPen* theWrappedObject) const -{ - return ( theWrappedObject->miterLimit()); -} - -bool PythonQtWrapper_QPen::__ne__(QPen* theWrappedObject, const QPen& p) const -{ - return ( (*theWrappedObject)!= p); -} - -void PythonQtWrapper_QPen::writeTo(QPen* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QPen::__eq__(QPen* theWrappedObject, const QPen& p) const -{ - return ( (*theWrappedObject)== p); -} - -void PythonQtWrapper_QPen::readFrom(QPen* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QPen::setBrush(QPen* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBrush(brush)); -} - -void PythonQtWrapper_QPen::setCapStyle(QPen* theWrappedObject, Qt::PenCapStyle pcs) -{ - ( theWrappedObject->setCapStyle(pcs)); -} - -void PythonQtWrapper_QPen::setColor(QPen* theWrappedObject, const QColor& color) -{ - ( theWrappedObject->setColor(color)); -} - -void PythonQtWrapper_QPen::setCosmetic(QPen* theWrappedObject, bool cosmetic) -{ - ( theWrappedObject->setCosmetic(cosmetic)); -} - -void PythonQtWrapper_QPen::setDashOffset(QPen* theWrappedObject, qreal doffset) -{ - ( theWrappedObject->setDashOffset(doffset)); -} - -void PythonQtWrapper_QPen::setDashPattern(QPen* theWrappedObject, const QVector& pattern) -{ - ( theWrappedObject->setDashPattern(pattern)); -} - -void PythonQtWrapper_QPen::setJoinStyle(QPen* theWrappedObject, Qt::PenJoinStyle pcs) -{ - ( theWrappedObject->setJoinStyle(pcs)); -} - -void PythonQtWrapper_QPen::setMiterLimit(QPen* theWrappedObject, qreal limit) -{ - ( theWrappedObject->setMiterLimit(limit)); -} - -void PythonQtWrapper_QPen::setStyle(QPen* theWrappedObject, Qt::PenStyle arg__1) -{ - ( theWrappedObject->setStyle(arg__1)); -} - -void PythonQtWrapper_QPen::setWidth(QPen* theWrappedObject, int width) -{ - ( theWrappedObject->setWidth(width)); -} - -void PythonQtWrapper_QPen::setWidthF(QPen* theWrappedObject, qreal width) -{ - ( theWrappedObject->setWidthF(width)); -} - -Qt::PenStyle PythonQtWrapper_QPen::style(QPen* theWrappedObject) const -{ - return ( theWrappedObject->style()); -} - -int PythonQtWrapper_QPen::width(QPen* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - -qreal PythonQtWrapper_QPen::widthF(QPen* theWrappedObject) const -{ - return ( theWrappedObject->widthF()); -} - -QString PythonQtWrapper_QPen::py_toString(QPen* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -int PythonQtShell_QPixmap::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap::devType(); -} -int PythonQtShell_QPixmap::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap::metric(arg__1); -} -QPaintEngine* PythonQtShell_QPixmap::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QPixmap::paintEngine(); -} -QPixmap* PythonQtWrapper_QPixmap::new_QPixmap() -{ -return new PythonQtShell_QPixmap(); } - -QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QPixmap& arg__1) -{ -return new PythonQtShell_QPixmap(arg__1); } - -QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QSize& arg__1) -{ -return new PythonQtShell_QPixmap(arg__1); } - -QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const QString& fileName, const char* format, Qt::ImageConversionFlags flags) -{ -return new PythonQtShell_QPixmap(fileName, format, flags); } - -QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(const char** xpm) -{ -return new PythonQtShell_QPixmap(xpm); } - -QPixmap* PythonQtWrapper_QPixmap::new_QPixmap(int w, int h) -{ -return new PythonQtShell_QPixmap(w, h); } - -QPixmap PythonQtWrapper_QPixmap::alphaChannel(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->alphaChannel()); -} - -qint64 PythonQtWrapper_QPixmap::cacheKey(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->cacheKey()); -} - -QPixmap PythonQtWrapper_QPixmap::copy(QPixmap* theWrappedObject, const QRect& rect) const -{ - return ( theWrappedObject->copy(rect)); -} - -QPixmap PythonQtWrapper_QPixmap::copy(QPixmap* theWrappedObject, int x, int y, int width, int height) const -{ - return ( theWrappedObject->copy(x, y, width, height)); -} - -QBitmap PythonQtWrapper_QPixmap::createHeuristicMask(QPixmap* theWrappedObject, bool clipTight) const -{ - return ( theWrappedObject->createHeuristicMask(clipTight)); -} - -QBitmap PythonQtWrapper_QPixmap::createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor) const -{ - return ( theWrappedObject->createMaskFromColor(maskColor)); -} - -QBitmap PythonQtWrapper_QPixmap::createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor, Qt::MaskMode mode) const -{ - return ( theWrappedObject->createMaskFromColor(maskColor, mode)); -} - -int PythonQtWrapper_QPixmap::static_QPixmap_defaultDepth() -{ - return (QPixmap::defaultDepth()); -} - -int PythonQtWrapper_QPixmap::depth(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->depth()); -} - -int PythonQtWrapper_QPixmap::devType(QPixmap* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_devType()); -} - -void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QColor& fillColor) -{ - ( theWrappedObject->fill(fillColor)); -} - -void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QWidget* widget, const QPoint& ofs) -{ - ( theWrappedObject->fill(widget, ofs)); -} - -void PythonQtWrapper_QPixmap::fill(QPixmap* theWrappedObject, const QWidget* widget, int xofs, int yofs) -{ - ( theWrappedObject->fill(widget, xofs, yofs)); -} - -QPixmap PythonQtWrapper_QPixmap::static_QPixmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags) -{ - return (QPixmap::fromImage(image, flags)); -} - -QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWidget(QWidget* widget, const QRect& rect) -{ - return (QPixmap::grabWidget(widget, rect)); -} - -QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWidget(QWidget* widget, int x, int y, int w, int h) -{ - return (QPixmap::grabWidget(widget, x, y, w, h)); -} - -QPixmap PythonQtWrapper_QPixmap::static_QPixmap_grabWindow(WId arg__1, int x, int y, int w, int h) -{ - return (QPixmap::grabWindow(arg__1, x, y, w, h)); -} - -bool PythonQtWrapper_QPixmap::hasAlpha(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->hasAlpha()); -} - -bool PythonQtWrapper_QPixmap::hasAlphaChannel(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->hasAlphaChannel()); -} - -int PythonQtWrapper_QPixmap::height(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->height()); -} - -bool PythonQtWrapper_QPixmap::isNull(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QPixmap::isQBitmap(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->isQBitmap()); -} - -bool PythonQtWrapper_QPixmap::load(QPixmap* theWrappedObject, const QString& fileName, const char* format, Qt::ImageConversionFlags flags) -{ - return ( theWrappedObject->load(fileName, format, flags)); -} - -bool PythonQtWrapper_QPixmap::loadFromData(QPixmap* theWrappedObject, const QByteArray& data, const char* format, Qt::ImageConversionFlags flags) -{ - return ( theWrappedObject->loadFromData(data, format, flags)); -} - -QBitmap PythonQtWrapper_QPixmap::mask(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->mask()); -} - -int PythonQtWrapper_QPixmap::metric(QPixmap* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const -{ - return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_metric(arg__1)); -} - -void PythonQtWrapper_QPixmap::writeTo(QPixmap* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -void PythonQtWrapper_QPixmap::readFrom(QPixmap* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPaintEngine* PythonQtWrapper_QPixmap::paintEngine(QPixmap* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QPixmap*)theWrappedObject)->promoted_paintEngine()); -} - -QRect PythonQtWrapper_QPixmap::rect(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->rect()); -} - -bool PythonQtWrapper_QPixmap::save(QPixmap* theWrappedObject, QIODevice* device, const char* format, int quality) const -{ - return ( theWrappedObject->save(device, format, quality)); -} - -bool PythonQtWrapper_QPixmap::save(QPixmap* theWrappedObject, const QString& fileName, const char* format, int quality) const -{ - return ( theWrappedObject->save(fileName, format, quality)); -} - -QPixmap PythonQtWrapper_QPixmap::scaled(QPixmap* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaled(s, aspectMode, mode)); -} - -QPixmap PythonQtWrapper_QPixmap::scaled(QPixmap* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaled(w, h, aspectMode, mode)); -} - -QPixmap PythonQtWrapper_QPixmap::scaledToHeight(QPixmap* theWrappedObject, int h, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaledToHeight(h, mode)); -} - -QPixmap PythonQtWrapper_QPixmap::scaledToWidth(QPixmap* theWrappedObject, int w, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->scaledToWidth(w, mode)); -} - -void PythonQtWrapper_QPixmap::scroll(QPixmap* theWrappedObject, int dx, int dy, const QRect& rect, QRegion* exposed) -{ - ( theWrappedObject->scroll(dx, dy, rect, exposed)); -} - -void PythonQtWrapper_QPixmap::scroll(QPixmap* theWrappedObject, int dx, int dy, int x, int y, int width, int height, QRegion* exposed) -{ - ( theWrappedObject->scroll(dx, dy, x, y, width, height, exposed)); -} - -void PythonQtWrapper_QPixmap::setAlphaChannel(QPixmap* theWrappedObject, const QPixmap& arg__1) -{ - ( theWrappedObject->setAlphaChannel(arg__1)); -} - -void PythonQtWrapper_QPixmap::setMask(QPixmap* theWrappedObject, const QBitmap& arg__1) -{ - ( theWrappedObject->setMask(arg__1)); -} - -QSize PythonQtWrapper_QPixmap::size(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -QImage PythonQtWrapper_QPixmap::toImage(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->toImage()); -} - -QPixmap PythonQtWrapper_QPixmap::transformed(QPixmap* theWrappedObject, const QMatrix& arg__1, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->transformed(arg__1, mode)); -} - -QPixmap PythonQtWrapper_QPixmap::transformed(QPixmap* theWrappedObject, const QTransform& arg__1, Qt::TransformationMode mode) const -{ - return ( theWrappedObject->transformed(arg__1, mode)); -} - -QMatrix PythonQtWrapper_QPixmap::static_QPixmap_trueMatrix(const QMatrix& m, int w, int h) -{ - return (QPixmap::trueMatrix(m, w, h)); -} - -QTransform PythonQtWrapper_QPixmap::static_QPixmap_trueMatrix(const QTransform& m, int w, int h) -{ - return (QPixmap::trueMatrix(m, w, h)); -} - -int PythonQtWrapper_QPixmap::width(QPixmap* theWrappedObject) const -{ - return ( theWrappedObject->width()); -} - - - -QPolygon* PythonQtWrapper_QPolygon::new_QPolygon() -{ -return new QPolygon(); } - -QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QPolygon& a) -{ -return new QPolygon(a); } - -QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QRect& r, bool closed) -{ -return new QPolygon(r, closed); } - -QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(const QVector& v) -{ -return new QPolygon(v); } - -QPolygon* PythonQtWrapper_QPolygon::new_QPolygon(int size) -{ -return new QPolygon(size); } - -void PythonQtWrapper_QPolygon::append(QPolygon* theWrappedObject, const QPoint& t) -{ - ( theWrappedObject->append(t)); -} - -const QPoint* PythonQtWrapper_QPolygon::at(QPolygon* theWrappedObject, int i) const -{ - return &( theWrappedObject->at(i)); -} - -QRect PythonQtWrapper_QPolygon::boundingRect(QPolygon* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -int PythonQtWrapper_QPolygon::capacity(QPolygon* theWrappedObject) const -{ - return ( theWrappedObject->capacity()); -} - -void PythonQtWrapper_QPolygon::clear(QPolygon* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QPolygon::contains(QPolygon* theWrappedObject, const QPoint& t) const -{ - return ( theWrappedObject->contains(t)); -} - -bool PythonQtWrapper_QPolygon::containsPoint(QPolygon* theWrappedObject, const QPoint& pt, Qt::FillRule fillRule) const -{ - return ( theWrappedObject->containsPoint(pt, fillRule)); -} - -int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject) const -{ - return ( theWrappedObject->count()); -} - -int PythonQtWrapper_QPolygon::count(QPolygon* theWrappedObject, const QPoint& t) const -{ - return ( theWrappedObject->count(t)); -} - -bool PythonQtWrapper_QPolygon::empty(QPolygon* theWrappedObject) const -{ - return ( theWrappedObject->empty()); -} - -bool PythonQtWrapper_QPolygon::endsWith(QPolygon* theWrappedObject, const QPoint& t) const -{ - return ( theWrappedObject->endsWith(t)); -} - -QVector* PythonQtWrapper_QPolygon::fill(QPolygon* theWrappedObject, const QPoint& t, int size) -{ - return &( theWrappedObject->fill(t, size)); -} - -const QPoint* PythonQtWrapper_QPolygon::first(QPolygon* theWrappedObject) const -{ - return &( theWrappedObject->first()); -} - -QVector PythonQtWrapper_QPolygon::static_QPolygon_fromList(const QList& list) -{ - return (QPolygon::fromList(list)); -} - -int PythonQtWrapper_QPolygon::indexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const -{ - return ( theWrappedObject->indexOf(t, from)); -} - -QPolygon PythonQtWrapper_QPolygon::intersected(QPolygon* theWrappedObject, const QPolygon& r) const -{ - return ( theWrappedObject->intersected(r)); -} - -bool PythonQtWrapper_QPolygon::isEmpty(QPolygon* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -const QPoint* PythonQtWrapper_QPolygon::last(QPolygon* theWrappedObject) const -{ - return &( theWrappedObject->last()); -} - -int PythonQtWrapper_QPolygon::lastIndexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const -{ - return ( theWrappedObject->lastIndexOf(t, from)); -} - -QVector PythonQtWrapper_QPolygon::mid(QPolygon* theWrappedObject, int pos, int length) const -{ - return ( theWrappedObject->mid(pos, length)); -} - -bool PythonQtWrapper_QPolygon::__ne__(QPolygon* theWrappedObject, const QVector& v) const -{ - return ( (*theWrappedObject)!= v); -} - -QPolygon PythonQtWrapper_QPolygon::__mul__(QPolygon* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QPolygon PythonQtWrapper_QPolygon::__mul__(QPolygon* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -void PythonQtWrapper_QPolygon::writeTo(QPolygon* theWrappedObject, QDataStream& stream) -{ - stream << (*theWrappedObject); -} - -bool PythonQtWrapper_QPolygon::__eq__(QPolygon* theWrappedObject, const QVector& v) const -{ - return ( (*theWrappedObject)== v); -} - -void PythonQtWrapper_QPolygon::readFrom(QPolygon* theWrappedObject, QDataStream& stream) -{ - stream >> (*theWrappedObject); -} - -void PythonQtWrapper_QPolygon::pop_back(QPolygon* theWrappedObject) -{ - ( theWrappedObject->pop_back()); -} - -void PythonQtWrapper_QPolygon::pop_front(QPolygon* theWrappedObject) -{ - ( theWrappedObject->pop_front()); -} - -void PythonQtWrapper_QPolygon::prepend(QPolygon* theWrappedObject, const QPoint& t) -{ - ( theWrappedObject->prepend(t)); -} - -void PythonQtWrapper_QPolygon::push_back(QPolygon* theWrappedObject, const QPoint& t) -{ - ( theWrappedObject->push_back(t)); -} - -void PythonQtWrapper_QPolygon::push_front(QPolygon* theWrappedObject, const QPoint& t) -{ - ( theWrappedObject->push_front(t)); -} - -void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i) -{ - ( theWrappedObject->remove(i)); -} - -void PythonQtWrapper_QPolygon::remove(QPolygon* theWrappedObject, int i, int n) -{ - ( theWrappedObject->remove(i, n)); -} - -void PythonQtWrapper_QPolygon::replace(QPolygon* theWrappedObject, int i, const QPoint& t) -{ - ( theWrappedObject->replace(i, t)); -} - -void PythonQtWrapper_QPolygon::reserve(QPolygon* theWrappedObject, int size) -{ - ( theWrappedObject->reserve(size)); -} - -void PythonQtWrapper_QPolygon::resize(QPolygon* theWrappedObject, int size) -{ - ( theWrappedObject->resize(size)); -} - -void PythonQtWrapper_QPolygon::setSharable(QPolygon* theWrappedObject, bool sharable) -{ - ( theWrappedObject->setSharable(sharable)); -} - -int PythonQtWrapper_QPolygon::size(QPolygon* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - -void PythonQtWrapper_QPolygon::squeeze(QPolygon* theWrappedObject) -{ - ( theWrappedObject->squeeze()); -} - -bool PythonQtWrapper_QPolygon::startsWith(QPolygon* theWrappedObject, const QPoint& t) const -{ - return ( theWrappedObject->startsWith(t)); -} - -QPolygon PythonQtWrapper_QPolygon::subtracted(QPolygon* theWrappedObject, const QPolygon& r) const -{ - return ( theWrappedObject->subtracted(r)); -} - -QList PythonQtWrapper_QPolygon::toList(QPolygon* theWrappedObject) const -{ - return ( theWrappedObject->toList()); -} - -void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, const QPoint& offset) -{ - ( theWrappedObject->translate(offset)); -} - -void PythonQtWrapper_QPolygon::translate(QPolygon* theWrappedObject, int dx, int dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QPolygon PythonQtWrapper_QPolygon::translated(QPolygon* theWrappedObject, const QPoint& offset) const -{ - return ( theWrappedObject->translated(offset)); -} - -QPolygon PythonQtWrapper_QPolygon::translated(QPolygon* theWrappedObject, int dx, int dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -QPolygon PythonQtWrapper_QPolygon::united(QPolygon* theWrappedObject, const QPolygon& r) const -{ - return ( theWrappedObject->united(r)); -} - -QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i) const -{ - return ( theWrappedObject->value(i)); -} - -QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i, const QPoint& defaultValue) const -{ - return ( theWrappedObject->value(i, defaultValue)); -} - -QString PythonQtWrapper_QPolygon::py_toString(QPolygon* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QRegion* PythonQtWrapper_QRegion::new_QRegion() -{ -return new QRegion(); } - -QRegion* PythonQtWrapper_QRegion::new_QRegion(const QBitmap& bitmap) -{ -return new QRegion(bitmap); } - -QRegion* PythonQtWrapper_QRegion::new_QRegion(const QPolygon& pa, Qt::FillRule fillRule) -{ -return new QRegion(pa, fillRule); } - -QRegion* PythonQtWrapper_QRegion::new_QRegion(const QRect& r, QRegion::RegionType t) -{ -return new QRegion(r, t); } - -QRegion* PythonQtWrapper_QRegion::new_QRegion(const QRegion& region) -{ -return new QRegion(region); } - -QRegion* PythonQtWrapper_QRegion::new_QRegion(int x, int y, int w, int h, QRegion::RegionType t) -{ -return new QRegion(x, y, w, h, t); } - -QRect PythonQtWrapper_QRegion::boundingRect(QRegion* theWrappedObject) const -{ - return ( theWrappedObject->boundingRect()); -} - -bool PythonQtWrapper_QRegion::contains(QRegion* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->contains(p)); -} - -bool PythonQtWrapper_QRegion::contains(QRegion* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->contains(r)); -} - -QRegion PythonQtWrapper_QRegion::intersect(QRegion* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->intersect(r)); -} - -QRegion PythonQtWrapper_QRegion::intersected(QRegion* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->intersected(r)); -} - -QRegion PythonQtWrapper_QRegion::intersected(QRegion* theWrappedObject, const QRegion& r) const -{ - return ( theWrappedObject->intersected(r)); -} - -bool PythonQtWrapper_QRegion::intersects(QRegion* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->intersects(r)); -} - -bool PythonQtWrapper_QRegion::intersects(QRegion* theWrappedObject, const QRegion& r) const -{ - return ( theWrappedObject->intersects(r)); -} - -bool PythonQtWrapper_QRegion::isEmpty(QRegion* theWrappedObject) const -{ - return ( theWrappedObject->isEmpty()); -} - -int PythonQtWrapper_QRegion::numRects(QRegion* theWrappedObject) const -{ - return ( theWrappedObject->numRects()); -} - -bool PythonQtWrapper_QRegion::__ne__(QRegion* theWrappedObject, const QRegion& r) const -{ - return ( (*theWrappedObject)!= r); -} - -const QRegion PythonQtWrapper_QRegion::__and__(QRegion* theWrappedObject, const QRect& r) const -{ - return ( (*theWrappedObject)& r); -} - -QRegion PythonQtWrapper_QRegion::__mul__(QRegion* theWrappedObject, const QMatrix& m) -{ - return ( (*theWrappedObject)* m); -} - -QRegion PythonQtWrapper_QRegion::__mul__(QRegion* theWrappedObject, const QTransform& m) -{ - return ( (*theWrappedObject)* m); -} - -const QRegion PythonQtWrapper_QRegion::__add__(QRegion* theWrappedObject, const QRect& r) const -{ - return ( (*theWrappedObject)+ r); -} - -void PythonQtWrapper_QRegion::writeTo(QRegion* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QRegion::__eq__(QRegion* theWrappedObject, const QRegion& r) const -{ - return ( (*theWrappedObject)== r); -} - -void PythonQtWrapper_QRegion::readFrom(QRegion* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -int PythonQtWrapper_QRegion::rectCount(QRegion* theWrappedObject) const -{ - return ( theWrappedObject->rectCount()); -} - -QVector PythonQtWrapper_QRegion::rects(QRegion* theWrappedObject) const -{ - return ( theWrappedObject->rects()); -} - -void PythonQtWrapper_QRegion::setRects(QRegion* theWrappedObject, const QRect* rect, int num) -{ - ( theWrappedObject->setRects(rect, num)); -} - -QRegion PythonQtWrapper_QRegion::subtracted(QRegion* theWrappedObject, const QRegion& r) const -{ - return ( theWrappedObject->subtracted(r)); -} - -void PythonQtWrapper_QRegion::translate(QRegion* theWrappedObject, const QPoint& p) -{ - ( theWrappedObject->translate(p)); -} - -void PythonQtWrapper_QRegion::translate(QRegion* theWrappedObject, int dx, int dy) -{ - ( theWrappedObject->translate(dx, dy)); -} - -QRegion PythonQtWrapper_QRegion::translated(QRegion* theWrappedObject, const QPoint& p) const -{ - return ( theWrappedObject->translated(p)); -} - -QRegion PythonQtWrapper_QRegion::translated(QRegion* theWrappedObject, int dx, int dy) const -{ - return ( theWrappedObject->translated(dx, dy)); -} - -QRegion PythonQtWrapper_QRegion::unite(QRegion* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->unite(r)); -} - -QRegion PythonQtWrapper_QRegion::united(QRegion* theWrappedObject, const QRect& r) const -{ - return ( theWrappedObject->united(r)); -} - -QRegion PythonQtWrapper_QRegion::united(QRegion* theWrappedObject, const QRegion& r) const -{ - return ( theWrappedObject->united(r)); -} - -QRegion PythonQtWrapper_QRegion::xored(QRegion* theWrappedObject, const QRegion& r) const -{ - return ( theWrappedObject->xored(r)); -} - -QString PythonQtWrapper_QRegion::py_toString(QRegion* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QSizePolicy* PythonQtWrapper_QSizePolicy::new_QSizePolicy() -{ -return new QSizePolicy(); } - -QSizePolicy* PythonQtWrapper_QSizePolicy::new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) -{ -return new QSizePolicy(horizontal, vertical); } - -QSizePolicy* PythonQtWrapper_QSizePolicy::new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type) -{ -return new QSizePolicy(horizontal, vertical, type); } - -QSizePolicy::ControlType PythonQtWrapper_QSizePolicy::controlType(QSizePolicy* theWrappedObject) const -{ - return ( theWrappedObject->controlType()); -} - -Qt::Orientations PythonQtWrapper_QSizePolicy::expandingDirections(QSizePolicy* theWrappedObject) const -{ - return ( theWrappedObject->expandingDirections()); -} - -bool PythonQtWrapper_QSizePolicy::hasHeightForWidth(QSizePolicy* theWrappedObject) const -{ - return ( theWrappedObject->hasHeightForWidth()); -} - -QSizePolicy::Policy PythonQtWrapper_QSizePolicy::horizontalPolicy(QSizePolicy* theWrappedObject) const -{ - return ( theWrappedObject->horizontalPolicy()); -} - -int PythonQtWrapper_QSizePolicy::horizontalStretch(QSizePolicy* theWrappedObject) const -{ - return ( theWrappedObject->horizontalStretch()); -} - -bool PythonQtWrapper_QSizePolicy::__ne__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const -{ - return ( (*theWrappedObject)!= s); -} - -void PythonQtWrapper_QSizePolicy::writeTo(QSizePolicy* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QSizePolicy::__eq__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const -{ - return ( (*theWrappedObject)== s); -} - -void PythonQtWrapper_QSizePolicy::readFrom(QSizePolicy* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -void PythonQtWrapper_QSizePolicy::setControlType(QSizePolicy* theWrappedObject, QSizePolicy::ControlType type) -{ - ( theWrappedObject->setControlType(type)); -} - -void PythonQtWrapper_QSizePolicy::setHeightForWidth(QSizePolicy* theWrappedObject, bool b) -{ - ( theWrappedObject->setHeightForWidth(b)); -} - -void PythonQtWrapper_QSizePolicy::setHorizontalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d) -{ - ( theWrappedObject->setHorizontalPolicy(d)); -} - -void PythonQtWrapper_QSizePolicy::setHorizontalStretch(QSizePolicy* theWrappedObject, uchar stretchFactor) -{ - ( theWrappedObject->setHorizontalStretch(stretchFactor)); -} - -void PythonQtWrapper_QSizePolicy::setVerticalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d) -{ - ( theWrappedObject->setVerticalPolicy(d)); -} - -void PythonQtWrapper_QSizePolicy::setVerticalStretch(QSizePolicy* theWrappedObject, uchar stretchFactor) -{ - ( theWrappedObject->setVerticalStretch(stretchFactor)); -} - -void PythonQtWrapper_QSizePolicy::transpose(QSizePolicy* theWrappedObject) -{ - ( theWrappedObject->transpose()); -} - -QSizePolicy::Policy PythonQtWrapper_QSizePolicy::verticalPolicy(QSizePolicy* theWrappedObject) const -{ - return ( theWrappedObject->verticalPolicy()); -} - -int PythonQtWrapper_QSizePolicy::verticalStretch(QSizePolicy* theWrappedObject) const -{ - return ( theWrappedObject->verticalStretch()); -} - - - -QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat() -{ -return new QTextFormat(); } - -QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat(const QTextFormat& rhs) -{ -return new QTextFormat(rhs); } - -QTextFormat* PythonQtWrapper_QTextFormat::new_QTextFormat(int type) -{ -return new QTextFormat(type); } - -QBrush PythonQtWrapper_QTextFormat::background(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->background()); -} - -bool PythonQtWrapper_QTextFormat::boolProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->boolProperty(propertyId)); -} - -QBrush PythonQtWrapper_QTextFormat::brushProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->brushProperty(propertyId)); -} - -void PythonQtWrapper_QTextFormat::clearBackground(QTextFormat* theWrappedObject) -{ - ( theWrappedObject->clearBackground()); -} - -void PythonQtWrapper_QTextFormat::clearForeground(QTextFormat* theWrappedObject) -{ - ( theWrappedObject->clearForeground()); -} - -void PythonQtWrapper_QTextFormat::clearProperty(QTextFormat* theWrappedObject, int propertyId) -{ - ( theWrappedObject->clearProperty(propertyId)); -} - -QColor PythonQtWrapper_QTextFormat::colorProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->colorProperty(propertyId)); -} - -qreal PythonQtWrapper_QTextFormat::doubleProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->doubleProperty(propertyId)); -} - -QBrush PythonQtWrapper_QTextFormat::foreground(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->foreground()); -} - -bool PythonQtWrapper_QTextFormat::hasProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->hasProperty(propertyId)); -} - -int PythonQtWrapper_QTextFormat::intProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->intProperty(propertyId)); -} - -bool PythonQtWrapper_QTextFormat::isBlockFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isBlockFormat()); -} - -bool PythonQtWrapper_QTextFormat::isCharFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isCharFormat()); -} - -bool PythonQtWrapper_QTextFormat::isFrameFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isFrameFormat()); -} - -bool PythonQtWrapper_QTextFormat::isImageFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isImageFormat()); -} - -bool PythonQtWrapper_QTextFormat::isListFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isListFormat()); -} - -bool PythonQtWrapper_QTextFormat::isTableCellFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isTableCellFormat()); -} - -bool PythonQtWrapper_QTextFormat::isTableFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isTableFormat()); -} - -bool PythonQtWrapper_QTextFormat::isValid(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -Qt::LayoutDirection PythonQtWrapper_QTextFormat::layoutDirection(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->layoutDirection()); -} - -QTextLength PythonQtWrapper_QTextFormat::lengthProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->lengthProperty(propertyId)); -} - -QVector PythonQtWrapper_QTextFormat::lengthVectorProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->lengthVectorProperty(propertyId)); -} - -void PythonQtWrapper_QTextFormat::merge(QTextFormat* theWrappedObject, const QTextFormat& other) -{ - ( theWrappedObject->merge(other)); -} - -int PythonQtWrapper_QTextFormat::objectIndex(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->objectIndex()); -} - -int PythonQtWrapper_QTextFormat::objectType(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->objectType()); -} - -bool PythonQtWrapper_QTextFormat::__ne__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const -{ - return ( (*theWrappedObject)!= rhs); -} - -void PythonQtWrapper_QTextFormat::writeTo(QTextFormat* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QTextFormat::__eq__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const -{ - return ( (*theWrappedObject)== rhs); -} - -void PythonQtWrapper_QTextFormat::readFrom(QTextFormat* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPen PythonQtWrapper_QTextFormat::penProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->penProperty(propertyId)); -} - -QMap PythonQtWrapper_QTextFormat::properties(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->properties()); -} - -QVariant PythonQtWrapper_QTextFormat::property(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->property(propertyId)); -} - -int PythonQtWrapper_QTextFormat::propertyCount(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->propertyCount()); -} - -void PythonQtWrapper_QTextFormat::setBackground(QTextFormat* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setBackground(brush)); -} - -void PythonQtWrapper_QTextFormat::setForeground(QTextFormat* theWrappedObject, const QBrush& brush) -{ - ( theWrappedObject->setForeground(brush)); -} - -void PythonQtWrapper_QTextFormat::setLayoutDirection(QTextFormat* theWrappedObject, Qt::LayoutDirection direction) -{ - ( theWrappedObject->setLayoutDirection(direction)); -} - -void PythonQtWrapper_QTextFormat::setObjectIndex(QTextFormat* theWrappedObject, int object) -{ - ( theWrappedObject->setObjectIndex(object)); -} - -void PythonQtWrapper_QTextFormat::setObjectType(QTextFormat* theWrappedObject, int type) -{ - ( theWrappedObject->setObjectType(type)); -} - -void PythonQtWrapper_QTextFormat::setProperty(QTextFormat* theWrappedObject, int propertyId, const QVariant& value) -{ - ( theWrappedObject->setProperty(propertyId, value)); -} - -void PythonQtWrapper_QTextFormat::setProperty(QTextFormat* theWrappedObject, int propertyId, const QVector& lengths) -{ - ( theWrappedObject->setProperty(propertyId, lengths)); -} - -QString PythonQtWrapper_QTextFormat::stringProperty(QTextFormat* theWrappedObject, int propertyId) const -{ - return ( theWrappedObject->stringProperty(propertyId)); -} - -QTextBlockFormat PythonQtWrapper_QTextFormat::toBlockFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->toBlockFormat()); -} - -QTextCharFormat PythonQtWrapper_QTextFormat::toCharFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->toCharFormat()); -} - -QTextFrameFormat PythonQtWrapper_QTextFormat::toFrameFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->toFrameFormat()); -} - -QTextImageFormat PythonQtWrapper_QTextFormat::toImageFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->toImageFormat()); -} - -QTextListFormat PythonQtWrapper_QTextFormat::toListFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->toListFormat()); -} - -QTextTableCellFormat PythonQtWrapper_QTextFormat::toTableCellFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->toTableCellFormat()); -} - -QTextTableFormat PythonQtWrapper_QTextFormat::toTableFormat(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->toTableFormat()); -} - -int PythonQtWrapper_QTextFormat::type(QTextFormat* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - - - -QTextLength* PythonQtWrapper_QTextLength::new_QTextLength() -{ -return new QTextLength(); } - -QTextLength* PythonQtWrapper_QTextLength::new_QTextLength(QTextLength::Type type, qreal value) -{ -return new QTextLength(type, value); } - -bool PythonQtWrapper_QTextLength::__ne__(QTextLength* theWrappedObject, const QTextLength& other) const -{ - return ( (*theWrappedObject)!= other); -} - -void PythonQtWrapper_QTextLength::writeTo(QTextLength* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QTextLength::__eq__(QTextLength* theWrappedObject, const QTextLength& other) const -{ - return ( (*theWrappedObject)== other); -} - -void PythonQtWrapper_QTextLength::readFrom(QTextLength* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -qreal PythonQtWrapper_QTextLength::rawValue(QTextLength* theWrappedObject) const -{ - return ( theWrappedObject->rawValue()); -} - -QTextLength::Type PythonQtWrapper_QTextLength::type(QTextLength* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -qreal PythonQtWrapper_QTextLength::value(QTextLength* theWrappedObject, qreal maximumLength) const -{ - return ( theWrappedObject->value(maximumLength)); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h deleted file mode 100644 index 5904de52c..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.h +++ /dev/null @@ -1,1063 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QBitmap : public QBitmap -{ -public: - PythonQtShell_QBitmap():QBitmap(),_wrapper(NULL) {}; - PythonQtShell_QBitmap(const QPixmap& arg__1):QBitmap(arg__1),_wrapper(NULL) {}; - PythonQtShell_QBitmap(const QSize& arg__1):QBitmap(arg__1),_wrapper(NULL) {}; - PythonQtShell_QBitmap(const QString& fileName, const char* format = 0):QBitmap(fileName, format),_wrapper(NULL) {}; - PythonQtShell_QBitmap(int w, int h):QBitmap(w, h),_wrapper(NULL) {}; - -virtual int devType() const; -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QPaintEngine* paintEngine() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QBitmap : public QObject -{ Q_OBJECT -public: -public slots: -QBitmap* new_QBitmap(); -QBitmap* new_QBitmap(const QPixmap& arg__1); -QBitmap* new_QBitmap(const QSize& arg__1); -QBitmap* new_QBitmap(const QString& fileName, const char* format = 0); -QBitmap* new_QBitmap(int w, int h); -QBitmap* new_QBitmap(const QBitmap& other) { -PythonQtShell_QBitmap* a = new PythonQtShell_QBitmap(); -*((QBitmap*)a) = other; -return a; } -void delete_QBitmap(QBitmap* obj) { delete obj; } - void clear(QBitmap* theWrappedObject); - QBitmap static_QBitmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags = Qt::AutoColor); - QBitmap transformed(QBitmap* theWrappedObject, const QMatrix& arg__1) const; - QBitmap transformed(QBitmap* theWrappedObject, const QTransform& matrix) const; - bool __nonzero__(QBitmap* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QBrush : public QObject -{ Q_OBJECT -public: -public slots: -QBrush* new_QBrush(); -QBrush* new_QBrush(Qt::BrushStyle bs); -QBrush* new_QBrush(Qt::GlobalColor color, const QPixmap& pixmap); -QBrush* new_QBrush(const QBrush& brush); -QBrush* new_QBrush(const QColor& color, Qt::BrushStyle bs = Qt::SolidPattern); -QBrush* new_QBrush(const QColor& color, const QPixmap& pixmap); -QBrush* new_QBrush(const QGradient& gradient); -QBrush* new_QBrush(const QImage& image); -QBrush* new_QBrush(const QPixmap& pixmap); -void delete_QBrush(QBrush* obj) { delete obj; } - const QColor* color(QBrush* theWrappedObject) const; - const QGradient* gradient(QBrush* theWrappedObject) const; - bool isOpaque(QBrush* theWrappedObject) const; - const QMatrix* matrix(QBrush* theWrappedObject) const; - bool __ne__(QBrush* theWrappedObject, const QBrush& b) const; - void writeTo(QBrush* theWrappedObject, QDataStream& arg__1); - bool __eq__(QBrush* theWrappedObject, const QBrush& b) const; - void readFrom(QBrush* theWrappedObject, QDataStream& arg__1); - void setColor(QBrush* theWrappedObject, Qt::GlobalColor color); - void setColor(QBrush* theWrappedObject, const QColor& color); - void setMatrix(QBrush* theWrappedObject, const QMatrix& mat); - void setStyle(QBrush* theWrappedObject, Qt::BrushStyle arg__1); - void setTexture(QBrush* theWrappedObject, const QPixmap& pixmap); - void setTextureImage(QBrush* theWrappedObject, const QImage& image); - void setTransform(QBrush* theWrappedObject, const QTransform& arg__1); - Qt::BrushStyle style(QBrush* theWrappedObject) const; - QPixmap texture(QBrush* theWrappedObject) const; - QImage textureImage(QBrush* theWrappedObject) const; - QTransform transform(QBrush* theWrappedObject) const; - QString py_toString(QBrush*); -}; - - - - - -class PythonQtWrapper_QColor : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Spec ) -enum Spec{ - Invalid = QColor::Invalid, Rgb = QColor::Rgb, Hsv = QColor::Hsv, Cmyk = QColor::Cmyk, Hsl = QColor::Hsl}; -public slots: -QColor* new_QColor(); -QColor* new_QColor(Qt::GlobalColor color); -QColor* new_QColor(const QColor& color); -QColor* new_QColor(const QString& name); -QColor* new_QColor(int r, int g, int b, int a = 255); -QColor* new_QColor(unsigned int rgb); -void delete_QColor(QColor* obj) { delete obj; } - int alpha(QColor* theWrappedObject) const; - qreal alphaF(QColor* theWrappedObject) const; - int black(QColor* theWrappedObject) const; - qreal blackF(QColor* theWrappedObject) const; - int blue(QColor* theWrappedObject) const; - qreal blueF(QColor* theWrappedObject) const; - QStringList static_QColor_colorNames(); - QColor convertTo(QColor* theWrappedObject, QColor::Spec colorSpec) const; - int cyan(QColor* theWrappedObject) const; - qreal cyanF(QColor* theWrappedObject) const; - QColor darker(QColor* theWrappedObject, int f = 200) const; - QColor static_QColor_fromCmyk(int c, int m, int y, int k, int a = 255); - QColor static_QColor_fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a = 1.0); - QColor static_QColor_fromHsl(int h, int s, int l, int a = 255); - QColor static_QColor_fromHslF(qreal h, qreal s, qreal l, qreal a = 1.0); - QColor static_QColor_fromHsv(int h, int s, int v, int a = 255); - QColor static_QColor_fromHsvF(qreal h, qreal s, qreal v, qreal a = 1.0); - QColor static_QColor_fromRgb(int r, int g, int b, int a = 255); - QColor static_QColor_fromRgb(unsigned int rgb); - QColor static_QColor_fromRgbF(qreal r, qreal g, qreal b, qreal a = 1.0); - QColor static_QColor_fromRgba(unsigned int rgba); - void getCmykF(QColor* theWrappedObject, qreal* c, qreal* m, qreal* y, qreal* k, qreal* a = 0); - void getHsl(QColor* theWrappedObject, int* h, int* s, int* l, int* a = 0) const; - void getHslF(QColor* theWrappedObject, qreal* h, qreal* s, qreal* l, qreal* a = 0) const; - void getHsvF(QColor* theWrappedObject, qreal* h, qreal* s, qreal* v, qreal* a = 0) const; - void getRgbF(QColor* theWrappedObject, qreal* r, qreal* g, qreal* b, qreal* a = 0) const; - int green(QColor* theWrappedObject) const; - qreal greenF(QColor* theWrappedObject) const; - int hslHue(QColor* theWrappedObject) const; - qreal hslHueF(QColor* theWrappedObject) const; - int hslSaturation(QColor* theWrappedObject) const; - qreal hslSaturationF(QColor* theWrappedObject) const; - int hsvHue(QColor* theWrappedObject) const; - qreal hsvHueF(QColor* theWrappedObject) const; - int hsvSaturation(QColor* theWrappedObject) const; - qreal hsvSaturationF(QColor* theWrappedObject) const; - int hue(QColor* theWrappedObject) const; - qreal hueF(QColor* theWrappedObject) const; - bool isValid(QColor* theWrappedObject) const; - QColor lighter(QColor* theWrappedObject, int f = 150) const; - int lightness(QColor* theWrappedObject) const; - qreal lightnessF(QColor* theWrappedObject) const; - int magenta(QColor* theWrappedObject) const; - qreal magentaF(QColor* theWrappedObject) const; - QString name(QColor* theWrappedObject) const; - bool __ne__(QColor* theWrappedObject, const QColor& c) const; - void writeTo(QColor* theWrappedObject, QDataStream& arg__1); - bool __eq__(QColor* theWrappedObject, const QColor& c) const; - void readFrom(QColor* theWrappedObject, QDataStream& arg__1); - int red(QColor* theWrappedObject) const; - qreal redF(QColor* theWrappedObject) const; - unsigned int rgb(QColor* theWrappedObject) const; - unsigned int rgba(QColor* theWrappedObject) const; - int saturation(QColor* theWrappedObject) const; - qreal saturationF(QColor* theWrappedObject) const; - void setAlpha(QColor* theWrappedObject, int alpha); - void setAlphaF(QColor* theWrappedObject, qreal alpha); - void setBlue(QColor* theWrappedObject, int blue); - void setBlueF(QColor* theWrappedObject, qreal blue); - void setCmyk(QColor* theWrappedObject, int c, int m, int y, int k, int a = 255); - void setCmykF(QColor* theWrappedObject, qreal c, qreal m, qreal y, qreal k, qreal a = 1.0); - void setGreen(QColor* theWrappedObject, int green); - void setGreenF(QColor* theWrappedObject, qreal green); - void setHsl(QColor* theWrappedObject, int h, int s, int l, int a = 255); - void setHslF(QColor* theWrappedObject, qreal h, qreal s, qreal l, qreal a = 1.0); - void setHsv(QColor* theWrappedObject, int h, int s, int v, int a = 255); - void setHsvF(QColor* theWrappedObject, qreal h, qreal s, qreal v, qreal a = 1.0); - void setNamedColor(QColor* theWrappedObject, const QString& name); - void setRed(QColor* theWrappedObject, int red); - void setRedF(QColor* theWrappedObject, qreal red); - void setRgb(QColor* theWrappedObject, int r, int g, int b, int a = 255); - void setRgb(QColor* theWrappedObject, unsigned int rgb); - void setRgbF(QColor* theWrappedObject, qreal r, qreal g, qreal b, qreal a = 1.0); - void setRgba(QColor* theWrappedObject, unsigned int rgba); - QColor::Spec spec(QColor* theWrappedObject) const; - QColor toCmyk(QColor* theWrappedObject) const; - QColor toHsl(QColor* theWrappedObject) const; - QColor toHsv(QColor* theWrappedObject) const; - QColor toRgb(QColor* theWrappedObject) const; - int value(QColor* theWrappedObject) const; - qreal valueF(QColor* theWrappedObject) const; - int yellow(QColor* theWrappedObject) const; - qreal yellowF(QColor* theWrappedObject) const; - QString py_toString(QColor*); -}; - - - - - -class PythonQtWrapper_QCursor : public QObject -{ Q_OBJECT -public: -public slots: -QCursor* new_QCursor(); -QCursor* new_QCursor(Qt::CursorShape shape); -QCursor* new_QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX = -1, int hotY = -1); -QCursor* new_QCursor(const QCursor& cursor); -QCursor* new_QCursor(const QPixmap& pixmap, int hotX = -1, int hotY = -1); -void delete_QCursor(QCursor* obj) { delete obj; } - const QBitmap* bitmap(QCursor* theWrappedObject) const; - QPoint hotSpot(QCursor* theWrappedObject) const; - const QBitmap* mask(QCursor* theWrappedObject) const; - void writeTo(QCursor* theWrappedObject, QDataStream& outS); - void readFrom(QCursor* theWrappedObject, QDataStream& inS); - QPixmap pixmap(QCursor* theWrappedObject) const; - QPoint static_QCursor_pos(); - void static_QCursor_setPos(const QPoint& p); - void static_QCursor_setPos(int x, int y); - void setShape(QCursor* theWrappedObject, Qt::CursorShape newShape); - Qt::CursorShape shape(QCursor* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QFont : public QObject -{ Q_OBJECT -public: -Q_ENUMS(StyleStrategy SpacingType StyleHint Weight Capitalization Stretch Style ) -enum StyleStrategy{ - PreferDefault = QFont::PreferDefault, PreferBitmap = QFont::PreferBitmap, PreferDevice = QFont::PreferDevice, PreferOutline = QFont::PreferOutline, ForceOutline = QFont::ForceOutline, PreferMatch = QFont::PreferMatch, PreferQuality = QFont::PreferQuality, PreferAntialias = QFont::PreferAntialias, NoAntialias = QFont::NoAntialias, OpenGLCompatible = QFont::OpenGLCompatible, NoFontMerging = QFont::NoFontMerging}; -enum SpacingType{ - PercentageSpacing = QFont::PercentageSpacing, AbsoluteSpacing = QFont::AbsoluteSpacing}; -enum StyleHint{ - Helvetica = QFont::Helvetica, SansSerif = QFont::SansSerif, Times = QFont::Times, Serif = QFont::Serif, Courier = QFont::Courier, TypeWriter = QFont::TypeWriter, OldEnglish = QFont::OldEnglish, Decorative = QFont::Decorative, System = QFont::System, AnyStyle = QFont::AnyStyle}; -enum Weight{ - Light = QFont::Light, Normal = QFont::Normal, DemiBold = QFont::DemiBold, Bold = QFont::Bold, Black = QFont::Black}; -enum Capitalization{ - MixedCase = QFont::MixedCase, AllUppercase = QFont::AllUppercase, AllLowercase = QFont::AllLowercase, SmallCaps = QFont::SmallCaps, Capitalize = QFont::Capitalize}; -enum Stretch{ - UltraCondensed = QFont::UltraCondensed, ExtraCondensed = QFont::ExtraCondensed, Condensed = QFont::Condensed, SemiCondensed = QFont::SemiCondensed, Unstretched = QFont::Unstretched, SemiExpanded = QFont::SemiExpanded, Expanded = QFont::Expanded, ExtraExpanded = QFont::ExtraExpanded, UltraExpanded = QFont::UltraExpanded}; -enum Style{ - StyleNormal = QFont::StyleNormal, StyleItalic = QFont::StyleItalic, StyleOblique = QFont::StyleOblique}; -public slots: -QFont* new_QFont(); -QFont* new_QFont(const QFont& arg__1); -QFont* new_QFont(const QFont& arg__1, QPaintDevice* pd); -QFont* new_QFont(const QString& family, int pointSize = -1, int weight = -1, bool italic = false); -void delete_QFont(QFont* obj) { delete obj; } - bool bold(QFont* theWrappedObject) const; - void static_QFont_cacheStatistics(); - QFont::Capitalization capitalization(QFont* theWrappedObject) const; - void static_QFont_cleanup(); - QString defaultFamily(QFont* theWrappedObject) const; - bool exactMatch(QFont* theWrappedObject) const; - QString family(QFont* theWrappedObject) const; - bool fixedPitch(QFont* theWrappedObject) const; - bool fromString(QFont* theWrappedObject, const QString& arg__1); - Qt::HANDLE handle(QFont* theWrappedObject) const; - void static_QFont_initialize(); - void static_QFont_insertSubstitution(const QString& arg__1, const QString& arg__2); - void static_QFont_insertSubstitutions(const QString& arg__1, const QStringList& arg__2); - bool isCopyOf(QFont* theWrappedObject, const QFont& arg__1) const; - bool italic(QFont* theWrappedObject) const; - bool kerning(QFont* theWrappedObject) const; - QString key(QFont* theWrappedObject) const; - QString lastResortFamily(QFont* theWrappedObject) const; - QString lastResortFont(QFont* theWrappedObject) const; - qreal letterSpacing(QFont* theWrappedObject) const; - QFont::SpacingType letterSpacingType(QFont* theWrappedObject) const; - bool __ne__(QFont* theWrappedObject, const QFont& arg__1) const; - bool __lt__(QFont* theWrappedObject, const QFont& arg__1) const; - void writeTo(QFont* theWrappedObject, QDataStream& arg__1); - bool __eq__(QFont* theWrappedObject, const QFont& arg__1) const; - void readFrom(QFont* theWrappedObject, QDataStream& arg__1); - bool overline(QFont* theWrappedObject) const; - int pixelSize(QFont* theWrappedObject) const; - int pointSize(QFont* theWrappedObject) const; - qreal pointSizeF(QFont* theWrappedObject) const; - bool rawMode(QFont* theWrappedObject) const; - QString rawName(QFont* theWrappedObject) const; - void static_QFont_removeSubstitution(const QString& arg__1); - uint resolve(QFont* theWrappedObject) const; - QFont resolve(QFont* theWrappedObject, const QFont& arg__1) const; - void resolve(QFont* theWrappedObject, uint mask); - void setBold(QFont* theWrappedObject, bool arg__1); - void setCapitalization(QFont* theWrappedObject, QFont::Capitalization arg__1); - void setFamily(QFont* theWrappedObject, const QString& arg__1); - void setFixedPitch(QFont* theWrappedObject, bool arg__1); - void setItalic(QFont* theWrappedObject, bool b); - void setKerning(QFont* theWrappedObject, bool arg__1); - void setLetterSpacing(QFont* theWrappedObject, QFont::SpacingType type, qreal spacing); - void setOverline(QFont* theWrappedObject, bool arg__1); - void setPixelSize(QFont* theWrappedObject, int arg__1); - void setPointSize(QFont* theWrappedObject, int arg__1); - void setPointSizeF(QFont* theWrappedObject, qreal arg__1); - void setRawMode(QFont* theWrappedObject, bool arg__1); - void setRawName(QFont* theWrappedObject, const QString& arg__1); - void setStretch(QFont* theWrappedObject, int arg__1); - void setStrikeOut(QFont* theWrappedObject, bool arg__1); - void setStyle(QFont* theWrappedObject, QFont::Style style); - void setStyleHint(QFont* theWrappedObject, QFont::StyleHint arg__1, QFont::StyleStrategy arg__2 = QFont::PreferDefault); - void setStyleStrategy(QFont* theWrappedObject, QFont::StyleStrategy s); - void setUnderline(QFont* theWrappedObject, bool arg__1); - void setWeight(QFont* theWrappedObject, int arg__1); - void setWordSpacing(QFont* theWrappedObject, qreal spacing); - int stretch(QFont* theWrappedObject) const; - bool strikeOut(QFont* theWrappedObject) const; - QFont::Style style(QFont* theWrappedObject) const; - QFont::StyleHint styleHint(QFont* theWrappedObject) const; - QFont::StyleStrategy styleStrategy(QFont* theWrappedObject) const; - QString static_QFont_substitute(const QString& arg__1); - QStringList static_QFont_substitutes(const QString& arg__1); - QStringList static_QFont_substitutions(); - QString toString(QFont* theWrappedObject) const; - bool underline(QFont* theWrappedObject) const; - int weight(QFont* theWrappedObject) const; - qreal wordSpacing(QFont* theWrappedObject) const; - QString py_toString(QFont*); -}; - - - - - -class PythonQtWrapper_QIcon : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Mode State ) -enum Mode{ - Normal = QIcon::Normal, Disabled = QIcon::Disabled, Active = QIcon::Active, Selected = QIcon::Selected}; -enum State{ - On = QIcon::On, Off = QIcon::Off}; -public slots: -QIcon* new_QIcon(); -QIcon* new_QIcon(QIconEngine* engine); -QIcon* new_QIcon(QIconEngineV2* engine); -QIcon* new_QIcon(const QIcon& other); -QIcon* new_QIcon(const QPixmap& pixmap); -QIcon* new_QIcon(const QString& fileName); -void delete_QIcon(QIcon* obj) { delete obj; } - QSize actualSize(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; - void addFile(QIcon* theWrappedObject, const QString& fileName, const QSize& size = QSize(), QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off); - void addPixmap(QIcon* theWrappedObject, const QPixmap& pixmap, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off); - QList availableSizes(QIcon* theWrappedObject, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; - qint64 cacheKey(QIcon* theWrappedObject) const; - QIcon static_QIcon_fromTheme(const QString& name, const QIcon& fallback = QIcon()); - bool static_QIcon_hasThemeIcon(const QString& name); - bool isNull(QIcon* theWrappedObject) const; - void writeTo(QIcon* theWrappedObject, QDataStream& arg__1); - void readFrom(QIcon* theWrappedObject, QDataStream& arg__1); - void paint(QIcon* theWrappedObject, QPainter* painter, const QRect& rect, Qt::Alignment alignment = Qt::AlignCenter, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; - void paint(QIcon* theWrappedObject, QPainter* painter, int x, int y, int w, int h, Qt::Alignment alignment = Qt::AlignCenter, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; - QPixmap pixmap(QIcon* theWrappedObject, const QSize& size, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; - QPixmap pixmap(QIcon* theWrappedObject, int extent, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; - QPixmap pixmap(QIcon* theWrappedObject, int w, int h, QIcon::Mode mode = QIcon::Normal, QIcon::State state = QIcon::Off) const; - void static_QIcon_setThemeName(const QString& path); - void static_QIcon_setThemeSearchPaths(const QStringList& searchpath); - QString static_QIcon_themeName(); - QStringList static_QIcon_themeSearchPaths(); - bool __nonzero__(QIcon* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtShell_QImage : public QImage -{ -public: - PythonQtShell_QImage():QImage(),_wrapper(NULL) {}; - PythonQtShell_QImage(const QImage& arg__1):QImage(arg__1),_wrapper(NULL) {}; - PythonQtShell_QImage(const QSize& size, QImage::Format format):QImage(size, format),_wrapper(NULL) {}; - PythonQtShell_QImage(const QString& fileName, const char* format = 0):QImage(fileName, format),_wrapper(NULL) {}; - PythonQtShell_QImage(int width, int height, QImage::Format format):QImage(width, height, format),_wrapper(NULL) {}; - -virtual int devType() const; -virtual int metric(QPaintDevice::PaintDeviceMetric metric) const; -virtual QPaintEngine* paintEngine() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QImage : public QImage -{ public: -inline int promoted_devType() const { return QImage::devType(); } -inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QImage::metric(metric); } -inline QPaintEngine* promoted_paintEngine() const { return QImage::paintEngine(); } -}; - -class PythonQtWrapper_QImage : public QObject -{ Q_OBJECT -public: -Q_ENUMS(InvertMode Format ) -enum InvertMode{ - InvertRgb = QImage::InvertRgb, InvertRgba = QImage::InvertRgba}; -enum Format{ - Format_Invalid = QImage::Format_Invalid, Format_Mono = QImage::Format_Mono, Format_MonoLSB = QImage::Format_MonoLSB, Format_Indexed8 = QImage::Format_Indexed8, Format_RGB32 = QImage::Format_RGB32, Format_ARGB32 = QImage::Format_ARGB32, Format_ARGB32_Premultiplied = QImage::Format_ARGB32_Premultiplied, Format_RGB16 = QImage::Format_RGB16, Format_ARGB8565_Premultiplied = QImage::Format_ARGB8565_Premultiplied, Format_RGB666 = QImage::Format_RGB666, Format_ARGB6666_Premultiplied = QImage::Format_ARGB6666_Premultiplied, Format_RGB555 = QImage::Format_RGB555, Format_ARGB8555_Premultiplied = QImage::Format_ARGB8555_Premultiplied, Format_RGB888 = QImage::Format_RGB888, Format_RGB444 = QImage::Format_RGB444, Format_ARGB4444_Premultiplied = QImage::Format_ARGB4444_Premultiplied, NImageFormats = QImage::NImageFormats}; -public slots: -QImage* new_QImage(); -QImage* new_QImage(const QImage& arg__1); -QImage* new_QImage(const QSize& size, QImage::Format format); -QImage* new_QImage(const QString& fileName, const char* format = 0); -QImage* new_QImage(int width, int height, QImage::Format format); -void delete_QImage(QImage* obj) { delete obj; } - bool allGray(QImage* theWrappedObject) const; - QImage alphaChannel(QImage* theWrappedObject) const; - int byteCount(QImage* theWrappedObject) const; - int bytesPerLine(QImage* theWrappedObject) const; - qint64 cacheKey(QImage* theWrappedObject) const; - unsigned int color(QImage* theWrappedObject, int i) const; - int colorCount(QImage* theWrappedObject) const; - QVector colorTable(QImage* theWrappedObject) const; - QImage convertToFormat(QImage* theWrappedObject, QImage::Format f, Qt::ImageConversionFlags flags = Qt::AutoColor) const; - QImage convertToFormat(QImage* theWrappedObject, QImage::Format f, const QVector& colorTable, Qt::ImageConversionFlags flags = Qt::AutoColor) const; - QImage copy(QImage* theWrappedObject, const QRect& rect = QRect()) const; - QImage copy(QImage* theWrappedObject, int x, int y, int w, int h) const; - QImage createAlphaMask(QImage* theWrappedObject, Qt::ImageConversionFlags flags = Qt::AutoColor) const; - QImage createHeuristicMask(QImage* theWrappedObject, bool clipTight = true) const; - QImage createMaskFromColor(QImage* theWrappedObject, unsigned int color, Qt::MaskMode mode = Qt::MaskInColor) const; - int depth(QImage* theWrappedObject) const; - int devType(QImage* theWrappedObject) const; - int dotsPerMeterX(QImage* theWrappedObject) const; - int dotsPerMeterY(QImage* theWrappedObject) const; - void fill(QImage* theWrappedObject, uint pixel); - QImage::Format format(QImage* theWrappedObject) const; - QImage static_QImage_fromData(const QByteArray& data, const char* format = 0); - bool hasAlphaChannel(QImage* theWrappedObject) const; - int height(QImage* theWrappedObject) const; - void invertPixels(QImage* theWrappedObject, QImage::InvertMode arg__1 = QImage::InvertRgb); - bool isGrayscale(QImage* theWrappedObject) const; - bool isNull(QImage* theWrappedObject) const; - bool load(QImage* theWrappedObject, QIODevice* device, const char* format); - bool load(QImage* theWrappedObject, const QString& fileName, const char* format = 0); - bool loadFromData(QImage* theWrappedObject, const QByteArray& data, const char* aformat = 0); - int metric(QImage* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const; - QImage mirrored(QImage* theWrappedObject, bool horizontally = false, bool vertically = true) const; - int numBytes(QImage* theWrappedObject) const; - int numColors(QImage* theWrappedObject) const; - QPoint offset(QImage* theWrappedObject) const; - bool __ne__(QImage* theWrappedObject, const QImage& arg__1) const; - void writeTo(QImage* theWrappedObject, QDataStream& arg__1); - bool __eq__(QImage* theWrappedObject, const QImage& arg__1) const; - void readFrom(QImage* theWrappedObject, QDataStream& arg__1); - QPaintEngine* paintEngine(QImage* theWrappedObject) const; - unsigned int pixel(QImage* theWrappedObject, const QPoint& pt) const; - unsigned int pixel(QImage* theWrappedObject, int x, int y) const; - int pixelIndex(QImage* theWrappedObject, const QPoint& pt) const; - int pixelIndex(QImage* theWrappedObject, int x, int y) const; - QRect rect(QImage* theWrappedObject) const; - QImage rgbSwapped(QImage* theWrappedObject) const; - bool save(QImage* theWrappedObject, QIODevice* device, const char* format = 0, int quality = -1) const; - bool save(QImage* theWrappedObject, const QString& fileName, const char* format = 0, int quality = -1) const; - QImage scaled(QImage* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; - QImage scaled(QImage* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; - QImage scaledToHeight(QImage* theWrappedObject, int h, Qt::TransformationMode mode = Qt::FastTransformation) const; - QImage scaledToWidth(QImage* theWrappedObject, int w, Qt::TransformationMode mode = Qt::FastTransformation) const; - void setAlphaChannel(QImage* theWrappedObject, const QImage& alphaChannel); - void setColor(QImage* theWrappedObject, int i, unsigned int c); - void setColorCount(QImage* theWrappedObject, int arg__1); - void setDotsPerMeterX(QImage* theWrappedObject, int arg__1); - void setDotsPerMeterY(QImage* theWrappedObject, int arg__1); - void setNumColors(QImage* theWrappedObject, int arg__1); - void setOffset(QImage* theWrappedObject, const QPoint& arg__1); - void setPixel(QImage* theWrappedObject, const QPoint& pt, uint index_or_rgb); - void setPixel(QImage* theWrappedObject, int x, int y, uint index_or_rgb); - void setText(QImage* theWrappedObject, const QString& key, const QString& value); - QSize size(QImage* theWrappedObject) const; - QString text(QImage* theWrappedObject, const QString& key = QString()) const; - QStringList textKeys(QImage* theWrappedObject) const; - QImage transformed(QImage* theWrappedObject, const QMatrix& matrix, Qt::TransformationMode mode = Qt::FastTransformation) const; - QImage transformed(QImage* theWrappedObject, const QTransform& matrix, Qt::TransformationMode mode = Qt::FastTransformation) const; - QMatrix static_QImage_trueMatrix(const QMatrix& arg__1, int w, int h); - QTransform static_QImage_trueMatrix(const QTransform& arg__1, int w, int h); - bool valid(QImage* theWrappedObject, const QPoint& pt) const; - bool valid(QImage* theWrappedObject, int x, int y) const; - int width(QImage* theWrappedObject) const; - bool __nonzero__(QImage* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QKeySequence : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SequenceFormat StandardKey SequenceMatch ) -enum SequenceFormat{ - NativeText = QKeySequence::NativeText, PortableText = QKeySequence::PortableText}; -enum StandardKey{ - UnknownKey = QKeySequence::UnknownKey, HelpContents = QKeySequence::HelpContents, WhatsThis = QKeySequence::WhatsThis, Open = QKeySequence::Open, Close = QKeySequence::Close, Save = QKeySequence::Save, New = QKeySequence::New, Delete = QKeySequence::Delete, Cut = QKeySequence::Cut, Copy = QKeySequence::Copy, Paste = QKeySequence::Paste, Undo = QKeySequence::Undo, Redo = QKeySequence::Redo, Back = QKeySequence::Back, Forward = QKeySequence::Forward, Refresh = QKeySequence::Refresh, ZoomIn = QKeySequence::ZoomIn, ZoomOut = QKeySequence::ZoomOut, Print = QKeySequence::Print, AddTab = QKeySequence::AddTab, NextChild = QKeySequence::NextChild, PreviousChild = QKeySequence::PreviousChild, Find = QKeySequence::Find, FindNext = QKeySequence::FindNext, FindPrevious = QKeySequence::FindPrevious, Replace = QKeySequence::Replace, SelectAll = QKeySequence::SelectAll, Bold = QKeySequence::Bold, Italic = QKeySequence::Italic, Underline = QKeySequence::Underline, MoveToNextChar = QKeySequence::MoveToNextChar, MoveToPreviousChar = QKeySequence::MoveToPreviousChar, MoveToNextWord = QKeySequence::MoveToNextWord, MoveToPreviousWord = QKeySequence::MoveToPreviousWord, MoveToNextLine = QKeySequence::MoveToNextLine, MoveToPreviousLine = QKeySequence::MoveToPreviousLine, MoveToNextPage = QKeySequence::MoveToNextPage, MoveToPreviousPage = QKeySequence::MoveToPreviousPage, MoveToStartOfLine = QKeySequence::MoveToStartOfLine, MoveToEndOfLine = QKeySequence::MoveToEndOfLine, MoveToStartOfBlock = QKeySequence::MoveToStartOfBlock, MoveToEndOfBlock = QKeySequence::MoveToEndOfBlock, MoveToStartOfDocument = QKeySequence::MoveToStartOfDocument, MoveToEndOfDocument = QKeySequence::MoveToEndOfDocument, SelectNextChar = QKeySequence::SelectNextChar, SelectPreviousChar = QKeySequence::SelectPreviousChar, SelectNextWord = QKeySequence::SelectNextWord, SelectPreviousWord = QKeySequence::SelectPreviousWord, SelectNextLine = QKeySequence::SelectNextLine, SelectPreviousLine = QKeySequence::SelectPreviousLine, SelectNextPage = QKeySequence::SelectNextPage, SelectPreviousPage = QKeySequence::SelectPreviousPage, SelectStartOfLine = QKeySequence::SelectStartOfLine, SelectEndOfLine = QKeySequence::SelectEndOfLine, SelectStartOfBlock = QKeySequence::SelectStartOfBlock, SelectEndOfBlock = QKeySequence::SelectEndOfBlock, SelectStartOfDocument = QKeySequence::SelectStartOfDocument, SelectEndOfDocument = QKeySequence::SelectEndOfDocument, DeleteStartOfWord = QKeySequence::DeleteStartOfWord, DeleteEndOfWord = QKeySequence::DeleteEndOfWord, DeleteEndOfLine = QKeySequence::DeleteEndOfLine, InsertParagraphSeparator = QKeySequence::InsertParagraphSeparator, InsertLineSeparator = QKeySequence::InsertLineSeparator, SaveAs = QKeySequence::SaveAs, Preferences = QKeySequence::Preferences, Quit = QKeySequence::Quit}; -enum SequenceMatch{ - NoMatch = QKeySequence::NoMatch, PartialMatch = QKeySequence::PartialMatch, ExactMatch = QKeySequence::ExactMatch}; -public slots: -QKeySequence* new_QKeySequence(); -QKeySequence* new_QKeySequence(QKeySequence::StandardKey key); -QKeySequence* new_QKeySequence(const QKeySequence& ks); -QKeySequence* new_QKeySequence(const QString& key); -QKeySequence* new_QKeySequence(int k1, int k2 = 0, int k3 = 0, int k4 = 0); -void delete_QKeySequence(QKeySequence* obj) { delete obj; } - uint count(QKeySequence* theWrappedObject) const; - QKeySequence static_QKeySequence_fromString(const QString& str, QKeySequence::SequenceFormat format = QKeySequence::PortableText); - bool isEmpty(QKeySequence* theWrappedObject) const; - QList static_QKeySequence_keyBindings(QKeySequence::StandardKey key); - QKeySequence::SequenceMatch matches(QKeySequence* theWrappedObject, const QKeySequence& seq) const; - QKeySequence static_QKeySequence_mnemonic(const QString& text); - int operator_cast_int(QKeySequence* theWrappedObject) const; - bool __ne__(QKeySequence* theWrappedObject, const QKeySequence& other) const; - bool __lt__(QKeySequence* theWrappedObject, const QKeySequence& ks) const; - void writeTo(QKeySequence* theWrappedObject, QDataStream& in); - bool __le__(QKeySequence* theWrappedObject, const QKeySequence& other) const; - bool __eq__(QKeySequence* theWrappedObject, const QKeySequence& other) const; - bool __gt__(QKeySequence* theWrappedObject, const QKeySequence& other) const; - bool __ge__(QKeySequence* theWrappedObject, const QKeySequence& other) const; - void readFrom(QKeySequence* theWrappedObject, QDataStream& out); - int operator_subscript(QKeySequence* theWrappedObject, uint i) const; - QString toString(QKeySequence* theWrappedObject, QKeySequence::SequenceFormat format = QKeySequence::PortableText) const; - QString py_toString(QKeySequence*); -}; - - - - - -class PythonQtWrapper_QMatrix : public QObject -{ Q_OBJECT -public: -public slots: -QMatrix* new_QMatrix(); -QMatrix* new_QMatrix(const QMatrix& matrix); -QMatrix* new_QMatrix(qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy); -void delete_QMatrix(QMatrix* obj) { delete obj; } - qreal det(QMatrix* theWrappedObject) const; - qreal determinant(QMatrix* theWrappedObject) const; - qreal dx(QMatrix* theWrappedObject) const; - qreal dy(QMatrix* theWrappedObject) const; - QMatrix inverted(QMatrix* theWrappedObject, bool* invertible = 0) const; - bool isIdentity(QMatrix* theWrappedObject) const; - bool isInvertible(QMatrix* theWrappedObject) const; - qreal m11(QMatrix* theWrappedObject) const; - qreal m12(QMatrix* theWrappedObject) const; - qreal m21(QMatrix* theWrappedObject) const; - qreal m22(QMatrix* theWrappedObject) const; - QLine map(QMatrix* theWrappedObject, const QLine& l) const; - QLineF map(QMatrix* theWrappedObject, const QLineF& l) const; - QPainterPath map(QMatrix* theWrappedObject, const QPainterPath& p) const; - QPoint map(QMatrix* theWrappedObject, const QPoint& p) const; - QPointF map(QMatrix* theWrappedObject, const QPointF& p) const; - QPolygon map(QMatrix* theWrappedObject, const QPolygon& a) const; - QPolygonF map(QMatrix* theWrappedObject, const QPolygonF& a) const; - QRegion map(QMatrix* theWrappedObject, const QRegion& r) const; - void map(QMatrix* theWrappedObject, qreal x, qreal y, qreal* tx, qreal* ty) const; - QRect mapRect(QMatrix* theWrappedObject, const QRect& arg__1) const; - QRectF mapRect(QMatrix* theWrappedObject, const QRectF& arg__1) const; - QPolygon mapToPolygon(QMatrix* theWrappedObject, const QRect& r) const; - bool __ne__(QMatrix* theWrappedObject, const QMatrix& arg__1) const; - QMatrix __mul__(QMatrix* theWrappedObject, const QMatrix& o) const; - QMatrix* __imul__(QMatrix* theWrappedObject, const QMatrix& arg__1); - void writeTo(QMatrix* theWrappedObject, QDataStream& arg__1); - bool __eq__(QMatrix* theWrappedObject, const QMatrix& arg__1) const; - void readFrom(QMatrix* theWrappedObject, QDataStream& arg__1); - void reset(QMatrix* theWrappedObject); - QMatrix* rotate(QMatrix* theWrappedObject, qreal a); - QMatrix* scale(QMatrix* theWrappedObject, qreal sx, qreal sy); - void setMatrix(QMatrix* theWrappedObject, qreal m11, qreal m12, qreal m21, qreal m22, qreal dx, qreal dy); - QMatrix* shear(QMatrix* theWrappedObject, qreal sh, qreal sv); - QMatrix* translate(QMatrix* theWrappedObject, qreal dx, qreal dy); - QString py_toString(QMatrix*); -}; - - - - - -class PythonQtWrapper_QPalette : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ColorGroup ColorRole ) -enum ColorGroup{ - Active = QPalette::Active, Disabled = QPalette::Disabled, Inactive = QPalette::Inactive, NColorGroups = QPalette::NColorGroups, Current = QPalette::Current, All = QPalette::All, Normal = QPalette::Normal}; -enum ColorRole{ - WindowText = QPalette::WindowText, Button = QPalette::Button, Light = QPalette::Light, Midlight = QPalette::Midlight, Dark = QPalette::Dark, Mid = QPalette::Mid, Text = QPalette::Text, BrightText = QPalette::BrightText, ButtonText = QPalette::ButtonText, Base = QPalette::Base, Window = QPalette::Window, Shadow = QPalette::Shadow, Highlight = QPalette::Highlight, HighlightedText = QPalette::HighlightedText, Link = QPalette::Link, LinkVisited = QPalette::LinkVisited, AlternateBase = QPalette::AlternateBase, NoRole = QPalette::NoRole, ToolTipBase = QPalette::ToolTipBase, ToolTipText = QPalette::ToolTipText, NColorRoles = QPalette::NColorRoles, Foreground = QPalette::Foreground, Background = QPalette::Background}; -public slots: -QPalette* new_QPalette(); -QPalette* new_QPalette(Qt::GlobalColor button); -QPalette* new_QPalette(const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window); -QPalette* new_QPalette(const QColor& button); -QPalette* new_QPalette(const QColor& button, const QColor& window); -QPalette* new_QPalette(const QPalette& palette); -void delete_QPalette(QPalette* obj) { delete obj; } - const QBrush* alternateBase(QPalette* theWrappedObject) const; - const QBrush* base(QPalette* theWrappedObject) const; - const QBrush* brightText(QPalette* theWrappedObject) const; - const QBrush* brush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const; - const QBrush* brush(QPalette* theWrappedObject, QPalette::ColorRole cr) const; - const QBrush* button(QPalette* theWrappedObject) const; - const QBrush* buttonText(QPalette* theWrappedObject) const; - qint64 cacheKey(QPalette* theWrappedObject) const; - const QColor* color(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const; - const QColor* color(QPalette* theWrappedObject, QPalette::ColorRole cr) const; - QPalette::ColorGroup currentColorGroup(QPalette* theWrappedObject) const; - const QBrush* dark(QPalette* theWrappedObject) const; - const QBrush* highlight(QPalette* theWrappedObject) const; - const QBrush* highlightedText(QPalette* theWrappedObject) const; - bool isBrushSet(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr) const; - bool isCopyOf(QPalette* theWrappedObject, const QPalette& p) const; - bool isEqual(QPalette* theWrappedObject, QPalette::ColorGroup cr1, QPalette::ColorGroup cr2) const; - const QBrush* light(QPalette* theWrappedObject) const; - const QBrush* link(QPalette* theWrappedObject) const; - const QBrush* linkVisited(QPalette* theWrappedObject) const; - const QBrush* mid(QPalette* theWrappedObject) const; - const QBrush* midlight(QPalette* theWrappedObject) const; - bool __ne__(QPalette* theWrappedObject, const QPalette& p) const; - void writeTo(QPalette* theWrappedObject, QDataStream& ds); - bool __eq__(QPalette* theWrappedObject, const QPalette& p) const; - void readFrom(QPalette* theWrappedObject, QDataStream& ds); - uint resolve(QPalette* theWrappedObject) const; - QPalette resolve(QPalette* theWrappedObject, const QPalette& arg__1) const; - void resolve(QPalette* theWrappedObject, uint mask); - void setBrush(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QBrush& brush); - void setBrush(QPalette* theWrappedObject, QPalette::ColorRole cr, const QBrush& brush); - void setColor(QPalette* theWrappedObject, QPalette::ColorGroup cg, QPalette::ColorRole cr, const QColor& color); - void setColor(QPalette* theWrappedObject, QPalette::ColorRole cr, const QColor& color); - void setColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cr, const QBrush& windowText, const QBrush& button, const QBrush& light, const QBrush& dark, const QBrush& mid, const QBrush& text, const QBrush& bright_text, const QBrush& base, const QBrush& window); - void setCurrentColorGroup(QPalette* theWrappedObject, QPalette::ColorGroup cg); - const QBrush* shadow(QPalette* theWrappedObject) const; - const QBrush* text(QPalette* theWrappedObject) const; - const QBrush* toolTipBase(QPalette* theWrappedObject) const; - const QBrush* toolTipText(QPalette* theWrappedObject) const; - const QBrush* window(QPalette* theWrappedObject) const; - const QBrush* windowText(QPalette* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QPen : public QObject -{ Q_OBJECT -public: -public slots: -QPen* new_QPen(); -QPen* new_QPen(Qt::PenStyle arg__1); -QPen* new_QPen(const QBrush& brush, qreal width, Qt::PenStyle s = Qt::SolidLine, Qt::PenCapStyle c = Qt::SquareCap, Qt::PenJoinStyle j = Qt::BevelJoin); -QPen* new_QPen(const QColor& color); -QPen* new_QPen(const QPen& pen); -void delete_QPen(QPen* obj) { delete obj; } - QBrush brush(QPen* theWrappedObject) const; - Qt::PenCapStyle capStyle(QPen* theWrappedObject) const; - QColor color(QPen* theWrappedObject) const; - qreal dashOffset(QPen* theWrappedObject) const; - QVector dashPattern(QPen* theWrappedObject) const; - bool isCosmetic(QPen* theWrappedObject) const; - bool isSolid(QPen* theWrappedObject) const; - Qt::PenJoinStyle joinStyle(QPen* theWrappedObject) const; - qreal miterLimit(QPen* theWrappedObject) const; - bool __ne__(QPen* theWrappedObject, const QPen& p) const; - void writeTo(QPen* theWrappedObject, QDataStream& arg__1); - bool __eq__(QPen* theWrappedObject, const QPen& p) const; - void readFrom(QPen* theWrappedObject, QDataStream& arg__1); - void setBrush(QPen* theWrappedObject, const QBrush& brush); - void setCapStyle(QPen* theWrappedObject, Qt::PenCapStyle pcs); - void setColor(QPen* theWrappedObject, const QColor& color); - void setCosmetic(QPen* theWrappedObject, bool cosmetic); - void setDashOffset(QPen* theWrappedObject, qreal doffset); - void setDashPattern(QPen* theWrappedObject, const QVector& pattern); - void setJoinStyle(QPen* theWrappedObject, Qt::PenJoinStyle pcs); - void setMiterLimit(QPen* theWrappedObject, qreal limit); - void setStyle(QPen* theWrappedObject, Qt::PenStyle arg__1); - void setWidth(QPen* theWrappedObject, int width); - void setWidthF(QPen* theWrappedObject, qreal width); - Qt::PenStyle style(QPen* theWrappedObject) const; - int width(QPen* theWrappedObject) const; - qreal widthF(QPen* theWrappedObject) const; - QString py_toString(QPen*); -}; - - - - - -class PythonQtShell_QPixmap : public QPixmap -{ -public: - PythonQtShell_QPixmap():QPixmap(),_wrapper(NULL) {}; - PythonQtShell_QPixmap(const QPixmap& arg__1):QPixmap(arg__1),_wrapper(NULL) {}; - PythonQtShell_QPixmap(const QSize& arg__1):QPixmap(arg__1),_wrapper(NULL) {}; - PythonQtShell_QPixmap(const QString& fileName, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor):QPixmap(fileName, format, flags),_wrapper(NULL) {}; - PythonQtShell_QPixmap(const char** xpm):QPixmap(xpm),_wrapper(NULL) {}; - PythonQtShell_QPixmap(int w, int h):QPixmap(w, h),_wrapper(NULL) {}; - -virtual int devType() const; -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QPaintEngine* paintEngine() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QPixmap : public QPixmap -{ public: -inline int promoted_devType() const { return QPixmap::devType(); } -inline int promoted_metric(QPaintDevice::PaintDeviceMetric arg__1) const { return QPixmap::metric(arg__1); } -inline QPaintEngine* promoted_paintEngine() const { return QPixmap::paintEngine(); } -}; - -class PythonQtWrapper_QPixmap : public QObject -{ Q_OBJECT -public: -public slots: -QPixmap* new_QPixmap(); -QPixmap* new_QPixmap(const QPixmap& arg__1); -QPixmap* new_QPixmap(const QSize& arg__1); -QPixmap* new_QPixmap(const QString& fileName, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); -QPixmap* new_QPixmap(const char** xpm); -QPixmap* new_QPixmap(int w, int h); -void delete_QPixmap(QPixmap* obj) { delete obj; } - QPixmap alphaChannel(QPixmap* theWrappedObject) const; - qint64 cacheKey(QPixmap* theWrappedObject) const; - QPixmap copy(QPixmap* theWrappedObject, const QRect& rect = QRect()) const; - QPixmap copy(QPixmap* theWrappedObject, int x, int y, int width, int height) const; - QBitmap createHeuristicMask(QPixmap* theWrappedObject, bool clipTight = true) const; - QBitmap createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor) const; - QBitmap createMaskFromColor(QPixmap* theWrappedObject, const QColor& maskColor, Qt::MaskMode mode) const; - int static_QPixmap_defaultDepth(); - int depth(QPixmap* theWrappedObject) const; - int devType(QPixmap* theWrappedObject) const; - void fill(QPixmap* theWrappedObject, const QColor& fillColor = Qt::white); - void fill(QPixmap* theWrappedObject, const QWidget* widget, const QPoint& ofs); - void fill(QPixmap* theWrappedObject, const QWidget* widget, int xofs, int yofs); - QPixmap static_QPixmap_fromImage(const QImage& image, Qt::ImageConversionFlags flags = Qt::AutoColor); - QPixmap static_QPixmap_grabWidget(QWidget* widget, const QRect& rect); - QPixmap static_QPixmap_grabWidget(QWidget* widget, int x = 0, int y = 0, int w = -1, int h = -1); - QPixmap static_QPixmap_grabWindow(WId arg__1, int x = 0, int y = 0, int w = -1, int h = -1); - bool hasAlpha(QPixmap* theWrappedObject) const; - bool hasAlphaChannel(QPixmap* theWrappedObject) const; - int height(QPixmap* theWrappedObject) const; - bool isNull(QPixmap* theWrappedObject) const; - bool isQBitmap(QPixmap* theWrappedObject) const; - bool load(QPixmap* theWrappedObject, const QString& fileName, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); - bool loadFromData(QPixmap* theWrappedObject, const QByteArray& data, const char* format = 0, Qt::ImageConversionFlags flags = Qt::AutoColor); - QBitmap mask(QPixmap* theWrappedObject) const; - int metric(QPixmap* theWrappedObject, QPaintDevice::PaintDeviceMetric arg__1) const; - void writeTo(QPixmap* theWrappedObject, QDataStream& arg__1); - void readFrom(QPixmap* theWrappedObject, QDataStream& arg__1); - QPaintEngine* paintEngine(QPixmap* theWrappedObject) const; - QRect rect(QPixmap* theWrappedObject) const; - bool save(QPixmap* theWrappedObject, QIODevice* device, const char* format = 0, int quality = -1) const; - bool save(QPixmap* theWrappedObject, const QString& fileName, const char* format = 0, int quality = -1) const; - QPixmap scaled(QPixmap* theWrappedObject, const QSize& s, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; - QPixmap scaled(QPixmap* theWrappedObject, int w, int h, Qt::AspectRatioMode aspectMode = Qt::IgnoreAspectRatio, Qt::TransformationMode mode = Qt::FastTransformation) const; - QPixmap scaledToHeight(QPixmap* theWrappedObject, int h, Qt::TransformationMode mode = Qt::FastTransformation) const; - QPixmap scaledToWidth(QPixmap* theWrappedObject, int w, Qt::TransformationMode mode = Qt::FastTransformation) const; - void scroll(QPixmap* theWrappedObject, int dx, int dy, const QRect& rect, QRegion* exposed = 0); - void scroll(QPixmap* theWrappedObject, int dx, int dy, int x, int y, int width, int height, QRegion* exposed = 0); - void setAlphaChannel(QPixmap* theWrappedObject, const QPixmap& arg__1); - void setMask(QPixmap* theWrappedObject, const QBitmap& arg__1); - QSize size(QPixmap* theWrappedObject) const; - QImage toImage(QPixmap* theWrappedObject) const; - QPixmap transformed(QPixmap* theWrappedObject, const QMatrix& arg__1, Qt::TransformationMode mode = Qt::FastTransformation) const; - QPixmap transformed(QPixmap* theWrappedObject, const QTransform& arg__1, Qt::TransformationMode mode = Qt::FastTransformation) const; - QMatrix static_QPixmap_trueMatrix(const QMatrix& m, int w, int h); - QTransform static_QPixmap_trueMatrix(const QTransform& m, int w, int h); - int width(QPixmap* theWrappedObject) const; - bool __nonzero__(QPixmap* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QPolygon : public QObject -{ Q_OBJECT -public: -public slots: -QPolygon* new_QPolygon(); -QPolygon* new_QPolygon(const QPolygon& a); -QPolygon* new_QPolygon(const QRect& r, bool closed = false); -QPolygon* new_QPolygon(const QVector& v); -QPolygon* new_QPolygon(int size); -void delete_QPolygon(QPolygon* obj) { delete obj; } - void append(QPolygon* theWrappedObject, const QPoint& t); - const QPoint* at(QPolygon* theWrappedObject, int i) const; - QRect boundingRect(QPolygon* theWrappedObject) const; - int capacity(QPolygon* theWrappedObject) const; - void clear(QPolygon* theWrappedObject); - bool contains(QPolygon* theWrappedObject, const QPoint& t) const; - bool containsPoint(QPolygon* theWrappedObject, const QPoint& pt, Qt::FillRule fillRule) const; - int count(QPolygon* theWrappedObject) const; - int count(QPolygon* theWrappedObject, const QPoint& t) const; - bool empty(QPolygon* theWrappedObject) const; - bool endsWith(QPolygon* theWrappedObject, const QPoint& t) const; - QVector* fill(QPolygon* theWrappedObject, const QPoint& t, int size); - const QPoint* first(QPolygon* theWrappedObject) const; - QVector static_QPolygon_fromList(const QList& list); - int indexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const; - QPolygon intersected(QPolygon* theWrappedObject, const QPolygon& r) const; - bool isEmpty(QPolygon* theWrappedObject) const; - const QPoint* last(QPolygon* theWrappedObject) const; - int lastIndexOf(QPolygon* theWrappedObject, const QPoint& t, int from) const; - QVector mid(QPolygon* theWrappedObject, int pos, int length) const; - bool __ne__(QPolygon* theWrappedObject, const QVector& v) const; - QPolygon __mul__(QPolygon* theWrappedObject, const QMatrix& m); - QPolygon __mul__(QPolygon* theWrappedObject, const QTransform& m); - void writeTo(QPolygon* theWrappedObject, QDataStream& stream); - bool __eq__(QPolygon* theWrappedObject, const QVector& v) const; - void readFrom(QPolygon* theWrappedObject, QDataStream& stream); - void pop_back(QPolygon* theWrappedObject); - void pop_front(QPolygon* theWrappedObject); - void prepend(QPolygon* theWrappedObject, const QPoint& t); - void push_back(QPolygon* theWrappedObject, const QPoint& t); - void push_front(QPolygon* theWrappedObject, const QPoint& t); - void remove(QPolygon* theWrappedObject, int i); - void remove(QPolygon* theWrappedObject, int i, int n); - void replace(QPolygon* theWrappedObject, int i, const QPoint& t); - void reserve(QPolygon* theWrappedObject, int size); - void resize(QPolygon* theWrappedObject, int size); - void setSharable(QPolygon* theWrappedObject, bool sharable); - int size(QPolygon* theWrappedObject) const; - void squeeze(QPolygon* theWrappedObject); - bool startsWith(QPolygon* theWrappedObject, const QPoint& t) const; - QPolygon subtracted(QPolygon* theWrappedObject, const QPolygon& r) const; - QList toList(QPolygon* theWrappedObject) const; - void translate(QPolygon* theWrappedObject, const QPoint& offset); - void translate(QPolygon* theWrappedObject, int dx, int dy); - QPolygon translated(QPolygon* theWrappedObject, const QPoint& offset) const; - QPolygon translated(QPolygon* theWrappedObject, int dx, int dy) const; - QPolygon united(QPolygon* theWrappedObject, const QPolygon& r) const; - QPoint value(QPolygon* theWrappedObject, int i) const; - QPoint value(QPolygon* theWrappedObject, int i, const QPoint& defaultValue) const; - QString py_toString(QPolygon*); -}; - - - - - -class PythonQtWrapper_QRegion : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RegionType ) -enum RegionType{ - Rectangle = QRegion::Rectangle, Ellipse = QRegion::Ellipse}; -public slots: -QRegion* new_QRegion(); -QRegion* new_QRegion(const QBitmap& bitmap); -QRegion* new_QRegion(const QPolygon& pa, Qt::FillRule fillRule = Qt::OddEvenFill); -QRegion* new_QRegion(const QRect& r, QRegion::RegionType t = QRegion::Rectangle); -QRegion* new_QRegion(const QRegion& region); -QRegion* new_QRegion(int x, int y, int w, int h, QRegion::RegionType t = QRegion::Rectangle); -void delete_QRegion(QRegion* obj) { delete obj; } - QRect boundingRect(QRegion* theWrappedObject) const; - bool contains(QRegion* theWrappedObject, const QPoint& p) const; - bool contains(QRegion* theWrappedObject, const QRect& r) const; - QRegion intersect(QRegion* theWrappedObject, const QRect& r) const; - QRegion intersected(QRegion* theWrappedObject, const QRect& r) const; - QRegion intersected(QRegion* theWrappedObject, const QRegion& r) const; - bool intersects(QRegion* theWrappedObject, const QRect& r) const; - bool intersects(QRegion* theWrappedObject, const QRegion& r) const; - bool isEmpty(QRegion* theWrappedObject) const; - int numRects(QRegion* theWrappedObject) const; - bool __ne__(QRegion* theWrappedObject, const QRegion& r) const; - const QRegion __and__(QRegion* theWrappedObject, const QRect& r) const; - QRegion __mul__(QRegion* theWrappedObject, const QMatrix& m); - QRegion __mul__(QRegion* theWrappedObject, const QTransform& m); - const QRegion __add__(QRegion* theWrappedObject, const QRect& r) const; - void writeTo(QRegion* theWrappedObject, QDataStream& arg__1); - bool __eq__(QRegion* theWrappedObject, const QRegion& r) const; - void readFrom(QRegion* theWrappedObject, QDataStream& arg__1); - int rectCount(QRegion* theWrappedObject) const; - QVector rects(QRegion* theWrappedObject) const; - void setRects(QRegion* theWrappedObject, const QRect* rect, int num); - QRegion subtracted(QRegion* theWrappedObject, const QRegion& r) const; - void translate(QRegion* theWrappedObject, const QPoint& p); - void translate(QRegion* theWrappedObject, int dx, int dy); - QRegion translated(QRegion* theWrappedObject, const QPoint& p) const; - QRegion translated(QRegion* theWrappedObject, int dx, int dy) const; - QRegion unite(QRegion* theWrappedObject, const QRect& r) const; - QRegion united(QRegion* theWrappedObject, const QRect& r) const; - QRegion united(QRegion* theWrappedObject, const QRegion& r) const; - QRegion xored(QRegion* theWrappedObject, const QRegion& r) const; - QString py_toString(QRegion*); -}; - - - - - -class PythonQtWrapper_QSizePolicy : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ControlType PolicyFlag Policy ) -Q_FLAGS(ControlTypes ) -enum ControlType{ - DefaultType = QSizePolicy::DefaultType, ButtonBox = QSizePolicy::ButtonBox, CheckBox = QSizePolicy::CheckBox, ComboBox = QSizePolicy::ComboBox, Frame = QSizePolicy::Frame, GroupBox = QSizePolicy::GroupBox, Label = QSizePolicy::Label, Line = QSizePolicy::Line, LineEdit = QSizePolicy::LineEdit, PushButton = QSizePolicy::PushButton, RadioButton = QSizePolicy::RadioButton, Slider = QSizePolicy::Slider, SpinBox = QSizePolicy::SpinBox, TabWidget = QSizePolicy::TabWidget, ToolButton = QSizePolicy::ToolButton}; -enum PolicyFlag{ - GrowFlag = QSizePolicy::GrowFlag, ExpandFlag = QSizePolicy::ExpandFlag, ShrinkFlag = QSizePolicy::ShrinkFlag, IgnoreFlag = QSizePolicy::IgnoreFlag}; -enum Policy{ - Fixed = QSizePolicy::Fixed, Minimum = QSizePolicy::Minimum, Maximum = QSizePolicy::Maximum, Preferred = QSizePolicy::Preferred, MinimumExpanding = QSizePolicy::MinimumExpanding, Expanding = QSizePolicy::Expanding, Ignored = QSizePolicy::Ignored}; -Q_DECLARE_FLAGS(ControlTypes, ControlType) -public slots: -QSizePolicy* new_QSizePolicy(); -QSizePolicy* new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical); -QSizePolicy* new_QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type); -QSizePolicy* new_QSizePolicy(const QSizePolicy& other) { -QSizePolicy* a = new QSizePolicy(); -*((QSizePolicy*)a) = other; -return a; } -void delete_QSizePolicy(QSizePolicy* obj) { delete obj; } - QSizePolicy::ControlType controlType(QSizePolicy* theWrappedObject) const; - Qt::Orientations expandingDirections(QSizePolicy* theWrappedObject) const; - bool hasHeightForWidth(QSizePolicy* theWrappedObject) const; - QSizePolicy::Policy horizontalPolicy(QSizePolicy* theWrappedObject) const; - int horizontalStretch(QSizePolicy* theWrappedObject) const; - bool __ne__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const; - void writeTo(QSizePolicy* theWrappedObject, QDataStream& arg__1); - bool __eq__(QSizePolicy* theWrappedObject, const QSizePolicy& s) const; - void readFrom(QSizePolicy* theWrappedObject, QDataStream& arg__1); - void setControlType(QSizePolicy* theWrappedObject, QSizePolicy::ControlType type); - void setHeightForWidth(QSizePolicy* theWrappedObject, bool b); - void setHorizontalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d); - void setHorizontalStretch(QSizePolicy* theWrappedObject, uchar stretchFactor); - void setVerticalPolicy(QSizePolicy* theWrappedObject, QSizePolicy::Policy d); - void setVerticalStretch(QSizePolicy* theWrappedObject, uchar stretchFactor); - void transpose(QSizePolicy* theWrappedObject); - QSizePolicy::Policy verticalPolicy(QSizePolicy* theWrappedObject) const; - int verticalStretch(QSizePolicy* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextFormat : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Property FormatType ObjectTypes PageBreakFlag ) -Q_FLAGS(PageBreakFlags ) -enum Property{ - ObjectIndex = QTextFormat::ObjectIndex, CssFloat = QTextFormat::CssFloat, LayoutDirection = QTextFormat::LayoutDirection, OutlinePen = QTextFormat::OutlinePen, BackgroundBrush = QTextFormat::BackgroundBrush, ForegroundBrush = QTextFormat::ForegroundBrush, BackgroundImageUrl = QTextFormat::BackgroundImageUrl, BlockAlignment = QTextFormat::BlockAlignment, BlockTopMargin = QTextFormat::BlockTopMargin, BlockBottomMargin = QTextFormat::BlockBottomMargin, BlockLeftMargin = QTextFormat::BlockLeftMargin, BlockRightMargin = QTextFormat::BlockRightMargin, TextIndent = QTextFormat::TextIndent, TabPositions = QTextFormat::TabPositions, BlockIndent = QTextFormat::BlockIndent, BlockNonBreakableLines = QTextFormat::BlockNonBreakableLines, BlockTrailingHorizontalRulerWidth = QTextFormat::BlockTrailingHorizontalRulerWidth, FirstFontProperty = QTextFormat::FirstFontProperty, FontCapitalization = QTextFormat::FontCapitalization, FontLetterSpacing = QTextFormat::FontLetterSpacing, FontWordSpacing = QTextFormat::FontWordSpacing, FontStyleHint = QTextFormat::FontStyleHint, FontStyleStrategy = QTextFormat::FontStyleStrategy, FontKerning = QTextFormat::FontKerning, FontFamily = QTextFormat::FontFamily, FontPointSize = QTextFormat::FontPointSize, FontSizeAdjustment = QTextFormat::FontSizeAdjustment, FontSizeIncrement = QTextFormat::FontSizeIncrement, FontWeight = QTextFormat::FontWeight, FontItalic = QTextFormat::FontItalic, FontUnderline = QTextFormat::FontUnderline, FontOverline = QTextFormat::FontOverline, FontStrikeOut = QTextFormat::FontStrikeOut, FontFixedPitch = QTextFormat::FontFixedPitch, FontPixelSize = QTextFormat::FontPixelSize, LastFontProperty = QTextFormat::LastFontProperty, TextUnderlineColor = QTextFormat::TextUnderlineColor, TextVerticalAlignment = QTextFormat::TextVerticalAlignment, TextOutline = QTextFormat::TextOutline, TextUnderlineStyle = QTextFormat::TextUnderlineStyle, TextToolTip = QTextFormat::TextToolTip, IsAnchor = QTextFormat::IsAnchor, AnchorHref = QTextFormat::AnchorHref, AnchorName = QTextFormat::AnchorName, ObjectType = QTextFormat::ObjectType, ListStyle = QTextFormat::ListStyle, ListIndent = QTextFormat::ListIndent, FrameBorder = QTextFormat::FrameBorder, FrameMargin = QTextFormat::FrameMargin, FramePadding = QTextFormat::FramePadding, FrameWidth = QTextFormat::FrameWidth, FrameHeight = QTextFormat::FrameHeight, FrameTopMargin = QTextFormat::FrameTopMargin, FrameBottomMargin = QTextFormat::FrameBottomMargin, FrameLeftMargin = QTextFormat::FrameLeftMargin, FrameRightMargin = QTextFormat::FrameRightMargin, FrameBorderBrush = QTextFormat::FrameBorderBrush, FrameBorderStyle = QTextFormat::FrameBorderStyle, TableColumns = QTextFormat::TableColumns, TableColumnWidthConstraints = QTextFormat::TableColumnWidthConstraints, TableCellSpacing = QTextFormat::TableCellSpacing, TableCellPadding = QTextFormat::TableCellPadding, TableHeaderRowCount = QTextFormat::TableHeaderRowCount, TableCellRowSpan = QTextFormat::TableCellRowSpan, TableCellColumnSpan = QTextFormat::TableCellColumnSpan, TableCellTopPadding = QTextFormat::TableCellTopPadding, TableCellBottomPadding = QTextFormat::TableCellBottomPadding, TableCellLeftPadding = QTextFormat::TableCellLeftPadding, TableCellRightPadding = QTextFormat::TableCellRightPadding, ImageName = QTextFormat::ImageName, ImageWidth = QTextFormat::ImageWidth, ImageHeight = QTextFormat::ImageHeight, FullWidthSelection = QTextFormat::FullWidthSelection, PageBreakPolicy = QTextFormat::PageBreakPolicy, UserProperty = QTextFormat::UserProperty}; -enum FormatType{ - InvalidFormat = QTextFormat::InvalidFormat, BlockFormat = QTextFormat::BlockFormat, CharFormat = QTextFormat::CharFormat, ListFormat = QTextFormat::ListFormat, TableFormat = QTextFormat::TableFormat, FrameFormat = QTextFormat::FrameFormat, UserFormat = QTextFormat::UserFormat}; -enum ObjectTypes{ - NoObject = QTextFormat::NoObject, ImageObject = QTextFormat::ImageObject, TableObject = QTextFormat::TableObject, TableCellObject = QTextFormat::TableCellObject, UserObject = QTextFormat::UserObject}; -enum PageBreakFlag{ - PageBreak_Auto = QTextFormat::PageBreak_Auto, PageBreak_AlwaysBefore = QTextFormat::PageBreak_AlwaysBefore, PageBreak_AlwaysAfter = QTextFormat::PageBreak_AlwaysAfter}; -Q_DECLARE_FLAGS(PageBreakFlags, PageBreakFlag) -public slots: -QTextFormat* new_QTextFormat(); -QTextFormat* new_QTextFormat(const QTextFormat& rhs); -QTextFormat* new_QTextFormat(int type); -void delete_QTextFormat(QTextFormat* obj) { delete obj; } - QBrush background(QTextFormat* theWrappedObject) const; - bool boolProperty(QTextFormat* theWrappedObject, int propertyId) const; - QBrush brushProperty(QTextFormat* theWrappedObject, int propertyId) const; - void clearBackground(QTextFormat* theWrappedObject); - void clearForeground(QTextFormat* theWrappedObject); - void clearProperty(QTextFormat* theWrappedObject, int propertyId); - QColor colorProperty(QTextFormat* theWrappedObject, int propertyId) const; - qreal doubleProperty(QTextFormat* theWrappedObject, int propertyId) const; - QBrush foreground(QTextFormat* theWrappedObject) const; - bool hasProperty(QTextFormat* theWrappedObject, int propertyId) const; - int intProperty(QTextFormat* theWrappedObject, int propertyId) const; - bool isBlockFormat(QTextFormat* theWrappedObject) const; - bool isCharFormat(QTextFormat* theWrappedObject) const; - bool isFrameFormat(QTextFormat* theWrappedObject) const; - bool isImageFormat(QTextFormat* theWrappedObject) const; - bool isListFormat(QTextFormat* theWrappedObject) const; - bool isTableCellFormat(QTextFormat* theWrappedObject) const; - bool isTableFormat(QTextFormat* theWrappedObject) const; - bool isValid(QTextFormat* theWrappedObject) const; - Qt::LayoutDirection layoutDirection(QTextFormat* theWrappedObject) const; - QTextLength lengthProperty(QTextFormat* theWrappedObject, int propertyId) const; - QVector lengthVectorProperty(QTextFormat* theWrappedObject, int propertyId) const; - void merge(QTextFormat* theWrappedObject, const QTextFormat& other); - int objectIndex(QTextFormat* theWrappedObject) const; - int objectType(QTextFormat* theWrappedObject) const; - bool __ne__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const; - void writeTo(QTextFormat* theWrappedObject, QDataStream& arg__1); - bool __eq__(QTextFormat* theWrappedObject, const QTextFormat& rhs) const; - void readFrom(QTextFormat* theWrappedObject, QDataStream& arg__1); - QPen penProperty(QTextFormat* theWrappedObject, int propertyId) const; - QMap properties(QTextFormat* theWrappedObject) const; - QVariant property(QTextFormat* theWrappedObject, int propertyId) const; - int propertyCount(QTextFormat* theWrappedObject) const; - void setBackground(QTextFormat* theWrappedObject, const QBrush& brush); - void setForeground(QTextFormat* theWrappedObject, const QBrush& brush); - void setLayoutDirection(QTextFormat* theWrappedObject, Qt::LayoutDirection direction); - void setObjectIndex(QTextFormat* theWrappedObject, int object); - void setObjectType(QTextFormat* theWrappedObject, int type); - void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVariant& value); - void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVector& lengths); - QString stringProperty(QTextFormat* theWrappedObject, int propertyId) const; - QTextBlockFormat toBlockFormat(QTextFormat* theWrappedObject) const; - QTextCharFormat toCharFormat(QTextFormat* theWrappedObject) const; - QTextFrameFormat toFrameFormat(QTextFormat* theWrappedObject) const; - QTextImageFormat toImageFormat(QTextFormat* theWrappedObject) const; - QTextListFormat toListFormat(QTextFormat* theWrappedObject) const; - QTextTableCellFormat toTableCellFormat(QTextFormat* theWrappedObject) const; - QTextTableFormat toTableFormat(QTextFormat* theWrappedObject) const; - int type(QTextFormat* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QTextLength : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Type ) -enum Type{ - VariableLength = QTextLength::VariableLength, FixedLength = QTextLength::FixedLength, PercentageLength = QTextLength::PercentageLength}; -public slots: -QTextLength* new_QTextLength(); -QTextLength* new_QTextLength(QTextLength::Type type, qreal value); -QTextLength* new_QTextLength(const QTextLength& other) { -QTextLength* a = new QTextLength(); -*((QTextLength*)a) = other; -return a; } -void delete_QTextLength(QTextLength* obj) { delete obj; } - bool __ne__(QTextLength* theWrappedObject, const QTextLength& other) const; - void writeTo(QTextLength* theWrappedObject, QDataStream& arg__1); - bool __eq__(QTextLength* theWrappedObject, const QTextLength& other) const; - void readFrom(QTextLength* theWrappedObject, QDataStream& arg__1); - qreal rawValue(QTextLength* theWrappedObject) const; - QTextLength::Type type(QTextLength* theWrappedObject) const; - qreal value(QTextLength* theWrappedObject, qreal maximumLength) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp deleted file mode 100644 index 93882f509..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin_init.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include -#include "com_trolltech_qt_gui_builtin0.h" - -void PythonQt_init_QtGuiBuiltin(PyObject* module) { -PythonQt::priv()->registerCPPClass("QBitmap", "QPixmap", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero); -PythonQt::priv()->registerCPPClass("QBrush", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QColor", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QCursor", "", "QtGui", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QFont", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QIcon", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero); -PythonQt::priv()->registerCPPClass("QImage", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::self()->addParentClass("QImage", "QPaintDevice",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QKeySequence", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QMatrix", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_InplaceMultiply|PythonQt::Type_Multiply); -PythonQt::priv()->registerCPPClass("QPalette", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QPen", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QPixmap", "", "QtGui", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_NonZero); -PythonQt::self()->addParentClass("QPixmap", "QPaintDevice",PythonQtUpcastingOffset()); -PythonQt::priv()->registerCPPClass("QPolygon", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QRegion", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_And|PythonQt::Type_InplaceXor|PythonQt::Type_InplaceSubtract|PythonQt::Type_InplaceAdd|PythonQt::Type_InplaceOr|PythonQt::Type_Xor|PythonQt::Type_RichCompare|PythonQt::Type_Or|PythonQt::Type_InplaceAnd|PythonQt::Type_Subtract|PythonQt::Type_Multiply|PythonQt::Type_Add); -PythonQt::priv()->registerCPPClass("QSizePolicy", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTextFormat", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QTextLength", "", "QtGui", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); - -} diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network.pri b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network.pri deleted file mode 100644 index 71768c917..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network.pri +++ /dev/null @@ -1,6 +0,0 @@ -HEADERS += \ - $$PWD/com_trolltech_qt_network0.h \ - -SOURCES += \ - $$PWD/com_trolltech_qt_network0.cpp \ - $$PWD/com_trolltech_qt_network_init.cpp diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp deleted file mode 100644 index c4a0f232d..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp +++ /dev/null @@ -1,7413 +0,0 @@ -#include "com_trolltech_qt_network0.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -qint64 PythonQtShell_QAbstractNetworkCache::cacheSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cacheSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("cacheSize", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return qint64(); -} -void PythonQtShell_QAbstractNetworkCache::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractNetworkCache::childEvent(arg__1); -} -void PythonQtShell_QAbstractNetworkCache::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_QAbstractNetworkCache::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractNetworkCache::customEvent(arg__1); -} -QIODevice* PythonQtShell_QAbstractNetworkCache::data(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QIODevice**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -bool PythonQtShell_QAbstractNetworkCache::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractNetworkCache::event(arg__1); -} -bool PythonQtShell_QAbstractNetworkCache::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractNetworkCache::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QAbstractNetworkCache::insert(QIODevice* device) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QIODevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&device}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QNetworkCacheMetaData PythonQtShell_QAbstractNetworkCache::metaData(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metaData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QNetworkCacheMetaData" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QNetworkCacheMetaData returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metaData", methodInfo, result); - } else { - returnValue = *((QNetworkCacheMetaData*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkCacheMetaData(); -} -QIODevice* PythonQtShell_QAbstractNetworkCache::prepare(const QNetworkCacheMetaData& metaData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "prepare"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("prepare", methodInfo, result); - } else { - returnValue = *((QIODevice**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -bool PythonQtShell_QAbstractNetworkCache::remove(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "remove"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("remove", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -void PythonQtShell_QAbstractNetworkCache::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractNetworkCache::timerEvent(arg__1); -} -void PythonQtShell_QAbstractNetworkCache::updateMetaData(const QNetworkCacheMetaData& metaData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateMetaData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} - - -bool PythonQtShell_QAbstractSocket::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::atEnd(); -} -qint64 PythonQtShell_QAbstractSocket::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::bytesAvailable(); -} -qint64 PythonQtShell_QAbstractSocket::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::bytesToWrite(); -} -bool PythonQtShell_QAbstractSocket::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::canReadLine(); -} -void PythonQtShell_QAbstractSocket::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSocket::childEvent(arg__1); -} -void PythonQtShell_QAbstractSocket::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSocket::close(); -} -void PythonQtShell_QAbstractSocket::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSocket::customEvent(arg__1); -} -bool PythonQtShell_QAbstractSocket::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::event(arg__1); -} -bool PythonQtShell_QAbstractSocket::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QAbstractSocket::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::isSequential(); -} -bool PythonQtShell_QAbstractSocket::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::open(mode); -} -qint64 PythonQtShell_QAbstractSocket::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::pos(); -} -qint64 PythonQtShell_QAbstractSocket::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::readData(data, maxlen); -} -qint64 PythonQtShell_QAbstractSocket::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::readLineData(data, maxlen); -} -bool PythonQtShell_QAbstractSocket::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::reset(); -} -bool PythonQtShell_QAbstractSocket::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::seek(pos); -} -qint64 PythonQtShell_QAbstractSocket::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::size(); -} -void PythonQtShell_QAbstractSocket::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QAbstractSocket::timerEvent(arg__1); -} -bool PythonQtShell_QAbstractSocket::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::waitForBytesWritten(msecs); -} -bool PythonQtShell_QAbstractSocket::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QAbstractSocket::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QAbstractSocket::writeData(data, len); -} -QAbstractSocket* PythonQtWrapper_QAbstractSocket::new_QAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent) -{ -return new PythonQtShell_QAbstractSocket(socketType, parent); } - -void PythonQtWrapper_QAbstractSocket::abort(QAbstractSocket* theWrappedObject) -{ - ( theWrappedObject->abort()); -} - -bool PythonQtWrapper_QAbstractSocket::atEnd(QAbstractSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_atEnd()); -} - -qint64 PythonQtWrapper_QAbstractSocket::bytesAvailable(QAbstractSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_bytesAvailable()); -} - -qint64 PythonQtWrapper_QAbstractSocket::bytesToWrite(QAbstractSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_bytesToWrite()); -} - -bool PythonQtWrapper_QAbstractSocket::canReadLine(QAbstractSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_canReadLine()); -} - -void PythonQtWrapper_QAbstractSocket::close(QAbstractSocket* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_close()); -} - -void PythonQtWrapper_QAbstractSocket::connectToHost(QAbstractSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode) -{ - ( theWrappedObject->connectToHost(address, port, mode)); -} - -void PythonQtWrapper_QAbstractSocket::connectToHost(QAbstractSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode) -{ - ( theWrappedObject->connectToHost(hostName, port, mode)); -} - -void PythonQtWrapper_QAbstractSocket::disconnectFromHost(QAbstractSocket* theWrappedObject) -{ - ( theWrappedObject->disconnectFromHost()); -} - -QAbstractSocket::SocketError PythonQtWrapper_QAbstractSocket::error(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -bool PythonQtWrapper_QAbstractSocket::flush(QAbstractSocket* theWrappedObject) -{ - return ( theWrappedObject->flush()); -} - -bool PythonQtWrapper_QAbstractSocket::isSequential(QAbstractSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_isSequential()); -} - -bool PythonQtWrapper_QAbstractSocket::isValid(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QHostAddress PythonQtWrapper_QAbstractSocket::localAddress(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->localAddress()); -} - -unsigned short PythonQtWrapper_QAbstractSocket::localPort(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->localPort()); -} - -QHostAddress PythonQtWrapper_QAbstractSocket::peerAddress(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->peerAddress()); -} - -QString PythonQtWrapper_QAbstractSocket::peerName(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->peerName()); -} - -unsigned short PythonQtWrapper_QAbstractSocket::peerPort(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->peerPort()); -} - -QNetworkProxy PythonQtWrapper_QAbstractSocket::proxy(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->proxy()); -} - -qint64 PythonQtWrapper_QAbstractSocket::readBufferSize(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->readBufferSize()); -} - -qint64 PythonQtWrapper_QAbstractSocket::readData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_readData(data, maxlen)); -} - -qint64 PythonQtWrapper_QAbstractSocket::readLineData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_readLineData(data, maxlen)); -} - -void PythonQtWrapper_QAbstractSocket::setProxy(QAbstractSocket* theWrappedObject, const QNetworkProxy& networkProxy) -{ - ( theWrappedObject->setProxy(networkProxy)); -} - -void PythonQtWrapper_QAbstractSocket::setReadBufferSize(QAbstractSocket* theWrappedObject, qint64 size) -{ - ( theWrappedObject->setReadBufferSize(size)); -} - -bool PythonQtWrapper_QAbstractSocket::setSocketDescriptor(QAbstractSocket* theWrappedObject, int socketDescriptor, QAbstractSocket::SocketState state, QIODevice::OpenMode openMode) -{ - return ( theWrappedObject->setSocketDescriptor(socketDescriptor, state, openMode)); -} - -int PythonQtWrapper_QAbstractSocket::socketDescriptor(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->socketDescriptor()); -} - -QAbstractSocket::SocketType PythonQtWrapper_QAbstractSocket::socketType(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->socketType()); -} - -QAbstractSocket::SocketState PythonQtWrapper_QAbstractSocket::state(QAbstractSocket* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -bool PythonQtWrapper_QAbstractSocket::waitForBytesWritten(QAbstractSocket* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); -} - -bool PythonQtWrapper_QAbstractSocket::waitForConnected(QAbstractSocket* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForConnected(msecs)); -} - -bool PythonQtWrapper_QAbstractSocket::waitForDisconnected(QAbstractSocket* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForDisconnected(msecs)); -} - -bool PythonQtWrapper_QAbstractSocket::waitForReadyRead(QAbstractSocket* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_waitForReadyRead(msecs)); -} - -qint64 PythonQtWrapper_QAbstractSocket::writeData(QAbstractSocket* theWrappedObject, const char* data, qint64 len) -{ - return ( ((PythonQtPublicPromoter_QAbstractSocket*)theWrappedObject)->promoted_writeData(data, len)); -} - - - -QAuthenticator* PythonQtWrapper_QAuthenticator::new_QAuthenticator() -{ -return new QAuthenticator(); } - -QAuthenticator* PythonQtWrapper_QAuthenticator::new_QAuthenticator(const QAuthenticator& other) -{ -return new QAuthenticator(other); } - -bool PythonQtWrapper_QAuthenticator::isNull(QAuthenticator* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QAuthenticator::__ne__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QAuthenticator::__eq__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const -{ - return ( (*theWrappedObject)== other); -} - -QString PythonQtWrapper_QAuthenticator::password(QAuthenticator* theWrappedObject) const -{ - return ( theWrappedObject->password()); -} - -QString PythonQtWrapper_QAuthenticator::realm(QAuthenticator* theWrappedObject) const -{ - return ( theWrappedObject->realm()); -} - -void PythonQtWrapper_QAuthenticator::setPassword(QAuthenticator* theWrappedObject, const QString& password) -{ - ( theWrappedObject->setPassword(password)); -} - -void PythonQtWrapper_QAuthenticator::setUser(QAuthenticator* theWrappedObject, const QString& user) -{ - ( theWrappedObject->setUser(user)); -} - -QString PythonQtWrapper_QAuthenticator::user(QAuthenticator* theWrappedObject) const -{ - return ( theWrappedObject->user()); -} - - - -void PythonQtShell_QFtp::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFtp::childEvent(arg__1); -} -void PythonQtShell_QFtp::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFtp::customEvent(arg__1); -} -bool PythonQtShell_QFtp::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFtp::event(arg__1); -} -bool PythonQtShell_QFtp::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QFtp::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QFtp::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QFtp::timerEvent(arg__1); -} -QFtp* PythonQtWrapper_QFtp::new_QFtp(QObject* parent) -{ -return new PythonQtShell_QFtp(parent); } - -qint64 PythonQtWrapper_QFtp::bytesAvailable(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->bytesAvailable()); -} - -int PythonQtWrapper_QFtp::cd(QFtp* theWrappedObject, const QString& dir) -{ - return ( theWrappedObject->cd(dir)); -} - -void PythonQtWrapper_QFtp::clearPendingCommands(QFtp* theWrappedObject) -{ - ( theWrappedObject->clearPendingCommands()); -} - -int PythonQtWrapper_QFtp::close(QFtp* theWrappedObject) -{ - return ( theWrappedObject->close()); -} - -int PythonQtWrapper_QFtp::connectToHost(QFtp* theWrappedObject, const QString& host, unsigned short port) -{ - return ( theWrappedObject->connectToHost(host, port)); -} - -QFtp::Command PythonQtWrapper_QFtp::currentCommand(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->currentCommand()); -} - -QIODevice* PythonQtWrapper_QFtp::currentDevice(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->currentDevice()); -} - -int PythonQtWrapper_QFtp::currentId(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->currentId()); -} - -QFtp::Error PythonQtWrapper_QFtp::error(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -QString PythonQtWrapper_QFtp::errorString(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -int PythonQtWrapper_QFtp::get(QFtp* theWrappedObject, const QString& file, QIODevice* dev, QFtp::TransferType type) -{ - return ( theWrappedObject->get(file, dev, type)); -} - -bool PythonQtWrapper_QFtp::hasPendingCommands(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->hasPendingCommands()); -} - -int PythonQtWrapper_QFtp::list(QFtp* theWrappedObject, const QString& dir) -{ - return ( theWrappedObject->list(dir)); -} - -int PythonQtWrapper_QFtp::login(QFtp* theWrappedObject, const QString& user, const QString& password) -{ - return ( theWrappedObject->login(user, password)); -} - -int PythonQtWrapper_QFtp::mkdir(QFtp* theWrappedObject, const QString& dir) -{ - return ( theWrappedObject->mkdir(dir)); -} - -int PythonQtWrapper_QFtp::put(QFtp* theWrappedObject, QIODevice* dev, const QString& file, QFtp::TransferType type) -{ - return ( theWrappedObject->put(dev, file, type)); -} - -int PythonQtWrapper_QFtp::put(QFtp* theWrappedObject, const QByteArray& data, const QString& file, QFtp::TransferType type) -{ - return ( theWrappedObject->put(data, file, type)); -} - -int PythonQtWrapper_QFtp::rawCommand(QFtp* theWrappedObject, const QString& command) -{ - return ( theWrappedObject->rawCommand(command)); -} - -qint64 PythonQtWrapper_QFtp::read(QFtp* theWrappedObject, char* data, qint64 maxlen) -{ - return ( theWrappedObject->read(data, maxlen)); -} - -QByteArray PythonQtWrapper_QFtp::readAll(QFtp* theWrappedObject) -{ - return ( theWrappedObject->readAll()); -} - -int PythonQtWrapper_QFtp::remove(QFtp* theWrappedObject, const QString& file) -{ - return ( theWrappedObject->remove(file)); -} - -int PythonQtWrapper_QFtp::rename(QFtp* theWrappedObject, const QString& oldname, const QString& newname) -{ - return ( theWrappedObject->rename(oldname, newname)); -} - -int PythonQtWrapper_QFtp::rmdir(QFtp* theWrappedObject, const QString& dir) -{ - return ( theWrappedObject->rmdir(dir)); -} - -int PythonQtWrapper_QFtp::setProxy(QFtp* theWrappedObject, const QString& host, unsigned short port) -{ - return ( theWrappedObject->setProxy(host, port)); -} - -int PythonQtWrapper_QFtp::setTransferMode(QFtp* theWrappedObject, QFtp::TransferMode mode) -{ - return ( theWrappedObject->setTransferMode(mode)); -} - -QFtp::State PythonQtWrapper_QFtp::state(QFtp* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - - - -QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress() -{ -return new QHostAddress(); } - -QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(QHostAddress::SpecialAddress address) -{ -return new QHostAddress(address); } - -QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QHostAddress& copy) -{ -return new QHostAddress(copy); } - -QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QIPv6Address& ip6Addr) -{ -return new QHostAddress(ip6Addr); } - -QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(const QString& address) -{ -return new QHostAddress(address); } - -QHostAddress* PythonQtWrapper_QHostAddress::new_QHostAddress(unsigned int ip4Addr) -{ -return new QHostAddress(ip4Addr); } - -void PythonQtWrapper_QHostAddress::clear(QHostAddress* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -bool PythonQtWrapper_QHostAddress::isInSubnet(QHostAddress* theWrappedObject, const QHostAddress& subnet, int netmask) const -{ - return ( theWrappedObject->isInSubnet(subnet, netmask)); -} - -bool PythonQtWrapper_QHostAddress::isInSubnet(QHostAddress* theWrappedObject, const QPair& subnet) const -{ - return ( theWrappedObject->isInSubnet(subnet)); -} - -bool PythonQtWrapper_QHostAddress::isNull(QHostAddress* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -bool PythonQtWrapper_QHostAddress::__ne__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const -{ - return ( (*theWrappedObject)!= address); -} - -bool PythonQtWrapper_QHostAddress::__ne__(QHostAddress* theWrappedObject, const QHostAddress& address) const -{ - return ( (*theWrappedObject)!= address); -} - -void PythonQtWrapper_QHostAddress::writeTo(QHostAddress* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QHostAddress::__eq__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const -{ - return ( (*theWrappedObject)== address); -} - -bool PythonQtWrapper_QHostAddress::__eq__(QHostAddress* theWrappedObject, const QHostAddress& address) const -{ - return ( (*theWrappedObject)== address); -} - -void PythonQtWrapper_QHostAddress::readFrom(QHostAddress* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QPair PythonQtWrapper_QHostAddress::static_QHostAddress_parseSubnet(const QString& subnet) -{ - return (QHostAddress::parseSubnet(subnet)); -} - -QAbstractSocket::NetworkLayerProtocol PythonQtWrapper_QHostAddress::protocol(QHostAddress* theWrappedObject) const -{ - return ( theWrappedObject->protocol()); -} - -QString PythonQtWrapper_QHostAddress::scopeId(QHostAddress* theWrappedObject) const -{ - return ( theWrappedObject->scopeId()); -} - -void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr) -{ - ( theWrappedObject->setAddress(ip6Addr)); -} - -bool PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, const QString& address) -{ - return ( theWrappedObject->setAddress(address)); -} - -void PythonQtWrapper_QHostAddress::setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr) -{ - ( theWrappedObject->setAddress(ip4Addr)); -} - -void PythonQtWrapper_QHostAddress::setScopeId(QHostAddress* theWrappedObject, const QString& id) -{ - ( theWrappedObject->setScopeId(id)); -} - -unsigned int PythonQtWrapper_QHostAddress::toIPv4Address(QHostAddress* theWrappedObject) const -{ - return ( theWrappedObject->toIPv4Address()); -} - -QIPv6Address PythonQtWrapper_QHostAddress::toIPv6Address(QHostAddress* theWrappedObject) const -{ - return ( theWrappedObject->toIPv6Address()); -} - -QString PythonQtWrapper_QHostAddress::toString(QHostAddress* theWrappedObject) const -{ - return ( theWrappedObject->toString()); -} - -QString PythonQtWrapper_QHostAddress::py_toString(QHostAddress* obj) { return obj->toString(); } - - -QHostInfo* PythonQtWrapper_QHostInfo::new_QHostInfo(const QHostInfo& d) -{ -return new QHostInfo(d); } - -QHostInfo* PythonQtWrapper_QHostInfo::new_QHostInfo(int lookupId) -{ -return new QHostInfo(lookupId); } - -void PythonQtWrapper_QHostInfo::static_QHostInfo_abortHostLookup(int lookupId) -{ - (QHostInfo::abortHostLookup(lookupId)); -} - -QList PythonQtWrapper_QHostInfo::addresses(QHostInfo* theWrappedObject) const -{ - return ( theWrappedObject->addresses()); -} - -QHostInfo::HostInfoError PythonQtWrapper_QHostInfo::error(QHostInfo* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -QString PythonQtWrapper_QHostInfo::errorString(QHostInfo* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -QHostInfo PythonQtWrapper_QHostInfo::static_QHostInfo_fromName(const QString& name) -{ - return (QHostInfo::fromName(name)); -} - -QString PythonQtWrapper_QHostInfo::hostName(QHostInfo* theWrappedObject) const -{ - return ( theWrappedObject->hostName()); -} - -QString PythonQtWrapper_QHostInfo::static_QHostInfo_localDomainName() -{ - return (QHostInfo::localDomainName()); -} - -QString PythonQtWrapper_QHostInfo::static_QHostInfo_localHostName() -{ - return (QHostInfo::localHostName()); -} - -int PythonQtWrapper_QHostInfo::static_QHostInfo_lookupHost(const QString& name, QObject* receiver, const char* member) -{ - return (QHostInfo::lookupHost(name, receiver, member)); -} - -int PythonQtWrapper_QHostInfo::lookupId(QHostInfo* theWrappedObject) const -{ - return ( theWrappedObject->lookupId()); -} - -void PythonQtWrapper_QHostInfo::setAddresses(QHostInfo* theWrappedObject, const QList& addresses) -{ - ( theWrappedObject->setAddresses(addresses)); -} - -void PythonQtWrapper_QHostInfo::setError(QHostInfo* theWrappedObject, QHostInfo::HostInfoError error) -{ - ( theWrappedObject->setError(error)); -} - -void PythonQtWrapper_QHostInfo::setErrorString(QHostInfo* theWrappedObject, const QString& errorString) -{ - ( theWrappedObject->setErrorString(errorString)); -} - -void PythonQtWrapper_QHostInfo::setHostName(QHostInfo* theWrappedObject, const QString& name) -{ - ( theWrappedObject->setHostName(name)); -} - -void PythonQtWrapper_QHostInfo::setLookupId(QHostInfo* theWrappedObject, int id) -{ - ( theWrappedObject->setLookupId(id)); -} - - - -void PythonQtShell_QHttp::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHttp::childEvent(arg__1); -} -void PythonQtShell_QHttp::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHttp::customEvent(arg__1); -} -bool PythonQtShell_QHttp::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttp::event(arg__1); -} -bool PythonQtShell_QHttp::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttp::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QHttp::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QHttp::timerEvent(arg__1); -} -QHttp* PythonQtWrapper_QHttp::new_QHttp(QObject* parent) -{ -return new PythonQtShell_QHttp(parent); } - -QHttp* PythonQtWrapper_QHttp::new_QHttp(const QString& hostname, QHttp::ConnectionMode mode, unsigned short port, QObject* parent) -{ -return new PythonQtShell_QHttp(hostname, mode, port, parent); } - -QHttp* PythonQtWrapper_QHttp::new_QHttp(const QString& hostname, unsigned short port, QObject* parent) -{ -return new PythonQtShell_QHttp(hostname, port, parent); } - -qint64 PythonQtWrapper_QHttp::bytesAvailable(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->bytesAvailable()); -} - -void PythonQtWrapper_QHttp::clearPendingRequests(QHttp* theWrappedObject) -{ - ( theWrappedObject->clearPendingRequests()); -} - -int PythonQtWrapper_QHttp::close(QHttp* theWrappedObject) -{ - return ( theWrappedObject->close()); -} - -QIODevice* PythonQtWrapper_QHttp::currentDestinationDevice(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->currentDestinationDevice()); -} - -int PythonQtWrapper_QHttp::currentId(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->currentId()); -} - -QHttpRequestHeader PythonQtWrapper_QHttp::currentRequest(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->currentRequest()); -} - -QIODevice* PythonQtWrapper_QHttp::currentSourceDevice(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->currentSourceDevice()); -} - -QHttp::Error PythonQtWrapper_QHttp::error(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -QString PythonQtWrapper_QHttp::errorString(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -int PythonQtWrapper_QHttp::get(QHttp* theWrappedObject, const QString& path, QIODevice* to) -{ - return ( theWrappedObject->get(path, to)); -} - -bool PythonQtWrapper_QHttp::hasPendingRequests(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->hasPendingRequests()); -} - -int PythonQtWrapper_QHttp::head(QHttp* theWrappedObject, const QString& path) -{ - return ( theWrappedObject->head(path)); -} - -QHttpResponseHeader PythonQtWrapper_QHttp::lastResponse(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->lastResponse()); -} - -int PythonQtWrapper_QHttp::post(QHttp* theWrappedObject, const QString& path, QIODevice* data, QIODevice* to) -{ - return ( theWrappedObject->post(path, data, to)); -} - -int PythonQtWrapper_QHttp::post(QHttp* theWrappedObject, const QString& path, const QByteArray& data, QIODevice* to) -{ - return ( theWrappedObject->post(path, data, to)); -} - -qint64 PythonQtWrapper_QHttp::read(QHttp* theWrappedObject, char* data, qint64 maxlen) -{ - return ( theWrappedObject->read(data, maxlen)); -} - -QByteArray PythonQtWrapper_QHttp::readAll(QHttp* theWrappedObject) -{ - return ( theWrappedObject->readAll()); -} - -int PythonQtWrapper_QHttp::request(QHttp* theWrappedObject, const QHttpRequestHeader& header, QIODevice* device, QIODevice* to) -{ - return ( theWrappedObject->request(header, device, to)); -} - -int PythonQtWrapper_QHttp::request(QHttp* theWrappedObject, const QHttpRequestHeader& header, const QByteArray& data, QIODevice* to) -{ - return ( theWrappedObject->request(header, data, to)); -} - -int PythonQtWrapper_QHttp::setHost(QHttp* theWrappedObject, const QString& hostname, QHttp::ConnectionMode mode, unsigned short port) -{ - return ( theWrappedObject->setHost(hostname, mode, port)); -} - -int PythonQtWrapper_QHttp::setHost(QHttp* theWrappedObject, const QString& hostname, unsigned short port) -{ - return ( theWrappedObject->setHost(hostname, port)); -} - -int PythonQtWrapper_QHttp::setProxy(QHttp* theWrappedObject, const QNetworkProxy& proxy) -{ - return ( theWrappedObject->setProxy(proxy)); -} - -int PythonQtWrapper_QHttp::setProxy(QHttp* theWrappedObject, const QString& host, int port, const QString& username, const QString& password) -{ - return ( theWrappedObject->setProxy(host, port, username, password)); -} - -int PythonQtWrapper_QHttp::setSocket(QHttp* theWrappedObject, QTcpSocket* socket) -{ - return ( theWrappedObject->setSocket(socket)); -} - -int PythonQtWrapper_QHttp::setUser(QHttp* theWrappedObject, const QString& username, const QString& password) -{ - return ( theWrappedObject->setUser(username, password)); -} - -QHttp::State PythonQtWrapper_QHttp::state(QHttp* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - - - -int PythonQtShell_QHttpHeader::majorVersion() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "majorVersion"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("majorVersion", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -int PythonQtShell_QHttpHeader::minorVersion() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minorVersion"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minorVersion", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -bool PythonQtShell_QHttpHeader::parseLine(const QString& line, int number) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parseLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&line, (void*)&number}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("parseLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpHeader::parseLine(line, number); -} -QString PythonQtShell_QHttpHeader::toString() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toString"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("toString", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpHeader::toString(); -} -QHttpHeader* PythonQtWrapper_QHttpHeader::new_QHttpHeader() -{ -return new PythonQtShell_QHttpHeader(); } - -QHttpHeader* PythonQtWrapper_QHttpHeader::new_QHttpHeader(const QString& str) -{ -return new PythonQtShell_QHttpHeader(str); } - -void PythonQtWrapper_QHttpHeader::addValue(QHttpHeader* theWrappedObject, const QString& key, const QString& value) -{ - ( theWrappedObject->addValue(key, value)); -} - -QStringList PythonQtWrapper_QHttpHeader::allValues(QHttpHeader* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->allValues(key)); -} - -uint PythonQtWrapper_QHttpHeader::contentLength(QHttpHeader* theWrappedObject) const -{ - return ( theWrappedObject->contentLength()); -} - -QString PythonQtWrapper_QHttpHeader::contentType(QHttpHeader* theWrappedObject) const -{ - return ( theWrappedObject->contentType()); -} - -bool PythonQtWrapper_QHttpHeader::hasContentLength(QHttpHeader* theWrappedObject) const -{ - return ( theWrappedObject->hasContentLength()); -} - -bool PythonQtWrapper_QHttpHeader::hasContentType(QHttpHeader* theWrappedObject) const -{ - return ( theWrappedObject->hasContentType()); -} - -bool PythonQtWrapper_QHttpHeader::hasKey(QHttpHeader* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->hasKey(key)); -} - -bool PythonQtWrapper_QHttpHeader::isValid(QHttpHeader* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QStringList PythonQtWrapper_QHttpHeader::keys(QHttpHeader* theWrappedObject) const -{ - return ( theWrappedObject->keys()); -} - -bool PythonQtWrapper_QHttpHeader::parseLine(QHttpHeader* theWrappedObject, const QString& line, int number) -{ - return ( ((PythonQtPublicPromoter_QHttpHeader*)theWrappedObject)->promoted_parseLine(line, number)); -} - -void PythonQtWrapper_QHttpHeader::removeAllValues(QHttpHeader* theWrappedObject, const QString& key) -{ - ( theWrappedObject->removeAllValues(key)); -} - -void PythonQtWrapper_QHttpHeader::removeValue(QHttpHeader* theWrappedObject, const QString& key) -{ - ( theWrappedObject->removeValue(key)); -} - -void PythonQtWrapper_QHttpHeader::setContentLength(QHttpHeader* theWrappedObject, int len) -{ - ( theWrappedObject->setContentLength(len)); -} - -void PythonQtWrapper_QHttpHeader::setContentType(QHttpHeader* theWrappedObject, const QString& type) -{ - ( theWrappedObject->setContentType(type)); -} - -void PythonQtWrapper_QHttpHeader::setValue(QHttpHeader* theWrappedObject, const QString& key, const QString& value) -{ - ( theWrappedObject->setValue(key, value)); -} - -void PythonQtWrapper_QHttpHeader::setValues(QHttpHeader* theWrappedObject, const QList >& values) -{ - ( theWrappedObject->setValues(values)); -} - -QString PythonQtWrapper_QHttpHeader::toString(QHttpHeader* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHttpHeader*)theWrappedObject)->promoted_toString()); -} - -QString PythonQtWrapper_QHttpHeader::value(QHttpHeader* theWrappedObject, const QString& key) const -{ - return ( theWrappedObject->value(key)); -} - -QList > PythonQtWrapper_QHttpHeader::values(QHttpHeader* theWrappedObject) const -{ - return ( theWrappedObject->values()); -} - -QString PythonQtWrapper_QHttpHeader::py_toString(QHttpHeader* obj) { return obj->toString(); } - - -int PythonQtShell_QHttpRequestHeader::majorVersion() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "majorVersion"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("majorVersion", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpRequestHeader::majorVersion(); -} -int PythonQtShell_QHttpRequestHeader::minorVersion() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minorVersion"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minorVersion", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpRequestHeader::minorVersion(); -} -bool PythonQtShell_QHttpRequestHeader::parseLine(const QString& line, int number) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parseLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&line, (void*)&number}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("parseLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpRequestHeader::parseLine(line, number); -} -QString PythonQtShell_QHttpRequestHeader::toString() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toString"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("toString", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpRequestHeader::toString(); -} -QHttpRequestHeader* PythonQtWrapper_QHttpRequestHeader::new_QHttpRequestHeader() -{ -return new PythonQtShell_QHttpRequestHeader(); } - -QHttpRequestHeader* PythonQtWrapper_QHttpRequestHeader::new_QHttpRequestHeader(const QHttpRequestHeader& header) -{ -return new PythonQtShell_QHttpRequestHeader(header); } - -QHttpRequestHeader* PythonQtWrapper_QHttpRequestHeader::new_QHttpRequestHeader(const QString& method, const QString& path, int majorVer, int minorVer) -{ -return new PythonQtShell_QHttpRequestHeader(method, path, majorVer, minorVer); } - -QHttpRequestHeader* PythonQtWrapper_QHttpRequestHeader::new_QHttpRequestHeader(const QString& str) -{ -return new PythonQtShell_QHttpRequestHeader(str); } - -int PythonQtWrapper_QHttpRequestHeader::majorVersion(QHttpRequestHeader* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHttpRequestHeader*)theWrappedObject)->promoted_majorVersion()); -} - -QString PythonQtWrapper_QHttpRequestHeader::method(QHttpRequestHeader* theWrappedObject) const -{ - return ( theWrappedObject->method()); -} - -int PythonQtWrapper_QHttpRequestHeader::minorVersion(QHttpRequestHeader* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHttpRequestHeader*)theWrappedObject)->promoted_minorVersion()); -} - -bool PythonQtWrapper_QHttpRequestHeader::parseLine(QHttpRequestHeader* theWrappedObject, const QString& line, int number) -{ - return ( ((PythonQtPublicPromoter_QHttpRequestHeader*)theWrappedObject)->promoted_parseLine(line, number)); -} - -QString PythonQtWrapper_QHttpRequestHeader::path(QHttpRequestHeader* theWrappedObject) const -{ - return ( theWrappedObject->path()); -} - -void PythonQtWrapper_QHttpRequestHeader::setRequest(QHttpRequestHeader* theWrappedObject, const QString& method, const QString& path, int majorVer, int minorVer) -{ - ( theWrappedObject->setRequest(method, path, majorVer, minorVer)); -} - -QString PythonQtWrapper_QHttpRequestHeader::toString(QHttpRequestHeader* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHttpRequestHeader*)theWrappedObject)->promoted_toString()); -} - -QString PythonQtWrapper_QHttpRequestHeader::py_toString(QHttpRequestHeader* obj) { return obj->toString(); } - - -int PythonQtShell_QHttpResponseHeader::majorVersion() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "majorVersion"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("majorVersion", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpResponseHeader::majorVersion(); -} -int PythonQtShell_QHttpResponseHeader::minorVersion() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "minorVersion"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("minorVersion", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpResponseHeader::minorVersion(); -} -bool PythonQtShell_QHttpResponseHeader::parseLine(const QString& line, int number) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parseLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&line, (void*)&number}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("parseLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpResponseHeader::parseLine(line, number); -} -QString PythonQtShell_QHttpResponseHeader::toString() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toString"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("toString", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QHttpResponseHeader::toString(); -} -QHttpResponseHeader* PythonQtWrapper_QHttpResponseHeader::new_QHttpResponseHeader() -{ -return new PythonQtShell_QHttpResponseHeader(); } - -QHttpResponseHeader* PythonQtWrapper_QHttpResponseHeader::new_QHttpResponseHeader(const QHttpResponseHeader& header) -{ -return new PythonQtShell_QHttpResponseHeader(header); } - -QHttpResponseHeader* PythonQtWrapper_QHttpResponseHeader::new_QHttpResponseHeader(const QString& str) -{ -return new PythonQtShell_QHttpResponseHeader(str); } - -QHttpResponseHeader* PythonQtWrapper_QHttpResponseHeader::new_QHttpResponseHeader(int code, const QString& text, int majorVer, int minorVer) -{ -return new PythonQtShell_QHttpResponseHeader(code, text, majorVer, minorVer); } - -int PythonQtWrapper_QHttpResponseHeader::majorVersion(QHttpResponseHeader* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHttpResponseHeader*)theWrappedObject)->promoted_majorVersion()); -} - -int PythonQtWrapper_QHttpResponseHeader::minorVersion(QHttpResponseHeader* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHttpResponseHeader*)theWrappedObject)->promoted_minorVersion()); -} - -bool PythonQtWrapper_QHttpResponseHeader::parseLine(QHttpResponseHeader* theWrappedObject, const QString& line, int number) -{ - return ( ((PythonQtPublicPromoter_QHttpResponseHeader*)theWrappedObject)->promoted_parseLine(line, number)); -} - -QString PythonQtWrapper_QHttpResponseHeader::reasonPhrase(QHttpResponseHeader* theWrappedObject) const -{ - return ( theWrappedObject->reasonPhrase()); -} - -void PythonQtWrapper_QHttpResponseHeader::setStatusLine(QHttpResponseHeader* theWrappedObject, int code, const QString& text, int majorVer, int minorVer) -{ - ( theWrappedObject->setStatusLine(code, text, majorVer, minorVer)); -} - -int PythonQtWrapper_QHttpResponseHeader::statusCode(QHttpResponseHeader* theWrappedObject) const -{ - return ( theWrappedObject->statusCode()); -} - -QString PythonQtWrapper_QHttpResponseHeader::toString(QHttpResponseHeader* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QHttpResponseHeader*)theWrappedObject)->promoted_toString()); -} - -QString PythonQtWrapper_QHttpResponseHeader::py_toString(QHttpResponseHeader* obj) { return obj->toString(); } - - -QIPv6Address* PythonQtWrapper_QIPv6Address::new_QIPv6Address() -{ -return new PythonQtShell_QIPv6Address(); } - - - -void PythonQtShell_QLocalServer::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalServer::childEvent(arg__1); -} -void PythonQtShell_QLocalServer::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalServer::customEvent(arg__1); -} -bool PythonQtShell_QLocalServer::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalServer::event(arg__1); -} -bool PythonQtShell_QLocalServer::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalServer::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QLocalServer::hasPendingConnections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasPendingConnections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasPendingConnections", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalServer::hasPendingConnections(); -} -void PythonQtShell_QLocalServer::incomingConnection(quintptr socketDescriptor) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "incomingConnection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "quintptr"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&socketDescriptor}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalServer::incomingConnection(socketDescriptor); -} -QLocalSocket* PythonQtShell_QLocalServer::nextPendingConnection() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextPendingConnection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLocalSocket*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QLocalSocket* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("nextPendingConnection", methodInfo, result); - } else { - returnValue = *((QLocalSocket**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalServer::nextPendingConnection(); -} -void PythonQtShell_QLocalServer::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalServer::timerEvent(arg__1); -} -QLocalServer* PythonQtWrapper_QLocalServer::new_QLocalServer(QObject* parent) -{ -return new PythonQtShell_QLocalServer(parent); } - -void PythonQtWrapper_QLocalServer::close(QLocalServer* theWrappedObject) -{ - ( theWrappedObject->close()); -} - -QString PythonQtWrapper_QLocalServer::errorString(QLocalServer* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -QString PythonQtWrapper_QLocalServer::fullServerName(QLocalServer* theWrappedObject) const -{ - return ( theWrappedObject->fullServerName()); -} - -bool PythonQtWrapper_QLocalServer::hasPendingConnections(QLocalServer* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLocalServer*)theWrappedObject)->promoted_hasPendingConnections()); -} - -void PythonQtWrapper_QLocalServer::incomingConnection(QLocalServer* theWrappedObject, quintptr socketDescriptor) -{ - ( ((PythonQtPublicPromoter_QLocalServer*)theWrappedObject)->promoted_incomingConnection(socketDescriptor)); -} - -bool PythonQtWrapper_QLocalServer::isListening(QLocalServer* theWrappedObject) const -{ - return ( theWrappedObject->isListening()); -} - -bool PythonQtWrapper_QLocalServer::listen(QLocalServer* theWrappedObject, const QString& name) -{ - return ( theWrappedObject->listen(name)); -} - -int PythonQtWrapper_QLocalServer::maxPendingConnections(QLocalServer* theWrappedObject) const -{ - return ( theWrappedObject->maxPendingConnections()); -} - -QLocalSocket* PythonQtWrapper_QLocalServer::nextPendingConnection(QLocalServer* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QLocalServer*)theWrappedObject)->promoted_nextPendingConnection()); -} - -bool PythonQtWrapper_QLocalServer::static_QLocalServer_removeServer(const QString& name) -{ - return (QLocalServer::removeServer(name)); -} - -QAbstractSocket::SocketError PythonQtWrapper_QLocalServer::serverError(QLocalServer* theWrappedObject) const -{ - return ( theWrappedObject->serverError()); -} - -QString PythonQtWrapper_QLocalServer::serverName(QLocalServer* theWrappedObject) const -{ - return ( theWrappedObject->serverName()); -} - -void PythonQtWrapper_QLocalServer::setMaxPendingConnections(QLocalServer* theWrappedObject, int numConnections) -{ - ( theWrappedObject->setMaxPendingConnections(numConnections)); -} - -bool PythonQtWrapper_QLocalServer::waitForNewConnection(QLocalServer* theWrappedObject, int msec, bool* timedOut) -{ - return ( theWrappedObject->waitForNewConnection(msec, timedOut)); -} - - - -bool PythonQtShell_QLocalSocket::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::atEnd(); -} -qint64 PythonQtShell_QLocalSocket::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::bytesAvailable(); -} -qint64 PythonQtShell_QLocalSocket::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::bytesToWrite(); -} -bool PythonQtShell_QLocalSocket::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::canReadLine(); -} -void PythonQtShell_QLocalSocket::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalSocket::childEvent(arg__1); -} -void PythonQtShell_QLocalSocket::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalSocket::close(); -} -void PythonQtShell_QLocalSocket::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalSocket::customEvent(arg__1); -} -bool PythonQtShell_QLocalSocket::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::event(arg__1); -} -bool PythonQtShell_QLocalSocket::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QLocalSocket::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::isSequential(); -} -bool PythonQtShell_QLocalSocket::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::open(mode); -} -qint64 PythonQtShell_QLocalSocket::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::pos(); -} -qint64 PythonQtShell_QLocalSocket::readData(char* arg__1, qint64 arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::readData(arg__1, arg__2); -} -qint64 PythonQtShell_QLocalSocket::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::readLineData(data, maxlen); -} -bool PythonQtShell_QLocalSocket::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::reset(); -} -bool PythonQtShell_QLocalSocket::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::seek(pos); -} -qint64 PythonQtShell_QLocalSocket::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::size(); -} -void PythonQtShell_QLocalSocket::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QLocalSocket::timerEvent(arg__1); -} -bool PythonQtShell_QLocalSocket::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::waitForBytesWritten(msecs); -} -bool PythonQtShell_QLocalSocket::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QLocalSocket::writeData(const char* arg__1, qint64 arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QLocalSocket::writeData(arg__1, arg__2); -} -QLocalSocket* PythonQtWrapper_QLocalSocket::new_QLocalSocket(QObject* parent) -{ -return new PythonQtShell_QLocalSocket(parent); } - -void PythonQtWrapper_QLocalSocket::abort(QLocalSocket* theWrappedObject) -{ - ( theWrappedObject->abort()); -} - -qint64 PythonQtWrapper_QLocalSocket::bytesAvailable(QLocalSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_bytesAvailable()); -} - -qint64 PythonQtWrapper_QLocalSocket::bytesToWrite(QLocalSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_bytesToWrite()); -} - -bool PythonQtWrapper_QLocalSocket::canReadLine(QLocalSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_canReadLine()); -} - -void PythonQtWrapper_QLocalSocket::close(QLocalSocket* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_close()); -} - -void PythonQtWrapper_QLocalSocket::connectToServer(QLocalSocket* theWrappedObject, const QString& name, QIODevice::OpenMode openMode) -{ - ( theWrappedObject->connectToServer(name, openMode)); -} - -void PythonQtWrapper_QLocalSocket::disconnectFromServer(QLocalSocket* theWrappedObject) -{ - ( theWrappedObject->disconnectFromServer()); -} - -QLocalSocket::LocalSocketError PythonQtWrapper_QLocalSocket::error(QLocalSocket* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -bool PythonQtWrapper_QLocalSocket::flush(QLocalSocket* theWrappedObject) -{ - return ( theWrappedObject->flush()); -} - -QString PythonQtWrapper_QLocalSocket::fullServerName(QLocalSocket* theWrappedObject) const -{ - return ( theWrappedObject->fullServerName()); -} - -bool PythonQtWrapper_QLocalSocket::isSequential(QLocalSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_isSequential()); -} - -bool PythonQtWrapper_QLocalSocket::isValid(QLocalSocket* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -qint64 PythonQtWrapper_QLocalSocket::readBufferSize(QLocalSocket* theWrappedObject) const -{ - return ( theWrappedObject->readBufferSize()); -} - -qint64 PythonQtWrapper_QLocalSocket::readData(QLocalSocket* theWrappedObject, char* arg__1, qint64 arg__2) -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_readData(arg__1, arg__2)); -} - -QString PythonQtWrapper_QLocalSocket::serverName(QLocalSocket* theWrappedObject) const -{ - return ( theWrappedObject->serverName()); -} - -void PythonQtWrapper_QLocalSocket::setReadBufferSize(QLocalSocket* theWrappedObject, qint64 size) -{ - ( theWrappedObject->setReadBufferSize(size)); -} - -bool PythonQtWrapper_QLocalSocket::setSocketDescriptor(QLocalSocket* theWrappedObject, quintptr socketDescriptor, QLocalSocket::LocalSocketState socketState, QIODevice::OpenMode openMode) -{ - return ( theWrappedObject->setSocketDescriptor(socketDescriptor, socketState, openMode)); -} - -quintptr PythonQtWrapper_QLocalSocket::socketDescriptor(QLocalSocket* theWrappedObject) const -{ - return ( theWrappedObject->socketDescriptor()); -} - -QLocalSocket::LocalSocketState PythonQtWrapper_QLocalSocket::state(QLocalSocket* theWrappedObject) const -{ - return ( theWrappedObject->state()); -} - -bool PythonQtWrapper_QLocalSocket::waitForBytesWritten(QLocalSocket* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); -} - -bool PythonQtWrapper_QLocalSocket::waitForConnected(QLocalSocket* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForConnected(msecs)); -} - -bool PythonQtWrapper_QLocalSocket::waitForDisconnected(QLocalSocket* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForDisconnected(msecs)); -} - -bool PythonQtWrapper_QLocalSocket::waitForReadyRead(QLocalSocket* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_waitForReadyRead(msecs)); -} - -qint64 PythonQtWrapper_QLocalSocket::writeData(QLocalSocket* theWrappedObject, const char* arg__1, qint64 arg__2) -{ - return ( ((PythonQtPublicPromoter_QLocalSocket*)theWrappedObject)->promoted_writeData(arg__1, arg__2)); -} - - - -void PythonQtShell_QNetworkAccessManager::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkAccessManager::childEvent(arg__1); -} -QNetworkReply* PythonQtShell_QNetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createRequest"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QNetworkReply*" , "QNetworkAccessManager::Operation" , "const QNetworkRequest&" , "QIODevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QNetworkReply* returnValue = 0; - void* args[4] = {NULL, (void*)&op, (void*)&request, (void*)&outgoingData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createRequest", methodInfo, result); - } else { - returnValue = *((QNetworkReply**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkAccessManager::createRequest(op, request, outgoingData); -} -void PythonQtShell_QNetworkAccessManager::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkAccessManager::customEvent(arg__1); -} -bool PythonQtShell_QNetworkAccessManager::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkAccessManager::event(arg__1); -} -bool PythonQtShell_QNetworkAccessManager::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkAccessManager::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QNetworkAccessManager::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkAccessManager::timerEvent(arg__1); -} -QNetworkAccessManager* PythonQtWrapper_QNetworkAccessManager::new_QNetworkAccessManager(QObject* parent) -{ -return new PythonQtShell_QNetworkAccessManager(parent); } - -QAbstractNetworkCache* PythonQtWrapper_QNetworkAccessManager::cache(QNetworkAccessManager* theWrappedObject) const -{ - return ( theWrappedObject->cache()); -} - -QNetworkCookieJar* PythonQtWrapper_QNetworkAccessManager::cookieJar(QNetworkAccessManager* theWrappedObject) const -{ - return ( theWrappedObject->cookieJar()); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::createRequest(QNetworkAccessManager* theWrappedObject, QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData) -{ - return ( ((PythonQtPublicPromoter_QNetworkAccessManager*)theWrappedObject)->promoted_createRequest(op, request, outgoingData)); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::deleteResource(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request) -{ - return ( theWrappedObject->deleteResource(request)); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::get(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request) -{ - return ( theWrappedObject->get(request)); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::head(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request) -{ - return ( theWrappedObject->head(request)); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data) -{ - return ( theWrappedObject->post(request, data)); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data) -{ - return ( theWrappedObject->post(request, data)); -} - -QNetworkProxy PythonQtWrapper_QNetworkAccessManager::proxy(QNetworkAccessManager* theWrappedObject) const -{ - return ( theWrappedObject->proxy()); -} - -QNetworkProxyFactory* PythonQtWrapper_QNetworkAccessManager::proxyFactory(QNetworkAccessManager* theWrappedObject) const -{ - return ( theWrappedObject->proxyFactory()); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data) -{ - return ( theWrappedObject->put(request, data)); -} - -QNetworkReply* PythonQtWrapper_QNetworkAccessManager::put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data) -{ - return ( theWrappedObject->put(request, data)); -} - -void PythonQtWrapper_QNetworkAccessManager::setCache(QNetworkAccessManager* theWrappedObject, QAbstractNetworkCache* cache) -{ - ( theWrappedObject->setCache(cache)); -} - -void PythonQtWrapper_QNetworkAccessManager::setCookieJar(QNetworkAccessManager* theWrappedObject, QNetworkCookieJar* cookieJar) -{ - ( theWrappedObject->setCookieJar(cookieJar)); -} - -void PythonQtWrapper_QNetworkAccessManager::setProxy(QNetworkAccessManager* theWrappedObject, const QNetworkProxy& proxy) -{ - ( theWrappedObject->setProxy(proxy)); -} - -void PythonQtWrapper_QNetworkAccessManager::setProxyFactory(QNetworkAccessManager* theWrappedObject, QNetworkProxyFactory* factory) -{ - ( theWrappedObject->setProxyFactory(factory)); -} - - - -QNetworkAddressEntry* PythonQtWrapper_QNetworkAddressEntry::new_QNetworkAddressEntry() -{ -return new QNetworkAddressEntry(); } - -QNetworkAddressEntry* PythonQtWrapper_QNetworkAddressEntry::new_QNetworkAddressEntry(const QNetworkAddressEntry& other) -{ -return new QNetworkAddressEntry(other); } - -QHostAddress PythonQtWrapper_QNetworkAddressEntry::broadcast(QNetworkAddressEntry* theWrappedObject) const -{ - return ( theWrappedObject->broadcast()); -} - -QHostAddress PythonQtWrapper_QNetworkAddressEntry::ip(QNetworkAddressEntry* theWrappedObject) const -{ - return ( theWrappedObject->ip()); -} - -QHostAddress PythonQtWrapper_QNetworkAddressEntry::netmask(QNetworkAddressEntry* theWrappedObject) const -{ - return ( theWrappedObject->netmask()); -} - -bool PythonQtWrapper_QNetworkAddressEntry::__ne__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QNetworkAddressEntry::__eq__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const -{ - return ( (*theWrappedObject)== other); -} - -int PythonQtWrapper_QNetworkAddressEntry::prefixLength(QNetworkAddressEntry* theWrappedObject) const -{ - return ( theWrappedObject->prefixLength()); -} - -void PythonQtWrapper_QNetworkAddressEntry::setBroadcast(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newBroadcast) -{ - ( theWrappedObject->setBroadcast(newBroadcast)); -} - -void PythonQtWrapper_QNetworkAddressEntry::setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp) -{ - ( theWrappedObject->setIp(newIp)); -} - -void PythonQtWrapper_QNetworkAddressEntry::setNetmask(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newNetmask) -{ - ( theWrappedObject->setNetmask(newNetmask)); -} - -void PythonQtWrapper_QNetworkAddressEntry::setPrefixLength(QNetworkAddressEntry* theWrappedObject, int length) -{ - ( theWrappedObject->setPrefixLength(length)); -} - - - -QNetworkCacheMetaData* PythonQtWrapper_QNetworkCacheMetaData::new_QNetworkCacheMetaData() -{ -return new QNetworkCacheMetaData(); } - -QNetworkCacheMetaData* PythonQtWrapper_QNetworkCacheMetaData::new_QNetworkCacheMetaData(const QNetworkCacheMetaData& other) -{ -return new QNetworkCacheMetaData(other); } - -QHash PythonQtWrapper_QNetworkCacheMetaData::attributes(QNetworkCacheMetaData* theWrappedObject) const -{ - return ( theWrappedObject->attributes()); -} - -QDateTime PythonQtWrapper_QNetworkCacheMetaData::expirationDate(QNetworkCacheMetaData* theWrappedObject) const -{ - return ( theWrappedObject->expirationDate()); -} - -bool PythonQtWrapper_QNetworkCacheMetaData::isValid(QNetworkCacheMetaData* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QDateTime PythonQtWrapper_QNetworkCacheMetaData::lastModified(QNetworkCacheMetaData* theWrappedObject) const -{ - return ( theWrappedObject->lastModified()); -} - -bool PythonQtWrapper_QNetworkCacheMetaData::__ne__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const -{ - return ( (*theWrappedObject)!= other); -} - -void PythonQtWrapper_QNetworkCacheMetaData::writeTo(QNetworkCacheMetaData* theWrappedObject, QDataStream& arg__1) -{ - arg__1 << (*theWrappedObject); -} - -bool PythonQtWrapper_QNetworkCacheMetaData::__eq__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const -{ - return ( (*theWrappedObject)== other); -} - -void PythonQtWrapper_QNetworkCacheMetaData::readFrom(QNetworkCacheMetaData* theWrappedObject, QDataStream& arg__1) -{ - arg__1 >> (*theWrappedObject); -} - -QList > PythonQtWrapper_QNetworkCacheMetaData::rawHeaders(QNetworkCacheMetaData* theWrappedObject) const -{ - return ( theWrappedObject->rawHeaders()); -} - -bool PythonQtWrapper_QNetworkCacheMetaData::saveToDisk(QNetworkCacheMetaData* theWrappedObject) const -{ - return ( theWrappedObject->saveToDisk()); -} - -void PythonQtWrapper_QNetworkCacheMetaData::setAttributes(QNetworkCacheMetaData* theWrappedObject, const QHash& attributes) -{ - ( theWrappedObject->setAttributes(attributes)); -} - -void PythonQtWrapper_QNetworkCacheMetaData::setExpirationDate(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime) -{ - ( theWrappedObject->setExpirationDate(dateTime)); -} - -void PythonQtWrapper_QNetworkCacheMetaData::setLastModified(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime) -{ - ( theWrappedObject->setLastModified(dateTime)); -} - -void PythonQtWrapper_QNetworkCacheMetaData::setRawHeaders(QNetworkCacheMetaData* theWrappedObject, const QList >& headers) -{ - ( theWrappedObject->setRawHeaders(headers)); -} - -void PythonQtWrapper_QNetworkCacheMetaData::setSaveToDisk(QNetworkCacheMetaData* theWrappedObject, bool allow) -{ - ( theWrappedObject->setSaveToDisk(allow)); -} - -void PythonQtWrapper_QNetworkCacheMetaData::setUrl(QNetworkCacheMetaData* theWrappedObject, const QUrl& url) -{ - ( theWrappedObject->setUrl(url)); -} - -QUrl PythonQtWrapper_QNetworkCacheMetaData::url(QNetworkCacheMetaData* theWrappedObject) const -{ - return ( theWrappedObject->url()); -} - - - -QNetworkCookie* PythonQtWrapper_QNetworkCookie::new_QNetworkCookie(const QByteArray& name, const QByteArray& value) -{ -return new QNetworkCookie(name, value); } - -QNetworkCookie* PythonQtWrapper_QNetworkCookie::new_QNetworkCookie(const QNetworkCookie& other) -{ -return new QNetworkCookie(other); } - -QString PythonQtWrapper_QNetworkCookie::domain(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->domain()); -} - -QDateTime PythonQtWrapper_QNetworkCookie::expirationDate(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->expirationDate()); -} - -bool PythonQtWrapper_QNetworkCookie::isHttpOnly(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->isHttpOnly()); -} - -bool PythonQtWrapper_QNetworkCookie::isSecure(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->isSecure()); -} - -bool PythonQtWrapper_QNetworkCookie::isSessionCookie(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->isSessionCookie()); -} - -QByteArray PythonQtWrapper_QNetworkCookie::name(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - -bool PythonQtWrapper_QNetworkCookie::__ne__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QNetworkCookie::__eq__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const -{ - return ( (*theWrappedObject)== other); -} - -QList PythonQtWrapper_QNetworkCookie::static_QNetworkCookie_parseCookies(const QByteArray& cookieString) -{ - return (QNetworkCookie::parseCookies(cookieString)); -} - -QString PythonQtWrapper_QNetworkCookie::path(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->path()); -} - -void PythonQtWrapper_QNetworkCookie::setDomain(QNetworkCookie* theWrappedObject, const QString& domain) -{ - ( theWrappedObject->setDomain(domain)); -} - -void PythonQtWrapper_QNetworkCookie::setExpirationDate(QNetworkCookie* theWrappedObject, const QDateTime& date) -{ - ( theWrappedObject->setExpirationDate(date)); -} - -void PythonQtWrapper_QNetworkCookie::setHttpOnly(QNetworkCookie* theWrappedObject, bool enable) -{ - ( theWrappedObject->setHttpOnly(enable)); -} - -void PythonQtWrapper_QNetworkCookie::setName(QNetworkCookie* theWrappedObject, const QByteArray& cookieName) -{ - ( theWrappedObject->setName(cookieName)); -} - -void PythonQtWrapper_QNetworkCookie::setPath(QNetworkCookie* theWrappedObject, const QString& path) -{ - ( theWrappedObject->setPath(path)); -} - -void PythonQtWrapper_QNetworkCookie::setSecure(QNetworkCookie* theWrappedObject, bool enable) -{ - ( theWrappedObject->setSecure(enable)); -} - -void PythonQtWrapper_QNetworkCookie::setValue(QNetworkCookie* theWrappedObject, const QByteArray& value) -{ - ( theWrappedObject->setValue(value)); -} - -QByteArray PythonQtWrapper_QNetworkCookie::toRawForm(QNetworkCookie* theWrappedObject, QNetworkCookie::RawForm form) const -{ - return ( theWrappedObject->toRawForm(form)); -} - -QByteArray PythonQtWrapper_QNetworkCookie::value(QNetworkCookie* theWrappedObject) const -{ - return ( theWrappedObject->value()); -} - -QString PythonQtWrapper_QNetworkCookie::py_toString(QNetworkCookie* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -void PythonQtShell_QNetworkCookieJar::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkCookieJar::childEvent(arg__1); -} -QList PythonQtShell_QNetworkCookieJar::cookiesForUrl(const QUrl& url) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cookiesForUrl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("cookiesForUrl", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkCookieJar::cookiesForUrl(url); -} -void PythonQtShell_QNetworkCookieJar::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkCookieJar::customEvent(arg__1); -} -bool PythonQtShell_QNetworkCookieJar::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkCookieJar::event(arg__1); -} -bool PythonQtShell_QNetworkCookieJar::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkCookieJar::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QNetworkCookieJar::setCookiesFromUrl(const QList& cookieList, const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setCookiesFromUrl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QList&" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&cookieList, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setCookiesFromUrl", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkCookieJar::setCookiesFromUrl(cookieList, url); -} -void PythonQtShell_QNetworkCookieJar::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkCookieJar::timerEvent(arg__1); -} -QNetworkCookieJar* PythonQtWrapper_QNetworkCookieJar::new_QNetworkCookieJar(QObject* parent) -{ -return new PythonQtShell_QNetworkCookieJar(parent); } - -QList PythonQtWrapper_QNetworkCookieJar::cookiesForUrl(QNetworkCookieJar* theWrappedObject, const QUrl& url) const -{ - return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_cookiesForUrl(url)); -} - -bool PythonQtWrapper_QNetworkCookieJar::setCookiesFromUrl(QNetworkCookieJar* theWrappedObject, const QList& cookieList, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_QNetworkCookieJar*)theWrappedObject)->promoted_setCookiesFromUrl(cookieList, url)); -} - - - -qint64 PythonQtShell_QNetworkDiskCache::cacheSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cacheSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("cacheSize", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::cacheSize(); -} -void PythonQtShell_QNetworkDiskCache::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkDiskCache::childEvent(arg__1); -} -void PythonQtShell_QNetworkDiskCache::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkDiskCache::clear(); -} -void PythonQtShell_QNetworkDiskCache::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkDiskCache::customEvent(arg__1); -} -QIODevice* PythonQtShell_QNetworkDiskCache::data(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QIODevice**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::data(url); -} -bool PythonQtShell_QNetworkDiskCache::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::event(arg__1); -} -bool PythonQtShell_QNetworkDiskCache::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::eventFilter(arg__1, arg__2); -} -qint64 PythonQtShell_QNetworkDiskCache::expire() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "expire"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("expire", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::expire(); -} -void PythonQtShell_QNetworkDiskCache::insert(QIODevice* device) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QIODevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&device}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkDiskCache::insert(device); -} -QNetworkCacheMetaData PythonQtShell_QNetworkDiskCache::metaData(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metaData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QNetworkCacheMetaData" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QNetworkCacheMetaData returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metaData", methodInfo, result); - } else { - returnValue = *((QNetworkCacheMetaData*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::metaData(url); -} -QIODevice* PythonQtShell_QNetworkDiskCache::prepare(const QNetworkCacheMetaData& metaData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "prepare"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("prepare", methodInfo, result); - } else { - returnValue = *((QIODevice**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::prepare(metaData); -} -bool PythonQtShell_QNetworkDiskCache::remove(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "remove"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("remove", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkDiskCache::remove(url); -} -void PythonQtShell_QNetworkDiskCache::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkDiskCache::timerEvent(arg__1); -} -void PythonQtShell_QNetworkDiskCache::updateMetaData(const QNetworkCacheMetaData& metaData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateMetaData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkDiskCache::updateMetaData(metaData); -} -QNetworkDiskCache* PythonQtWrapper_QNetworkDiskCache::new_QNetworkDiskCache(QObject* parent) -{ -return new PythonQtShell_QNetworkDiskCache(parent); } - -QString PythonQtWrapper_QNetworkDiskCache::cacheDirectory(QNetworkDiskCache* theWrappedObject) const -{ - return ( theWrappedObject->cacheDirectory()); -} - -qint64 PythonQtWrapper_QNetworkDiskCache::cacheSize(QNetworkDiskCache* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_cacheSize()); -} - -QIODevice* PythonQtWrapper_QNetworkDiskCache::data(QNetworkDiskCache* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_data(url)); -} - -qint64 PythonQtWrapper_QNetworkDiskCache::expire(QNetworkDiskCache* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_expire()); -} - -QNetworkCacheMetaData PythonQtWrapper_QNetworkDiskCache::fileMetaData(QNetworkDiskCache* theWrappedObject, const QString& fileName) const -{ - return ( theWrappedObject->fileMetaData(fileName)); -} - -void PythonQtWrapper_QNetworkDiskCache::insert(QNetworkDiskCache* theWrappedObject, QIODevice* device) -{ - ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_insert(device)); -} - -qint64 PythonQtWrapper_QNetworkDiskCache::maximumCacheSize(QNetworkDiskCache* theWrappedObject) const -{ - return ( theWrappedObject->maximumCacheSize()); -} - -QNetworkCacheMetaData PythonQtWrapper_QNetworkDiskCache::metaData(QNetworkDiskCache* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_metaData(url)); -} - -QIODevice* PythonQtWrapper_QNetworkDiskCache::prepare(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData) -{ - return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_prepare(metaData)); -} - -bool PythonQtWrapper_QNetworkDiskCache::remove(QNetworkDiskCache* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_remove(url)); -} - -void PythonQtWrapper_QNetworkDiskCache::setCacheDirectory(QNetworkDiskCache* theWrappedObject, const QString& cacheDir) -{ - ( theWrappedObject->setCacheDirectory(cacheDir)); -} - -void PythonQtWrapper_QNetworkDiskCache::setMaximumCacheSize(QNetworkDiskCache* theWrappedObject, qint64 size) -{ - ( theWrappedObject->setMaximumCacheSize(size)); -} - -void PythonQtWrapper_QNetworkDiskCache::updateMetaData(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData) -{ - ( ((PythonQtPublicPromoter_QNetworkDiskCache*)theWrappedObject)->promoted_updateMetaData(metaData)); -} - - - -QNetworkInterface* PythonQtWrapper_QNetworkInterface::new_QNetworkInterface() -{ -return new QNetworkInterface(); } - -QNetworkInterface* PythonQtWrapper_QNetworkInterface::new_QNetworkInterface(const QNetworkInterface& other) -{ -return new QNetworkInterface(other); } - -QList PythonQtWrapper_QNetworkInterface::addressEntries(QNetworkInterface* theWrappedObject) const -{ - return ( theWrappedObject->addressEntries()); -} - -QList PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_allAddresses() -{ - return (QNetworkInterface::allAddresses()); -} - -QList PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_allInterfaces() -{ - return (QNetworkInterface::allInterfaces()); -} - -QNetworkInterface::InterfaceFlags PythonQtWrapper_QNetworkInterface::flags(QNetworkInterface* theWrappedObject) const -{ - return ( theWrappedObject->flags()); -} - -QString PythonQtWrapper_QNetworkInterface::hardwareAddress(QNetworkInterface* theWrappedObject) const -{ - return ( theWrappedObject->hardwareAddress()); -} - -QString PythonQtWrapper_QNetworkInterface::humanReadableName(QNetworkInterface* theWrappedObject) const -{ - return ( theWrappedObject->humanReadableName()); -} - -int PythonQtWrapper_QNetworkInterface::index(QNetworkInterface* theWrappedObject) const -{ - return ( theWrappedObject->index()); -} - -QNetworkInterface PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_interfaceFromIndex(int index) -{ - return (QNetworkInterface::interfaceFromIndex(index)); -} - -QNetworkInterface PythonQtWrapper_QNetworkInterface::static_QNetworkInterface_interfaceFromName(const QString& name) -{ - return (QNetworkInterface::interfaceFromName(name)); -} - -bool PythonQtWrapper_QNetworkInterface::isValid(QNetworkInterface* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -QString PythonQtWrapper_QNetworkInterface::name(QNetworkInterface* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - -QString PythonQtWrapper_QNetworkInterface::py_toString(QNetworkInterface* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -QNetworkProxy* PythonQtWrapper_QNetworkProxy::new_QNetworkProxy() -{ -return new QNetworkProxy(); } - -QNetworkProxy* PythonQtWrapper_QNetworkProxy::new_QNetworkProxy(QNetworkProxy::ProxyType type, const QString& hostName, unsigned short port, const QString& user, const QString& password) -{ -return new QNetworkProxy(type, hostName, port, user, password); } - -QNetworkProxy* PythonQtWrapper_QNetworkProxy::new_QNetworkProxy(const QNetworkProxy& other) -{ -return new QNetworkProxy(other); } - -QNetworkProxy PythonQtWrapper_QNetworkProxy::static_QNetworkProxy_applicationProxy() -{ - return (QNetworkProxy::applicationProxy()); -} - -QNetworkProxy::Capabilities PythonQtWrapper_QNetworkProxy::capabilities(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->capabilities()); -} - -QString PythonQtWrapper_QNetworkProxy::hostName(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->hostName()); -} - -bool PythonQtWrapper_QNetworkProxy::isCachingProxy(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->isCachingProxy()); -} - -bool PythonQtWrapper_QNetworkProxy::isTransparentProxy(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->isTransparentProxy()); -} - -bool PythonQtWrapper_QNetworkProxy::__ne__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QNetworkProxy::__eq__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const -{ - return ( (*theWrappedObject)== other); -} - -QString PythonQtWrapper_QNetworkProxy::password(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->password()); -} - -unsigned short PythonQtWrapper_QNetworkProxy::port(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->port()); -} - -void PythonQtWrapper_QNetworkProxy::static_QNetworkProxy_setApplicationProxy(const QNetworkProxy& proxy) -{ - (QNetworkProxy::setApplicationProxy(proxy)); -} - -void PythonQtWrapper_QNetworkProxy::setCapabilities(QNetworkProxy* theWrappedObject, QNetworkProxy::Capabilities capab) -{ - ( theWrappedObject->setCapabilities(capab)); -} - -void PythonQtWrapper_QNetworkProxy::setHostName(QNetworkProxy* theWrappedObject, const QString& hostName) -{ - ( theWrappedObject->setHostName(hostName)); -} - -void PythonQtWrapper_QNetworkProxy::setPassword(QNetworkProxy* theWrappedObject, const QString& password) -{ - ( theWrappedObject->setPassword(password)); -} - -void PythonQtWrapper_QNetworkProxy::setPort(QNetworkProxy* theWrappedObject, unsigned short port) -{ - ( theWrappedObject->setPort(port)); -} - -void PythonQtWrapper_QNetworkProxy::setType(QNetworkProxy* theWrappedObject, QNetworkProxy::ProxyType type) -{ - ( theWrappedObject->setType(type)); -} - -void PythonQtWrapper_QNetworkProxy::setUser(QNetworkProxy* theWrappedObject, const QString& userName) -{ - ( theWrappedObject->setUser(userName)); -} - -QNetworkProxy::ProxyType PythonQtWrapper_QNetworkProxy::type(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -QString PythonQtWrapper_QNetworkProxy::user(QNetworkProxy* theWrappedObject) const -{ - return ( theWrappedObject->user()); -} - - - -QList PythonQtShell_QNetworkProxyFactory::queryProxy(const QNetworkProxyQuery& query) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "queryProxy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QNetworkProxyQuery&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&query}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("queryProxy", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QNetworkProxyFactory* PythonQtWrapper_QNetworkProxyFactory::new_QNetworkProxyFactory() -{ -return new PythonQtShell_QNetworkProxyFactory(); } - -QList PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_proxyForQuery(const QNetworkProxyQuery& query) -{ - return (QNetworkProxyFactory::proxyForQuery(query)); -} - -void PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_setApplicationProxyFactory(QNetworkProxyFactory* factory) -{ - (QNetworkProxyFactory::setApplicationProxyFactory(factory)); -} - -void PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_setUseSystemConfiguration(bool enable) -{ - (QNetworkProxyFactory::setUseSystemConfiguration(enable)); -} - -QList PythonQtWrapper_QNetworkProxyFactory::static_QNetworkProxyFactory_systemProxyForQuery(const QNetworkProxyQuery& query) -{ - return (QNetworkProxyFactory::systemProxyForQuery(query)); -} - - - -QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery() -{ -return new QNetworkProxyQuery(); } - -QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(const QNetworkProxyQuery& other) -{ -return new QNetworkProxyQuery(other); } - -QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(const QString& hostname, int port, const QString& protocolTag, QNetworkProxyQuery::QueryType queryType) -{ -return new QNetworkProxyQuery(hostname, port, protocolTag, queryType); } - -QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(const QUrl& requestUrl, QNetworkProxyQuery::QueryType queryType) -{ -return new QNetworkProxyQuery(requestUrl, queryType); } - -QNetworkProxyQuery* PythonQtWrapper_QNetworkProxyQuery::new_QNetworkProxyQuery(unsigned short bindPort, const QString& protocolTag, QNetworkProxyQuery::QueryType queryType) -{ -return new QNetworkProxyQuery(bindPort, protocolTag, queryType); } - -int PythonQtWrapper_QNetworkProxyQuery::localPort(QNetworkProxyQuery* theWrappedObject) const -{ - return ( theWrappedObject->localPort()); -} - -bool PythonQtWrapper_QNetworkProxyQuery::__ne__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QNetworkProxyQuery::__eq__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const -{ - return ( (*theWrappedObject)== other); -} - -QString PythonQtWrapper_QNetworkProxyQuery::peerHostName(QNetworkProxyQuery* theWrappedObject) const -{ - return ( theWrappedObject->peerHostName()); -} - -int PythonQtWrapper_QNetworkProxyQuery::peerPort(QNetworkProxyQuery* theWrappedObject) const -{ - return ( theWrappedObject->peerPort()); -} - -QString PythonQtWrapper_QNetworkProxyQuery::protocolTag(QNetworkProxyQuery* theWrappedObject) const -{ - return ( theWrappedObject->protocolTag()); -} - -QNetworkProxyQuery::QueryType PythonQtWrapper_QNetworkProxyQuery::queryType(QNetworkProxyQuery* theWrappedObject) const -{ - return ( theWrappedObject->queryType()); -} - -void PythonQtWrapper_QNetworkProxyQuery::setLocalPort(QNetworkProxyQuery* theWrappedObject, int port) -{ - ( theWrappedObject->setLocalPort(port)); -} - -void PythonQtWrapper_QNetworkProxyQuery::setPeerHostName(QNetworkProxyQuery* theWrappedObject, const QString& hostname) -{ - ( theWrappedObject->setPeerHostName(hostname)); -} - -void PythonQtWrapper_QNetworkProxyQuery::setPeerPort(QNetworkProxyQuery* theWrappedObject, int port) -{ - ( theWrappedObject->setPeerPort(port)); -} - -void PythonQtWrapper_QNetworkProxyQuery::setProtocolTag(QNetworkProxyQuery* theWrappedObject, const QString& protocolTag) -{ - ( theWrappedObject->setProtocolTag(protocolTag)); -} - -void PythonQtWrapper_QNetworkProxyQuery::setQueryType(QNetworkProxyQuery* theWrappedObject, QNetworkProxyQuery::QueryType type) -{ - ( theWrappedObject->setQueryType(type)); -} - -void PythonQtWrapper_QNetworkProxyQuery::setUrl(QNetworkProxyQuery* theWrappedObject, const QUrl& url) -{ - ( theWrappedObject->setUrl(url)); -} - -QUrl PythonQtWrapper_QNetworkProxyQuery::url(QNetworkProxyQuery* theWrappedObject) const -{ - return ( theWrappedObject->url()); -} - - - -void PythonQtShell_QNetworkReply::abort() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "abort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -bool PythonQtShell_QNetworkReply::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::atEnd(); -} -qint64 PythonQtShell_QNetworkReply::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::bytesAvailable(); -} -qint64 PythonQtShell_QNetworkReply::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::bytesToWrite(); -} -bool PythonQtShell_QNetworkReply::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::canReadLine(); -} -void PythonQtShell_QNetworkReply::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkReply::childEvent(arg__1); -} -void PythonQtShell_QNetworkReply::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkReply::close(); -} -void PythonQtShell_QNetworkReply::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkReply::customEvent(arg__1); -} -bool PythonQtShell_QNetworkReply::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::event(arg__1); -} -bool PythonQtShell_QNetworkReply::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::eventFilter(arg__1, arg__2); -} -void PythonQtShell_QNetworkReply::ignoreSslErrors() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ignoreSslErrors"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkReply::ignoreSslErrors(); -} -bool PythonQtShell_QNetworkReply::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::isSequential(); -} -bool PythonQtShell_QNetworkReply::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::open(mode); -} -qint64 PythonQtShell_QNetworkReply::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::pos(); -} -qint64 PythonQtShell_QNetworkReply::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return qint64(); -} -qint64 PythonQtShell_QNetworkReply::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::readLineData(data, maxlen); -} -bool PythonQtShell_QNetworkReply::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::reset(); -} -bool PythonQtShell_QNetworkReply::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::seek(pos); -} -void PythonQtShell_QNetworkReply::setReadBufferSize(qint64 size) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadBufferSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&size}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkReply::setReadBufferSize(size); -} -qint64 PythonQtShell_QNetworkReply::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::size(); -} -void PythonQtShell_QNetworkReply::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QNetworkReply::timerEvent(arg__1); -} -bool PythonQtShell_QNetworkReply::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::waitForBytesWritten(msecs); -} -bool PythonQtShell_QNetworkReply::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QNetworkReply::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QNetworkReply::writeData(data, len); -} -QVariant PythonQtWrapper_QNetworkReply::attribute(QNetworkReply* theWrappedObject, QNetworkRequest::Attribute code) const -{ - return ( theWrappedObject->attribute(code)); -} - -void PythonQtWrapper_QNetworkReply::close(QNetworkReply* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_close()); -} - -QNetworkReply::NetworkError PythonQtWrapper_QNetworkReply::error(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->error()); -} - -bool PythonQtWrapper_QNetworkReply::hasRawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const -{ - return ( theWrappedObject->hasRawHeader(headerName)); -} - -QVariant PythonQtWrapper_QNetworkReply::header(QNetworkReply* theWrappedObject, QNetworkRequest::KnownHeaders header) const -{ - return ( theWrappedObject->header(header)); -} - -bool PythonQtWrapper_QNetworkReply::isFinished(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->isFinished()); -} - -bool PythonQtWrapper_QNetworkReply::isRunning(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->isRunning()); -} - -bool PythonQtWrapper_QNetworkReply::isSequential(QNetworkReply* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_isSequential()); -} - -QNetworkAccessManager* PythonQtWrapper_QNetworkReply::manager(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->manager()); -} - -QNetworkAccessManager::Operation PythonQtWrapper_QNetworkReply::operation(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->operation()); -} - -QByteArray PythonQtWrapper_QNetworkReply::rawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const -{ - return ( theWrappedObject->rawHeader(headerName)); -} - -QList PythonQtWrapper_QNetworkReply::rawHeaderList(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->rawHeaderList()); -} - -qint64 PythonQtWrapper_QNetworkReply::readBufferSize(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->readBufferSize()); -} - -QNetworkRequest PythonQtWrapper_QNetworkReply::request(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->request()); -} - -void PythonQtWrapper_QNetworkReply::setReadBufferSize(QNetworkReply* theWrappedObject, qint64 size) -{ - ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_setReadBufferSize(size)); -} - -QUrl PythonQtWrapper_QNetworkReply::url(QNetworkReply* theWrappedObject) const -{ - return ( theWrappedObject->url()); -} - -qint64 PythonQtWrapper_QNetworkReply::writeData(QNetworkReply* theWrappedObject, const char* data, qint64 len) -{ - return ( ((PythonQtPublicPromoter_QNetworkReply*)theWrappedObject)->promoted_writeData(data, len)); -} - - - -QNetworkRequest* PythonQtWrapper_QNetworkRequest::new_QNetworkRequest(const QNetworkRequest& other) -{ -return new QNetworkRequest(other); } - -QNetworkRequest* PythonQtWrapper_QNetworkRequest::new_QNetworkRequest(const QUrl& url) -{ -return new QNetworkRequest(url); } - -QVariant PythonQtWrapper_QNetworkRequest::attribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& defaultValue) const -{ - return ( theWrappedObject->attribute(code, defaultValue)); -} - -bool PythonQtWrapper_QNetworkRequest::hasRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const -{ - return ( theWrappedObject->hasRawHeader(headerName)); -} - -QVariant PythonQtWrapper_QNetworkRequest::header(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header) const -{ - return ( theWrappedObject->header(header)); -} - -bool PythonQtWrapper_QNetworkRequest::__ne__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const -{ - return ( (*theWrappedObject)!= other); -} - -bool PythonQtWrapper_QNetworkRequest::__eq__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const -{ - return ( (*theWrappedObject)== other); -} - -QObject* PythonQtWrapper_QNetworkRequest::originatingObject(QNetworkRequest* theWrappedObject) const -{ - return ( theWrappedObject->originatingObject()); -} - -QByteArray PythonQtWrapper_QNetworkRequest::rawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const -{ - return ( theWrappedObject->rawHeader(headerName)); -} - -QList PythonQtWrapper_QNetworkRequest::rawHeaderList(QNetworkRequest* theWrappedObject) const -{ - return ( theWrappedObject->rawHeaderList()); -} - -void PythonQtWrapper_QNetworkRequest::setAttribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& value) -{ - ( theWrappedObject->setAttribute(code, value)); -} - -void PythonQtWrapper_QNetworkRequest::setHeader(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header, const QVariant& value) -{ - ( theWrappedObject->setHeader(header, value)); -} - -void PythonQtWrapper_QNetworkRequest::setOriginatingObject(QNetworkRequest* theWrappedObject, QObject* object) -{ - ( theWrappedObject->setOriginatingObject(object)); -} - -void PythonQtWrapper_QNetworkRequest::setRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName, const QByteArray& value) -{ - ( theWrappedObject->setRawHeader(headerName, value)); -} - -void PythonQtWrapper_QNetworkRequest::setUrl(QNetworkRequest* theWrappedObject, const QUrl& url) -{ - ( theWrappedObject->setUrl(url)); -} - -QUrl PythonQtWrapper_QNetworkRequest::url(QNetworkRequest* theWrappedObject) const -{ - return ( theWrappedObject->url()); -} - - - - - -void PythonQtShell_QTcpServer::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpServer::childEvent(arg__1); -} -void PythonQtShell_QTcpServer::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpServer::customEvent(arg__1); -} -bool PythonQtShell_QTcpServer::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpServer::event(arg__1); -} -bool PythonQtShell_QTcpServer::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpServer::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QTcpServer::hasPendingConnections() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasPendingConnections"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("hasPendingConnections", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpServer::hasPendingConnections(); -} -void PythonQtShell_QTcpServer::incomingConnection(int handle) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "incomingConnection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&handle}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpServer::incomingConnection(handle); -} -QTcpSocket* PythonQtShell_QTcpServer::nextPendingConnection() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextPendingConnection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTcpSocket*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QTcpSocket* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("nextPendingConnection", methodInfo, result); - } else { - returnValue = *((QTcpSocket**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpServer::nextPendingConnection(); -} -void PythonQtShell_QTcpServer::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpServer::timerEvent(arg__1); -} -QTcpServer* PythonQtWrapper_QTcpServer::new_QTcpServer(QObject* parent) -{ -return new PythonQtShell_QTcpServer(parent); } - -void PythonQtWrapper_QTcpServer::close(QTcpServer* theWrappedObject) -{ - ( theWrappedObject->close()); -} - -QString PythonQtWrapper_QTcpServer::errorString(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->errorString()); -} - -bool PythonQtWrapper_QTcpServer::hasPendingConnections(QTcpServer* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_hasPendingConnections()); -} - -void PythonQtWrapper_QTcpServer::incomingConnection(QTcpServer* theWrappedObject, int handle) -{ - ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_incomingConnection(handle)); -} - -bool PythonQtWrapper_QTcpServer::isListening(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->isListening()); -} - -bool PythonQtWrapper_QTcpServer::listen(QTcpServer* theWrappedObject, const QHostAddress& address, unsigned short port) -{ - return ( theWrappedObject->listen(address, port)); -} - -int PythonQtWrapper_QTcpServer::maxPendingConnections(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->maxPendingConnections()); -} - -QTcpSocket* PythonQtWrapper_QTcpServer::nextPendingConnection(QTcpServer* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_nextPendingConnection()); -} - -QNetworkProxy PythonQtWrapper_QTcpServer::proxy(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->proxy()); -} - -QHostAddress PythonQtWrapper_QTcpServer::serverAddress(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->serverAddress()); -} - -QAbstractSocket::SocketError PythonQtWrapper_QTcpServer::serverError(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->serverError()); -} - -unsigned short PythonQtWrapper_QTcpServer::serverPort(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->serverPort()); -} - -void PythonQtWrapper_QTcpServer::setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections) -{ - ( theWrappedObject->setMaxPendingConnections(numConnections)); -} - -void PythonQtWrapper_QTcpServer::setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy) -{ - ( theWrappedObject->setProxy(networkProxy)); -} - -bool PythonQtWrapper_QTcpServer::setSocketDescriptor(QTcpServer* theWrappedObject, int socketDescriptor) -{ - return ( theWrappedObject->setSocketDescriptor(socketDescriptor)); -} - -int PythonQtWrapper_QTcpServer::socketDescriptor(QTcpServer* theWrappedObject) const -{ - return ( theWrappedObject->socketDescriptor()); -} - -bool PythonQtWrapper_QTcpServer::waitForNewConnection(QTcpServer* theWrappedObject, int msec, bool* timedOut) -{ - return ( theWrappedObject->waitForNewConnection(msec, timedOut)); -} - - - -bool PythonQtShell_QTcpSocket::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::atEnd(); -} -qint64 PythonQtShell_QTcpSocket::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::bytesAvailable(); -} -qint64 PythonQtShell_QTcpSocket::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::bytesToWrite(); -} -bool PythonQtShell_QTcpSocket::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::canReadLine(); -} -void PythonQtShell_QTcpSocket::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpSocket::childEvent(arg__1); -} -void PythonQtShell_QTcpSocket::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpSocket::close(); -} -void PythonQtShell_QTcpSocket::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpSocket::customEvent(arg__1); -} -bool PythonQtShell_QTcpSocket::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::event(arg__1); -} -bool PythonQtShell_QTcpSocket::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QTcpSocket::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::isSequential(); -} -bool PythonQtShell_QTcpSocket::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::open(mode); -} -qint64 PythonQtShell_QTcpSocket::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::pos(); -} -qint64 PythonQtShell_QTcpSocket::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::readData(data, maxlen); -} -qint64 PythonQtShell_QTcpSocket::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::readLineData(data, maxlen); -} -bool PythonQtShell_QTcpSocket::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::reset(); -} -bool PythonQtShell_QTcpSocket::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::seek(pos); -} -qint64 PythonQtShell_QTcpSocket::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::size(); -} -void PythonQtShell_QTcpSocket::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QTcpSocket::timerEvent(arg__1); -} -bool PythonQtShell_QTcpSocket::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::waitForBytesWritten(msecs); -} -bool PythonQtShell_QTcpSocket::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QTcpSocket::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QTcpSocket::writeData(data, len); -} -QTcpSocket* PythonQtWrapper_QTcpSocket::new_QTcpSocket(QObject* parent) -{ -return new PythonQtShell_QTcpSocket(parent); } - - - -bool PythonQtShell_QUdpSocket::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::atEnd(); -} -qint64 PythonQtShell_QUdpSocket::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::bytesAvailable(); -} -qint64 PythonQtShell_QUdpSocket::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::bytesToWrite(); -} -bool PythonQtShell_QUdpSocket::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::canReadLine(); -} -void PythonQtShell_QUdpSocket::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUdpSocket::childEvent(arg__1); -} -void PythonQtShell_QUdpSocket::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUdpSocket::close(); -} -void PythonQtShell_QUdpSocket::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUdpSocket::customEvent(arg__1); -} -bool PythonQtShell_QUdpSocket::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::event(arg__1); -} -bool PythonQtShell_QUdpSocket::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::eventFilter(arg__1, arg__2); -} -bool PythonQtShell_QUdpSocket::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::isSequential(); -} -bool PythonQtShell_QUdpSocket::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::open(mode); -} -qint64 PythonQtShell_QUdpSocket::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::pos(); -} -qint64 PythonQtShell_QUdpSocket::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::readData(data, maxlen); -} -qint64 PythonQtShell_QUdpSocket::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::readLineData(data, maxlen); -} -bool PythonQtShell_QUdpSocket::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::reset(); -} -bool PythonQtShell_QUdpSocket::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::seek(pos); -} -qint64 PythonQtShell_QUdpSocket::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::size(); -} -void PythonQtShell_QUdpSocket::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUdpSocket::timerEvent(arg__1); -} -bool PythonQtShell_QUdpSocket::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::waitForBytesWritten(msecs); -} -bool PythonQtShell_QUdpSocket::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QUdpSocket::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QUdpSocket::writeData(data, len); -} -QUdpSocket* PythonQtWrapper_QUdpSocket::new_QUdpSocket(QObject* parent) -{ -return new PythonQtShell_QUdpSocket(parent); } - -bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port) -{ - return ( theWrappedObject->bind(address, port)); -} - -bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QUdpSocket::BindMode mode) -{ - return ( theWrappedObject->bind(address, port, mode)); -} - -bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, unsigned short port) -{ - return ( theWrappedObject->bind(port)); -} - -bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, unsigned short port, QUdpSocket::BindMode mode) -{ - return ( theWrappedObject->bind(port, mode)); -} - -bool PythonQtWrapper_QUdpSocket::hasPendingDatagrams(QUdpSocket* theWrappedObject) const -{ - return ( theWrappedObject->hasPendingDatagrams()); -} - -qint64 PythonQtWrapper_QUdpSocket::pendingDatagramSize(QUdpSocket* theWrappedObject) const -{ - return ( theWrappedObject->pendingDatagramSize()); -} - -qint64 PythonQtWrapper_QUdpSocket::readDatagram(QUdpSocket* theWrappedObject, char* data, qint64 maxlen, QHostAddress* host, unsigned short* port) -{ - return ( theWrappedObject->readDatagram(data, maxlen, host, port)); -} - -qint64 PythonQtWrapper_QUdpSocket::writeDatagram(QUdpSocket* theWrappedObject, const QByteArray& datagram, const QHostAddress& host, unsigned short port) -{ - return ( theWrappedObject->writeDatagram(datagram, host, port)); -} - - - -void PythonQtShell_QUrlInfo::setDir(bool b) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDir"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&b}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setDir(b); -} -void PythonQtShell_QUrlInfo::setFile(bool b) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&b}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setFile(b); -} -void PythonQtShell_QUrlInfo::setGroup(const QString& s) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGroup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&s}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setGroup(s); -} -void PythonQtShell_QUrlInfo::setLastModified(const QDateTime& dt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLastModified"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QDateTime&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&dt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setLastModified(dt); -} -void PythonQtShell_QUrlInfo::setName(const QString& name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setName(name); -} -void PythonQtShell_QUrlInfo::setOwner(const QString& s) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setOwner"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&s}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setOwner(s); -} -void PythonQtShell_QUrlInfo::setPermissions(int p) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setPermissions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&p}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setPermissions(p); -} -void PythonQtShell_QUrlInfo::setReadable(bool b) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&b}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setReadable(b); -} -void PythonQtShell_QUrlInfo::setSize(qint64 size) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&size}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setSize(size); -} -void PythonQtShell_QUrlInfo::setSymLink(bool b) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSymLink"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&b}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setSymLink(b); -} -void PythonQtShell_QUrlInfo::setWritable(bool b) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setWritable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&b}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QUrlInfo::setWritable(b); -} -QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo() -{ -return new PythonQtShell_QUrlInfo(); } - -QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) -{ -return new PythonQtShell_QUrlInfo(name, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable); } - -QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) -{ -return new PythonQtShell_QUrlInfo(url, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable); } - -QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QUrlInfo& ui) -{ -return new PythonQtShell_QUrlInfo(ui); } - -bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_equal(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) -{ - return (QUrlInfo::equal(i1, i2, sortBy)); -} - -bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_greaterThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) -{ - return (QUrlInfo::greaterThan(i1, i2, sortBy)); -} - -QString PythonQtWrapper_QUrlInfo::group(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->group()); -} - -bool PythonQtWrapper_QUrlInfo::isDir(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->isDir()); -} - -bool PythonQtWrapper_QUrlInfo::isExecutable(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->isExecutable()); -} - -bool PythonQtWrapper_QUrlInfo::isFile(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->isFile()); -} - -bool PythonQtWrapper_QUrlInfo::isReadable(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->isReadable()); -} - -bool PythonQtWrapper_QUrlInfo::isSymLink(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->isSymLink()); -} - -bool PythonQtWrapper_QUrlInfo::isValid(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->isValid()); -} - -bool PythonQtWrapper_QUrlInfo::isWritable(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->isWritable()); -} - -QDateTime PythonQtWrapper_QUrlInfo::lastModified(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->lastModified()); -} - -QDateTime PythonQtWrapper_QUrlInfo::lastRead(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->lastRead()); -} - -bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_lessThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) -{ - return (QUrlInfo::lessThan(i1, i2, sortBy)); -} - -QString PythonQtWrapper_QUrlInfo::name(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - -bool PythonQtWrapper_QUrlInfo::__ne__(QUrlInfo* theWrappedObject, const QUrlInfo& i) const -{ - return ( (*theWrappedObject)!= i); -} - -bool PythonQtWrapper_QUrlInfo::__eq__(QUrlInfo* theWrappedObject, const QUrlInfo& i) const -{ - return ( (*theWrappedObject)== i); -} - -QString PythonQtWrapper_QUrlInfo::owner(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->owner()); -} - -int PythonQtWrapper_QUrlInfo::permissions(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->permissions()); -} - -void PythonQtWrapper_QUrlInfo::setDir(QUrlInfo* theWrappedObject, bool b) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setDir(b)); -} - -void PythonQtWrapper_QUrlInfo::setFile(QUrlInfo* theWrappedObject, bool b) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setFile(b)); -} - -void PythonQtWrapper_QUrlInfo::setGroup(QUrlInfo* theWrappedObject, const QString& s) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setGroup(s)); -} - -void PythonQtWrapper_QUrlInfo::setLastModified(QUrlInfo* theWrappedObject, const QDateTime& dt) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setLastModified(dt)); -} - -void PythonQtWrapper_QUrlInfo::setLastRead(QUrlInfo* theWrappedObject, const QDateTime& dt) -{ - ( theWrappedObject->setLastRead(dt)); -} - -void PythonQtWrapper_QUrlInfo::setName(QUrlInfo* theWrappedObject, const QString& name) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setName(name)); -} - -void PythonQtWrapper_QUrlInfo::setOwner(QUrlInfo* theWrappedObject, const QString& s) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setOwner(s)); -} - -void PythonQtWrapper_QUrlInfo::setPermissions(QUrlInfo* theWrappedObject, int p) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setPermissions(p)); -} - -void PythonQtWrapper_QUrlInfo::setReadable(QUrlInfo* theWrappedObject, bool b) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setReadable(b)); -} - -void PythonQtWrapper_QUrlInfo::setSize(QUrlInfo* theWrappedObject, qint64 size) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setSize(size)); -} - -void PythonQtWrapper_QUrlInfo::setSymLink(QUrlInfo* theWrappedObject, bool b) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setSymLink(b)); -} - -void PythonQtWrapper_QUrlInfo::setWritable(QUrlInfo* theWrappedObject, bool b) -{ - ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setWritable(b)); -} - -qint64 PythonQtWrapper_QUrlInfo::size(QUrlInfo* theWrappedObject) const -{ - return ( theWrappedObject->size()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.h deleted file mode 100644 index cfc85ea5d..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.h +++ /dev/null @@ -1,1424 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtShell_QAbstractNetworkCache : public QAbstractNetworkCache -{ -public: - PythonQtShell_QAbstractNetworkCache(QObject* parent = 0):QAbstractNetworkCache(parent),_wrapper(NULL) {}; - -virtual qint64 cacheSize() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void customEvent(QEvent* arg__1); -virtual QIODevice* data(const QUrl& url); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void insert(QIODevice* device); -virtual QNetworkCacheMetaData metaData(const QUrl& url); -virtual QIODevice* prepare(const QNetworkCacheMetaData& metaData); -virtual bool remove(const QUrl& url); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateMetaData(const QNetworkCacheMetaData& metaData); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QAbstractNetworkCache : public QObject -{ Q_OBJECT -public: -public slots: -void delete_QAbstractNetworkCache(QAbstractNetworkCache* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QAbstractSocket : public QAbstractSocket -{ -public: - PythonQtShell_QAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent):QAbstractSocket(socketType, parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode mode); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 pos); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs = 30000); -virtual bool waitForReadyRead(int msecs = 30000); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QAbstractSocket : public QAbstractSocket -{ public: -inline bool promoted_atEnd() const { return QAbstractSocket::atEnd(); } -inline qint64 promoted_bytesAvailable() const { return QAbstractSocket::bytesAvailable(); } -inline qint64 promoted_bytesToWrite() const { return QAbstractSocket::bytesToWrite(); } -inline bool promoted_canReadLine() const { return QAbstractSocket::canReadLine(); } -inline void promoted_close() { QAbstractSocket::close(); } -inline bool promoted_isSequential() const { return QAbstractSocket::isSequential(); } -inline qint64 promoted_readData(char* data, qint64 maxlen) { return QAbstractSocket::readData(data, maxlen); } -inline qint64 promoted_readLineData(char* data, qint64 maxlen) { return QAbstractSocket::readLineData(data, maxlen); } -inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QAbstractSocket::waitForBytesWritten(msecs); } -inline bool promoted_waitForReadyRead(int msecs = 30000) { return QAbstractSocket::waitForReadyRead(msecs); } -inline qint64 promoted_writeData(const char* data, qint64 len) { return QAbstractSocket::writeData(data, len); } -}; - -class PythonQtWrapper_QAbstractSocket : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SocketType SocketError NetworkLayerProtocol SocketOption SocketState ) -enum SocketType{ - TcpSocket = QAbstractSocket::TcpSocket, UdpSocket = QAbstractSocket::UdpSocket, UnknownSocketType = QAbstractSocket::UnknownSocketType}; -enum SocketError{ - ConnectionRefusedError = QAbstractSocket::ConnectionRefusedError, RemoteHostClosedError = QAbstractSocket::RemoteHostClosedError, HostNotFoundError = QAbstractSocket::HostNotFoundError, SocketAccessError = QAbstractSocket::SocketAccessError, SocketResourceError = QAbstractSocket::SocketResourceError, SocketTimeoutError = QAbstractSocket::SocketTimeoutError, DatagramTooLargeError = QAbstractSocket::DatagramTooLargeError, NetworkError = QAbstractSocket::NetworkError, AddressInUseError = QAbstractSocket::AddressInUseError, SocketAddressNotAvailableError = QAbstractSocket::SocketAddressNotAvailableError, UnsupportedSocketOperationError = QAbstractSocket::UnsupportedSocketOperationError, UnfinishedSocketOperationError = QAbstractSocket::UnfinishedSocketOperationError, ProxyAuthenticationRequiredError = QAbstractSocket::ProxyAuthenticationRequiredError, SslHandshakeFailedError = QAbstractSocket::SslHandshakeFailedError, ProxyConnectionRefusedError = QAbstractSocket::ProxyConnectionRefusedError, ProxyConnectionClosedError = QAbstractSocket::ProxyConnectionClosedError, ProxyConnectionTimeoutError = QAbstractSocket::ProxyConnectionTimeoutError, ProxyNotFoundError = QAbstractSocket::ProxyNotFoundError, ProxyProtocolError = QAbstractSocket::ProxyProtocolError, UnknownSocketError = QAbstractSocket::UnknownSocketError}; -enum NetworkLayerProtocol{ - IPv4Protocol = QAbstractSocket::IPv4Protocol, IPv6Protocol = QAbstractSocket::IPv6Protocol, UnknownNetworkLayerProtocol = QAbstractSocket::UnknownNetworkLayerProtocol}; -enum SocketOption{ - LowDelayOption = QAbstractSocket::LowDelayOption, KeepAliveOption = QAbstractSocket::KeepAliveOption}; -enum SocketState{ - UnconnectedState = QAbstractSocket::UnconnectedState, HostLookupState = QAbstractSocket::HostLookupState, ConnectingState = QAbstractSocket::ConnectingState, ConnectedState = QAbstractSocket::ConnectedState, BoundState = QAbstractSocket::BoundState, ListeningState = QAbstractSocket::ListeningState, ClosingState = QAbstractSocket::ClosingState}; -public slots: -QAbstractSocket* new_QAbstractSocket(QAbstractSocket::SocketType socketType, QObject* parent); -void delete_QAbstractSocket(QAbstractSocket* obj) { delete obj; } - void abort(QAbstractSocket* theWrappedObject); - bool atEnd(QAbstractSocket* theWrappedObject) const; - qint64 bytesAvailable(QAbstractSocket* theWrappedObject) const; - qint64 bytesToWrite(QAbstractSocket* theWrappedObject) const; - bool canReadLine(QAbstractSocket* theWrappedObject) const; - void close(QAbstractSocket* theWrappedObject); - void connectToHost(QAbstractSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite); - void connectToHost(QAbstractSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite); - void disconnectFromHost(QAbstractSocket* theWrappedObject); - QAbstractSocket::SocketError error(QAbstractSocket* theWrappedObject) const; - bool flush(QAbstractSocket* theWrappedObject); - bool isSequential(QAbstractSocket* theWrappedObject) const; - bool isValid(QAbstractSocket* theWrappedObject) const; - QHostAddress localAddress(QAbstractSocket* theWrappedObject) const; - unsigned short localPort(QAbstractSocket* theWrappedObject) const; - QHostAddress peerAddress(QAbstractSocket* theWrappedObject) const; - QString peerName(QAbstractSocket* theWrappedObject) const; - unsigned short peerPort(QAbstractSocket* theWrappedObject) const; - QNetworkProxy proxy(QAbstractSocket* theWrappedObject) const; - qint64 readBufferSize(QAbstractSocket* theWrappedObject) const; - qint64 readData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen); - qint64 readLineData(QAbstractSocket* theWrappedObject, char* data, qint64 maxlen); - void setProxy(QAbstractSocket* theWrappedObject, const QNetworkProxy& networkProxy); - void setReadBufferSize(QAbstractSocket* theWrappedObject, qint64 size); - bool setSocketDescriptor(QAbstractSocket* theWrappedObject, int socketDescriptor, QAbstractSocket::SocketState state = QAbstractSocket::ConnectedState, QIODevice::OpenMode openMode = QIODevice::ReadWrite); - int socketDescriptor(QAbstractSocket* theWrappedObject) const; - QAbstractSocket::SocketType socketType(QAbstractSocket* theWrappedObject) const; - QAbstractSocket::SocketState state(QAbstractSocket* theWrappedObject) const; - bool waitForBytesWritten(QAbstractSocket* theWrappedObject, int msecs = 30000); - bool waitForConnected(QAbstractSocket* theWrappedObject, int msecs = 30000); - bool waitForDisconnected(QAbstractSocket* theWrappedObject, int msecs = 30000); - bool waitForReadyRead(QAbstractSocket* theWrappedObject, int msecs = 30000); - qint64 writeData(QAbstractSocket* theWrappedObject, const char* data, qint64 len); -}; - - - - - -class PythonQtWrapper_QAuthenticator : public QObject -{ Q_OBJECT -public: -public slots: -QAuthenticator* new_QAuthenticator(); -QAuthenticator* new_QAuthenticator(const QAuthenticator& other); -void delete_QAuthenticator(QAuthenticator* obj) { delete obj; } - bool isNull(QAuthenticator* theWrappedObject) const; - bool __ne__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const; - bool __eq__(QAuthenticator* theWrappedObject, const QAuthenticator& other) const; - QString password(QAuthenticator* theWrappedObject) const; - QString realm(QAuthenticator* theWrappedObject) const; - void setPassword(QAuthenticator* theWrappedObject, const QString& password); - void setUser(QAuthenticator* theWrappedObject, const QString& user); - QString user(QAuthenticator* theWrappedObject) const; - bool __nonzero__(QAuthenticator* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtShell_QFtp : public QFtp -{ -public: - PythonQtShell_QFtp(QObject* parent = 0):QFtp(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QFtp : public QObject -{ Q_OBJECT -public: -Q_ENUMS(TransferType Error Command TransferMode State ) -enum TransferType{ - Binary = QFtp::Binary, Ascii = QFtp::Ascii}; -enum Error{ - NoError = QFtp::NoError, UnknownError = QFtp::UnknownError, HostNotFound = QFtp::HostNotFound, ConnectionRefused = QFtp::ConnectionRefused, NotConnected = QFtp::NotConnected}; -enum Command{ - None = QFtp::None, SetTransferMode = QFtp::SetTransferMode, SetProxy = QFtp::SetProxy, ConnectToHost = QFtp::ConnectToHost, Login = QFtp::Login, Close = QFtp::Close, List = QFtp::List, Cd = QFtp::Cd, Get = QFtp::Get, Put = QFtp::Put, Remove = QFtp::Remove, Mkdir = QFtp::Mkdir, Rmdir = QFtp::Rmdir, Rename = QFtp::Rename, RawCommand = QFtp::RawCommand}; -enum TransferMode{ - Active = QFtp::Active, Passive = QFtp::Passive}; -enum State{ - Unconnected = QFtp::Unconnected, HostLookup = QFtp::HostLookup, Connecting = QFtp::Connecting, Connected = QFtp::Connected, LoggedIn = QFtp::LoggedIn, Closing = QFtp::Closing}; -public slots: -QFtp* new_QFtp(QObject* parent = 0); -void delete_QFtp(QFtp* obj) { delete obj; } - qint64 bytesAvailable(QFtp* theWrappedObject) const; - int cd(QFtp* theWrappedObject, const QString& dir); - void clearPendingCommands(QFtp* theWrappedObject); - int close(QFtp* theWrappedObject); - int connectToHost(QFtp* theWrappedObject, const QString& host, unsigned short port = 21); - QFtp::Command currentCommand(QFtp* theWrappedObject) const; - QIODevice* currentDevice(QFtp* theWrappedObject) const; - int currentId(QFtp* theWrappedObject) const; - QFtp::Error error(QFtp* theWrappedObject) const; - QString errorString(QFtp* theWrappedObject) const; - int get(QFtp* theWrappedObject, const QString& file, QIODevice* dev = 0, QFtp::TransferType type = QFtp::Binary); - bool hasPendingCommands(QFtp* theWrappedObject) const; - int list(QFtp* theWrappedObject, const QString& dir = QString()); - int login(QFtp* theWrappedObject, const QString& user = QString(), const QString& password = QString()); - int mkdir(QFtp* theWrappedObject, const QString& dir); - int put(QFtp* theWrappedObject, QIODevice* dev, const QString& file, QFtp::TransferType type = QFtp::Binary); - int put(QFtp* theWrappedObject, const QByteArray& data, const QString& file, QFtp::TransferType type = QFtp::Binary); - int rawCommand(QFtp* theWrappedObject, const QString& command); - qint64 read(QFtp* theWrappedObject, char* data, qint64 maxlen); - QByteArray readAll(QFtp* theWrappedObject); - int remove(QFtp* theWrappedObject, const QString& file); - int rename(QFtp* theWrappedObject, const QString& oldname, const QString& newname); - int rmdir(QFtp* theWrappedObject, const QString& dir); - int setProxy(QFtp* theWrappedObject, const QString& host, unsigned short port); - int setTransferMode(QFtp* theWrappedObject, QFtp::TransferMode mode); - QFtp::State state(QFtp* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QHostAddress : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SpecialAddress ) -enum SpecialAddress{ - Null = QHostAddress::Null, Broadcast = QHostAddress::Broadcast, LocalHost = QHostAddress::LocalHost, LocalHostIPv6 = QHostAddress::LocalHostIPv6, Any = QHostAddress::Any, AnyIPv6 = QHostAddress::AnyIPv6}; -public slots: -QHostAddress* new_QHostAddress(); -QHostAddress* new_QHostAddress(QHostAddress::SpecialAddress address); -QHostAddress* new_QHostAddress(const QHostAddress& copy); -QHostAddress* new_QHostAddress(const QIPv6Address& ip6Addr); -QHostAddress* new_QHostAddress(const QString& address); -QHostAddress* new_QHostAddress(unsigned int ip4Addr); -void delete_QHostAddress(QHostAddress* obj) { delete obj; } - void clear(QHostAddress* theWrappedObject); - bool isInSubnet(QHostAddress* theWrappedObject, const QHostAddress& subnet, int netmask) const; - bool isInSubnet(QHostAddress* theWrappedObject, const QPair& subnet) const; - bool isNull(QHostAddress* theWrappedObject) const; - bool __ne__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const; - bool __ne__(QHostAddress* theWrappedObject, const QHostAddress& address) const; - void writeTo(QHostAddress* theWrappedObject, QDataStream& arg__1); - bool __eq__(QHostAddress* theWrappedObject, QHostAddress::SpecialAddress address) const; - bool __eq__(QHostAddress* theWrappedObject, const QHostAddress& address) const; - void readFrom(QHostAddress* theWrappedObject, QDataStream& arg__1); - QPair static_QHostAddress_parseSubnet(const QString& subnet); - QAbstractSocket::NetworkLayerProtocol protocol(QHostAddress* theWrappedObject) const; - QString scopeId(QHostAddress* theWrappedObject) const; - void setAddress(QHostAddress* theWrappedObject, const QIPv6Address& ip6Addr); - bool setAddress(QHostAddress* theWrappedObject, const QString& address); - void setAddress(QHostAddress* theWrappedObject, unsigned int ip4Addr); - void setScopeId(QHostAddress* theWrappedObject, const QString& id); - unsigned int toIPv4Address(QHostAddress* theWrappedObject) const; - QIPv6Address toIPv6Address(QHostAddress* theWrappedObject) const; - QString toString(QHostAddress* theWrappedObject) const; - QString py_toString(QHostAddress*); - bool __nonzero__(QHostAddress* obj) { return !obj->isNull(); } -}; - - - - - -class PythonQtWrapper_QHostInfo : public QObject -{ Q_OBJECT -public: -Q_ENUMS(HostInfoError ) -enum HostInfoError{ - NoError = QHostInfo::NoError, HostNotFound = QHostInfo::HostNotFound, UnknownError = QHostInfo::UnknownError}; -public slots: -QHostInfo* new_QHostInfo(const QHostInfo& d); -QHostInfo* new_QHostInfo(int lookupId = -1); -void delete_QHostInfo(QHostInfo* obj) { delete obj; } - void static_QHostInfo_abortHostLookup(int lookupId); - QList addresses(QHostInfo* theWrappedObject) const; - QHostInfo::HostInfoError error(QHostInfo* theWrappedObject) const; - QString errorString(QHostInfo* theWrappedObject) const; - QHostInfo static_QHostInfo_fromName(const QString& name); - QString hostName(QHostInfo* theWrappedObject) const; - QString static_QHostInfo_localDomainName(); - QString static_QHostInfo_localHostName(); - int static_QHostInfo_lookupHost(const QString& name, QObject* receiver, const char* member); - int lookupId(QHostInfo* theWrappedObject) const; - void setAddresses(QHostInfo* theWrappedObject, const QList& addresses); - void setError(QHostInfo* theWrappedObject, QHostInfo::HostInfoError error); - void setErrorString(QHostInfo* theWrappedObject, const QString& errorString); - void setHostName(QHostInfo* theWrappedObject, const QString& name); - void setLookupId(QHostInfo* theWrappedObject, int id); -}; - - - - - -class PythonQtShell_QHttp : public QHttp -{ -public: - PythonQtShell_QHttp(QObject* parent = 0):QHttp(parent),_wrapper(NULL) {}; - PythonQtShell_QHttp(const QString& hostname, QHttp::ConnectionMode mode, unsigned short port = 0, QObject* parent = 0):QHttp(hostname, mode, port, parent),_wrapper(NULL) {}; - PythonQtShell_QHttp(const QString& hostname, unsigned short port = 80, QObject* parent = 0):QHttp(hostname, port, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QHttp : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Error ConnectionMode State ) -enum Error{ - NoError = QHttp::NoError, UnknownError = QHttp::UnknownError, HostNotFound = QHttp::HostNotFound, ConnectionRefused = QHttp::ConnectionRefused, UnexpectedClose = QHttp::UnexpectedClose, InvalidResponseHeader = QHttp::InvalidResponseHeader, WrongContentLength = QHttp::WrongContentLength, Aborted = QHttp::Aborted, AuthenticationRequiredError = QHttp::AuthenticationRequiredError, ProxyAuthenticationRequiredError = QHttp::ProxyAuthenticationRequiredError}; -enum ConnectionMode{ - ConnectionModeHttp = QHttp::ConnectionModeHttp, ConnectionModeHttps = QHttp::ConnectionModeHttps}; -enum State{ - Unconnected = QHttp::Unconnected, HostLookup = QHttp::HostLookup, Connecting = QHttp::Connecting, Sending = QHttp::Sending, Reading = QHttp::Reading, Connected = QHttp::Connected, Closing = QHttp::Closing}; -public slots: -QHttp* new_QHttp(QObject* parent = 0); -QHttp* new_QHttp(const QString& hostname, QHttp::ConnectionMode mode, unsigned short port = 0, QObject* parent = 0); -QHttp* new_QHttp(const QString& hostname, unsigned short port = 80, QObject* parent = 0); -void delete_QHttp(QHttp* obj) { delete obj; } - qint64 bytesAvailable(QHttp* theWrappedObject) const; - void clearPendingRequests(QHttp* theWrappedObject); - int close(QHttp* theWrappedObject); - QIODevice* currentDestinationDevice(QHttp* theWrappedObject) const; - int currentId(QHttp* theWrappedObject) const; - QHttpRequestHeader currentRequest(QHttp* theWrappedObject) const; - QIODevice* currentSourceDevice(QHttp* theWrappedObject) const; - QHttp::Error error(QHttp* theWrappedObject) const; - QString errorString(QHttp* theWrappedObject) const; - int get(QHttp* theWrappedObject, const QString& path, QIODevice* to = 0); - bool hasPendingRequests(QHttp* theWrappedObject) const; - int head(QHttp* theWrappedObject, const QString& path); - QHttpResponseHeader lastResponse(QHttp* theWrappedObject) const; - int post(QHttp* theWrappedObject, const QString& path, QIODevice* data, QIODevice* to = 0); - int post(QHttp* theWrappedObject, const QString& path, const QByteArray& data, QIODevice* to = 0); - qint64 read(QHttp* theWrappedObject, char* data, qint64 maxlen); - QByteArray readAll(QHttp* theWrappedObject); - int request(QHttp* theWrappedObject, const QHttpRequestHeader& header, QIODevice* device = 0, QIODevice* to = 0); - int request(QHttp* theWrappedObject, const QHttpRequestHeader& header, const QByteArray& data, QIODevice* to = 0); - int setHost(QHttp* theWrappedObject, const QString& hostname, QHttp::ConnectionMode mode, unsigned short port = 0); - int setHost(QHttp* theWrappedObject, const QString& hostname, unsigned short port = 80); - int setProxy(QHttp* theWrappedObject, const QNetworkProxy& proxy); - int setProxy(QHttp* theWrappedObject, const QString& host, int port, const QString& username = QString(), const QString& password = QString()); - int setSocket(QHttp* theWrappedObject, QTcpSocket* socket); - int setUser(QHttp* theWrappedObject, const QString& username, const QString& password = QString()); - QHttp::State state(QHttp* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QHttpHeader : public QHttpHeader -{ -public: - PythonQtShell_QHttpHeader():QHttpHeader(),_wrapper(NULL) {}; - PythonQtShell_QHttpHeader(const QString& str):QHttpHeader(str),_wrapper(NULL) {}; - -virtual int majorVersion() const; -virtual int minorVersion() const; -virtual bool parseLine(const QString& line, int number); -virtual QString toString() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QHttpHeader : public QHttpHeader -{ public: -inline bool promoted_parseLine(const QString& line, int number) { return QHttpHeader::parseLine(line, number); } -inline QString promoted_toString() const { return QHttpHeader::toString(); } -}; - -class PythonQtWrapper_QHttpHeader : public QObject -{ Q_OBJECT -public: -public slots: -QHttpHeader* new_QHttpHeader(); -QHttpHeader* new_QHttpHeader(const QString& str); -void delete_QHttpHeader(QHttpHeader* obj) { delete obj; } - void addValue(QHttpHeader* theWrappedObject, const QString& key, const QString& value); - QStringList allValues(QHttpHeader* theWrappedObject, const QString& key) const; - uint contentLength(QHttpHeader* theWrappedObject) const; - QString contentType(QHttpHeader* theWrappedObject) const; - bool hasContentLength(QHttpHeader* theWrappedObject) const; - bool hasContentType(QHttpHeader* theWrappedObject) const; - bool hasKey(QHttpHeader* theWrappedObject, const QString& key) const; - bool isValid(QHttpHeader* theWrappedObject) const; - QStringList keys(QHttpHeader* theWrappedObject) const; - bool parseLine(QHttpHeader* theWrappedObject, const QString& line, int number); - void removeAllValues(QHttpHeader* theWrappedObject, const QString& key); - void removeValue(QHttpHeader* theWrappedObject, const QString& key); - void setContentLength(QHttpHeader* theWrappedObject, int len); - void setContentType(QHttpHeader* theWrappedObject, const QString& type); - void setValue(QHttpHeader* theWrappedObject, const QString& key, const QString& value); - void setValues(QHttpHeader* theWrappedObject, const QList >& values); - QString toString(QHttpHeader* theWrappedObject) const; - QString value(QHttpHeader* theWrappedObject, const QString& key) const; - QList > values(QHttpHeader* theWrappedObject) const; - QString py_toString(QHttpHeader*); -}; - - - - - -class PythonQtShell_QHttpRequestHeader : public QHttpRequestHeader -{ -public: - PythonQtShell_QHttpRequestHeader():QHttpRequestHeader(),_wrapper(NULL) {}; - PythonQtShell_QHttpRequestHeader(const QHttpRequestHeader& header):QHttpRequestHeader(header),_wrapper(NULL) {}; - PythonQtShell_QHttpRequestHeader(const QString& method, const QString& path, int majorVer = 1, int minorVer = 1):QHttpRequestHeader(method, path, majorVer, minorVer),_wrapper(NULL) {}; - PythonQtShell_QHttpRequestHeader(const QString& str):QHttpRequestHeader(str),_wrapper(NULL) {}; - -virtual int majorVersion() const; -virtual int minorVersion() const; -virtual bool parseLine(const QString& line, int number); -virtual QString toString() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QHttpRequestHeader : public QHttpRequestHeader -{ public: -inline int promoted_majorVersion() const { return QHttpRequestHeader::majorVersion(); } -inline int promoted_minorVersion() const { return QHttpRequestHeader::minorVersion(); } -inline bool promoted_parseLine(const QString& line, int number) { return QHttpRequestHeader::parseLine(line, number); } -inline QString promoted_toString() const { return QHttpRequestHeader::toString(); } -}; - -class PythonQtWrapper_QHttpRequestHeader : public QObject -{ Q_OBJECT -public: -public slots: -QHttpRequestHeader* new_QHttpRequestHeader(); -QHttpRequestHeader* new_QHttpRequestHeader(const QHttpRequestHeader& header); -QHttpRequestHeader* new_QHttpRequestHeader(const QString& method, const QString& path, int majorVer = 1, int minorVer = 1); -QHttpRequestHeader* new_QHttpRequestHeader(const QString& str); -void delete_QHttpRequestHeader(QHttpRequestHeader* obj) { delete obj; } - int majorVersion(QHttpRequestHeader* theWrappedObject) const; - QString method(QHttpRequestHeader* theWrappedObject) const; - int minorVersion(QHttpRequestHeader* theWrappedObject) const; - bool parseLine(QHttpRequestHeader* theWrappedObject, const QString& line, int number); - QString path(QHttpRequestHeader* theWrappedObject) const; - void setRequest(QHttpRequestHeader* theWrappedObject, const QString& method, const QString& path, int majorVer = 1, int minorVer = 1); - QString toString(QHttpRequestHeader* theWrappedObject) const; - QString py_toString(QHttpRequestHeader*); -}; - - - - - -class PythonQtShell_QHttpResponseHeader : public QHttpResponseHeader -{ -public: - PythonQtShell_QHttpResponseHeader():QHttpResponseHeader(),_wrapper(NULL) {}; - PythonQtShell_QHttpResponseHeader(const QHttpResponseHeader& header):QHttpResponseHeader(header),_wrapper(NULL) {}; - PythonQtShell_QHttpResponseHeader(const QString& str):QHttpResponseHeader(str),_wrapper(NULL) {}; - PythonQtShell_QHttpResponseHeader(int code, const QString& text = QString(), int majorVer = 1, int minorVer = 1):QHttpResponseHeader(code, text, majorVer, minorVer),_wrapper(NULL) {}; - -virtual int majorVersion() const; -virtual int minorVersion() const; -virtual bool parseLine(const QString& line, int number); -virtual QString toString() const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QHttpResponseHeader : public QHttpResponseHeader -{ public: -inline int promoted_majorVersion() const { return QHttpResponseHeader::majorVersion(); } -inline int promoted_minorVersion() const { return QHttpResponseHeader::minorVersion(); } -inline bool promoted_parseLine(const QString& line, int number) { return QHttpResponseHeader::parseLine(line, number); } -inline QString promoted_toString() const { return QHttpResponseHeader::toString(); } -}; - -class PythonQtWrapper_QHttpResponseHeader : public QObject -{ Q_OBJECT -public: -public slots: -QHttpResponseHeader* new_QHttpResponseHeader(); -QHttpResponseHeader* new_QHttpResponseHeader(const QHttpResponseHeader& header); -QHttpResponseHeader* new_QHttpResponseHeader(const QString& str); -QHttpResponseHeader* new_QHttpResponseHeader(int code, const QString& text = QString(), int majorVer = 1, int minorVer = 1); -void delete_QHttpResponseHeader(QHttpResponseHeader* obj) { delete obj; } - int majorVersion(QHttpResponseHeader* theWrappedObject) const; - int minorVersion(QHttpResponseHeader* theWrappedObject) const; - bool parseLine(QHttpResponseHeader* theWrappedObject, const QString& line, int number); - QString reasonPhrase(QHttpResponseHeader* theWrappedObject) const; - void setStatusLine(QHttpResponseHeader* theWrappedObject, int code, const QString& text = QString(), int majorVer = 1, int minorVer = 1); - int statusCode(QHttpResponseHeader* theWrappedObject) const; - QString toString(QHttpResponseHeader* theWrappedObject) const; - QString py_toString(QHttpResponseHeader*); -}; - - - - - -class PythonQtShell_QIPv6Address : public QIPv6Address -{ -public: - PythonQtShell_QIPv6Address():QIPv6Address(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QIPv6Address : public QObject -{ Q_OBJECT -public: -public slots: -QIPv6Address* new_QIPv6Address(); -QIPv6Address* new_QIPv6Address(const QIPv6Address& other) { -PythonQtShell_QIPv6Address* a = new PythonQtShell_QIPv6Address(); -*((QIPv6Address*)a) = other; -return a; } -void delete_QIPv6Address(QIPv6Address* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QLocalServer : public QLocalServer -{ -public: - PythonQtShell_QLocalServer(QObject* parent = 0):QLocalServer(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool hasPendingConnections() const; -virtual void incomingConnection(quintptr socketDescriptor); -virtual QLocalSocket* nextPendingConnection(); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QLocalServer : public QLocalServer -{ public: -inline bool promoted_hasPendingConnections() const { return QLocalServer::hasPendingConnections(); } -inline void promoted_incomingConnection(quintptr socketDescriptor) { QLocalServer::incomingConnection(socketDescriptor); } -inline QLocalSocket* promoted_nextPendingConnection() { return QLocalServer::nextPendingConnection(); } -}; - -class PythonQtWrapper_QLocalServer : public QObject -{ Q_OBJECT -public: -public slots: -QLocalServer* new_QLocalServer(QObject* parent = 0); -void delete_QLocalServer(QLocalServer* obj) { delete obj; } - void close(QLocalServer* theWrappedObject); - QString errorString(QLocalServer* theWrappedObject) const; - QString fullServerName(QLocalServer* theWrappedObject) const; - bool hasPendingConnections(QLocalServer* theWrappedObject) const; - void incomingConnection(QLocalServer* theWrappedObject, quintptr socketDescriptor); - bool isListening(QLocalServer* theWrappedObject) const; - bool listen(QLocalServer* theWrappedObject, const QString& name); - int maxPendingConnections(QLocalServer* theWrappedObject) const; - QLocalSocket* nextPendingConnection(QLocalServer* theWrappedObject); - bool static_QLocalServer_removeServer(const QString& name); - QAbstractSocket::SocketError serverError(QLocalServer* theWrappedObject) const; - QString serverName(QLocalServer* theWrappedObject) const; - void setMaxPendingConnections(QLocalServer* theWrappedObject, int numConnections); - bool waitForNewConnection(QLocalServer* theWrappedObject, int msec = 0, bool* timedOut = 0); -}; - - - - - -class PythonQtShell_QLocalSocket : public QLocalSocket -{ -public: - PythonQtShell_QLocalSocket(QObject* parent = 0):QLocalSocket(parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode mode); -virtual qint64 pos() const; -virtual qint64 readData(char* arg__1, qint64 arg__2); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 pos); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs = 30000); -virtual bool waitForReadyRead(int msecs = 30000); -virtual qint64 writeData(const char* arg__1, qint64 arg__2); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QLocalSocket : public QLocalSocket -{ public: -inline qint64 promoted_bytesAvailable() const { return QLocalSocket::bytesAvailable(); } -inline qint64 promoted_bytesToWrite() const { return QLocalSocket::bytesToWrite(); } -inline bool promoted_canReadLine() const { return QLocalSocket::canReadLine(); } -inline void promoted_close() { QLocalSocket::close(); } -inline bool promoted_isSequential() const { return QLocalSocket::isSequential(); } -inline qint64 promoted_readData(char* arg__1, qint64 arg__2) { return QLocalSocket::readData(arg__1, arg__2); } -inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QLocalSocket::waitForBytesWritten(msecs); } -inline bool promoted_waitForReadyRead(int msecs = 30000) { return QLocalSocket::waitForReadyRead(msecs); } -inline qint64 promoted_writeData(const char* arg__1, qint64 arg__2) { return QLocalSocket::writeData(arg__1, arg__2); } -}; - -class PythonQtWrapper_QLocalSocket : public QObject -{ Q_OBJECT -public: -Q_ENUMS(LocalSocketState LocalSocketError ) -enum LocalSocketState{ - UnconnectedState = QLocalSocket::UnconnectedState, ConnectingState = QLocalSocket::ConnectingState, ConnectedState = QLocalSocket::ConnectedState, ClosingState = QLocalSocket::ClosingState}; -enum LocalSocketError{ - ConnectionRefusedError = QLocalSocket::ConnectionRefusedError, PeerClosedError = QLocalSocket::PeerClosedError, ServerNotFoundError = QLocalSocket::ServerNotFoundError, SocketAccessError = QLocalSocket::SocketAccessError, SocketResourceError = QLocalSocket::SocketResourceError, SocketTimeoutError = QLocalSocket::SocketTimeoutError, DatagramTooLargeError = QLocalSocket::DatagramTooLargeError, ConnectionError = QLocalSocket::ConnectionError, UnsupportedSocketOperationError = QLocalSocket::UnsupportedSocketOperationError, UnknownSocketError = QLocalSocket::UnknownSocketError}; -public slots: -QLocalSocket* new_QLocalSocket(QObject* parent = 0); -void delete_QLocalSocket(QLocalSocket* obj) { delete obj; } - void abort(QLocalSocket* theWrappedObject); - qint64 bytesAvailable(QLocalSocket* theWrappedObject) const; - qint64 bytesToWrite(QLocalSocket* theWrappedObject) const; - bool canReadLine(QLocalSocket* theWrappedObject) const; - void close(QLocalSocket* theWrappedObject); - void connectToServer(QLocalSocket* theWrappedObject, const QString& name, QIODevice::OpenMode openMode = QIODevice::ReadWrite); - void disconnectFromServer(QLocalSocket* theWrappedObject); - QLocalSocket::LocalSocketError error(QLocalSocket* theWrappedObject) const; - bool flush(QLocalSocket* theWrappedObject); - QString fullServerName(QLocalSocket* theWrappedObject) const; - bool isSequential(QLocalSocket* theWrappedObject) const; - bool isValid(QLocalSocket* theWrappedObject) const; - qint64 readBufferSize(QLocalSocket* theWrappedObject) const; - qint64 readData(QLocalSocket* theWrappedObject, char* arg__1, qint64 arg__2); - QString serverName(QLocalSocket* theWrappedObject) const; - void setReadBufferSize(QLocalSocket* theWrappedObject, qint64 size); - bool setSocketDescriptor(QLocalSocket* theWrappedObject, quintptr socketDescriptor, QLocalSocket::LocalSocketState socketState = QLocalSocket::ConnectedState, QIODevice::OpenMode openMode = QIODevice::ReadWrite); - quintptr socketDescriptor(QLocalSocket* theWrappedObject) const; - QLocalSocket::LocalSocketState state(QLocalSocket* theWrappedObject) const; - bool waitForBytesWritten(QLocalSocket* theWrappedObject, int msecs = 30000); - bool waitForConnected(QLocalSocket* theWrappedObject, int msecs = 30000); - bool waitForDisconnected(QLocalSocket* theWrappedObject, int msecs = 30000); - bool waitForReadyRead(QLocalSocket* theWrappedObject, int msecs = 30000); - qint64 writeData(QLocalSocket* theWrappedObject, const char* arg__1, qint64 arg__2); -}; - - - - - -class PythonQtShell_QNetworkAccessManager : public QNetworkAccessManager -{ -public: - PythonQtShell_QNetworkAccessManager(QObject* parent = 0):QNetworkAccessManager(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QNetworkReply* createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData = 0); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QNetworkAccessManager : public QNetworkAccessManager -{ public: -inline QNetworkReply* promoted_createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData = 0) { return QNetworkAccessManager::createRequest(op, request, outgoingData); } -}; - -class PythonQtWrapper_QNetworkAccessManager : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Operation ) -enum Operation{ - HeadOperation = QNetworkAccessManager::HeadOperation, GetOperation = QNetworkAccessManager::GetOperation, PutOperation = QNetworkAccessManager::PutOperation, PostOperation = QNetworkAccessManager::PostOperation, DeleteOperation = QNetworkAccessManager::DeleteOperation, UnknownOperation = QNetworkAccessManager::UnknownOperation}; -public slots: -QNetworkAccessManager* new_QNetworkAccessManager(QObject* parent = 0); -void delete_QNetworkAccessManager(QNetworkAccessManager* obj) { delete obj; } - QAbstractNetworkCache* cache(QNetworkAccessManager* theWrappedObject) const; - QNetworkCookieJar* cookieJar(QNetworkAccessManager* theWrappedObject) const; - QNetworkReply* createRequest(QNetworkAccessManager* theWrappedObject, QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData = 0); - QNetworkReply* deleteResource(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request); - QNetworkReply* get(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request); - QNetworkReply* head(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request); - QNetworkReply* post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data); - QNetworkReply* post(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data); - QNetworkProxy proxy(QNetworkAccessManager* theWrappedObject) const; - QNetworkProxyFactory* proxyFactory(QNetworkAccessManager* theWrappedObject) const; - QNetworkReply* put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, QIODevice* data); - QNetworkReply* put(QNetworkAccessManager* theWrappedObject, const QNetworkRequest& request, const QByteArray& data); - void setCache(QNetworkAccessManager* theWrappedObject, QAbstractNetworkCache* cache); - void setCookieJar(QNetworkAccessManager* theWrappedObject, QNetworkCookieJar* cookieJar); - void setProxy(QNetworkAccessManager* theWrappedObject, const QNetworkProxy& proxy); - void setProxyFactory(QNetworkAccessManager* theWrappedObject, QNetworkProxyFactory* factory); -}; - - - - - -class PythonQtWrapper_QNetworkAddressEntry : public QObject -{ Q_OBJECT -public: -public slots: -QNetworkAddressEntry* new_QNetworkAddressEntry(); -QNetworkAddressEntry* new_QNetworkAddressEntry(const QNetworkAddressEntry& other); -void delete_QNetworkAddressEntry(QNetworkAddressEntry* obj) { delete obj; } - QHostAddress broadcast(QNetworkAddressEntry* theWrappedObject) const; - QHostAddress ip(QNetworkAddressEntry* theWrappedObject) const; - QHostAddress netmask(QNetworkAddressEntry* theWrappedObject) const; - bool __ne__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const; - bool __eq__(QNetworkAddressEntry* theWrappedObject, const QNetworkAddressEntry& other) const; - int prefixLength(QNetworkAddressEntry* theWrappedObject) const; - void setBroadcast(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newBroadcast); - void setIp(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newIp); - void setNetmask(QNetworkAddressEntry* theWrappedObject, const QHostAddress& newNetmask); - void setPrefixLength(QNetworkAddressEntry* theWrappedObject, int length); -}; - - - - - -class PythonQtWrapper_QNetworkCacheMetaData : public QObject -{ Q_OBJECT -public: -public slots: -QNetworkCacheMetaData* new_QNetworkCacheMetaData(); -QNetworkCacheMetaData* new_QNetworkCacheMetaData(const QNetworkCacheMetaData& other); -void delete_QNetworkCacheMetaData(QNetworkCacheMetaData* obj) { delete obj; } - QHash attributes(QNetworkCacheMetaData* theWrappedObject) const; - QDateTime expirationDate(QNetworkCacheMetaData* theWrappedObject) const; - bool isValid(QNetworkCacheMetaData* theWrappedObject) const; - QDateTime lastModified(QNetworkCacheMetaData* theWrappedObject) const; - bool __ne__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const; - void writeTo(QNetworkCacheMetaData* theWrappedObject, QDataStream& arg__1); - bool __eq__(QNetworkCacheMetaData* theWrappedObject, const QNetworkCacheMetaData& other) const; - void readFrom(QNetworkCacheMetaData* theWrappedObject, QDataStream& arg__1); - QList > rawHeaders(QNetworkCacheMetaData* theWrappedObject) const; - bool saveToDisk(QNetworkCacheMetaData* theWrappedObject) const; - void setAttributes(QNetworkCacheMetaData* theWrappedObject, const QHash& attributes); - void setExpirationDate(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime); - void setLastModified(QNetworkCacheMetaData* theWrappedObject, const QDateTime& dateTime); - void setRawHeaders(QNetworkCacheMetaData* theWrappedObject, const QList >& headers); - void setSaveToDisk(QNetworkCacheMetaData* theWrappedObject, bool allow); - void setUrl(QNetworkCacheMetaData* theWrappedObject, const QUrl& url); - QUrl url(QNetworkCacheMetaData* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QNetworkCookie : public QObject -{ Q_OBJECT -public: -Q_ENUMS(RawForm ) -enum RawForm{ - NameAndValueOnly = QNetworkCookie::NameAndValueOnly, Full = QNetworkCookie::Full}; -public slots: -QNetworkCookie* new_QNetworkCookie(const QByteArray& name = QByteArray(), const QByteArray& value = QByteArray()); -QNetworkCookie* new_QNetworkCookie(const QNetworkCookie& other); -void delete_QNetworkCookie(QNetworkCookie* obj) { delete obj; } - QString domain(QNetworkCookie* theWrappedObject) const; - QDateTime expirationDate(QNetworkCookie* theWrappedObject) const; - bool isHttpOnly(QNetworkCookie* theWrappedObject) const; - bool isSecure(QNetworkCookie* theWrappedObject) const; - bool isSessionCookie(QNetworkCookie* theWrappedObject) const; - QByteArray name(QNetworkCookie* theWrappedObject) const; - bool __ne__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const; - bool __eq__(QNetworkCookie* theWrappedObject, const QNetworkCookie& other) const; - QList static_QNetworkCookie_parseCookies(const QByteArray& cookieString); - QString path(QNetworkCookie* theWrappedObject) const; - void setDomain(QNetworkCookie* theWrappedObject, const QString& domain); - void setExpirationDate(QNetworkCookie* theWrappedObject, const QDateTime& date); - void setHttpOnly(QNetworkCookie* theWrappedObject, bool enable); - void setName(QNetworkCookie* theWrappedObject, const QByteArray& cookieName); - void setPath(QNetworkCookie* theWrappedObject, const QString& path); - void setSecure(QNetworkCookie* theWrappedObject, bool enable); - void setValue(QNetworkCookie* theWrappedObject, const QByteArray& value); - QByteArray toRawForm(QNetworkCookie* theWrappedObject, QNetworkCookie::RawForm form = QNetworkCookie::Full) const; - QByteArray value(QNetworkCookie* theWrappedObject) const; - QString py_toString(QNetworkCookie*); -}; - - - - - -class PythonQtShell_QNetworkCookieJar : public QNetworkCookieJar -{ -public: - PythonQtShell_QNetworkCookieJar(QObject* parent = 0):QNetworkCookieJar(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QList cookiesForUrl(const QUrl& url) const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool setCookiesFromUrl(const QList& cookieList, const QUrl& url); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QNetworkCookieJar : public QNetworkCookieJar -{ public: -inline QList promoted_cookiesForUrl(const QUrl& url) const { return QNetworkCookieJar::cookiesForUrl(url); } -inline bool promoted_setCookiesFromUrl(const QList& cookieList, const QUrl& url) { return QNetworkCookieJar::setCookiesFromUrl(cookieList, url); } -}; - -class PythonQtWrapper_QNetworkCookieJar : public QObject -{ Q_OBJECT -public: -public slots: -QNetworkCookieJar* new_QNetworkCookieJar(QObject* parent = 0); -void delete_QNetworkCookieJar(QNetworkCookieJar* obj) { delete obj; } - QList cookiesForUrl(QNetworkCookieJar* theWrappedObject, const QUrl& url) const; - bool setCookiesFromUrl(QNetworkCookieJar* theWrappedObject, const QList& cookieList, const QUrl& url); -}; - - - - - -class PythonQtShell_QNetworkDiskCache : public QNetworkDiskCache -{ -public: - PythonQtShell_QNetworkDiskCache(QObject* parent = 0):QNetworkDiskCache(parent),_wrapper(NULL) {}; - -virtual qint64 cacheSize() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void customEvent(QEvent* arg__1); -virtual QIODevice* data(const QUrl& url); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual qint64 expire(); -virtual void insert(QIODevice* device); -virtual QNetworkCacheMetaData metaData(const QUrl& url); -virtual QIODevice* prepare(const QNetworkCacheMetaData& metaData); -virtual bool remove(const QUrl& url); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateMetaData(const QNetworkCacheMetaData& metaData); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QNetworkDiskCache : public QNetworkDiskCache -{ public: -inline qint64 promoted_cacheSize() const { return QNetworkDiskCache::cacheSize(); } -inline void promoted_clear() { QNetworkDiskCache::clear(); } -inline QIODevice* promoted_data(const QUrl& url) { return QNetworkDiskCache::data(url); } -inline qint64 promoted_expire() { return QNetworkDiskCache::expire(); } -inline void promoted_insert(QIODevice* device) { QNetworkDiskCache::insert(device); } -inline QNetworkCacheMetaData promoted_metaData(const QUrl& url) { return QNetworkDiskCache::metaData(url); } -inline QIODevice* promoted_prepare(const QNetworkCacheMetaData& metaData) { return QNetworkDiskCache::prepare(metaData); } -inline bool promoted_remove(const QUrl& url) { return QNetworkDiskCache::remove(url); } -inline void promoted_updateMetaData(const QNetworkCacheMetaData& metaData) { QNetworkDiskCache::updateMetaData(metaData); } -}; - -class PythonQtWrapper_QNetworkDiskCache : public QObject -{ Q_OBJECT -public: -public slots: -QNetworkDiskCache* new_QNetworkDiskCache(QObject* parent = 0); -void delete_QNetworkDiskCache(QNetworkDiskCache* obj) { delete obj; } - QString cacheDirectory(QNetworkDiskCache* theWrappedObject) const; - qint64 cacheSize(QNetworkDiskCache* theWrappedObject) const; - QIODevice* data(QNetworkDiskCache* theWrappedObject, const QUrl& url); - qint64 expire(QNetworkDiskCache* theWrappedObject); - QNetworkCacheMetaData fileMetaData(QNetworkDiskCache* theWrappedObject, const QString& fileName) const; - void insert(QNetworkDiskCache* theWrappedObject, QIODevice* device); - qint64 maximumCacheSize(QNetworkDiskCache* theWrappedObject) const; - QNetworkCacheMetaData metaData(QNetworkDiskCache* theWrappedObject, const QUrl& url); - QIODevice* prepare(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData); - bool remove(QNetworkDiskCache* theWrappedObject, const QUrl& url); - void setCacheDirectory(QNetworkDiskCache* theWrappedObject, const QString& cacheDir); - void setMaximumCacheSize(QNetworkDiskCache* theWrappedObject, qint64 size); - void updateMetaData(QNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData); -}; - - - - - -class PythonQtWrapper_QNetworkInterface : public QObject -{ Q_OBJECT -public: -Q_ENUMS(InterfaceFlag ) -Q_FLAGS(InterfaceFlags ) -enum InterfaceFlag{ - IsUp = QNetworkInterface::IsUp, IsRunning = QNetworkInterface::IsRunning, CanBroadcast = QNetworkInterface::CanBroadcast, IsLoopBack = QNetworkInterface::IsLoopBack, IsPointToPoint = QNetworkInterface::IsPointToPoint, CanMulticast = QNetworkInterface::CanMulticast}; -Q_DECLARE_FLAGS(InterfaceFlags, InterfaceFlag) -public slots: -QNetworkInterface* new_QNetworkInterface(); -QNetworkInterface* new_QNetworkInterface(const QNetworkInterface& other); -void delete_QNetworkInterface(QNetworkInterface* obj) { delete obj; } - QList addressEntries(QNetworkInterface* theWrappedObject) const; - QList static_QNetworkInterface_allAddresses(); - QList static_QNetworkInterface_allInterfaces(); - QNetworkInterface::InterfaceFlags flags(QNetworkInterface* theWrappedObject) const; - QString hardwareAddress(QNetworkInterface* theWrappedObject) const; - QString humanReadableName(QNetworkInterface* theWrappedObject) const; - int index(QNetworkInterface* theWrappedObject) const; - QNetworkInterface static_QNetworkInterface_interfaceFromIndex(int index); - QNetworkInterface static_QNetworkInterface_interfaceFromName(const QString& name); - bool isValid(QNetworkInterface* theWrappedObject) const; - QString name(QNetworkInterface* theWrappedObject) const; - QString py_toString(QNetworkInterface*); -}; - - - - - -class PythonQtWrapper_QNetworkProxy : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ProxyType Capability ) -Q_FLAGS(Capabilities ) -enum ProxyType{ - DefaultProxy = QNetworkProxy::DefaultProxy, Socks5Proxy = QNetworkProxy::Socks5Proxy, NoProxy = QNetworkProxy::NoProxy, HttpProxy = QNetworkProxy::HttpProxy, HttpCachingProxy = QNetworkProxy::HttpCachingProxy, FtpCachingProxy = QNetworkProxy::FtpCachingProxy}; -enum Capability{ - TunnelingCapability = QNetworkProxy::TunnelingCapability, ListeningCapability = QNetworkProxy::ListeningCapability, UdpTunnelingCapability = QNetworkProxy::UdpTunnelingCapability, CachingCapability = QNetworkProxy::CachingCapability, HostNameLookupCapability = QNetworkProxy::HostNameLookupCapability}; -Q_DECLARE_FLAGS(Capabilities, Capability) -public slots: -QNetworkProxy* new_QNetworkProxy(); -QNetworkProxy* new_QNetworkProxy(QNetworkProxy::ProxyType type, const QString& hostName = QString(), unsigned short port = 0, const QString& user = QString(), const QString& password = QString()); -QNetworkProxy* new_QNetworkProxy(const QNetworkProxy& other); -void delete_QNetworkProxy(QNetworkProxy* obj) { delete obj; } - QNetworkProxy static_QNetworkProxy_applicationProxy(); - QNetworkProxy::Capabilities capabilities(QNetworkProxy* theWrappedObject) const; - QString hostName(QNetworkProxy* theWrappedObject) const; - bool isCachingProxy(QNetworkProxy* theWrappedObject) const; - bool isTransparentProxy(QNetworkProxy* theWrappedObject) const; - bool __ne__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const; - bool __eq__(QNetworkProxy* theWrappedObject, const QNetworkProxy& other) const; - QString password(QNetworkProxy* theWrappedObject) const; - unsigned short port(QNetworkProxy* theWrappedObject) const; - void static_QNetworkProxy_setApplicationProxy(const QNetworkProxy& proxy); - void setCapabilities(QNetworkProxy* theWrappedObject, QNetworkProxy::Capabilities capab); - void setHostName(QNetworkProxy* theWrappedObject, const QString& hostName); - void setPassword(QNetworkProxy* theWrappedObject, const QString& password); - void setPort(QNetworkProxy* theWrappedObject, unsigned short port); - void setType(QNetworkProxy* theWrappedObject, QNetworkProxy::ProxyType type); - void setUser(QNetworkProxy* theWrappedObject, const QString& userName); - QNetworkProxy::ProxyType type(QNetworkProxy* theWrappedObject) const; - QString user(QNetworkProxy* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QNetworkProxyFactory : public QNetworkProxyFactory -{ -public: - PythonQtShell_QNetworkProxyFactory():QNetworkProxyFactory(),_wrapper(NULL) {}; - -virtual QList queryProxy(const QNetworkProxyQuery& query = QNetworkProxyQuery()); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QNetworkProxyFactory : public QObject -{ Q_OBJECT -public: -public slots: -QNetworkProxyFactory* new_QNetworkProxyFactory(); -void delete_QNetworkProxyFactory(QNetworkProxyFactory* obj) { delete obj; } - QList static_QNetworkProxyFactory_proxyForQuery(const QNetworkProxyQuery& query); - void static_QNetworkProxyFactory_setApplicationProxyFactory(QNetworkProxyFactory* factory); - void static_QNetworkProxyFactory_setUseSystemConfiguration(bool enable); - QList static_QNetworkProxyFactory_systemProxyForQuery(const QNetworkProxyQuery& query = QNetworkProxyQuery()); -}; - - - - - -class PythonQtWrapper_QNetworkProxyQuery : public QObject -{ Q_OBJECT -public: -Q_ENUMS(QueryType ) -enum QueryType{ - TcpSocket = QNetworkProxyQuery::TcpSocket, UdpSocket = QNetworkProxyQuery::UdpSocket, TcpServer = QNetworkProxyQuery::TcpServer, UrlRequest = QNetworkProxyQuery::UrlRequest}; -public slots: -QNetworkProxyQuery* new_QNetworkProxyQuery(); -QNetworkProxyQuery* new_QNetworkProxyQuery(const QNetworkProxyQuery& other); -QNetworkProxyQuery* new_QNetworkProxyQuery(const QString& hostname, int port, const QString& protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = QNetworkProxyQuery::TcpSocket); -QNetworkProxyQuery* new_QNetworkProxyQuery(const QUrl& requestUrl, QNetworkProxyQuery::QueryType queryType = QNetworkProxyQuery::UrlRequest); -QNetworkProxyQuery* new_QNetworkProxyQuery(unsigned short bindPort, const QString& protocolTag = QString(), QNetworkProxyQuery::QueryType queryType = QNetworkProxyQuery::TcpServer); -void delete_QNetworkProxyQuery(QNetworkProxyQuery* obj) { delete obj; } - int localPort(QNetworkProxyQuery* theWrappedObject) const; - bool __ne__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const; - bool __eq__(QNetworkProxyQuery* theWrappedObject, const QNetworkProxyQuery& other) const; - QString peerHostName(QNetworkProxyQuery* theWrappedObject) const; - int peerPort(QNetworkProxyQuery* theWrappedObject) const; - QString protocolTag(QNetworkProxyQuery* theWrappedObject) const; - QNetworkProxyQuery::QueryType queryType(QNetworkProxyQuery* theWrappedObject) const; - void setLocalPort(QNetworkProxyQuery* theWrappedObject, int port); - void setPeerHostName(QNetworkProxyQuery* theWrappedObject, const QString& hostname); - void setPeerPort(QNetworkProxyQuery* theWrappedObject, int port); - void setProtocolTag(QNetworkProxyQuery* theWrappedObject, const QString& protocolTag); - void setQueryType(QNetworkProxyQuery* theWrappedObject, QNetworkProxyQuery::QueryType type); - void setUrl(QNetworkProxyQuery* theWrappedObject, const QUrl& url); - QUrl url(QNetworkProxyQuery* theWrappedObject) const; -}; - - - - - -class PythonQtShell_QNetworkReply : public QNetworkReply -{ -public: - PythonQtShell_QNetworkReply(QObject* parent = 0):QNetworkReply(parent),_wrapper(NULL) {}; - -virtual void abort(); -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void ignoreSslErrors(); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode mode); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 pos); -virtual void setReadBufferSize(qint64 size); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs); -virtual bool waitForReadyRead(int msecs); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QNetworkReply : public QNetworkReply -{ public: -inline void promoted_close() { QNetworkReply::close(); } -inline void promoted_ignoreSslErrors() { QNetworkReply::ignoreSslErrors(); } -inline bool promoted_isSequential() const { return QNetworkReply::isSequential(); } -inline void promoted_setReadBufferSize(qint64 size) { QNetworkReply::setReadBufferSize(size); } -inline qint64 promoted_writeData(const char* data, qint64 len) { return QNetworkReply::writeData(data, len); } -}; - -class PythonQtWrapper_QNetworkReply : public QObject -{ Q_OBJECT -public: -public slots: -void delete_QNetworkReply(QNetworkReply* obj) { delete obj; } - QVariant attribute(QNetworkReply* theWrappedObject, QNetworkRequest::Attribute code) const; - void close(QNetworkReply* theWrappedObject); - QNetworkReply::NetworkError error(QNetworkReply* theWrappedObject) const; - bool hasRawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const; - QVariant header(QNetworkReply* theWrappedObject, QNetworkRequest::KnownHeaders header) const; - bool isFinished(QNetworkReply* theWrappedObject) const; - bool isRunning(QNetworkReply* theWrappedObject) const; - bool isSequential(QNetworkReply* theWrappedObject) const; - QNetworkAccessManager* manager(QNetworkReply* theWrappedObject) const; - QNetworkAccessManager::Operation operation(QNetworkReply* theWrappedObject) const; - QByteArray rawHeader(QNetworkReply* theWrappedObject, const QByteArray& headerName) const; - QList rawHeaderList(QNetworkReply* theWrappedObject) const; - qint64 readBufferSize(QNetworkReply* theWrappedObject) const; - QNetworkRequest request(QNetworkReply* theWrappedObject) const; - void setReadBufferSize(QNetworkReply* theWrappedObject, qint64 size); - QUrl url(QNetworkReply* theWrappedObject) const; - qint64 writeData(QNetworkReply* theWrappedObject, const char* data, qint64 len); -}; - - - - - -class PythonQtWrapper_QNetworkRequest : public QObject -{ Q_OBJECT -public: -Q_ENUMS(CacheLoadControl KnownHeaders Attribute ) -enum CacheLoadControl{ - AlwaysNetwork = QNetworkRequest::AlwaysNetwork, PreferNetwork = QNetworkRequest::PreferNetwork, PreferCache = QNetworkRequest::PreferCache, AlwaysCache = QNetworkRequest::AlwaysCache}; -enum KnownHeaders{ - ContentTypeHeader = QNetworkRequest::ContentTypeHeader, ContentLengthHeader = QNetworkRequest::ContentLengthHeader, LocationHeader = QNetworkRequest::LocationHeader, LastModifiedHeader = QNetworkRequest::LastModifiedHeader, CookieHeader = QNetworkRequest::CookieHeader, SetCookieHeader = QNetworkRequest::SetCookieHeader}; -enum Attribute{ - HttpStatusCodeAttribute = QNetworkRequest::HttpStatusCodeAttribute, HttpReasonPhraseAttribute = QNetworkRequest::HttpReasonPhraseAttribute, RedirectionTargetAttribute = QNetworkRequest::RedirectionTargetAttribute, ConnectionEncryptedAttribute = QNetworkRequest::ConnectionEncryptedAttribute, CacheLoadControlAttribute = QNetworkRequest::CacheLoadControlAttribute, CacheSaveControlAttribute = QNetworkRequest::CacheSaveControlAttribute, SourceIsFromCacheAttribute = QNetworkRequest::SourceIsFromCacheAttribute, DoNotBufferUploadDataAttribute = QNetworkRequest::DoNotBufferUploadDataAttribute, HttpPipeliningAllowedAttribute = QNetworkRequest::HttpPipeliningAllowedAttribute, HttpPipeliningWasUsedAttribute = QNetworkRequest::HttpPipeliningWasUsedAttribute, User = QNetworkRequest::User, UserMax = QNetworkRequest::UserMax}; -public slots: -QNetworkRequest* new_QNetworkRequest(const QNetworkRequest& other); -QNetworkRequest* new_QNetworkRequest(const QUrl& url = QUrl()); -void delete_QNetworkRequest(QNetworkRequest* obj) { delete obj; } - QVariant attribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& defaultValue = QVariant()) const; - bool hasRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const; - QVariant header(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header) const; - bool __ne__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const; - bool __eq__(QNetworkRequest* theWrappedObject, const QNetworkRequest& other) const; - QObject* originatingObject(QNetworkRequest* theWrappedObject) const; - QByteArray rawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName) const; - QList rawHeaderList(QNetworkRequest* theWrappedObject) const; - void setAttribute(QNetworkRequest* theWrappedObject, QNetworkRequest::Attribute code, const QVariant& value); - void setHeader(QNetworkRequest* theWrappedObject, QNetworkRequest::KnownHeaders header, const QVariant& value); - void setOriginatingObject(QNetworkRequest* theWrappedObject, QObject* object); - void setRawHeader(QNetworkRequest* theWrappedObject, const QByteArray& headerName, const QByteArray& value); - void setUrl(QNetworkRequest* theWrappedObject, const QUrl& url); - QUrl url(QNetworkRequest* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QSsl : public QObject -{ Q_OBJECT -public: -Q_ENUMS(KeyType KeyAlgorithm SslProtocol AlternateNameEntryType EncodingFormat ) -enum KeyType{ - PrivateKey = QSsl::PrivateKey, PublicKey = QSsl::PublicKey}; -enum KeyAlgorithm{ - Rsa = QSsl::Rsa, Dsa = QSsl::Dsa}; -enum SslProtocol{ - SslV3 = QSsl::SslV3, SslV2 = QSsl::SslV2, TlsV1 = QSsl::TlsV1, AnyProtocol = QSsl::AnyProtocol, UnknownProtocol = QSsl::UnknownProtocol}; -enum AlternateNameEntryType{ - EmailEntry = QSsl::EmailEntry, DnsEntry = QSsl::DnsEntry}; -enum EncodingFormat{ - Pem = QSsl::Pem, Der = QSsl::Der}; -public slots: -}; - - - - - -class PythonQtShell_QTcpServer : public QTcpServer -{ -public: - PythonQtShell_QTcpServer(QObject* parent = 0):QTcpServer(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool hasPendingConnections() const; -virtual void incomingConnection(int handle); -virtual QTcpSocket* nextPendingConnection(); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QTcpServer : public QTcpServer -{ public: -inline bool promoted_hasPendingConnections() const { return QTcpServer::hasPendingConnections(); } -inline void promoted_incomingConnection(int handle) { QTcpServer::incomingConnection(handle); } -inline QTcpSocket* promoted_nextPendingConnection() { return QTcpServer::nextPendingConnection(); } -}; - -class PythonQtWrapper_QTcpServer : public QObject -{ Q_OBJECT -public: -public slots: -QTcpServer* new_QTcpServer(QObject* parent = 0); -void delete_QTcpServer(QTcpServer* obj) { delete obj; } - void close(QTcpServer* theWrappedObject); - QString errorString(QTcpServer* theWrappedObject) const; - bool hasPendingConnections(QTcpServer* theWrappedObject) const; - void incomingConnection(QTcpServer* theWrappedObject, int handle); - bool isListening(QTcpServer* theWrappedObject) const; - bool listen(QTcpServer* theWrappedObject, const QHostAddress& address = QHostAddress::Any, unsigned short port = 0); - int maxPendingConnections(QTcpServer* theWrappedObject) const; - QTcpSocket* nextPendingConnection(QTcpServer* theWrappedObject); - QNetworkProxy proxy(QTcpServer* theWrappedObject) const; - QHostAddress serverAddress(QTcpServer* theWrappedObject) const; - QAbstractSocket::SocketError serverError(QTcpServer* theWrappedObject) const; - unsigned short serverPort(QTcpServer* theWrappedObject) const; - void setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections); - void setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy); - bool setSocketDescriptor(QTcpServer* theWrappedObject, int socketDescriptor); - int socketDescriptor(QTcpServer* theWrappedObject) const; - bool waitForNewConnection(QTcpServer* theWrappedObject, int msec = 0, bool* timedOut = 0); -}; - - - - - -class PythonQtShell_QTcpSocket : public QTcpSocket -{ -public: - PythonQtShell_QTcpSocket(QObject* parent = 0):QTcpSocket(parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode mode); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 pos); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs); -virtual bool waitForReadyRead(int msecs); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QTcpSocket : public QObject -{ Q_OBJECT -public: -public slots: -QTcpSocket* new_QTcpSocket(QObject* parent = 0); -void delete_QTcpSocket(QTcpSocket* obj) { delete obj; } -}; - - - - - -class PythonQtShell_QUdpSocket : public QUdpSocket -{ -public: - PythonQtShell_QUdpSocket(QObject* parent = 0):QUdpSocket(parent),_wrapper(NULL) {}; - -virtual bool atEnd() const; -virtual qint64 bytesAvailable() const; -virtual qint64 bytesToWrite() const; -virtual bool canReadLine() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void close(); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual bool isSequential() const; -virtual bool open(QIODevice::OpenMode mode); -virtual qint64 pos() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool reset(); -virtual bool seek(qint64 pos); -virtual qint64 size() const; -virtual void timerEvent(QTimerEvent* arg__1); -virtual bool waitForBytesWritten(int msecs); -virtual bool waitForReadyRead(int msecs); -virtual qint64 writeData(const char* data, qint64 len); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_QUdpSocket : public QObject -{ Q_OBJECT -public: -Q_ENUMS(BindFlag ) -Q_FLAGS(BindMode ) -enum BindFlag{ - DefaultForPlatform = QUdpSocket::DefaultForPlatform, ShareAddress = QUdpSocket::ShareAddress, DontShareAddress = QUdpSocket::DontShareAddress, ReuseAddressHint = QUdpSocket::ReuseAddressHint}; -Q_DECLARE_FLAGS(BindMode, BindFlag) -public slots: -QUdpSocket* new_QUdpSocket(QObject* parent = 0); -void delete_QUdpSocket(QUdpSocket* obj) { delete obj; } - bool bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port); - bool bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QUdpSocket::BindMode mode); - bool bind(QUdpSocket* theWrappedObject, unsigned short port = 0); - bool bind(QUdpSocket* theWrappedObject, unsigned short port, QUdpSocket::BindMode mode); - bool hasPendingDatagrams(QUdpSocket* theWrappedObject) const; - qint64 pendingDatagramSize(QUdpSocket* theWrappedObject) const; - qint64 readDatagram(QUdpSocket* theWrappedObject, char* data, qint64 maxlen, QHostAddress* host = 0, unsigned short* port = 0); - qint64 writeDatagram(QUdpSocket* theWrappedObject, const QByteArray& datagram, const QHostAddress& host, unsigned short port); -}; - - - - - -class PythonQtShell_QUrlInfo : public QUrlInfo -{ -public: - PythonQtShell_QUrlInfo():QUrlInfo(),_wrapper(NULL) {}; - PythonQtShell_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable):QUrlInfo(name, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable),_wrapper(NULL) {}; - PythonQtShell_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable):QUrlInfo(url, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable),_wrapper(NULL) {}; - PythonQtShell_QUrlInfo(const QUrlInfo& ui):QUrlInfo(ui),_wrapper(NULL) {}; - -virtual void setDir(bool b); -virtual void setFile(bool b); -virtual void setGroup(const QString& s); -virtual void setLastModified(const QDateTime& dt); -virtual void setName(const QString& name); -virtual void setOwner(const QString& s); -virtual void setPermissions(int p); -virtual void setReadable(bool b); -virtual void setSize(qint64 size); -virtual void setSymLink(bool b); -virtual void setWritable(bool b); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QUrlInfo : public QUrlInfo -{ public: -inline void promoted_setDir(bool b) { QUrlInfo::setDir(b); } -inline void promoted_setFile(bool b) { QUrlInfo::setFile(b); } -inline void promoted_setGroup(const QString& s) { QUrlInfo::setGroup(s); } -inline void promoted_setLastModified(const QDateTime& dt) { QUrlInfo::setLastModified(dt); } -inline void promoted_setName(const QString& name) { QUrlInfo::setName(name); } -inline void promoted_setOwner(const QString& s) { QUrlInfo::setOwner(s); } -inline void promoted_setPermissions(int p) { QUrlInfo::setPermissions(p); } -inline void promoted_setReadable(bool b) { QUrlInfo::setReadable(b); } -inline void promoted_setSize(qint64 size) { QUrlInfo::setSize(size); } -inline void promoted_setSymLink(bool b) { QUrlInfo::setSymLink(b); } -inline void promoted_setWritable(bool b) { QUrlInfo::setWritable(b); } -}; - -class PythonQtWrapper_QUrlInfo : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PermissionSpec ) -enum PermissionSpec{ - ReadOwner = QUrlInfo::ReadOwner, WriteOwner = QUrlInfo::WriteOwner, ExeOwner = QUrlInfo::ExeOwner, ReadGroup = QUrlInfo::ReadGroup, WriteGroup = QUrlInfo::WriteGroup, ExeGroup = QUrlInfo::ExeGroup, ReadOther = QUrlInfo::ReadOther, WriteOther = QUrlInfo::WriteOther, ExeOther = QUrlInfo::ExeOther}; -public slots: -QUrlInfo* new_QUrlInfo(); -QUrlInfo* new_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable); -QUrlInfo* new_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable); -QUrlInfo* new_QUrlInfo(const QUrlInfo& ui); -void delete_QUrlInfo(QUrlInfo* obj) { delete obj; } - bool static_QUrlInfo_equal(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); - bool static_QUrlInfo_greaterThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); - QString group(QUrlInfo* theWrappedObject) const; - bool isDir(QUrlInfo* theWrappedObject) const; - bool isExecutable(QUrlInfo* theWrappedObject) const; - bool isFile(QUrlInfo* theWrappedObject) const; - bool isReadable(QUrlInfo* theWrappedObject) const; - bool isSymLink(QUrlInfo* theWrappedObject) const; - bool isValid(QUrlInfo* theWrappedObject) const; - bool isWritable(QUrlInfo* theWrappedObject) const; - QDateTime lastModified(QUrlInfo* theWrappedObject) const; - QDateTime lastRead(QUrlInfo* theWrappedObject) const; - bool static_QUrlInfo_lessThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); - QString name(QUrlInfo* theWrappedObject) const; - bool __ne__(QUrlInfo* theWrappedObject, const QUrlInfo& i) const; - bool __eq__(QUrlInfo* theWrappedObject, const QUrlInfo& i) const; - QString owner(QUrlInfo* theWrappedObject) const; - int permissions(QUrlInfo* theWrappedObject) const; - void setDir(QUrlInfo* theWrappedObject, bool b); - void setFile(QUrlInfo* theWrappedObject, bool b); - void setGroup(QUrlInfo* theWrappedObject, const QString& s); - void setLastModified(QUrlInfo* theWrappedObject, const QDateTime& dt); - void setLastRead(QUrlInfo* theWrappedObject, const QDateTime& dt); - void setName(QUrlInfo* theWrappedObject, const QString& name); - void setOwner(QUrlInfo* theWrappedObject, const QString& s); - void setPermissions(QUrlInfo* theWrappedObject, int p); - void setReadable(QUrlInfo* theWrappedObject, bool b); - void setSize(QUrlInfo* theWrappedObject, qint64 size); - void setSymLink(QUrlInfo* theWrappedObject, bool b); - void setWritable(QUrlInfo* theWrappedObject, bool b); - qint64 size(QUrlInfo* theWrappedObject) const; -}; - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp deleted file mode 100644 index dbf0a7b75..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp +++ /dev/null @@ -1,974 +0,0 @@ -#include "com_trolltech_qt_network1.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QSslKey* PythonQtWrapper_QSslKey::new_QSslKey() -{ -return new QSslKey(); } - -QSslKey* PythonQtWrapper_QSslKey::new_QSslKey(QIODevice* device, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, QSsl::KeyType type, const QByteArray& passPhrase) -{ -return new QSslKey(device, algorithm, format, type, passPhrase); } - -QSslKey* PythonQtWrapper_QSslKey::new_QSslKey(const QByteArray& encoded, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, QSsl::KeyType type, const QByteArray& passPhrase) -{ -return new QSslKey(encoded, algorithm, format, type, passPhrase); } - -QSslKey* PythonQtWrapper_QSslKey::new_QSslKey(const QSslKey& other) -{ -return new QSslKey(other); } - -QSsl::KeyAlgorithm PythonQtWrapper_QSslKey::algorithm(QSslKey* theWrappedObject) const -{ - return ( theWrappedObject->algorithm()); -} - -QByteArray PythonQtWrapper_QSslKey::toDer(QSslKey* theWrappedObject, const QByteArray& passPhrase) const -{ - return ( theWrappedObject->toDer(passPhrase)); -} - -QSslKey* PythonQtWrapper_QSslKey::operator_assign(QSslKey* theWrappedObject, const QSslKey& other) -{ - return &( (*theWrappedObject)= other); -} - -void PythonQtWrapper_QSslKey::clear(QSslKey* theWrappedObject) -{ - ( theWrappedObject->clear()); -} - -int PythonQtWrapper_QSslKey::length(QSslKey* theWrappedObject) const -{ - return ( theWrappedObject->length()); -} - -QByteArray PythonQtWrapper_QSslKey::toPem(QSslKey* theWrappedObject, const QByteArray& passPhrase) const -{ - return ( theWrappedObject->toPem(passPhrase)); -} - -Qt::HANDLE PythonQtWrapper_QSslKey::handle(QSslKey* theWrappedObject) const -{ - return ( theWrappedObject->handle()); -} - -QSsl::KeyType PythonQtWrapper_QSslKey::type(QSslKey* theWrappedObject) const -{ - return ( theWrappedObject->type()); -} - -bool PythonQtWrapper_QSslKey::operator_equal(QSslKey* theWrappedObject, const QSslKey& key) const -{ - return ( (*theWrappedObject)== key); -} - -bool PythonQtWrapper_QSslKey::isNull(QSslKey* theWrappedObject) const -{ - return ( theWrappedObject->isNull()); -} - -QString PythonQtWrapper_QSslKey::py_toString(QSslKey* obj) { - QString result; -#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -#endif - return result; -} - - - -bool PythonQtShell_QSslSocket::canReadLine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::canReadLine(); -} -qint64 PythonQtShell_QSslSocket::bytesToWrite() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::bytesToWrite(); -} -qint64 PythonQtShell_QSslSocket::readData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::readData(data, maxlen); -} -qint64 PythonQtShell_QSslSocket::writeData(const char* data, qint64 len) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::writeData(data, len); -} -qint64 PythonQtShell_QSslSocket::bytesAvailable() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::bytesAvailable(); -} -bool PythonQtShell_QSslSocket::waitForBytesWritten(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::waitForBytesWritten(msecs); -} -bool PythonQtShell_QSslSocket::atEnd() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::atEnd(); -} -void PythonQtShell_QSslSocket::close() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSslSocket::close(); -} -bool PythonQtShell_QSslSocket::waitForReadyRead(int msecs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::waitForReadyRead(msecs); -} -qint64 PythonQtShell_QSslSocket::readLineData(char* data, qint64 maxlen) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::readLineData(data, maxlen); -} -bool PythonQtShell_QSslSocket::isSequential() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::isSequential(); -} -qint64 PythonQtShell_QSslSocket::size() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::size(); -} -qint64 PythonQtShell_QSslSocket::pos() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::pos(); -} -bool PythonQtShell_QSslSocket::reset() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::reset(); -} -bool PythonQtShell_QSslSocket::open(QIODevice::OpenMode mode) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::open(mode); -} -bool PythonQtShell_QSslSocket::seek(qint64 pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::seek(pos); -} -void PythonQtShell_QSslSocket::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSslSocket::childEvent(arg__1); -} -void PythonQtShell_QSslSocket::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSslSocket::timerEvent(arg__1); -} -void PythonQtShell_QSslSocket::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - QSslSocket::customEvent(arg__1); -} -bool PythonQtShell_QSslSocket::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::event(arg__1); -} -bool PythonQtShell_QSslSocket::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QSslSocket::eventFilter(arg__1, arg__2); -} -QSslSocket* PythonQtWrapper_QSslSocket::new_QSslSocket(QObject* parent) -{ -return new PythonQtShell_QSslSocket(parent); } - -QSslSocket::SslMode PythonQtWrapper_QSslSocket::mode(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->mode()); -} - -void PythonQtWrapper_QSslSocket::setProtocol(QSslSocket* theWrappedObject, QSsl::SslProtocol protocol) -{ - ( theWrappedObject->setProtocol(protocol)); -} - -void PythonQtWrapper_QSslSocket::static_QSslSocket_setDefaultCiphers(const QList& ciphers) -{ - (QSslSocket::setDefaultCiphers(ciphers)); -} - -void PythonQtWrapper_QSslSocket::static_QSslSocket_setDefaultCaCertificates(const QList& certificates) -{ - (QSslSocket::setDefaultCaCertificates(certificates)); -} - -bool PythonQtWrapper_QSslSocket::static_QSslSocket_supportsSsl() -{ - return (QSslSocket::supportsSsl()); -} - -void PythonQtWrapper_QSslSocket::setSocketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option, const QVariant& value) -{ - ( theWrappedObject->setSocketOption(option, value)); -} - -bool PythonQtWrapper_QSslSocket::isEncrypted(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->isEncrypted()); -} - -bool PythonQtWrapper_QSslSocket::canReadLine(QSslSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_canReadLine()); -} - -QSslKey PythonQtWrapper_QSslSocket::privateKey(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->privateKey()); -} - -QList PythonQtWrapper_QSslSocket::static_QSslSocket_defaultCaCertificates() -{ - return (QSslSocket::defaultCaCertificates()); -} - -QSslConfiguration PythonQtWrapper_QSslSocket::sslConfiguration(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->sslConfiguration()); -} - -qint64 PythonQtWrapper_QSslSocket::bytesToWrite(QSslSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_bytesToWrite()); -} - -void PythonQtWrapper_QSslSocket::setCaCertificates(QSslSocket* theWrappedObject, const QList& certificates) -{ - ( theWrappedObject->setCaCertificates(certificates)); -} - -QList PythonQtWrapper_QSslSocket::static_QSslSocket_defaultCiphers() -{ - return (QSslSocket::defaultCiphers()); -} - -QList PythonQtWrapper_QSslSocket::sslErrors(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->sslErrors()); -} - -void PythonQtWrapper_QSslSocket::connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, const QString& sslPeerName, QIODevice::OpenMode mode) -{ - ( theWrappedObject->connectToHostEncrypted(hostName, port, sslPeerName, mode)); -} - -void PythonQtWrapper_QSslSocket::connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode) -{ - ( theWrappedObject->connectToHostEncrypted(hostName, port, mode)); -} - -void PythonQtWrapper_QSslSocket::ignoreSslErrors(QSslSocket* theWrappedObject, const QList& errors) -{ - ( theWrappedObject->ignoreSslErrors(errors)); -} - -void PythonQtWrapper_QSslSocket::setCiphers(QSslSocket* theWrappedObject, const QString& ciphers) -{ - ( theWrappedObject->setCiphers(ciphers)); -} - -qint64 PythonQtWrapper_QSslSocket::encryptedBytesAvailable(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->encryptedBytesAvailable()); -} - -void PythonQtWrapper_QSslSocket::setCiphers(QSslSocket* theWrappedObject, const QList& ciphers) -{ - ( theWrappedObject->setCiphers(ciphers)); -} - -void PythonQtWrapper_QSslSocket::addCaCertificates(QSslSocket* theWrappedObject, const QList& certificates) -{ - ( theWrappedObject->addCaCertificates(certificates)); -} - -bool PythonQtWrapper_QSslSocket::addCaCertificates(QSslSocket* theWrappedObject, const QString& path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax) -{ - return ( theWrappedObject->addCaCertificates(path, format, syntax)); -} - -bool PythonQtWrapper_QSslSocket::flush(QSslSocket* theWrappedObject) -{ - return ( theWrappedObject->flush()); -} - -QSslSocket::PeerVerifyMode PythonQtWrapper_QSslSocket::peerVerifyMode(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->peerVerifyMode()); -} - -QSslCertificate PythonQtWrapper_QSslSocket::peerCertificate(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->peerCertificate()); -} - -bool PythonQtWrapper_QSslSocket::setSocketDescriptor(QSslSocket* theWrappedObject, int socketDescriptor, QAbstractSocket::SocketState state, QIODevice::OpenMode openMode) -{ - return ( theWrappedObject->setSocketDescriptor(socketDescriptor, state, openMode)); -} - -QList PythonQtWrapper_QSslSocket::caCertificates(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->caCertificates()); -} - -void PythonQtWrapper_QSslSocket::setPrivateKey(QSslSocket* theWrappedObject, const QString& fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray& passPhrase) -{ - ( theWrappedObject->setPrivateKey(fileName, algorithm, format, passPhrase)); -} - -qint64 PythonQtWrapper_QSslSocket::readData(QSslSocket* theWrappedObject, char* data, qint64 maxlen) -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_readData(data, maxlen)); -} - -QSslCipher PythonQtWrapper_QSslSocket::sessionCipher(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->sessionCipher()); -} - -void PythonQtWrapper_QSslSocket::setPrivateKey(QSslSocket* theWrappedObject, const QSslKey& key) -{ - ( theWrappedObject->setPrivateKey(key)); -} - -void PythonQtWrapper_QSslSocket::setReadBufferSize(QSslSocket* theWrappedObject, qint64 size) -{ - ( theWrappedObject->setReadBufferSize(size)); -} - -void PythonQtWrapper_QSslSocket::addCaCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate) -{ - ( theWrappedObject->addCaCertificate(certificate)); -} - -qint64 PythonQtWrapper_QSslSocket::writeData(QSslSocket* theWrappedObject, const char* data, qint64 len) -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_writeData(data, len)); -} - -void PythonQtWrapper_QSslSocket::setSslConfiguration(QSslSocket* theWrappedObject, const QSslConfiguration& config) -{ - ( theWrappedObject->setSslConfiguration(config)); -} - -void PythonQtWrapper_QSslSocket::setPeerVerifyDepth(QSslSocket* theWrappedObject, int depth) -{ - ( theWrappedObject->setPeerVerifyDepth(depth)); -} - -void PythonQtWrapper_QSslSocket::abort(QSslSocket* theWrappedObject) -{ - ( theWrappedObject->abort()); -} - -qint64 PythonQtWrapper_QSslSocket::bytesAvailable(QSslSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_bytesAvailable()); -} - -bool PythonQtWrapper_QSslSocket::waitForDisconnected(QSslSocket* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForDisconnected(msecs)); -} - -bool PythonQtWrapper_QSslSocket::waitForBytesWritten(QSslSocket* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_waitForBytesWritten(msecs)); -} - -bool PythonQtWrapper_QSslSocket::atEnd(QSslSocket* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_atEnd()); -} - -void PythonQtWrapper_QSslSocket::static_QSslSocket_addDefaultCaCertificate(const QSslCertificate& certificate) -{ - (QSslSocket::addDefaultCaCertificate(certificate)); -} - -void PythonQtWrapper_QSslSocket::setPeerVerifyMode(QSslSocket* theWrappedObject, QSslSocket::PeerVerifyMode mode) -{ - ( theWrappedObject->setPeerVerifyMode(mode)); -} - -void PythonQtWrapper_QSslSocket::setLocalCertificate(QSslSocket* theWrappedObject, const QString& fileName, QSsl::EncodingFormat format) -{ - ( theWrappedObject->setLocalCertificate(fileName, format)); -} - -void PythonQtWrapper_QSslSocket::setLocalCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate) -{ - ( theWrappedObject->setLocalCertificate(certificate)); -} - -QList PythonQtWrapper_QSslSocket::static_QSslSocket_supportedCiphers() -{ - return (QSslSocket::supportedCiphers()); -} - -qint64 PythonQtWrapper_QSslSocket::encryptedBytesToWrite(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->encryptedBytesToWrite()); -} - -void PythonQtWrapper_QSslSocket::close(QSslSocket* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_close()); -} - -bool PythonQtWrapper_QSslSocket::waitForConnected(QSslSocket* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForConnected(msecs)); -} - -QList PythonQtWrapper_QSslSocket::static_QSslSocket_systemCaCertificates() -{ - return (QSslSocket::systemCaCertificates()); -} - -bool PythonQtWrapper_QSslSocket::waitForReadyRead(QSslSocket* theWrappedObject, int msecs) -{ - return ( ((PythonQtPublicPromoter_QSslSocket*)theWrappedObject)->promoted_waitForReadyRead(msecs)); -} - -QSslCertificate PythonQtWrapper_QSslSocket::localCertificate(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->localCertificate()); -} - -bool PythonQtWrapper_QSslSocket::waitForEncrypted(QSslSocket* theWrappedObject, int msecs) -{ - return ( theWrappedObject->waitForEncrypted(msecs)); -} - -QVariant PythonQtWrapper_QSslSocket::socketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option) -{ - return ( theWrappedObject->socketOption(option)); -} - -QList PythonQtWrapper_QSslSocket::peerCertificateChain(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->peerCertificateChain()); -} - -QSsl::SslProtocol PythonQtWrapper_QSslSocket::protocol(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->protocol()); -} - -int PythonQtWrapper_QSslSocket::peerVerifyDepth(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->peerVerifyDepth()); -} - -void PythonQtWrapper_QSslSocket::static_QSslSocket_addDefaultCaCertificates(const QList& certificates) -{ - (QSslSocket::addDefaultCaCertificates(certificates)); -} - -bool PythonQtWrapper_QSslSocket::static_QSslSocket_addDefaultCaCertificates(const QString& path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax) -{ - return (QSslSocket::addDefaultCaCertificates(path, format, syntax)); -} - -QList PythonQtWrapper_QSslSocket::ciphers(QSslSocket* theWrappedObject) const -{ - return ( theWrappedObject->ciphers()); -} - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h deleted file mode 100644 index d5ca517b1..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h +++ /dev/null @@ -1,168 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - - - -class PythonQtWrapper_QSslKey : public QObject -{ Q_OBJECT -public: -public slots: -QSslKey* new_QSslKey(); -QSslKey* new_QSslKey(QIODevice* device, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, QSsl::KeyType type = QSsl::PrivateKey, const QByteArray& passPhrase = QByteArray()); -QSslKey* new_QSslKey(const QByteArray& encoded, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format = QSsl::Pem, QSsl::KeyType type = QSsl::PrivateKey, const QByteArray& passPhrase = QByteArray()); -QSslKey* new_QSslKey(const QSslKey& other); -void delete_QSslKey(QSslKey* obj) { delete obj; } - QSsl::KeyAlgorithm algorithm(QSslKey* theWrappedObject) const; - QByteArray toDer(QSslKey* theWrappedObject, const QByteArray& passPhrase = QByteArray()) const; - QSslKey* operator_assign(QSslKey* theWrappedObject, const QSslKey& other); - void clear(QSslKey* theWrappedObject); - int length(QSslKey* theWrappedObject) const; - QByteArray toPem(QSslKey* theWrappedObject, const QByteArray& passPhrase = QByteArray()) const; - Qt::HANDLE handle(QSslKey* theWrappedObject) const; - QSsl::KeyType type(QSslKey* theWrappedObject) const; - bool operator_equal(QSslKey* theWrappedObject, const QSslKey& key) const; - bool isNull(QSslKey* theWrappedObject) const; - QString py_toString(QSslKey*); -}; - - - - - -class PythonQtShell_QSslSocket : public QSslSocket -{ -public: - PythonQtShell_QSslSocket(QObject* parent = 0):QSslSocket(parent),_wrapper(NULL) {}; - -virtual bool canReadLine() const; -virtual qint64 bytesToWrite() const; -virtual qint64 readData(char* data, qint64 maxlen); -virtual qint64 writeData(const char* data, qint64 len); -virtual qint64 bytesAvailable() const; -virtual bool waitForBytesWritten(int msecs = 30000); -virtual bool atEnd() const; -virtual void close(); -virtual bool waitForReadyRead(int msecs = 30000); -virtual qint64 readLineData(char* data, qint64 maxlen); -virtual bool isSequential() const; -virtual qint64 size() const; -virtual qint64 pos() const; -virtual bool reset(); -virtual bool open(QIODevice::OpenMode mode); -virtual bool seek(qint64 pos); -virtual void childEvent(QChildEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_QSslSocket : public QSslSocket -{ public: -inline bool promoted_canReadLine() const { return QSslSocket::canReadLine(); } -inline qint64 promoted_bytesToWrite() const { return QSslSocket::bytesToWrite(); } -inline qint64 promoted_readData(char* data, qint64 maxlen) { return QSslSocket::readData(data, maxlen); } -inline qint64 promoted_writeData(const char* data, qint64 len) { return QSslSocket::writeData(data, len); } -inline qint64 promoted_bytesAvailable() const { return QSslSocket::bytesAvailable(); } -inline bool promoted_waitForBytesWritten(int msecs = 30000) { return QSslSocket::waitForBytesWritten(msecs); } -inline bool promoted_atEnd() const { return QSslSocket::atEnd(); } -inline void promoted_close() { QSslSocket::close(); } -inline bool promoted_waitForReadyRead(int msecs = 30000) { return QSslSocket::waitForReadyRead(msecs); } -}; - -class PythonQtWrapper_QSslSocket : public QObject -{ Q_OBJECT -public: -Q_ENUMS(SslMode PeerVerifyMode ) -enum SslMode{ - UnencryptedMode = QSslSocket::UnencryptedMode, SslClientMode = QSslSocket::SslClientMode, SslServerMode = QSslSocket::SslServerMode}; -enum PeerVerifyMode{ - VerifyNone = QSslSocket::VerifyNone, QueryPeer = QSslSocket::QueryPeer, VerifyPeer = QSslSocket::VerifyPeer, AutoVerifyPeer = QSslSocket::AutoVerifyPeer}; -public slots: -QSslSocket* new_QSslSocket(QObject* parent = 0); -void delete_QSslSocket(QSslSocket* obj) { delete obj; } - QSslSocket::SslMode mode(QSslSocket* theWrappedObject) const; - void setProtocol(QSslSocket* theWrappedObject, QSsl::SslProtocol protocol); - void static_QSslSocket_setDefaultCiphers(const QList& ciphers); - void static_QSslSocket_setDefaultCaCertificates(const QList& certificates); - bool static_QSslSocket_supportsSsl(); - void setSocketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option, const QVariant& value); - bool isEncrypted(QSslSocket* theWrappedObject) const; - bool canReadLine(QSslSocket* theWrappedObject) const; - QSslKey privateKey(QSslSocket* theWrappedObject) const; - QList static_QSslSocket_defaultCaCertificates(); - QSslConfiguration sslConfiguration(QSslSocket* theWrappedObject) const; - qint64 bytesToWrite(QSslSocket* theWrappedObject) const; - void setCaCertificates(QSslSocket* theWrappedObject, const QList& certificates); - QList static_QSslSocket_defaultCiphers(); - QList sslErrors(QSslSocket* theWrappedObject) const; - void connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, const QString& sslPeerName, QIODevice::OpenMode mode = QIODevice::ReadWrite); - void connectToHostEncrypted(QSslSocket* theWrappedObject, const QString& hostName, unsigned short port, QIODevice::OpenMode mode = QIODevice::ReadWrite); - void ignoreSslErrors(QSslSocket* theWrappedObject, const QList& errors); - void setCiphers(QSslSocket* theWrappedObject, const QString& ciphers); - qint64 encryptedBytesAvailable(QSslSocket* theWrappedObject) const; - void setCiphers(QSslSocket* theWrappedObject, const QList& ciphers); - void addCaCertificates(QSslSocket* theWrappedObject, const QList& certificates); - bool addCaCertificates(QSslSocket* theWrappedObject, const QString& path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString); - bool flush(QSslSocket* theWrappedObject); - QSslSocket::PeerVerifyMode peerVerifyMode(QSslSocket* theWrappedObject) const; - QSslCertificate peerCertificate(QSslSocket* theWrappedObject) const; - bool setSocketDescriptor(QSslSocket* theWrappedObject, int socketDescriptor, QAbstractSocket::SocketState state = QAbstractSocket::ConnectedState, QIODevice::OpenMode openMode = QIODevice::ReadWrite); - QList caCertificates(QSslSocket* theWrappedObject) const; - void setPrivateKey(QSslSocket* theWrappedObject, const QString& fileName, QSsl::KeyAlgorithm algorithm = QSsl::Rsa, QSsl::EncodingFormat format = QSsl::Pem, const QByteArray& passPhrase = QByteArray()); - qint64 readData(QSslSocket* theWrappedObject, char* data, qint64 maxlen); - QSslCipher sessionCipher(QSslSocket* theWrappedObject) const; - void setPrivateKey(QSslSocket* theWrappedObject, const QSslKey& key); - void setReadBufferSize(QSslSocket* theWrappedObject, qint64 size); - void addCaCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate); - qint64 writeData(QSslSocket* theWrappedObject, const char* data, qint64 len); - void setSslConfiguration(QSslSocket* theWrappedObject, const QSslConfiguration& config); - void setPeerVerifyDepth(QSslSocket* theWrappedObject, int depth); - void abort(QSslSocket* theWrappedObject); - qint64 bytesAvailable(QSslSocket* theWrappedObject) const; - bool waitForDisconnected(QSslSocket* theWrappedObject, int msecs = 30000); - bool waitForBytesWritten(QSslSocket* theWrappedObject, int msecs = 30000); - bool atEnd(QSslSocket* theWrappedObject) const; - void static_QSslSocket_addDefaultCaCertificate(const QSslCertificate& certificate); - void setPeerVerifyMode(QSslSocket* theWrappedObject, QSslSocket::PeerVerifyMode mode); - void setLocalCertificate(QSslSocket* theWrappedObject, const QString& fileName, QSsl::EncodingFormat format = QSsl::Pem); - void setLocalCertificate(QSslSocket* theWrappedObject, const QSslCertificate& certificate); - QList static_QSslSocket_supportedCiphers(); - qint64 encryptedBytesToWrite(QSslSocket* theWrappedObject) const; - void close(QSslSocket* theWrappedObject); - bool waitForConnected(QSslSocket* theWrappedObject, int msecs = 30000); - QList static_QSslSocket_systemCaCertificates(); - bool waitForReadyRead(QSslSocket* theWrappedObject, int msecs = 30000); - QSslCertificate localCertificate(QSslSocket* theWrappedObject) const; - bool waitForEncrypted(QSslSocket* theWrappedObject, int msecs = 30000); - QVariant socketOption(QSslSocket* theWrappedObject, QAbstractSocket::SocketOption option); - QList peerCertificateChain(QSslSocket* theWrappedObject) const; - QSsl::SslProtocol protocol(QSslSocket* theWrappedObject) const; - int peerVerifyDepth(QSslSocket* theWrappedObject) const; - void static_QSslSocket_addDefaultCaCertificates(const QList& certificates); - bool static_QSslSocket_addDefaultCaCertificates(const QString& path, QSsl::EncodingFormat format = QSsl::Pem, QRegExp::PatternSyntax syntax = QRegExp::FixedString); - QList ciphers(QSslSocket* theWrappedObject) const; -}; - - - - diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp deleted file mode 100644 index 292b192d1..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include "com_trolltech_qt_network_init.h" -#include "com_trolltech_qt_network0.h" - - -void PythonQt_init_QtNetwork(PyObject* module) { -PythonQt::priv()->registerClass(&QAbstractNetworkCache::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QAbstractSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QAuthenticator", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QFtp::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QHostAddress", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_NonZero|PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QHostInfo", "", "QtNetwork", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QHttp::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QHttpHeader", "", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QHttpRequestHeader", "QHttpHeader", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QHttpResponseHeader", "QHttpHeader", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QIPv6Address", "", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QLocalServer::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QLocalSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QNetworkAccessManager::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QNetworkAddressEntry", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QNetworkCacheMetaData", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QNetworkCookie", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QNetworkCookieJar::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QNetworkDiskCache::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QNetworkInterface", "", "QtNetwork", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QNetworkProxy", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QNetworkProxyFactory", "", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QNetworkProxyQuery", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&QNetworkReply::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QNetworkRequest", "", "QtNetwork", PythonQtCreateObject, NULL, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerCPPClass("QSsl", "", "QtNetwork", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&QTcpServer::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QTcpSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&QUdpSocket::staticMetaObject, "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("QUrlInfo", "", "QtNetwork", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); - -} diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.h deleted file mode 100644 index a57091fa9..000000000 --- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef COM_TROLLTECH_QT_NETWORK_INIT_H -#define COM_TROLLTECH_QT_NETWORK_INIT_H - -#include "PythonQtSystem.h" - -PYTHONQT_EXPORT void PythonQt_init_QtNetwork(PyObject* module); - -#endif // COM_TROLLTECH_QT_NETWORK_INIT_H diff --git a/3rdparty/pythonqt/generator/CMakeLists.txt b/3rdparty/pythonqt/generator/CMakeLists.txt deleted file mode 100644 index 51448f312..000000000 --- a/3rdparty/pythonqt/generator/CMakeLists.txt +++ /dev/null @@ -1,79 +0,0 @@ -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/parser) -include_directories(${CMAKE_CURRENT_SOURCE_DIR}/parser/rpp) - -add_definitions(-DRXX_ALLOCATOR_INIT_0) - -set(SOURCES - abstractmetabuilder.cpp - abstractmetalang.cpp - asttoxml.cpp - customtypes.cpp - fileout.cpp - generator.cpp - generatorset.cpp - generatorsetqtscript.cpp - main.cpp - metajava.cpp - metaqtscriptbuilder.cpp - metaqtscript.cpp - parser/ast.cpp - parser/binder.cpp - parser/class_compiler.cpp - parser/codemodel.cpp - parser/codemodel_finder.cpp - parser/compiler_utils.cpp - parser/control.cpp - parser/declarator_compiler.cpp - parser/default_visitor.cpp - parser/dumptree.cpp - parser/lexer.cpp - parser/list.cpp - parser/name_compiler.cpp - parser/parser.cpp - parser/rpp/builtin-macros.cpp - parser/rpp/preprocessor.cpp - parser/smallobject.cpp - parser/tokens.cpp - parser/type_compiler.cpp - parser/visitor.cpp - prigenerator.cpp - reporthandler.cpp - setupgenerator.cpp - shellgenerator.cpp - shellheadergenerator.cpp - shellimplgenerator.cpp - typeparser.cpp - typesystem.cpp -) - -set(HEADERS - fileout.h - generator.h - generatorset.h - generatorsetqtscript.h - prigenerator.h - setupgenerator.h - shellgenerator.h - shellheadergenerator.h - shellimplgenerator.h -) - -set(RESOURCES - generator.qrc -) - -qt4_wrap_cpp(MOC ${HEADERS}) -qt4_add_resources(QRC ${RESOURCES}) - -add_executable(pythonqt-generator - EXCLUDE_FROM_ALL - ${SOURCES} - ${MOC} - ${QRC} -) - -target_link_libraries(pythonqt-generator - ${QT_LIBRARIES} -) - diff --git a/3rdparty/pythonqt/generator/abstractmetabuilder.cpp b/3rdparty/pythonqt/generator/abstractmetabuilder.cpp deleted file mode 100644 index 847e5ecae..000000000 --- a/3rdparty/pythonqt/generator/abstractmetabuilder.cpp +++ /dev/null @@ -1,2634 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "abstractmetabuilder.h" -#include "reporthandler.h" - -#include "ast.h" -#include "binder.h" -#include "control.h" -#include "default_visitor.h" -#include "dumptree.h" -#include "lexer.h" -#include "parser.h" -#include "tokens.h" - -#include -#include -#include -#include -#include -#include - -static QString strip_template_args(const QString &name) -{ - int pos = name.indexOf('<'); - return pos < 0 ? name : name.left(pos); -} - -static QHash *operator_names; -QString rename_operator(const QString &oper) -{ - QString op = oper.trimmed(); - if (!operator_names) { - operator_names = new QHash; - - operator_names->insert("+", "__add__"); - operator_names->insert("-", "__sub__"); - operator_names->insert("*", "__mul__"); - operator_names->insert("/", "__div__"); - operator_names->insert("%", "__mod__"); - operator_names->insert("&", "__and__"); - operator_names->insert("|", "__or__"); - operator_names->insert("^", "__xor__"); - operator_names->insert("~", "__invert__"); - operator_names->insert("<<", "__lshift__"); - operator_names->insert(">>", "__rshift__"); - - // assigments - operator_names->insert("=", "assign"); - operator_names->insert("+=", "__iadd__"); - operator_names->insert("-=", "__isub__"); - operator_names->insert("*=", "__imul__"); - operator_names->insert("/=", "__idiv__"); - operator_names->insert("%=", "__imod__"); - operator_names->insert("&=", "__iand__"); - operator_names->insert("|=", "__ior__"); - operator_names->insert("^=", "__ixor__"); - operator_names->insert("<<=", "__ilshift__"); - operator_names->insert(">>=", "__irshift__"); - - // Logical - operator_names->insert("&&", "logical_and"); - operator_names->insert("||", "logical_or"); - operator_names->insert("!", "not"); - - // incr/decr - operator_names->insert("++", "increment"); - operator_names->insert("--", "decrement"); - - // compare - operator_names->insert("<", "__lt__"); - operator_names->insert(">", "__gt__"); - operator_names->insert("<=", "__le__"); - operator_names->insert(">=", "__ge__"); - operator_names->insert("!=", "__ne__"); - operator_names->insert("==", "__eq__"); - - // other - operator_names->insert("[]", "subscript"); - operator_names->insert("->", "pointer"); - } - - if (!operator_names->contains(op)) { - TypeDatabase *tb = TypeDatabase::instance(); - - TypeParser::Info typeInfo = TypeParser::parse(op); - QString cast_to_name = typeInfo.qualified_name.join("::"); - TypeEntry *te = tb->findType(cast_to_name); - if ((te && te->codeGeneration() == TypeEntry::GenerateNothing) - || tb->isClassRejected(cast_to_name)) { - return QString(); - } else if (te) { - return "operator_cast_" + typeInfo.qualified_name.join("_"); - } else { - ReportHandler::warning(QString("unknown operator '%1'").arg(op)); - return "operator " + op; - } - } - - QString r = operator_names->value(op); - if (r.startsWith("__")) { - return r; - } else { - return "operator_" + r; - } -} - -AbstractMetaBuilder::AbstractMetaBuilder() - : m_current_class(0) -{ -} - -void AbstractMetaBuilder::checkFunctionModifications() -{ - TypeDatabase *types = TypeDatabase::instance(); - SingleTypeEntryHash entryHash = types->entries(); - QList entries = entryHash.values(); - foreach (TypeEntry *entry, entries) { - if (entry == 0) - continue; - if (!entry->isComplex() || entry->codeGeneration() == TypeEntry::GenerateNothing) - continue; - - ComplexTypeEntry *centry = static_cast(entry); - FunctionModificationList modifications = centry->functionModifications(); - - foreach (FunctionModification modification, modifications) { - QString signature = modification.signature; - - QString name = signature.trimmed(); - name = name.mid(0, signature.indexOf("(")); - - AbstractMetaClass *clazz = m_meta_classes.findClass(centry->qualifiedCppName()); - if (clazz == 0) - continue; - - AbstractMetaFunctionList functions = clazz->functions(); - bool found = false; - QStringList possibleSignatures; - foreach (AbstractMetaFunction *function, functions) { - if (function->minimalSignature() == signature && function->implementingClass() == clazz) { - found = true; - break; - } - - if (function->originalName() == name) - possibleSignatures.append(function->minimalSignature() + " in " + function->implementingClass()->name()); - } - - if (!found) { - QString warning - = QString("signature '%1' for function modification in '%2' not found. Possible candidates: %3") - .arg(signature) - .arg(clazz->qualifiedCppName()) - .arg(possibleSignatures.join(", ")); - - ReportHandler::warning(warning); - } - } - } -} - -AbstractMetaClass *AbstractMetaBuilder::argumentToClass(ArgumentModelItem argument) -{ - AbstractMetaClass *returned = 0; - bool ok = false; - AbstractMetaType *type = translateType(argument->type(), &ok); - if (ok && type != 0 && type->typeEntry() != 0 && type->typeEntry()->isComplex()) { - const TypeEntry *entry = type->typeEntry(); - returned = m_meta_classes.findClass(entry->name()); - } - delete type; - return returned; -} - -/** - * Checks the argument of a hash function and flags the type if it is a complex type - */ -void AbstractMetaBuilder::registerHashFunction(FunctionModelItem function_item) -{ - ArgumentList arguments = function_item->arguments(); - if (arguments.size() == 1) { - if (AbstractMetaClass *cls = argumentToClass(arguments.at(0))) - cls->setHasHashFunction(true); - } -} - -/** - * Check if a class has a debug stream operator that can be used as toString - */ - -void AbstractMetaBuilder::registerToStringCapability(FunctionModelItem function_item) -{ - ArgumentList arguments = function_item->arguments(); - if (arguments.size() == 2) { - if (arguments.at(0)->type().toString() == "QDebug"){ - ArgumentModelItem arg = arguments.at(1); - if (AbstractMetaClass *cls = argumentToClass(arg)) { - if (arg->type().indirections() < 2 && cls->name()!="QObject") { - cls->setToStringCapability(function_item); - } - } - } - } -} - -void AbstractMetaBuilder::traverseCompareOperator(FunctionModelItem item) { - ArgumentList arguments = item->arguments(); - if (arguments.size() == 2 && item->accessPolicy() == CodeModel::Public) { - AbstractMetaClass *comparer_class = argumentToClass(arguments.at(0)); - AbstractMetaClass *compared_class = argumentToClass(arguments.at(1)); - if (comparer_class != 0 && compared_class != 0) { - AbstractMetaClass *old_current_class = m_current_class; - m_current_class = comparer_class; - - AbstractMetaFunction *meta_function = traverseFunction(item); - if (meta_function != 0 && !meta_function->isInvalid()) { - // Strip away first argument, since that is the containing object - AbstractMetaArgumentList arguments = meta_function->arguments(); - arguments.pop_front(); - meta_function->setArguments(arguments); - - meta_function->setFunctionType(AbstractMetaFunction::GlobalScopeFunction); - - meta_function->setOriginalAttributes(meta_function->attributes()); - setupFunctionDefaults(meta_function, comparer_class); - - comparer_class->addFunction(meta_function); - } else if (meta_function != 0) { - delete meta_function; - } - - m_current_class = old_current_class; - } - } -} - -void AbstractMetaBuilder::traverseStreamOperator(FunctionModelItem item) -{ - ArgumentList arguments = item->arguments(); - if (arguments.size() == 2 && item->accessPolicy() == CodeModel::Public) { - AbstractMetaClass *streamClass = argumentToClass(arguments.at(0)); - AbstractMetaClass *streamedClass = argumentToClass(arguments.at(1)); - - if (streamClass != 0 && streamedClass != 0 - && (streamClass->name() == "QDataStream" || streamClass->name() == "QTextStream")) { - AbstractMetaClass *old_current_class = m_current_class; - m_current_class = streamedClass; - AbstractMetaFunction *streamFunction = traverseFunction(item); - - if (streamFunction != 0 && !streamFunction->isInvalid()) { - QString name = item->name(); - streamFunction->setFunctionType(AbstractMetaFunction::GlobalScopeFunction); - - if (name.endsWith("<<")) - streamFunction->setName("writeTo"); - else - streamFunction->setName("readFrom"); - - // Strip away last argument, since that is the containing object - AbstractMetaArgumentList arguments = streamFunction->arguments(); - arguments.pop_back(); - streamFunction->setArguments(arguments); - - *streamFunction += AbstractMetaAttributes::Final; - *streamFunction += AbstractMetaAttributes::Public; - streamFunction->setOriginalAttributes(streamFunction->attributes()); - - streamFunction->setType(0); - - setupFunctionDefaults(streamFunction, streamedClass); - - streamedClass->addFunction(streamFunction); - streamedClass->typeEntry()->addExtraInclude(streamClass->typeEntry()->include()); - - m_current_class = old_current_class; - } - } - } -} - -void AbstractMetaBuilder::traverseBinaryArithmeticOperator(FunctionModelItem item) -{ - ArgumentList arguments = item->arguments(); - if (arguments.size() == 2 && item->accessPolicy() == CodeModel::Public) { - AbstractMetaClass *aClass = argumentToClass(arguments.at(0)); - AbstractMetaClass *bClass = argumentToClass(arguments.at(1)); - - if (!aClass) return; - - AbstractMetaClass *old_current_class = m_current_class; - m_current_class = aClass; - AbstractMetaFunction *streamFunction = traverseFunction(item); - if (streamFunction != 0 && !streamFunction->isInvalid()) { - QString name = rename_operator(item->name().mid(8)); - if (name.isEmpty()) return; - - streamFunction->setFunctionType(AbstractMetaFunction::GlobalScopeFunction); - streamFunction->setName(name); - - // Strip away the first argument, since that is the operator object - AbstractMetaArgumentList arguments = streamFunction->arguments(); - arguments.removeFirst(); - streamFunction->setArguments(arguments); - - *streamFunction += AbstractMetaAttributes::Final; - *streamFunction += AbstractMetaAttributes::Public; - streamFunction->setOriginalAttributes(streamFunction->attributes()); - - setupFunctionDefaults(streamFunction, aClass); - - aClass->addFunction(streamFunction); - if (bClass) { - aClass->typeEntry()->addExtraInclude(bClass->typeEntry()->include()); - } - - m_current_class = old_current_class; - } - } -} - -void AbstractMetaBuilder::fixQObjectForScope(TypeDatabase *types, - NamespaceModelItem scope) -{ - foreach (ClassModelItem item, scope->classes()) { - QString qualified_name = item->qualifiedName().join("::"); - TypeEntry *entry = types->findType(qualified_name); - if (entry) { - if (isQObject(qualified_name) && entry->isComplex()) { - ((ComplexTypeEntry *) entry)->setQObject(true); - } - } - } - - foreach (NamespaceModelItem item, scope->namespaceMap().values()) { - if (scope != item) - fixQObjectForScope(types, item); - } -} - -static bool class_less_than(AbstractMetaClass *a, AbstractMetaClass *b) -{ - return a->name() < b->name(); -} - - -void AbstractMetaBuilder::sortLists() -{ - qSort(m_meta_classes.begin(), m_meta_classes.end(), class_less_than); - foreach (AbstractMetaClass *cls, m_meta_classes) { - cls->sortFunctions(); - } -} - -bool AbstractMetaBuilder::build() -{ - Q_ASSERT(!m_file_name.isEmpty()); - - QFile file(m_file_name); - - if (!file.open(QFile::ReadOnly)) - return false; - - QTextStream stream(&file); - stream.setCodec(QTextCodec::codecForName("UTF-8")); - QByteArray contents = stream.readAll().toUtf8(); - file.close(); - - Control control; - Parser p(&control); - pool __pool; - - TranslationUnitAST *ast = p.parse(contents, contents.size(), &__pool); - - CodeModel model; - Binder binder(&model, p.location()); - m_dom = binder.run(ast); - - pushScope(model_dynamic_cast(m_dom)); - - QHash typeMap = m_dom->classMap(); - - - // fix up QObject's in the type system.. - TypeDatabase *types = TypeDatabase::instance(); - fixQObjectForScope(types, model_dynamic_cast(m_dom)); - - - // Start the generation... - foreach (ClassModelItem item, typeMap.values()) { - AbstractMetaClass *cls = traverseClass(item); - addAbstractMetaClass(cls); - } - - - QHash namespaceMap = m_dom->namespaceMap(); - foreach (NamespaceModelItem item, namespaceMap.values()) { - AbstractMetaClass *meta_class = traverseNamespace(item); - if (meta_class) - m_meta_classes << meta_class; - } - - - // Some trickery to support global-namespace enums... - QHash enumMap = m_dom->enumMap(); - m_current_class = 0; - foreach (EnumModelItem item, enumMap) { - AbstractMetaEnum *meta_enum = traverseEnum(item, 0, QSet()); - - if (meta_enum) { - QString package = meta_enum->typeEntry()->javaPackage(); - QString globalName = TypeDatabase::globalNamespaceClassName(meta_enum->typeEntry()); - - AbstractMetaClass *global = m_meta_classes.findClass(package + "." + globalName); - if (!global) { - ComplexTypeEntry *gte = new ObjectTypeEntry(globalName); - gte->setTargetLangPackage(meta_enum->typeEntry()->javaPackage()); - gte->setCodeGeneration(meta_enum->typeEntry()->codeGeneration()); - global = createMetaClass(); - global->setTypeEntry(gte); - *global += AbstractMetaAttributes::Final; - *global += AbstractMetaAttributes::Public; - *global += AbstractMetaAttributes::Fake; - - m_meta_classes << global; - } - - global->addEnum(meta_enum); - meta_enum->setEnclosingClass(global); - meta_enum->typeEntry()->setQualifier(globalName); - - // Global enums should be public despite not having public - // identifiers so we'll fix the original attributes here. - meta_enum->setOriginalAttributes(meta_enum->attributes()); - } - - - } - - - // Go through all typedefs to see if we have defined any - // specific typedefs to be used as classes. - TypeAliasList typeAliases = m_dom->typeAliases(); - foreach (TypeAliasModelItem typeAlias, typeAliases) { - AbstractMetaClass *cls = traverseTypeAlias(typeAlias); - addAbstractMetaClass(cls); - } - - - - - foreach (AbstractMetaClass *cls, m_meta_classes) { - if (!cls->isInterface() && !cls->isNamespace()) { - setupInheritance(cls); - } - } - - - foreach (AbstractMetaClass *cls, m_meta_classes) { - cls->fixFunctions(); - - if (cls->typeEntry() == 0) { - ReportHandler::warning(QString("class '%1' does not have an entry in the type system") - .arg(cls->name())); - } else { - if (!cls->hasConstructors() && !cls->isFinalInCpp() && !cls->isInterface() && !cls->isNamespace()) - cls->addDefaultConstructor(); - } - - if (cls->isAbstract() && !cls->isInterface()) { - cls->typeEntry()->setLookupName(cls->typeEntry()->targetLangName() + "$ConcreteWrapper"); - } - } - - QList entries = TypeDatabase::instance()->entries().values(); - foreach (const TypeEntry *entry, entries) { - if (entry->isPrimitive()) - continue; - - if ((entry->isValue() || entry->isObject()) - && !entry->isString() - && !entry->isChar() - && !entry->isContainer() - && !entry->isCustom() - && !entry->isVariant() - && !m_meta_classes.findClass(entry->qualifiedCppName())) { - ReportHandler::warning(QString("type '%1' is specified in typesystem, but not defined. This could potentially lead to compilation errors.") - .arg(entry->qualifiedCppName())); - } - - if (entry->isEnum()) { - QString pkg = entry->javaPackage(); - QString name = (pkg.isEmpty() ? QString() : pkg + ".") - + ((EnumTypeEntry *) entry)->javaQualifier(); - AbstractMetaClass *cls = m_meta_classes.findClass(name); - - if (!cls) { - ReportHandler::warning(QString("namespace '%1' for enum '%2' is not declared") - .arg(name).arg(entry->targetLangName())); - } else { - AbstractMetaEnum *e = cls->findEnum(entry->targetLangName()); - if (!e) - ReportHandler::warning(QString("enum '%1' is specified in typesystem, " - "but not declared") - .arg(entry->qualifiedCppName())); - } - } - } - - { - FunctionList hash_functions = m_dom->findFunctions("qHash"); - foreach (FunctionModelItem item, hash_functions) { - registerHashFunction(item); - } - } - - { - FunctionList hash_functions = m_dom->findFunctions("operator<<"); - foreach (FunctionModelItem item, hash_functions) { - registerToStringCapability(item); - } - } - - { - FunctionList compare_operators = m_dom->findFunctions("operator==") - + m_dom->findFunctions("operator<=") - + m_dom->findFunctions("operator>=") - + m_dom->findFunctions("operator<") - + m_dom->findFunctions("operator>"); - foreach (FunctionModelItem item, compare_operators) { - traverseCompareOperator(item); - } - } - - { - FunctionList stream_operators = - m_dom->findFunctions("operator+") + m_dom->findFunctions("operator-") - + m_dom->findFunctions("operator/") + m_dom->findFunctions("operator*") - + m_dom->findFunctions("operator&") + m_dom->findFunctions("operator|") - + m_dom->findFunctions("operator%") + m_dom->findFunctions("operator^"); - foreach (FunctionModelItem item, stream_operators) { - traverseBinaryArithmeticOperator(item); - } - } - { - FunctionList stream_operators = m_dom->findFunctions("operator<<") + m_dom->findFunctions("operator>>"); - foreach (FunctionModelItem item, stream_operators) { - traverseStreamOperator(item); - } - } - - figureOutEnumValues(); - figureOutDefaultEnumArguments(); - checkFunctionModifications(); - - foreach (AbstractMetaClass *cls, m_meta_classes) { - setupEquals(cls); - setupComparable(cls); - setupClonable(cls); - } - - dumpLog(); - - sortLists(); - - return true; -} - - -void AbstractMetaBuilder::addAbstractMetaClass(AbstractMetaClass *cls) -{ - if (!cls) - return; - - cls->setOriginalAttributes(cls->attributes()); - if (cls->typeEntry()->isContainer()) { - m_templates << cls; - } else { - m_meta_classes << cls; - if (cls->typeEntry()->designatedInterface()) { - AbstractMetaClass *interface = cls->extractInterface(); - m_meta_classes << interface; - ReportHandler::debugSparse(QString(" -> interface '%1'").arg(interface->name())); - } - } -} - - -AbstractMetaClass *AbstractMetaBuilder::traverseNamespace(NamespaceModelItem namespace_item) -{ - QString namespace_name = (!m_namespace_prefix.isEmpty() ? m_namespace_prefix + "::" : QString()) + namespace_item->name(); - NamespaceTypeEntry *type = TypeDatabase::instance()->findNamespaceType(namespace_name); - - if (TypeDatabase::instance()->isClassRejected(namespace_name)) { - m_rejected_classes.insert(namespace_name, GenerationDisabled); - return 0; - } - - if (!type) { - ReportHandler::warning(QString("namespace '%1' does not have a type entry") - .arg(namespace_name)); - return 0; - } - - AbstractMetaClass *meta_class = createMetaClass(); - meta_class->setTypeEntry(type); - - *meta_class += AbstractMetaAttributes::Public; - - m_current_class = meta_class; - - ReportHandler::debugSparse(QString("namespace '%1.%2'") - .arg(meta_class->package()) - .arg(namespace_item->name())); - - traverseEnums(model_dynamic_cast(namespace_item), meta_class, namespace_item->enumsDeclarations()); - traverseFunctions(model_dynamic_cast(namespace_item), meta_class); -// traverseClasses(model_dynamic_cast(namespace_item)); - - pushScope(model_dynamic_cast(namespace_item)); - m_namespace_prefix = currentScope()->qualifiedName().join("::"); - - - ClassList classes = namespace_item->classes(); - foreach (ClassModelItem cls, classes) { - AbstractMetaClass *mjc = traverseClass(cls); - addAbstractMetaClass(mjc); - } - - // Go through all typedefs to see if we have defined any - // specific typedefs to be used as classes. - TypeAliasList typeAliases = namespace_item->typeAliases(); - foreach (TypeAliasModelItem typeAlias, typeAliases) { - AbstractMetaClass *cls = traverseTypeAlias(typeAlias); - addAbstractMetaClass(cls); - } - - - - // Traverse namespaces recursively - QList inner_namespaces = namespace_item->namespaceMap().values(); - foreach (const NamespaceModelItem &ni, inner_namespaces) { - AbstractMetaClass *mjc = traverseNamespace(ni); - addAbstractMetaClass(mjc); - } - - m_current_class = 0; - - - popScope(); - m_namespace_prefix = currentScope()->qualifiedName().join("::"); - - if (!type->include().isValid()) { - QFileInfo info(namespace_item->fileName()); - type->setInclude(Include(Include::IncludePath, info.fileName())); - } - - return meta_class; -} - -struct Operator -{ - enum Type { Plus, ShiftLeft, None }; - - Operator() : type(None) { } - - int calculate(int x) { - switch (type) { - case Plus: return x + value; - case ShiftLeft: return x << value; - case None: return x; - } - return x; - } - - Type type; - int value; -}; - - - -Operator findOperator(QString *s) { - const char *names[] = { - "+", - "<<" - }; - - for (int i=0; i 0) { - bool ok; - QString right = str.mid(splitPoint + name.length()); - Operator op; - op.value = right.toInt(&ok); - if (ok) { - op.type = Operator::Type(i); - *s = str.left(splitPoint).trimmed(); - return op; - } - } - } - return Operator(); -} - -int AbstractMetaBuilder::figureOutEnumValue(const QString &stringValue, - int oldValuevalue, - AbstractMetaEnum *meta_enum, - AbstractMetaFunction *meta_function) -{ - if (stringValue.isEmpty()) - return oldValuevalue; - - QStringList stringValues = stringValue.split("|"); - - int returnValue = 0; - - bool matched = false; - - for (int i=0; i 0 && s.at(0) == QLatin1Char('0')) - v = s.toUInt(&ok, 0); - else - v = s.toInt(&ok); - - if (ok) { - matched = true; - - } else if (m_enum_values.contains(s)) { - v = m_enum_values[s]->value(); - matched = true; - - } else { - AbstractMetaEnumValue *ev = 0; - - if (meta_enum && (ev = meta_enum->values().find(s))) { - v = ev->value(); - matched = true; - - } else if (meta_enum && (ev = meta_enum->enclosingClass()->findEnumValue(s, meta_enum))) { - v = ev->value(); - matched = true; - - } else { - if (meta_enum) - ReportHandler::warning("unhandled enum value: " + s + " in " - + meta_enum->enclosingClass()->name() + "::" - + meta_enum->name()); - else - ReportHandler::warning("unhandled enum value: Unknown enum"); - } - } - - if (matched) - returnValue |= op.calculate(v); - } - - if (!matched) { - QString warn = QString("unmatched enum %1").arg(stringValue); - - if (meta_function != 0) { - warn += QString(" when parsing default value of '%1' in class '%2'") - .arg(meta_function->name()) - .arg(meta_function->implementingClass()->name()); - } - - ReportHandler::warning(warn); - returnValue = oldValuevalue; - } - - return returnValue; -} - -void AbstractMetaBuilder::figureOutEnumValuesForClass(AbstractMetaClass *meta_class, - QSet *classes) -{ - AbstractMetaClass *base = meta_class->baseClass(); - - if (base != 0 && !classes->contains(base)) - figureOutEnumValuesForClass(base, classes); - - if (classes->contains(meta_class)) - return; - - AbstractMetaEnumList enums = meta_class->enums(); - foreach (AbstractMetaEnum *e, enums) { - if (!e) { - ReportHandler::warning("bad enum in class " + meta_class->name()); - continue; - } - AbstractMetaEnumValueList lst = e->values(); - int value = 0; - for (int i=0; istringValue(), value, e); - lst.at(i)->setValue(value); - value++; - } - - // Check for duplicate values... - EnumTypeEntry *ete = e->typeEntry(); - if (!ete->forceInteger()) { - QHash entries; - foreach (AbstractMetaEnumValue *v, lst) { - - bool vRejected = ete->isEnumValueRejected(v->name()); - - AbstractMetaEnumValue *current = entries.value(v->value()); - if (current) { - bool currentRejected = ete->isEnumValueRejected(current->name()); - if (!currentRejected && !vRejected) { - ReportHandler::warning( - QString("duplicate enum values: %1::%2, %3 and %4 are %5, already rejected: (%6)") - .arg(meta_class->name()) - .arg(e->name()) - .arg(v->name()) - .arg(entries[v->value()]->name()) - .arg(v->value()) - .arg(ete->enumValueRejections().join(", "))); - continue; - } - } - - if (!vRejected) - entries[v->value()] = v; - } - - // Entries now contain all the original entries, no - // rejected ones... Use this to generate the enumValueRedirection table. - foreach (AbstractMetaEnumValue *reject, lst) { - if (!ete->isEnumValueRejected(reject->name())) - continue; - - AbstractMetaEnumValue *used = entries.value(reject->value()); - if (!used) { - ReportHandler::warning( - QString::fromLatin1("Rejected enum has no alternative...: %1::%2") - .arg(meta_class->name()) - .arg(reject->name())); - continue; - } - ete->addEnumValueRedirection(reject->name(), used->name()); - } - - } - } - - - - *classes += meta_class; -} - - -void AbstractMetaBuilder::figureOutEnumValues() -{ - // Keep a set of classes that we already traversed. We use this to - // enforce that we traverse base classes prior to subclasses. - QSet classes; - foreach (AbstractMetaClass *c, m_meta_classes) { - figureOutEnumValuesForClass(c, &classes); - } -} - -void AbstractMetaBuilder::figureOutDefaultEnumArguments() -{ - foreach (AbstractMetaClass *meta_class, m_meta_classes) { - foreach (AbstractMetaFunction *meta_function, meta_class->functions()) { - foreach (AbstractMetaArgument *arg, meta_function->arguments()) { - - QString expr = arg->defaultValueExpression(); - if (expr.isEmpty()) - continue; - - if (!meta_function->replacedDefaultExpression(meta_function->implementingClass(), - arg->argumentIndex()+1).isEmpty()) { - continue; - } - - QString new_expr = expr; - if (arg->type()->isEnum()) { - QStringList lst = expr.split(QLatin1String("::")); - if (lst.size() == 1) { - QVector classes(1, meta_class); - AbstractMetaEnum *e = 0; - while (!classes.isEmpty() && e == 0) { - if (classes.front() != 0) { - classes << classes.front()->baseClass(); - - AbstractMetaClassList interfaces = classes.front()->interfaces(); - foreach (AbstractMetaClass *interface, interfaces) - classes << interface->primaryInterfaceImplementor(); - - e = classes.front()->findEnumForValue(expr); - } - - classes.pop_front(); - } - - if (e != 0) { - new_expr = QString("%1.%2") - .arg(e->typeEntry()->qualifiedTargetLangName()) - .arg(expr); - } else { - ReportHandler::warning("Cannot find enum constant for value '" + expr + "' in '" + meta_class->name() + "' or any of its super classes"); - } - } else if (lst.size() == 2) { - AbstractMetaClass *cl = m_meta_classes.findClass(lst.at(0)); - if (!cl) { - ReportHandler::warning("missing required class for enums: " + lst.at(0)); - continue; - } - new_expr = QString("%1.%2.%3") - .arg(cl->typeEntry()->qualifiedTargetLangName()) - .arg(arg->type()->name()) - .arg(lst.at(1)); - } else { - ReportHandler::warning("bad default value passed to enum " + expr); - } - - } else if(arg->type()->isFlags()) { - const FlagsTypeEntry *flagsEntry = - static_cast(arg->type()->typeEntry()); - EnumTypeEntry *enumEntry = flagsEntry->originator(); - AbstractMetaEnum *meta_enum = m_meta_classes.findEnum(enumEntry); - if (!meta_enum) { - ReportHandler::warning("unknown required enum " + enumEntry->qualifiedCppName()); - continue; - } - - int value = figureOutEnumValue(expr, 0, meta_enum, meta_function); - new_expr = QString::number(value); - - } else if (arg->type()->isPrimitive()) { - AbstractMetaEnumValue *value = 0; - if (expr.contains("::")) - value = m_meta_classes.findEnumValue(expr); - if (!value) - value = meta_class->findEnumValue(expr, 0); - - if (value) { - new_expr = QString::number(value->value()); - } else if (expr.contains(QLatin1Char('+'))) { - new_expr = QString::number(figureOutEnumValue(expr, 0, 0)); - - } - - - - } - - arg->setDefaultValueExpression(new_expr); - } - } - } -} - - -AbstractMetaEnum *AbstractMetaBuilder::traverseEnum(EnumModelItem enum_item, AbstractMetaClass *enclosing, const QSet &enumsDeclarations) -{ - // Skipping private enums. - if (enum_item->accessPolicy() == CodeModel::Private) { - return 0; - } - - QString qualified_name = enum_item->qualifiedName().join("::"); - - TypeEntry *type_entry = TypeDatabase::instance()->findType(qualified_name); - QString enum_name = enum_item->name(); - - QString class_name; - if (m_current_class) - class_name = m_current_class->typeEntry()->qualifiedCppName(); - - if (TypeDatabase::instance()->isEnumRejected(class_name, enum_name)) { - m_rejected_enums.insert(qualified_name, GenerationDisabled); - return 0; - } - - if (!type_entry || !type_entry->isEnum()) { - QString context = m_current_class ? m_current_class->name() : QLatin1String(""); - ReportHandler::warning(QString("enum '%1' does not have a type entry or is not an enum") - .arg(qualified_name)); - m_rejected_enums.insert(qualified_name, NotInTypeSystem); - return 0; - } - - AbstractMetaEnum *meta_enum = createMetaEnum(); - if ( enumsDeclarations.contains(qualified_name) - || enumsDeclarations.contains(enum_name)) { - meta_enum->setHasQEnumsDeclaration(true); - } - - meta_enum->setTypeEntry((EnumTypeEntry *) type_entry); - switch (enum_item->accessPolicy()) { - case CodeModel::Public: *meta_enum += AbstractMetaAttributes::Public; break; - case CodeModel::Protected: *meta_enum += AbstractMetaAttributes::Protected; break; -// case CodeModel::Private: *meta_enum += AbstractMetaAttributes::Private; break; - default: break; - } - - ReportHandler::debugMedium(QString(" - traversing enum %1").arg(meta_enum->fullName())); - - foreach (EnumeratorModelItem value, enum_item->enumerators()) { - - AbstractMetaEnumValue *meta_enum_value = createMetaEnumValue(); - meta_enum_value->setName(value->name()); - // Deciding the enum value... - - meta_enum_value->setStringValue(value->value()); - meta_enum->addEnumValue(meta_enum_value); - - ReportHandler::debugFull(" - " + meta_enum_value->name() + " = " - + meta_enum_value->value()); - - // Add into global register... - if (enclosing) - m_enum_values[enclosing->name() + "::" + meta_enum_value->name()] = meta_enum_value; - else - m_enum_values[meta_enum_value->name()] = meta_enum_value; - } - - QFileInfo info(enum_item->fileName()); - meta_enum->typeEntry()->setInclude(Include(Include::IncludePath, info.fileName())); - - m_enums << meta_enum; - - return meta_enum; -} - -AbstractMetaClass *AbstractMetaBuilder::traverseTypeAlias(TypeAliasModelItem typeAlias) -{ - QString class_name = strip_template_args(typeAlias->name()); - - QString full_class_name = class_name; - // we have an inner class - if (m_current_class) { - full_class_name = strip_template_args(m_current_class->typeEntry()->qualifiedCppName()) - + "::" + full_class_name; - } - - // If we haven't specified anything for the typedef, then we don't care - ComplexTypeEntry *type = TypeDatabase::instance()->findComplexType(full_class_name); - if (type == 0) - return 0; - - if (type->isObject()) - static_cast(type)->setQObject(isQObject(strip_template_args(typeAlias->type().qualifiedName().join("::")))); - - AbstractMetaClass *meta_class = createMetaClass(); - meta_class->setTypeAlias(true); - meta_class->setTypeEntry(type); - meta_class->setBaseClassNames(QStringList() << typeAlias->type().qualifiedName().join("::")); - *meta_class += AbstractMetaAttributes::Public; - - // Set the default include file name - if (!type->include().isValid()) { - QFileInfo info(typeAlias->fileName()); - type->setInclude(Include(Include::IncludePath, info.fileName())); - } - - return meta_class; -} - -AbstractMetaClass *AbstractMetaBuilder::traverseClass(ClassModelItem class_item) -{ - QString class_name = strip_template_args(class_item->name()); - QString full_class_name = class_name; - - // we have inner an class - if (m_current_class) { - full_class_name = strip_template_args(m_current_class->typeEntry()->qualifiedCppName()) - + "::" + full_class_name; - } - - ComplexTypeEntry *type = TypeDatabase::instance()->findComplexType(full_class_name); - RejectReason reason = NoReason; - - if (full_class_name == "QMetaTypeId") { - // QtScript: record which types have been declared - int lpos = class_item->name().indexOf('<'); - int rpos = class_item->name().lastIndexOf('>'); - if ((lpos != -1) && (rpos != -1)) { - QString declared_typename = class_item->name().mid(lpos+1, rpos - lpos-1); - m_qmetatype_declared_typenames.insert(declared_typename); - } - } - - if (TypeDatabase::instance()->isClassRejected(full_class_name)) { - reason = GenerationDisabled; - } else if (!type) { - TypeEntry *te = TypeDatabase::instance()->findType(full_class_name); - if (te && !te->isComplex()) - reason = RedefinedToNotClass; - else - reason = NotInTypeSystem; - } else if (type->codeGeneration() == TypeEntry::GenerateNothing) { - reason = GenerationDisabled; - } - - if (reason != NoReason) { - m_rejected_classes.insert(full_class_name, reason); - return 0; - } - - if (type->isObject()) { - ((ObjectTypeEntry *)type)->setQObject(isQObject(full_class_name)); - } - - AbstractMetaClass *meta_class = createMetaClass(); - meta_class->setTypeEntry(type); - meta_class->setBaseClassNames(class_item->baseClasses()); - *meta_class += AbstractMetaAttributes::Public; - - AbstractMetaClass *old_current_class = m_current_class; - m_current_class = meta_class; - - if (type->isContainer()) { - ReportHandler::debugSparse(QString("container: '%1'").arg(full_class_name)); - } else { - ReportHandler::debugSparse(QString("class: '%1'").arg(meta_class->fullName())); - } - - TemplateParameterList template_parameters = class_item->templateParameters(); - QList template_args; - template_args.clear(); - for (int i=0; iname()); - param_type->setOrdinal(i); - template_args.append(param_type); - } - meta_class->setTemplateArguments(template_args); - - parseQ_Property(meta_class, class_item->propertyDeclarations()); - - traverseFunctions(model_dynamic_cast(class_item), meta_class); - traverseEnums(model_dynamic_cast(class_item), meta_class, class_item->enumsDeclarations()); - traverseFields(model_dynamic_cast(class_item), meta_class); - - // Inner classes - { - QList inner_classes = class_item->classMap().values(); - foreach (const ClassModelItem &ci, inner_classes) { - AbstractMetaClass *cl = traverseClass(ci); - if (cl) { - cl->setEnclosingClass(meta_class); - m_meta_classes << cl; - } - } - - } - - // Go through all typedefs to see if we have defined any - // specific typedefs to be used as classes. - TypeAliasList typeAliases = class_item->typeAliases(); - foreach (TypeAliasModelItem typeAlias, typeAliases) { - AbstractMetaClass *cls = traverseTypeAlias(typeAlias); - if (cls != 0) { - cls->setEnclosingClass(meta_class); - addAbstractMetaClass(cls); - } - } - - - m_current_class = old_current_class; - - // Set the default include file name - if (!type->include().isValid()) { - QFileInfo info(class_item->fileName()); - type->setInclude(Include(Include::IncludePath, info.fileName())); - } - - return meta_class; -} - -AbstractMetaField *AbstractMetaBuilder::traverseField(VariableModelItem field, const AbstractMetaClass *cls) -{ - QString field_name = field->name(); - QString class_name = m_current_class->typeEntry()->qualifiedCppName(); - - // Ignore friend decl. - if (field->isFriend()) - return 0; - - if (field->accessPolicy() == CodeModel::Private) - return 0; - - if (TypeDatabase::instance()->isFieldRejected(class_name, field_name)) { - m_rejected_fields.insert(class_name + "::" + field_name, GenerationDisabled); - return 0; - } - - - AbstractMetaField *meta_field = createMetaField(); - meta_field->setName(field_name); - meta_field->setEnclosingClass(cls); - - bool ok; - TypeInfo field_type = field->type(); - AbstractMetaType *meta_type = translateType(field_type, &ok); - - if (!meta_type || !ok) { - ReportHandler::warning(QString("skipping field '%1::%2' with unmatched type '%3'") - .arg(m_current_class->name()) - .arg(field_name) - .arg(TypeInfo::resolveType(field_type, currentScope()->toItem()).qualifiedName().join("::"))); - delete meta_field; - return 0; - } - - meta_field->setType(meta_type); - - uint attr = 0; - if (field->isStatic()) - attr |= AbstractMetaAttributes::Static; - - CodeModel::AccessPolicy policy = field->accessPolicy(); - if (policy == CodeModel::Public) - attr |= AbstractMetaAttributes::Public; - else if (policy == CodeModel::Protected) - attr |= AbstractMetaAttributes::Protected; - else - attr |= AbstractMetaAttributes::Private; - meta_field->setAttributes(attr); - - return meta_field; -} - -void AbstractMetaBuilder::traverseFields(ScopeModelItem scope_item, AbstractMetaClass *meta_class) -{ - foreach (VariableModelItem field, scope_item->variables()) { - AbstractMetaField *meta_field = traverseField(field, meta_class); - - if (meta_field) { - meta_field->setOriginalAttributes(meta_field->attributes()); - meta_class->addField(meta_field); - } - } -} - -void AbstractMetaBuilder::setupFunctionDefaults(AbstractMetaFunction *meta_function, AbstractMetaClass *meta_class) -{ - // Set the default value of the declaring class. This may be changed - // in fixFunctions later on - meta_function->setDeclaringClass(meta_class); - - // Some of the queries below depend on the implementing class being set - // to function properly. Such as function modifications - meta_function->setImplementingClass(meta_class); - - if (meta_function->name() == "operator_equal") - meta_class->setHasEqualsOperator(true); - - if (!meta_function->isFinalInTargetLang() - && meta_function->isRemovedFrom(meta_class, TypeSystem::TargetLangCode)) { - *meta_function += AbstractMetaAttributes::FinalInCpp; - } -} - -void AbstractMetaBuilder::traverseFunctions(ScopeModelItem scope_item, AbstractMetaClass *meta_class) -{ - foreach (FunctionModelItem function, scope_item->functions()) { - AbstractMetaFunction *meta_function = traverseFunction(function); - - if (meta_function) { - meta_function->setOriginalAttributes(meta_function->attributes()); - if (meta_class->isNamespace()) - *meta_function += AbstractMetaAttributes::Static; - - if (QPropertySpec *read = meta_class->propertySpecForRead(meta_function->name())) { - if (read->type() == meta_function->type()->typeEntry()) { - *meta_function += AbstractMetaAttributes::PropertyReader; - meta_function->setPropertySpec(read); -// printf("%s is reader for %s\n", -// qPrintable(meta_function->name()), -// qPrintable(read->name())); - } - } else if (QPropertySpec *write = - meta_class->propertySpecForWrite(meta_function->name())) { - if (write->type() == meta_function->arguments().at(0)->type()->typeEntry()) { - *meta_function += AbstractMetaAttributes::PropertyWriter; - meta_function->setPropertySpec(write); -// printf("%s is writer for %s\n", -// qPrintable(meta_function->name()), -// qPrintable(write->name())); - } - } else if (QPropertySpec *reset = - meta_class->propertySpecForReset(meta_function->name())) { - *meta_function += AbstractMetaAttributes::PropertyResetter; - meta_function->setPropertySpec(reset); -// printf("%s is resetter for %s\n", -// qPrintable(meta_function->name()), -// qPrintable(reset->name())); - } - - - bool isInvalidDestructor = meta_function->isDestructor() && meta_function->isPrivate(); - bool isInvalidConstructor = meta_function->isConstructor() - && (meta_function->isPrivate() || meta_function->isInvalid()); - if ((isInvalidDestructor || isInvalidConstructor) - && !meta_class->hasNonPrivateConstructor()) { - *meta_class += AbstractMetaAttributes::Final; - } else if (meta_function->isConstructor() && !meta_function->isPrivate()) { - *meta_class -= AbstractMetaAttributes::Final; - meta_class->setHasNonPrivateConstructor(true); - } - - // Classes with virtual destructors should always have a shell class - // (since we aren't registering the destructors, we need this extra check) - if (meta_function->isDestructor() && !meta_function->isFinal()) - meta_class->setForceShellClass(true); - - if (!meta_function->isDestructor() - && !meta_function->isInvalid() - && (!meta_function->isConstructor() || !meta_function->isPrivate())) { - - if (meta_class->typeEntry()->designatedInterface() && !meta_function->isPublic() - && !meta_function->isPrivate()) { - QString warn = QString("non-public function '%1' in interface '%2'") - .arg(meta_function->name()).arg(meta_class->name()); - ReportHandler::warning(warn); - - meta_function->setVisibility(AbstractMetaClass::Public); - } - - setupFunctionDefaults(meta_function, meta_class); - - if (meta_function->isSignal() && meta_class->hasSignal(meta_function)) { - QString warn = QString("signal '%1' in class '%2' is overloaded.") - .arg(meta_function->name()).arg(meta_class->name()); - ReportHandler::warning(warn); - } - - if (meta_function->isSignal() && !meta_class->isQObject()) { - QString warn = QString("signal '%1' in non-QObject class '%2'") - .arg(meta_function->name()).arg(meta_class->name()); - ReportHandler::warning(warn); - } - - meta_class->addFunction(meta_function); - } else if (meta_function->isDestructor() && !meta_function->isPublic()) { - meta_class->setHasPublicDestructor(false); - } - } - } -} - -bool AbstractMetaBuilder::setupInheritance(AbstractMetaClass *meta_class) -{ - Q_ASSERT(!meta_class->isInterface()); - - if (m_setup_inheritance_done.contains(meta_class)) - return true; - m_setup_inheritance_done.insert(meta_class); - - QStringList base_classes = meta_class->baseClassNames(); - - TypeDatabase *types = TypeDatabase::instance(); - - // we only support our own containers and ONLY if there is only one baseclass - if (base_classes.size() == 1 && base_classes.first().count('<') == 1) { - QStringList scope = meta_class->typeEntry()->qualifiedCppName().split("::"); - scope.removeLast(); - for (int i=scope.size(); i>=0; --i) { - QString prefix = i > 0 ? QStringList(scope.mid(0, i)).join("::") + "::" : QString(); - QString complete_name = prefix + base_classes.first(); - TypeParser::Info info = TypeParser::parse(complete_name); - QString base_name = info.qualified_name.join("::"); - - AbstractMetaClass *templ = 0; - foreach (AbstractMetaClass *c, m_templates) { - if (c->typeEntry()->name() == base_name) { - templ = c; - break; - } - } - - if (templ == 0) - templ = m_meta_classes.findClass(base_name); - - if (templ) { - setupInheritance(templ); - inheritTemplate(meta_class, templ, info); - return true; - } - } - - ReportHandler::warning(QString("template baseclass '%1' of '%2' is not known") - .arg(base_classes.first()) - .arg(meta_class->name())); - return false; - } - - int primary = -1; - int primaries = 0; - for (int i=0; iisClassRejected(base_classes.at(i))) - continue; - - TypeEntry *base_class_entry = types->findType(base_classes.at(i)); - if (!base_class_entry) { - ReportHandler::warning(QString("class '%1' inherits from unknown base class '%2'") - .arg(meta_class->name()).arg(base_classes.at(i))); - } - - // true for primary base class - else if (!base_class_entry->designatedInterface()) { - if (primaries > 0) { - ReportHandler::warning(QString("class '%1' has multiple primary base classes" - " '%2' and '%3'") - .arg(meta_class->name()) - .arg(base_classes.at(primary)) - .arg(base_class_entry->name())); - return false; - } - primaries++; - primary = i; - } - } - - if (primary >= 0) { - AbstractMetaClass *base_class = m_meta_classes.findClass(base_classes.at(primary)); - if (!base_class) { - ReportHandler::warning(QString("unknown baseclass for '%1': '%2'") - .arg(meta_class->name()) - .arg(base_classes.at(primary))); - return false; - } - meta_class->setBaseClass(base_class); - - if (meta_class->typeEntry()->designatedInterface() != 0 && meta_class->isQObject()) { - ReportHandler::warning(QString("QObject extended by interface type '%1'. This is not supported and the generated Java code will not compile.") - .arg(meta_class->name())); - } else if (meta_class->typeEntry()->designatedInterface() != 0 && base_class != 0 && !base_class->isInterface()) { - ReportHandler::warning(QString("object type '%1' extended by interface type '%2'. The resulting API will be less expressive than the original.") - .arg(base_class->name()) - .arg(meta_class->name())); - } - - } - - for (int i=0; iisClassRejected(base_classes.at(i))) - continue; - - if (i != primary) { - AbstractMetaClass *base_class = m_meta_classes.findClass(base_classes.at(i)); - if (base_class == 0) { - ReportHandler::warning(QString("class not found for setup inheritance '%1'").arg(base_classes.at(i))); - return false; - } - - setupInheritance(base_class); - - QString interface_name = InterfaceTypeEntry::interfaceName(base_class->name()); - AbstractMetaClass *iface = m_meta_classes.findClass(interface_name); - if (!iface) { - ReportHandler::warning(QString("unknown interface for '%1': '%2'") - .arg(meta_class->name()) - .arg(interface_name)); - return false; - } - meta_class->addInterface(iface); - - AbstractMetaClassList interfaces = iface->interfaces(); - foreach (AbstractMetaClass *iface, interfaces) - meta_class->addInterface(iface); - } - } - - return true; -} - -void AbstractMetaBuilder::traverseEnums(ScopeModelItem scope_item, AbstractMetaClass *meta_class, const QStringList &enumsDeclarations) -{ - EnumList enums = scope_item->enums(); - foreach (EnumModelItem enum_item, enums) { - AbstractMetaEnum *meta_enum = traverseEnum(enum_item, meta_class, QSet::fromList(enumsDeclarations)); - if (meta_enum) { - meta_enum->setOriginalAttributes(meta_enum->attributes()); - meta_class->addEnum(meta_enum); - meta_enum->setEnclosingClass(meta_class); - } - } -} - -AbstractMetaFunction *AbstractMetaBuilder::traverseFunction(FunctionModelItem function_item) -{ - QString function_name = function_item->name(); - QString class_name = m_current_class->typeEntry()->qualifiedCppName(); - - if (TypeDatabase::instance()->isFunctionRejected(class_name, function_name)) { - m_rejected_functions.insert(class_name + "::" + function_name, GenerationDisabled); - return 0; - } - - - Q_ASSERT(function_item->functionType() == CodeModel::Normal - || function_item->functionType() == CodeModel::Signal - || function_item->functionType() == CodeModel::Slot); - - if (function_item->isFriend()) - return 0; - - - QString cast_type; - - if (function_name.startsWith("operator")) { - function_name = rename_operator(function_name.mid(8)); - if (function_name.isEmpty()) { - m_rejected_functions.insert(class_name + "::" + function_name, - GenerationDisabled); - return 0; - } - if (function_name.contains("_cast_")) - cast_type = function_name.mid(14).trimmed(); - } - - AbstractMetaFunction *meta_function = createMetaFunction(); - meta_function->setConstant(function_item->isConstant()); - - ReportHandler::debugMedium(QString(" - %2()").arg(function_name)); - - meta_function->setName(function_name); - meta_function->setOriginalName(function_item->name()); - - if (function_item->isAbstract()) - *meta_function += AbstractMetaAttributes::Abstract; - - if (!meta_function->isAbstract()) - *meta_function += AbstractMetaAttributes::Native; - - if (!function_item->isVirtual()) - *meta_function += AbstractMetaAttributes::Final; - - if (function_item->isInvokable()) - *meta_function += AbstractMetaAttributes::Invokable; - - if (function_item->isStatic()) { - *meta_function += AbstractMetaAttributes::Static; - *meta_function += AbstractMetaAttributes::Final; - } - - // Access rights - if (function_item->accessPolicy() == CodeModel::Public) - *meta_function += AbstractMetaAttributes::Public; - else if (function_item->accessPolicy() == CodeModel::Private) - *meta_function += AbstractMetaAttributes::Private; - else - *meta_function += AbstractMetaAttributes::Protected; - - - QString stripped_class_name = class_name; - int cc_pos = stripped_class_name.lastIndexOf("::"); - if (cc_pos > 0) - stripped_class_name = stripped_class_name.mid(cc_pos + 2); - - TypeInfo function_type = function_item->type(); - if (function_name.startsWith('~')) { - meta_function->setFunctionType(AbstractMetaFunction::DestructorFunction); - meta_function->setInvalid(true); - } else if (strip_template_args(function_name) == stripped_class_name) { - meta_function->setFunctionType(AbstractMetaFunction::ConstructorFunction); - meta_function->setName(m_current_class->name()); - } else { - bool ok; - AbstractMetaType *type = 0; - - if (!cast_type.isEmpty()) { - TypeInfo info; - info.setQualifiedName(QStringList(cast_type)); - type = translateType(info, &ok); - } else { - type = translateType(function_type, &ok); - } - - if (!ok) { - ReportHandler::warning(QString("skipping function '%1::%2', unmatched return type '%3'") - .arg(class_name) - .arg(function_item->name()) - .arg(function_item->type().toString())); - m_rejected_functions[class_name + "::" + function_name] = - UnmatchedReturnType; - meta_function->setInvalid(true); - return meta_function; - } - meta_function->setType(type); - - if (function_item->functionType() == CodeModel::Signal) - meta_function->setFunctionType(AbstractMetaFunction::SignalFunction); - else if (function_item->functionType() == CodeModel::Slot) - meta_function->setFunctionType(AbstractMetaFunction::SlotFunction); - } - - ArgumentList arguments = function_item->arguments(); - AbstractMetaArgumentList meta_arguments; - - int first_default_argument = 0; - for (int i=0; itype(), &ok); - if (!meta_type || !ok) { - ReportHandler::warning(QString("skipping function '%1::%2', " - "unmatched parameter type '%3'") - .arg(class_name) - .arg(function_item->name()) - .arg(arg->type().toString())); - m_rejected_functions[class_name + "::" + function_name] = - UnmatchedArgumentType; - meta_function->setInvalid(true); - return meta_function; - } - AbstractMetaArgument *meta_argument = createMetaArgument(); - meta_argument->setType(meta_type); - meta_argument->setName(arg->name()); - meta_argument->setArgumentIndex(i); - meta_arguments << meta_argument; - } - - meta_function->setArguments(meta_arguments); - - // Find the correct default values - for (int i=0; idefaultValue()) { - QString expr = arg->defaultValueExpression(); - if (!expr.isEmpty()) - meta_arg->setOriginalDefaultValueExpression(expr); - - expr = translateDefaultValue(arg, meta_arg->type(), meta_function, m_current_class, i); - if (expr.isEmpty()) { - first_default_argument = i; - } else { - meta_arg->setDefaultValueExpression(expr); - } - - if (meta_arg->type()->isEnum() || meta_arg->type()->isFlags()) { - m_enum_default_arguments - << QPair(meta_arg, meta_function); - } - - } - } - - // If we where not able to translate the default argument make it - // reset all default arguments before this one too. - for (int i=0; isetDefaultValueExpression(QString()); - - if (ReportHandler::debugLevel() == ReportHandler::FullDebug) - foreach(AbstractMetaArgument *arg, meta_arguments) - ReportHandler::debugFull(" - " + arg->toString()); - - return meta_function; -} - - -AbstractMetaType *AbstractMetaBuilder::translateType(const TypeInfo &_typei, bool *ok, bool resolveType, bool resolveScope) -{ - Q_ASSERT(ok); - *ok = true; - - // 1. Test the type info without resolving typedefs in case this is present in the - // type system - TypeInfo typei; - if (resolveType) { - bool isok; - AbstractMetaType *t = translateType(_typei, &isok, false, resolveScope); - if (t != 0 && isok) - return t; - } - - if (!resolveType) - typei = _typei; - else { - // Go through all parts of the current scope (including global namespace) - // to resolve typedefs. The parser does not properly resolve typedefs in - // the global scope when they are referenced from inside a namespace. - // This is a work around to fix this bug since fixing it in resolveType - // seemed non-trivial - int i = m_scopes.size() - 1; - while (i >= 0) { - typei = TypeInfo::resolveType(_typei, m_scopes.at(i--)->toItem()); - if (typei.qualifiedName().join("::") != _typei.qualifiedName().join("::")) - break; - } - - } - - if (typei.isFunctionPointer()) { - *ok = false; - return 0; - } - - TypeParser::Info typeInfo = TypeParser::parse(typei.toString()); - if (typeInfo.is_busted) { - *ok = false; - return 0; - } - - // 2. Handle pointers specified as arrays with unspecified size - bool array_of_unspecified_size = false; - if (typeInfo.arrays.size() > 0) { - array_of_unspecified_size = true; - for (int i=0; i=0; --i) { - QString s = typeInfo.arrays.at(i); - bool isok; - - int elems = s.toInt(&isok); - if (!isok) - return 0; - - AbstractMetaType *arrayType = createMetaType(); - arrayType->setArrayElementCount(elems); - arrayType->setArrayElementType(elementType); - arrayType->setTypeEntry(new ArrayTypeEntry(elementType->typeEntry())); - decideUsagePattern(arrayType); - - elementType = arrayType; - } - - return elementType; - } else { - typeInfo.indirections += typeInfo.arrays.size(); - } - } - - QStringList qualifier_list = typeInfo.qualified_name; - if (qualifier_list.isEmpty()) { - ReportHandler::warning(QString("horribly broken type '%1'").arg(_typei.toString())); - *ok = false; - return 0; - } - - QString qualified_name = qualifier_list.join("::"); - QString name = qualifier_list.takeLast(); - - // 3. Special case 'void' type - if (name == "void" && typeInfo.indirections == 0) { - return 0; - } - - // 4. Special case QFlags (include instantiation in name) - if (qualified_name == "QFlags") - qualified_name = typeInfo.toString(); - - // 5. Try to find the type - const TypeEntry *type = TypeDatabase::instance()->findType(qualified_name); - - // 6. No? Try looking it up as a flags type - if (!type) - type = TypeDatabase::instance()->findFlagsType(qualified_name); - - // 7. No? Try looking it up as a container type - if (!type) - type = TypeDatabase::instance()->findContainerType(name); - - // 8. No? Check if the current class is a template and this type is one - // of the parameters. - if (type == 0 && m_current_class != 0) { - QList template_args = m_current_class->templateArguments(); - foreach (TypeEntry *te, template_args) { - if (te->name() == qualified_name) - type = te; - } - } - - // 9. Try finding the type by prefixing it with the current - // context and all baseclasses of the current context - if (!type && !TypeDatabase::instance()->isClassRejected(qualified_name) && m_current_class != 0 && resolveScope) { - QStringList contexts; - contexts.append(m_current_class->qualifiedCppName()); - contexts.append(currentScope()->qualifiedName().join("::")); - - - TypeInfo info = typei; - bool subclasses_done = false; - while (!contexts.isEmpty() && type == 0) { - //type = TypeDatabase::instance()->findType(contexts.at(0) + "::" + qualified_name); - - bool isok; - info.setQualifiedName(QStringList() << contexts.at(0) << qualified_name); - AbstractMetaType *t = translateType(info, &isok, true, false); - if (t != 0 && isok) - return t; - - ClassModelItem item = m_dom->findClass(contexts.at(0)); - if (item != 0) - contexts += item->baseClasses(); - contexts.pop_front(); - - // 10. Last resort: Special cased prefix of Qt namespace since the meta object implicitly inherits this, so - // enum types from there may be addressed without any scope resolution in properties. - if (contexts.size() == 0 && !subclasses_done) { - contexts << "Qt"; - subclasses_done = true; - } - } - - } - - if (!type) { - *ok = false; - return 0; - } - - // Used to for diagnostics later... - m_used_types << type; - - // These are only implicit and should not appear in code... - Q_ASSERT(!type->isInterface()); - - AbstractMetaType *meta_type = createMetaType(); - meta_type->setTypeEntry(type); - meta_type->setIndirections(typeInfo.indirections); - meta_type->setReference(typeInfo.is_reference); - meta_type->setConstant(typeInfo.is_constant); - meta_type->setOriginalTypeDescription(_typei.toString()); - decideUsagePattern(meta_type); - - if (meta_type->typeEntry()->isContainer()) { - ContainerTypeEntry::Type container_type = static_cast(type)->type(); - - if (container_type == ContainerTypeEntry::StringListContainer) { - TypeInfo info; - info.setQualifiedName(QStringList() << "QString"); - AbstractMetaType *targ_type = translateType(info, ok); - - Q_ASSERT(*ok); - Q_ASSERT(targ_type); - - meta_type->addInstantiation(targ_type); - meta_type->setInstantiationInCpp(false); - - } else { - foreach (const TypeParser::Info &ta, typeInfo.template_instantiations) { - TypeInfo info; - info.setConstant(ta.is_constant); - info.setReference(ta.is_reference); - info.setIndirections(ta.indirections); - - info.setFunctionPointer(false); - info.setQualifiedName(ta.instantiationName().split("::")); - - AbstractMetaType *targ_type = translateType(info, ok); - if (!(*ok)) { - delete meta_type; - return 0; - } - - meta_type->addInstantiation(targ_type); - } - } - - if (container_type == ContainerTypeEntry::ListContainer - || container_type == ContainerTypeEntry::VectorContainer - || container_type == ContainerTypeEntry::StringListContainer) { - Q_ASSERT(meta_type->instantiations().size() == 1); - } - } - - return meta_type; -} - -void AbstractMetaBuilder::decideUsagePattern(AbstractMetaType *meta_type) -{ - const TypeEntry *type = meta_type->typeEntry(); - - if (type->isPrimitive() && (meta_type->actualIndirections() == 0 - || (meta_type->isConstant() && meta_type->isReference() && meta_type->indirections() == 0))) { - meta_type->setTypeUsagePattern(AbstractMetaType::PrimitivePattern); - - } else if (type->isVoid()) { - meta_type->setTypeUsagePattern(AbstractMetaType::NativePointerPattern); - - } else if (type->isString() - && meta_type->indirections() == 0 - && (meta_type->isConstant() == meta_type->isReference() - || meta_type->isConstant())) { - meta_type->setTypeUsagePattern(AbstractMetaType::StringPattern); - - } else if (type->isChar() - && meta_type->indirections() == 0 - && meta_type->isConstant() == meta_type->isReference()) { - meta_type->setTypeUsagePattern(AbstractMetaType::CharPattern); - - } else if (type->isJObjectWrapper() - && meta_type->indirections() == 0 - && meta_type->isConstant() == meta_type->isReference()) { - meta_type->setTypeUsagePattern(AbstractMetaType::JObjectWrapperPattern); - - } else if (type->isVariant() - && meta_type->indirections() == 0 - && meta_type->isConstant() == meta_type->isReference()) { - meta_type->setTypeUsagePattern(AbstractMetaType::VariantPattern); - - } else if (type->isEnum() && meta_type->actualIndirections() == 0) { - meta_type->setTypeUsagePattern(AbstractMetaType::EnumPattern); - - } else if (type->isObject() - && meta_type->indirections() == 0 - && meta_type->isReference()) { - if (((ComplexTypeEntry *) type)->isQObject()) - meta_type->setTypeUsagePattern(AbstractMetaType::QObjectPattern); - else - meta_type->setTypeUsagePattern(AbstractMetaType::ObjectPattern); - - } else if (type->isObject() - && meta_type->indirections() == 1) { - if (((ComplexTypeEntry *) type)->isQObject()) - meta_type->setTypeUsagePattern(AbstractMetaType::QObjectPattern); - else - meta_type->setTypeUsagePattern(AbstractMetaType::ObjectPattern); - - // const-references to pointers can be passed as pointers - if (meta_type->isReference() && meta_type->isConstant()) { - meta_type->setReference(false); - meta_type->setConstant(false); - } - - } else if (type->isContainer() && meta_type->indirections() == 0) { - meta_type->setTypeUsagePattern(AbstractMetaType::ContainerPattern); - - } else if (type->isTemplateArgument()) { - - } else if (type->isFlags() - && meta_type->indirections() == 0 - && (meta_type->isConstant() == meta_type->isReference())) { - meta_type->setTypeUsagePattern(AbstractMetaType::FlagsPattern); - - } else if (type->isArray()) { - meta_type->setTypeUsagePattern(AbstractMetaType::ArrayPattern); - - } else if (type->isThread()) { - Q_ASSERT(meta_type->indirections() == 1); - meta_type->setTypeUsagePattern(AbstractMetaType::ThreadPattern); - - } else if (type->isValue() - && meta_type->indirections() == 0 - && (meta_type->isConstant() == meta_type->isReference() - || !meta_type->isReference())) { - meta_type->setTypeUsagePattern(AbstractMetaType::ValuePattern); - - } else { - meta_type->setTypeUsagePattern(AbstractMetaType::NativePointerPattern); - ReportHandler::debugFull(QString("native pointer pattern for '%1'") - .arg(meta_type->cppSignature())); - } -} - -QString AbstractMetaBuilder::translateDefaultValue(ArgumentModelItem item, AbstractMetaType *type, - AbstractMetaFunction *fnc, AbstractMetaClass *implementing_class, - int argument_index) -{ - QString function_name = fnc->name(); - QString class_name = implementing_class->name(); - - QString replaced_expression = fnc->replacedDefaultExpression(implementing_class, argument_index + 1); - if (fnc->removedDefaultExpression(implementing_class, argument_index +1)) - return ""; - if (!replaced_expression.isEmpty()) - return replaced_expression; - - QString expr = item->defaultValueExpression(); - if (type != 0 && type->isPrimitive()) { - if (type->name() == "boolean") { - if (expr == "false" || expr=="true") { - return expr; - } else { - bool ok = false; - int number = expr.toInt(&ok); - if (ok && number) - return "true"; - else - return "false"; - } - } else if (expr == "ULONG_MAX") { - return "Long.MAX_VALUE"; - } else if (expr == "QVariant::Invalid") { - return QString::number(QVariant::Invalid); - } else { - // This can be an enum or flag so I need to delay the - // translation untill all namespaces are completly - // processed. This is done in figureOutEnumValues() - return expr; - } - } else if (type != 0 && (type->isFlags() || type->isEnum())) { - // Same as with enum explanation above... - return expr; - - } else { - - // constructor or functioncall can be a bit tricky... - if (expr == "QVariant()" || expr == "QModelIndex()") { - return "null"; - } else if (expr == "QString()") { - return "null"; - } else if (expr.endsWith(")") && expr.contains("::")) { - TypeEntry *typeEntry = TypeDatabase::instance()->findType(expr.left(expr.indexOf("::"))); - if (typeEntry) - return typeEntry->qualifiedTargetLangName() + "." + expr.right(expr.length() - expr.indexOf("::") - 2); - } else if (expr.endsWith(")") && type != 0 && type->isValue()) { - int pos = expr.indexOf("("); - - TypeEntry *typeEntry = TypeDatabase::instance()->findType(expr.left(pos)); - if (typeEntry) - return "new " + typeEntry->qualifiedTargetLangName() + expr.right(expr.length() - pos); - else - return expr; - } else if (expr == "0") { - return "null"; - } else if (type != 0 && (type->isObject() || type->isValue() || expr.contains("::"))) { // like Qt::black passed to a QColor - TypeEntry *typeEntry = TypeDatabase::instance()->findType(expr.left(expr.indexOf("::"))); - - expr = expr.right(expr.length() - expr.indexOf("::") - 2); - if (typeEntry) { - return "new " + type->typeEntry()->qualifiedTargetLangName() + - "(" + typeEntry->qualifiedTargetLangName() + "." + expr + ")"; - } - } - } - - QString warn = QString("unsupported default value '%3' of argument in function '%1', class '%2'") - .arg(function_name).arg(class_name).arg(item->defaultValueExpression()); - ReportHandler::warning(warn); - - return QString(); -} - - -bool AbstractMetaBuilder::isQObject(const QString &qualified_name) -{ - if (qualified_name == "QObject") - return true; - - ClassModelItem class_item = m_dom->findClass(qualified_name); - - if (!class_item) { - QStringList names = qualified_name.split(QLatin1String("::")); - NamespaceModelItem ns = model_dynamic_cast(m_dom); - for (int i=0; inamespaceMap().value(names.at(i)); - if (ns && names.size() >= 2) - class_item = ns->findClass(names.at(names.size() - 1)); - } - - bool isqobject = class_item && class_item->extendsClass("QObject"); - - if (class_item && !isqobject) { - QStringList baseClasses = class_item->baseClasses(); - for (int i=0; imodel()->findItem(qualified_name, m_dom->toItem()); - return item && item->kind() == _EnumModelItem::__node_kind; -} - -AbstractMetaType *AbstractMetaBuilder::inheritTemplateType(const QList &template_types, - AbstractMetaType *meta_type, bool *ok) -{ - if (ok != 0) - *ok = true; - if (!meta_type || (!meta_type->typeEntry()->isTemplateArgument() && !meta_type->hasInstantiations())) - return meta_type ? meta_type->copy() : 0; - - AbstractMetaType *returned = meta_type->copy(); - returned->setOriginalTemplateType(meta_type->copy()); - - if (returned->typeEntry()->isTemplateArgument()) { - const TemplateArgumentEntry *tae = static_cast(returned->typeEntry()); - - // If the template is intantiated with void we special case this as rejecting the functions that use this - // parameter from the instantiation. - if (template_types.size() <= tae->ordinal() || template_types.at(tae->ordinal())->typeEntry()->name() == "void") { - if (ok != 0) - *ok = false; - return 0; - } - - AbstractMetaType *t = returned->copy(); - t->setTypeEntry(template_types.at(tae->ordinal())->typeEntry()); - t->setIndirections(template_types.at(tae->ordinal())->indirections() + t->indirections() - ? 1 - : 0); - decideUsagePattern(t); - - delete returned; - returned = inheritTemplateType(template_types, t, ok); - if (ok != 0 && !(*ok)) - return 0; - } - - if (returned->hasInstantiations()) { - QList instantiations = returned->instantiations(); - for (int i=0; isetInstantiations(instantiations); - } - - return returned; -} - -bool AbstractMetaBuilder::inheritTemplate(AbstractMetaClass *subclass, - const AbstractMetaClass *template_class, - const TypeParser::Info &info) -{ - QList targs = info.template_instantiations; - - QList template_types; - foreach (const TypeParser::Info &i, targs) { - TypeEntry *t = TypeDatabase::instance()->findType(i.qualified_name.join("::")); - - if (t != 0) { - AbstractMetaType *temporary_type = createMetaType(); - temporary_type->setTypeEntry(t); - temporary_type->setConstant(i.is_constant); - temporary_type->setReference(i.is_reference); - temporary_type->setIndirections(i.indirections); - template_types << temporary_type; - } - } - - AbstractMetaFunctionList funcs = subclass->functions(); - foreach (const AbstractMetaFunction *function, template_class->functions()) { - - if (function->isModifiedRemoved(TypeSystem::All)) - continue; - - AbstractMetaFunction *f = function->copy(); - f->setArguments(AbstractMetaArgumentList()); - - bool ok = true; - AbstractMetaType *ftype = function->type(); - f->setType(inheritTemplateType(template_types, ftype, &ok)); - if (!ok) { - delete f; - continue; - } - - foreach (AbstractMetaArgument *argument, function->arguments()) { - AbstractMetaType *atype = argument->type(); - - AbstractMetaArgument *arg = argument->copy(); - arg->setType(inheritTemplateType(template_types, atype, &ok)); - if (!ok) - break; - f->addArgument(arg); - } - - if (!ok) { - delete f; - continue ; - } - - // There is no base class in java to inherit from here, so the - // template instantiation is the class that implements the function.. - f->setImplementingClass(subclass); - - // We also set it as the declaring class, since the superclass is - // supposed to disappear. This allows us to make certain function modifications - // on the inherited functions. - f->setDeclaringClass(subclass); - - - if (f->isConstructor() && subclass->isTypeAlias()) { - f->setName(subclass->name()); - } else if (f->isConstructor()) { - delete f; - continue; - } - - // if the instantiation has a function named the same as an existing - // function we have shadowing so we need to skip it. - bool found = false; - for (int i=0; iname() == f->name()) { - found = true; - continue; - } - } - if (found) { - delete f; - continue; - } - - ComplexTypeEntry *te = subclass->typeEntry(); - FunctionModificationList mods = function->modifications(template_class); - for (int i=0; iminimalSignature(); - - // If we ever need it... Below is the code to do - // substitution of the template instantation type inside - // injected code.. -#if 0 - if (mod.modifiers & Modification::CodeInjection) { - for (int j=0; jtypeEntry()->qualifiedCppName()); - snip.codeList.clear(); - snip.addCode(code); - } - } -#endif - te->addFunctionModification(mod); - } - - subclass->addFunction(f); - } - - // Clean up - foreach (AbstractMetaType *type, template_types) { - delete type; - } - - - { - subclass->setTemplateBaseClass(template_class); - - subclass->setInterfaces(template_class->interfaces()); - subclass->setBaseClass(template_class->baseClass()); - } - - return true; -} - -void AbstractMetaBuilder::parseQ_Property(AbstractMetaClass *meta_class, const QStringList &declarations) -{ - for (int i=0; iqualifiedName(); - bool ok = false; - AbstractMetaType *type = 0; - QString scope; - for (int j=qualifiedScopeName.size(); j>=0; --j) { - scope = j > 0 ? QStringList(qualifiedScopeName.mid(0, j)).join("::") + "::" : QString(); - TypeInfo info; - info.setQualifiedName((scope + l.at(0)).split("::")); - - type = translateType(info, &ok); - if (type != 0 && ok) { - break; - } - } - - if (type == 0 || !ok) { - ReportHandler::warning(QString("Unable to decide type of property: '%1' in class '%2'") - .arg(l.at(0)).arg(meta_class->name())); - continue; - } - - QString typeName = scope + l.at(0); - - QPropertySpec *spec = new QPropertySpec(type->typeEntry()); - spec->setName(l.at(1)); - spec->setIndex(i); - - for (int pos=2; pos+1setRead(l.at(pos+1)); - else if (l.at(pos) == QLatin1String("WRITE")) - spec->setWrite(l.at(pos+1)); - else if (l.at(pos) == QLatin1String("DESIGNABLE")) - spec->setDesignable(l.at(pos+1)); - else if (l.at(pos) == QLatin1String("RESET")) - spec->setReset(l.at(pos+1)); - } - - meta_class->addPropertySpec(spec); - delete type; - } -} - -static void hide_functions(const AbstractMetaFunctionList &l) { - foreach (AbstractMetaFunction *f, l) { - FunctionModification mod; - mod.signature = f->minimalSignature(); - mod.modifiers = FunctionModification::Private; - ((ComplexTypeEntry *) f->implementingClass()->typeEntry())->addFunctionModification(mod); - } -} - -static void remove_function(AbstractMetaFunction *f) { - FunctionModification mod; - mod.removal = TypeSystem::All; - mod.signature = f->minimalSignature(); - ((ComplexTypeEntry *) f->implementingClass()->typeEntry())->addFunctionModification(mod); -} - -static AbstractMetaFunctionList filter_functions(const AbstractMetaFunctionList &lst, QSet *signatures) -{ - AbstractMetaFunctionList functions; - foreach (AbstractMetaFunction *f, lst) { - QString signature = f->minimalSignature(); - int start = signature.indexOf(QLatin1Char('(')) + 1; - int end = signature.lastIndexOf(QLatin1Char(')')); - signature = signature.mid(start, end - start); - if (signatures->contains(signature)) { - remove_function(f); - continue; - } - (*signatures) << signature; - functions << f; - } - return functions; -} - -void AbstractMetaBuilder::setupEquals(AbstractMetaClass *cls) -{ - AbstractMetaFunctionList equals; - AbstractMetaFunctionList nequals; - - QString op_equals = QLatin1String("operator_equal"); - QString op_nequals = QLatin1String("operator_not_equal"); - - AbstractMetaFunctionList functions = cls->queryFunctions(AbstractMetaClass::ClassImplements - | AbstractMetaClass::NotRemovedFromTargetLang); - foreach (AbstractMetaFunction *f, functions) { - if (f->name() == op_equals) - equals << f; - else if (f->name() == op_nequals) - nequals << f; - } - - if (equals.size() || nequals.size()) { - if (!cls->hasHashFunction()) { - ReportHandler::warning(QString::fromLatin1("Class '%1' has equals operators but no qHash() function") - .arg(cls->name())); - } - - hide_functions(equals); - hide_functions(nequals); - - // We only need == if we have both == and !=, and one == for - // each signature type, like QDateTime::==(QDate) and (QTime) - // if such a thing exists... - QSet func_signatures; - cls->setEqualsFunctions(filter_functions(equals, &func_signatures)); - cls->setNotEqualsFunctions(filter_functions(nequals, &func_signatures)); - } -} - -void AbstractMetaBuilder::setupComparable(AbstractMetaClass *cls) -{ - AbstractMetaFunctionList greater; - AbstractMetaFunctionList greaterEquals; - AbstractMetaFunctionList less; - AbstractMetaFunctionList lessEquals; - - QString op_greater = QLatin1String("operator_greater"); - QString op_greater_eq = QLatin1String("operator_greater_or_equal"); - QString op_less = QLatin1String("operator_less"); - QString op_less_eq = QLatin1String("operator_less_or_equal"); - - AbstractMetaFunctionList functions = cls->queryFunctions(AbstractMetaClass::ClassImplements - | AbstractMetaClass::NotRemovedFromTargetLang); - foreach (AbstractMetaFunction *f, functions) { - if (f->name() == op_greater) - greater << f; - else if (f->name() == op_greater_eq) - greaterEquals << f; - else if (f->name() == op_less) - less << f; - else if (f->name() == op_less_eq) - lessEquals << f; - } - - bool hasEquals = cls->equalsFunctions().size() || cls->notEqualsFunctions().size(); - - // Conditions for comparable is: - // >, ==, < - The basic case - // >, == - Less than becomes else case - // <, == - Greater than becomes else case - // >=, <= - if (<= && >=) -> equal - bool mightBeComparable = greater.size() || greaterEquals.size() || less.size() || lessEquals.size() - || greaterEquals.size() == 1 || lessEquals.size() == 1; - - if (mightBeComparable) { - QSet signatures; - - // We only hide the original functions if we are able to make a compareTo() method - bool wasComparable = false; - - // The three upper cases, prefer the <, == approach - if (hasEquals && (greater.size() || less.size())) { - cls->setLessThanFunctions(filter_functions(less, &signatures)); - cls->setGreaterThanFunctions(filter_functions(greater, &signatures)); - filter_functions(greaterEquals, &signatures); - filter_functions(lessEquals, &signatures); - wasComparable = true; - } else if (hasEquals && (greaterEquals.size() || lessEquals.size())) { - cls->setLessThanEqFunctions(filter_functions(lessEquals, &signatures)); - cls->setGreaterThanEqFunctions(filter_functions(greaterEquals, &signatures)); - wasComparable = true; - } else if (greaterEquals.size() == 1 || lessEquals.size() == 1) { - cls->setGreaterThanEqFunctions(greaterEquals); - cls->setLessThanEqFunctions(lessEquals); - filter_functions(less, &signatures); - filter_functions(greater, &signatures); - wasComparable = true; - } - - if (wasComparable) { - hide_functions(greater); - hide_functions(greaterEquals); - hide_functions(less); - hide_functions(lessEquals); - } - } - -} - -void AbstractMetaBuilder::setupClonable(AbstractMetaClass *cls) -{ - QString op_assign = QLatin1String("operator_assign"); - - AbstractMetaFunctionList functions = cls->queryFunctions(AbstractMetaClass::ClassImplements); - foreach (AbstractMetaFunction *f, functions) { - if ((f->name() == op_assign || f->isConstructor()) && f->isPublic()) { - AbstractMetaArgumentList arguments = f->arguments(); - if (arguments.size() == 1) { - if (cls->typeEntry()->qualifiedCppName() == arguments.at(0)->type()->typeEntry()->qualifiedCppName()) { - if (cls->typeEntry()->isValue()) { - cls->setHasCloneOperator(true); - return; - } - } - } - } - } -} - -static void write_reject_log_file(const QString &name, - const QMap &rejects) -{ - QFile f(name); - if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) { - ReportHandler::warning(QString("failed to write log file: '%1'") - .arg(f.fileName())); - return; - } - - QTextStream s(&f); - - - for (int reason=0; reason::const_iterator it = rejects.constBegin(); - it != rejects.constEnd(); ++it) { - if (it.value() != reason) - continue; - s << " - " << it.key() << endl; - } - - s << QString(72, '*') << endl << endl; - } - -} - - -void AbstractMetaBuilder::dumpLog() -{ - write_reject_log_file("mjb_rejected_classes.log", m_rejected_classes); - write_reject_log_file("mjb_rejected_enums.log", m_rejected_enums); - write_reject_log_file("mjb_rejected_functions.log", m_rejected_functions); - write_reject_log_file("mjb_rejected_fields.log", m_rejected_fields); -} - -AbstractMetaClassList AbstractMetaBuilder::classesTopologicalSorted() const -{ - AbstractMetaClassList res; - - AbstractMetaClassList classes = m_meta_classes; - qSort(classes); - - QSet noDependency; - QHash* > hash; - foreach (AbstractMetaClass *cls, classes) { - QSet *depends = new QSet(); - - if (cls->baseClass()) - depends->insert(cls->baseClass()); - - foreach (AbstractMetaClass *interface, cls->interfaces()) { - AbstractMetaClass *impl = interface->primaryInterfaceImplementor(); - if (impl == cls) - continue; - depends->insert(impl); - } - - if (depends->empty()) { - noDependency.insert(cls); - } else { - hash.insert(cls, depends); - } - } - - while (!noDependency.empty()) { - foreach (AbstractMetaClass *cls, noDependency.values()) { - if(!cls->isInterface()) - res.append(cls); - noDependency.remove(cls); - QHashIterator* > i(hash); - while (i.hasNext()) { - i.next(); - i.value()->remove(cls); - if (i.value()->empty()) { - AbstractMetaClass *key = i.key(); - noDependency.insert(key); - hash.remove(key); - delete(i.value()); - } - } - } - } - - if (!noDependency.empty() || !hash.empty()) { - qWarning("dependency graph was cyclic."); - } - - return res; -} diff --git a/3rdparty/pythonqt/generator/abstractmetabuilder.h b/3rdparty/pythonqt/generator/abstractmetabuilder.h deleted file mode 100644 index 247ab39d1..000000000 --- a/3rdparty/pythonqt/generator/abstractmetabuilder.h +++ /dev/null @@ -1,180 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef ABSTRACTMETABUILDER_H -#define ABSTRACTMETABUILDER_H - -#include "codemodel.h" -#include "abstractmetalang.h" -#include "typesystem.h" -#include "typeparser.h" - -#include - -class AbstractMetaBuilder -{ -public: - enum RejectReason { - NotInTypeSystem, - GenerationDisabled, - RedefinedToNotClass, - UnmatchedArgumentType, - UnmatchedReturnType, - NoReason - }; - - AbstractMetaBuilder(); - virtual ~AbstractMetaBuilder() {}; - - AbstractMetaClassList classes() const { return m_meta_classes; } - AbstractMetaClassList classesTopologicalSorted() const; - - FileModelItem model() const { return m_dom; } - void setModel(FileModelItem item) { m_dom = item; } - - - ScopeModelItem popScope() { return m_scopes.takeLast(); } - void pushScope(ScopeModelItem item) { m_scopes << item; } - ScopeModelItem currentScope() const { return m_scopes.last(); } - - QString fileName() const { return m_file_name; } - void setFileName(const QString &fileName) { m_file_name = fileName; } - - void dumpLog(); - - bool build(); - - void figureOutEnumValuesForClass(AbstractMetaClass *meta_class, QSet *classes); - int figureOutEnumValue(const QString &name, int value, AbstractMetaEnum *meta_enum, AbstractMetaFunction *meta_function = 0); - void figureOutEnumValues(); - void figureOutDefaultEnumArguments(); - - void addAbstractMetaClass(AbstractMetaClass *cls); - AbstractMetaClass *traverseTypeAlias(TypeAliasModelItem item); - AbstractMetaClass *traverseClass(ClassModelItem item); - bool setupInheritance(AbstractMetaClass *meta_class); - AbstractMetaClass *traverseNamespace(NamespaceModelItem item); - AbstractMetaEnum *traverseEnum(EnumModelItem item, AbstractMetaClass *enclosing, const QSet &enumsDeclarations); - void traverseEnums(ScopeModelItem item, AbstractMetaClass *parent, const QStringList &enumsDeclarations); - void traverseFunctions(ScopeModelItem item, AbstractMetaClass *parent); - void traverseFields(ScopeModelItem item, AbstractMetaClass *parent); - void traverseStreamOperator(FunctionModelItem function_item); - void traverseCompareOperator(FunctionModelItem item); - void traverseBinaryArithmeticOperator(FunctionModelItem item); - - AbstractMetaFunction *traverseFunction(FunctionModelItem function); - AbstractMetaField *traverseField(VariableModelItem field, const AbstractMetaClass *cls); - void checkFunctionModifications(); - void registerHashFunction(FunctionModelItem function_item); - void registerToStringCapability(FunctionModelItem function_item); - - void parseQ_Property(AbstractMetaClass *meta_class, const QStringList &declarations); - void setupEquals(AbstractMetaClass *meta_class); - void setupComparable(AbstractMetaClass *meta_class); - void setupClonable(AbstractMetaClass *cls); - void setupFunctionDefaults(AbstractMetaFunction *meta_function, AbstractMetaClass *meta_class); - - QString translateDefaultValue(ArgumentModelItem item, AbstractMetaType *type, - AbstractMetaFunction *fnc, AbstractMetaClass *, - int argument_index); - AbstractMetaType *translateType(const TypeInfo &type, bool *ok, bool resolveType = true, bool resolveScope = true); - - void decideUsagePattern(AbstractMetaType *type); - - bool inheritTemplate(AbstractMetaClass *subclass, - const AbstractMetaClass *template_class, - const TypeParser::Info &info); - AbstractMetaType *inheritTemplateType(const QList &template_types, AbstractMetaType *meta_type, bool *ok = 0); - - bool isQObject(const QString &qualified_name); - bool isEnum(const QStringList &qualified_name); - - void fixQObjectForScope (TypeDatabase *types, - NamespaceModelItem item); - - // QtScript - QSet qtMetaTypeDeclaredTypeNames() const - { return m_qmetatype_declared_typenames; } - -protected: - AbstractMetaClass *argumentToClass(ArgumentModelItem); - - virtual AbstractMetaClass *createMetaClass() = 0; - virtual AbstractMetaEnum *createMetaEnum() = 0; - virtual AbstractMetaEnumValue *createMetaEnumValue() = 0; - virtual AbstractMetaField *createMetaField() = 0; - virtual AbstractMetaFunction *createMetaFunction() = 0; - virtual AbstractMetaArgument *createMetaArgument() = 0; - virtual AbstractMetaType *createMetaType() = 0; - -private: - void sortLists(); - - QString m_file_name; - - AbstractMetaClassList m_meta_classes; - AbstractMetaClassList m_templates; - FileModelItem m_dom; - - QSet m_used_types; - - QMap m_rejected_classes; - QMap m_rejected_enums; - QMap m_rejected_functions; - QMap m_rejected_fields; - - QList m_enums; - - QList > m_enum_default_arguments; - - QHash m_enum_values; - - AbstractMetaClass *m_current_class; - QList m_scopes; - QString m_namespace_prefix; - - QSet m_setup_inheritance_done; - - // QtScript - QSet m_qmetatype_declared_typenames; -}; - -#endif // ABSTRACTMETBUILDER_H diff --git a/3rdparty/pythonqt/generator/abstractmetalang.cpp b/3rdparty/pythonqt/generator/abstractmetalang.cpp deleted file mode 100644 index f7487d371..000000000 --- a/3rdparty/pythonqt/generator/abstractmetalang.cpp +++ /dev/null @@ -1,1986 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "abstractmetalang.h" -#include "reporthandler.h" - -/******************************************************************************* - * AbstractMetaType - */ -AbstractMetaType *AbstractMetaType::copy() const -{ - AbstractMetaType *cpy = new AbstractMetaType; - - cpy->setTypeUsagePattern(typeUsagePattern()); - cpy->setConstant(isConstant()); - cpy->setReference(isReference()); - cpy->setIndirections(indirections()); - cpy->setInstantiations(instantiations()); - cpy->setArrayElementCount(arrayElementCount()); - cpy->setOriginalTypeDescription(originalTypeDescription()); - cpy->setOriginalTemplateType(originalTemplateType() ? originalTemplateType()->copy() : 0); - - cpy->setArrayElementType(arrayElementType() ? arrayElementType()->copy() : 0); - - cpy->setTypeEntry(typeEntry()); - - return cpy; -} - -QString AbstractMetaType::cppSignature() const -{ - QString s; - - if (isConstant()) - s += "const "; - - s += typeEntry()->qualifiedCppName(); - - if (hasInstantiationInCpp()) { - QList types = instantiations(); - s += "<"; - for (int i=0; i 0) - s += ", "; - s += types.at(i)->cppSignature(); - } - s += " >"; - } - - if (actualIndirections()) { - s += ' '; - if (indirections()) - s += QString(indirections(), '*'); - if (isReference()) - s += '&'; - } - return s; -} - -/******************************************************************************* - * AbstractMetaArgument - */ -AbstractMetaArgument *AbstractMetaArgument::copy() const -{ - AbstractMetaArgument *cpy = new AbstractMetaArgument; - cpy->setName(AbstractMetaVariable::name()); - cpy->setDefaultValueExpression(defaultValueExpression()); - cpy->setType(type()->copy()); - cpy->setArgumentIndex(argumentIndex()); - - return cpy; -} - - -QString AbstractMetaArgument::argumentName() const -{ - QString n = AbstractMetaVariable::name(); - if (n.isEmpty()) { - return QString("arg__%2").arg(m_argument_index + 1); - } - return n; -} - - -QString AbstractMetaArgument::indexedName() const -{ - QString n = AbstractMetaVariable::name(); - if (n.isEmpty()) - return argumentName(); - return QString("%1%2").arg(n).arg(m_argument_index); -} - -QString AbstractMetaArgument::name() const -{ - Q_ASSERT_X(0, "AbstractMetaArgument::name()", "use argumentName() or indexedName() instead"); - return QString(); -} - - -/******************************************************************************* - * AbstractMetaFunction - */ -AbstractMetaFunction::~AbstractMetaFunction() -{ - qDeleteAll(m_arguments); - delete m_type; -} - -/******************************************************************************* - * Indicates that this function has a modification that removes it - */ -bool AbstractMetaFunction::isModifiedRemoved(int types) const -{ - FunctionModificationList mods = modifications(implementingClass()); - foreach (FunctionModification mod, mods) { - if (!mod.isRemoveModifier()) - continue; - - if ((mod.removal & types) == types) - return true; - } - - return false; -} - -bool AbstractMetaFunction::needsCallThrough() const -{ - if (ownerClass()->isInterface()) - return false; - if (referenceCounts(implementingClass()).size() > 0) - return true; - if (argumentsHaveNativeId() || !isStatic()) - return true; - - foreach (const AbstractMetaArgument *arg, arguments()) { - if (arg->type()->isArray() || arg->type()->isTargetLangEnum() || arg->type()->isTargetLangFlags()) - return true; - } - - if (type() && (type()->isArray() || type()->isTargetLangEnum() || type()->isTargetLangFlags())) - return true; - - for (int i=-1; i<=arguments().size(); ++i) { - TypeSystem::Ownership owner = this->ownership(implementingClass(), TypeSystem::TargetLangCode, i); - if (owner != TypeSystem::InvalidOwnership) - return true; - } - - return false; -} - -bool AbstractMetaFunction::needsSuppressUncheckedWarning() const -{ - for (int i=-1; i<=arguments().size(); ++i) { - QList referenceCounts = this->referenceCounts(implementingClass(), i); - foreach (ReferenceCount referenceCount, referenceCounts) { - if (referenceCount.action != ReferenceCount::Set) - return true; - } - } - return false; -} - -QString AbstractMetaFunction::marshalledName() const -{ - QString returned = "__qt_" + name(); - AbstractMetaArgumentList arguments = this->arguments(); - foreach (const AbstractMetaArgument *arg, arguments) { - returned += "_"; - if (arg->type()->isNativePointer()) { - returned += "nativepointer"; - } else if (arg->type()->isIntegerEnum() || arg->type()->isIntegerFlags()) { - returned += "int"; - } else { - returned += arg->type()->name().replace("[]", "_3").replace(".", "_"); - } - } - return returned; -} - -bool AbstractMetaFunction::operator<(const AbstractMetaFunction &other) const -{ - uint result = compareTo(&other); - return result & NameLessThan; -} - - -/*! - Returns a mask of CompareResult describing how this function is - compares to another function -*/ -uint AbstractMetaFunction::compareTo(const AbstractMetaFunction *other) const -{ - uint result = 0; - - // Enclosing class... - if (ownerClass() == other->ownerClass()) { - result |= EqualImplementor; - } - - // Attributes - if (attributes() == other->attributes()) { - result |= EqualAttributes; - } - - // Compare types - AbstractMetaType *t = type(); - AbstractMetaType *ot = other->type(); - if ((!t && !ot) || ((t && ot && t->name() == ot->name()))) { - result |= EqualReturnType; - } - - // Compare names - int cmp = originalName().compare(other->originalName()); - - if (cmp < 0) { - result |= NameLessThan; - } else if (cmp == 0) { - result |= EqualName; - } - - // compare name after modification... - cmp = modifiedName().compare(other->modifiedName()); - if (cmp == 0) - result |= EqualModifiedName; - - // Compare arguments... - AbstractMetaArgumentList min_arguments; - AbstractMetaArgumentList max_arguments; - if (arguments().size() < other->arguments().size()) { - min_arguments = arguments(); - max_arguments = other->arguments(); - } else { - min_arguments = other->arguments(); - max_arguments = arguments(); - } - - int min_count = min_arguments.size(); - int max_count = max_arguments.size(); - bool same = true; - for (int i=0; itype()->name() != max_arg->type()->name() - && (min_arg->defaultValueExpression().isEmpty() || max_arg->defaultValueExpression().isEmpty())) { - same = false; - break; - } - } else { - if (max_arguments.at(i)->defaultValueExpression().isEmpty()) { - same = false; - break; - } - } - } - - if (same) - result |= min_count == max_count ? EqualArguments : EqualDefaultValueOverload; - - return result; -} - -AbstractMetaFunction *AbstractMetaFunction::copy() const -{ - AbstractMetaFunction *cpy = new AbstractMetaFunction; - cpy->setName(name()); - cpy->setOriginalName(originalName()); - cpy->setOwnerClass(ownerClass()); - cpy->setImplementingClass(implementingClass()); - cpy->setInterfaceClass(interfaceClass()); - cpy->setFunctionType(functionType()); - cpy->setAttributes(attributes()); - cpy->setDeclaringClass(declaringClass()); - if (type()) - cpy->setType(type()->copy()); - cpy->setConstant(isConstant()); - cpy->setOriginalAttributes(originalAttributes()); - - foreach (AbstractMetaArgument *arg, arguments()) - cpy->addArgument(arg->copy()); - - Q_ASSERT((!type() && !cpy->type()) - || (type()->instantiations() == cpy->type()->instantiations())); - - return cpy; -} - -QStringList AbstractMetaFunction::introspectionCompatibleSignatures(const QStringList &resolvedArguments) const -{ - AbstractMetaArgumentList arguments = this->arguments(); - if (arguments.size() == resolvedArguments.size()) { - return (QStringList() << QMetaObject::normalizedSignature((name() + "(" + resolvedArguments.join(",") + ")").toUtf8().constData())); - } else { - QStringList returned; - - AbstractMetaArgument *argument = arguments.at(resolvedArguments.size()); - QStringList minimalTypeSignature = argument->type()->minimalSignature().split("::"); - for (int i=0; i 0) - s += ", "; - AbstractMetaArgument *a = m_arguments.at(i); - s += a->type()->cppSignature(); - - // We need to have the argument names in the qdoc files - s += " "; - s += a->argumentName(); - } - s += ")"; - - if (isConstant()) - s += " const"; - - return s; -} - -int AbstractMetaFunction::actualMinimumArgumentCount() const -{ - AbstractMetaArgumentList arguments = this->arguments(); - - int count = 0; - for (int i=0; idefaultValueExpression().isEmpty()) break; - } - - return count; -} - -// Returns reference counts for argument at idx, or all arguments if idx == -2 -QList AbstractMetaFunction::referenceCounts(const AbstractMetaClass *cls, int idx) const -{ - QList returned; - - FunctionModificationList mods = this->modifications(cls); - foreach (FunctionModification mod, mods) { - QList argument_mods = mod.argument_mods; - foreach (ArgumentModification argument_mod, argument_mods) { - if (argument_mod.index != idx && idx != -2) - continue; - returned += argument_mod.referenceCounts; - } - } - - return returned; -} - -QString AbstractMetaFunction::replacedDefaultExpression(const AbstractMetaClass *cls, int key) const -{ - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == key - && !argument_modification.replaced_default_expression.isEmpty()) { - return argument_modification.replaced_default_expression; - } - } - } - - return QString(); -} - -bool AbstractMetaFunction::removedDefaultExpression(const AbstractMetaClass *cls, int key) const -{ - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == key - && argument_modification.removed_default_expression) { - return true; - } - } - } - - return false; -} - -bool AbstractMetaFunction::resetObjectAfterUse(int argument_idx) const -{ - const AbstractMetaClass *cls = declaringClass(); - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - QList argumentModifications = modification.argument_mods; - foreach (ArgumentModification argumentModification, argumentModifications) { - if (argumentModification.index == argument_idx && argumentModification.reset_after_use) - return true; - } - } - - return false; -} - -QString AbstractMetaFunction::nullPointerDefaultValue(const AbstractMetaClass *mainClass, int argument_idx) const -{ - Q_ASSERT(nullPointersDisabled(mainClass, argument_idx)); - - const AbstractMetaClass *cls = mainClass; - if (cls == 0) - cls = implementingClass(); - - do { - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == argument_idx - && argument_modification.no_null_pointers) { - return argument_modification.null_pointer_default_value; - } - } - } - - cls = cls->baseClass(); - } while (cls != 0 && mainClass == 0); // Once when mainClass != 0, or once for all base classes of implementing class - - return QString(); - -} - -bool AbstractMetaFunction::nullPointersDisabled(const AbstractMetaClass *mainClass, int argument_idx) const -{ - const AbstractMetaClass *cls = mainClass; - if (cls == 0) - cls = implementingClass(); - - do { - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == argument_idx - && argument_modification.no_null_pointers) { - return true; - } - } - } - - cls = cls->baseClass(); - } while (cls != 0 && mainClass == 0); // Once when mainClass != 0, or once for all base classes of implementing class - - return false; -} - -QString AbstractMetaFunction::conversionRule(TypeSystem::Language language, int key) const -{ - FunctionModificationList modifications = this->modifications(declaringClass()); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index != key) - continue; - - foreach (CodeSnip snip, argument_modification.conversion_rules) { - if (snip.language == language && !snip.code().isEmpty()) - return snip.code(); - } - } - } - - return QString(); -} - -QString AbstractMetaFunction::argumentReplaced(int key) const -{ - FunctionModificationList modifications = this->modifications(declaringClass()); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == key && !argument_modification.replace_value.isEmpty()) { - return argument_modification.replace_value; - } - } - } - - return ""; -} - -bool AbstractMetaFunction::argumentRemoved(int key) const -{ - FunctionModificationList modifications = this->modifications(declaringClass()); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == key) { - if (argument_modification.removed) { - return true; - } - } - } - } - - return false; -} - -bool AbstractMetaFunction::isVirtualSlot() const -{ - FunctionModificationList modifications = this->modifications(declaringClass()); - foreach (FunctionModification modification, modifications) { - if (modification.isVirtualSlot()) - return true; - } - - return false; -} - -bool AbstractMetaFunction::disabledGarbageCollection(const AbstractMetaClass *cls, int key) const -{ - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index != key) - continue; - - foreach (TypeSystem::Ownership ownership, argument_modification.ownerships.values()) { - if (ownership == TypeSystem::CppOwnership) - return true; - } - - } - } - - return false; -} - -bool AbstractMetaFunction::isDeprecated() const -{ - FunctionModificationList modifications = this->modifications(declaringClass()); - foreach (FunctionModification modification, modifications) { - if (modification.isDeprecated()) - return true; - } - return false; -} - -TypeSystem::Ownership AbstractMetaFunction::ownership(const AbstractMetaClass *cls, TypeSystem::Language language, int key) const -{ - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == key) - return argument_modification.ownerships.value(language, TypeSystem::InvalidOwnership); - } - } - - return TypeSystem::InvalidOwnership; -} - -bool AbstractMetaFunction::isRemovedFromAllLanguages(const AbstractMetaClass *cls) const -{ - return isRemovedFrom(cls, TypeSystem::All); -} - -bool AbstractMetaFunction::isRemovedFrom(const AbstractMetaClass *cls, TypeSystem::Language language) const -{ - FunctionModificationList modifications = this->modifications(cls); - foreach (FunctionModification modification, modifications) { - if ((modification.removal & language) == language) - return true; - } - - return false; - -} - -QString AbstractMetaFunction::typeReplaced(int key) const -{ - FunctionModificationList modifications = this->modifications(declaringClass()); - foreach (FunctionModification modification, modifications) { - QList argument_modifications = modification.argument_mods; - foreach (ArgumentModification argument_modification, argument_modifications) { - if (argument_modification.index == key - && !argument_modification.modified_type.isEmpty()) { - return argument_modification.modified_type; - } - } - } - - return QString(); -} - -QString AbstractMetaFunction::minimalSignature() const -{ - if (!m_cached_minimal_signature.isEmpty()) - return m_cached_minimal_signature; - - QString minimalSignature = originalName() + "("; - AbstractMetaArgumentList arguments = this->arguments(); - - for (int i=0; itype(); - - if (i > 0) - minimalSignature += ","; - - minimalSignature += t->minimalSignature(); - } - minimalSignature += ")"; - if (isConstant()) - minimalSignature += "const"; - - minimalSignature = QMetaObject::normalizedSignature(minimalSignature.toLocal8Bit().constData()); - m_cached_minimal_signature = minimalSignature; - - return minimalSignature; -} - -FunctionModificationList AbstractMetaFunction::modifications(const AbstractMetaClass *implementor) const -{ - Q_ASSERT(implementor); - return implementor->typeEntry()->functionModifications(minimalSignature()); -} - -bool AbstractMetaFunction::hasModifications(const AbstractMetaClass *implementor) const -{ - FunctionModificationList mods = modifications(implementor); - return mods.count() > 0; -} - -QString AbstractMetaFunction::modifiedName() const -{ - if (m_cached_modified_name.isEmpty()) { - FunctionModificationList mods = modifications(implementingClass()); - foreach (FunctionModification mod, mods) { - if (mod.isRenameModifier()) { - m_cached_modified_name = mod.renamedToName; - break; - } - } - if (m_cached_modified_name.isEmpty()) - m_cached_modified_name = name(); - } - return m_cached_modified_name; -} - -QString AbstractMetaFunction::targetLangSignature(bool minimal) const -{ - QString s; - - // Attributes... - if (!minimal) { -#if 0 // jambi - if (isPublic()) s += "public "; - else if (isProtected()) s += "protected "; - else if (isPrivate()) s += "private "; - -// if (isNative()) s += "native "; -// else - if (isFinalInTargetLang()) s += "final "; - else if (isAbstract()) s += "abstract "; - - if (isStatic()) s += "static "; -#endif - // Return type - if (type()) - s += type()->name() + " "; - else - s += "void "; - } - - s += modifiedName(); - s += "("; - - int j = 0; - for (int i=0; itype()->name(); - - if (!minimal) { - s += " "; - s += m_arguments.at(i)->argumentName(); - } - ++j; - } - - s += ")"; - - return s; -} - - -bool function_sorter(AbstractMetaFunction *a, AbstractMetaFunction *b) -{ - return a->signature() < b->signature(); -} - -/******************************************************************************* - * AbstractMetaClass - */ -AbstractMetaClass::~AbstractMetaClass() -{ - qDeleteAll(m_functions); - qDeleteAll(m_fields); -} - -/*AbstractMetaClass *AbstractMetaClass::copy() const -{ - AbstractMetaClass *cls = new AbstractMetaClass; - cls->setAttributes(attributes()); - cls->setBaseClass(baseClass()); - cls->setTypeEntry(typeEntry()); - foreach (AbstractMetaFunction *function, functions()) { - AbstractMetaFunction *copy = function->copy(); - function->setImplementingClass(cls); - cls->addFunction(copy); - } - cls->setEnums(enums()); - foreach (const AbstractMetaField *field, fields()) { - AbstractMetaField *copy = field->copy(); - copy->setEnclosingClass(cls); - cls->addField(copy); - } - cls->setInterfaces(interfaces()); - - return cls; -}*/ - -/******************************************************************************* - * Returns true if this class is a subclass of the given class - */ -bool AbstractMetaClass::inheritsFrom(const AbstractMetaClass *cls) const -{ - Q_ASSERT(cls != 0); - - const AbstractMetaClass *clazz = this; - while (clazz != 0) { - if (clazz == cls) - return true; - - clazz = clazz->baseClass(); - } - - return false; -} - -/******************************************************************************* - * Constructs an interface based on the functions and enums in this - * class and returns it... - */ -AbstractMetaClass *AbstractMetaClass::extractInterface() -{ - Q_ASSERT(typeEntry()->designatedInterface()); - - if (m_extracted_interface == 0) { - AbstractMetaClass *iface = new AbstractMetaClass; - iface->setAttributes(attributes()); - iface->setBaseClass(0); - iface->setPrimaryInterfaceImplementor(this); - - iface->setTypeEntry(typeEntry()->designatedInterface()); - - foreach (AbstractMetaFunction *function, functions()) { - if (!function->isConstructor()) - iface->addFunction(function->copy()); - } - -// iface->setEnums(enums()); -// setEnums(AbstractMetaEnumList()); - - foreach (const AbstractMetaField *field, fields()) { - if (field->isPublic()) { - AbstractMetaField *new_field = field->copy(); - new_field->setEnclosingClass(iface); - iface->addField(new_field); - } - } - - m_extracted_interface = iface; - addInterface(iface); - } - - return m_extracted_interface; -} - -/******************************************************************************* - * Returns a list of all the functions with a given name - */ -AbstractMetaFunctionList AbstractMetaClass::queryFunctionsByName(const QString &name) const -{ - AbstractMetaFunctionList returned; - AbstractMetaFunctionList functions = this->functions(); - foreach (AbstractMetaFunction *function, functions) { - if (function->name() == name) - returned.append(function); - } - - return returned; -} - -bool AbstractMetaClass::hasDefaultIsNull() const -{ - foreach(const AbstractMetaFunction* fun, queryFunctionsByName("isNull")) { - if (fun->actualMinimumArgumentCount()==0) { - return true; - } - } - return false; -} - -/******************************************************************************* - * Returns all reference count modifications for any function in the class - */ -QList AbstractMetaClass::referenceCounts() const -{ - QList returned; - - AbstractMetaFunctionList functions = this->functions(); - foreach (AbstractMetaFunction *function, functions) { - returned += function->referenceCounts(this); - } - - return returned; -} - -/******************************************************************************* - * Returns a list of all the functions retrieved during parsing which should - * be added to the Java API. - */ -AbstractMetaFunctionList AbstractMetaClass::functionsInTargetLang() const -{ - int default_flags = NormalFunctions | Visible | NotRemovedFromTargetLang; - - // Interfaces don't implement functions - default_flags |= isInterface() ? 0 : ClassImplements; - - // Only public functions in final classes - // default_flags |= isFinal() ? WasPublic : 0; - int public_flags = isFinal() ? WasPublic : 0; - - // Constructors - AbstractMetaFunctionList returned = queryFunctions(Constructors | default_flags | public_flags); - - // Final functions - returned += queryFunctions(FinalInTargetLangFunctions | NonStaticFunctions | default_flags | public_flags); - - // Virtual functions - returned += queryFunctions(VirtualInTargetLangFunctions | NonStaticFunctions | default_flags | public_flags); - - // Static functions - returned += queryFunctions(StaticFunctions | default_flags | public_flags); - - // Empty, private functions, since they aren't caught by the other ones - returned += queryFunctions(Empty | Invisible); - - return returned; -} - -AbstractMetaFunctionList AbstractMetaClass::virtualFunctions() const -{ - AbstractMetaFunctionList list = functionsInShellClass(); - - AbstractMetaFunctionList returned; - foreach (AbstractMetaFunction *f, list) { - if (!f->isFinalInCpp() || f->isVirtualSlot()) - returned += f; - } - - return returned; -} - -AbstractMetaFunctionList AbstractMetaClass::nonVirtualShellFunctions() const -{ - AbstractMetaFunctionList list = functionsInShellClass(); - AbstractMetaFunctionList returned; - foreach (AbstractMetaFunction *f, list) { - if (f->isFinalInCpp() && !f->isVirtualSlot()) - returned += f; - } - - return returned; -} - -/******************************************************************************* - * Returns a list of all functions that should be declared and implemented in - * the shell class which is generated as a wrapper on top of the actual C++ class - */ -AbstractMetaFunctionList AbstractMetaClass::functionsInShellClass() const -{ - // Only functions and only protected and public functions - int default_flags = NormalFunctions | Visible | WasVisible | NotRemovedFromShell; - - // All virtual functions - AbstractMetaFunctionList returned = queryFunctions(VirtualFunctions | default_flags); - - // All functions explicitly set to be implemented by the shell class - // (mainly superclass functions that are hidden by other declarations) - returned += queryFunctions(ForcedShellFunctions | default_flags); - - // All functions explicitly set to be virtual slots - returned += queryFunctions(VirtualSlots | default_flags); - - return returned; -} - -/******************************************************************************* - * Returns a list of all functions that require a public override function to - * be generated in the shell class. This includes all functions that were originally - * protected in the superclass. - */ -AbstractMetaFunctionList AbstractMetaClass::publicOverrideFunctions() const -{ - return queryFunctions(NormalFunctions | WasProtected | FinalInCppFunctions | NotRemovedFromTargetLang) - + queryFunctions(Signals | WasProtected | FinalInCppFunctions | NotRemovedFromTargetLang); -} - -AbstractMetaFunctionList AbstractMetaClass::virtualOverrideFunctions() const -{ - return queryFunctions(NormalFunctions | NonEmptyFunctions | Visible | VirtualInCppFunctions | NotRemovedFromShell) + - queryFunctions(Signals | NonEmptyFunctions | Visible | VirtualInCppFunctions | NotRemovedFromShell); -} - -void AbstractMetaClass::sortFunctions() -{ - qSort(m_functions.begin(), m_functions.end(), function_sorter); -} - -void AbstractMetaClass::setFunctions(const AbstractMetaFunctionList &functions) -{ - m_functions = functions; - - // Functions must be sorted by name before next loop - sortFunctions(); - - QString currentName; - bool hasVirtuals = false; - AbstractMetaFunctionList final_functions; - foreach (AbstractMetaFunction *f, m_functions) { - f->setOwnerClass(this); - - m_has_virtual_slots |= f->isVirtualSlot(); - m_has_virtuals |= !f->isFinal() || f->isVirtualSlot(); - m_has_nonpublic |= !f->isPublic(); - - // If we have non-virtual overloads of a virtual function, we have to implement - // all the overloads in the shell class to override the hiding rule - if (currentName == f->name()) { - hasVirtuals = hasVirtuals || !f->isFinal(); - if (f->isFinal()) - final_functions += f; - } else { - if (hasVirtuals && final_functions.size() > 0) { - foreach (AbstractMetaFunction *final_function, final_functions) { - *final_function += AbstractMetaAttributes::ForceShellImplementation; - - QString warn = QString("hiding of function '%1' in class '%2'") - .arg(final_function->name()).arg(name()); - ReportHandler::warning(warn); - } - } - - hasVirtuals = !f->isFinal(); - final_functions.clear(); - if (f->isFinal()) - final_functions += f; - currentName = f->name(); - } - } - -#ifndef QT_NO_DEBUG - bool duplicate_function = false; - for (int j=0; jmodifications(m_functions.at(j)->implementingClass()); - - bool removed = false; - foreach (const FunctionModification &mod, mods) { - if (mod.isRemoveModifier()) { - removed = true; - break ; - } - } - if (removed) - continue ; - - for (int i=0; imodifications(m_functions.at(i)->implementingClass()); - bool removed = false; - foreach (const FunctionModification &mod, mods) { - if (mod.isRemoveModifier()) { - removed = true; - break ; - } - } - if (removed) - continue ; - - uint cmp = m_functions.at(i)->compareTo(m_functions.at(j)); - if ((cmp & AbstractMetaFunction::EqualName) && (cmp & AbstractMetaFunction::EqualArguments)) { - printf("%s.%s mostly equal to %s.%s\n", - qPrintable(m_functions.at(i)->implementingClass()->typeEntry()->qualifiedCppName()), - qPrintable(m_functions.at(i)->signature()), - qPrintable(m_functions.at(j)->implementingClass()->typeEntry()->qualifiedCppName()), - qPrintable(m_functions.at(j)->signature())); - duplicate_function = true; - } - } - } - //Q_ASSERT(!duplicate_function); -#endif -} - -bool AbstractMetaClass::hasFieldAccessors() const -{ - foreach (const AbstractMetaField *field, fields()) { - if (field->getter() || field->setter()) - return true; - } - - return false; -} - -bool AbstractMetaClass::hasDefaultToStringFunction() const -{ - foreach (AbstractMetaFunction *f, queryFunctionsByName("toString")) { - if (f->actualMinimumArgumentCount() == 0) { - return true; - } - - } - return false; -} - -void AbstractMetaClass::addFunction(AbstractMetaFunction *function) -{ - function->setOwnerClass(this); - - if (!function->isDestructor()) { - m_functions << function; - qSort(m_functions.begin(), m_functions.end(), function_sorter); - } - - - m_has_virtual_slots |= function->isVirtualSlot(); - m_has_virtuals |= !function->isFinal() || function->isVirtualSlot(); - m_has_nonpublic |= !function->isPublic(); -} - -bool AbstractMetaClass::hasSignal(const AbstractMetaFunction *other) const -{ - if (!other->isSignal()) - return false; - - foreach (const AbstractMetaFunction *f, functions()) { - if (f->isSignal() && f->compareTo(other) & AbstractMetaFunction::EqualName) - return other->modifiedName() == f->modifiedName(); - } - - return false; -} - - -QString AbstractMetaClass::name() const -{ - return QString(m_type_entry->targetLangName()).replace("::", "_"); -} - -bool AbstractMetaClass::hasFunction(const QString &str) const -{ - foreach (const AbstractMetaFunction *f, functions()) - if (f->name() == str) - return true; - return false; -} - -/* Returns true if this class has one or more functions that are - protected. If a class has protected members we need to generate a - shell class with public accessors to the protected functions, so - they can be called from the native functions. -*/ -bool AbstractMetaClass::hasProtectedFunctions() const { - foreach (AbstractMetaFunction *func, m_functions) { - if (func->isProtected()) - return true; - } - return false; -} - -bool AbstractMetaClass::generateShellClass() const -{ - return m_force_shell_class || - (!isFinal() - && (hasVirtualFunctions() - || hasProtectedFunctions() - || hasFieldAccessors())); -} - -QPropertySpec *AbstractMetaClass::propertySpecForRead(const QString &name) const -{ - for (int i=0; iread()) - return m_property_specs.at(i); - return 0; -} - -QPropertySpec *AbstractMetaClass::propertySpecForWrite(const QString &name) const -{ - for (int i=0; iwrite()) - return m_property_specs.at(i); - return 0; -} - -QPropertySpec *AbstractMetaClass::propertySpecForReset(const QString &name) const -{ - for (int i=0; ireset()) - return m_property_specs.at(i); - } - return 0; -} - - - -static bool functions_contains(const AbstractMetaFunctionList &l, const AbstractMetaFunction *func) -{ - foreach (const AbstractMetaFunction *f, l) { - if ((f->compareTo(func) & AbstractMetaFunction::PrettySimilar) == AbstractMetaFunction::PrettySimilar) - return true; - } - return false; -} - -AbstractMetaField::AbstractMetaField() : m_getter(0), m_setter(0), m_class(0) -{ -} - -AbstractMetaField::~AbstractMetaField() -{ - delete m_setter; - delete m_getter; -} -ushort painters; // refcount -AbstractMetaField *AbstractMetaField::copy() const -{ - AbstractMetaField *returned = new AbstractMetaField; - returned->setEnclosingClass(0); - returned->setAttributes(attributes()); - returned->setName(name()); - returned->setType(type()->copy()); - returned->setOriginalAttributes(originalAttributes()); - - return returned; -} - -static QString upCaseFirst(const QString &str) { - Q_ASSERT(!str.isEmpty()); - QString s = str; - s[0] = s.at(0).toUpper(); - return s; -} - -static AbstractMetaFunction *createXetter(const AbstractMetaField *g, const QString &name, uint type) { - AbstractMetaFunction *f = new AbstractMetaFunction; - - - - f->setName(name); - f->setOriginalName(name); - f->setOwnerClass(g->enclosingClass()); - f->setImplementingClass(g->enclosingClass()); - f->setDeclaringClass(g->enclosingClass()); - - uint attr = AbstractMetaAttributes::Native - | AbstractMetaAttributes::Final - | type; - if (g->isStatic()) - attr |= AbstractMetaAttributes::Static; - if (g->isPublic()) - attr |= AbstractMetaAttributes::Public; - else if (g->isProtected()) - attr |= AbstractMetaAttributes::Protected; - else - attr |= AbstractMetaAttributes::Private; - f->setAttributes(attr); - f->setOriginalAttributes(attr); - - FieldModificationList mods = g->modifications(); - foreach (FieldModification mod, mods) { - if (mod.isRenameModifier()) - f->setName(mod.renamedTo()); - if (mod.isAccessModifier()) { - if (mod.isPrivate()) - f->setVisibility(AbstractMetaAttributes::Private); - else if (mod.isProtected()) - f->setVisibility(AbstractMetaAttributes::Protected); - else if (mod.isPublic()) - f->setVisibility(AbstractMetaAttributes::Public); - else if (mod.isFriendly()) - f->setVisibility(AbstractMetaAttributes::Friendly); - } - - } - return f; -} - -FieldModificationList AbstractMetaField::modifications() const -{ - FieldModificationList mods = enclosingClass()->typeEntry()->fieldModifications(); - FieldModificationList returned; - - foreach (FieldModification mod, mods) { - if (mod.name == name()) - returned += mod; - } - - return returned; -} - -const AbstractMetaFunction *AbstractMetaField::setter() const -{ - if (m_setter == 0) { - m_setter = createXetter(this, - name(), - AbstractMetaAttributes::SetterFunction); - AbstractMetaArgumentList arguments; - AbstractMetaArgument *argument = new AbstractMetaArgument; - argument->setType(type()->copy()); - argument->setName(name()); - arguments.append(argument); - m_setter->setArguments(arguments); - } - return m_setter; -} - -const AbstractMetaFunction *AbstractMetaField::getter() const -{ - if (m_getter == 0) { - m_getter = createXetter(this, - name(), - AbstractMetaAttributes::GetterFunction); - m_getter->setType(type()); - } - - return m_getter; -} - - -bool AbstractMetaClass::hasConstructors() const -{ - return queryFunctions(Constructors).size() != 0; -} - -void AbstractMetaClass::addDefaultConstructor() -{ - AbstractMetaFunction *f = new AbstractMetaFunction; - f->setName(name()); - f->setOwnerClass(this); - f->setFunctionType(AbstractMetaFunction::ConstructorFunction); - f->setArguments(AbstractMetaArgumentList()); - f->setDeclaringClass(this); - - uint attr = AbstractMetaAttributes::Native; - attr |= AbstractMetaAttributes::Public; - f->setAttributes(attr); - f->setImplementingClass(this); - f->setOriginalAttributes(f->attributes()); - - addFunction(f); -} - -bool AbstractMetaClass::hasFunction(const AbstractMetaFunction *f) const -{ - return functions_contains(m_functions, f); -} - -/* Goes through the list of functions and returns a list of all - functions matching all of the criteria in \a query. - */ - -AbstractMetaFunctionList AbstractMetaClass::queryFunctions(uint query) const -{ - AbstractMetaFunctionList functions; - - foreach (AbstractMetaFunction *f, m_functions) { - - if ((query & VirtualSlots) && !f->isVirtualSlot()) - continue; - - if ((query & NotRemovedFromTargetLang) && f->isRemovedFrom(f->implementingClass(), TypeSystem::TargetLangCode)) { - continue; - } - - if ((query & NotRemovedFromTargetLang) && !f->isFinal() && f->isRemovedFrom(f->declaringClass(), TypeSystem::TargetLangCode)) { - continue; - } - - if ((query & NotRemovedFromShell) && f->isRemovedFrom(f->implementingClass(), TypeSystem::ShellCode)) { - continue; - } - - if ((query & NotRemovedFromShell) && !f->isFinal() && f->isRemovedFrom(f->declaringClass(), TypeSystem::ShellCode)) { - continue; - } - - if ((query & Visible) && f->isPrivate()) { - continue; - } - - if ((query & VirtualInTargetLangFunctions) && f->isFinalInTargetLang()) { - continue; - } - - if ((query & Invisible) && !f->isPrivate()) { - continue; - } - - if ((query & Empty) && !f->isEmptyFunction()) { - continue; - } - - if ((query & WasPublic) && !f->wasPublic()) { - continue; - } - - if ((query & WasVisible) && f->wasPrivate()) { - continue; - } - - if ((query & WasProtected) && !f->wasProtected()) { - continue; - } - - if ((query & ClassImplements) && f->ownerClass() != f->implementingClass()) { - continue; - } - - if ((query & Inconsistent) && (f->isFinalInTargetLang() || !f->isFinalInCpp() || f->isStatic())) { - continue; - } - - if ((query & FinalInTargetLangFunctions) && !f->isFinalInTargetLang()) { - continue; - } - - if ((query & FinalInCppFunctions) && !f->isFinalInCpp()) { - continue; - } - - if ((query & VirtualInCppFunctions) && f->isFinalInCpp()) { - continue; - } - - if ((query & Signals) && (!f->isSignal())) { - continue; - } - - if ((query & ForcedShellFunctions) - && (!f->isForcedShellImplementation() - || !f->isFinal())) { - continue; - } - - if (((query & Constructors) && (!f->isConstructor() - || f->ownerClass() != f->implementingClass())) - || (f->isConstructor() && (query & Constructors) == 0)) { - continue; - } - - // Destructors are never included in the functions of a class currently - /* - if ((query & Destructors) && (!f->isDestructor() - || f->ownerClass() != f->implementingClass()) - || f->isDestructor() && (query & Destructors) == 0) { - continue; - }*/ - - if ((query & VirtualFunctions) && (f->isFinal() || f->isSignal() || f->isStatic())) { - continue; - } - - if ((query & StaticFunctions) && (!f->isStatic() || f->isSignal())) { - continue; - } - - if ((query & NonStaticFunctions) && (f->isStatic())) { - continue; - } - - if ((query & NonEmptyFunctions) && (f->isEmptyFunction())) { - continue; - } - - if ((query & NormalFunctions) && (f->isSignal())) { - continue; - } - - if ((query & AbstractFunctions) && !f->isAbstract()) { - continue; - } - - functions << f; - } - -// qDebug() << "queried" << m_type_entry->qualifiedCppName() << "got" << functions.size() << "out of" << m_functions.size(); - - return functions; -} - - -bool AbstractMetaClass::hasInconsistentFunctions() const -{ - return cppInconsistentFunctions().size() > 0; -} - -bool AbstractMetaClass::hasSignals() const -{ - return cppSignalFunctions().size() > 0; -} - - -/** - * Adds the specified interface to this class by adding all the - * functions in the interface to this class. - */ -void AbstractMetaClass::addInterface(AbstractMetaClass *interface) -{ - Q_ASSERT(!m_interfaces.contains(interface)); - m_interfaces << interface; - - if (m_extracted_interface != 0 && m_extracted_interface != interface) - m_extracted_interface->addInterface(interface); - - foreach (AbstractMetaFunction *function, interface->functions()) - if (!hasFunction(function) && !function->isConstructor()) { - AbstractMetaFunction *cpy = function->copy(); - // We do not want this in PythonQt: - //cpy->setImplementingClass(this); - - // Setup that this function is an interface class. - cpy->setInterfaceClass(interface); - *cpy += AbstractMetaAttributes::InterfaceFunction; - - // Copy the modifications in interface into the implementing classes. - FunctionModificationList mods = function->modifications(interface); - foreach (const FunctionModification &mod, mods) { - m_type_entry->addFunctionModification(mod); - } - - // It should be mostly safe to assume that when we implement an interface - // we don't "pass on" pure virtual functions to our sublcasses... -// *cpy -= AbstractMetaAttributes::Abstract; - - addFunction(cpy); - } -} - - -void AbstractMetaClass::setInterfaces(const AbstractMetaClassList &interfaces) -{ - m_interfaces = interfaces; -} - - -AbstractMetaEnum *AbstractMetaClass::findEnum(const QString &enumName) -{ - foreach (AbstractMetaEnum *e, m_enums) { - if (e->name() == enumName) - return e; - } - - if (typeEntry()->designatedInterface()) - return extractInterface()->findEnum(enumName); - - return 0; -} - - - - -/*! Recursivly searches for the enum value named \a enumValueName in - this class and its superclasses and interfaces. Values belonging to - \a meta_enum are excluded from the search. -*/ -AbstractMetaEnumValue *AbstractMetaClass::findEnumValue(const QString &enumValueName, AbstractMetaEnum *meta_enum) -{ - foreach (AbstractMetaEnum *e, m_enums) { - if (e == meta_enum) - continue; - foreach (AbstractMetaEnumValue *v, e->values()) { - if (v->name() == enumValueName) - return v; - } - } - - if (typeEntry()->designatedInterface()) - return extractInterface()->findEnumValue(enumValueName, meta_enum); - - if (baseClass() != 0) - return baseClass()->findEnumValue(enumValueName, meta_enum); - - return 0; -} - - -/*! - * Searches through all of this class' enums for a value matching the - * name \a enumValueName. The name is excluding the class/namespace - * prefix. The function recursivly searches interfaces and baseclasses - * of this class. - */ -AbstractMetaEnum *AbstractMetaClass::findEnumForValue(const QString &enumValueName) -{ - foreach (AbstractMetaEnum *e, m_enums) { - foreach (AbstractMetaEnumValue *v, e->values()) { - if (v->name() == enumValueName) - return e; - } - } - - if (typeEntry()->designatedInterface()) - return extractInterface()->findEnumForValue(enumValueName); - - if (baseClass() != 0) - return baseClass()->findEnumForValue(enumValueName); - - return 0; -} - - -static void add_extra_include_for_type(AbstractMetaClass *meta_class, const AbstractMetaType *type) -{ - - if (type == 0) - return; - - Q_ASSERT(meta_class != 0); - const TypeEntry *entry = (type ? type->typeEntry() : 0); - if (entry != 0 && entry->isComplex()) { - const ComplexTypeEntry *centry = static_cast(entry); - ComplexTypeEntry *class_entry = meta_class->typeEntry(); - if (class_entry != 0 && centry->include().isValid()) - class_entry->addExtraInclude(centry->include()); - } - - if (type->hasInstantiations()) { - QList instantiations = type->instantiations(); - foreach (AbstractMetaType *instantiation, instantiations) - add_extra_include_for_type(meta_class, instantiation); - } -} - -static void add_extra_includes_for_function(AbstractMetaClass *meta_class, const AbstractMetaFunction *meta_function) -{ - Q_ASSERT(meta_class != 0); - Q_ASSERT(meta_function != 0); - add_extra_include_for_type(meta_class, meta_function->type()); - - AbstractMetaArgumentList arguments = meta_function->arguments(); - foreach (AbstractMetaArgument *argument, arguments) - add_extra_include_for_type(meta_class, argument->type()); -} - -void AbstractMetaClass::fixFunctions() -{ - if (m_functions_fixed) - return; - else - m_functions_fixed = true; - - AbstractMetaClass *super_class = baseClass(); - AbstractMetaFunctionList funcs = functions(); - -// printf("fix functions for %s\n", qPrintable(name())); - - if (super_class != 0) - super_class->fixFunctions(); - int iface_idx = 0; - while (super_class || iface_idx < interfaces().size()) { -// printf(" - base: %s\n", qPrintable(super_class->name())); - - // Since we always traverse the complete hierarchy we are only - // interrested in what each super class implements, not what - // we may have propagated from their base classes again. - AbstractMetaFunctionList super_funcs; - if (super_class) { - - // Super classes can never be final - if (super_class->isFinalInTargetLang()) { - ReportHandler::warning("Final class '" + super_class->name() + "' set to non-final, as it is extended by other classes"); - *super_class -= AbstractMetaAttributes::FinalInTargetLang; - } - super_funcs = super_class->queryFunctions(AbstractMetaClass::ClassImplements); - } else { - super_funcs = interfaces().at(iface_idx)->queryFunctions(AbstractMetaClass::NormalFunctions); - } - - QSet funcs_to_add; - for (int sfi=0; sfiisRemovedFromAllLanguages(sf->implementingClass())) - continue; - - // we generally don't care about private functions, but we have to get the ones that are - // virtual in case they override abstract functions. - bool add = (sf->isNormal() || sf->isSignal() || sf->isEmptyFunction()); - for (int fi=0; fiisRemovedFromAllLanguages(f->implementingClass())) - continue; - - uint cmp = f->compareTo(sf); - - if (cmp & AbstractMetaFunction::EqualModifiedName) { -// printf(" - %s::%s similar to %s::%s %x vs %x\n", -// qPrintable(sf->implementingClass()->typeEntry()->qualifiedCppName()), -// qPrintable(sf->name()), -// qPrintable(f->implementingClass()->typeEntry()->qualifiedCppName()), -// qPrintable(f->name()), -// sf->attributes(), -// f->attributes()); - - add = false; - if (cmp & AbstractMetaFunction::EqualArguments) { - -// if (!(cmp & AbstractMetaFunction::EqualReturnType)) { -// ReportHandler::warning(QString("%1::%2 and %3::%4 differ in retur type") -// .arg(sf->implementingClass()->name()) -// .arg(sf->name()) -// .arg(f->implementingClass()->name()) -// .arg(f->name())); -// } - - // Same function, propegate virtual... - if (!(cmp & AbstractMetaFunction::EqualAttributes)) { - if (!f->isEmptyFunction()) { - if (!sf->isFinalInCpp() && f->isFinalInCpp()) { - *f -= AbstractMetaAttributes::FinalInCpp; - // printf(" --- inherit virtual\n"); - } - if (!sf->isFinalInTargetLang() && f->isFinalInTargetLang()) { - *f -= AbstractMetaAttributes::FinalInTargetLang; - // printf(" --- inherit virtual\n"); - } - if (!f->isFinalInTargetLang() && f->isPrivate()) { - f->setFunctionType(AbstractMetaFunction::EmptyFunction); - f->setVisibility(AbstractMetaAttributes::Protected); - *f += AbstractMetaAttributes::FinalInTargetLang; - ReportHandler::warning(QString("private virtual function '%1' in '%2'") - .arg(f->signature()) - .arg(f->implementingClass()->name())); - } - } - } - - if (f->visibility() != sf->visibility()) { - QString warn = QString("visibility of function '%1' modified in class '%2'") - .arg(f->name()).arg(name()); - ReportHandler::warning(warn); - - // If new visibility is private, we can't - // do anything. If it isn't, then we - // prefer the parent class's visibility - // setting for the function. - if (!f->isPrivate() && !sf->isPrivate()) - f->setVisibility(sf->visibility()); - - // Private overrides of abstract functions have to go into the class or - // the subclasses will not compile as non-abstract classes. - // But they don't need to be implemented, since they can never be called. - if (f->isPrivate() && sf->isAbstract()) { - f->setFunctionType(AbstractMetaFunction::EmptyFunction); - f->setVisibility(sf->visibility()); - *f += AbstractMetaAttributes::FinalInTargetLang; - *f += AbstractMetaAttributes::FinalInCpp; - } - } - - // Set the class which first declares this function, afawk - f->setDeclaringClass(sf->declaringClass()); - - if (sf->isFinalInTargetLang() && !sf->isPrivate() && !f->isPrivate() && !sf->isStatic() && !f->isStatic()) { - // Shadowed funcion, need to make base class - // function non-virtual - if (f->implementingClass() != sf->implementingClass() && f->implementingClass()->inheritsFrom(sf->implementingClass())) { - - // Check whether the superclass method has been redefined to non-final - - bool hasNonFinalModifier = false; - bool isBaseImplPrivate = false; - FunctionModificationList mods = sf->modifications(sf->implementingClass()); - foreach (FunctionModification mod, mods) { - if (mod.isNonFinal()) { - hasNonFinalModifier = true; - break; - } else if (mod.isPrivate()) { - isBaseImplPrivate = true; - break; - } - } - - if (!hasNonFinalModifier && !isBaseImplPrivate) { - ReportHandler::warning(QString::fromLatin1("Shadowing: %1::%2 and %3::%4; Java code will not compile") - .arg(sf->implementingClass()->name()) - .arg(sf->signature()) - .arg(f->implementingClass()->name()) - .arg(f->signature())); - } - } - } - - } - - if (cmp & AbstractMetaFunction::EqualDefaultValueOverload) { - AbstractMetaArgumentList arguments; - if (f->arguments().size() < sf->arguments().size()) - arguments = sf->arguments(); - else - arguments = f->arguments(); - - for (int i=0; isetDefaultValueExpression(QString()); - } - - - // Otherwise we have function shadowing and we can - // skip the thing... - } else if (cmp & AbstractMetaFunction::EqualName && !sf->isSignal()) { - - // In the case of function shadowing where the function name has been altered to - // avoid conflict, we don't copy in the original. - add = false; - } - - } - - if (add) - funcs_to_add << sf; - } - - foreach (AbstractMetaFunction *f, funcs_to_add) - funcs << f->copy(); - - if (super_class) - super_class = super_class->baseClass(); - else - iface_idx++; - } - - bool hasPrivateConstructors = false; - bool hasPublicConstructors = false; - foreach (AbstractMetaFunction *func, funcs) { - FunctionModificationList mods = func->modifications(this); - foreach (const FunctionModification &mod, mods) { - if (mod.isRenameModifier()) { -// qDebug() << name() << func->originalName() << func << " from " -// << func->implementingClass()->name() << "renamed to" << mod.renamedTo(); - func->setName(mod.renamedTo()); - } - } - - // Make sure class is abstract if one of the functions is - if (func->isAbstract()) { - (*this) += AbstractMetaAttributes::Abstract; - (*this) -= AbstractMetaAttributes::Final; - } - - if (func->isConstructor()) { - if (func->isPrivate()) - hasPrivateConstructors = true; - else - hasPublicConstructors = true; - } - - - - // Make sure that we include files for all classes that are in use - - if (!func->isRemovedFrom(this, TypeSystem::ShellCode)) - add_extra_includes_for_function(this, func); - } - - if (hasPrivateConstructors && !hasPublicConstructors) { - (*this) += AbstractMetaAttributes::Abstract; - (*this) -= AbstractMetaAttributes::Final; - } - - foreach (AbstractMetaFunction *f1, funcs) { - foreach (AbstractMetaFunction *f2, funcs) { - if (f1 != f2) { - uint cmp = f1->compareTo(f2); - if ((cmp & AbstractMetaFunction::EqualName) - && !f1->isFinalInCpp() - && f2->isFinalInCpp()) { - *f2 += AbstractMetaAttributes::FinalOverload; -// qDebug() << f2 << f2->implementingClass()->name() << "::" << f2->name() << f2->arguments().size() << " vs " << f1 << f1->implementingClass()->name() << "::" << f1->name() << f1->arguments().size(); -// qDebug() << " " << f2; -// AbstractMetaArgumentList f2Args = f2->arguments(); -// foreach (AbstractMetaArgument *a, f2Args) -// qDebug() << " " << a->type()->name() << a->name(); -// qDebug() << " " << f1; -// AbstractMetaArgumentList f1Args = f1->arguments(); -// foreach (AbstractMetaArgument *a, f1Args) -// qDebug() << " " << a->type()->name() << a->name(); - - } - } - } - } - - setFunctions(funcs); -} - - -QString AbstractMetaType::minimalSignature() const -{ - QString minimalSignature; - if (isConstant()) - minimalSignature += "const "; - minimalSignature += typeEntry()->qualifiedCppName(); - if (hasInstantiations()) { - QList instantiations = this->instantiations(); - minimalSignature += "<"; - for (int i=0;i 0) - minimalSignature += ","; - minimalSignature += instantiations.at(i)->minimalSignature(); - } - minimalSignature += ">"; - } - - if (isReference()) - minimalSignature += "&"; - for (int j=0; jisNativeIdBased(); -} - - -/******************************************************************************* - * Other stuff... - */ - - -AbstractMetaEnum *AbstractMetaClassList::findEnum(const EnumTypeEntry *entry) const -{ - Q_ASSERT(entry->isEnum()); - - QString qualified_name = entry->qualifiedCppName(); - int pos = qualified_name.lastIndexOf("::"); - - QString enum_name; - QString class_name; - - if (pos > 0) { - enum_name = qualified_name.mid(pos + 2); - class_name = qualified_name.mid(0, pos); - } else { - enum_name = qualified_name; - class_name = TypeDatabase::globalNamespaceClassName(entry); - } - - AbstractMetaClass *meta_class = findClass(class_name); - if (!meta_class) { - ReportHandler::warning(QString("AbstractMeta::findEnum(), unknown class '%1' in '%2'") - .arg(class_name).arg(entry->qualifiedCppName())); - return 0; - } - - return meta_class->findEnum(enum_name); -} - -AbstractMetaEnumValue *AbstractMetaEnumValueList::find(const QString &name) const -{ - for (int i=0; iname()) - return at(i); - } - return 0; -} - -AbstractMetaEnumValue *AbstractMetaClassList::findEnumValue(const QString &name) const -{ - QStringList lst = name.split(QLatin1String("::")); - - Q_ASSERT_X(lst.size() == 2, "AbstractMetaClassList::findEnumValue()", "Expected qualified enum"); - - - QString prefixName = lst.at(0); - QString enumName = lst.at(1); - - AbstractMetaClass *cl = findClass(prefixName); - if (cl) - return cl->findEnumValue(enumName, 0); - - ReportHandler::warning(QString("no matching enum '%1'").arg(name)); - return 0; -} - -/*! - * Searches the list after a class that mathces \a name; either as - * C++, Java base name or complete Java package.class name. - */ - -AbstractMetaClass *AbstractMetaClassList::findClass(const QString &name) const -{ - if (name.isEmpty()) - return 0; - - foreach (AbstractMetaClass *c, *this) { - if (c->qualifiedCppName() == name) - return c; - } - - foreach (AbstractMetaClass *c, *this) { - if (c->fullName() == name) - return c; - } - - foreach (AbstractMetaClass *c, *this) { - if (c->name() == name) - return c; - } - - return 0; -} diff --git a/3rdparty/pythonqt/generator/abstractmetalang.h b/3rdparty/pythonqt/generator/abstractmetalang.h deleted file mode 100644 index c35ac4b1e..000000000 --- a/3rdparty/pythonqt/generator/abstractmetalang.h +++ /dev/null @@ -1,946 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef ABSTRACTMETALANG_H -#define ABSTRACTMETALANG_H - -#include "codemodel.h" - -#include "typesystem.h" - -#include -#include -#include - - -class AbstractMeta; -class AbstractMetaClass; -class AbstractMetaField; -class AbstractMetaFunction; -class AbstractMetaType; -class AbstractMetaVariable; -class AbstractMetaArgument; -class AbstractMetaEnumValue; -class AbstractMetaEnum; -class QPropertySpec; - -typedef QList AbstractMetaFieldList; -typedef QList AbstractMetaArgumentList; -typedef QList AbstractMetaFunctionList; -class AbstractMetaClassList : public QList -{ -public: - AbstractMetaClass *findClass(const QString &name) const; - AbstractMetaEnumValue *findEnumValue(const QString &string) const; - AbstractMetaEnum *findEnum(const EnumTypeEntry *entry) const; - -}; - - - -class AbstractMetaAttributes -{ -public: - AbstractMetaAttributes() : m_attributes(0) { }; - - enum Attribute { - None = 0x00000000, - - Private = 0x00000001, - Protected = 0x00000002, - Public = 0x00000004, - Friendly = 0x00000008, - Visibility = 0x0000000f, - - Native = 0x00000010, - Abstract = 0x00000020, - Static = 0x00000040, - - FinalInTargetLang = 0x00000080, - FinalInCpp = 0x00000100, - ForceShellImplementation = 0x00000200, - - GetterFunction = 0x00000400, - SetterFunction = 0x00000800, - - FinalOverload = 0x00001000, - InterfaceFunction = 0x00002000, - - PropertyReader = 0x00004000, - PropertyWriter = 0x00008000, - PropertyResetter = 0x00010000, - - Fake = 0x00020000, - - Invokable = 0x00040000, - - Final = FinalInTargetLang | FinalInCpp - }; - - uint attributes() const { return m_attributes; } - void setAttributes(uint attributes) { m_attributes = attributes; } - - uint originalAttributes() const { return m_originalAttributes; } - void setOriginalAttributes(uint attributes) { m_originalAttributes = attributes; } - - uint visibility() const { return m_attributes & Visibility; } - void setVisibility(uint visi) { m_attributes = (m_attributes & ~Visibility) | visi; } - - void operator+=(Attribute attribute) { m_attributes |= attribute; } - void operator-=(Attribute attribute) { m_attributes &= ~attribute; } - - bool isNative() const { return m_attributes & Native; } - bool isFinal() const { return (m_attributes & Final) == Final; } - bool isFinalInTargetLang() const { return m_attributes & FinalInTargetLang; } - bool isFinalInCpp() const { return m_attributes & FinalInCpp; } - bool isAbstract() const { return m_attributes & Abstract; } - bool isStatic() const { return m_attributes & Static; } - bool isForcedShellImplementation() const { return m_attributes & ForceShellImplementation; } - bool isInterfaceFunction() const { return m_attributes & InterfaceFunction; } - bool isFinalOverload() const { return m_attributes & FinalOverload; } - bool isInvokable() const { return m_attributes & Invokable; } - - bool isPropertyReader() const { return m_attributes & PropertyReader; } - bool isPropertyWriter() const { return m_attributes & PropertyWriter; } - bool isPropertyResetter() const { return m_attributes & PropertyResetter; } - - bool isPrivate() const { return m_attributes & Private; } - bool isProtected() const { return m_attributes & Protected; } - bool isPublic() const { return m_attributes & Public; } - bool isFriendly() const { return m_attributes & Friendly; } - - bool wasPrivate() const { return m_originalAttributes & Private; } - bool wasProtected() const { return m_originalAttributes & Protected; } - bool wasPublic() const { return m_originalAttributes & Public; } - bool wasFriendly() const { return m_originalAttributes & Friendly; } - -private: - uint m_attributes; - uint m_originalAttributes; -}; - - -class AbstractMetaType -{ -public: - enum TypeUsagePattern { - InvalidPattern, - PrimitivePattern, - FlagsPattern, - EnumPattern, - ValuePattern, - StringPattern, - CharPattern, - ObjectPattern, - QObjectPattern, - NativePointerPattern, - ContainerPattern, - VariantPattern, - JObjectWrapperPattern, - ArrayPattern, - ThreadPattern - }; - - AbstractMetaType() : - m_type_entry(0), - m_array_element_count(0), - m_array_element_type(0), - m_original_template_type(0), - m_pattern(InvalidPattern), - m_constant(false), - m_reference(false), - m_cpp_instantiation(true), - m_indirections(0), - m_reserved(0) - { - } - - QString package() const { return m_type_entry->javaPackage(); } - QString name() const { return m_type_entry->targetLangName(); } - QString fullName() const { return m_type_entry->qualifiedTargetLangName(); } - - void setTypeUsagePattern(TypeUsagePattern pattern) { m_pattern = pattern; } - TypeUsagePattern typeUsagePattern() const { return m_pattern; } - - // true when use pattern is container - bool hasInstantiations() const { return !m_instantiations.isEmpty(); } - void addInstantiation(AbstractMetaType *inst) { m_instantiations << inst; } - void setInstantiations(const QList &insts) { m_instantiations = insts; } - QList instantiations() const { return m_instantiations; } - void setInstantiationInCpp(bool incpp) { m_cpp_instantiation = incpp; } - bool hasInstantiationInCpp() const { return hasInstantiations() && m_cpp_instantiation; } - - QString minimalSignature() const; - - // true when the type is a QtJambiObject subclass - bool hasNativeId() const; - - // returns true if the typs is used as a non complex primitive, no & or *'s - bool isPrimitive() const { return m_pattern == PrimitivePattern; } - - // returns true if the type is used as an enum - bool isEnum() const { return m_pattern == EnumPattern; } - - // returns true if the type is used as a QObject * - bool isQObject() const { return m_pattern == QObjectPattern; } - - // returns true if the type is used as an object, e.g. Xxx * - bool isObject() const { return m_pattern == ObjectPattern; } - - // returns true if the type is used as an array, e.g. Xxx[42] - bool isArray() const { return m_pattern == ArrayPattern; } - - // returns true if the type is used as a value type (X or const X &) - bool isValue() const { return m_pattern == ValuePattern; } - - // returns true for more complex types... - bool isNativePointer() const { return m_pattern == NativePointerPattern; } - - // returns true if the type was originally a QString or const QString & or equivalent for QLatin1String - bool isTargetLangString() const { return m_pattern == StringPattern; } - - // returns true if the type was originally a QChar or const QChar & - bool isTargetLangChar() const { return m_pattern == CharPattern; } - - // return true if the type was originally a QVariant or const QVariant & - bool isVariant() const { return m_pattern == VariantPattern; } - - // return true if the type was originally a JObjectWrapper or const JObjectWrapper & - bool isJObjectWrapper() const { return m_pattern == JObjectWrapperPattern; } - - // returns true if the type was used as a container - bool isContainer() const { return m_pattern == ContainerPattern; } - - // returns true if the type was used as a flag - bool isFlags() const { return m_pattern == FlagsPattern; } - - // returns true if the type was used as a thread - bool isThread() const { return m_pattern == ThreadPattern; } - - bool isConstant() const { return m_constant; } - void setConstant(bool constant) { m_constant = constant; } - - bool isReference() const { return m_reference; } - void setReference(bool ref) { m_reference = ref; } - - // Returns true if the type is to be implemented using Java enums, e.g. not plain ints. - bool isTargetLangEnum() const { return isEnum() && !((EnumTypeEntry *) typeEntry())->forceInteger(); } - bool isIntegerEnum() const { return isEnum() && !isTargetLangEnum(); } - - // Returns true if the type is to be implemented using Java QFlags, e.g. not plain ints. - bool isTargetLangFlags() const { - return isFlags() && !((FlagsTypeEntry *) typeEntry())->forceInteger(); } - bool isIntegerFlags() const { return isFlags() && !isTargetLangFlags(); } - - int actualIndirections() const { return m_indirections + (isReference() ? 1 : 0); } - int indirections() const { return m_indirections; } - void setIndirections(int indirections) { m_indirections = indirections; } - - void setArrayElementCount(int n) { m_array_element_count = n; } - int arrayElementCount() const { return m_array_element_count; } - - AbstractMetaType *arrayElementType() const { return m_array_element_type; } - void setArrayElementType(AbstractMetaType *t) { m_array_element_type = t; } - - QString cppSignature() const; - - AbstractMetaType *copy() const; - - const TypeEntry *typeEntry() const { return m_type_entry; } - void setTypeEntry(const TypeEntry *type) { m_type_entry = type; } - - void setOriginalTypeDescription(const QString &otd) { m_original_type_description = otd; } - QString originalTypeDescription() const { return m_original_type_description; } - - void setOriginalTemplateType(const AbstractMetaType *type) { m_original_template_type = type; } - const AbstractMetaType *originalTemplateType() const { return m_original_template_type; } - -private: - const TypeEntry *m_type_entry; - QList m_instantiations; - QString m_package; - QString m_original_type_description; - - int m_array_element_count; - AbstractMetaType *m_array_element_type; - const AbstractMetaType *m_original_template_type; - - TypeUsagePattern m_pattern; - uint m_constant : 1; - uint m_reference : 1; - uint m_cpp_instantiation : 1; - int m_indirections : 4; - uint m_reserved : 25; // unused -}; - -class AbstractMetaVariable -{ -public: - AbstractMetaVariable() : m_type(0) { } - - AbstractMetaType *type() const { return m_type; } - void setType(AbstractMetaType *type) { m_type = type; } - - QString name() const { return m_name; } - void setName(const QString &name) { m_name = name; } - -private: - QString m_name; - AbstractMetaType *m_type; -}; - - - -class AbstractMetaArgument : public AbstractMetaVariable -{ -public: - AbstractMetaArgument() : m_argument_index(0) { }; - - QString defaultValueExpression() const { return m_expression; } - void setDefaultValueExpression(const QString &expr) { m_expression = expr; } - - QString originalDefaultValueExpression() const { return m_original_expression; } - void setOriginalDefaultValueExpression(const QString &expr) { m_original_expression = expr; } - - QString toString() const { return type()->name() + " " + AbstractMetaVariable::name() + - (m_expression.isEmpty() ? "" : " = " + m_expression); } - - int argumentIndex() const { return m_argument_index; } - void setArgumentIndex(int argIndex) { m_argument_index = argIndex; } - - QString argumentName() const; - QString indexedName() const; - - AbstractMetaArgument *copy() const; - -private: - // Just to force people to call argumentName() And indexedName(); - QString name() const; - - QString m_expression; - QString m_original_expression; - int m_argument_index; -}; - - -class AbstractMetaField : public AbstractMetaVariable, public AbstractMetaAttributes -{ -public: - AbstractMetaField(); - ~AbstractMetaField(); - - const AbstractMetaClass *enclosingClass() const { return m_class; } - void setEnclosingClass(const AbstractMetaClass *cls) { m_class = cls; } - - const AbstractMetaFunction *getter() const; - const AbstractMetaFunction *setter() const; - - FieldModificationList modifications() const; - - AbstractMetaField *copy() const; - -private: - mutable AbstractMetaFunction *m_getter; - mutable AbstractMetaFunction *m_setter; - const AbstractMetaClass *m_class; -}; - - -class AbstractMetaFunction : public AbstractMetaAttributes -{ -public: - enum FunctionType { - ConstructorFunction, - DestructorFunction, - NormalFunction, - SignalFunction, - EmptyFunction, - SlotFunction, - GlobalScopeFunction - }; - - enum CompareResult { - EqualName = 0x00000001, - EqualArguments = 0x00000002, - EqualAttributes = 0x00000004, - EqualImplementor = 0x00000008, - EqualReturnType = 0x00000010, - EqualDefaultValueOverload = 0x00000020, - EqualModifiedName = 0x00000040, - - NameLessThan = 0x00001000, - - PrettySimilar = EqualName | EqualArguments, - Equal = 0x0000001f, - NotEqual = 0x00001000 - }; - - AbstractMetaFunction() - : m_function_type(NormalFunction), - m_type(0), - m_class(0), - m_implementing_class(0), - m_declaring_class(0), - m_interface_class(0), - m_property_spec(0), - m_constant(false), - m_invalid(false) - { - } - - ~AbstractMetaFunction(); - - QString name() const { return m_name; } - void setName(const QString &name) { m_name = name; } - - QString originalName() const { return m_original_name.isEmpty() ? name() : m_original_name; } - void setOriginalName(const QString &name) { m_original_name = name; } - - QString modifiedName() const; - - QString minimalSignature() const; - QStringList possibleIntrospectionCompatibleSignatures() const; - - QString marshalledName() const; - - // true if one or more of the arguments are of QtJambiObject subclasses - bool argumentsHaveNativeId() const - { - foreach (const AbstractMetaArgument *arg, m_arguments) { - if (arg->type()->hasNativeId()) - return true; - } - - return false; - } - - bool isModifiedRemoved(int types = TypeSystem::All) const; - - AbstractMetaType *type() const { return m_type; } - void setType(AbstractMetaType *type) { m_type = type; } - - // The class that has this function as a member. - const AbstractMetaClass *ownerClass() const { return m_class; } - void setOwnerClass(const AbstractMetaClass *cls) { m_class = cls; } - - // The first class in a hierarchy that declares the function - const AbstractMetaClass *declaringClass() const { return m_declaring_class; } - void setDeclaringClass(const AbstractMetaClass *cls) { m_declaring_class = cls; } - - // The class that actually implements this function - const AbstractMetaClass *implementingClass() const { return m_implementing_class; } - void setImplementingClass(const AbstractMetaClass *cls) { m_implementing_class = cls; } - - bool needsCallThrough() const; - - AbstractMetaArgumentList arguments() const { return m_arguments; } - void setArguments(const AbstractMetaArgumentList &arguments) { m_arguments = arguments; } - void addArgument(AbstractMetaArgument *argument) { m_arguments << argument; } - int actualMinimumArgumentCount() const; - - void setInvalid(bool on) { m_invalid = on; } - bool isInvalid() const { return m_invalid; } - bool isDeprecated() const; - bool isDestructor() const { return functionType() == DestructorFunction; } - bool isConstructor() const { return functionType() == ConstructorFunction; } - bool isNormal() const { return functionType() == NormalFunction || isSlot() || isInGlobalScope(); } - bool isInGlobalScope() const { return functionType() == GlobalScopeFunction; } - bool isSignal() const { return functionType() == SignalFunction; } - bool isSlot() const { return functionType() == SlotFunction; } - bool isEmptyFunction() const { return functionType() == EmptyFunction; } - FunctionType functionType() const { return m_function_type; } - void setFunctionType(FunctionType type) { m_function_type = type; } - - bool isVirtual() { return !(isFinal() || isSignal() || isStatic()); } - - QStringList introspectionCompatibleSignatures(const QStringList &resolvedArguments = QStringList()) const; - QString signature() const; - QString targetLangSignature(bool minimal = false) const; - bool shouldReturnThisObject() const { return QLatin1String("this") == argumentReplaced(0); } - bool shouldIgnoreReturnValue() const { return QLatin1String("void") == argumentReplaced(0); } - - bool isConstant() const { return m_constant; } - void setConstant(bool constant) { m_constant = constant; } - - QString toString() const { return m_name; } - - uint compareTo(const AbstractMetaFunction *other) const; - - bool operator <(const AbstractMetaFunction &a) const; - - AbstractMetaFunction *copy() const; - - QString replacedDefaultExpression(const AbstractMetaClass *cls, int idx) const; - bool removedDefaultExpression(const AbstractMetaClass *cls, int idx) const; - QString conversionRule(TypeSystem::Language language, int idx) const; - QList referenceCounts(const AbstractMetaClass *cls, int idx = -2) const; - - bool nullPointersDisabled(const AbstractMetaClass *cls = 0, int argument_idx = 0) const; - QString nullPointerDefaultValue(const AbstractMetaClass *cls = 0, int argument_idx = 0) const; - - bool resetObjectAfterUse(int argument_idx) const; - - // Returns whether garbage collection is disabled for the argument in any context - bool disabledGarbageCollection(const AbstractMetaClass *cls, int key) const; - - // Returns the ownership rules for the given argument in the given context - TypeSystem::Ownership ownership(const AbstractMetaClass *cls, TypeSystem::Language language, int idx) const; - - bool isVirtualSlot() const; - - QString typeReplaced(int argument_index) const; - bool isRemovedFromAllLanguages(const AbstractMetaClass *) const; - bool isRemovedFrom(const AbstractMetaClass *, TypeSystem::Language language) const; - bool argumentRemoved(int) const; - - QString argumentReplaced(int key) const; - bool needsSuppressUncheckedWarning() const; - - bool hasModifications(const AbstractMetaClass *implementor) const; - FunctionModificationList modifications(const AbstractMetaClass *implementor) const; - - // If this function stems from an interface, this returns the - // interface that declares it. - const AbstractMetaClass *interfaceClass() const { return m_interface_class; } - void setInterfaceClass(const AbstractMetaClass *cl) { m_interface_class = cl; } - - void setPropertySpec(QPropertySpec *spec) { m_property_spec = spec; } - QPropertySpec *propertySpec() const { return m_property_spec; } - -private: - QString m_name; - QString m_original_name; - mutable QString m_cached_minimal_signature; - mutable QString m_cached_modified_name; - - FunctionType m_function_type; - AbstractMetaType *m_type; - const AbstractMetaClass *m_class; - const AbstractMetaClass *m_implementing_class; - const AbstractMetaClass *m_declaring_class; - const AbstractMetaClass *m_interface_class; - QPropertySpec *m_property_spec; - AbstractMetaArgumentList m_arguments; - uint m_constant : 1; - uint m_invalid : 1; -}; - - -class AbstractMetaEnumValue -{ -public: - AbstractMetaEnumValue() - : m_value_set(false), m_value(0) - { - } - - int value() const { return m_value; } - void setValue(int value) { m_value_set = true; m_value = value; } - - QString stringValue() const { return m_string_value; } - void setStringValue(const QString &v) { m_string_value = v; } - - QString name() const { return m_name; } - void setName(const QString &name) { m_name = name; } - - bool isValueSet() const { return m_value_set; } - -private: - QString m_name; - QString m_string_value; - - bool m_value_set; - int m_value; -}; - - -class AbstractMetaEnumValueList : public QList -{ -public: - AbstractMetaEnumValue *find(const QString &name) const; -}; - -class AbstractMetaEnum : public AbstractMetaAttributes -{ -public: - AbstractMetaEnum() : m_type_entry(0), m_class(0), m_has_qenums_declaration(false) {} - - AbstractMetaEnumValueList values() const { return m_enum_values; } - void addEnumValue(AbstractMetaEnumValue *enumValue) { m_enum_values << enumValue; } - - QString name() const { return m_type_entry->targetLangName(); } - QString qualifier() const { return m_type_entry->javaQualifier(); } - QString package() const { return m_type_entry->javaPackage(); } - QString fullName() const { return package() + "." + qualifier() + "." + name(); } - - // Has the enum been declared inside a Q_ENUMS() macro in its enclosing class? - void setHasQEnumsDeclaration(bool on) { m_has_qenums_declaration = on; } - bool hasQEnumsDeclaration() const { return m_has_qenums_declaration; } - - EnumTypeEntry *typeEntry() const { return m_type_entry; } - void setTypeEntry(EnumTypeEntry *entry) { m_type_entry = entry; } - - AbstractMetaClass *enclosingClass() const { return m_class; } - void setEnclosingClass(AbstractMetaClass *c) { m_class = c; } - -private: - AbstractMetaEnumValueList m_enum_values; - EnumTypeEntry *m_type_entry; - AbstractMetaClass *m_class; - - uint m_has_qenums_declaration : 1; - uint m_reserved : 31; -}; - -typedef QList AbstractMetaEnumList; - -class AbstractMetaClass : public AbstractMetaAttributes -{ -public: - enum FunctionQueryOption { - Constructors = 0x000001, // Only constructors - //Destructors = 0x000002, // Only destructors. Not included in class. - VirtualFunctions = 0x000004, // Only virtual functions (virtual in both TargetLang and C++) - FinalInTargetLangFunctions = 0x000008, // Only functions that are non-virtual in TargetLang - FinalInCppFunctions = 0x000010, // Only functions that are non-virtual in C++ - ClassImplements = 0x000020, // Only functions implemented by the current class - Inconsistent = 0x000040, // Only inconsistent functions (inconsistent virtualness in TargetLang/C++) - StaticFunctions = 0x000080, // Only static functions - Signals = 0x000100, // Only signals - NormalFunctions = 0x000200, // Only functions that aren't signals - Visible = 0x000400, // Only public and protected functions - ForcedShellFunctions = 0x000800, // Only functions that are overridden to be implemented in the shell class - WasPublic = 0x001000, // Only functions that were originally public - WasProtected = 0x002000, // Only functions that were originally protected - NonStaticFunctions = 0x004000, // No static functions - Empty = 0x008000, // Empty overrides of abstract functions - Invisible = 0x010000, // Only private functions - VirtualInCppFunctions = 0x020000, // Only functions that are virtual in C++ - NonEmptyFunctions = 0x040000, // Only functions with JNI implementations - VirtualInTargetLangFunctions = 0x080000, // Only functions which are virtual in TargetLang - AbstractFunctions = 0x100000, // Only abstract functions - WasVisible = 0x200000, // Only functions that were public or protected in the original code - NotRemovedFromTargetLang = 0x400000, // Only functions that have not been removed from TargetLang - NotRemovedFromShell = 0x800000, // Only functions that have not been removed from the shell class - VirtualSlots = 0x1000000 // Only functions that are set as virtual slots in the type system - }; - - AbstractMetaClass() - : m_namespace(false), - m_qobject(false), - m_has_virtuals(false), - m_has_nonpublic(false), - m_has_virtual_slots(false), - m_has_nonprivateconstructor(false), - m_functions_fixed(false), - m_has_public_destructor(true), - m_force_shell_class(false), - m_has_hash_function(false), - m_has_equals_operator(false), - m_has_clone_operator(false), - m_is_type_alias(false), - m_enclosing_class(0), - m_base_class(0), - m_template_base_class(0), - m_extracted_interface(0), - m_primary_interface_implementor(0), - m_type_entry(0), - m_qDebug_stream_function(0) - { - } - - virtual ~AbstractMetaClass(); - - AbstractMetaClass *extractInterface(); - void fixFunctions(); - - AbstractMetaFunctionList functions() const { return m_functions; } - void setFunctions(const AbstractMetaFunctionList &functions); - void addFunction(AbstractMetaFunction *function); - bool hasFunction(const AbstractMetaFunction *f) const; - bool hasFunction(const QString &str) const; - bool hasSignal(const AbstractMetaFunction *f) const; - - bool hasConstructors() const; - - void addDefaultConstructor(); - - bool hasNonPrivateConstructor() const { return m_has_nonprivateconstructor; } - void setHasNonPrivateConstructor(bool on) { m_has_nonprivateconstructor = on; } - bool hasPublicDestructor() const { return m_has_public_destructor; } - void setHasPublicDestructor(bool on) { m_has_public_destructor = on; } - - AbstractMetaFunctionList queryFunctionsByName(const QString &name) const; - AbstractMetaFunctionList queryFunctions(uint query) const; - inline AbstractMetaFunctionList allVirtualFunctions() const; - inline AbstractMetaFunctionList allFinalFunctions() const; - AbstractMetaFunctionList functionsInTargetLang() const; - AbstractMetaFunctionList functionsInShellClass() const; - inline AbstractMetaFunctionList cppInconsistentFunctions() const; - inline AbstractMetaFunctionList cppSignalFunctions() const; - AbstractMetaFunctionList publicOverrideFunctions() const; - AbstractMetaFunctionList virtualOverrideFunctions() const; - AbstractMetaFunctionList virtualFunctions() const; - AbstractMetaFunctionList nonVirtualShellFunctions() const; - - AbstractMetaFieldList fields() const { return m_fields; } - void setFields(const AbstractMetaFieldList &fields) { m_fields = fields; } - void addField(AbstractMetaField *field) { m_fields << field; } - - AbstractMetaEnumList enums() const { return m_enums; } - void setEnums(const AbstractMetaEnumList &enums) { m_enums = enums; } - void addEnum(AbstractMetaEnum *e) { m_enums << e; } - - AbstractMetaEnum *findEnum(const QString &enumName); - AbstractMetaEnum *findEnumForValue(const QString &enumName); - AbstractMetaEnumValue *findEnumValue(const QString &enumName, AbstractMetaEnum *meta_enum); - - AbstractMetaClassList interfaces() const { return m_interfaces; } - void addInterface(AbstractMetaClass *interface); - void setInterfaces(const AbstractMetaClassList &interface); - - QString fullName() const { return package() + "." + name(); } - QString name() const; - - QString baseClassName() const { return m_base_class ? m_base_class->name() : QString(); } - - AbstractMetaClass *baseClass() const { return m_base_class; } - void setBaseClass(AbstractMetaClass *base_class) { m_base_class = base_class; } - - const AbstractMetaClass *enclosingClass() const { return m_enclosing_class; } - void setEnclosingClass(AbstractMetaClass *cl) { m_enclosing_class = cl; } - - QString package() const { return m_type_entry->javaPackage(); } - bool isInterface() const { return m_type_entry->isInterface(); } - bool isNamespace() const { return m_type_entry->isNamespace(); } - bool isQObject() const { return m_type_entry->isQObject(); } - bool isQtNamespace() const { return isNamespace() && name() == "Qt"; } - QString qualifiedCppName() const { return m_type_entry->qualifiedCppName(); } - - bool hasInconsistentFunctions() const; - bool hasSignals() const; - bool inheritsFrom(const AbstractMetaClass *other) const; - - void setForceShellClass(bool on) { m_force_shell_class = on; } - bool generateShellClass() const; - - bool hasVirtualSlots() const { return m_has_virtual_slots; } - bool hasVirtualFunctions() const { return !isFinal() && m_has_virtuals; } - bool hasProtectedFunctions() const; - - QList templateArguments() const { return m_template_args; } - void setTemplateArguments(const QList &args) { m_template_args = args; } - - bool hasFieldAccessors() const; - - // only valid during metajavabuilder's run - QStringList baseClassNames() const { return m_base_class_names; } - void setBaseClassNames(const QStringList &names) { m_base_class_names = names; } - - AbstractMetaClass *primaryInterfaceImplementor() const { return m_primary_interface_implementor; } - void setPrimaryInterfaceImplementor(AbstractMetaClass *cl) { m_primary_interface_implementor = cl; } - - const ComplexTypeEntry *typeEntry() const { return m_type_entry; } - ComplexTypeEntry *typeEntry() { return m_type_entry; } - void setTypeEntry(ComplexTypeEntry *type) { m_type_entry = type; } - - void setHasHashFunction(bool on) { m_has_hash_function = on; } - bool hasHashFunction() const { return m_has_hash_function; } - - void setToStringCapability(FunctionModelItem fun) { m_qDebug_stream_function= fun; } - FunctionModelItem hasToStringCapability() const { return m_qDebug_stream_function; } - - virtual bool hasDefaultToStringFunction() const; - - void setHasEqualsOperator(bool on) { m_has_equals_operator = on; } - bool hasEqualsOperator() const { return m_has_equals_operator; } - - void setHasCloneOperator(bool on) { m_has_clone_operator = on; } - bool hasCloneOperator() const { return m_has_clone_operator; } - - bool hasDefaultIsNull() const; - - void addPropertySpec(QPropertySpec *spec) { m_property_specs << spec; } - QList propertySpecs() const { return m_property_specs; } - - QPropertySpec *propertySpecForRead(const QString &name) const; - QPropertySpec *propertySpecForWrite(const QString &name) const; - QPropertySpec *propertySpecForReset(const QString &name) const; - - QList referenceCounts() const; - - void setEqualsFunctions(const AbstractMetaFunctionList &lst) { m_equals_functions = lst; } - AbstractMetaFunctionList equalsFunctions() const { return m_equals_functions; } - - void setNotEqualsFunctions(const AbstractMetaFunctionList &lst) { m_nequals_functions = lst; } - AbstractMetaFunctionList notEqualsFunctions() const { return m_nequals_functions; } - - void setLessThanFunctions(const AbstractMetaFunctionList &lst) { m_less_than_functions = lst; } - AbstractMetaFunctionList lessThanFunctions() const { return m_less_than_functions; } - - void setGreaterThanFunctions(const AbstractMetaFunctionList &lst) { m_greater_than_functions = lst; } - AbstractMetaFunctionList greaterThanFunctions() const { return m_greater_than_functions; } - - void setLessThanEqFunctions(const AbstractMetaFunctionList &lst) { m_less_than_eq_functions = lst; } - AbstractMetaFunctionList lessThanEqFunctions() const { return m_less_than_eq_functions; } - - void setGreaterThanEqFunctions(const AbstractMetaFunctionList &lst) { m_greater_than_eq_functions = lst; } - AbstractMetaFunctionList greaterThanEqFunctions() const { return m_greater_than_eq_functions; } - - void sortFunctions(); - - const AbstractMetaClass *templateBaseClass() const { return m_template_base_class; } - void setTemplateBaseClass(const AbstractMetaClass *cls) { m_template_base_class = cls; } - - void setTypeAlias(bool typeAlias) { m_is_type_alias = typeAlias; } - bool isTypeAlias() const { return m_is_type_alias; } - - bool operator <(const AbstractMetaClass &a) const { - return qualifiedCppName() < a.qualifiedCppName(); - } - -private: - uint m_namespace : 1; - uint m_qobject : 1; - uint m_has_virtuals : 1; - uint m_has_nonpublic : 1; - uint m_has_virtual_slots : 1; - uint m_has_nonprivateconstructor : 1; - uint m_functions_fixed : 1; - uint m_has_public_destructor : 1; - uint m_force_shell_class : 1; - uint m_has_hash_function : 1; - uint m_has_equals_operator : 1; - uint m_has_clone_operator :1; - uint m_is_type_alias : 1; - uint m_reserved : 19; - - const AbstractMetaClass *m_enclosing_class; - AbstractMetaClass *m_base_class; - const AbstractMetaClass *m_template_base_class; - AbstractMetaFunctionList m_functions; - AbstractMetaFieldList m_fields; - AbstractMetaEnumList m_enums; - AbstractMetaClassList m_interfaces; - AbstractMetaClass *m_extracted_interface; - AbstractMetaClass *m_primary_interface_implementor; - QList m_property_specs; - AbstractMetaFunctionList m_equals_functions; - AbstractMetaFunctionList m_nequals_functions; - - AbstractMetaFunctionList m_less_than_functions; - AbstractMetaFunctionList m_greater_than_functions; - AbstractMetaFunctionList m_less_than_eq_functions; - AbstractMetaFunctionList m_greater_than_eq_functions; - - QStringList m_base_class_names; - QList m_template_args; - ComplexTypeEntry *m_type_entry; - FunctionModelItem m_qDebug_stream_function; -}; - -class QPropertySpec { -public: - QPropertySpec(const TypeEntry *type) - : m_type(type), - m_index(-1) - { - } - - const TypeEntry *type() const { return m_type; } - - QString name() const { return m_name; } - void setName(const QString &name) { m_name = name; } - - QString read() const { return m_read; } - void setRead(const QString &read) { m_read = read; } - - QString write() const { return m_write; } - void setWrite(const QString &write) { m_write = write; } - - QString designable() const { return m_designable; } - void setDesignable(const QString &designable) { m_designable = designable; } - - QString reset() const { return m_reset; } - void setReset(const QString &reset) { m_reset = reset; } - - int index() const { return m_index; } - void setIndex(int index) { m_index = index; } - -private: - QString m_name; - QString m_read; - QString m_write; - QString m_designable; - QString m_reset; - const TypeEntry *m_type; - int m_index; -}; - -inline AbstractMetaFunctionList AbstractMetaClass::allVirtualFunctions() const -{ - return queryFunctions(VirtualFunctions - | NotRemovedFromTargetLang); -} - -inline AbstractMetaFunctionList AbstractMetaClass::allFinalFunctions() const -{ - return queryFunctions(FinalInTargetLangFunctions - | FinalInCppFunctions - | NotRemovedFromTargetLang); -} - -inline AbstractMetaFunctionList AbstractMetaClass::cppInconsistentFunctions() const -{ - return queryFunctions(Inconsistent - | NormalFunctions - | Visible - | NotRemovedFromTargetLang); -} - -inline AbstractMetaFunctionList AbstractMetaClass::cppSignalFunctions() const -{ - return queryFunctions(Signals - | Visible - | NotRemovedFromTargetLang); -} - -#endif // ABSTRACTMETALANG_H diff --git a/3rdparty/pythonqt/generator/asttoxml.cpp b/3rdparty/pythonqt/generator/asttoxml.cpp deleted file mode 100644 index a215eaf7e..000000000 --- a/3rdparty/pythonqt/generator/asttoxml.cpp +++ /dev/null @@ -1,171 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "asttoxml.h" -#include "control.h" -#include "parser.h" -#include "binder.h" - - -#include -#include -#include -#include - -void astToXML(QString name) { - QFile file(name); - - if (!file.open(QFile::ReadOnly)) - return; - - QTextStream stream(&file); - stream.setCodec(QTextCodec::codecForName("UTF-8")); - QByteArray contents = stream.readAll().toUtf8(); - file.close(); - - Control control; - Parser p(&control); - pool __pool; - - TranslationUnitAST *ast = p.parse(contents, contents.size(), &__pool); - - CodeModel model; - Binder binder(&model, p.location()); - FileModelItem dom = binder.run(ast); - - QFile outputFile; - if (!outputFile.open(stdout, QIODevice::WriteOnly)) - { - return; - } - - QXmlStreamWriter s( &outputFile); - s.setAutoFormatting( true ); - - s.writeStartElement("code"); - - QHash namespaceMap = dom->namespaceMap(); - foreach (NamespaceModelItem item, namespaceMap.values()) { - writeOutNamespace(s, item); - } - - QHash typeMap = dom->classMap(); - foreach (ClassModelItem item, typeMap.values()) { - writeOutClass(s, item); - } - s.writeEndElement(); -} - - -void writeOutNamespace(QXmlStreamWriter &s, NamespaceModelItem &item) { - s.writeStartElement("namespace"); - s.writeAttribute("name", item->name()); - - QHash namespaceMap = item->namespaceMap(); - foreach (NamespaceModelItem namespaceItem, namespaceMap.values()) { - writeOutNamespace(s, namespaceItem); - } - - QHash typeMap = item->classMap(); - foreach (ClassModelItem classItem, typeMap.values()) { - writeOutClass(s, classItem); - } - - QHash enumMap = item->enumMap(); - foreach (EnumModelItem enumItem, enumMap.values()) { - writeOutEnum(s, enumItem); - } - - s.writeEndElement(); -} - -void writeOutEnum(QXmlStreamWriter &s, EnumModelItem &item) { - QString qualified_name = item->qualifiedName().join("::"); - s.writeStartElement("enum"); - s.writeAttribute("name", qualified_name); - - EnumeratorList enumList = item->enumerators(); - for(int i=0; i < enumList.size() ; i++) { - s.writeStartElement("enumerator"); - if( !enumList[i]->value().isEmpty() ) - s.writeAttribute("value", enumList[i]->value()); - s.writeCharacters(enumList[i]->name()); - - s.writeEndElement(); - } - s.writeEndElement(); -} - -void writeOutFunction(QXmlStreamWriter &s, FunctionModelItem &item) { - QString qualified_name = item->qualifiedName().join("::"); - s.writeStartElement("function"); - s.writeAttribute("name", qualified_name); - - ArgumentList arguments = item->arguments(); - for(int i=0; i < arguments.size() ; i++) { - s.writeStartElement("argument"); - s.writeAttribute("type", arguments[i]->type().qualifiedName().join("::")); - s.writeEndElement(); - } - s.writeEndElement(); -} - -void writeOutClass(QXmlStreamWriter &s, ClassModelItem &item) { - QString qualified_name = item->qualifiedName().join("::"); - s.writeStartElement("class"); - s.writeAttribute("name", qualified_name); - - QHash enumMap = item->enumMap(); - foreach (EnumModelItem enumItem, enumMap.values()) { - writeOutEnum(s, enumItem); - } - - QHash functionMap = item->functionMap(); - foreach (FunctionModelItem funcItem, functionMap.values()) { - writeOutFunction(s, funcItem); - } - - QHash typeMap = item->classMap(); - foreach (ClassModelItem classItem, typeMap.values()) { - writeOutClass(s, classItem); - } - s.writeEndElement(); -} diff --git a/3rdparty/pythonqt/generator/asttoxml.h b/3rdparty/pythonqt/generator/asttoxml.h deleted file mode 100644 index 7b3e3fcf7..000000000 --- a/3rdparty/pythonqt/generator/asttoxml.h +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef ASTTOXML -#define ASTTOXML - -#include "codemodel.h" - -#include -#include - -void astToXML(const QString name); -void writeOutNamespace(QXmlStreamWriter &s, NamespaceModelItem &item); -void writeOutEnum(QXmlStreamWriter &s, EnumModelItem &item); -void writeOutFunction(QXmlStreamWriter &s, FunctionModelItem &item); -void writeOutClass(QXmlStreamWriter &s, ClassModelItem &item); - - -#endif // ASTTOXML diff --git a/3rdparty/pythonqt/generator/customtypes.cpp b/3rdparty/pythonqt/generator/customtypes.cpp deleted file mode 100644 index 5438d8e05..000000000 --- a/3rdparty/pythonqt/generator/customtypes.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "customtypes.h" - -#include "metajava.h" - -#include -#include - - -void QModelIndexTypeEntry::generateCppJavaToQt(QTextStream &s, - const AbstractMetaType *, - const QString &env_name, - const QString &qt_name, - const QString &java_name) const -{ - s << "QModelIndex " << qt_name << " = qtjambi_to_QModelIndex(" << env_name << ", " - << java_name << ")"; -} - - -void QModelIndexTypeEntry::generateCppQtToJava(QTextStream &s, - const AbstractMetaType *, - const QString &env_name, - const QString &qt_name, - const QString &java_name) const -{ - s << "jobject " << java_name << " = qtjambi_from_QModelIndex(" << env_name << ", " - << qt_name << ")"; -} diff --git a/3rdparty/pythonqt/generator/customtypes.h b/3rdparty/pythonqt/generator/customtypes.h deleted file mode 100644 index aefee00ca..000000000 --- a/3rdparty/pythonqt/generator/customtypes.h +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef CUSTOMTYPES_H -#define CUSTOMTYPES_H - -#include "typesystem.h" - - -class QModelIndexTypeEntry : public CustomTypeEntry -{ -public: - QModelIndexTypeEntry() : CustomTypeEntry("QModelIndex") - { - setCodeGeneration(GenerateNothing); - } - - virtual QString javaPackage() const { return "com.trolltech.qt.core"; } - - virtual bool isValue() const { return true; } - - virtual void generateCppJavaToQt(QTextStream &s, - const AbstractMetaType *java_type, - const QString &env_name, - const QString &qt_name, - const QString &java_name) const; - - virtual void generateCppQtToJava(QTextStream &s, - const AbstractMetaType *java_type, - const QString &env_name, - const QString &qt_name, - const QString &java_name) const; - -}; - -#endif diff --git a/3rdparty/pythonqt/generator/fileout.cpp b/3rdparty/pythonqt/generator/fileout.cpp deleted file mode 100644 index c0f78c50c..000000000 --- a/3rdparty/pythonqt/generator/fileout.cpp +++ /dev/null @@ -1,238 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "fileout.h" -#include "reporthandler.h" - -#include -#include - -bool FileOut::dummy = false; -bool FileOut::diff = false; -bool FileOut::license = false; - -#ifdef Q_OS_LINUX -const char* colorDelete = "\033[31m"; -const char* colorAdd = "\033[32m"; -const char* colorInfo = "\033[36m"; -const char* colorReset = "\033[0m"; -#else -const char* colorDelete = ""; -const char* colorAdd = ""; -const char* colorInfo = ""; -const char* colorReset = ""; -#endif - -FileOut::FileOut(QString n): - name(n), - stream(&tmp), - isDone(false) -{} - -static int* lcsLength(QList a, QList b) { - const int height = a.size() + 1; - const int width = b.size() + 1; - - int *res = new int[width * height]; - - for (int row=0; row a, QList b){ - { - if (type == Unchanged) { - if ((end - start) > 9) { - for (int i = start; i <= start+2; i++) - printf(" %s\n", a[i].data()); - printf("%s=\n= %d more lines\n=%s\n", colorInfo, end - start - 6, colorReset); - for (int i = end-2; i <= end; i++) - printf(" %s\n", a[i].data()); - } - else - for (int i = start; i <= end; i++) - printf(" %s\n", a[i].data()); - } - else if(type == Add) { - printf("%s", colorAdd); - for (int i = start; i <= end; i++){ - printf("+ %s\n", b[i].data()); - } - printf("%s", colorReset); - } - else if (type == Delete) { - printf("%s", colorDelete); - for (int i = start; i <= end; i++) { - printf("- %s\n", a[i].data()); - } - printf("%s", colorReset); - } - } - } -}; - -static QList *unitAppend(QList *res, Type type, int pos) -{ - if (res == 0) { - res = new QList; - res->append(new Unit(type, pos)); - return res; - } - - Unit *last = res->last(); - if (last->type == type) { - last->end = pos; - } else { - res->append(new Unit(type, pos)); - } - return res; -} - -static QList *diffHelper(int *lcs, QList a, QList b, int row, int col) { - if (row>0 && col>0 && (a[row-1] == b[col-1])) { - return unitAppend(diffHelper(lcs, a, b, row-1, col-1), Unchanged, row-1); - } - else { - int width = b.size()+1; - if ((col > 0) && ((row==0) || - lcs[width * row + col-1] >= lcs[width * (row-1) + col])) - { - return unitAppend(diffHelper(lcs, a, b, row, col-1), Add, col-1); - } - else if((row > 0) && ((col==0) || - lcs[width * row + col-1] < lcs[width * (row-1) + col])){ - return unitAppend(diffHelper(lcs, a, b, row-1, col), Delete, row-1);; - } - } - delete lcs; - return 0; -} - -static void diff(QList a, QList b) { - QList *res = diffHelper(lcsLength(a, b), a, b, a.size(), b.size()); - for (int i=0; i < res->size(); i++) { - Unit *unit = res->at(i); - unit->print(a, b); - delete(unit); - } - delete(res); -} - - -bool FileOut::done() { - Q_ASSERT( !isDone ); - isDone = true; - bool fileEqual = false; - QFile fileRead(name); - QFileInfo info(fileRead); - stream.flush(); - QByteArray original; - if (info.exists() && (diff || (info.size() == tmp.size()))) { - if ( !fileRead.open(QIODevice::ReadOnly) ) { - ReportHandler::warning(QString("failed to open file '%1' for reading") - .arg(fileRead.fileName())); - return false; - } - - original = fileRead.readAll(); - fileRead.close(); - fileEqual = (original == tmp); - } - - if( !fileEqual ) { - if( !FileOut::dummy ) { - QDir dir(info.absolutePath()); - if (!dir.mkpath(dir.absolutePath())) { - ReportHandler::warning(QString("unable to create directory '%1'") - .arg(dir.absolutePath())); - return false; - } - - QFile fileWrite(name); - if (!fileWrite.open(QIODevice::WriteOnly)) { - ReportHandler::warning(QString("failed to open file '%1' for writing") - .arg(fileWrite.fileName())); - return false; - } - stream.setDevice(&fileWrite); - stream << tmp; - } - if (diff) { - printf("%sFile: %s%s\n", colorInfo, qPrintable(name), colorReset); - - ::diff(original.split('\n'), tmp.split('\n')); - - printf("\n"); - } - return true; - } - return false; -} diff --git a/3rdparty/pythonqt/generator/fileout.h b/3rdparty/pythonqt/generator/fileout.h deleted file mode 100644 index cec3fade3..000000000 --- a/3rdparty/pythonqt/generator/fileout.h +++ /dev/null @@ -1,77 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef FILEOUT_H -#define FILEOUT_H - -#include -#include -#include - -class FileOut : public QObject -{ - Q_OBJECT - -private: - QByteArray tmp; - QString name; - -public: - FileOut(QString name); - ~FileOut() - { - if( !isDone ) - done(); - } - - bool done(); - - QTextStream stream; - - static bool dummy; - static bool diff; - static bool license; - - private: - bool isDone; -}; - -#endif // FILEOUT_H diff --git a/3rdparty/pythonqt/generator/generator.cpp b/3rdparty/pythonqt/generator/generator.cpp deleted file mode 100644 index d170726df..000000000 --- a/3rdparty/pythonqt/generator/generator.cpp +++ /dev/null @@ -1,142 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "generator.h" -#include "reporthandler.h" -#include "fileout.h" - -#include -#include -#include - -Generator::Generator() -{ - m_num_generated = 0; - m_num_generated_written = 0; - m_out_dir = "."; -} - -void Generator::generate() -{ - if (m_classes.size() == 0) { - ReportHandler::warning(QString("%1: no java classes, skipping") - .arg(metaObject()->className())); - return; - } - - qStableSort(m_classes); - - foreach (AbstractMetaClass *cls, m_classes) { - if (!shouldGenerate(cls)) - continue; - - QString fileName = fileNameForClass(cls); - ReportHandler::debugSparse(QString("generating: %1").arg(fileName)); - - FileOut fileOut(outputDirectory() + "/" + subDirectoryForClass(cls) + "/" + fileName); - write(fileOut.stream, cls); - - if( fileOut.done() ) - ++m_num_generated_written; - ++m_num_generated; - } -} - - -void Generator::printClasses() -{ - QTextStream s(stdout); - - AbstractMetaClassList classes = m_classes; - qSort(classes); - - foreach (AbstractMetaClass *cls, classes) { - if (!shouldGenerate(cls)) - continue; - write(s, cls); - s << endl << endl; - } -} - -void Generator::verifyDirectoryFor(const QFile &file) -{ - QDir dir = QFileInfo(file).dir(); - if (!dir.exists()) { - if (!dir.mkpath(dir.absolutePath())) - ReportHandler::warning(QString("unable to create directory '%1'") - .arg(dir.absolutePath())); - } -} - -QString Generator::subDirectoryForClass(const AbstractMetaClass *) const -{ - Q_ASSERT(false); - return QString(); -} - -QString Generator::fileNameForClass(const AbstractMetaClass *) const -{ - Q_ASSERT(false); - return QString(); -} - -void Generator::write(QTextStream &, const AbstractMetaClass *) -{ - Q_ASSERT(false); -} - -bool Generator::hasDefaultConstructor(const AbstractMetaType *type) -{ - QString full_name = type->typeEntry()->qualifiedTargetLangName(); - QString class_name = type->typeEntry()->targetLangName(); - - foreach (const AbstractMetaClass *java_class, m_classes) { - if (java_class->typeEntry()->qualifiedTargetLangName() == full_name) { - AbstractMetaFunctionList functions = java_class->functions(); - foreach (const AbstractMetaFunction *function, functions) { - if (function->arguments().size() == 0 && function->name() == class_name) - return true; - } - return false; - } - } - return false; -} diff --git a/3rdparty/pythonqt/generator/generator.h b/3rdparty/pythonqt/generator/generator.h deleted file mode 100644 index 49b9cc287..000000000 --- a/3rdparty/pythonqt/generator/generator.h +++ /dev/null @@ -1,165 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef GENERATOR_H -#define GENERATOR_H - -#include "metajava.h" -#include "typesystem.h" - -#include "codemodel.h" - -#include -#include - -class Generator : public QObject -{ - Q_OBJECT - - Q_PROPERTY(QString outputDirectory READ outputDirectory WRITE setOutputDirectory); - -public: - enum Option { - NoOption = 0x00000000, - BoxedPrimitive = 0x00000001, - ExcludeConst = 0x00000002, - ExcludeReference = 0x00000004, - UseNativeIds = 0x00000008, - - EnumAsInts = 0x00000010, - SkipName = 0x00000020, - NoCasts = 0x00000040, - SkipReturnType = 0x00000080, - OriginalName = 0x00000100, - ShowStatic = 0x00000200, - UnderscoreSpaces = 0x00000400, - ForceEnumCast = 0x00000800, - ArrayAsPointer = 0x00001000, - VirtualCall = 0x00002000, - SkipTemplateParameters = 0x00004000, - SkipAttributes = 0x00008000, - OriginalTypeDescription = 0x00010000, - SkipRemovedArguments = 0x00020000, - IncludeDefaultExpression = 0x00040000, - NoReturnStatement = 0x00080000, - NoBlockedSlot = 0x00100000, - - SuperCall = 0x00200000, - // These 2 are added for PythonQt - FirstArgIsWrappedObject = 0x00400000, - ConvertReferenceToPtr = 0x00800000, - - GlobalRefJObject = 0x00100000, - - ForceValueType = ExcludeReference | ExcludeConst - }; - - Generator(); - - void setClasses(const AbstractMetaClassList &classes) { m_classes = classes; } - AbstractMetaClassList classes() const { return m_classes; } - - QString outputDirectory() const { return m_out_dir; } - void setOutputDirectory(const QString &outDir) { m_out_dir = outDir; } - virtual void generate(); - void printClasses(); - - int numGenerated() { return m_num_generated; } - int numGeneratedAndWritten() { return m_num_generated_written; } - - virtual bool shouldGenerate(const AbstractMetaClass *) const { return true; } - virtual QString subDirectoryForClass(const AbstractMetaClass *java_class) const; - virtual QString fileNameForClass(const AbstractMetaClass *java_class) const; - virtual void write(QTextStream &s, const AbstractMetaClass *java_class); - - bool hasDefaultConstructor(const AbstractMetaType *type); - - // QtScript - void setQtMetaTypeDeclaredTypeNames(const QSet &names) - { m_qmetatype_declared_typenames = names; } - QSet qtMetaTypeDeclaredTypeNames() const - { return m_qmetatype_declared_typenames; } - -protected: - void verifyDirectoryFor(const QFile &file); - - AbstractMetaClassList m_classes; - int m_num_generated; - int m_num_generated_written; - QString m_out_dir; - - // QtScript - QSet m_qmetatype_declared_typenames; -}; - -class Indentor { -public: - Indentor(): - indent(0) - {} - int indent; -}; - -class Indentation { -public: - Indentation(Indentor &indentor): - indentor(indentor) - { - indentor.indent++; - } - ~Indentation() - { - indentor.indent--; - } - -private: - Indentor &indentor; -}; - -inline QTextStream &operator <<(QTextStream &s, const Indentor &indentor) -{ - for (int i=0; i - -qtscript_masterinclude.h -typesystem_core.xml -typesystem_gui.xml -typesystem_network.xml -parser/rpp/pp-qt-configuration - - diff --git a/3rdparty/pythonqt/generator/generatorset.cpp b/3rdparty/pythonqt/generator/generatorset.cpp deleted file mode 100644 index bace7a079..000000000 --- a/3rdparty/pythonqt/generator/generatorset.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "generatorset.h" - -GeneratorSet::GeneratorSet() : - outDir(".."), - printStdout(false) -{} - -bool GeneratorSet::readParameters(const QMap args) { - if (args.contains("output-directory")) { - outDir = args.value("output-directory"); - } - - printStdout = args.contains("print-stdout"); - - return !(args.contains("help") || args.contains("h") || args.contains("?")); -} diff --git a/3rdparty/pythonqt/generator/generatorset.h b/3rdparty/pythonqt/generator/generatorset.h deleted file mode 100644 index 069835e9f..000000000 --- a/3rdparty/pythonqt/generator/generatorset.h +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef GENERATOR_SET_H -#define GENERATOR_SET_H - -#include -#include -#include -#include - -class GeneratorSet : public QObject -{ - Q_OBJECT - - public: - GeneratorSet(); - - virtual QString usage() = 0; - virtual bool readParameters(const QMap args) = 0; - virtual void buildModel(const QString pp_file) = 0; - virtual void dumpObjectTree() = 0; - virtual QString generate() = 0; - - static GeneratorSet *getInstance(); - QString outDir; - bool printStdout; -}; - -#endif // GENERATOR_SET_H diff --git a/3rdparty/pythonqt/generator/generatorsetqtscript.cpp b/3rdparty/pythonqt/generator/generatorsetqtscript.cpp deleted file mode 100644 index abedf3462..000000000 --- a/3rdparty/pythonqt/generator/generatorsetqtscript.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "generatorsetqtscript.h" -#include "reporthandler.h" -#include "shellheadergenerator.h" -#include "shellimplgenerator.h" - -GeneratorSet *GeneratorSet::getInstance() { - return new GeneratorSetQtScript(); -} - -GeneratorSetQtScript::GeneratorSetQtScript() -{} - -QString GeneratorSetQtScript::usage() { - QString usage = - "QtScript:\n" - " --nothing-to-report-yet \n"; - - return usage; -} - -bool GeneratorSetQtScript::readParameters(const QMap args) { - return GeneratorSet::readParameters(args); -} - -void GeneratorSetQtScript::buildModel(const QString pp_file) { - // Building the code inforamation... - ReportHandler::setContext("MetaJavaBuilder"); - builder.setFileName(pp_file); - builder.build(); -} - -void GeneratorSetQtScript::dumpObjectTree() { - -} - -QString GeneratorSetQtScript::generate() { - AbstractMetaClassList classes = builder.classesTopologicalSorted(); - QSet declaredTypeNames = builder.qtMetaTypeDeclaredTypeNames(); - - PriGenerator priGenerator; - priGenerator.setOutputDirectory(outDir); - - SetupGenerator setupGenerator; - setupGenerator.setOutputDirectory(outDir); - setupGenerator.setQtMetaTypeDeclaredTypeNames(declaredTypeNames); - setupGenerator.setClasses(classes); - - ShellImplGenerator shellImplGenerator(&priGenerator); - shellImplGenerator.setOutputDirectory(outDir); - shellImplGenerator.setClasses(classes); - shellImplGenerator.setQtMetaTypeDeclaredTypeNames(declaredTypeNames); - shellImplGenerator.generate(); - - ShellHeaderGenerator shellHeaderGenerator(&priGenerator, &setupGenerator); - shellHeaderGenerator.setOutputDirectory(outDir); - shellHeaderGenerator.setClasses(classes); - shellHeaderGenerator.generate(); - - priGenerator.generate(); - setupGenerator.generate(); - - return QString("Classes in typesystem: %1\n" - "Generated:\n" - " - header....: %4 (%5)\n" - " - impl......: %6 (%7)\n" - " - modules...: %8 (%9)\n" - " - pri.......: %10 (%11)\n" - ) - .arg(builder.classes().size()) - - .arg(shellHeaderGenerator.numGenerated()) - .arg(shellHeaderGenerator.numGeneratedAndWritten()) - - .arg(shellImplGenerator.numGenerated()) - .arg(shellImplGenerator.numGeneratedAndWritten()) - - .arg(setupGenerator.numGenerated()) - .arg(setupGenerator.numGeneratedAndWritten()) - - .arg(priGenerator.numGenerated()) - .arg(priGenerator.numGeneratedAndWritten()); -} diff --git a/3rdparty/pythonqt/generator/generatorsetqtscript.h b/3rdparty/pythonqt/generator/generatorsetqtscript.h deleted file mode 100644 index 55795e483..000000000 --- a/3rdparty/pythonqt/generator/generatorsetqtscript.h +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef GENERATOR_SET_QT_SCRIPT_H -#define GENERATOR_SET_QT_SCRIPT_H - -#include "generatorset.h" -#include "metaqtscriptbuilder.h" - -class GeneratorSetQtScript : public GeneratorSet -{ - Q_OBJECT - -public: - GeneratorSetQtScript(); - - QString usage(); - bool readParameters(const QMap args); - - void buildModel(const QString pp_file); - void dumpObjectTree(); - - QString generate( ); - -private: - MetaQtScriptBuilder builder; - -}; - -#endif // GENERATOR_SET_QT_SCRIPT_H diff --git a/3rdparty/pythonqt/generator/main.cpp b/3rdparty/pythonqt/generator/main.cpp deleted file mode 100644 index 9af0ae56a..000000000 --- a/3rdparty/pythonqt/generator/main.cpp +++ /dev/null @@ -1,182 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "main.h" -#include "asttoxml.h" -#include "reporthandler.h" -#include "typesystem.h" -#include "generatorset.h" -#include "fileout.h" - -#include - -void displayHelp(GeneratorSet *generatorSet); - -#include -int main(int argc, char *argv[]) -{ - GeneratorSet *gs = GeneratorSet::getInstance(); - - QString default_file = ":/trolltech/generator/qtscript_masterinclude.h"; - QString default_system = ":/trolltech/generator/build_all.txt"; - - QString fileName; - QString typesystemFileName; - QString pp_file = ".preprocessed.tmp"; - QStringList rebuild_classes; - - QMap args; - - int argNum = 0; - for (int i=1; i 0 ) - args[arg.mid(2).left(split-2)] = arg.mid(split + 1).trimmed(); - else - args[arg.mid(2)] = QString(); - } else if( arg.startsWith("-")) { - args[arg.mid(1)] = QString(); - } else { - argNum++; - args[QString("arg-%1").arg(argNum)] = arg; - } - } - - if (args.contains("no-suppress-warnings")) { - TypeDatabase *db = TypeDatabase::instance(); - db->setSuppressWarnings(false); - } - - if (args.contains("debug-level")) { - QString level = args.value("debug-level"); - if (level == "sparse") - ReportHandler::setDebugLevel(ReportHandler::SparseDebug); - else if (level == "medium") - ReportHandler::setDebugLevel(ReportHandler::MediumDebug); - else if (level == "full") - ReportHandler::setDebugLevel(ReportHandler::FullDebug); - } - - if (args.contains("dummy")) { - FileOut::dummy = true; - } - - if (args.contains("diff")) { - FileOut::diff = true; - } - - if (args.contains("license")) - FileOut::license = true; - - if (args.contains("rebuild-only")) { - QStringList classes = args.value("rebuild-only").split(",", QString::SkipEmptyParts); - TypeDatabase::instance()->setRebuildClasses(classes); - } - - fileName = args.value("arg-1"); - - typesystemFileName = args.value("arg-2"); - if (args.contains("arg-3")) - displayHelp(gs); - - if (fileName.isEmpty()) - fileName = default_file; - - if (typesystemFileName.isEmpty()) - typesystemFileName = default_system; - - if (fileName.isEmpty() || typesystemFileName.isEmpty() ) - displayHelp(gs); - - if (!gs->readParameters(args)) - displayHelp(gs); - - printf("Please wait while source files are being generated...\n"); - - if (!TypeDatabase::instance()->parseFile(typesystemFileName)) - qFatal("Cannot parse file: '%s'", qPrintable(typesystemFileName)); - - if (!Preprocess::preprocess(fileName, pp_file, args.value("include-paths"))) { - fprintf(stderr, "Preprocessor failed on file: '%s'\n", qPrintable(fileName)); - return 1; - } - - if (args.contains("ast-to-xml")) { - astToXML(pp_file); - return 0; - } - - gs->buildModel(pp_file); - if (args.contains("dump-object-tree")) { - gs->dumpObjectTree(); - return 0; - } - printf("%s\n", qPrintable(gs->generate())); - - printf("Done, %d warnings (%d known issues)\n", ReportHandler::warningCount(), - ReportHandler::suppressedCount()); -} - - -void displayHelp(GeneratorSet* generatorSet) { -#if defined(Q_OS_WIN32) - char path_splitter = ';'; -#else - char path_splitter = ':'; -#endif - printf("Usage:\n generator [options] header-file typesystem-file\n\n"); - printf("Available options:\n\n"); - printf("General:\n"); - printf(" --debug-level=[sparse|medium|full] \n" - " --dump-object-tree \n" - " --help, -h or -? \n" - " --no-suppress-warnings \n" - " --output-directory=[dir] \n" - " --include-paths=[%c%c...] \n" - " --print-stdout \n", - path_splitter, path_splitter); - - printf("%s", qPrintable( generatorSet->usage())); - exit(0); -} diff --git a/3rdparty/pythonqt/generator/main.h b/3rdparty/pythonqt/generator/main.h deleted file mode 100644 index ebf153d67..000000000 --- a/3rdparty/pythonqt/generator/main.h +++ /dev/null @@ -1,144 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef MAIN_H -#define MAIN_H - -#include "pp.h" - -#include -#include - -struct Preprocess -{ - static bool preprocess(const QString &sourceFile, const QString &targetFile, const QString &commandLineIncludes = QString()) - { - rpp::pp_environment env; - rpp::pp preprocess(env); - - rpp::pp_null_output_iterator null_out; - - const char *ppconfig = ":/trolltech/generator/parser/rpp/pp-qt-configuration"; - - QFile file(ppconfig); - if (!file.open(QFile::ReadOnly)) { - fprintf(stderr, "Preprocessor configuration file not found '%s'\n", ppconfig); - return false; - } - - QByteArray ba = file.readAll(); - file.close(); - preprocess.operator() (ba.constData(), ba.constData() + ba.size(), null_out); - - QStringList includes; - includes << QString("."); - -#if defined(Q_OS_WIN32) - char *path_splitter = ";"; -#else - const char *path_splitter = ":"; -#endif - - // Environment INCLUDE - QString includePath = getenv("INCLUDE"); - if (!includePath.isEmpty()) - includes += includePath.split(path_splitter); - - // Includes from the command line - if (!commandLineIncludes.isEmpty()) - includes += commandLineIncludes.split(path_splitter); - - // Include Qt - QString qtdir = getenv ("QTDIR"); - if (qtdir.isEmpty()) { -#if defined(Q_OS_MAC) - qWarning("QTDIR environment variable not set. Assuming standard binary install using frameworks."); - QString frameworkDir = "/Library/Frameworks"; - includes << (frameworkDir + "/QtXml.framework/Headers"); - includes << (frameworkDir + "/QtNetwork.framework/Headers"); - includes << (frameworkDir + "/QtCore.framework/Headers"); - includes << (frameworkDir + "/QtGui.framework/Headers"); - includes << (frameworkDir + "/QtOpenGL.framework/Headers"); - includes << frameworkDir; -#else - qWarning("QTDIR environment variable not set. This may cause problems with finding the necessary include files."); -#endif - } else { - qtdir += "/include"; - includes << (qtdir + "/QtXml"); - includes << (qtdir + "/QtNetwork"); - includes << (qtdir + "/QtCore"); - includes << (qtdir + "/QtGui"); - includes << (qtdir + "/QtOpenGL"); - includes << qtdir; - } - - foreach (QString include, includes) - preprocess.push_include_path(QDir::convertSeparators(include).toStdString()); - - QString currentDir = QDir::current().absolutePath(); - QFileInfo sourceInfo(sourceFile); - QDir::setCurrent(sourceInfo.absolutePath()); - - std::string result; - result.reserve (20 * 1024); // 20K - - result += "# 1 \"builtins\"\n"; - result += "# 1 \""; - result += sourceFile.toStdString(); - result += "\"\n"; - - preprocess.file (sourceInfo.fileName().toStdString(), - rpp::pp_output_iterator (result)); - - QDir::setCurrent(currentDir); - - QFile f(targetFile); - if (!f.open(QIODevice::WriteOnly | QIODevice::Text)) { - fprintf(stderr, "Failed to write preprocessed file: %s\n", qPrintable(targetFile)); - } - f.write(result.c_str(), result.length()); - - return true; - } -}; - -#endif // MAIN_H diff --git a/3rdparty/pythonqt/generator/metajava.cpp b/3rdparty/pythonqt/generator/metajava.cpp deleted file mode 100644 index 2750ae6d5..000000000 --- a/3rdparty/pythonqt/generator/metajava.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "metajava.h" diff --git a/3rdparty/pythonqt/generator/metajava.h b/3rdparty/pythonqt/generator/metajava.h deleted file mode 100644 index 6fb8e47a2..000000000 --- a/3rdparty/pythonqt/generator/metajava.h +++ /dev/null @@ -1,79 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef METAJAVA_H -#define METAJAVA_H - -#include "abstractmetalang.h" - -class MetaJavaClass; -class MetaJavaField; -class MetaJavaFunction; -class MetaJavaType; -class MetaJavaVariable; -class MetaJavaArgument; -class MetaJavaEnumValue; -class MetaJavaEnum; - - - -class MetaJavaType : public AbstractMetaType -{}; - -class MetaJavaArgument : public AbstractMetaArgument -{}; - -class MetaJavaField : public AbstractMetaField -{}; - -class MetaJavaFunction : public AbstractMetaFunction -{}; - -class MetaJavaEnumValue : public AbstractMetaEnumValue -{}; - -class MetaJavaEnum : public AbstractMetaEnum -{}; - -class MetaJavaClass : public AbstractMetaClass -{}; - -#endif // METAJAVA_H diff --git a/3rdparty/pythonqt/generator/metaqtscript.cpp b/3rdparty/pythonqt/generator/metaqtscript.cpp deleted file mode 100644 index 6d9b6a653..000000000 --- a/3rdparty/pythonqt/generator/metaqtscript.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "metaqtscript.h" - - -bool MetaQtScriptClass::hasDefaultToStringFunction() const -{ - return AbstractMetaClass::hasDefaultToStringFunction(); -} diff --git a/3rdparty/pythonqt/generator/metaqtscript.h b/3rdparty/pythonqt/generator/metaqtscript.h deleted file mode 100644 index c1e93fe93..000000000 --- a/3rdparty/pythonqt/generator/metaqtscript.h +++ /dev/null @@ -1,81 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef METAQTSCRIPT_H -#define METAQTSCRIPT_H - -#include "abstractmetalang.h" - -class MetaQtScriptClass; -class MetaQtScriptField; -class MetaQtScriptFunction; -class MetaQtScriptType; -class MetaQtScriptVariable; -class MetaQtScriptArgument; -class MetaQtScriptEnumValue; -class MetaQtScriptEnum; - - - -class MetaQtScriptType : public AbstractMetaType -{}; - -class MetaQtScriptArgument : public AbstractMetaArgument -{}; - -class MetaQtScriptField : public AbstractMetaField -{}; - -class MetaQtScriptFunction : public AbstractMetaFunction -{}; - -class MetaQtScriptEnumValue : public AbstractMetaEnumValue -{}; - -class MetaQtScriptEnum : public AbstractMetaEnum -{}; - -class MetaQtScriptClass : public AbstractMetaClass -{ - virtual bool hasDefaultToStringFunction() const; -}; - -#endif // METAQTSCRIPT_H diff --git a/3rdparty/pythonqt/generator/metaqtscriptbuilder.cpp b/3rdparty/pythonqt/generator/metaqtscriptbuilder.cpp deleted file mode 100644 index 7c9e107b5..000000000 --- a/3rdparty/pythonqt/generator/metaqtscriptbuilder.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "metaqtscriptbuilder.h" - diff --git a/3rdparty/pythonqt/generator/metaqtscriptbuilder.h b/3rdparty/pythonqt/generator/metaqtscriptbuilder.h deleted file mode 100644 index f2ee35a75..000000000 --- a/3rdparty/pythonqt/generator/metaqtscriptbuilder.h +++ /dev/null @@ -1,89 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef METAQTSCRIPTBUILDER_H -#define METAQTSCRIPTBUILDER_H - -#include "abstractmetabuilder.h" -#include "metaqtscript.h" - -class MetaQtScriptBuilder : public AbstractMetaBuilder -{ - - protected: - virtual MetaQtScriptClass *createMetaClass() - { - return new MetaQtScriptClass(); - }; - - virtual MetaQtScriptEnum *createMetaEnum() - { - return new MetaQtScriptEnum(); - }; - - virtual MetaQtScriptEnumValue *createMetaEnumValue() - { - return new MetaQtScriptEnumValue(); - }; - - virtual MetaQtScriptField *createMetaField() - { - return new MetaQtScriptField(); - }; - - virtual MetaQtScriptFunction *createMetaFunction() - { - return new MetaQtScriptFunction(); - }; - - virtual MetaQtScriptArgument *createMetaArgument() - { - return new MetaQtScriptArgument(); - }; - - virtual MetaQtScriptType *createMetaType() - { - return new MetaQtScriptType(); - }; - -}; - -#endif // METAQTSCRIPTBUILDER_H diff --git a/3rdparty/pythonqt/generator/parser/ast.cpp b/3rdparty/pythonqt/generator/parser/ast.cpp deleted file mode 100644 index 553573044..000000000 --- a/3rdparty/pythonqt/generator/parser/ast.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "ast.h" -#include "lexer.h" - -// kate: space-indent on; indent-width 2; replace-tabs on; - -QString AST::toString(TokenStream *stream) const -{ - const Token &tk = stream->token((int) start_token); - const Token &end_tk = stream->token ((int) end_token); - return QString::fromLatin1(tk.text + tk.position, end_tk.position - tk.position); -} diff --git a/3rdparty/pythonqt/generator/parser/ast.h b/3rdparty/pythonqt/generator/parser/ast.h deleted file mode 100644 index ad4621d25..000000000 --- a/3rdparty/pythonqt/generator/parser/ast.h +++ /dev/null @@ -1,899 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef AST_H -#define AST_H - -#include "smallobject.h" -#include "list.h" - -class QString; - -#define DECLARE_AST_NODE(k) \ - enum { __node_kind = Kind_##k }; - -class TokenStream; - -struct AccessSpecifierAST; -struct AsmDefinitionAST; -struct BaseClauseAST; -struct BaseSpecifierAST; -struct BinaryExpressionAST; -struct CastExpressionAST; -struct ClassMemberAccessAST; -struct ClassSpecifierAST; -struct CompoundStatementAST; -struct ConditionAST; -struct ConditionalExpressionAST; -struct CppCastExpressionAST; -struct CtorInitializerAST; -struct DeclarationAST; -struct DeclarationStatementAST; -struct DeclaratorAST; -struct DeleteExpressionAST; -struct DoStatementAST; -struct ElaboratedTypeSpecifierAST; -struct EnumSpecifierAST; -struct EnumeratorAST; -struct ExceptionSpecificationAST; -struct ExpressionAST; -struct ExpressionOrDeclarationStatementAST; -struct ExpressionStatementAST; -struct ForStatementAST; -struct FunctionCallAST; -struct FunctionDefinitionAST; -struct IfStatementAST; -struct IncrDecrExpressionAST; -struct InitDeclaratorAST; -struct InitializerAST; -struct InitializerClauseAST; -struct LabeledStatementAST; -struct LinkageBodyAST; -struct LinkageSpecificationAST; -struct MemInitializerAST; -struct NameAST; -struct NamespaceAST; -struct NamespaceAliasDefinitionAST; -struct NewDeclaratorAST; -struct NewExpressionAST; -struct NewInitializerAST; -struct NewTypeIdAST; -struct OperatorAST; -struct OperatorFunctionIdAST; -struct ParameterDeclarationAST; -struct ParameterDeclarationClauseAST; -struct PostfixExpressionAST; -struct PrimaryExpressionAST; -struct PtrOperatorAST; -struct PtrToMemberAST; -struct ReturnStatementAST; -struct SimpleDeclarationAST; -struct SimpleTypeSpecifierAST; -struct SizeofExpressionAST; -struct StatementAST; -struct StringLiteralAST; -struct SubscriptExpressionAST; -struct SwitchStatementAST; -struct TemplateArgumentAST; -struct TemplateDeclarationAST; -struct TemplateParameterAST; -struct ThrowExpressionAST; -struct TranslationUnitAST; -struct TryBlockStatementAST; -struct TypeIdAST; -struct TypeIdentificationAST; -struct TypeParameterAST; -struct TypeSpecifierAST; -struct TypedefAST; -struct UnaryExpressionAST; -struct UnqualifiedNameAST; -struct UsingAST; -struct UsingDirectiveAST; -struct WhileStatementAST; -struct WinDeclSpecAST; -struct QPropertyAST; -struct QEnumsAST; - -struct AST -{ - enum NODE_KIND - { - Kind_UNKNOWN = 0, - - Kind_AccessSpecifier, - Kind_AsmDefinition, - Kind_BaseClause, - Kind_BaseSpecifier, - Kind_BinaryExpression, - Kind_CastExpression, - Kind_ClassMemberAccess, - Kind_ClassSpecifier, - Kind_CompoundStatement, - Kind_Condition, - Kind_ConditionalExpression, - Kind_CppCastExpression, - Kind_CtorInitializer, - Kind_DeclarationStatement, - Kind_Declarator, - Kind_DeleteExpression, - Kind_DoStatement, - Kind_ElaboratedTypeSpecifier, - Kind_EnumSpecifier, - Kind_Enumerator, - Kind_ExceptionSpecification, - Kind_ExpressionOrDeclarationStatement, - Kind_ExpressionStatement, - Kind_ForStatement, - Kind_FunctionCall, - Kind_FunctionDefinition, - Kind_IfStatement, - Kind_IncrDecrExpression, - Kind_InitDeclarator, - Kind_Initializer, - Kind_InitializerClause, - Kind_LabeledStatement, - Kind_LinkageBody, - Kind_LinkageSpecification, - Kind_MemInitializer, - Kind_Name, - Kind_Namespace, - Kind_NamespaceAliasDefinition, - Kind_NewDeclarator, - Kind_NewExpression, - Kind_NewInitializer, - Kind_NewTypeId, - Kind_Operator, - Kind_OperatorFunctionId, - Kind_ParameterDeclaration, - Kind_ParameterDeclarationClause, - Kind_PostfixExpression, - Kind_PrimaryExpression, - Kind_PtrOperator, - Kind_PtrToMember, - Kind_ReturnStatement, - Kind_SimpleDeclaration, - Kind_SimpleTypeSpecifier, - Kind_SizeofExpression, - Kind_StringLiteral, - Kind_SubscriptExpression, - Kind_SwitchStatement, - Kind_TemplateArgument, - Kind_TemplateDeclaration, - Kind_TemplateParameter, - Kind_ThrowExpression, - Kind_TranslationUnit, - Kind_TryBlockStatement, - Kind_TypeId, - Kind_TypeIdentification, - Kind_TypeParameter, - Kind_Typedef, - Kind_UnaryExpression, - Kind_UnqualifiedName, - Kind_Using, - Kind_UsingDirective, - Kind_WhileStatement, - Kind_WinDeclSpec, - Kind_QPropertyAST, - Kind_ForwardDeclarationSpecifier, - Kind_QEnumsAST, - - NODE_KIND_COUNT - }; - - QString toString(TokenStream *stream) const; - - int kind; - - std::size_t start_token; - std::size_t end_token; -}; - -struct TypeSpecifierAST: public AST -{ - const ListNode *cv; -}; - -struct StatementAST: public AST -{ -}; - -struct ExpressionAST: public AST -{ -}; - -struct DeclarationAST: public AST -{ -}; - -struct AccessSpecifierAST: public DeclarationAST -{ - DECLARE_AST_NODE(AccessSpecifier) - - const ListNode *specs; -}; - -struct AsmDefinitionAST: public DeclarationAST -{ - DECLARE_AST_NODE(AsmDefinition) - - const ListNode *cv; -}; - -struct BaseClauseAST: public AST // ### kill me -{ - DECLARE_AST_NODE(BaseClause) - - const ListNode *base_specifiers; -}; - -struct BaseSpecifierAST: public AST -{ - DECLARE_AST_NODE(BaseSpecifier) - - std::size_t virt; - std::size_t access_specifier; - NameAST *name; -}; - -struct BinaryExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(BinaryExpression) - - std::size_t op; - ExpressionAST *left_expression; - ExpressionAST *right_expression; -}; - -struct CastExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(CastExpression) - - TypeIdAST *type_id; - ExpressionAST *expression; -}; - -struct ClassMemberAccessAST: public ExpressionAST -{ - DECLARE_AST_NODE(ClassMemberAccess) - - std::size_t op; - NameAST *name; -}; - -struct ClassSpecifierAST: public TypeSpecifierAST -{ - DECLARE_AST_NODE(ClassSpecifier) - - WinDeclSpecAST *win_decl_specifiers; - std::size_t class_key; - NameAST *name; - BaseClauseAST *base_clause; - const ListNode *member_specs; -}; - -struct ForwardDeclarationSpecifierAST: public TypeSpecifierAST -{ - DECLARE_AST_NODE(ForwardDeclarationSpecifier) - - std::size_t class_key; - NameAST *name; - BaseClauseAST *base_clause; -}; - -struct CompoundStatementAST: public StatementAST -{ - DECLARE_AST_NODE(CompoundStatement) - - const ListNode *statements; -}; - -struct ConditionAST: public AST -{ - DECLARE_AST_NODE(Condition) - - TypeSpecifierAST *type_specifier; - DeclaratorAST *declarator; - ExpressionAST *expression; -}; - -struct ConditionalExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(ConditionalExpression) - - ExpressionAST *condition; - ExpressionAST *left_expression; - ExpressionAST *right_expression; -}; - -struct CppCastExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(CppCastExpression) - - std::size_t op; - TypeIdAST *type_id; - ExpressionAST *expression; - const ListNode *sub_expressions; -}; - -struct CtorInitializerAST: public AST -{ - DECLARE_AST_NODE(CtorInitializer) - - std::size_t colon; - const ListNode *member_initializers; -}; - -struct DeclarationStatementAST: public StatementAST -{ - DECLARE_AST_NODE(DeclarationStatement) - - DeclarationAST *declaration; -}; - -struct DeclaratorAST: public AST -{ - DECLARE_AST_NODE(Declarator) - - const ListNode *ptr_ops; - DeclaratorAST *sub_declarator; - NameAST *id; - ExpressionAST *bit_expression; - const ListNode *array_dimensions; - ParameterDeclarationClauseAST *parameter_declaration_clause; - const ListNode *fun_cv; - ExceptionSpecificationAST *exception_spec; -}; - -struct DeleteExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(DeleteExpression) - - std::size_t scope_token; - std::size_t delete_token; - std::size_t lbracket_token; - std::size_t rbracket_token; - ExpressionAST *expression; -}; - -struct DoStatementAST: public StatementAST -{ - DECLARE_AST_NODE(DoStatement) - - StatementAST *statement; - ExpressionAST *expression; -}; - -struct ElaboratedTypeSpecifierAST: public TypeSpecifierAST -{ - DECLARE_AST_NODE(ElaboratedTypeSpecifier) - - std::size_t type; - NameAST *name; -}; - -struct EnumSpecifierAST: public TypeSpecifierAST -{ - DECLARE_AST_NODE(EnumSpecifier) - - NameAST *name; - const ListNode *enumerators; -}; - -struct EnumeratorAST: public AST -{ - DECLARE_AST_NODE(Enumerator) - - std::size_t id; - ExpressionAST *expression; -}; - -struct ExceptionSpecificationAST: public AST -{ - DECLARE_AST_NODE(ExceptionSpecification) - - std::size_t ellipsis; - const ListNode *type_ids; -}; - -struct ExpressionOrDeclarationStatementAST: public StatementAST -{ - DECLARE_AST_NODE(ExpressionOrDeclarationStatement) - - StatementAST *expression; - StatementAST *declaration; -}; - -struct ExpressionStatementAST: public StatementAST -{ - DECLARE_AST_NODE(ExpressionStatement) - - ExpressionAST *expression; -}; - -struct FunctionCallAST: public ExpressionAST -{ - DECLARE_AST_NODE(FunctionCall) - - ExpressionAST *arguments; -}; - -struct FunctionDefinitionAST: public DeclarationAST -{ - DECLARE_AST_NODE(FunctionDefinition) - - const ListNode *storage_specifiers; - const ListNode *function_specifiers; - TypeSpecifierAST *type_specifier; - InitDeclaratorAST *init_declarator; - StatementAST *function_body; - WinDeclSpecAST *win_decl_specifiers; -}; - -struct ForStatementAST: public StatementAST -{ - DECLARE_AST_NODE(ForStatement) - - StatementAST *init_statement; - ConditionAST *condition; - ExpressionAST *expression; - StatementAST *statement; -}; - -struct IfStatementAST: public StatementAST -{ - DECLARE_AST_NODE(IfStatement) - - ConditionAST *condition; - StatementAST *statement; - StatementAST *else_statement; -}; - -struct IncrDecrExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(IncrDecrExpression) - - std::size_t op; -}; - -struct InitDeclaratorAST: public AST -{ - DECLARE_AST_NODE(InitDeclarator) - - DeclaratorAST *declarator; - InitializerAST *initializer; -}; - -struct InitializerAST: public AST -{ - DECLARE_AST_NODE(Initializer) - - InitializerClauseAST *initializer_clause; - ExpressionAST *expression; -}; - -struct InitializerClauseAST: public AST -{ - DECLARE_AST_NODE(InitializerClause) - - ExpressionAST *expression; -}; - -struct LabeledStatementAST: public StatementAST -{ - DECLARE_AST_NODE(LabeledStatement) -}; - -struct LinkageBodyAST: public AST -{ - DECLARE_AST_NODE(LinkageBody) - - const ListNode *declarations; -}; - -struct LinkageSpecificationAST: public DeclarationAST -{ - DECLARE_AST_NODE(LinkageSpecification) - - std::size_t extern_type; - LinkageBodyAST *linkage_body; - DeclarationAST *declaration; -}; - -struct MemInitializerAST: public AST -{ - DECLARE_AST_NODE(MemInitializer) - - NameAST *initializer_id; - ExpressionAST *expression; -}; - -struct NameAST: public AST -{ - DECLARE_AST_NODE(Name) - - bool global; - const ListNode *qualified_names; - UnqualifiedNameAST *unqualified_name; -}; - -struct NamespaceAST: public DeclarationAST -{ - DECLARE_AST_NODE(Namespace) - - std::size_t namespace_name; - LinkageBodyAST *linkage_body; -}; - -struct NamespaceAliasDefinitionAST: public DeclarationAST -{ - DECLARE_AST_NODE(NamespaceAliasDefinition) - - std::size_t namespace_name; - NameAST *alias_name; -}; - -struct NewDeclaratorAST: public AST -{ - DECLARE_AST_NODE(NewDeclarator) - - PtrOperatorAST *ptr_op; - NewDeclaratorAST *sub_declarator; - const ListNode *expressions; -}; - -struct NewExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(NewExpression) - - std::size_t scope_token; - std::size_t new_token; - ExpressionAST *expression; - TypeIdAST *type_id; - NewTypeIdAST *new_type_id; - NewInitializerAST *new_initializer; -}; - -struct NewInitializerAST: public AST -{ - DECLARE_AST_NODE(NewInitializer) - - ExpressionAST *expression; -}; - -struct NewTypeIdAST: public AST -{ - DECLARE_AST_NODE(NewTypeId) - - TypeSpecifierAST *type_specifier; - NewInitializerAST *new_initializer; - NewDeclaratorAST *new_declarator; -}; - -struct OperatorAST: public AST -{ - DECLARE_AST_NODE(Operator) - - std::size_t op; - std::size_t open; - std::size_t close; -}; - -struct OperatorFunctionIdAST: public AST -{ - DECLARE_AST_NODE(OperatorFunctionId) - - OperatorAST *op; - TypeSpecifierAST *type_specifier; - const ListNode *ptr_ops; -}; - -struct ParameterDeclarationAST: public AST -{ - DECLARE_AST_NODE(ParameterDeclaration) - - TypeSpecifierAST *type_specifier; - DeclaratorAST *declarator; - ExpressionAST *expression; -}; - -struct ParameterDeclarationClauseAST: public AST -{ - DECLARE_AST_NODE(ParameterDeclarationClause) - - const ListNode *parameter_declarations; - std::size_t ellipsis; -}; - -struct PostfixExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(PostfixExpression) - - TypeSpecifierAST *type_specifier; - ExpressionAST *expression; - const ListNode *sub_expressions; -}; - -struct PrimaryExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(PrimaryExpression) - - StringLiteralAST *literal; - std::size_t token; - StatementAST *expression_statement; - ExpressionAST *sub_expression; - NameAST *name; -}; - -struct PtrOperatorAST: public AST -{ - DECLARE_AST_NODE(PtrOperator) - - const ListNode *cv; - std::size_t op; - PtrToMemberAST *mem_ptr; -}; - -struct PtrToMemberAST: public AST -{ - DECLARE_AST_NODE(PtrToMember) -}; - -struct ReturnStatementAST: public StatementAST -{ - DECLARE_AST_NODE(ReturnStatement) - - ExpressionAST *expression; -}; - -struct SimpleDeclarationAST: public DeclarationAST -{ - DECLARE_AST_NODE(SimpleDeclaration) - - const ListNode *storage_specifiers; - const ListNode *function_specifiers; - TypeSpecifierAST *type_specifier; - const ListNode *init_declarators; - WinDeclSpecAST *win_decl_specifiers; -}; - -struct SimpleTypeSpecifierAST: public TypeSpecifierAST -{ - DECLARE_AST_NODE(SimpleTypeSpecifier) - - const ListNode *integrals; - std::size_t type_of; - TypeIdAST *type_id; - ExpressionAST *expression; - NameAST *name; -}; - -struct SizeofExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(SizeofExpression) - - std::size_t sizeof_token; - TypeIdAST *type_id; - ExpressionAST *expression; -}; - -struct StringLiteralAST: public AST -{ - DECLARE_AST_NODE(StringLiteral) - - const ListNode *literals; -}; - -struct SubscriptExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(SubscriptExpression) - - ExpressionAST *subscript; -}; - -struct SwitchStatementAST: public StatementAST -{ - DECLARE_AST_NODE(SwitchStatement) - - ConditionAST *condition; - StatementAST *statement; -}; - -struct TemplateArgumentAST: public AST -{ - DECLARE_AST_NODE(TemplateArgument) - - TypeIdAST *type_id; - ExpressionAST *expression; -}; - -struct TemplateDeclarationAST: public DeclarationAST -{ - DECLARE_AST_NODE(TemplateDeclaration) - - std::size_t exported; - const ListNode *template_parameters; - DeclarationAST* declaration; -}; - -struct TemplateParameterAST: public AST -{ - DECLARE_AST_NODE(TemplateParameter) - - TypeParameterAST *type_parameter; - ParameterDeclarationAST *parameter_declaration; -}; - -struct ThrowExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(ThrowExpression) - - std::size_t throw_token; - ExpressionAST *expression; -}; - -struct TranslationUnitAST: public AST -{ - DECLARE_AST_NODE(TranslationUnit) - - const ListNode *declarations; -}; - -struct TryBlockStatementAST: public StatementAST -{ - DECLARE_AST_NODE(TryBlockStatement) -}; - -struct TypeIdAST: public AST -{ - DECLARE_AST_NODE(TypeId) - - TypeSpecifierAST *type_specifier; - DeclaratorAST *declarator; -}; - -struct TypeIdentificationAST: public ExpressionAST -{ - DECLARE_AST_NODE(TypeIdentification) - - std::size_t typename_token; - NameAST *name; - ExpressionAST *expression; -}; - -struct TypeParameterAST: public AST -{ - DECLARE_AST_NODE(TypeParameter) - - std::size_t type; - NameAST *name; - TypeIdAST *type_id; - const ListNode *template_parameters; - NameAST *template_name; -}; - -struct TypedefAST: public DeclarationAST -{ - DECLARE_AST_NODE(Typedef) - - TypeSpecifierAST *type_specifier; - const ListNode *init_declarators; -}; - -struct UnaryExpressionAST: public ExpressionAST -{ - DECLARE_AST_NODE(UnaryExpression) - - std::size_t op; - ExpressionAST *expression; -}; - -struct UnqualifiedNameAST: public AST -{ - DECLARE_AST_NODE(UnqualifiedName) - - std::size_t tilde; - std::size_t id; - OperatorFunctionIdAST *operator_id; - const ListNode *template_arguments; -}; - -struct UsingAST: public DeclarationAST -{ - DECLARE_AST_NODE(Using) - - std::size_t type_name; - NameAST *name; -}; - -struct UsingDirectiveAST: public DeclarationAST -{ - DECLARE_AST_NODE(UsingDirective) - - NameAST *name; -}; - -struct WhileStatementAST: public StatementAST -{ - DECLARE_AST_NODE(WhileStatement) - - ConditionAST *condition; - StatementAST *statement; -}; - -struct WinDeclSpecAST: public AST -{ - DECLARE_AST_NODE(WinDeclSpec) - - std::size_t specifier; - std::size_t modifier; -}; - -struct QPropertyAST : public DeclarationAST -{ - DECLARE_AST_NODE(QPropertyAST) -}; - -struct QEnumsAST : public DeclarationAST -{ - DECLARE_AST_NODE(QEnumsAST) -}; - -template -_Tp *CreateNode(pool *memory_pool) -{ - _Tp *node = reinterpret_cast<_Tp*>(memory_pool->allocate(sizeof(_Tp))); - node->kind = _Tp::__node_kind; - return node; -} - -template -_Tp ast_cast(AST *item) -{ - if (item && static_cast<_Tp>(0)->__node_kind == item->kind) - return static_cast<_Tp>(item); - - return 0; -} - -#endif // AST_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/binder.cpp b/3rdparty/pythonqt/generator/parser/binder.cpp deleted file mode 100644 index 044c6d05b..000000000 --- a/3rdparty/pythonqt/generator/parser/binder.cpp +++ /dev/null @@ -1,923 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "binder.h" -#include "lexer.h" -#include "control.h" -#include "symbol.h" -#include "codemodel_finder.h" -#include "class_compiler.h" -#include "compiler_utils.h" -#include "tokens.h" -#include "dumptree.h" - -#include - -#include - -Binder::Binder(CodeModel *__model, LocationManager &__location, Control *__control) - : _M_model(__model), - _M_location(__location), - _M_token_stream(&_M_location.token_stream), - _M_control(__control), - _M_current_function_type(CodeModel::Normal), - type_cc(this), - name_cc(this), - decl_cc(this) -{ - _M_qualified_types["char"] = QString(); - _M_qualified_types["double"] = QString(); - _M_qualified_types["float"] = QString(); - _M_qualified_types["int"] = QString(); - _M_qualified_types["long"] = QString(); - _M_qualified_types["short"] = QString(); - _M_qualified_types["void"] = QString(); -} - -Binder::~Binder() -{ -} - -FileModelItem Binder::run(AST *node) -{ - FileModelItem old = _M_current_file; - _M_current_access = CodeModel::Public; - - _M_current_file = model()->create(); - updateItemPosition (_M_current_file->toItem(), node); - visit(node); - FileModelItem result = _M_current_file; - - _M_current_file = old; // restore - - return result; -} - -ScopeModelItem Binder::currentScope() -{ - if (_M_current_class) - return model_static_cast(_M_current_class); - else if (_M_current_namespace) - return model_static_cast(_M_current_namespace); - - return model_static_cast(_M_current_file); -} - -TemplateParameterList Binder::changeTemplateParameters(TemplateParameterList templateParameters) -{ - TemplateParameterList old = _M_current_template_parameters; - _M_current_template_parameters = templateParameters; - return old; -} - -CodeModel::FunctionType Binder::changeCurrentFunctionType(CodeModel::FunctionType functionType) -{ - CodeModel::FunctionType old = _M_current_function_type; - _M_current_function_type = functionType; - return old; -} - -CodeModel::AccessPolicy Binder::changeCurrentAccess(CodeModel::AccessPolicy accessPolicy) -{ - CodeModel::AccessPolicy old = _M_current_access; - _M_current_access = accessPolicy; - return old; -} - -NamespaceModelItem Binder::changeCurrentNamespace(NamespaceModelItem item) -{ - NamespaceModelItem old = _M_current_namespace; - _M_current_namespace = item; - return old; -} - -ClassModelItem Binder::changeCurrentClass(ClassModelItem item) -{ - ClassModelItem old = _M_current_class; - _M_current_class = item; - return old; -} - -FunctionDefinitionModelItem Binder::changeCurrentFunction(FunctionDefinitionModelItem item) -{ - FunctionDefinitionModelItem old = _M_current_function; - _M_current_function = item; - return old; -} - -int Binder::decode_token(std::size_t index) const -{ - return _M_token_stream->kind(index); -} - -CodeModel::AccessPolicy Binder::decode_access_policy(std::size_t index) const -{ - switch (decode_token(index)) - { - case Token_class: - return CodeModel::Private; - - case Token_struct: - case Token_union: - return CodeModel::Public; - - default: - return CodeModel::Public; - } -} - -CodeModel::ClassType Binder::decode_class_type(std::size_t index) const -{ - switch (decode_token(index)) - { - case Token_class: - return CodeModel::Class; - case Token_struct: - return CodeModel::Struct; - case Token_union: - return CodeModel::Union; - default: - std::cerr << "** WARNING unrecognized class type" << std::endl; - } - return CodeModel::Class; -} - -const NameSymbol *Binder::decode_symbol(std::size_t index) const -{ - return _M_token_stream->symbol(index); -} - -void Binder::visitAccessSpecifier(AccessSpecifierAST *node) -{ - const ListNode *it = node->specs; - if (it == 0) - return; - - it = it->toFront(); - const ListNode *end = it; - - do - { - switch (decode_token(it->element)) - { - default: - break; - - case Token_public: - changeCurrentAccess(CodeModel::Public); - changeCurrentFunctionType(CodeModel::Normal); - break; - case Token_protected: - changeCurrentAccess(CodeModel::Protected); - changeCurrentFunctionType(CodeModel::Normal); - break; - case Token_private: - changeCurrentAccess(CodeModel::Private); - changeCurrentFunctionType(CodeModel::Normal); - break; - case Token_signals: - changeCurrentAccess(CodeModel::Protected); - changeCurrentFunctionType(CodeModel::Signal); - break; - case Token_slots: - changeCurrentFunctionType(CodeModel::Slot); - break; - } - it = it->next; - } - while (it != end); -} - -void Binder::visitSimpleDeclaration(SimpleDeclarationAST *node) -{ - visit(node->type_specifier); - - if (const ListNode *it = node->init_declarators) - { - it = it->toFront(); - const ListNode *end = it; - do - { - InitDeclaratorAST *init_declarator = it->element; - declare_symbol(node, init_declarator); - it = it->next; - } - while (it != end); - } -} - -void Binder::declare_symbol(SimpleDeclarationAST *node, InitDeclaratorAST *init_declarator) -{ - DeclaratorAST *declarator = init_declarator->declarator; - - while (declarator && declarator->sub_declarator) - declarator = declarator->sub_declarator; - - NameAST *id = declarator->id; - if (! declarator->id) - { - std::cerr << "** WARNING expected a declarator id" << std::endl; - return; - } - - CodeModelFinder finder(model(), this); - ScopeModelItem symbolScope = finder.resolveScope(id, currentScope()); - if (! symbolScope) - { - name_cc.run(id); - std::cerr << "** WARNING scope not found for symbol:" - << qPrintable(name_cc.name()) << std::endl; - return; - } - - decl_cc.run(declarator); - - if (decl_cc.isFunction()) - { - name_cc.run(id->unqualified_name); - - FunctionModelItem fun = model()->create(); - updateItemPosition (fun->toItem(), node); - fun->setAccessPolicy(_M_current_access); - fun->setFunctionType(_M_current_function_type); - fun->setName(name_cc.name()); - fun->setAbstract(init_declarator->initializer != 0); - fun->setConstant(declarator->fun_cv != 0); - fun->setTemplateParameters(_M_current_template_parameters); - applyStorageSpecifiers(node->storage_specifiers, model_static_cast(fun)); - applyFunctionSpecifiers(node->function_specifiers, fun); - - // build the type - TypeInfo typeInfo = CompilerUtils::typeDescription(node->type_specifier, - declarator, - this); - - fun->setType(qualifyType(typeInfo, symbolScope->qualifiedName())); - - - fun->setVariadics (decl_cc.isVariadics ()); - - // ... and the signature - foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) - { - ArgumentModelItem arg = model()->create(); - arg->setType(qualifyType(p.type, _M_context)); - arg->setName(p.name); - arg->setDefaultValue(p.defaultValue); - if (p.defaultValue) - arg->setDefaultValueExpression(p.defaultValueExpression); - fun->addArgument(arg); - } - - fun->setScope(symbolScope->qualifiedName()); - symbolScope->addFunction(fun); - } - else - { - VariableModelItem var = model()->create(); - updateItemPosition (var->toItem(), node); - var->setTemplateParameters(_M_current_template_parameters); - var->setAccessPolicy(_M_current_access); - name_cc.run(id->unqualified_name); - var->setName(name_cc.name()); - TypeInfo typeInfo = CompilerUtils::typeDescription(node->type_specifier, - declarator, - this); - if (declarator != init_declarator->declarator - && init_declarator->declarator->parameter_declaration_clause != 0) - { - typeInfo.setFunctionPointer (true); - decl_cc.run (init_declarator->declarator); - foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) - typeInfo.addArgument(p.type); - } - - var->setType(qualifyType(typeInfo, _M_context)); - applyStorageSpecifiers(node->storage_specifiers, model_static_cast(var)); - - var->setScope(symbolScope->qualifiedName()); - symbolScope->addVariable(var); - } -} - -void Binder::visitFunctionDefinition(FunctionDefinitionAST *node) -{ - Q_ASSERT(node->init_declarator != 0); - - ScopeModelItem scope = currentScope(); - - InitDeclaratorAST *init_declarator = node->init_declarator; - DeclaratorAST *declarator = init_declarator->declarator; - - // in the case of "void (func)()" or "void ((func))()" we need to - // skip to the inner most. This is in line with how the declarator - // node is generated in 'parser.cpp' - while (declarator && declarator->sub_declarator) - declarator = declarator->sub_declarator; - Q_ASSERT(declarator->id); - - CodeModelFinder finder(model(), this); - - ScopeModelItem functionScope = finder.resolveScope(declarator->id, scope); - if (! functionScope) - { - name_cc.run(declarator->id); - std::cerr << "** WARNING scope not found for function definition:" - << qPrintable(name_cc.name()) << std::endl - << "\tdefinition *ignored*" - << std::endl; - return; - } - - decl_cc.run(declarator); - - Q_ASSERT(! decl_cc.id().isEmpty()); - - FunctionDefinitionModelItem - old = changeCurrentFunction(_M_model->create()); - _M_current_function->setScope(functionScope->qualifiedName()); - updateItemPosition (_M_current_function->toItem(), node); - - Q_ASSERT(declarator->id->unqualified_name != 0); - name_cc.run(declarator->id->unqualified_name); - QString unqualified_name = name_cc.name(); - - _M_current_function->setName(unqualified_name); - TypeInfo tmp_type = CompilerUtils::typeDescription(node->type_specifier, - declarator, this); - - _M_current_function->setType(qualifyType(tmp_type, _M_context)); - _M_current_function->setAccessPolicy(_M_current_access); - _M_current_function->setFunctionType(_M_current_function_type); - _M_current_function->setConstant(declarator->fun_cv != 0); - _M_current_function->setTemplateParameters(_M_current_template_parameters); - - applyStorageSpecifiers(node->storage_specifiers, - model_static_cast(_M_current_function)); - applyFunctionSpecifiers(node->function_specifiers, - model_static_cast(_M_current_function)); - - _M_current_function->setVariadics (decl_cc.isVariadics ()); - - foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) - { - ArgumentModelItem arg = model()->create(); - arg->setType(qualifyType(p.type, functionScope->qualifiedName())); - arg->setName(p.name); - arg->setDefaultValue(p.defaultValue); - if (p.defaultValue) - arg->setDefaultValueExpression(p.defaultValueExpression); - _M_current_function->addArgument(arg); - } - - functionScope->addFunctionDefinition(_M_current_function); - - FunctionModelItem prototype = model_static_cast(_M_current_function); - FunctionModelItem declared = functionScope->declaredFunction(prototype); - - // try to find a function declaration for this definition.. - if (! declared) - { - functionScope->addFunction(prototype); - } - else - { - applyFunctionSpecifiers(node->function_specifiers, declared); - - // fix the function type and the access policy - _M_current_function->setAccessPolicy(declared->accessPolicy()); - _M_current_function->setFunctionType(declared->functionType()); - } - - changeCurrentFunction(old); -} - -void Binder::visitTemplateDeclaration(TemplateDeclarationAST *node) -{ - const ListNode *it = node->template_parameters; - if (it == 0) { - // QtScript: we want to visit the declaration still, so that - // e.g. QMetaTypeId is added to the code model - visit(node->declaration); - return; - } - - TemplateParameterList savedTemplateParameters = changeTemplateParameters(TemplateParameterList()); - - it = it->toFront(); - const ListNode *end = it; - - TemplateParameterList templateParameters; - do { - TemplateParameterAST *parameter = it->element; - TypeParameterAST *type_parameter = parameter->type_parameter; - - NameAST *name; - if (!type_parameter) { - // A hacky hack to work around missing support for parameter declarations in - // templates. We just need the to get the name of the variable, since we - // aren't actually compiling these anyway. We are still not supporting much - // more, but we are refusing to fail for a few more declarations - if (parameter->parameter_declaration == 0 || - parameter->parameter_declaration->declarator == 0 || - parameter->parameter_declaration->declarator->id == 0) { - - /*std::cerr << "** WARNING template declaration not supported ``"; - Token const &tk = _M_token_stream->token ((int) node->start_token); - Token const &end_tk = _M_token_stream->token ((int) node->declaration->start_token); - - std::cerr << std::string (&tk.text[tk.position], (end_tk.position) - tk.position) << "''" - << std::endl << std::endl;*/ - - changeTemplateParameters(savedTemplateParameters); - return; - - } - - name = parameter->parameter_declaration->declarator->id; - } else { - int tk = decode_token(type_parameter->type); - if (tk != Token_typename && tk != Token_class) - { - /*std::cerr << "** WARNING template declaration not supported ``"; - Token const &tk = _M_token_stream->token ((int) node->start_token); - Token const &end_tk = _M_token_stream->token ((int) node->declaration->start_token); - - std::cerr << std::string (&tk.text[tk.position], (end_tk.position) - tk.position) << "''" - << std::endl << std::endl;*/ - - changeTemplateParameters(savedTemplateParameters); - return; - } - assert(tk == Token_typename || tk == Token_class); - - name = type_parameter->name; - } - - TemplateParameterModelItem p = model()->create(); - name_cc.run(name); - p->setName(name_cc.name()); - - _M_current_template_parameters.append(p); - it = it->next; - } while (it != end); - - visit(node->declaration); - - changeTemplateParameters(savedTemplateParameters); -} - -void Binder::visitTypedef(TypedefAST *node) -{ - const ListNode *it = node->init_declarators; - if (it == 0) - return; - - it = it->toFront(); - const ListNode *end = it; - - do - { - InitDeclaratorAST *init_declarator = it->element; - it = it->next; - - Q_ASSERT(init_declarator->declarator != 0); - - // the name - decl_cc.run (init_declarator->declarator); - QString alias_name = decl_cc.id (); - - if (alias_name.isEmpty ()) - { - std::cerr << "** WARNING anonymous typedef not supported! ``"; - Token const &tk = _M_token_stream->token ((int) node->start_token); - Token const &end_tk = _M_token_stream->token ((int) node->end_token); - - std::cerr << std::string (&tk.text[tk.position], end_tk.position - tk.position) << "''" - << std::endl << std::endl; - continue; - } - - // build the type - TypeInfo typeInfo = CompilerUtils::typeDescription (node->type_specifier, - init_declarator->declarator, - this); - DeclaratorAST *decl = init_declarator->declarator; - while (decl && decl->sub_declarator) - decl = decl->sub_declarator; - - if (decl != init_declarator->declarator - && init_declarator->declarator->parameter_declaration_clause != 0) - { - typeInfo.setFunctionPointer (true); - decl_cc.run (init_declarator->declarator); - foreach (DeclaratorCompiler::Parameter p, decl_cc.parameters()) - typeInfo.addArgument(p.type); - } - - ScopeModelItem scope = currentScope(); - DeclaratorAST *declarator = init_declarator->declarator; - CodeModelFinder finder(model(), this); - ScopeModelItem typedefScope = finder.resolveScope(declarator->id, scope); - - TypeAliasModelItem typeAlias = model ()->create (); - updateItemPosition (typeAlias->toItem (), node); - typeAlias->setName (alias_name); - typeAlias->setType (qualifyType (typeInfo, currentScope ()->qualifiedName ())); - typeAlias->setScope (typedefScope->qualifiedName()); - _M_qualified_types[typeAlias->qualifiedName().join(".")] = QString(); - currentScope ()->addTypeAlias (typeAlias); - } - while (it != end); -} - -void Binder::visitNamespace(NamespaceAST *node) -{ - bool anonymous = (node->namespace_name == 0); - - ScopeModelItem scope = currentScope(); - - NamespaceModelItem old; - if (! anonymous) - { - QString name = decode_symbol(node->namespace_name)->as_string(); - - QStringList qualified_name = scope->qualifiedName(); - qualified_name += name; - NamespaceModelItem ns = - model_safe_cast(_M_model->findItem(qualified_name, - _M_current_file->toItem())); - if (!ns) - { - ns = _M_model->create(); - updateItemPosition (ns->toItem(), node); - ns->setName(name); - ns->setScope(scope->qualifiedName()); - } - old = changeCurrentNamespace(ns); - - _M_context.append(name); - } - - DefaultVisitor::visitNamespace(node); - - if (! anonymous) - { - Q_ASSERT(scope->kind() == _CodeModelItem::Kind_Namespace - || scope->kind() == _CodeModelItem::Kind_File); - - _M_context.removeLast(); - - if (NamespaceModelItem ns = model_static_cast(scope)) - { - ns->addNamespace(_M_current_namespace); - } - - changeCurrentNamespace(old); - } -} - -void Binder::visitForwardDeclarationSpecifier(ForwardDeclarationSpecifierAST *node) -{ - name_cc.run(node->name); - if (name_cc.name().isEmpty()) - return; - - ScopeModelItem scope = currentScope(); - _M_qualified_types[(scope->qualifiedName() + name_cc.qualifiedName()).join(".") ] = QString(); -} - -void Binder::visitClassSpecifier(ClassSpecifierAST *node) -{ - ClassCompiler class_cc(this); - class_cc.run(node); - - if (class_cc.name().isEmpty()) - { - // anonymous not supported - return; - } - - Q_ASSERT(node->name != 0 && node->name->unqualified_name != 0); - - ScopeModelItem scope = currentScope(); - - ClassModelItem old = changeCurrentClass(_M_model->create()); - updateItemPosition (_M_current_class->toItem(), node); - _M_current_class->setName(class_cc.name()); - - QStringList baseClasses = class_cc.baseClasses(); TypeInfo info; - for (int i=0; iqualifiedName()).qualifiedName().join("::"); - } - - _M_current_class->setBaseClasses(baseClasses); - _M_current_class->setClassType(decode_class_type(node->class_key)); - _M_current_class->setTemplateParameters(_M_current_template_parameters); - - if (! _M_current_template_parameters.isEmpty()) - { - QString name = _M_current_class->name(); - name += "<"; - for (int i = 0; i<_M_current_template_parameters.size(); ++i) - { - if (i != 0) - name += ","; - - name += _M_current_template_parameters.at(i)->name(); - } - - name += ">"; - _M_current_class->setName(name); - } - - CodeModel::AccessPolicy oldAccessPolicy = changeCurrentAccess(decode_access_policy(node->class_key)); - CodeModel::FunctionType oldFunctionType = changeCurrentFunctionType(CodeModel::Normal); - - _M_current_class->setScope(scope->qualifiedName()); - _M_qualified_types[_M_current_class->qualifiedName().join(".")] = QString(); - - scope->addClass(_M_current_class); - - name_cc.run(node->name->unqualified_name); - _M_context.append(name_cc.name()); - visitNodes(this, node->member_specs); - _M_context.removeLast(); - - changeCurrentClass(old); - changeCurrentAccess(oldAccessPolicy); - changeCurrentFunctionType(oldFunctionType); -} - -void Binder::visitLinkageSpecification(LinkageSpecificationAST *node) -{ - DefaultVisitor::visitLinkageSpecification(node); -} - -void Binder::visitUsing(UsingAST *node) -{ - DefaultVisitor::visitUsing(node); -} - -void Binder::visitEnumSpecifier(EnumSpecifierAST *node) -{ - CodeModelFinder finder(model(), this); - ScopeModelItem scope = currentScope(); - ScopeModelItem enumScope = finder.resolveScope(node->name, scope); - - name_cc.run(node->name); - QString name = name_cc.name(); - - if (name.isEmpty()) - { - // anonymous enum - QString key = _M_context.join("::"); - int current = ++_M_anonymous_enums[key]; - name += QLatin1String("enum_"); - name += QString::number(current); - } - - _M_current_enum = model()->create(); - _M_current_enum->setAccessPolicy(_M_current_access); - updateItemPosition (_M_current_enum->toItem(), node); - _M_current_enum->setName(name); - _M_current_enum->setScope(enumScope->qualifiedName()); - - _M_qualified_types[_M_current_enum->qualifiedName().join(".")] = QString(); - - enumScope->addEnum(_M_current_enum); - - DefaultVisitor::visitEnumSpecifier(node); - - _M_current_enum = 0; -} - -static QString strip_preprocessor_lines(const QString &name) -{ - QStringList lst = name.split("\n"); - QString s; - for (int i=0; icreate(); - updateItemPosition (e->toItem(), node); - e->setName(decode_symbol(node->id)->as_string()); - - if (ExpressionAST *expr = node->expression) - { - const Token &start_token = _M_token_stream->token((int) expr->start_token); - const Token &end_token = _M_token_stream->token((int) expr->end_token); - - e->setValue(strip_preprocessor_lines(QString::fromUtf8(&start_token.text[start_token.position], - (int) (end_token.position - start_token.position)).trimmed()).remove(' ')); - } - - _M_current_enum->addEnumerator(e); -} - -void Binder::visitUsingDirective(UsingDirectiveAST *node) -{ - DefaultVisitor::visitUsingDirective(node); -} - -void Binder::visitQEnums(QEnumsAST *node) -{ - const Token &start = _M_token_stream->token((int) node->start_token); - const Token &end = _M_token_stream->token((int) node->end_token); - QStringList enum_list = QString::fromLatin1(start.text + start.position, - end.position - start.position).split(' '); - - ScopeModelItem scope = currentScope(); - for (int i=0; iaddEnumsDeclaration(enum_list.at(i)); -} - -void Binder::visitQProperty(QPropertyAST *node) -{ - const Token &start = _M_token_stream->token((int) node->start_token); - const Token &end = _M_token_stream->token((int) node->end_token); - QString property = QString::fromLatin1(start.text + start.position, - end.position - start.position); - _M_current_class->addPropertyDeclaration(property); -} - -void Binder::applyStorageSpecifiers(const ListNode *it, MemberModelItem item) -{ - if (it == 0) - return; - - it = it->toFront(); - const ListNode *end = it; - - do - { - switch (decode_token(it->element)) - { - default: - break; - - case Token_friend: - item->setFriend(true); - break; - case Token_auto: - item->setAuto(true); - break; - case Token_register: - item->setRegister(true); - break; - case Token_static: - item->setStatic(true); - break; - case Token_extern: - item->setExtern(true); - break; - case Token_mutable: - item->setMutable(true); - break; - } - it = it->next; - } - while (it != end); -} - -void Binder::applyFunctionSpecifiers(const ListNode *it, FunctionModelItem item) -{ - if (it == 0) - return; - - it = it->toFront(); - const ListNode *end = it; - - do - { - switch (decode_token(it->element)) - { - default: - break; - - case Token_inline: - item->setInline(true); - break; - - case Token_virtual: - item->setVirtual(true); - break; - - case Token_explicit: - item->setExplicit(true); - break; - - case Token_Q_INVOKABLE: - item->setInvokable(true); - break; - } - it = it->next; - } - while (it != end); -} - -TypeInfo Binder::qualifyType(const TypeInfo &type, const QStringList &context) const -{ - // ### Potentially improve to use string list in the name table to - if (context.size() == 0) - { - // ### We can assume that this means global namespace for now... - return type; - } - else if (_M_qualified_types.contains(type.qualifiedName().join("."))) - { - return type; - } - else - { - QStringList expanded = context; - expanded << type.qualifiedName(); - if (_M_qualified_types.contains(expanded.join("."))) - { - TypeInfo modified_type = type; - modified_type.setQualifiedName(expanded); - return modified_type; - } - else - { - CodeModelItem scope = model ()->findItem (context, _M_current_file->toItem ()); - - if (ClassModelItem klass = model_dynamic_cast (scope)) - { - foreach (QString base, klass->baseClasses ()) - { - QStringList ctx = context; - ctx.removeLast(); - ctx.append (base); - - TypeInfo qualified = qualifyType (type, ctx); - if (qualified != type) - return qualified; - } - } - - QStringList copy = context; - copy.removeLast(); - return qualifyType(type, copy); - } - } -} - -void Binder::updateItemPosition(CodeModelItem item, AST *node) -{ - QString filename; - int line, column; - - assert (node != 0); - _M_location.positionAt (_M_token_stream->position(node->start_token), &line, &column, &filename); - item->setFileName (filename); -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/binder.h b/3rdparty/pythonqt/generator/parser/binder.h deleted file mode 100644 index f8413cab8..000000000 --- a/3rdparty/pythonqt/generator/parser/binder.h +++ /dev/null @@ -1,136 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef BINDER_H -#define BINDER_H - -#include "default_visitor.h" -#include "codemodel.h" -#include "type_compiler.h" -#include "name_compiler.h" -#include "declarator_compiler.h" - -class TokenStream; -class LocationManager; -class Control; -struct NameSymbol; - -class Binder: protected DefaultVisitor -{ -public: - Binder(CodeModel *__model, LocationManager &__location, Control *__control = 0); - virtual ~Binder(); - - inline TokenStream *tokenStream() const { return _M_token_stream; } - inline CodeModel *model() const { return _M_model; } - ScopeModelItem currentScope(); - - FileModelItem run(AST *node); - -// utils - TypeInfo qualifyType(const TypeInfo &type, const QStringList &context) const; - -protected: - virtual void visitAccessSpecifier(AccessSpecifierAST *); - virtual void visitClassSpecifier(ClassSpecifierAST *); - virtual void visitEnumSpecifier(EnumSpecifierAST *); - virtual void visitEnumerator(EnumeratorAST *); - virtual void visitFunctionDefinition(FunctionDefinitionAST *); - virtual void visitLinkageSpecification(LinkageSpecificationAST *); - virtual void visitNamespace(NamespaceAST *); - virtual void visitSimpleDeclaration(SimpleDeclarationAST *); - virtual void visitTemplateDeclaration(TemplateDeclarationAST *); - virtual void visitTypedef(TypedefAST *); - virtual void visitUsing(UsingAST *); - virtual void visitUsingDirective(UsingDirectiveAST *); - virtual void visitQProperty(QPropertyAST *); - virtual void visitForwardDeclarationSpecifier(ForwardDeclarationSpecifierAST *); - virtual void visitQEnums(QEnumsAST *); - -private: - - int decode_token(std::size_t index) const; - const NameSymbol *decode_symbol(std::size_t index) const; - CodeModel::AccessPolicy decode_access_policy(std::size_t index) const; - CodeModel::ClassType decode_class_type(std::size_t index) const; - - CodeModel::FunctionType changeCurrentFunctionType(CodeModel::FunctionType functionType); - CodeModel::AccessPolicy changeCurrentAccess(CodeModel::AccessPolicy accessPolicy); - NamespaceModelItem changeCurrentNamespace(NamespaceModelItem item); - ClassModelItem changeCurrentClass(ClassModelItem item); - FunctionDefinitionModelItem changeCurrentFunction(FunctionDefinitionModelItem item); - TemplateParameterList changeTemplateParameters(TemplateParameterList templateParameters); - - void declare_symbol(SimpleDeclarationAST *node, InitDeclaratorAST *init_declarator); - - void applyStorageSpecifiers(const ListNode *storage_specifiers, MemberModelItem item); - void applyFunctionSpecifiers(const ListNode *it, FunctionModelItem item); - - void updateItemPosition(CodeModelItem item, AST *node); - -private: - CodeModel *_M_model; - LocationManager &_M_location; - TokenStream *_M_token_stream; - Control *_M_control; - - CodeModel::FunctionType _M_current_function_type; - CodeModel::AccessPolicy _M_current_access; - FileModelItem _M_current_file; - NamespaceModelItem _M_current_namespace; - ClassModelItem _M_current_class; - FunctionDefinitionModelItem _M_current_function; - EnumModelItem _M_current_enum; - QStringList _M_context; - TemplateParameterList _M_current_template_parameters; // ### check me - QHash _M_qualified_types; - QHash _M_anonymous_enums; - -protected: - TypeCompiler type_cc; - NameCompiler name_cc; - DeclaratorCompiler decl_cc; -}; - -#endif // BINDER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/class_compiler.cpp b/3rdparty/pythonqt/generator/parser/class_compiler.cpp deleted file mode 100644 index 27a9755bc..000000000 --- a/3rdparty/pythonqt/generator/parser/class_compiler.cpp +++ /dev/null @@ -1,83 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "class_compiler.h" -#include "lexer.h" -#include "binder.h" - -ClassCompiler::ClassCompiler(Binder *binder) - : _M_binder (binder), - _M_token_stream(binder->tokenStream ()), - name_cc(_M_binder), - type_cc(_M_binder) -{ -} - -ClassCompiler::~ClassCompiler() -{ -} - -void ClassCompiler::run(ClassSpecifierAST *node) -{ - name_cc.run(node->name); - _M_name = name_cc.name(); - _M_base_classes.clear(); - - visit(node); -} - -void ClassCompiler::visitClassSpecifier(ClassSpecifierAST *node) -{ - visit(node->base_clause); -} - -void ClassCompiler::visitBaseSpecifier(BaseSpecifierAST *node) -{ - name_cc.run(node->name); - QString name = name_cc.name(); - - if (! name.isEmpty()) - _M_base_classes.append(name); -} - - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/class_compiler.h b/3rdparty/pythonqt/generator/parser/class_compiler.h deleted file mode 100644 index 6c2b67c83..000000000 --- a/3rdparty/pythonqt/generator/parser/class_compiler.h +++ /dev/null @@ -1,82 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef CLASS_COMPILER_H -#define CLASS_COMPILER_H - -#include -#include - -#include "default_visitor.h" -#include "name_compiler.h" -#include "type_compiler.h" - -class TokenStream; -class Binder; - -class ClassCompiler: protected DefaultVisitor -{ -public: - ClassCompiler(Binder *binder); - virtual ~ClassCompiler(); - - inline QString name() const { return _M_name; } - inline QStringList baseClasses() const { return _M_base_classes; } - - void run(ClassSpecifierAST *node); - -protected: - virtual void visitClassSpecifier(ClassSpecifierAST *node); - virtual void visitBaseSpecifier(BaseSpecifierAST *node); - -private: - Binder *_M_binder; - TokenStream *_M_token_stream; - QString _M_name; - QStringList _M_base_classes; - NameCompiler name_cc; - TypeCompiler type_cc; -}; - -#endif // CLASS_COMPILER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/codemodel.cpp b/3rdparty/pythonqt/generator/parser/codemodel.cpp deleted file mode 100644 index 4eb02300d..000000000 --- a/3rdparty/pythonqt/generator/parser/codemodel.cpp +++ /dev/null @@ -1,968 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "codemodel.h" - -// --------------------------------------------------------------------------- -CodeModel::CodeModel() - : _M_creation_id(0) -{ - _M_globalNamespace = create(); -} - -CodeModel::~CodeModel() -{ -} - -void CodeModel::wipeout() -{ - _M_globalNamespace = create(); - _M_files.clear(); -} - -FileList CodeModel::files() const -{ - return _M_files.values(); -} - -NamespaceModelItem CodeModel::globalNamespace() const -{ - return _M_globalNamespace; -} - -void CodeModel::addFile(FileModelItem item) -{ - _M_creation_id = 0; // reset the creation id - _M_files.insert(item->name(), item); -} - -void CodeModel::removeFile(FileModelItem item) -{ - QHash::Iterator it = _M_files.find(item->name()); - - if (it != _M_files.end() && it.value() == item) - _M_files.erase(it); -} - -FileModelItem CodeModel::findFile(const QString &name) const -{ - return _M_files.value(name); -} - -QHash CodeModel::fileMap() const -{ - return _M_files; -} - -CodeModelItem CodeModel::findItem(const QStringList &qualifiedName, CodeModelItem scope) const -{ - for (int i=0; i(scope)) - { - if (NamespaceModelItem tmp_ns = ns->findNamespace(name)) { - scope = tmp_ns; - continue; - } - } - - if (ScopeModelItem ss = model_dynamic_cast(scope)) - { - if (ClassModelItem cs = ss->findClass(name)) - { - scope = cs; - } - else if (EnumModelItem es = ss->findEnum(name)) - { - if (i == qualifiedName.size () - 1) - return es->toItem(); - } - else if (TypeAliasModelItem tp = ss->findTypeAlias(name)) - { - if (i == qualifiedName.size () - 1) - return tp->toItem (); - } - else - { - // If we don't find the name in the scope chain we - // need to return an empty item to indicate failure... - return CodeModelItem(); - } - } - } - - return scope; -} - - -// --------------------------------------------------------------------------- -TypeInfo TypeInfo::combine (const TypeInfo &__lhs, const TypeInfo &__rhs) -{ - TypeInfo __result = __lhs; - - __result.setConstant (__result.isConstant () || __rhs.isConstant ()); - __result.setVolatile (__result.isVolatile () || __rhs.isVolatile ()); - __result.setReference (__result.isReference () || __rhs.isReference ()); - __result.setIndirections (__result.indirections () + __rhs.indirections ()); - __result.setArrayElements (__result.arrayElements () + __rhs.arrayElements ()); - - return __result; -} - -TypeInfo TypeInfo::resolveType (TypeInfo const &__type, CodeModelItem __scope) -{ - CodeModel *__model = __scope->model (); - Q_ASSERT (__model != 0); - - CodeModelItem __item = __model->findItem (__type.qualifiedName (), __scope); - - // Copy the type and replace with the proper qualified name. This - // only makes sence to do if we're actually getting a resolved - // type with a namespace. We only get this if the returned type - // has more than 2 entries in the qualified name... This test - // could be improved by returning if the type was found or not. - TypeInfo otherType(__type); - if (__item && __item->qualifiedName().size() > 1) { - otherType.setQualifiedName(__item->qualifiedName()); - } - - if (TypeAliasModelItem __alias = model_dynamic_cast (__item)) - return resolveType (TypeInfo::combine (__alias->type (), otherType), __scope); - - return otherType; -} - -QString TypeInfo::toString() const -{ - QString tmp; - - tmp += m_qualifiedName.join("::"); - if (isConstant()) - tmp += QLatin1String(" const"); - - if (isVolatile()) - tmp += QLatin1String(" volatile"); - - if (indirections()) - tmp += QString(indirections(), QLatin1Char('*')); - - if (isReference()) - tmp += QLatin1Char('&'); - - if (isFunctionPointer()) - { - tmp += QLatin1String(" (*)("); - for (int i=0; i(this)); -} - -int _CodeModelItem::kind() const -{ - return _M_kind; -} - -void _CodeModelItem::setKind(int kind) -{ - _M_kind = kind; -} - -QStringList _CodeModelItem::qualifiedName() const -{ - QStringList q = scope(); - - if (!name().isEmpty()) - q += name(); - - return q; -} - -QString _CodeModelItem::name() const -{ - return _M_name; -} - -void _CodeModelItem::setName(const QString &name) -{ - _M_name = name; -} - -QStringList _CodeModelItem::scope() const -{ - return _M_scope; -} - -void _CodeModelItem::setScope(const QStringList &scope) -{ - _M_scope = scope; -} - -QString _CodeModelItem::fileName() const -{ - return _M_fileName; -} - -void _CodeModelItem::setFileName(const QString &fileName) -{ - _M_fileName = fileName; -} - -FileModelItem _CodeModelItem::file() const -{ - return model()->findFile(fileName()); -} - -void _CodeModelItem::getStartPosition(int *line, int *column) -{ - *line = _M_startLine; - *column = _M_startColumn; -} - -void _CodeModelItem::setStartPosition(int line, int column) -{ - _M_startLine = line; - _M_startColumn = column; -} - -void _CodeModelItem::getEndPosition(int *line, int *column) -{ - *line = _M_endLine; - *column = _M_endColumn; -} - -void _CodeModelItem::setEndPosition(int line, int column) -{ - _M_endLine = line; - _M_endColumn = column; -} - -// --------------------------------------------------------------------------- -QStringList _ClassModelItem::baseClasses() const -{ - return _M_baseClasses; -} - -void _ClassModelItem::setBaseClasses(const QStringList &baseClasses) -{ - _M_baseClasses = baseClasses; -} - -TemplateParameterList _ClassModelItem::templateParameters() const -{ - return _M_templateParameters; -} - -void _ClassModelItem::setTemplateParameters(const TemplateParameterList &templateParameters) -{ - _M_templateParameters = templateParameters; -} - -void _ClassModelItem::addBaseClass(const QString &baseClass) -{ - _M_baseClasses.append(baseClass); -} - -void _ClassModelItem::removeBaseClass(const QString &baseClass) -{ - _M_baseClasses.removeAt(_M_baseClasses.indexOf(baseClass)); -} - -bool _ClassModelItem::extendsClass(const QString &name) const -{ - return _M_baseClasses.contains(name); -} - -void _ClassModelItem::setClassType(CodeModel::ClassType type) -{ - _M_classType = type; -} - -CodeModel::ClassType _ClassModelItem::classType() const -{ - return _M_classType; -} - -void _ClassModelItem::addPropertyDeclaration(const QString &propertyDeclaration) -{ - _M_propertyDeclarations << propertyDeclaration; -} - - -// --------------------------------------------------------------------------- -FunctionModelItem _ScopeModelItem::declaredFunction(FunctionModelItem item) -{ - FunctionList function_list = findFunctions(item->name()); - - foreach (FunctionModelItem fun, function_list) - { - if (fun->isSimilar(item)) - return fun; - } - - return FunctionModelItem(); -} - -ClassList _ScopeModelItem::classes() const -{ - return _M_classes.values(); -} - -TypeAliasList _ScopeModelItem::typeAliases() const -{ - return _M_typeAliases.values(); -} - -VariableList _ScopeModelItem::variables() const -{ - return _M_variables.values(); -} - -FunctionList _ScopeModelItem::functions() const -{ - return _M_functions.values(); -} - -void _ScopeModelItem::addEnumsDeclaration(const QString &enumsDeclaration) -{ - _M_enumsDeclarations << enumsDeclaration; -} - -FunctionDefinitionList _ScopeModelItem::functionDefinitions() const -{ - return _M_functionDefinitions.values(); -} - -EnumList _ScopeModelItem::enums() const -{ - return _M_enums.values(); -} - -void _ScopeModelItem::addClass(ClassModelItem item) -{ - QString name = item->name(); - int idx = name.indexOf("<"); - if (idx > 0) - _M_classes.insert(name.left(idx), item); - _M_classes.insert(name, item); -} - -void _ScopeModelItem::addFunction(FunctionModelItem item) -{ - _M_functions.insert(item->name(), item); -} - -void _ScopeModelItem::addFunctionDefinition(FunctionDefinitionModelItem item) -{ - _M_functionDefinitions.insert(item->name(), item); -} - -void _ScopeModelItem::addVariable(VariableModelItem item) -{ - _M_variables.insert(item->name(), item); -} - -void _ScopeModelItem::addTypeAlias(TypeAliasModelItem item) -{ - _M_typeAliases.insert(item->name(), item); -} - -void _ScopeModelItem::addEnum(EnumModelItem item) -{ - _M_enums.insert(item->name(), item); -} - -void _ScopeModelItem::removeClass(ClassModelItem item) -{ - QHash::Iterator it = _M_classes.find(item->name()); - - if (it != _M_classes.end() && it.value() == item) - _M_classes.erase(it); -} - -void _ScopeModelItem::removeFunction(FunctionModelItem item) -{ - QMultiHash::Iterator it = _M_functions.find(item->name()); - - while (it != _M_functions.end() && it.key() == item->name() - && it.value() != item) - { - ++it; - } - - if (it != _M_functions.end() && it.value() == item) - { - _M_functions.erase(it); - } -} - -void _ScopeModelItem::removeFunctionDefinition(FunctionDefinitionModelItem item) -{ - QMultiHash::Iterator it = _M_functionDefinitions.find(item->name()); - - while (it != _M_functionDefinitions.end() && it.key() == item->name() - && it.value() != item) - { - ++it; - } - - if (it != _M_functionDefinitions.end() && it.value() == item) - { - _M_functionDefinitions.erase(it); - } -} - -void _ScopeModelItem::removeVariable(VariableModelItem item) -{ - QHash::Iterator it = _M_variables.find(item->name()); - - if (it != _M_variables.end() && it.value() == item) - _M_variables.erase(it); -} - -void _ScopeModelItem::removeTypeAlias(TypeAliasModelItem item) -{ - QHash::Iterator it = _M_typeAliases.find(item->name()); - - if (it != _M_typeAliases.end() && it.value() == item) - _M_typeAliases.erase(it); -} - -void _ScopeModelItem::removeEnum(EnumModelItem item) -{ - QHash::Iterator it = _M_enums.find(item->name()); - - if (it != _M_enums.end() && it.value() == item) - _M_enums.erase(it); -} - -ClassModelItem _ScopeModelItem::findClass(const QString &name) const -{ - return _M_classes.value(name); -} - -VariableModelItem _ScopeModelItem::findVariable(const QString &name) const -{ - return _M_variables.value(name); -} - -TypeAliasModelItem _ScopeModelItem::findTypeAlias(const QString &name) const -{ - return _M_typeAliases.value(name); -} - -EnumModelItem _ScopeModelItem::findEnum(const QString &name) const -{ - return _M_enums.value(name); -} - -FunctionList _ScopeModelItem::findFunctions(const QString &name) const -{ - return _M_functions.values(name); -} - -FunctionDefinitionList _ScopeModelItem::findFunctionDefinitions(const QString &name) const -{ - return _M_functionDefinitions.values(name); -} - -// --------------------------------------------------------------------------- -NamespaceList _NamespaceModelItem::namespaces() const -{ - return _M_namespaces.values(); -} -void _NamespaceModelItem::addNamespace(NamespaceModelItem item) -{ - _M_namespaces.insert(item->name(), item); -} -void _NamespaceModelItem::removeNamespace(NamespaceModelItem item) -{ - QHash::Iterator it = _M_namespaces.find(item->name()); - - if (it != _M_namespaces.end() && it.value() == item) - _M_namespaces.erase(it); -} - -NamespaceModelItem _NamespaceModelItem::findNamespace(const QString &name) const -{ - return _M_namespaces.value(name); -} - -// --------------------------------------------------------------------------- -TypeInfo _ArgumentModelItem::type() const -{ - return _M_type; -} - -void _ArgumentModelItem::setType(const TypeInfo &type) -{ - _M_type = type; -} - -bool _ArgumentModelItem::defaultValue() const -{ - return _M_defaultValue; -} - -void _ArgumentModelItem::setDefaultValue(bool defaultValue) -{ - _M_defaultValue = defaultValue; -} - -// --------------------------------------------------------------------------- -bool _FunctionModelItem::isSimilar(FunctionModelItem other) const -{ - if (name() != other->name()) - return false; - - if (isConstant() != other->isConstant()) - return false; - - if (isVariadics() != other->isVariadics()) - return false; - - if (arguments().count() != other->arguments().count()) - return false; - - // ### check the template parameters - - for (int i=0; iarguments().at(i); - - if (arg1->type() != arg2->type()) - return false; - } - - return true; -} - -ArgumentList _FunctionModelItem::arguments() const -{ - return _M_arguments; -} - -void _FunctionModelItem::addArgument(ArgumentModelItem item) -{ - _M_arguments.append(item); -} - -void _FunctionModelItem::removeArgument(ArgumentModelItem item) -{ - _M_arguments.removeAt(_M_arguments.indexOf(item)); -} - -CodeModel::FunctionType _FunctionModelItem::functionType() const -{ - return _M_functionType; -} - -void _FunctionModelItem::setFunctionType(CodeModel::FunctionType functionType) -{ - _M_functionType = functionType; -} - -bool _FunctionModelItem::isVariadics() const -{ - return _M_isVariadics; -} - -void _FunctionModelItem::setVariadics(bool isVariadics) -{ - _M_isVariadics = isVariadics; -} - -bool _FunctionModelItem::isVirtual() const -{ - return _M_isVirtual; -} - -void _FunctionModelItem::setVirtual(bool isVirtual) -{ - _M_isVirtual = isVirtual; -} - -bool _FunctionModelItem::isInline() const -{ - return _M_isInline; -} - -void _FunctionModelItem::setInline(bool isInline) -{ - _M_isInline = isInline; -} - -bool _FunctionModelItem::isExplicit() const -{ - return _M_isExplicit; -} - -void _FunctionModelItem::setExplicit(bool isExplicit) -{ - _M_isExplicit = isExplicit; -} - -bool _FunctionModelItem::isAbstract() const -{ - return _M_isAbstract; -} - -void _FunctionModelItem::setAbstract(bool isAbstract) -{ - _M_isAbstract = isAbstract; -} - -// Qt -bool _FunctionModelItem::isInvokable() const -{ - return _M_isInvokable; -} - -void _FunctionModelItem::setInvokable(bool isInvokable) -{ - _M_isInvokable = isInvokable; -} - -// --------------------------------------------------------------------------- -TypeInfo _TypeAliasModelItem::type() const -{ - return _M_type; -} - -void _TypeAliasModelItem::setType(const TypeInfo &type) -{ - _M_type = type; -} - -// --------------------------------------------------------------------------- -CodeModel::AccessPolicy _EnumModelItem::accessPolicy() const -{ - return _M_accessPolicy; -} - -void _EnumModelItem::setAccessPolicy(CodeModel::AccessPolicy accessPolicy) -{ - _M_accessPolicy = accessPolicy; -} - -EnumeratorList _EnumModelItem::enumerators() const -{ - return _M_enumerators; -} - -void _EnumModelItem::addEnumerator(EnumeratorModelItem item) -{ - _M_enumerators.append(item); -} - -void _EnumModelItem::removeEnumerator(EnumeratorModelItem item) -{ - _M_enumerators.removeAt(_M_enumerators.indexOf(item)); -} - -// --------------------------------------------------------------------------- -QString _EnumeratorModelItem::value() const -{ - return _M_value; -} - -void _EnumeratorModelItem::setValue(const QString &value) -{ - _M_value = value; -} - -// --------------------------------------------------------------------------- -TypeInfo _TemplateParameterModelItem::type() const -{ - return _M_type; -} - -void _TemplateParameterModelItem::setType(const TypeInfo &type) -{ - _M_type = type; -} - -bool _TemplateParameterModelItem::defaultValue() const -{ - return _M_defaultValue; -} - -void _TemplateParameterModelItem::setDefaultValue(bool defaultValue) -{ - _M_defaultValue = defaultValue; -} - -// --------------------------------------------------------------------------- -ScopeModelItem _ScopeModelItem::create(CodeModel *model) -{ - ScopeModelItem item(new _ScopeModelItem(model)); - return item; -} - -ClassModelItem _ClassModelItem::create(CodeModel *model) -{ - ClassModelItem item(new _ClassModelItem(model)); - return item; -} - -NamespaceModelItem _NamespaceModelItem::create(CodeModel *model) -{ - NamespaceModelItem item(new _NamespaceModelItem(model)); - return item; -} - -FileModelItem _FileModelItem::create(CodeModel *model) -{ - FileModelItem item(new _FileModelItem(model)); - return item; -} - -ArgumentModelItem _ArgumentModelItem::create(CodeModel *model) -{ - ArgumentModelItem item(new _ArgumentModelItem(model)); - return item; -} - -FunctionModelItem _FunctionModelItem::create(CodeModel *model) -{ - FunctionModelItem item(new _FunctionModelItem(model)); - return item; -} - -FunctionDefinitionModelItem _FunctionDefinitionModelItem::create(CodeModel *model) -{ - FunctionDefinitionModelItem item(new _FunctionDefinitionModelItem(model)); - return item; -} - -VariableModelItem _VariableModelItem::create(CodeModel *model) -{ - VariableModelItem item(new _VariableModelItem(model)); - return item; -} - -TypeAliasModelItem _TypeAliasModelItem::create(CodeModel *model) -{ - TypeAliasModelItem item(new _TypeAliasModelItem(model)); - return item; -} - -EnumModelItem _EnumModelItem::create(CodeModel *model) -{ - EnumModelItem item(new _EnumModelItem(model)); - return item; -} - -EnumeratorModelItem _EnumeratorModelItem::create(CodeModel *model) -{ - EnumeratorModelItem item(new _EnumeratorModelItem(model)); - return item; -} - -TemplateParameterModelItem _TemplateParameterModelItem::create(CodeModel *model) -{ - TemplateParameterModelItem item(new _TemplateParameterModelItem(model)); - return item; -} - -// --------------------------------------------------------------------------- -TypeInfo _MemberModelItem::type() const -{ - return _M_type; -} - -void _MemberModelItem::setType(const TypeInfo &type) -{ - _M_type = type; -} - -CodeModel::AccessPolicy _MemberModelItem::accessPolicy() const -{ - return _M_accessPolicy; -} - -void _MemberModelItem::setAccessPolicy(CodeModel::AccessPolicy accessPolicy) -{ - _M_accessPolicy = accessPolicy; -} - -bool _MemberModelItem::isStatic() const -{ - return _M_isStatic; -} - -void _MemberModelItem::setStatic(bool isStatic) -{ - _M_isStatic = isStatic; -} - -bool _MemberModelItem::isConstant() const -{ - return _M_isConstant; -} - -void _MemberModelItem::setConstant(bool isConstant) -{ - _M_isConstant = isConstant; -} - -bool _MemberModelItem::isVolatile() const -{ - return _M_isVolatile; -} - -void _MemberModelItem::setVolatile(bool isVolatile) -{ - _M_isVolatile = isVolatile; -} - -bool _MemberModelItem::isAuto() const -{ - return _M_isAuto; -} - -void _MemberModelItem::setAuto(bool isAuto) -{ - _M_isAuto = isAuto; -} - -bool _MemberModelItem::isFriend() const -{ - return _M_isFriend; -} - -void _MemberModelItem::setFriend(bool isFriend) -{ - _M_isFriend = isFriend; -} - -bool _MemberModelItem::isRegister() const -{ - return _M_isRegister; -} - -void _MemberModelItem::setRegister(bool isRegister) -{ - _M_isRegister = isRegister; -} - -bool _MemberModelItem::isExtern() const -{ - return _M_isExtern; -} - -void _MemberModelItem::setExtern(bool isExtern) -{ - _M_isExtern = isExtern; -} - -bool _MemberModelItem::isMutable() const -{ - return _M_isMutable; -} - -void _MemberModelItem::setMutable(bool isMutable) -{ - _M_isMutable = isMutable; -} - -// kate: space-indent on; indent-width 2; replace-tabs on; - diff --git a/3rdparty/pythonqt/generator/parser/codemodel.h b/3rdparty/pythonqt/generator/parser/codemodel.h deleted file mode 100644 index 8878807d5..000000000 --- a/3rdparty/pythonqt/generator/parser/codemodel.h +++ /dev/null @@ -1,765 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef CODEMODEL_H -#define CODEMODEL_H - -#include "codemodel_fwd.h" -#include - -#include -#include -#include -#include -#include - -#define DECLARE_MODEL_NODE(k) \ - enum { __node_kind = Kind_##k }; \ - typedef CodeModelPointer Pointer; - -template -_Target model_static_cast(_Source item) -{ - typedef typename _Target::Type * _Target_pointer; - - _Target ptr (static_cast<_Target_pointer>(item.data())); - return ptr; -} - -class CodeModel -{ -public: - enum AccessPolicy - { - Public, - Protected, - Private - }; - - enum FunctionType - { - Normal, - Signal, - Slot - }; - - enum ClassType - { - Class, - Struct, - Union - }; - -public: - CodeModel(); - virtual ~CodeModel(); - - template _Target create() - { - typedef typename _Target::Type _Target_type; - - _Target result = _Target_type::create(this); - result->setCreationId(_M_creation_id++); - return result; - } - - FileList files() const; - NamespaceModelItem globalNamespace() const; - - void addFile(FileModelItem item); - void removeFile(FileModelItem item); - FileModelItem findFile(const QString &name) const; - QHash fileMap() const; - - CodeModelItem findItem(const QStringList &qualifiedName, CodeModelItem scope) const; - - void wipeout(); - -private: - QHash _M_files; - NamespaceModelItem _M_globalNamespace; - std::size_t _M_creation_id; - -private: - CodeModel(const CodeModel &other); - void operator = (const CodeModel &other); -}; - -class TypeInfo -{ -public: - TypeInfo(const TypeInfo &other) - : flags(other.flags), - m_qualifiedName(other.m_qualifiedName), - m_arrayElements(other.m_arrayElements), - m_arguments(other.m_arguments) - { - } - - TypeInfo(): - flags (0) {} - - QStringList qualifiedName() const { return m_qualifiedName; } - void setQualifiedName(const QStringList &qualified_name) { m_qualifiedName = qualified_name; } - - bool isConstant() const { return m_constant; } - void setConstant(bool is) { m_constant = is; } - - bool isVolatile() const { return m_volatile; } - void setVolatile(bool is) { m_volatile = is; } - - bool isReference() const { return m_reference; } - void setReference(bool is) { m_reference = is; } - - int indirections() const { return m_indirections; } - void setIndirections(int indirections) { m_indirections = indirections; } - - bool isFunctionPointer() const { return m_functionPointer; } - void setFunctionPointer(bool is) { m_functionPointer = is; } - - QStringList arrayElements() const { return m_arrayElements; } - void setArrayElements(const QStringList &arrayElements) { m_arrayElements = arrayElements; } - - QList arguments() const { return m_arguments; } - void setArguments(const QList &arguments); - void addArgument(const TypeInfo &arg) { m_arguments.append(arg); } - - bool operator==(const TypeInfo &other); - bool operator!=(const TypeInfo &other) { return !(*this==other); } - - // ### arrays and templates?? - - QString toString() const; - - static TypeInfo combine (const TypeInfo &__lhs, const TypeInfo &__rhs); - static TypeInfo resolveType (TypeInfo const &__type, CodeModelItem __scope); - -private: - union - { - uint flags; - - struct - { - uint m_constant: 1; - uint m_volatile: 1; - uint m_reference: 1; - uint m_functionPointer: 1; - uint m_indirections: 6; - uint m_padding: 22; - }; - }; - - QStringList m_qualifiedName; - QStringList m_arrayElements; - QList m_arguments; -}; - -class _CodeModelItem: public QSharedData -{ -public: - enum Kind - { - /* These are bit-flags resembling inheritance */ - Kind_Scope = 0x1, - Kind_Namespace = 0x2 | Kind_Scope, - Kind_Member = 0x4, - Kind_Function = 0x8 | Kind_Member, - KindMask = 0xf, - - /* These are for classes that are not inherited from */ - FirstKind = 0x8, - Kind_Argument = 1 << FirstKind, - Kind_Class = 2 << FirstKind | Kind_Scope, - Kind_Enum = 3 << FirstKind, - Kind_Enumerator = 4 << FirstKind, - Kind_File = 5 << FirstKind | Kind_Namespace, - Kind_FunctionDefinition = 6 << FirstKind | Kind_Function, - Kind_TemplateParameter = 7 << FirstKind, - Kind_TypeAlias = 8 << FirstKind, - Kind_Variable = 9 << FirstKind | Kind_Member - }; - -public: - virtual ~_CodeModelItem(); - - int kind() const; - - QStringList qualifiedName() const; - - QString name() const; - void setName(const QString &name); - - QStringList scope() const; - void setScope(const QStringList &scope); - - QString fileName() const; - void setFileName(const QString &fileName); - - FileModelItem file() const; - - void getStartPosition(int *line, int *column); - void setStartPosition(int line, int column); - - void getEndPosition(int *line, int *column); - void setEndPosition(int line, int column); - - inline std::size_t creationId() const { return _M_creation_id; } - inline void setCreationId(std::size_t creation_id) { _M_creation_id = creation_id; } - - inline CodeModel *model() const { return _M_model; } - - CodeModelItem toItem() const; - -protected: - _CodeModelItem(CodeModel *model, int kind); - void setKind(int kind); - -private: - CodeModel *_M_model; - int _M_kind; - int _M_startLine; - int _M_startColumn; - int _M_endLine; - int _M_endColumn; - std::size_t _M_creation_id; - QString _M_name; - QString _M_fileName; - QStringList _M_scope; - -private: - _CodeModelItem(const _CodeModelItem &other); - void operator = (const _CodeModelItem &other); -}; - -class _ScopeModelItem: public _CodeModelItem -{ -public: - DECLARE_MODEL_NODE(Scope) - - static ScopeModelItem create(CodeModel *model); - -public: - ClassList classes() const; - EnumList enums() const; - FunctionDefinitionList functionDefinitions() const; - FunctionList functions() const; - TypeAliasList typeAliases() const; - VariableList variables() const; - - void addClass(ClassModelItem item); - void addEnum(EnumModelItem item); - void addFunction(FunctionModelItem item); - void addFunctionDefinition(FunctionDefinitionModelItem item); - void addTypeAlias(TypeAliasModelItem item); - void addVariable(VariableModelItem item); - - void removeClass(ClassModelItem item); - void removeEnum(EnumModelItem item); - void removeFunction(FunctionModelItem item); - void removeFunctionDefinition(FunctionDefinitionModelItem item); - void removeTypeAlias(TypeAliasModelItem item); - void removeVariable(VariableModelItem item); - - ClassModelItem findClass(const QString &name) const; - EnumModelItem findEnum(const QString &name) const; - FunctionDefinitionList findFunctionDefinitions(const QString &name) const; - FunctionList findFunctions(const QString &name) const; - TypeAliasModelItem findTypeAlias(const QString &name) const; - VariableModelItem findVariable(const QString &name) const; - - void addEnumsDeclaration(const QString &enumsDeclaration); - QStringList enumsDeclarations() const { return _M_enumsDeclarations; } - - inline QHash classMap() const { return _M_classes; } - inline QHash enumMap() const { return _M_enums; } - inline QHash typeAliasMap() const { return _M_typeAliases; } - inline QHash variableMap() const { return _M_variables; } - inline QMultiHash functionDefinitionMap() const { return _M_functionDefinitions; } - inline QMultiHash functionMap() const { return _M_functions; } - - FunctionModelItem declaredFunction(FunctionModelItem item); - -protected: - _ScopeModelItem(CodeModel *model, int kind = __node_kind) - : _CodeModelItem(model, kind) {} - -private: - QHash _M_classes; - QHash _M_enums; - QHash _M_typeAliases; - QHash _M_variables; - QMultiHash _M_functionDefinitions; - QMultiHash _M_functions; - -private: - _ScopeModelItem(const _ScopeModelItem &other); - void operator = (const _ScopeModelItem &other); - - QStringList _M_enumsDeclarations; -}; - -class _ClassModelItem: public _ScopeModelItem -{ -public: - DECLARE_MODEL_NODE(Class) - - static ClassModelItem create(CodeModel *model); - -public: - QStringList baseClasses() const; - - void setBaseClasses(const QStringList &baseClasses); - void addBaseClass(const QString &baseClass); - void removeBaseClass(const QString &baseClass); - - TemplateParameterList templateParameters() const; - void setTemplateParameters(const TemplateParameterList &templateParameters); - - bool extendsClass(const QString &name) const; - - void setClassType(CodeModel::ClassType type); - CodeModel::ClassType classType() const; - - void addPropertyDeclaration(const QString &propertyDeclaration); - QStringList propertyDeclarations() const { return _M_propertyDeclarations; } - -protected: - _ClassModelItem(CodeModel *model, int kind = __node_kind) - : _ScopeModelItem(model, kind), _M_classType(CodeModel::Class) {} - -private: - QStringList _M_baseClasses; - TemplateParameterList _M_templateParameters; - CodeModel::ClassType _M_classType; - - QStringList _M_propertyDeclarations; - -private: - _ClassModelItem(const _ClassModelItem &other); - void operator = (const _ClassModelItem &other); -}; - -class _NamespaceModelItem: public _ScopeModelItem -{ -public: - DECLARE_MODEL_NODE(Namespace) - - static NamespaceModelItem create(CodeModel *model); - -public: - NamespaceList namespaces() const; - - void addNamespace(NamespaceModelItem item); - void removeNamespace(NamespaceModelItem item); - - NamespaceModelItem findNamespace(const QString &name) const; - - inline QHash namespaceMap() const { return _M_namespaces; }; - -protected: - _NamespaceModelItem(CodeModel *model, int kind = __node_kind) - : _ScopeModelItem(model, kind) {} - -private: - QHash _M_namespaces; - -private: - _NamespaceModelItem(const _NamespaceModelItem &other); - void operator = (const _NamespaceModelItem &other); -}; - -class _FileModelItem: public _NamespaceModelItem -{ -public: - DECLARE_MODEL_NODE(File) - - static FileModelItem create(CodeModel *model); - -protected: - _FileModelItem(CodeModel *model, int kind = __node_kind) - : _NamespaceModelItem(model, kind) {} - -private: - _FileModelItem(const _FileModelItem &other); - void operator = (const _FileModelItem &other); -}; - -class _ArgumentModelItem: public _CodeModelItem -{ -public: - DECLARE_MODEL_NODE(Argument) - - static ArgumentModelItem create(CodeModel *model); - -public: - TypeInfo type() const; - void setType(const TypeInfo &type); - - bool defaultValue() const; - void setDefaultValue(bool defaultValue); - - QString defaultValueExpression() const { return _M_defaultValueExpression; } - void setDefaultValueExpression(const QString &expr) { _M_defaultValueExpression = expr; } - -protected: - _ArgumentModelItem(CodeModel *model, int kind = __node_kind) - : _CodeModelItem(model, kind), _M_defaultValue(false) {} - -private: - TypeInfo _M_type; - QString _M_defaultValueExpression; - bool _M_defaultValue; - -private: - _ArgumentModelItem(const _ArgumentModelItem &other); - void operator = (const _ArgumentModelItem &other); -}; - -class _MemberModelItem: public _CodeModelItem -{ -public: - DECLARE_MODEL_NODE(Member) - - bool isConstant() const; - void setConstant(bool isConstant); - - bool isVolatile() const; - void setVolatile(bool isVolatile); - - bool isStatic() const; - void setStatic(bool isStatic); - - bool isAuto() const; - void setAuto(bool isAuto); - - bool isFriend() const; - void setFriend(bool isFriend); - - bool isRegister() const; - void setRegister(bool isRegister); - - bool isExtern() const; - void setExtern(bool isExtern); - - bool isMutable() const; - void setMutable(bool isMutable); - - CodeModel::AccessPolicy accessPolicy() const; - void setAccessPolicy(CodeModel::AccessPolicy accessPolicy); - - TemplateParameterList templateParameters() const - { return _M_templateParameters; } - - void setTemplateParameters(const TemplateParameterList &templateParameters) - { _M_templateParameters = templateParameters; } - - TypeInfo type() const; - void setType(const TypeInfo &type); - -protected: - _MemberModelItem(CodeModel *model, int kind) - : _CodeModelItem(model, kind), - _M_accessPolicy(CodeModel::Public), - _M_flags(0) - {} - -private: - TemplateParameterList _M_templateParameters; - TypeInfo _M_type; - CodeModel::AccessPolicy _M_accessPolicy; - union - { - struct - { - uint _M_isConstant: 1; - uint _M_isVolatile: 1; - uint _M_isStatic: 1; - uint _M_isAuto: 1; - uint _M_isFriend: 1; - uint _M_isRegister: 1; - uint _M_isExtern: 1; - uint _M_isMutable: 1; - }; - uint _M_flags; - }; - -}; - -class _FunctionModelItem: public _MemberModelItem -{ -public: - DECLARE_MODEL_NODE(Function) - - static FunctionModelItem create(CodeModel *model); - -public: - ArgumentList arguments() const; - - void addArgument(ArgumentModelItem item); - void removeArgument(ArgumentModelItem item); - - CodeModel::FunctionType functionType() const; - void setFunctionType(CodeModel::FunctionType functionType); - - bool isVirtual() const; - void setVirtual(bool isVirtual); - - bool isInline() const; - void setInline(bool isInline); - - bool isExplicit() const; - void setExplicit(bool isExplicit); - - bool isInvokable() const; // Qt - void setInvokable(bool isInvokable); // Qt - - bool isAbstract() const; - void setAbstract(bool isAbstract); - - bool isVariadics() const; - void setVariadics(bool isVariadics); - - bool isSimilar(FunctionModelItem other) const; - -protected: - _FunctionModelItem(CodeModel *model, int kind = __node_kind) - : _MemberModelItem(model, kind), - _M_functionType(CodeModel::Normal), - _M_flags(0) - {} - -private: - ArgumentList _M_arguments; - CodeModel::FunctionType _M_functionType; - union - { - struct - { - uint _M_isVirtual: 1; - uint _M_isInline: 1; - uint _M_isAbstract: 1; - uint _M_isExplicit: 1; - uint _M_isVariadics: 1; - uint _M_isInvokable : 1; // Qt - }; - uint _M_flags; - }; - -private: - _FunctionModelItem(const _FunctionModelItem &other); - void operator = (const _FunctionModelItem &other); -}; - -class _FunctionDefinitionModelItem: public _FunctionModelItem -{ -public: - DECLARE_MODEL_NODE(FunctionDefinition) - - static FunctionDefinitionModelItem create(CodeModel *model); - -protected: - _FunctionDefinitionModelItem(CodeModel *model, int kind = __node_kind) - : _FunctionModelItem(model, kind) {} - -private: - _FunctionDefinitionModelItem(const _FunctionDefinitionModelItem &other); - void operator = (const _FunctionDefinitionModelItem &other); -}; - -class _VariableModelItem: public _MemberModelItem -{ -public: - DECLARE_MODEL_NODE(Variable) - - static VariableModelItem create(CodeModel *model); - -protected: - _VariableModelItem(CodeModel *model, int kind = __node_kind) - : _MemberModelItem(model, kind) - {} - -private: - _VariableModelItem(const _VariableModelItem &other); - void operator = (const _VariableModelItem &other); -}; - -class _TypeAliasModelItem: public _CodeModelItem -{ -public: - DECLARE_MODEL_NODE(TypeAlias) - - static TypeAliasModelItem create(CodeModel *model); - -public: - TypeInfo type() const; - void setType(const TypeInfo &type); - -protected: - _TypeAliasModelItem(CodeModel *model, int kind = __node_kind) - : _CodeModelItem(model, kind) {} - -private: - TypeInfo _M_type; - -private: - _TypeAliasModelItem(const _TypeAliasModelItem &other); - void operator = (const _TypeAliasModelItem &other); -}; - -class _EnumModelItem: public _CodeModelItem -{ -public: - DECLARE_MODEL_NODE(Enum) - - static EnumModelItem create(CodeModel *model); - -public: - CodeModel::AccessPolicy accessPolicy() const; - void setAccessPolicy(CodeModel::AccessPolicy accessPolicy); - - EnumeratorList enumerators() const; - void addEnumerator(EnumeratorModelItem item); - void removeEnumerator(EnumeratorModelItem item); - -protected: - _EnumModelItem(CodeModel *model, int kind = __node_kind) - : _CodeModelItem(model, kind), - _M_accessPolicy(CodeModel::Public) - {} - -private: - CodeModel::AccessPolicy _M_accessPolicy; - EnumeratorList _M_enumerators; - -private: - _EnumModelItem(const _EnumModelItem &other); - void operator = (const _EnumModelItem &other); -}; - -class _EnumeratorModelItem: public _CodeModelItem -{ -public: - DECLARE_MODEL_NODE(Enumerator) - - static EnumeratorModelItem create(CodeModel *model); - -public: - QString value() const; - void setValue(const QString &value); - -protected: - _EnumeratorModelItem(CodeModel *model, int kind = __node_kind) - : _CodeModelItem(model, kind) {} - -private: - QString _M_value; - -private: - _EnumeratorModelItem(const _EnumeratorModelItem &other); - void operator = (const _EnumeratorModelItem &other); -}; - -class _TemplateParameterModelItem: public _CodeModelItem -{ -public: - DECLARE_MODEL_NODE(TemplateParameter) - - static TemplateParameterModelItem create(CodeModel *model); - -public: - TypeInfo type() const; - void setType(const TypeInfo &type); - - bool defaultValue() const; - void setDefaultValue(bool defaultValue); - -protected: - _TemplateParameterModelItem(CodeModel *model, int kind = __node_kind) - : _CodeModelItem(model, kind), _M_defaultValue(false) {} - -private: - TypeInfo _M_type; - bool _M_defaultValue; - -private: - _TemplateParameterModelItem(const _TemplateParameterModelItem &other); - void operator = (const _TemplateParameterModelItem &other); -}; - -template -_Target model_safe_cast(_Source item) -{ - typedef typename _Target::Type * _Target_pointer; - typedef typename _Source::Type * _Source_pointer; - - _Source_pointer source = item.data(); - if (source && source->kind() == _Target_pointer(0)->__node_kind) - { - _Target ptr(static_cast<_Target_pointer>(source)); - return ptr; - } - - return _Target(); -} - -template -_Target model_dynamic_cast(_Source item) -{ - typedef typename _Target::Type * _Target_pointer; - typedef typename _Source::Type * _Source_pointer; - - _Source_pointer source = item.data(); - if (source && (source->kind() == _Target_pointer(0)->__node_kind - || (int(_Target_pointer(0)->__node_kind) <= int(_CodeModelItem::KindMask) - && ((source->kind() & _Target_pointer(0)->__node_kind) - == _Target_pointer(0)->__node_kind)))) - { - _Target ptr(static_cast<_Target_pointer>(source)); - return ptr; - } - - return _Target(); -} -#endif // CODEMODEL_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/codemodel_finder.cpp b/3rdparty/pythonqt/generator/parser/codemodel_finder.cpp deleted file mode 100644 index 634b46b08..000000000 --- a/3rdparty/pythonqt/generator/parser/codemodel_finder.cpp +++ /dev/null @@ -1,122 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "codemodel_finder.h" -#include "codemodel.h" -#include "binder.h" - -CodeModelFinder::CodeModelFinder(CodeModel *model, Binder *binder) - : _M_model(model), - _M_binder (binder), - _M_token_stream(binder->tokenStream ()), - name_cc(_M_binder), - _M_resolve_policy(ResolveItem) -{ -} - -CodeModelFinder::~CodeModelFinder() -{ -} - -ScopeModelItem CodeModelFinder::resolveScope(NameAST *name, ScopeModelItem scope) -{ - Q_ASSERT(scope != 0); - - ResolvePolicy saved_resolve_policy = _M_resolve_policy; - _M_resolve_policy = ResolveScope; - - ScopeModelItem old = changeCurrentScope(scope); - - visit(name); - ScopeModelItem result = _M_current_scope; - - changeCurrentScope(old); // restore - - _M_resolve_policy = saved_resolve_policy; - - return result; -} - -ScopeModelItem CodeModelFinder::changeCurrentScope(ScopeModelItem scope) -{ - ScopeModelItem old = _M_current_scope; - _M_current_scope = scope; - return old; -} - -void CodeModelFinder::visitName(NameAST *node) -{ - visitNodes(this, node->qualified_names); - - if (_M_resolve_policy == ResolveItem) - visit(node->unqualified_name); -} - -void CodeModelFinder::visitUnqualifiedName(UnqualifiedNameAST *node) -{ - if (!_M_current_scope) - { - // nothing to do - return; - } - - name_cc.run(node); - QString id = name_cc.name(); - - if (ClassModelItem klass = _M_current_scope->findClass(id)) - { - _M_current_scope = klass; - } - else if (NamespaceModelItem parentNamespace = model_safe_cast(_M_current_scope)) - { - NamespaceModelItem ns = parentNamespace->findNamespace(id); - _M_current_scope = model_static_cast(ns); - } - else if (FileModelItem file = model_safe_cast(_M_current_scope)) - { - NamespaceModelItem ns = file->findNamespace(id); - _M_current_scope = model_static_cast(ns); - } - } - -// kate: space-indent on; indent-width 2; replace-tabs on; - diff --git a/3rdparty/pythonqt/generator/parser/codemodel_finder.h b/3rdparty/pythonqt/generator/parser/codemodel_finder.h deleted file mode 100644 index 79af1f9bf..000000000 --- a/3rdparty/pythonqt/generator/parser/codemodel_finder.h +++ /dev/null @@ -1,87 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef CODEMODEL_FINDER_H -#define CODEMODEL_FINDER_H - -#include "default_visitor.h" -#include "codemodel_fwd.h" -#include "name_compiler.h" - -class TokenStream; -class Binder; - -class CodeModelFinder: protected DefaultVisitor -{ - enum ResolvePolicy - { - ResolveScope, - ResolveItem - }; - -public: - CodeModelFinder(CodeModel *model, Binder *binder); - virtual ~CodeModelFinder(); - - ScopeModelItem resolveScope(NameAST *name, ScopeModelItem scope); - - inline CodeModel *model() const { return _M_model; } - -protected: - virtual void visitName(NameAST *node); - virtual void visitUnqualifiedName(UnqualifiedNameAST *node); - - ScopeModelItem changeCurrentScope(ScopeModelItem scope); - -private: - CodeModel *_M_model; - Binder *_M_binder; - TokenStream *_M_token_stream; - NameCompiler name_cc; - - ScopeModelItem _M_current_scope; - ResolvePolicy _M_resolve_policy; -}; - -#endif // CODEMODEL_FINDER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/codemodel_fwd.h b/3rdparty/pythonqt/generator/parser/codemodel_fwd.h deleted file mode 100644 index 35e73ed03..000000000 --- a/3rdparty/pythonqt/generator/parser/codemodel_fwd.h +++ /dev/null @@ -1,97 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef CODEMODEL_FWD_H -#define CODEMODEL_FWD_H - -#include -#include - -// forward declarations -class CodeModel; -class _ArgumentModelItem; -class _ClassModelItem; -class _CodeModelItem; -class _EnumModelItem; -class _EnumeratorModelItem; -class _FileModelItem; -class _FunctionDefinitionModelItem; -class _FunctionModelItem; -class _NamespaceModelItem; -class _ScopeModelItem; -class _TemplateParameterModelItem; -class _TypeAliasModelItem; -class _VariableModelItem; -class _MemberModelItem; -class TypeInfo; - -typedef CodeModelPointer<_ArgumentModelItem> ArgumentModelItem; -typedef CodeModelPointer<_ClassModelItem> ClassModelItem; -typedef CodeModelPointer<_CodeModelItem> CodeModelItem; -typedef CodeModelPointer<_EnumModelItem> EnumModelItem; -typedef CodeModelPointer<_EnumeratorModelItem> EnumeratorModelItem; -typedef CodeModelPointer<_FileModelItem> FileModelItem; -typedef CodeModelPointer<_FunctionDefinitionModelItem> FunctionDefinitionModelItem; -typedef CodeModelPointer<_FunctionModelItem> FunctionModelItem; -typedef CodeModelPointer<_NamespaceModelItem> NamespaceModelItem; -typedef CodeModelPointer<_ScopeModelItem> ScopeModelItem; -typedef CodeModelPointer<_TemplateParameterModelItem> TemplateParameterModelItem; -typedef CodeModelPointer<_TypeAliasModelItem> TypeAliasModelItem; -typedef CodeModelPointer<_VariableModelItem> VariableModelItem; -typedef CodeModelPointer<_MemberModelItem> MemberModelItem; - -typedef QList ArgumentList; -typedef QList ClassList; -typedef QList ItemList; -typedef QList EnumList; -typedef QList EnumeratorList; -typedef QList FileList; -typedef QList FunctionDefinitionList; -typedef QList FunctionList; -typedef QList NamespaceList; -typedef QList ScopeList; -typedef QList TemplateParameterList; -typedef QList TypeAliasList; -typedef QList VariableList; -typedef QList MemberList; - -#endif // CODEMODEL_FWD_H diff --git a/3rdparty/pythonqt/generator/parser/codemodel_pointer.h b/3rdparty/pythonqt/generator/parser/codemodel_pointer.h deleted file mode 100644 index ac575fe64..000000000 --- a/3rdparty/pythonqt/generator/parser/codemodel_pointer.h +++ /dev/null @@ -1,131 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef CODEMODEL_POINTER_H -#define CODEMODEL_POINTER_H - -#include - -// Since the atomic API changed in 4.4 we need to hack a little here -// to make it work with both 4.3 and 4.4 until that is not required - -#if QT_VERSION >= 0x040400 - -# include -template class CodeModelPointer: public QAtomicPointer - -#else - -template class CodeModelPointer - -#endif // QT_VERSION >= 0x040400 - -{ -public: - typedef T Type; - -#if QT_VERSION < 0x040400 - inline T &operator*() { return *d; } - inline const T &operator*() const { return *d; } - inline T *operator->() { return d; } - inline const T *operator->() const { return d; } - inline operator T *() { return d; } - inline operator const T *() const { return d; } - inline T *data() { return d; } - inline const T *data() const { return d; } - inline const T *constData() const { return d; } - - inline bool operator==(const CodeModelPointer &other) const { return d == other.d; } - inline bool operator!=(const CodeModelPointer &other) const { return d != other.d; } - inline bool operator==(const T *ptr) const { return d == ptr; } - inline bool operator!=(const T *ptr) const { return d != ptr; } - - inline CodeModelPointer() { d = 0; } - inline ~CodeModelPointer() { if (d && !d->ref.deref()) delete d; } - - explicit CodeModelPointer(T *data); - inline CodeModelPointer(const CodeModelPointer &o) : d(o.d) { if (d) d->ref.ref(); } - inline CodeModelPointer & operator=(const CodeModelPointer &o) { - if (o.d != d) { - T *x = o.d; - if (x) x->ref.ref(); - x = qAtomicSetPtr(&d, x); - if (x && !x->ref.deref()) - delete x; - } - return *this; - } - inline CodeModelPointer &operator=(T *o) { - if (o != d) { - T *x = o; - if (x) x->ref.ref(); - x = qAtomicSetPtr(&d, x); - if (x && !x->ref.deref()) - delete x; - } - return *this; - } - - inline bool operator!() const { return !d; } - -private: - T *d; -#else // QT_VERSION < 0x040400 - inline CodeModelPointer(T *value = 0) : QAtomicPointer(value) {} - - inline CodeModelPointer &operator=(T *o) { - QAtomicPointer::operator=(o); - return *this; - } - - inline T *data() { return (T *) *this; } - inline const T *data() const { return (const T *) *this; } - inline const T *constData() const { return (const T *) *this; } -#endif -}; - -#if QT_VERSION < 0x040400 -template -Q_INLINE_TEMPLATE CodeModelPointer::CodeModelPointer(T *adata) : d(adata) -{ if (d) d->ref.ref(); } -#endif - -#endif // CODEMODEL_POINTER_H diff --git a/3rdparty/pythonqt/generator/parser/compiler_utils.cpp b/3rdparty/pythonqt/generator/parser/compiler_utils.cpp deleted file mode 100644 index 536c50c2a..000000000 --- a/3rdparty/pythonqt/generator/parser/compiler_utils.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "compiler_utils.h" -#include "type_compiler.h" -#include "name_compiler.h" -#include "declarator_compiler.h" -#include "ast.h" -#include "binder.h" - -TypeInfo CompilerUtils::typeDescription(TypeSpecifierAST *type_specifier, DeclaratorAST *declarator, Binder *binder) -{ - TypeCompiler type_cc (binder); - DeclaratorCompiler decl_cc (binder); - - type_cc.run (type_specifier); - decl_cc.run (declarator); - - TypeInfo typeInfo; - typeInfo.setQualifiedName (type_cc.qualifiedName ()); - typeInfo.setConstant (type_cc.isConstant ()); - typeInfo.setVolatile (type_cc.isVolatile ()); - typeInfo.setReference (decl_cc.isReference ()); - typeInfo.setIndirections (decl_cc.indirection ()); - typeInfo.setArrayElements (decl_cc.arrayElements ()); - - return typeInfo; -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/compiler_utils.h b/3rdparty/pythonqt/generator/parser/compiler_utils.h deleted file mode 100644 index 183ba94d4..000000000 --- a/3rdparty/pythonqt/generator/parser/compiler_utils.h +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef COMPILER_UTILS_H -#define COMPILER_UTILS_H - -#include - -#include "codemodel.h" - -class QString; -class QStringList; -struct TypeSpecifierAST; -struct DeclaratorAST; -class TokenStream; -class Binder; - -namespace CompilerUtils -{ - -TypeInfo typeDescription(TypeSpecifierAST *type_specifier, DeclaratorAST *declarator, Binder *binder); - -} // namespace CompilerUtils - -#endif // COMPILER_UTILS_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/control.cpp b/3rdparty/pythonqt/generator/parser/control.cpp deleted file mode 100644 index a8e6a35e8..000000000 --- a/3rdparty/pythonqt/generator/parser/control.cpp +++ /dev/null @@ -1,147 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "control.h" -#include "lexer.h" - -Control::Control() - : current_context(0), - _M_skipFunctionBody(false), - _M_lexer(0), - _M_parser(0) -{ - pushContext(); - - declareTypedef(findOrInsertName("__builtin_va_list", - strlen("__builtin_va_list")), 0); -} - -Control::~Control() -{ - popContext(); - - Q_ASSERT(current_context == 0); -} - -Lexer *Control::changeLexer(Lexer *lexer) -{ - Lexer *old = _M_lexer; - _M_lexer = lexer; - return old; -} - -Parser *Control::changeParser(Parser *parser) -{ - Parser *old = _M_parser; - _M_parser = parser; - return old; -} - -Type *Control::lookupType(const NameSymbol *name) const -{ - Q_ASSERT(current_context != 0); - - return current_context->resolve(name); -} - -void Control::declare(const NameSymbol *name, Type *type) -{ - //printf("*** Declare:"); - //printSymbol(name); - //putchar('\n'); - Q_ASSERT(current_context != 0); - - current_context->bind(name, type); -} - -void Control::pushContext() -{ - // printf("+Context\n"); - Context *new_context = new Context; - new_context->parent = current_context; - current_context = new_context; -} - -void Control::popContext() -{ - // printf("-Context\n"); - Q_ASSERT(current_context != 0); - - Context *old_context = current_context; - current_context = current_context->parent; - - delete old_context; -} - -void Control::declareTypedef(const NameSymbol *name, Declarator *d) -{ - // printf("declared typedef:"); - // printSymbol(name); - // printf("\n"); - stl_typedef_table.insert(name, d); -} - -bool Control::isTypedef(const NameSymbol *name) const -{ - // printf("is typedef:"); - // printSymbol(name); - // printf("= %d\n", (stl_typedef_table.find(name) != stl_typedef_table.end())); - - return stl_typedef_table.contains(name); -} - -QList Control::errorMessages () const -{ - return _M_error_messages; -} - -void Control::clearErrorMessages () -{ - _M_error_messages.clear (); -} - -void Control::reportError (const ErrorMessage &errmsg) -{ - _M_error_messages.append(errmsg); -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/control.h b/3rdparty/pythonqt/generator/parser/control.h deleted file mode 100644 index c3951714e..000000000 --- a/3rdparty/pythonqt/generator/parser/control.h +++ /dev/null @@ -1,152 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef CONTROL_H -#define CONTROL_H - -#include "symbol.h" -#include "smallobject.h" - -#include - -struct Declarator; -struct Type; -class Lexer; -class Parser; - -struct Context -{ - Context *parent; - - inline void bind(const NameSymbol *name, Type *type) - { symbol_table.insert(name, type); } - - inline Type *resolve(const NameSymbol *name) const - { - if (Type *type = symbol_table.value(name)) - return type; - else if (parent) - return parent->resolve(name); - - return 0; - } - - typedef QHash symbol_table_t; - - symbol_table_t symbol_table; -}; - -class Control -{ -public: - class ErrorMessage - { - public: - ErrorMessage (): - _M_line (0), - _M_column (0) {} - - inline int line () const { return _M_line; } - inline void setLine (int line) { _M_line = line; } - - inline int column () const { return _M_column; } - inline void setColumn (int column) { _M_column = column; } - - inline QString fileName () const { return _M_fileName; } - inline void setFileName (const QString &fileName) { _M_fileName = fileName; } - - inline QString message () const { return _M_message; } - inline void setMessage (const QString &message) { _M_message = message; } - - private: - int _M_line; - int _M_column; - QString _M_fileName; - QString _M_message; - }; - - Control(); - ~Control(); - - inline bool skipFunctionBody() const { return _M_skipFunctionBody; } - inline void setSkipFunctionBody(bool skip) { _M_skipFunctionBody = skip; } - - Lexer *changeLexer(Lexer *lexer); - Parser *changeParser(Parser *parser); - - Lexer *currentLexer() const { return _M_lexer; } - Parser *currentParser() const { return _M_parser; } - - Context *current_context; - - inline Context *currentContext() const - { return current_context; } - - void pushContext(); - void popContext(); - - Type *lookupType(const NameSymbol *name) const; - void declare(const NameSymbol *name, Type *type); - - inline const NameSymbol *findOrInsertName(const char *data, size_t count) - { return name_table.findOrInsert(data, count); } - - void declareTypedef(const NameSymbol *name, Declarator *d); - bool isTypedef(const NameSymbol *name) const; - - void reportError (const ErrorMessage &errmsg); - QList errorMessages () const; - void clearErrorMessages (); - -private: - NameTable name_table; - QHash stl_typedef_table; - bool _M_skipFunctionBody; - Lexer *_M_lexer; - Parser *_M_parser; - - QList _M_error_messages; -}; - -#endif // CONTROL_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/declarator_compiler.cpp b/3rdparty/pythonqt/generator/parser/declarator_compiler.cpp deleted file mode 100644 index e4f17fca9..000000000 --- a/3rdparty/pythonqt/generator/parser/declarator_compiler.cpp +++ /dev/null @@ -1,179 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "declarator_compiler.h" -#include "name_compiler.h" -#include "type_compiler.h" -#include "compiler_utils.h" -#include "lexer.h" -#include "binder.h" -#include "tokens.h" - -#include - -DeclaratorCompiler::DeclaratorCompiler(Binder *binder) - : _M_binder (binder), _M_token_stream (binder->tokenStream ()) -{ -} - -void DeclaratorCompiler::run(DeclaratorAST *node) -{ - _M_id.clear(); - _M_parameters.clear(); - _M_array.clear(); - _M_function = false; - _M_reference = false; - _M_variadics = false; - _M_indirection = 0; - - if (node) - { - NameCompiler name_cc(_M_binder); - - DeclaratorAST *decl = node; - while (decl && decl->sub_declarator) - decl = decl->sub_declarator; - - Q_ASSERT (decl != 0); - - name_cc.run(decl->id); - _M_id = name_cc.name(); - _M_function = (node->parameter_declaration_clause != 0); - if (node->parameter_declaration_clause && node->parameter_declaration_clause->ellipsis) - _M_variadics = true; - - visitNodes(this, node->ptr_ops); - visit(node->parameter_declaration_clause); - - if (const ListNode *it = node->array_dimensions) - { - it->toFront(); - const ListNode *end = it; - - do - { - QString elt; - if (ExpressionAST *expr = it->element) - { - const Token &start_token = _M_token_stream->token((int) expr->start_token); - const Token &end_token = _M_token_stream->token((int) expr->end_token); - - elt += QString::fromUtf8(&start_token.text[start_token.position], - (int) (end_token.position - start_token.position)).trimmed(); - } - - _M_array.append (elt); - - it = it->next; - } - while (it != end); - } - } -} - -void DeclaratorCompiler::visitPtrOperator(PtrOperatorAST *node) -{ - std::size_t op = _M_token_stream->kind(node->op); - - switch (op) - { - case '&': - _M_reference = true; - break; - case '*': - ++_M_indirection; - break; - - default: - break; - } - - if (node->mem_ptr) - { -#if defined(__GNUC__) -#warning "ptr to mem -- not implemented" -#endif - } -} - -void DeclaratorCompiler::visitParameterDeclaration(ParameterDeclarationAST *node) -{ - Parameter p; - - TypeCompiler type_cc(_M_binder); - DeclaratorCompiler decl_cc(_M_binder); - - decl_cc.run(node->declarator); - - p.name = decl_cc.id(); - p.type = CompilerUtils::typeDescription(node->type_specifier, node->declarator, _M_binder); - - // ignore case a single void parameter - if (_M_parameters.isEmpty() && p.name.isEmpty() && p.type.toString() == "void") - { - return; - } - - if (node->expression != 0) - { - const Token &start = _M_token_stream->token((int) node->expression->start_token); - const Token &end = _M_token_stream->token((int) node->expression->end_token); - int length = (int) (end.position - start.position); - - p.defaultValueExpression = QString(); - QString source = QString::fromUtf8(&start.text[start.position], length).trimmed(); - QStringList list = source.split("\n"); - - - for (int i=0; i 0; - - } - - _M_parameters.append(p); -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/declarator_compiler.h b/3rdparty/pythonqt/generator/parser/declarator_compiler.h deleted file mode 100644 index 9ec879690..000000000 --- a/3rdparty/pythonqt/generator/parser/declarator_compiler.h +++ /dev/null @@ -1,100 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef DECLARATOR_COMPILER_H -#define DECLARATOR_COMPILER_H - -#include "default_visitor.h" -#include "codemodel.h" - -#include -#include - -class TokenStream; -class Binder; - -class DeclaratorCompiler: protected DefaultVisitor -{ -public: - struct Parameter - { - TypeInfo type; - QString name; - QString defaultValueExpression; - bool defaultValue; - - Parameter(): defaultValue(false) {} - }; - -public: - DeclaratorCompiler(Binder *binder); - - void run(DeclaratorAST *node); - - inline QString id() const { return _M_id; } - inline QStringList arrayElements() const { return _M_array; } - inline bool isFunction() const { return _M_function; } - inline bool isVariadics() const { return _M_variadics; } - inline bool isReference() const { return _M_reference; } - inline int indirection() const { return _M_indirection; } - inline QList parameters() const { return _M_parameters; } - -protected: - virtual void visitPtrOperator(PtrOperatorAST *node); - virtual void visitParameterDeclaration(ParameterDeclarationAST *node); - -private: - Binder *_M_binder; - TokenStream *_M_token_stream; - - bool _M_function; - bool _M_reference; - bool _M_variadics; - int _M_indirection; - QString _M_id; - QStringList _M_array; - QList _M_parameters; -}; - -#endif // DECLARATOR_COMPILER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/default_visitor.cpp b/3rdparty/pythonqt/generator/parser/default_visitor.cpp deleted file mode 100644 index 1932fdc71..000000000 --- a/3rdparty/pythonqt/generator/parser/default_visitor.cpp +++ /dev/null @@ -1,476 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "default_visitor.h" - -void DefaultVisitor::visitAccessSpecifier(AccessSpecifierAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitAsmDefinition(AsmDefinitionAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitBaseClause(BaseClauseAST *node) -{ - visitNodes(this, node->base_specifiers); -} - -void DefaultVisitor::visitBaseSpecifier(BaseSpecifierAST *node) -{ - visit(node->name); -} - -void DefaultVisitor::visitBinaryExpression(BinaryExpressionAST *node) -{ - visit(node->left_expression); - visit(node->right_expression); -} - -void DefaultVisitor::visitCastExpression(CastExpressionAST *node) -{ - visit(node->type_id); - visit(node->expression); -} - -void DefaultVisitor::visitClassMemberAccess(ClassMemberAccessAST *node) -{ - visit(node->name); -} - -void DefaultVisitor::visitClassSpecifier(ClassSpecifierAST *node) -{ - visit(node->win_decl_specifiers); - visit(node->name); - visit(node->base_clause); - visitNodes(this, node->member_specs); -} - -void DefaultVisitor::visitCompoundStatement(CompoundStatementAST *node) -{ - visitNodes(this, node->statements); -} - -void DefaultVisitor::visitCondition(ConditionAST *node) -{ - visit(node->type_specifier); - visit(node->declarator); - visit(node->expression); -} - -void DefaultVisitor::visitConditionalExpression(ConditionalExpressionAST *node) -{ - visit(node->condition); - visit(node->left_expression); - visit(node->right_expression); -} - -void DefaultVisitor::visitCppCastExpression(CppCastExpressionAST *node) -{ - visit(node->type_id); - visit(node->expression); - visitNodes(this, node->sub_expressions); -} - -void DefaultVisitor::visitCtorInitializer(CtorInitializerAST *node) -{ - visitNodes(this, node->member_initializers); -} - -void DefaultVisitor::visitDeclarationStatement(DeclarationStatementAST *node) -{ - visit(node->declaration); -} - -void DefaultVisitor::visitDeclarator(DeclaratorAST *node) -{ - visit(node->sub_declarator); - visitNodes(this, node->ptr_ops); - visit(node->id); - visit(node->bit_expression); - visitNodes(this, node->array_dimensions); - visit(node->parameter_declaration_clause); - visit(node->exception_spec); -} - -void DefaultVisitor::visitDeleteExpression(DeleteExpressionAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitDoStatement(DoStatementAST *node) -{ - visit(node->statement); - visit(node->expression); -} - -void DefaultVisitor::visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *node) -{ - visit(node->name); -} - -void DefaultVisitor::visitEnumSpecifier(EnumSpecifierAST *node) -{ - visit(node->name); - visitNodes(this, node->enumerators); -} - -void DefaultVisitor::visitEnumerator(EnumeratorAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitExceptionSpecification(ExceptionSpecificationAST *node) -{ - visitNodes(this, node->type_ids); -} - -void DefaultVisitor::visitExpressionOrDeclarationStatement(ExpressionOrDeclarationStatementAST *node) -{ - visit(node->expression); - visit(node->declaration); -} - -void DefaultVisitor::visitExpressionStatement(ExpressionStatementAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitForStatement(ForStatementAST *node) -{ - visit(node->init_statement); - visit(node->condition); - visit(node->expression); - visit(node->statement); -} - -void DefaultVisitor::visitFunctionCall(FunctionCallAST *node) -{ - visit(node->arguments); -} - -void DefaultVisitor::visitFunctionDefinition(FunctionDefinitionAST *node) -{ - visit(node->type_specifier); - visit(node->init_declarator); - visit(node->function_body); - visit(node->win_decl_specifiers); -} - -void DefaultVisitor::visitIfStatement(IfStatementAST *node) -{ - visit(node->condition); - visit(node->statement); - visit(node->else_statement); -} - -void DefaultVisitor::visitIncrDecrExpression(IncrDecrExpressionAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitInitDeclarator(InitDeclaratorAST *node) -{ - visit(node->declarator); - visit(node->initializer); -} - -void DefaultVisitor::visitInitializer(InitializerAST *node) -{ - visit(node->initializer_clause); - visit(node->expression); -} - -void DefaultVisitor::visitInitializerClause(InitializerClauseAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitLabeledStatement(LabeledStatementAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitLinkageBody(LinkageBodyAST *node) -{ - visitNodes(this, node->declarations); -} - -void DefaultVisitor::visitLinkageSpecification(LinkageSpecificationAST *node) -{ - visit(node->linkage_body); - visit(node->declaration); -} - -void DefaultVisitor::visitMemInitializer(MemInitializerAST *node) -{ - visit(node->initializer_id); - visit(node->expression); -} - -void DefaultVisitor::visitName(NameAST *node) -{ - visitNodes(this, node->qualified_names); - visit(node->unqualified_name); -} - -void DefaultVisitor::visitNamespace(NamespaceAST *node) -{ - visit(node->linkage_body); -} - -void DefaultVisitor::visitNamespaceAliasDefinition(NamespaceAliasDefinitionAST *node) -{ - visit(node->alias_name); -} - -void DefaultVisitor::visitNewDeclarator(NewDeclaratorAST *node) -{ - visit(node->ptr_op); - visit(node->sub_declarator); - visitNodes(this, node->expressions); -} - -void DefaultVisitor::visitNewExpression(NewExpressionAST *node) -{ - visit(node->expression); - visit(node->type_id); - visit(node->new_type_id); - visit(node->new_initializer); -} - -void DefaultVisitor::visitNewInitializer(NewInitializerAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitNewTypeId(NewTypeIdAST *node) -{ - visit(node->type_specifier); - visit(node->new_initializer); - visit(node->new_declarator); -} - -void DefaultVisitor::visitOperator(OperatorAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitOperatorFunctionId(OperatorFunctionIdAST *node) -{ - visit(node->op); - visit(node->type_specifier); - visitNodes(this, node->ptr_ops); -} - -void DefaultVisitor::visitParameterDeclaration(ParameterDeclarationAST *node) -{ - visit(node->type_specifier); - visit(node->declarator); - visit(node->expression); -} - -void DefaultVisitor::visitParameterDeclarationClause(ParameterDeclarationClauseAST *node) -{ - visitNodes(this, node->parameter_declarations); -} - -void DefaultVisitor::visitPostfixExpression(PostfixExpressionAST *node) -{ - visit(node->type_specifier); - visit(node->expression); - visitNodes(this, node->sub_expressions); -} - -void DefaultVisitor::visitPrimaryExpression(PrimaryExpressionAST *node) -{ - visit(node->literal); - visit(node->expression_statement); - visit(node->sub_expression); - visit(node->name); -} - -void DefaultVisitor::visitPtrOperator(PtrOperatorAST *node) -{ - visit(node->mem_ptr); -} - -void DefaultVisitor::visitPtrToMember(PtrToMemberAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitReturnStatement(ReturnStatementAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitSimpleDeclaration(SimpleDeclarationAST *node) -{ - visit(node->type_specifier); - visitNodes(this, node->init_declarators); - visit(node->win_decl_specifiers); -} - -void DefaultVisitor::visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *node) -{ - visit(node->name); - visit(node->type_id); - visit(node->expression); -} - -void DefaultVisitor::visitSizeofExpression(SizeofExpressionAST *node) -{ - visit(node->type_id); - visit(node->expression); -} - -void DefaultVisitor::visitStringLiteral(StringLiteralAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitSubscriptExpression(SubscriptExpressionAST *node) -{ - visit(node->subscript); -} - -void DefaultVisitor::visitSwitchStatement(SwitchStatementAST *node) -{ - visit(node->condition); - visit(node->statement); -} - -void DefaultVisitor::visitTemplateArgument(TemplateArgumentAST *node) -{ - visit(node->type_id); - visit(node->expression); -} - -void DefaultVisitor::visitTemplateDeclaration(TemplateDeclarationAST *node) -{ - visitNodes(this, node->template_parameters); - visit(node->declaration); -} - -void DefaultVisitor::visitTemplateParameter(TemplateParameterAST *node) -{ - visit(node->type_parameter); - visit(node->parameter_declaration); -} - -void DefaultVisitor::visitThrowExpression(ThrowExpressionAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitTranslationUnit(TranslationUnitAST *node) -{ - visitNodes(this, node->declarations); -} - -void DefaultVisitor::visitTryBlockStatement(TryBlockStatementAST *) -{ - // nothing to do -} - -void DefaultVisitor::visitTypeId(TypeIdAST *node) -{ - visit(node->type_specifier); - visit(node->declarator); -} - -void DefaultVisitor::visitTypeIdentification(TypeIdentificationAST *node) -{ - visit(node->name); - visit(node->expression); -} - -void DefaultVisitor::visitTypeParameter(TypeParameterAST *node) -{ - visit(node->name); - visit(node->type_id); - visitNodes(this, node->template_parameters); - visit(node->template_name); -} - -void DefaultVisitor::visitTypedef(TypedefAST *node) -{ - visit(node->type_specifier); - visitNodes(this, node->init_declarators); -} - -void DefaultVisitor::visitUnaryExpression(UnaryExpressionAST *node) -{ - visit(node->expression); -} - -void DefaultVisitor::visitUnqualifiedName(UnqualifiedNameAST *node) -{ - visit(node->operator_id); - visitNodes(this, node->template_arguments); -} - -void DefaultVisitor::visitUsing(UsingAST *node) -{ - visit(node->name); -} - -void DefaultVisitor::visitUsingDirective(UsingDirectiveAST *node) -{ - visit(node->name); -} - -void DefaultVisitor::visitWhileStatement(WhileStatementAST *node) -{ - visit(node->condition); - visit(node->statement); -} - -void DefaultVisitor::visitWinDeclSpec(WinDeclSpecAST *) -{ - // nothing to do -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/default_visitor.h b/3rdparty/pythonqt/generator/parser/default_visitor.h deleted file mode 100644 index 1c6388aa2..000000000 --- a/3rdparty/pythonqt/generator/parser/default_visitor.h +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef DEFAULT_VISITOR_H -#define DEFAULT_VISITOR_H - -#include "visitor.h" - -class DefaultVisitor: public Visitor -{ -public: - DefaultVisitor() {} - -protected: - virtual void visitAccessSpecifier(AccessSpecifierAST *); - virtual void visitAsmDefinition(AsmDefinitionAST *); - virtual void visitBaseClause(BaseClauseAST *); - virtual void visitBaseSpecifier(BaseSpecifierAST *); - virtual void visitBinaryExpression(BinaryExpressionAST *); - virtual void visitCastExpression(CastExpressionAST *); - virtual void visitClassMemberAccess(ClassMemberAccessAST *); - virtual void visitClassSpecifier(ClassSpecifierAST *); - virtual void visitCompoundStatement(CompoundStatementAST *); - virtual void visitCondition(ConditionAST *); - virtual void visitConditionalExpression(ConditionalExpressionAST *); - virtual void visitCppCastExpression(CppCastExpressionAST *); - virtual void visitCtorInitializer(CtorInitializerAST *); - virtual void visitDeclarationStatement(DeclarationStatementAST *); - virtual void visitDeclarator(DeclaratorAST *); - virtual void visitDeleteExpression(DeleteExpressionAST *); - virtual void visitDoStatement(DoStatementAST *); - virtual void visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *); - virtual void visitEnumSpecifier(EnumSpecifierAST *); - virtual void visitEnumerator(EnumeratorAST *); - virtual void visitExceptionSpecification(ExceptionSpecificationAST *); - virtual void visitExpressionOrDeclarationStatement(ExpressionOrDeclarationStatementAST *); - virtual void visitExpressionStatement(ExpressionStatementAST *); - virtual void visitForStatement(ForStatementAST *); - virtual void visitFunctionCall(FunctionCallAST *); - virtual void visitFunctionDefinition(FunctionDefinitionAST *); - virtual void visitIfStatement(IfStatementAST *); - virtual void visitIncrDecrExpression(IncrDecrExpressionAST *); - virtual void visitInitDeclarator(InitDeclaratorAST *); - virtual void visitInitializer(InitializerAST *); - virtual void visitInitializerClause(InitializerClauseAST *); - virtual void visitLabeledStatement(LabeledStatementAST *); - virtual void visitLinkageBody(LinkageBodyAST *); - virtual void visitLinkageSpecification(LinkageSpecificationAST *); - virtual void visitMemInitializer(MemInitializerAST *); - virtual void visitName(NameAST *); - virtual void visitNamespace(NamespaceAST *); - virtual void visitNamespaceAliasDefinition(NamespaceAliasDefinitionAST *); - virtual void visitNewDeclarator(NewDeclaratorAST *); - virtual void visitNewExpression(NewExpressionAST *); - virtual void visitNewInitializer(NewInitializerAST *); - virtual void visitNewTypeId(NewTypeIdAST *); - virtual void visitOperator(OperatorAST *); - virtual void visitOperatorFunctionId(OperatorFunctionIdAST *); - virtual void visitParameterDeclaration(ParameterDeclarationAST *); - virtual void visitParameterDeclarationClause(ParameterDeclarationClauseAST *); - virtual void visitPostfixExpression(PostfixExpressionAST *); - virtual void visitPrimaryExpression(PrimaryExpressionAST *); - virtual void visitPtrOperator(PtrOperatorAST *); - virtual void visitPtrToMember(PtrToMemberAST *); - virtual void visitReturnStatement(ReturnStatementAST *); - virtual void visitSimpleDeclaration(SimpleDeclarationAST *); - virtual void visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *); - virtual void visitSizeofExpression(SizeofExpressionAST *); - virtual void visitStringLiteral(StringLiteralAST *); - virtual void visitSubscriptExpression(SubscriptExpressionAST *); - virtual void visitSwitchStatement(SwitchStatementAST *); - virtual void visitTemplateArgument(TemplateArgumentAST *); - virtual void visitTemplateDeclaration(TemplateDeclarationAST *); - virtual void visitTemplateParameter(TemplateParameterAST *); - virtual void visitThrowExpression(ThrowExpressionAST *); - virtual void visitTranslationUnit(TranslationUnitAST *); - virtual void visitTryBlockStatement(TryBlockStatementAST *); - virtual void visitTypeId(TypeIdAST *); - virtual void visitTypeIdentification(TypeIdentificationAST *); - virtual void visitTypeParameter(TypeParameterAST *); - virtual void visitTypedef(TypedefAST *); - virtual void visitUnaryExpression(UnaryExpressionAST *); - virtual void visitUnqualifiedName(UnqualifiedNameAST *); - virtual void visitUsing(UsingAST *); - virtual void visitUsingDirective(UsingDirectiveAST *); - virtual void visitWhileStatement(WhileStatementAST *); - virtual void visitWinDeclSpec(WinDeclSpecAST *); - -private: - typedef void (Visitor::*visitor_fun_ptr)(AST *); - static visitor_fun_ptr _S_table[]; -}; - -#endif // VISITOR_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/dumptree.cpp b/3rdparty/pythonqt/generator/parser/dumptree.cpp deleted file mode 100644 index 21d11f979..000000000 --- a/3rdparty/pythonqt/generator/parser/dumptree.cpp +++ /dev/null @@ -1,142 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "dumptree.h" - -#include -#include - -static char const * const names[] = { - 0, - "AccessSpecifier", - "AsmDefinition", - "BaseClause", - "BaseSpecifier", - "BinaryExpression", - "CastExpression", - "ClassMemberAccess", - "ClassSpecifier", - "CompoundStatement", - "Condition", - "ConditionalExpression", - "CppCastExpression", - "CtorInitializer", - "DeclarationStatement", - "Declarator", - "DeleteExpression", - "DoStatement", - "ElaboratedTypeSpecifier", - "EnumSpecifier", - "Enumerator", - "ExceptionSpecification", - "ExpressionOrDeclarationStatement", - "ExpressionStatement", - "ForStatement", - "FunctionCall", - "FunctionDefinition", - "IfStatement", - "IncrDecrExpression", - "InitDeclarator", - "Initializer", - "InitializerClause", - "LabeledStatement", - "LinkageBody", - "LinkageSpecification", - "MemInitializer", - "Name", - "Namespace", - "NamespaceAliasDefinition", - "NewDeclarator", - "NewExpression", - "NewInitializer", - "NewTypeId", - "Operator", - "OperatorFunctionId", - "ParameterDeclaration", - "ParameterDeclarationClause", - "PostfixExpression", - "PrimaryExpression", - "PtrOperator", - "PtrToMember", - "ReturnStatement", - "SimpleDeclaration", - "SimpleTypeSpecifier", - "SizeofExpression", - "StringLiteral", - "SubscriptExpression", - "SwitchStatement", - "TemplateArgument", - "TemplateDeclaration", - "TemplateParameter", - "ThrowExpression", - "TranslationUnit", - "TryBlockStatement", - "TypeId", - "TypeIdentification", - "TypeParameter", - "Typedef", - "UnaryExpression", - "UnqualifiedName", - "Using", - "UsingDirective", - "WhileStatement", - "WinDeclSpec" -}; - -DumpTree::DumpTree() -{ -} - -void DumpTree::visit(AST *node) -{ - static int indent = 0; - - if (node) - qDebug() << QString(indent * 2, ' ').toLatin1().constData() << names[node->kind] - << '[' << node->start_token << ", " << node->end_token << ']'; - - ++indent; - DefaultVisitor::visit(node); - --indent; -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/dumptree.h b/3rdparty/pythonqt/generator/parser/dumptree.h deleted file mode 100644 index 2778c93a0..000000000 --- a/3rdparty/pythonqt/generator/parser/dumptree.h +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef DUMPTREE_H -#define DUMPTREE_H - -#include "default_visitor.h" - -class DumpTree: protected DefaultVisitor -{ -public: - DumpTree(); - - void dump(AST *node) { visit(node); } - -protected: - virtual void visit(AST *node); -}; - -#endif // DUMPTREE_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/include/stdarg.h b/3rdparty/pythonqt/generator/parser/include/stdarg.h deleted file mode 100644 index 677c27a2a..000000000 --- a/3rdparty/pythonqt/generator/parser/include/stdarg.h +++ /dev/null @@ -1,64 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef __STDARG -#define __STDARG - -#if !defined(_VA_LIST) && !defined(__VA_LIST_DEFINED) -#define _VA_LIST -#define _VA_LIST_DEFINED - -typedef char *__va_list; -#endif -static float __va_arg_tmp; -typedef __va_list va_list; - -#define va_start(list, start) ((void)0) -#define __va_arg(list, mode, n) ((void)0) -#define _bigendian_va_arg(list, mode, n) ((void)0) -#define _littleendian_va_arg(list, mode, n) ((void)0) -#define va_end(list) ((void)0) -#define va_arg(list, mode) ((void)0) - -typedef void *__gnuc_va_list; - -#endif diff --git a/3rdparty/pythonqt/generator/parser/lexer.cpp b/3rdparty/pythonqt/generator/parser/lexer.cpp deleted file mode 100644 index 575c55d5d..000000000 --- a/3rdparty/pythonqt/generator/parser/lexer.cpp +++ /dev/null @@ -1,1885 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "lexer.h" -#include "tokens.h" -#include "control.h" - -#include -#include - -scan_fun_ptr Lexer::s_scan_keyword_table[] = { - &Lexer::scanKeyword0, &Lexer::scanKeyword0, - &Lexer::scanKeyword2, &Lexer::scanKeyword3, - &Lexer::scanKeyword4, &Lexer::scanKeyword5, - &Lexer::scanKeyword6, &Lexer::scanKeyword7, - &Lexer::scanKeyword8, &Lexer::scanKeyword9, - &Lexer::scanKeyword10, &Lexer::scanKeyword11, - &Lexer::scanKeyword12, &Lexer::scanKeyword13, - &Lexer::scanKeyword14, &Lexer::scanKeyword0, - &Lexer::scanKeyword16 -}; - -void LocationManager::extract_line(int offset, int *line, QString *filename) const -{ - *line = 0; - if (token_stream.size () < 1) - return; - - const unsigned char *begin_buffer = reinterpret_cast(token_stream[0].text); - const unsigned char *cursor = begin_buffer + offset; - - ++cursor; // skip '#' - if (std::isspace(*cursor) && std::isdigit(*(cursor + 1))) - { - ++cursor; - char buffer[1024], *cp = buffer; - do { - *cp++ = *cursor++; - } while (std::isdigit(*cursor)); - *cp = '\0'; - int l = strtol(buffer, 0, 0); - - Q_ASSERT(std::isspace(*cursor)); - ++cursor; - - Q_ASSERT(*cursor == '"'); - ++cursor; - - cp = buffer; - while (*cursor && *cursor != '"') { - *cp++ = *cursor++; - } - *cp = '\0'; - Q_ASSERT(*cursor == '"'); - ++cursor; - - *filename = buffer; - *line = l; - // printf("filename: %s line: %d\n", buffer, line); - } -} - -void LocationManager::positionAt(std::size_t offset, int *line, int *column, - QString *filename) const -{ - int ppline, ppcolumn; - line_table.positionAt(offset, &ppline, &ppcolumn); - - int base_line; - extract_line((int) line_table[ppline-1], &base_line, filename); - - int line2, column2; - location_table.positionAt((int) line_table[ppline-1], &line2, &column2); - - location_table.positionAt(offset, line, column); - *line = base_line + *line - line2 - 1; -} - -scan_fun_ptr Lexer::s_scan_table[256]; -bool Lexer::s_initialized = false; - -void Lexer::tokenize(const char *contents, std::size_t size) -{ - if (!s_initialized) - initialize_scan_table(); - - token_stream.resize(1024); - token_stream[0].kind = Token_EOF; - token_stream[0].text = contents; - - index = 1; - - cursor = (const unsigned char *) contents; - begin_buffer = (const unsigned char *) contents; - end_buffer = cursor + size; - - location_table.resize(1024); - location_table[0] = 0; - location_table.current_line = 1; - - line_table.resize(1024); - line_table[0] = 0; - line_table.current_line = 1; - - do { - if (index == token_stream.size()) - token_stream.resize(token_stream.size() * 2); - - Token *current_token = &token_stream[(int) index]; - current_token->text = reinterpret_cast(begin_buffer); - current_token->position = cursor - begin_buffer; - (this->*s_scan_table[*cursor])(); - current_token->size = cursor - begin_buffer - current_token->position; - } while (cursor < end_buffer); - - if (index == token_stream.size()) - token_stream.resize(token_stream.size() * 2); - - Q_ASSERT(index < token_stream.size()); - token_stream[(int) index].position = cursor - begin_buffer; - token_stream[(int) index].kind = Token_EOF; -} - -void Lexer::reportError(const QString& msg) -{ - int line, column; - QString fileName; - - std::size_t tok = token_stream.cursor(); - _M_location.positionAt(token_stream.position(tok), - &line, &column, &fileName); - - Control::ErrorMessage errmsg; - errmsg.setLine(line + 1); - errmsg.setColumn(column); - errmsg.setFileName(fileName); - errmsg.setMessage(QLatin1String("** LEXER ERROR ") + msg); - control->reportError(errmsg); -} - -void Lexer::initialize_scan_table() -{ - s_initialized = true; - - for (int i=0; i<256; ++i) - { - if (isspace(i)) - s_scan_table[i] = &Lexer::scan_white_spaces; - else if (isalpha(i) || i == '_') - s_scan_table[i] = &Lexer::scan_identifier_or_keyword; - else if (isdigit(i)) - s_scan_table[i] = &Lexer::scan_int_constant; - else - s_scan_table[i] = &Lexer::scan_invalid_input; - } - - s_scan_table[int('L')] = &Lexer::scan_identifier_or_literal; - s_scan_table[int('\n')] = &Lexer::scan_newline; - s_scan_table[int('#')] = &Lexer::scan_preprocessor; - - s_scan_table[int('\'')] = &Lexer::scan_char_constant; - s_scan_table[int('"')] = &Lexer::scan_string_constant; - - s_scan_table[int('.')] = &Lexer::scan_int_constant; - - s_scan_table[int('!')] = &Lexer::scan_not; - s_scan_table[int('%')] = &Lexer::scan_remainder; - s_scan_table[int('&')] = &Lexer::scan_and; - s_scan_table[int('(')] = &Lexer::scan_left_paren; - s_scan_table[int(')')] = &Lexer::scan_right_paren; - s_scan_table[int('*')] = &Lexer::scan_star; - s_scan_table[int('+')] = &Lexer::scan_plus; - s_scan_table[int(',')] = &Lexer::scan_comma; - s_scan_table[int('-')] = &Lexer::scan_minus; - s_scan_table[int('/')] = &Lexer::scan_divide; - s_scan_table[int(':')] = &Lexer::scan_colon; - s_scan_table[int(';')] = &Lexer::scan_semicolon; - s_scan_table[int('<')] = &Lexer::scan_less; - s_scan_table[int('=')] = &Lexer::scan_equal; - s_scan_table[int('>')] = &Lexer::scan_greater; - s_scan_table[int('?')] = &Lexer::scan_question; - s_scan_table[int('[')] = &Lexer::scan_left_bracket; - s_scan_table[int(']')] = &Lexer::scan_right_bracket; - s_scan_table[int('^')] = &Lexer::scan_xor; - s_scan_table[int('{')] = &Lexer::scan_left_brace; - s_scan_table[int('|')] = &Lexer::scan_or; - s_scan_table[int('}')] = &Lexer::scan_right_brace; - s_scan_table[int('~')] = &Lexer::scan_tilde; - - s_scan_table[0] = &Lexer::scan_EOF; -} - -void Lexer::scan_preprocessor() -{ - if (line_table.current_line == line_table.size()) - line_table.resize(line_table.current_line * 2); - - line_table[(int) line_table.current_line++] = (cursor - begin_buffer); - - while (*cursor && *cursor != '\n') - ++cursor; - - if (*cursor != '\n') - reportError("expected newline"); -} - -void Lexer::scan_char_constant() -{ - const unsigned char *begin = cursor; - - ++cursor; - while (*cursor && *cursor != '\'') - { - if (*cursor == '\n') - reportError("did not expect newline"); - - if (*cursor == '\\') - ++cursor; - ++cursor; - } - - if (*cursor != '\'') - reportError("expected \'"); - - ++cursor; - - token_stream[(int) index].extra.symbol = - control->findOrInsertName((const char*) begin, cursor - begin); - - token_stream[(int) index++].kind = Token_char_literal; -} - -void Lexer::scan_string_constant() -{ - const unsigned char *begin = cursor; - - ++cursor; - while (*cursor && *cursor != '"') - { - if (*cursor == '\n') - reportError("did not expect newline"); - - if (*cursor == '\\') - ++cursor; - ++cursor; - } - - if (*cursor != '"') - reportError("expected \""); - - ++cursor; - - token_stream[(int) index].extra.symbol = - control->findOrInsertName((const char*) begin, cursor - begin); - - token_stream[(int) index++].kind = Token_string_literal; -} - -void Lexer::scan_newline() -{ - if (location_table.current_line == location_table.size()) - location_table.resize(location_table.current_line * 2); - - location_table[(int) location_table.current_line++] = (cursor - begin_buffer); - ++cursor; -} - -void Lexer::scan_white_spaces() -{ - while (isspace(*cursor)) - { - if (*cursor == '\n') - scan_newline(); - else - ++cursor; - } -} - -void Lexer::scan_identifier_or_literal() -{ - switch (*(cursor + 1)) - { - case '\'': - ++cursor; - scan_char_constant(); - break; - - case '\"': - ++cursor; - scan_string_constant(); - break; - - default: - scan_identifier_or_keyword(); - break; - } -} - -void Lexer::scan_identifier_or_keyword() -{ - const unsigned char *skip = cursor; - while (isalnum(*skip) || *skip== '_') - ++skip; - - int n = skip - cursor; - Token *current_token = &token_stream[(int) index]; - (this->*s_scan_keyword_table[n < 17 ? n : 0])(); - - if (current_token->kind == Token_identifier) - { - current_token->extra.symbol = - control->findOrInsertName((const char*) cursor, n); - } - - cursor = skip; -} - -void Lexer::scan_int_constant() -{ - if (*cursor == '.' && !std::isdigit(*(cursor + 1))) - { - scan_dot(); - return; - } - - const unsigned char *begin = cursor; - - while (isalnum(*cursor) || *cursor == '.') - ++cursor; - - token_stream[(int) index].extra.symbol = - control->findOrInsertName((const char*) begin, cursor - begin); - - token_stream[(int) index++].kind = Token_number_literal; -} - -void Lexer::scan_not() -{ - /* - '!' ::= not - '!=' ::= not_equal - */ - - ++cursor; - - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_not_eq; - } - else - { - token_stream[(int) index++].kind = '!'; - } -} - -void Lexer::scan_remainder() -{ - /* - '%' ::= remainder - '%=' ::= remainder_equal - */ - - ++cursor; - - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else - { - token_stream[(int) index++].kind = '%'; - } -} - -void Lexer::scan_and() -{ - /* - '&&' ::= and_and - '&' ::= and - '&=' ::= and_equal - */ - - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else if (*cursor == '&') - { - ++cursor; - token_stream[(int) index++].kind = Token_and; - } - else - { - token_stream[(int) index++].kind = '&'; - } -} - -void Lexer::scan_left_paren() -{ - ++cursor; - token_stream[(int) index++].kind = '('; -} - -void Lexer::scan_right_paren() -{ - ++cursor; - token_stream[(int) index++].kind = ')'; -} - -void Lexer::scan_star() -{ - /* - '*' ::= star - '*=' ::= star_equal - */ - - ++cursor; - - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else - { - token_stream[(int) index++].kind = '*'; - } -} - -void Lexer::scan_plus() -{ - /* - '+' ::= plus - '++' ::= incr - '+=' ::= plus_equal - */ - - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else if (*cursor == '+') - { - ++cursor; - token_stream[(int) index++].kind = Token_incr; - } - else - { - token_stream[(int) index++].kind = '+'; - } -} - -void Lexer::scan_comma() -{ - ++cursor; - token_stream[(int) index++].kind = ','; -} - -void Lexer::scan_minus() -{ - /* - '-' ::= minus - '--' ::= decr - '-=' ::= minus_equal - '->' ::= left_arrow - */ - - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else if (*cursor == '-') - { - ++cursor; - token_stream[(int) index++].kind = Token_decr; - } - else if (*cursor == '>') - { - ++cursor; - token_stream[(int) index++].kind = Token_arrow; - if (*cursor == '*') - { - ++cursor; - token_stream[(int) index++].kind = Token_ptrmem; - } - } - else - { - token_stream[(int) index++].kind = '-'; - } -} - -void Lexer::scan_dot() -{ - /* - '.' ::= dot - '...' ::= ellipsis - */ - - ++cursor; - if (*cursor == '.' && *(cursor + 1) == '.') - { - cursor += 2; - token_stream[(int) index++].kind = Token_ellipsis; - } - else if (*cursor == '.' && *(cursor + 1) == '*') - { - cursor += 2; - token_stream[(int) index++].kind = Token_ptrmem; - } - else - token_stream[(int) index++].kind = '.'; -} - -void Lexer::scan_divide() -{ - /* - '/' ::= divide - '/=' ::= divide_equal - */ - - ++cursor; - - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else - { - token_stream[(int) index++].kind = '/'; - } -} - -void Lexer::scan_colon() -{ - ++cursor; - if (*cursor == ':') - { - ++cursor; - token_stream[(int) index++].kind = Token_scope; - } - else - { - token_stream[(int) index++].kind = ':'; - } -} - -void Lexer::scan_semicolon() -{ - ++cursor; - token_stream[(int) index++].kind = ';'; -} - -void Lexer::scan_less() -{ - /* - '<' ::= less - '<<' ::= left_shift - '<<=' ::= left_shift_equal - '<=' ::= less_equal - */ - - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_leq; - } - else if (*cursor == '<') - { - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else - { - token_stream[(int) index++].kind = Token_shift; - } - } - else - { - token_stream[(int) index++].kind = '<'; - } -} - -void Lexer::scan_equal() -{ - /* - '=' ::= equal - '==' ::= equal_equal - */ - ++cursor; - - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_eq; - } - else - { - token_stream[(int) index++].kind = '='; - } -} - -void Lexer::scan_greater() -{ - /* - '>' ::= greater - '>=' ::= greater_equal - '>>' ::= right_shift - '>>=' ::= right_shift_equal - */ - - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_geq; - } - else if (*cursor == '>') - { - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else - { - token_stream[(int) index++].kind = Token_shift; - } - } - else - { - token_stream[(int) index++].kind = '>'; - } -} - -void Lexer::scan_question() -{ - ++cursor; - token_stream[(int) index++].kind = '?'; -} - -void Lexer::scan_left_bracket() -{ - ++cursor; - token_stream[(int) index++].kind = '['; -} - -void Lexer::scan_right_bracket() -{ - ++cursor; - token_stream[(int) index++].kind = ']'; -} - -void Lexer::scan_xor() -{ - /* - '^' ::= xor - '^=' ::= xor_equal - */ - ++cursor; - - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else - { - token_stream[(int) index++].kind = '^'; - } -} - -void Lexer::scan_left_brace() -{ - ++cursor; - token_stream[(int) index++].kind = '{'; -} - -void Lexer::scan_or() -{ - /* - '|' ::= or - '|=' ::= or_equal - '||' ::= or_or - */ - ++cursor; - if (*cursor == '=') - { - ++cursor; - token_stream[(int) index++].kind = Token_assign; - } - else if (*cursor == '|') - { - ++cursor; - token_stream[(int) index++].kind = Token_or; - } - else - { - token_stream[(int) index++].kind = '|'; - } -} - -void Lexer::scan_right_brace() -{ - ++cursor; - token_stream[(int) index++].kind = '}'; -} - -void Lexer::scan_tilde() -{ - ++cursor; - token_stream[(int) index++].kind = '~'; -} - -void Lexer::scan_EOF() -{ - ++cursor; - token_stream[(int) index++].kind = Token_EOF; -} - -void Lexer::scan_invalid_input() -{ - QString errmsg("invalid input: %1"); - errmsg.arg(int(*cursor)); - reportError(errmsg); - ++cursor; -} - -void LocationTable::positionAt(std::size_t offset, int max_line, - int *line, int *column) const -{ - if (!(line && column && max_line != 0)) - return; - - int first = 0; - int len = max_line; - int half; - int middle; - - while (len > 0) - { - half = len >> 1; - middle = first; - - middle += half; - - if (lines[middle] < offset) - { - first = middle; - ++first; - len = len - half - 1; - } - else - len = half; - } - - *line = std::max(first, 1); - *column = (int) (offset - lines[*line - 1] - 1); - - if (*column < 0) - { - *column = 0; - } -} - -void Lexer::scanKeyword0() -{ - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword2() -{ - switch (*cursor) - { - case 'i': - if (*(cursor + 1) == 'f') - { - token_stream[(int) index++].kind = Token_if; - return; - } - break; - - case 'd': - if (*(cursor + 1) == 'o') - { - token_stream[(int) index++].kind = Token_do; - return; - } - break; - - case 'o': - if (*(cursor + 1) == 'r') - { - token_stream[(int) index++].kind = Token_or; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword3() -{ - switch (*cursor) - { - case 'a': - if (*(cursor + 1) == 'n' && - *(cursor + 2) == 'd') - { - token_stream[(int) index++].kind = Token_and; - return; - } - if (*(cursor + 1) == 's' && - *(cursor + 2) == 'm') - { - token_stream[(int) index++].kind = Token_asm; - return; - } - break; - - case 'f': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'r') - { - token_stream[(int) index++].kind = Token_for; - return; - } - break; - - case 'i': - if (*(cursor + 1) == 'n' && - *(cursor + 2) == 't') - { - token_stream[(int) index++].kind = Token_int; - return; - } - break; - - case 'n': - if (*(cursor + 1) == 'e' && - *(cursor + 2) == 'w') - { - token_stream[(int) index++].kind = Token_new; - return; - } - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 't') - { - token_stream[(int) index++].kind = Token_not; - return; - } - break; - - case 't': - if (*(cursor + 1) == 'r' && - *(cursor + 2) == 'y') - { - token_stream[(int) index++].kind = Token_try; - return; - } - break; - - case 'x': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'r') - { - token_stream[(int) index++].kind = Token_xor; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword4() -{ - switch (*cursor) - { - case 'a': - if (*(cursor + 1) == 'u' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'o') - { - token_stream[(int) index++].kind = Token_auto; - return; - } - break; - - case 'c': - if (*(cursor + 1) == 'a' && - *(cursor + 2) == 's' && - *(cursor + 3) == 'e') - { - token_stream[(int) index++].kind = Token_case; - return; - } - if (*(cursor + 1) == 'h' && - *(cursor + 2) == 'a' && - *(cursor + 3) == 'r') - { - token_stream[(int) index++].kind = Token_char; - return; - } - break; - - case 'b': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'o' && - *(cursor + 3) == 'l') - { - token_stream[(int) index++].kind = Token_bool; - return; - } - break; - - case 'e': - if (*(cursor + 1) == 'l' && - *(cursor + 2) == 's' && - *(cursor + 3) == 'e') - { - token_stream[(int) index++].kind = Token_else; - return; - } - if (*(cursor + 1) == 'm' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 't') - { - token_stream[(int) index++].kind = Token_emit; - return; - } - if (*(cursor + 1) == 'n' && - *(cursor + 2) == 'u' && - *(cursor + 3) == 'm') - { - token_stream[(int) index++].kind = Token_enum; - return; - } - break; - - case 'g': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'o') - { - token_stream[(int) index++].kind = Token_goto; - return; - } - break; - - case 'l': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'n' && - *(cursor + 3) == 'g') - { - token_stream[(int) index++].kind = Token_long; - return; - } - break; - - case 't': - if (*(cursor + 1) == 'h' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 's') - { - token_stream[(int) index++].kind = Token_this; - return; - } - break; - - case 'v': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 'd') - { - token_stream[(int) index++].kind = Token_void; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword5() -{ - switch (*cursor) - { - case 'c': - if (*(cursor + 1) == 'a' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'c' && - *(cursor + 4) == 'h') - { - token_stream[(int) index++].kind = Token_catch; - return; - } - if (*(cursor + 1) == 'l' && - *(cursor + 2) == 'a' && - *(cursor + 3) == 's' && - *(cursor + 4) == 's') - { - token_stream[(int) index++].kind = Token_class; - return; - } - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'm' && - *(cursor + 3) == 'p' && - *(cursor + 4) == 'l') - { - token_stream[(int) index++].kind = Token_compl; - return; - } - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'n' && - *(cursor + 3) == 's' && - *(cursor + 4) == 't') - { - token_stream[(int) index++].kind = Token_const; - return; - } - break; - - case 'b': - if (*(cursor + 1) == 'i' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'o' && - *(cursor + 4) == 'r') - { - token_stream[(int) index++].kind = Token_bitor; - return; - } - if (*(cursor + 1) == 'r' && - *(cursor + 2) == 'e' && - *(cursor + 3) == 'a' && - *(cursor + 4) == 'k') - { - token_stream[(int) index++].kind = Token_break; - return; - } - break; - - case 'f': - if (*(cursor + 1) == 'l' && - *(cursor + 2) == 'o' && - *(cursor + 3) == 'a' && - *(cursor + 4) == 't') - { - token_stream[(int) index++].kind = Token_float; - return; - } - break; - - case 'o': - if (*(cursor + 1) == 'r' && - *(cursor + 2) == '_' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 'q') - { - token_stream[(int) index++].kind = Token_or_eq; - return; - } - break; - - case 's': - if (*(cursor + 1) == 'h' && - *(cursor + 2) == 'o' && - *(cursor + 3) == 'r' && - *(cursor + 4) == 't') - { - token_stream[(int) index++].kind = Token_short; - return; - } - if (*(cursor + 1) == 'l' && - *(cursor + 2) == 'o' && - *(cursor + 3) == 't' && - *(cursor + 4) == 's') - { - token_stream[(int) index++].kind = Token_slots; - return; - } - break; - - case 'u': - if (*(cursor + 1) == 'n' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 'o' && - *(cursor + 4) == 'n') - { - token_stream[(int) index++].kind = Token_union; - return; - } - if (*(cursor + 1) == 's' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 'n' && - *(cursor + 4) == 'g') - { - token_stream[(int) index++].kind = Token_using; - return; - } - break; - - case 't': - if (*(cursor + 1) == 'h' && - *(cursor + 2) == 'r' && - *(cursor + 3) == 'o' && - *(cursor + 4) == 'w') - { - token_stream[(int) index++].kind = Token_throw; - return; - } - break; - - case 'w': - if (*(cursor + 1) == 'h' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 'l' && - *(cursor + 4) == 'e') - { - token_stream[(int) index++].kind = Token_while; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword6() -{ - switch (*cursor) - { - case 'a': - if (*(cursor + 1) == 'n' && - *(cursor + 2) == 'd' && - *(cursor + 3) == '_' && - *(cursor + 4) == 'e' && - *(cursor + 5) == 'q') - { - token_stream[(int) index++].kind = Token_and_eq; - return; - } - break; - - case 'b': - if (*(cursor + 1) == 'i' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'a' && - *(cursor + 4) == 'n' && - *(cursor + 5) == 'd') - { - token_stream[(int) index++].kind = Token_bitand; - return; - } - break; - - case 'e': - if (*(cursor + 1) == 'x' && - *(cursor + 2) == 'p' && - *(cursor + 3) == 'o' && - *(cursor + 4) == 'r' && - *(cursor + 5) == 't') - { - token_stream[(int) index++].kind = Token_export; - return; - } - if (*(cursor + 1) == 'x' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 'r' && - *(cursor + 5) == 'n') - { - token_stream[(int) index++].kind = Token_extern; - return; - } - break; - - case 'd': - if (*(cursor + 1) == 'e' && - *(cursor + 2) == 'l' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 't' && - *(cursor + 5) == 'e') - { - token_stream[(int) index++].kind = Token_delete; - return; - } - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'u' && - *(cursor + 3) == 'b' && - *(cursor + 4) == 'l' && - *(cursor + 5) == 'e') - { - token_stream[(int) index++].kind = Token_double; - return; - } - break; - - case 'f': - if (*(cursor + 1) == 'r' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 'n' && - *(cursor + 5) == 'd') - { - token_stream[(int) index++].kind = Token_friend; - return; - } - break; - - case 'i': - if (*(cursor + 1) == 'n' && - *(cursor + 2) == 'l' && - *(cursor + 3) == 'i' && - *(cursor + 4) == 'n' && - *(cursor + 5) == 'e') - { - token_stream[(int) index++].kind = Token_inline; - return; - } - break; - - case 'K': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'D' && - *(cursor + 3) == 'C' && - *(cursor + 4) == 'O' && - *(cursor + 5) == 'P') - { - token_stream[(int) index++].kind = Token_K_DCOP; - return; - } - break; - - case 'n': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 't' && - *(cursor + 3) == '_' && - *(cursor + 4) == 'e' && - *(cursor + 5) == 'q') - { - token_stream[(int) index++].kind = Token_not_eq; - return; - } - break; - - case 'p': - if (*(cursor + 1) == 'u' && - *(cursor + 2) == 'b' && - *(cursor + 3) == 'l' && - *(cursor + 4) == 'i' && - *(cursor + 5) == 'c') - { - token_stream[(int) index++].kind = Token_public; - return; - } - break; - - case 's': - if (*(cursor + 1) == 'i' && - *(cursor + 2) == 'g' && - *(cursor + 3) == 'n' && - *(cursor + 4) == 'e' && - *(cursor + 5) == 'd') - { - token_stream[(int) index++].kind = Token_signed; - return; - } - if (*(cursor + 1) == 'i' && - *(cursor + 2) == 'z' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 'o' && - *(cursor + 5) == 'f') - { - token_stream[(int) index++].kind = Token_sizeof; - return; - } - if (*(cursor + 1) == 't' && - *(cursor + 2) == 'a' && - *(cursor + 3) == 't' && - *(cursor + 4) == 'i' && - *(cursor + 5) == 'c') - { - token_stream[(int) index++].kind = Token_static; - return; - } - if (*(cursor + 1) == 't' && - *(cursor + 2) == 'r' && - *(cursor + 3) == 'u' && - *(cursor + 4) == 'c' && - *(cursor + 5) == 't') - { - token_stream[(int) index++].kind = Token_struct; - return; - } - if (*(cursor + 1) == 'w' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 't' && - *(cursor + 4) == 'c' && - *(cursor + 5) == 'h') - { - token_stream[(int) index++].kind = Token_switch; - return; - } - break; - - case 'r': - if (*(cursor + 1) == 'e' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'u' && - *(cursor + 4) == 'r' && - *(cursor + 5) == 'n') - { - token_stream[(int) index++].kind = Token_return; - return; - } - break; - - case 't': - if (*(cursor + 1) == 'y' && - *(cursor + 2) == 'p' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 'i' && - *(cursor + 5) == 'd') - { - token_stream[(int) index++].kind = Token_typeid; - return; - } - break; - - case 'x': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'r' && - *(cursor + 3) == '_' && - *(cursor + 4) == 'e' && - *(cursor + 5) == 'q') - { - token_stream[(int) index++].kind = Token_xor_eq; - return; - } - break; - - case 'k': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'd' && - *(cursor + 3) == 'c' && - *(cursor + 4) == 'o' && - *(cursor + 5) == 'p') - { - token_stream[(int) index++].kind = Token_k_dcop; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword7() -{ - switch (*cursor) - { - case 'd': - if (*(cursor + 1) == 'e' && - *(cursor + 2) == 'f' && - *(cursor + 3) == 'a' && - *(cursor + 4) == 'u' && - *(cursor + 5) == 'l' && - *(cursor + 6) == 't') - { - token_stream[(int) index++].kind = Token_default; - return; - } - break; - - case 'm': - if (*(cursor + 1) == 'u' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'a' && - *(cursor + 4) == 'b' && - *(cursor + 5) == 'l' && - *(cursor + 6) == 'e') - { - token_stream[(int) index++].kind = Token_mutable; - return; - } - break; - - case 'p': - if (*(cursor + 1) == 'r' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 'v' && - *(cursor + 4) == 'a' && - *(cursor + 5) == 't' && - *(cursor + 6) == 'e') - { - token_stream[(int) index++].kind = Token_private; - return; - } - break; - case 's': - if (*(cursor + 1) == 'i' && - *(cursor + 2) == 'g' && - *(cursor + 3) == 'n' && - *(cursor + 4) == 'a' && - *(cursor + 5) == 'l' && - *(cursor + 6) == 's') - { - token_stream[(int) index++].kind = Token_signals; - return; - } - break; - case 't': - if (*(cursor + 1) == 'y' && - *(cursor + 2) == 'p' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 'd' && - *(cursor + 5) == 'e' && - *(cursor + 6) == 'f') - { - token_stream[(int) index++].kind = Token_typedef; - return; - } - break; - - case 'v': - if (*(cursor + 1) == 'i' && - *(cursor + 2) == 'r' && - *(cursor + 3) == 't' && - *(cursor + 4) == 'u' && - *(cursor + 5) == 'a' && - *(cursor + 6) == 'l') - { - token_stream[(int) index++].kind = Token_virtual; - return; - } - break; - - case 'Q': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'E' && - *(cursor + 3) == 'N' && - *(cursor + 4) == 'U' && - *(cursor + 5) == 'M' && - *(cursor + 6) == 'S') - { - token_stream[(int) index++].kind = Token_Q_ENUMS; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword8() -{ - switch (*cursor) - { - case '_': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 't' && - *(cursor + 3) == 'y' && - *(cursor + 4) == 'p' && - *(cursor + 5) == 'e' && - *(cursor + 6) == 'o' && - *(cursor + 7) == 'f') - { - token_stream[(int) index++].kind = Token___typeof; - return; - } - break; - - case 'c': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'n' && - *(cursor + 3) == 't' && - *(cursor + 4) == 'i' && - *(cursor + 5) == 'n' && - *(cursor + 6) == 'u' && - *(cursor + 7) == 'e') - { - token_stream[(int) index++].kind = Token_continue; - return; - } - break; - - case 'e': - if (*(cursor + 1) == 'x' && - *(cursor + 2) == 'p' && - *(cursor + 3) == 'l' && - *(cursor + 4) == 'i' && - *(cursor + 5) == 'c' && - *(cursor + 6) == 'i' && - *(cursor + 7) == 't') - { - token_stream[(int) index++].kind = Token_explicit; - return; - } - break; - - case 'o': - if (*(cursor + 1) == 'p' && - *(cursor + 2) == 'e' && - *(cursor + 3) == 'r' && - *(cursor + 4) == 'a' && - *(cursor + 5) == 't' && - *(cursor + 6) == 'o' && - *(cursor + 7) == 'r') - { - token_stream[(int) index++].kind = Token_operator; - return; - } - break; - - case 'Q': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'O' && - *(cursor + 3) == 'B' && - *(cursor + 4) == 'J' && - *(cursor + 5) == 'E' && - *(cursor + 6) == 'C' && - *(cursor + 7) == 'T') - { - token_stream[(int) index++].kind = Token_Q_OBJECT; - return; - } - break; - - case 'r': - if (*(cursor + 1) == 'e' && - *(cursor + 2) == 'g' && - *(cursor + 3) == 'i' && - *(cursor + 4) == 's' && - *(cursor + 5) == 't' && - *(cursor + 6) == 'e' && - *(cursor + 7) == 'r') - { - token_stream[(int) index++].kind = Token_register; - return; - } - break; - - case 'u': - if (*(cursor + 1) == 'n' && - *(cursor + 2) == 's' && - *(cursor + 3) == 'i' && - *(cursor + 4) == 'g' && - *(cursor + 5) == 'n' && - *(cursor + 6) == 'e' && - *(cursor + 7) == 'd') - { - token_stream[(int) index++].kind = Token_unsigned; - return; - } - break; - - case 't': - if (*(cursor + 1) == 'e' && - *(cursor + 2) == 'm' && - *(cursor + 3) == 'p' && - *(cursor + 4) == 'l' && - *(cursor + 5) == 'a' && - *(cursor + 6) == 't' && - *(cursor + 7) == 'e') - { - token_stream[(int) index++].kind = Token_template; - return; - } - if (*(cursor + 1) == 'y' && - *(cursor + 2) == 'p' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 'n' && - *(cursor + 5) == 'a' && - *(cursor + 6) == 'm' && - *(cursor + 7) == 'e') - { - token_stream[(int) index++].kind = Token_typename; - return; - } - break; - - case 'v': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'l' && - *(cursor + 3) == 'a' && - *(cursor + 4) == 't' && - *(cursor + 5) == 'i' && - *(cursor + 6) == 'l' && - *(cursor + 7) == 'e') - { - token_stream[(int) index++].kind = Token_volatile; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword9() -{ - switch (*cursor) - { - case 'p': - if (*(cursor + 1) == 'r' && - *(cursor + 2) == 'o' && - *(cursor + 3) == 't' && - *(cursor + 4) == 'e' && - *(cursor + 5) == 'c' && - *(cursor + 6) == 't' && - *(cursor + 7) == 'e' && - *(cursor + 8) == 'd') - { - token_stream[(int) index++].kind = Token_protected; - return; - } - break; - - case 'n': - if (*(cursor + 1) == 'a' && - *(cursor + 2) == 'm' && - *(cursor + 3) == 'e' && - *(cursor + 4) == 's' && - *(cursor + 5) == 'p' && - *(cursor + 6) == 'a' && - *(cursor + 7) == 'c' && - *(cursor + 8) == 'e') - { - token_stream[(int) index++].kind = Token_namespace; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword10() -{ - switch (*cursor) - { - case 'c': - if (*(cursor + 1) == 'o' && - *(cursor + 2) == 'n' && - *(cursor + 3) == 's' && - *(cursor + 4) == 't' && - *(cursor + 5) == '_' && - *(cursor + 6) == 'c' && - *(cursor + 7) == 'a' && - *(cursor + 8) == 's' && - *(cursor + 9) == 't') - { - token_stream[(int) index++].kind = Token_const_cast; - return; - } - break; - - case 'Q': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'P' && - *(cursor + 3) == 'R' && - *(cursor + 4) == 'O' && - *(cursor + 5) == 'P' && - *(cursor + 6) == 'E' && - *(cursor + 7) == 'R' && - *(cursor + 8) == 'T' && - *(cursor + 9) == 'Y') - { - token_stream[(int) index++].kind = Token_Q_PROPERTY; - return; - } - - break; - } - - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword11() -{ - switch (*cursor) - { - case 'Q': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'I' && - *(cursor + 3) == 'N' && - *(cursor + 4) == 'V' && - *(cursor + 5) == 'O' && - *(cursor + 6) == 'K' && - *(cursor + 7) == 'A' && - *(cursor + 8) == 'B' && - *(cursor + 9) == 'L' && - *(cursor + 10) == 'E') - { - token_stream[(int) index++].kind = Token_Q_INVOKABLE; - return; - } - break; - - case 's': - if (*(cursor + 1) == 't' && - *(cursor + 2) == 'a' && - *(cursor + 3) == 't' && - *(cursor + 4) == 'i' && - *(cursor + 5) == 'c' && - *(cursor + 6) == '_' && - *(cursor + 7) == 'c' && - *(cursor + 8) == 'a' && - *(cursor + 9) == 's' && - *(cursor + 10) == 't') - { - token_stream[(int) index++].kind = Token_static_cast; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword12() -{ - switch (*cursor) - { - case 'd': - if (*(cursor + 1) == 'y' && - *(cursor + 2) == 'n' && - *(cursor + 3) == 'a' && - *(cursor + 4) == 'm' && - *(cursor + 5) == 'i' && - *(cursor + 6) == 'c' && - *(cursor + 7) == '_' && - *(cursor + 8) == 'c' && - *(cursor + 9) == 'a' && - *(cursor + 10) == 's' && - *(cursor + 11) == 't') - { - token_stream[(int) index++].kind = Token_dynamic_cast; - return; - } - break; - - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword13() -{ - switch (*cursor) - { - case '_': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'a' && - *(cursor + 3) == 't' && - *(cursor + 4) == 't' && - *(cursor + 5) == 'r' && - *(cursor + 6) == 'i' && - *(cursor + 7) == 'b' && - *(cursor + 8) == 'u' && - *(cursor + 9) == 't' && - *(cursor + 10) == 'e' && - *(cursor + 11) == '_' && - *(cursor + 12) == '_') - { - token_stream[(int) index++].kind = Token___attribute__; - return; - } - break; - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword14() -{ - switch (*cursor) - { - case 'k': - if (*(cursor + 1) == '_' && - *(cursor + 2) == 'd' && - *(cursor + 3) == 'c' && - *(cursor + 4) == 'o' && - *(cursor + 5) == 'p' && - *(cursor + 6) == '_' && - *(cursor + 7) == 's' && - *(cursor + 8) == 'i' && - *(cursor + 9) == 'g' && - *(cursor + 10) == 'n' && - *(cursor + 11) == 'a' && - *(cursor + 12) == 'l' && - *(cursor + 13) == 's') - { - token_stream[(int) index++].kind = Token_k_dcop_signals; - return; - } - break; - } - token_stream[(int) index++].kind = Token_identifier; -} - -void Lexer::scanKeyword16() -{ - switch (*cursor) - { - case 'r': - if (*(cursor + 1) == 'e' && - *(cursor + 2) == 'i' && - *(cursor + 3) == 'n' && - *(cursor + 4) == 't' && - *(cursor + 5) == 'e' && - *(cursor + 6) == 'r' && - *(cursor + 7) == 'p' && - *(cursor + 8) == 'r' && - *(cursor + 9) == 'e' && - *(cursor + 10) == 't' && - *(cursor + 11) == '_' && - *(cursor + 12) == 'c' && - *(cursor + 13) == 'a' && - *(cursor + 14) == 's' && - *(cursor + 15) == 't') - { - token_stream[(int) index++].kind = Token_reinterpret_cast; - return; - } - break; - } - - token_stream[(int) index++].kind = Token_identifier; -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/lexer.h b/3rdparty/pythonqt/generator/parser/lexer.h deleted file mode 100644 index 05158f81c..000000000 --- a/3rdparty/pythonqt/generator/parser/lexer.h +++ /dev/null @@ -1,298 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef LEXER_H -#define LEXER_H - -#include "symbol.h" - -#include -#include -#include - -struct NameSymbol; -class Lexer; -class Control; - -typedef void (Lexer::*scan_fun_ptr)(); - -class Token -{ -public: - int kind; - std::size_t position; - std::size_t size; - char const *text; - - union - { - const NameSymbol *symbol; - std::size_t right_brace; - } extra; -}; - -class LocationTable -{ -private: - LocationTable(const LocationTable &source); - void operator = (const LocationTable &source); - -public: - inline LocationTable(std::size_t size = 1024) - : lines(0), - line_count(0), - current_line(0) - { - resize(size); - } - - inline ~LocationTable() - { - free(lines); - } - - inline std::size_t size() const - { return line_count; } - - void resize(std::size_t size) - { - Q_ASSERT(size > 0); - lines = (std::size_t*) ::realloc(lines, sizeof(std::size_t) * size); - line_count = size; - } - - void positionAt(std::size_t offset, int *line, int *column) const - { positionAt(offset, (int) current_line, line, column); } - - void positionAt(std::size_t offset, int max_line, int *line, int *column) const; - - inline std::size_t &operator[](int index) - { return lines[index]; } - -private: - std::size_t *lines; - std::size_t line_count; - std::size_t current_line; - - friend class Lexer; -}; - -class TokenStream -{ -private: - TokenStream(const TokenStream &); - void operator = (const TokenStream &); - -public: - inline TokenStream(std::size_t size = 1024) - : tokens(0), - index(0), - token_count(0) - { - resize(size); - } - - inline ~TokenStream() - { ::free(tokens); } - - inline std::size_t size() const - { return token_count; } - - inline std::size_t cursor() const - { return index; } - - inline void rewind(int i) - { index = i; } - - void resize(std::size_t size) - { - Q_ASSERT(size > 0); - tokens = (Token*) ::realloc(tokens, sizeof(Token) * size); - token_count = size; - } - - inline std::size_t nextToken() - { return index++; } - - inline int lookAhead(std::size_t i = 0) const - { return tokens[index + i].kind; } - - inline int kind(std::size_t i) const - { return tokens[i].kind; } - - inline std::size_t position(std::size_t i) const - { return tokens[i].position; } - - inline const NameSymbol *symbol(std::size_t i) const - { return tokens[i].extra.symbol; } - - inline std::size_t matchingBrace(std::size_t i) const - { return tokens[i].extra.right_brace; } - - inline Token &operator[](int index) - { return tokens[index]; } - - inline const Token &token(int index) const - { return tokens[index]; } - -private: - Token *tokens; - std::size_t index; - std::size_t token_count; - -private: - friend class Lexer; -}; - -class LocationManager -{ - LocationManager(LocationManager const &__other); - void operator = (LocationManager const &__other); - -public: - LocationManager (TokenStream &__token_stream, - LocationTable &__location_table, - LocationTable &__line_table): - token_stream (__token_stream), - location_table (__location_table), - line_table (__line_table) {} - - void positionAt(std::size_t offset, int *line, int *column, - QString *filename) const; - - void extract_line(int offset, int *line, QString *filename) const; - - TokenStream &token_stream; - LocationTable &location_table; - LocationTable &line_table; -}; - -class Lexer -{ -public: - Lexer(LocationManager &__location, Control *__control): - _M_location(__location), - token_stream(_M_location.token_stream), - location_table(_M_location.location_table), - line_table(_M_location.line_table), - control(__control) {} - - void tokenize(const char *contents, std::size_t size); - - LocationManager &_M_location; - TokenStream &token_stream; - LocationTable &location_table; - LocationTable &line_table; - -private: - void reportError(const QString& msg); - - void initialize_scan_table(); - void scan_newline(); - void scan_white_spaces(); - void scan_identifier_or_keyword(); - void scan_identifier_or_literal(); - void scan_int_constant(); - void scan_char_constant(); - void scan_string_constant(); - void scan_invalid_input(); - void scan_preprocessor(); - - // keywords - void scanKeyword0(); - void scanKeyword2(); - void scanKeyword3(); - void scanKeyword4(); - void scanKeyword5(); - void scanKeyword6(); - void scanKeyword7(); - void scanKeyword8(); - void scanKeyword9(); - void scanKeyword10(); - void scanKeyword11(); - void scanKeyword12(); - void scanKeyword13(); - void scanKeyword14(); - void scanKeyword16(); - - // operators - void scan_not(); - void scan_remainder(); - void scan_and(); - void scan_left_paren(); - void scan_right_paren(); - void scan_star(); - void scan_plus(); - void scan_comma(); - void scan_minus(); - void scan_dot(); - void scan_divide(); - void scan_colon(); - void scan_semicolon(); - void scan_less(); - void scan_equal(); - void scan_greater(); - void scan_question(); - void scan_left_bracket(); - void scan_right_bracket(); - void scan_xor(); - void scan_left_brace(); - void scan_or(); - void scan_right_brace(); - void scan_tilde(); - void scan_EOF(); - -private: - Control *control; - const unsigned char *cursor; - const unsigned char *begin_buffer; - const unsigned char *end_buffer; - std::size_t index; - - static scan_fun_ptr s_scan_table[]; - static scan_fun_ptr s_scan_keyword_table[]; - static bool s_initialized; -}; - -#endif // LEXER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/list.cpp b/3rdparty/pythonqt/generator/parser/list.cpp deleted file mode 100644 index 59d316054..000000000 --- a/3rdparty/pythonqt/generator/parser/list.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "list.h" - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/list.h b/3rdparty/pythonqt/generator/parser/list.h deleted file mode 100644 index 711819246..000000000 --- a/3rdparty/pythonqt/generator/parser/list.h +++ /dev/null @@ -1,119 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef FASTLIST_H -#define FASTLIST_H - -#include "smallobject.h" - -template -struct ListNode -{ - Tp element; - int index; - mutable const ListNode *next; - - static ListNode *create(const Tp &element, pool *p) - { - ListNode *node = new (p->allocate(sizeof(ListNode))) ListNode(); - node->element = element; - node->index = 0; - node->next = node; - - return node; - } - - static ListNode *create(const ListNode *n1, const Tp &element, pool *p) - { - ListNode *n2 = ListNode::create(element, p); - - n2->index = n1->index + 1; - n2->next = n1->next; - n1->next = n2; - - return n2; - } - - inline ListNode() { } - - inline const ListNode *at(int index) const - { - const ListNode *node = this; - while (index != node->index) - node = node->next; - - return node; - } - - inline bool hasNext() const - { return index < next->index; } - - inline int count() const - { return 1 + toBack()->index; } - - inline const ListNode *toFront() const - { return toBack()->next; } - - inline const ListNode *toBack() const - { - const ListNode *node = this; - while (node->hasNext()) - node = node->next; - - return node; - } -}; - -template -inline const ListNode *snoc(const ListNode *list, - const Tp &element, pool *p) -{ - if (!list) - return ListNode::create(element, p); - - return ListNode::create(list->toBack(), element, p); -} - -#endif // FASTLIST_H - -// kate: space-indent on; indent-width 2; replace-tabs on; - diff --git a/3rdparty/pythonqt/generator/parser/name_compiler.cpp b/3rdparty/pythonqt/generator/parser/name_compiler.cpp deleted file mode 100644 index e2c5c8d7b..000000000 --- a/3rdparty/pythonqt/generator/parser/name_compiler.cpp +++ /dev/null @@ -1,159 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "name_compiler.h" -#include "type_compiler.h" -#include "declarator_compiler.h" -#include "lexer.h" -#include "symbol.h" -#include "binder.h" - -#include - -NameCompiler::NameCompiler(Binder *binder) - : _M_binder (binder), _M_token_stream (binder->tokenStream ()) -{ -} - -QString NameCompiler::decode_operator(std::size_t index) const -{ - const Token &tk = _M_token_stream->token((int) index); - return QString::fromUtf8(&tk.text[tk.position], (int) tk.size); -} - -QString NameCompiler::internal_run(AST *node) -{ - _M_name.clear(); - visit(node); - return name(); -} - -void NameCompiler::visitUnqualifiedName(UnqualifiedNameAST *node) -{ - QString tmp_name; - - if (node->tilde) - tmp_name += QLatin1String("~"); - - if (node->id) - tmp_name += _M_token_stream->symbol(node->id)->as_string(); - - if (OperatorFunctionIdAST *op_id = node->operator_id) - { -#if defined(__GNUC__) -#warning "NameCompiler::visitUnqualifiedName() -- implement me" -#endif - - if (op_id->op && op_id->op->op) - { - tmp_name += QLatin1String("operator"); - tmp_name += decode_operator(op_id->op->op); - if (op_id->op->close) - tmp_name += decode_operator(op_id->op->close); - } - else if (op_id->type_specifier) - { -#if defined(__GNUC__) -#warning "don't use an hardcoded string as cast' name" -#endif - Token const &tk = _M_token_stream->token ((int) op_id->start_token); - Token const &end_tk = _M_token_stream->token ((int) op_id->end_token); - tmp_name += QString::fromLatin1 (&tk.text[tk.position], - (int) (end_tk.position - tk.position)).trimmed (); - } - } - - _M_name += tmp_name; - if (node->template_arguments) - { - // ### cleanup - _M_name.last() += QLatin1String("<"); - visitNodes(this, node->template_arguments); - _M_name.last().truncate(_M_name.last().count() - 1); // remove the last ',' - _M_name.last() += QLatin1String(">"); - } - -} - -void NameCompiler::visitTemplateArgument(TemplateArgumentAST *node) -{ - if (node->type_id && node->type_id->type_specifier) - { - TypeCompiler type_cc(_M_binder); - type_cc.run(node->type_id->type_specifier); - - DeclaratorCompiler decl_cc(_M_binder); - decl_cc.run(node->type_id->declarator); - - if (type_cc.isConstant()) - _M_name.last() += "const "; - - QStringList q = type_cc.qualifiedName (); - - if (q.count () == 1) - { -#if defined (RXX_RESOLVE_TYPEDEF) // ### it'll break :( - TypeInfo tp; - tp.setQualifiedName (q); - tp = TypeInfo::resolveType (tp, _M_binder->currentScope ()->toItem ()); - q = tp.qualifiedName (); -#endif - - if (CodeModelItem item = _M_binder->model ()->findItem (q, _M_binder->currentScope ()->toItem ())) - { - if (item->name () == q.last ()) - q = item->qualifiedName (); - } - } - - _M_name.last() += q.join("::"); - - if (decl_cc.isReference()) - _M_name.last() += "&"; - if (decl_cc.indirection()) - _M_name.last() += QString(decl_cc.indirection(), '*'); - - _M_name.last() += QLatin1String(","); - } -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/name_compiler.h b/3rdparty/pythonqt/generator/parser/name_compiler.h deleted file mode 100644 index 5eb8507d4..000000000 --- a/3rdparty/pythonqt/generator/parser/name_compiler.h +++ /dev/null @@ -1,78 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef NAME_COMPILER_H -#define NAME_COMPILER_H - -#include "default_visitor.h" -#include - -class TokenStream; -class Binder; - -class NameCompiler: protected DefaultVisitor -{ -public: - NameCompiler(Binder *binder); - - void run(NameAST *node) { internal_run(node); } - void run(UnqualifiedNameAST *node) { internal_run(node); } - - QString name() const { return _M_name.join("::"); } - QStringList qualifiedName() const { return _M_name; } - -protected: - virtual void visitUnqualifiedName(UnqualifiedNameAST *node); - virtual void visitTemplateArgument(TemplateArgumentAST *node); - - QString internal_run(AST *node); - QString decode_operator(std::size_t index) const; - -private: - Binder *_M_binder; - TokenStream *_M_token_stream; - QStringList _M_name; -}; - -#endif // NAME_COMPILER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/parser.cpp b/3rdparty/pythonqt/generator/parser/parser.cpp deleted file mode 100644 index 15edc7b46..000000000 --- a/3rdparty/pythonqt/generator/parser/parser.cpp +++ /dev/null @@ -1,4437 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ - - -// c++ support -#include "parser.h" -#include "tokens.h" -#include "lexer.h" -#include "control.h" - -#include -#include - -#define ADVANCE(tk, descr) \ -{ \ - if (token_stream.lookAhead() != tk) { \ - tokenRequiredError(tk); \ - return false; \ - } \ - token_stream.nextToken(); \ -} - -#define ADVANCE_NR(tk, descr) \ - do { \ - if (token_stream.lookAhead() != tk) { \ - tokenRequiredError(tk); \ - } \ - else \ - token_stream.nextToken(); \ - } while (0) - -#define CHECK(tk) \ - do { \ - if (token_stream.lookAhead() != tk) { \ - return false; \ - } \ - token_stream.nextToken(); \ - } while (0) - -#define UPDATE_POS(_node, start, end) \ - do { \ - (_node)->start_token = start; \ - (_node)->end_token = end; \ - } while (0) - -Parser::Parser(Control *c) - : _M_location(token_stream, location_table, line_table), - control(c), - lexer(_M_location, control) -{ - _M_block_errors = false; -} - -Parser::~Parser() -{ -} - -void Parser::advance() -{ - token_stream.nextToken(); -} - -TranslationUnitAST *Parser::parse(const char *contents, - std::size_t size, pool *p) -{ - _M_block_errors = false; - _M_pool = p; - lexer.tokenize(contents, size); - token_stream.nextToken(); // skip the first token - - Lexer *oldLexer = control->changeLexer (&lexer); - Parser *oldParser = control->changeParser (this); - - TranslationUnitAST *ast = 0; - parseTranslationUnit(ast); - - control->changeLexer (oldLexer); - control->changeParser (oldParser); - - return ast; -} - -bool Parser::parseWinDeclSpec(WinDeclSpecAST *&node) -{ - if (token_stream.lookAhead() != Token_identifier) - return false; - - std::size_t start = token_stream.cursor(); - - const NameSymbol *name_symbol = token_stream.symbol(token_stream.cursor()); - QString name = name_symbol->as_string(); - if (name != QLatin1String("__declspec")) - return false; - std::size_t specifier = token_stream.cursor(); - - token_stream.nextToken(); - if (token_stream.lookAhead() != '(') - return false; - - token_stream.nextToken(); - if (token_stream.lookAhead() != Token_identifier) - return false; - std::size_t modifier = token_stream.cursor(); - - token_stream.nextToken(); - if (token_stream.lookAhead() != ')') - return false; - - token_stream.nextToken(); - - node = CreateNode(_M_pool); - node->specifier = specifier; - node->modifier = modifier; - - UPDATE_POS(node, start, token_stream.cursor()); - - return true; -} - -void Parser::tokenRequiredError(int token) -{ - QString err; - - err += "expected token "; - err += "``"; - err += token_name(token); - err += "'' found ``"; - err += token_name(token_stream.lookAhead()); - err += "''"; - - reportError(err); -} - -void Parser::syntaxError() -{ - QString err; - - err += "unexpected token "; - err += "``"; - err += token_name(token_stream.lookAhead()); - err += "''"; - - reportError(err); -} - -void Parser::reportError(const QString& msg) -{ - if (!_M_block_errors) - { - int line, column; - QString fileName; - - std::size_t tok = token_stream.cursor(); - location().positionAt(token_stream.position(tok), - &line, &column, &fileName); - - Control::ErrorMessage errmsg; - errmsg.setLine(line + 1); - errmsg.setColumn(column); - errmsg.setFileName(fileName); - errmsg.setMessage(QLatin1String("** PARSER ERROR ") + msg); - control->reportError(errmsg); - } -} - -bool Parser::skipUntil(int token) -{ - while (token_stream.lookAhead()) - { - if (token_stream.lookAhead() == token) - return true; - - token_stream.nextToken(); - } - - return false; -} - -bool Parser::skipUntilDeclaration() -{ - while (token_stream.lookAhead()) - { - - switch(token_stream.lookAhead()) - { - case ';': - case '~': - case Token_scope: - case Token_identifier: - case Token_operator: - case Token_char: - case Token_wchar_t: - case Token_bool: - case Token_short: - case Token_int: - case Token_long: - case Token_signed: - case Token_unsigned: - case Token_float: - case Token_double: - case Token_void: - case Token_extern: - case Token_namespace: - case Token_using: - case Token_typedef: - case Token_asm: - case Token_template: - case Token_export: - - case Token_const: // cv - case Token_volatile: // cv - - case Token_public: - case Token_protected: - case Token_private: - case Token_signals: // Qt - case Token_slots: // Qt - return true; - - default: - token_stream.nextToken(); - } - } - - return false; -} - -bool Parser::skipUntilStatement() -{ - while (token_stream.lookAhead()) - { - switch(token_stream.lookAhead()) - { - case ';': - case '{': - case '}': - case Token_const: - case Token_volatile: - case Token_identifier: - case Token_case: - case Token_default: - case Token_if: - case Token_switch: - case Token_while: - case Token_do: - case Token_for: - case Token_break: - case Token_continue: - case Token_return: - case Token_goto: - case Token_try: - case Token_catch: - case Token_throw: - case Token_char: - case Token_wchar_t: - case Token_bool: - case Token_short: - case Token_int: - case Token_long: - case Token_signed: - case Token_unsigned: - case Token_float: - case Token_double: - case Token_void: - case Token_class: - case Token_struct: - case Token_union: - case Token_enum: - case Token_scope: - case Token_template: - case Token_using: - return true; - - default: - token_stream.nextToken(); - } - } - - return false; -} - -bool Parser::skip(int l, int r) -{ - int count = 0; - while (token_stream.lookAhead()) - { - int tk = token_stream.lookAhead(); - - if (tk == l) - ++count; - else if (tk == r) - --count; - else if (l != '{' && (tk == '{' || tk == '}' || tk == ';')) - return false; - - if (count == 0) - return true; - - token_stream.nextToken(); - } - - return false; -} - -bool Parser::parseName(NameAST *&node, bool acceptTemplateId) -{ - std::size_t start = token_stream.cursor(); - - WinDeclSpecAST *winDeclSpec = 0; - parseWinDeclSpec(winDeclSpec); - - NameAST *ast = CreateNode(_M_pool); - - if (token_stream.lookAhead() == Token_scope) - { - ast->global = true; - token_stream.nextToken(); - } - - std::size_t idx = token_stream.cursor(); - - while (true) - { - UnqualifiedNameAST *n = 0; - if (!parseUnqualifiedName(n)) - return false; - - if (token_stream.lookAhead() == Token_scope) - { - token_stream.nextToken(); - - ast->qualified_names - = snoc(ast->qualified_names, n, _M_pool); - - if (token_stream.lookAhead() == Token_template) - { - /// skip optional template #### @todo CHECK - token_stream.nextToken(); - } - } - else - { - Q_ASSERT(n != 0); - if (!acceptTemplateId) - { - token_stream.rewind((int) n->start_token); - parseUnqualifiedName(n, false); - } - - ast->unqualified_name = n; - break; - } - } - - if (idx == token_stream.cursor()) - return false; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseTranslationUnit(TranslationUnitAST *&node) -{ - std::size_t start = token_stream.cursor(); - TranslationUnitAST *ast = CreateNode(_M_pool); - - while (token_stream.lookAhead()) - { - std::size_t startDecl = token_stream.cursor(); - - DeclarationAST *declaration = 0; - if (parseDeclaration(declaration)) - { - ast->declarations = - snoc(ast->declarations, declaration, _M_pool); - } - else - { - // error recovery - if (startDecl == token_stream.cursor()) - { - // skip at least one token - token_stream.nextToken(); - } - - skipUntilDeclaration(); - } - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseDeclaration(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - switch(token_stream.lookAhead()) - { - case ';': - token_stream.nextToken(); - return true; - - case Token_extern: - return parseLinkageSpecification(node); - - case Token_namespace: - return parseNamespace(node); - - case Token_using: - return parseUsing(node); - - case Token_typedef: - return parseTypedef(node); - - case Token_asm: - return parseAsmDefinition(node); - - case Token_Q_ENUMS: - return parseQ_ENUMS(node); - - case Token_template: - case Token_export: - return parseTemplateDeclaration(node); - - default: - { - const ListNode *cv = 0; - parseCvQualify(cv); - - const ListNode *storageSpec = 0; - parseStorageClassSpecifier(storageSpec); - - parseCvQualify(cv); - - TypeSpecifierAST *spec = 0; - if (parseEnumSpecifier(spec) - || parseClassSpecifier(spec) - || parseForwardDeclarationSpecifier(spec)) - { - parseCvQualify(cv); - - spec->cv = cv; - - const ListNode *declarators = 0; - parseInitDeclaratorList(declarators); - ADVANCE(';', ";"); - - SimpleDeclarationAST *ast = - CreateNode(_M_pool); - - ast->storage_specifiers = storageSpec; - ast->type_specifier = spec; - ast->init_declarators = declarators; - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - } - } // end switch - - token_stream.rewind((int) start); - return parseDeclarationInternal(node); -} - -bool Parser::parseLinkageSpecification(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_extern); - - LinkageSpecificationAST *ast = CreateNode(_M_pool); - - if (token_stream.lookAhead() == Token_string_literal) - { - ast->extern_type = token_stream.cursor(); - token_stream.nextToken(); - } - - if (token_stream.lookAhead() == '{') - { - parseLinkageBody(ast->linkage_body); - } - else if (!parseDeclaration(ast->declaration)) - { - reportError(("Declaration syntax error")); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseLinkageBody(LinkageBodyAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK('{'); - - LinkageBodyAST *ast = CreateNode(_M_pool); - - while (token_stream.lookAhead()) - { - int tk = token_stream.lookAhead(); - - if (tk == '}') - break; - - std::size_t startDecl = token_stream.cursor(); - - DeclarationAST *declaration = 0; - if (parseDeclaration(declaration)) - { - ast->declarations = snoc(ast->declarations, declaration, _M_pool); - } - else - { - // error recovery - if (startDecl == token_stream.cursor()) - { - // skip at least one token - token_stream.nextToken(); - } - - skipUntilDeclaration(); - } - } - - if (token_stream.lookAhead() != '}') - reportError(("} expected")); - else - token_stream.nextToken(); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseNamespace(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_namespace); - - std::size_t namespace_name = 0; - if (token_stream.lookAhead() == Token_identifier) - { - namespace_name = token_stream.cursor(); - token_stream.nextToken(); - } - - if (token_stream.lookAhead() == '=') - { - // namespace alias - token_stream.nextToken(); - - NameAST *name = 0; - if (parseName(name)) - { - ADVANCE(';', ";"); - - NamespaceAliasDefinitionAST *ast - = CreateNode(_M_pool); - ast->namespace_name = namespace_name; - ast->alias_name = name; - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - return true; - } - else - { - reportError(("namespace expected")); - return false; - } - } - else if (token_stream.lookAhead() != '{') - { - reportError(("{ expected")); - return false; - } - - NamespaceAST *ast = CreateNode(_M_pool); - ast->namespace_name = namespace_name; - parseLinkageBody(ast->linkage_body); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseUsing(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_using); - - if (token_stream.lookAhead() == Token_namespace) - return parseUsingDirective(node); - - UsingAST *ast = CreateNode(_M_pool); - - if (token_stream.lookAhead() == Token_typename) - { - ast->type_name = token_stream.cursor(); - token_stream.nextToken(); - } - - if (!parseName(ast->name)) - return false; - - ADVANCE(';', ";"); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseUsingDirective(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_namespace); - - NameAST *name = 0; - if (!parseName(name)) - { - reportError(("Namespace name expected")); - return false; - } - - ADVANCE(';', ";"); - - UsingDirectiveAST *ast = CreateNode(_M_pool); - ast->name = name; - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - - -bool Parser::parseOperatorFunctionId(OperatorFunctionIdAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_operator); - - OperatorFunctionIdAST *ast = CreateNode(_M_pool); - - if (!parseOperator(ast->op)) - { - ast->op = 0; - - // parse cast operator - const ListNode *cv = 0; - parseCvQualify(cv); - - if (!parseSimpleTypeSpecifier(ast->type_specifier)) - { - syntaxError(); - return false; - } - - parseCvQualify(cv); - ast->type_specifier->cv = cv; - - PtrOperatorAST *ptr_op = 0; - while (parsePtrOperator(ptr_op)) - ast->ptr_ops = snoc(ast->ptr_ops, ptr_op, _M_pool); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - return true; -} - -bool Parser::parseTemplateArgumentList(const ListNode *&node, - bool reportError) -{ - TemplateArgumentAST *templArg = 0; - if (!parseTemplateArgument(templArg)) - return false; - - node = snoc(node, templArg, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - - if (!parseTemplateArgument(templArg)) - { - if (reportError) - { - syntaxError(); - break; - } - - node = 0; - return false; - } - - node = snoc(node, templArg, _M_pool); - } - - return true; -} - -bool Parser::parseTypedef(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_typedef); - - TypeSpecifierAST *spec = 0; - if (!parseTypeSpecifierOrClassSpec(spec)) - { - reportError(("Need a type specifier to declare")); - return false; - } - - const ListNode *declarators = 0; - if (!parseInitDeclaratorList(declarators)) - { - //reportError(("Need an identifier to declare")); - //return false; - } - - ADVANCE(';', ";"); - - TypedefAST *ast = CreateNode(_M_pool); - ast->type_specifier = spec; - ast->init_declarators = declarators; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseAsmDefinition(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - ADVANCE(Token_asm, "asm"); - - const ListNode *cv = 0; - parseCvQualify(cv); - -#if defined(__GNUC__) -#warning "implement me" -#endif - skip('(', ')'); - token_stream.nextToken(); - ADVANCE(';', ";"); - - AsmDefinitionAST *ast = CreateNode(_M_pool); - ast->cv = cv; - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseTemplateDeclaration(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - std::size_t exported = 0; - if (token_stream.lookAhead() == Token_export) - { - exported = token_stream.cursor(); - token_stream.nextToken(); - } - - CHECK(Token_template); - - const ListNode *params = 0; - if (token_stream.lookAhead() == '<') - { - token_stream.nextToken(); - parseTemplateParameterList(params); - - ADVANCE('>', ">"); - } - - DeclarationAST *declaration = 0; - if (!parseDeclaration(declaration)) - { - reportError(("expected a declaration")); - } - - TemplateDeclarationAST *ast = CreateNode(_M_pool); - ast->exported = exported; - ast->template_parameters = params; - ast->declaration = declaration; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseOperator(OperatorAST *&node) -{ - std::size_t start = token_stream.cursor(); - - OperatorAST *ast = CreateNode(_M_pool); - - switch(token_stream.lookAhead()) - { - case Token_new: - case Token_delete: - { - ast->op = token_stream.cursor(); - token_stream.nextToken(); - - if (token_stream.lookAhead() == '[' - && token_stream.lookAhead(1) == ']') - { - ast->open = token_stream.cursor(); - token_stream.nextToken(); - - ast->close = token_stream.cursor(); - token_stream.nextToken(); - } - } - break; - - case '+': - case '-': - case '*': - case '/': - case '%': - case '^': - case '&': - case '|': - case '~': - case '!': - case '=': - case '<': - case '>': - case ',': - case Token_assign: - case Token_shift: - case Token_eq: - case Token_not_eq: - case Token_leq: - case Token_geq: - case Token_and: - case Token_or: - case Token_incr: - case Token_decr: - case Token_ptrmem: - case Token_arrow: - ast->op = token_stream.cursor(); - token_stream.nextToken(); - break; - - default: - if (token_stream.lookAhead() == '(' - && token_stream.lookAhead(1) == ')') - { - ast->op = ast->open = token_stream.cursor(); - token_stream.nextToken(); - ast->close = token_stream.cursor(); - token_stream.nextToken(); - } - else if (token_stream.lookAhead() == '[' - && token_stream.lookAhead(1) == ']') - { - ast->op = ast->open = token_stream.cursor(); - token_stream.nextToken(); - ast->close = token_stream.cursor(); - token_stream.nextToken(); - } - else - { - return false; - } - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseCvQualify(const ListNode *&node) -{ - std::size_t start = token_stream.cursor(); - - int tk; - while (0 != (tk = token_stream.lookAhead()) - && (tk == Token_const || tk == Token_volatile)) - { - node = snoc(node, token_stream.cursor(), _M_pool); - token_stream.nextToken(); - } - - return start != token_stream.cursor(); -} - -bool Parser::parseSimpleTypeSpecifier(TypeSpecifierAST *&node, - bool onlyIntegral) -{ - std::size_t start = token_stream.cursor(); - bool isIntegral = false; - bool done = false; - - const ListNode *integrals = 0; - - while (!done) - { - switch(token_stream.lookAhead()) - { - case Token_char: - case Token_wchar_t: - case Token_bool: - case Token_short: - case Token_int: - case Token_long: - case Token_signed: - case Token_unsigned: - case Token_float: - case Token_double: - case Token_void: - integrals = snoc(integrals, token_stream.cursor(), _M_pool); - isIntegral = true; - token_stream.nextToken(); - break; - - default: - done = true; - } - } - - SimpleTypeSpecifierAST *ast = CreateNode(_M_pool); - if (isIntegral) - { - ast->integrals = integrals; - } - else if (token_stream.lookAhead() == Token___typeof) - { - ast->type_of = token_stream.cursor(); - token_stream.nextToken(); - - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - - std::size_t saved = token_stream.cursor(); - parseTypeId(ast->type_id); - if (token_stream.lookAhead() != ')') - { - ast->type_id = 0; - token_stream.rewind((int) saved); - parseUnaryExpression(ast->expression); - } - ADVANCE(')', ")"); - } - else - { - parseUnaryExpression(ast->expression); - } - } - else if (onlyIntegral) - { - token_stream.rewind((int) start); - return false; - } - else - { - if (!parseName(ast->name, true)) - { - ast->name = 0; - token_stream.rewind((int) start); - return false; - } - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parsePtrOperator(PtrOperatorAST *&node) -{ - int tk = token_stream.lookAhead(); - - if (tk != '&' && tk != '*' - && tk != Token_scope && tk != Token_identifier) - { - return false; - } - - std::size_t start = token_stream.cursor(); - - PtrOperatorAST *ast = CreateNode(_M_pool); - - switch (token_stream.lookAhead()) - { - case '&': - case '*': - ast->op = token_stream.cursor(); - token_stream.nextToken(); - break; - - case Token_scope: - case Token_identifier: - { - if (!parsePtrToMember(ast->mem_ptr)) - { - token_stream.rewind((int) start); - return false; - } - } - break; - - default: - Q_ASSERT(0); - break; - } - - parseCvQualify(ast->cv); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseTemplateArgument(TemplateArgumentAST *&node) -{ - std::size_t start = token_stream.cursor(); - - TypeIdAST *typeId = 0; - ExpressionAST *expr = 0; - - if (!parseTypeId(typeId) || (token_stream.lookAhead() != ',' - && token_stream.lookAhead() != '>')) - { - token_stream.rewind((int) start); - - if (!parseLogicalOrExpression(expr, true)) - return false; - } - - TemplateArgumentAST *ast = CreateNode(_M_pool); - ast->type_id = typeId; - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseTypeSpecifier(TypeSpecifierAST *&node) -{ - std::size_t start = token_stream.cursor(); - - const ListNode *cv = 0; - parseCvQualify(cv); - - TypeSpecifierAST *ast = 0; - if (!parseElaboratedTypeSpecifier(ast) && !parseSimpleTypeSpecifier(ast)) - { - token_stream.rewind((int) start); - return false; - } - - parseCvQualify(cv); - ast->cv = cv; - - node = ast; - - return true; -} - -bool Parser::parseDeclarator(DeclaratorAST *&node) -{ - std::size_t start = token_stream.cursor(); - - DeclaratorAST *ast = CreateNode(_M_pool); - - DeclaratorAST *decl = 0; - NameAST *declId = 0; - - PtrOperatorAST *ptrOp = 0; - while (parsePtrOperator(ptrOp)) - { - ast->ptr_ops = snoc(ast->ptr_ops, ptrOp, _M_pool); - } - - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - - if (!parseDeclarator(decl)) - return false; - - ast->sub_declarator = decl; - - CHECK(')'); - } - else - { - if (token_stream.lookAhead() == ':') - { - // unnamed bitfield - } - else if (parseName(declId, true)) - { - ast->id = declId; - } - else - { - token_stream.rewind((int) start); - return false; - } - - if (token_stream.lookAhead() == ':') - { - token_stream.nextToken(); - - if (!parseConstantExpression(ast->bit_expression)) - { - reportError(("Constant expression expected")); - } - goto update_pos; - } - } - - { - bool isVector = true; - - while (token_stream.lookAhead() == '[') - { - token_stream.nextToken(); - - ExpressionAST *expr = 0; - parseCommaExpression(expr); - - ADVANCE(']', "]"); - - ast->array_dimensions = snoc(ast->array_dimensions, expr, _M_pool); - isVector = true; - } - - bool skipParen = false; - if (token_stream.lookAhead() == Token_identifier - && token_stream.lookAhead(1) == '(' - && token_stream.lookAhead(2) == '(') - { - token_stream.nextToken(); - token_stream.nextToken(); - skipParen = true; - } - - int tok = token_stream.lookAhead(); - if (ast->sub_declarator - && !(isVector || tok == '(' || tok == ',' - || tok == ';' || tok == '=')) - { - token_stream.rewind((int) start); - return false; - } - - std::size_t index = token_stream.cursor(); - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - - ParameterDeclarationClauseAST *params = 0; - if (!parseParameterDeclarationClause(params)) - { - token_stream.rewind((int) index); - goto update_pos; - } - - ast->parameter_declaration_clause = params; - - if (token_stream.lookAhead() != ')') - { - token_stream.rewind((int) index); - goto update_pos; - } - - token_stream.nextToken(); // skip ')' - - parseCvQualify(ast->fun_cv); - parseExceptionSpecification(ast->exception_spec); - - if (token_stream.lookAhead() == Token___attribute__) - { - parse_Attribute__(); - } - } - - if (skipParen) - { - if (token_stream.lookAhead() != ')') - { - reportError(("')' expected")); - } - else - token_stream.nextToken(); - } - } - - update_pos: - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseAbstractDeclarator(DeclaratorAST *&node) -{ - std::size_t start = token_stream.cursor(); - - DeclaratorAST *ast = CreateNode(_M_pool); - DeclaratorAST *decl = 0; - - PtrOperatorAST *ptrOp = 0; - while (parsePtrOperator(ptrOp)) - { - ast->ptr_ops = snoc(ast->ptr_ops, ptrOp, _M_pool); - } - - int index = (int) token_stream.cursor(); - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - - if (!parseAbstractDeclarator(decl)) - { - token_stream.rewind((int) index); - goto label1; - } - - ast->sub_declarator = decl; - - if (token_stream.lookAhead() != ')') - { - token_stream.rewind((int) start); - return false; - } - token_stream.nextToken(); - } - else if (token_stream.lookAhead() == ':') - { - token_stream.nextToken(); - if (!parseConstantExpression(ast->bit_expression)) - { - ast->bit_expression = 0; - reportError(("Constant expression expected")); - } - goto update_pos; - } - - label1: - { - bool isVector = true; - - while (token_stream.lookAhead() == '[') - { - token_stream.nextToken(); - - ExpressionAST *expr = 0; - parseCommaExpression(expr); - - ADVANCE(']', "]"); - - ast->array_dimensions = snoc(ast->array_dimensions, expr, _M_pool); - isVector = true; - } - - int tok = token_stream.lookAhead(); - if (ast->sub_declarator - && !(isVector || tok == '(' || tok == ',' - || tok == ';' || tok == '=')) - { - token_stream.rewind((int) start); - return false; - } - - int index = (int) token_stream.cursor(); - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - - ParameterDeclarationClauseAST *params = 0; - if (!parseParameterDeclarationClause(params)) - { - token_stream.rewind((int) index); - goto update_pos; - } - - ast->parameter_declaration_clause = params; - - if (token_stream.lookAhead() != ')') - { - token_stream.rewind((int) index); - goto update_pos; - } - - token_stream.nextToken(); // skip ')' - - parseCvQualify(ast->fun_cv); - parseExceptionSpecification(ast->exception_spec); - } - } - - update_pos: - if (token_stream.cursor() == start) - return false; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseEnumSpecifier(TypeSpecifierAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_enum); - - NameAST *name = 0; - parseName(name); - - if (token_stream.lookAhead() != '{') - { - token_stream.rewind((int) start); - return false; - } - token_stream.nextToken(); - - EnumSpecifierAST *ast = CreateNode(_M_pool); - ast->name = name; - - EnumeratorAST *enumerator = 0; - if (parseEnumerator(enumerator)) - { - ast->enumerators = snoc(ast->enumerators, enumerator, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - - if (!parseEnumerator(enumerator)) - { - //reportError(("Enumerator expected")); - break; - } - - ast->enumerators = snoc(ast->enumerators, enumerator, _M_pool); - } - } - - ADVANCE_NR('}', "}"); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseTemplateParameterList(const ListNode *&node) -{ - TemplateParameterAST *param = 0; - if (!parseTemplateParameter(param)) - return false; - - node = snoc(node, param, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - - if (!parseTemplateParameter(param)) - { - syntaxError(); - break; - } - else - { - node = snoc(node, param, _M_pool); - } - } - - return true; -} - -bool Parser::parseTemplateParameter(TemplateParameterAST *&node) -{ - std::size_t start = token_stream.cursor(); - TemplateParameterAST *ast = CreateNode(_M_pool); - - int tk = token_stream.lookAhead(); - - if ((tk == Token_class || tk == Token_typename || tk == Token_template) - && parseTypeParameter(ast->type_parameter)) - { - // nothing to do - } - else if (!parseParameterDeclaration(ast->parameter_declaration)) - return false; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseTypeParameter(TypeParameterAST *&node) -{ - std::size_t start = token_stream.cursor(); - - TypeParameterAST *ast = CreateNode(_M_pool); - ast->type = start; - - switch(token_stream.lookAhead()) - { - case Token_class: - case Token_typename: - { - token_stream.nextToken(); // skip class - - // parse optional name - if(parseName(ast->name, true)) - { - if (token_stream.lookAhead() == '=') - { - token_stream.nextToken(); - - if(!parseTypeId(ast->type_id)) - { - //syntaxError(); - token_stream.rewind((int) start); - return false; - } - } - else if (token_stream.lookAhead() != ',' - && token_stream.lookAhead() != '>') - { - token_stream.rewind((int) start); - return false; - } - } - } - break; - - case Token_template: - { - token_stream.nextToken(); // skip template - ADVANCE('<', "<"); - - if (!parseTemplateParameterList(ast->template_parameters)) - return false; - - ADVANCE('>', ">"); - - if (token_stream.lookAhead() == Token_class) - token_stream.nextToken(); - - // parse optional name - if (parseName(ast->name, true)) - { - if (token_stream.lookAhead() == '=') - { - token_stream.nextToken(); - - if (!parseTypeId(ast->type_id)) - { - syntaxError(); - return false; - } - } - } - - if (token_stream.lookAhead() == '=') - { - token_stream.nextToken(); - - parseName(ast->template_name, true); - } - } - break; - - default: - return false; - - } // end switch - - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - return true; -} - -bool Parser::parseStorageClassSpecifier(const ListNode *&node) -{ - std::size_t start = token_stream.cursor(); - - int tk; - while (0 != (tk = token_stream.lookAhead()) - && (tk == Token_friend || tk == Token_auto - || tk == Token_register || tk == Token_static - || tk == Token_extern || tk == Token_mutable)) - { - node = snoc(node, token_stream.cursor(), _M_pool); - token_stream.nextToken(); - } - - return start != token_stream.cursor(); -} - -bool Parser::parseFunctionSpecifier(const ListNode *&node) -{ - std::size_t start = token_stream.cursor(); - - int tk; - while (0 != (tk = token_stream.lookAhead()) - && (tk == Token_inline || tk == Token_virtual - || tk == Token_explicit || tk == Token_Q_INVOKABLE)) - { - node = snoc(node, token_stream.cursor(), _M_pool); - token_stream.nextToken(); - } - - return start != token_stream.cursor(); -} - -bool Parser::parseTypeId(TypeIdAST *&node) -{ - /// @todo implement the AST for typeId - std::size_t start = token_stream.cursor(); - - TypeSpecifierAST *spec = 0; - if (!parseTypeSpecifier(spec)) - { - token_stream.rewind((int) start); - return false; - } - - DeclaratorAST *decl = 0; - parseAbstractDeclarator(decl); - - TypeIdAST *ast = CreateNode(_M_pool); - ast->type_specifier = spec; - ast->declarator = decl; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseInitDeclaratorList(const ListNode *&node) -{ - InitDeclaratorAST *decl = 0; - if (!parseInitDeclarator(decl)) - return false; - - node = snoc(node, decl, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - - if (!parseInitDeclarator(decl)) - { - syntaxError(); - break; - } - node = snoc(node, decl, _M_pool); - } - - return true; -} - -bool Parser::parseParameterDeclarationClause(ParameterDeclarationClauseAST *&node) -{ - std::size_t start = token_stream.cursor(); - - ParameterDeclarationClauseAST *ast - = CreateNode(_M_pool); - - if (!parseParameterDeclarationList(ast->parameter_declarations)) - { - if (token_stream.lookAhead() == ')') - goto good; - - if (token_stream.lookAhead() == Token_ellipsis - && token_stream.lookAhead(1) == ')') - { - ast->ellipsis = token_stream.cursor(); - goto good; - } - - return false; - } - - good: - - if (token_stream.lookAhead() == Token_ellipsis) - { - ast->ellipsis = token_stream.cursor(); - token_stream.nextToken(); - } - - /// @todo add ellipsis - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseParameterDeclarationList(const ListNode *&node) -{ - std::size_t start = token_stream.cursor(); - - ParameterDeclarationAST *param = 0; - if (!parseParameterDeclaration(param)) - { - token_stream.rewind((int) start); - return false; - } - - node = snoc(node, param, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - - if (token_stream.lookAhead() == Token_ellipsis) - break; - - if (!parseParameterDeclaration(param)) - { - token_stream.rewind((int) start); - return false; - } - node = snoc(node, param, _M_pool); - } - - return true; -} - -bool Parser::parseParameterDeclaration(ParameterDeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - const ListNode *storage = 0; - parseStorageClassSpecifier(storage); - - // parse decl spec - TypeSpecifierAST *spec = 0; - if (!parseTypeSpecifier(spec)) - { - token_stream.rewind((int) start); - return false; - } - - int index = (int) token_stream.cursor(); - - DeclaratorAST *decl = 0; - if (!parseDeclarator(decl)) - { - token_stream.rewind((int) index); - - // try with abstract declarator - parseAbstractDeclarator(decl); - } - - ExpressionAST *expr = 0; - if (token_stream.lookAhead() == '=') - { - token_stream.nextToken(); - if (!parseLogicalOrExpression(expr,true)) - { - //reportError(("Expression expected")); - } - } - - ParameterDeclarationAST *ast = CreateNode(_M_pool); - ast->type_specifier = spec; - ast->declarator = decl; - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parse_Attribute__() { - token_stream.nextToken(); - - ADVANCE('(', "("); - - ExpressionAST *expr = 0; - parseExpression(expr); - - if (token_stream.lookAhead() != ')') - { - reportError(("')' expected")); - return false; - } - else - { - token_stream.nextToken(); - } - return true; -} - -QString Parser::tokenText(AST *ast) const -{ - if (ast == 0) return QString(); - - int start_token = ast->start_token; - int end_token = ast->end_token; - - Token const &tk = token_stream.token (start_token); - Token const &end_tk = token_stream.token(end_token); - - return QString::fromLatin1 (&tk.text[tk.position],(int) (end_tk.position - tk.position)).trimmed(); -} - -bool Parser::parseForwardDeclarationSpecifier(TypeSpecifierAST *&node) -{ - std::size_t start = token_stream.cursor(); - - int kind = token_stream.lookAhead(); - if (kind != Token_class && kind != Token_struct && kind != Token_union) - return false; - - std::size_t class_key = token_stream.cursor(); - token_stream.nextToken(); - - NameAST *name = 0; - if (!parseName(name, false)) { - token_stream.rewind((int) start); - return false; - } - - BaseClauseAST *bases = 0; - if (token_stream.lookAhead() == ':') - { - if (!parseBaseClause(bases)) - { - token_stream.rewind((int) start); - return false; - } - } - - if (token_stream.lookAhead() != ';') - { - token_stream.rewind((int) start); - return false; - } - - ForwardDeclarationSpecifierAST *ast = CreateNode(_M_pool); - ast->class_key = class_key; - ast->name = name; - ast->base_clause = bases; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseClassSpecifier(TypeSpecifierAST *&node) -{ - std::size_t start = token_stream.cursor(); - - int kind = token_stream.lookAhead(); - if (kind != Token_class && kind != Token_struct && kind != Token_union) - return false; - - std::size_t class_key = token_stream.cursor(); - token_stream.nextToken(); - - WinDeclSpecAST *winDeclSpec = 0; - parseWinDeclSpec(winDeclSpec); - - if (token_stream.lookAhead() == Token___attribute__) { - parse_Attribute__(); - } - - while (token_stream.lookAhead() == Token_identifier - && token_stream.lookAhead(1) == Token_identifier) - { - token_stream.nextToken(); - } - - NameAST *name = 0; - parseName(name, true); - - BaseClauseAST *bases = 0; - - if (token_stream.lookAhead() == ':') - { - if (!parseBaseClause(bases)) - { - skipUntil('{'); - } - } - - if (token_stream.lookAhead() != '{') - { - - token_stream.rewind((int) start); - return false; - } - - ADVANCE('{', "{"); - - ClassSpecifierAST *ast = CreateNode(_M_pool); - ast->win_decl_specifiers = winDeclSpec; - ast->class_key = class_key; - ast->name = name; - ast->base_clause = bases; - - while (token_stream.lookAhead()) - { - if (token_stream.lookAhead() == '}') - break; - - std::size_t startDecl = token_stream.cursor(); - - DeclarationAST *memSpec = 0; - if (!parseMemberSpecification(memSpec)) - { - if (startDecl == token_stream.cursor()) - token_stream.nextToken(); // skip at least one token - skipUntilDeclaration(); - } - else - ast->member_specs = snoc(ast->member_specs, memSpec, _M_pool); - } - - ADVANCE_NR('}', "}"); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseAccessSpecifier(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - const ListNode *specs = 0; - - bool done = false; - while (!done) - { - switch(token_stream.lookAhead()) - { - case Token_signals: - case Token_slots: - case Token_k_dcop: - case Token_k_dcop_signals: - case Token_public: - case Token_protected: - case Token_private: - specs = snoc(specs, token_stream.cursor(), _M_pool); - token_stream.nextToken(); - break; - - default: - done = true; - break; - } - } - - if (!specs) - return false; - - ADVANCE(':', ":"); - - AccessSpecifierAST *ast = CreateNode(_M_pool); - ast->specs = specs; - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseMemberSpecification(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (token_stream.lookAhead() == ';') - { - token_stream.nextToken(); - return true; - } - else if (token_stream.lookAhead() == Token_Q_OBJECT || token_stream.lookAhead() == Token_K_DCOP) - { - token_stream.nextToken(); - return true; - } - else if (parseTypedef(node)) - { - return true; - } - else if (parseUsing(node)) - { - return true; - } - else if (parseTemplateDeclaration(node)) - { - return true; - } - else if (parseAccessSpecifier(node)) - { - return true; - } - else if (parseQ_PROPERTY(node)) - { - return true; - } - else if (parseQ_ENUMS(node)) - { - return true; - } - - token_stream.rewind((int) start); - - const ListNode *cv = 0; - parseCvQualify(cv); - - const ListNode *storageSpec = 0; - parseStorageClassSpecifier(storageSpec); - - parseCvQualify(cv); - - TypeSpecifierAST *spec = 0; - if (parseEnumSpecifier(spec) || parseClassSpecifier(spec)) - { - parseCvQualify(cv); - spec->cv = cv; - - const ListNode *declarators = 0; - parseInitDeclaratorList(declarators); - ADVANCE(';', ";"); - - SimpleDeclarationAST *ast = CreateNode(_M_pool); - ast->type_specifier = spec; - ast->init_declarators = declarators; - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - - token_stream.rewind((int) start); - return parseDeclarationInternal(node); -} - -bool Parser::parseCtorInitializer(CtorInitializerAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(':'); - - CtorInitializerAST *ast = CreateNode(_M_pool); - ast->colon = start; - - if (!parseMemInitializerList(ast->member_initializers)) - { - reportError(("Member initializers expected")); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseElaboratedTypeSpecifier(TypeSpecifierAST *&node) -{ - std::size_t start = token_stream.cursor(); - - int tk = token_stream.lookAhead(); - if (tk == Token_class || - tk == Token_struct || - tk == Token_union || - tk == Token_enum || - tk == Token_typename) - { - std::size_t type = token_stream.cursor(); - token_stream.nextToken(); - - NameAST *name = 0; - if (parseName(name, true)) - { - ElaboratedTypeSpecifierAST *ast - = CreateNode(_M_pool); - - ast->type = type; - ast->name = name; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - } - - token_stream.rewind((int) start); - return false; -} - -bool Parser::parseExceptionSpecification(ExceptionSpecificationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_throw); - ADVANCE('(', "("); - - ExceptionSpecificationAST *ast - = CreateNode(_M_pool); - - if (token_stream.lookAhead() == Token_ellipsis) - { - ast->ellipsis = token_stream.cursor(); - token_stream.nextToken(); - } - else - { - parseTypeIdList(ast->type_ids); - } - - ADVANCE(')', ")"); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseEnumerator(EnumeratorAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_identifier); - std::size_t id = token_stream.cursor() - 1; - - EnumeratorAST *ast = CreateNode(_M_pool); - ast->id = id; - - if (token_stream.lookAhead() == '=') - { - token_stream.nextToken(); - - if (!parseConstantExpression(ast->expression)) - { - reportError(("Constant expression expected")); - } - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseInitDeclarator(InitDeclaratorAST *&node) -{ - std::size_t start = token_stream.cursor(); - - DeclaratorAST *decl = 0; - if (!parseDeclarator(decl)) - { - return false; - } - - if (token_stream.lookAhead(0) == Token_asm) - { - token_stream.nextToken(); - skip('(', ')'); - token_stream.nextToken(); - } - - InitializerAST *init = 0; - parseInitializer(init); - - InitDeclaratorAST *ast = CreateNode(_M_pool); - ast->declarator = decl; - ast->initializer = init; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseBaseClause(BaseClauseAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(':'); - - BaseSpecifierAST *baseSpec = 0; - if (!parseBaseSpecifier(baseSpec)) - return false; - - BaseClauseAST *ast = CreateNode(_M_pool); - ast->base_specifiers = snoc(ast->base_specifiers, baseSpec, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - - if (!parseBaseSpecifier(baseSpec)) - { - reportError(("Base class specifier expected")); - break; - } - ast->base_specifiers = snoc(ast->base_specifiers, baseSpec, _M_pool); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseInitializer(InitializerAST *&node) -{ - std::size_t start = token_stream.cursor(); - - int tk = token_stream.lookAhead(); - if (tk != '=' && tk != '(') - return false; - - InitializerAST *ast = CreateNode(_M_pool); - - if (tk == '=') - { - token_stream.nextToken(); - - if (!parseInitializerClause(ast->initializer_clause)) - { - reportError(("Initializer clause expected")); - } - } - else if (tk == '(') - { - token_stream.nextToken(); - parseCommaExpression(ast->expression); - CHECK(')'); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseMemInitializerList(const ListNode *&node) -{ - MemInitializerAST *init = 0; - - if (!parseMemInitializer(init)) - return false; - - node = snoc(node, init, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - - if (!parseMemInitializer(init)) - break; - - node = snoc(node, init, _M_pool); - } - - return true; -} - -bool Parser::parseMemInitializer(MemInitializerAST *&node) -{ - std::size_t start = token_stream.cursor(); - - NameAST *initId = 0; - if (!parseName(initId, true)) - { - reportError(("Identifier expected")); - return false; - } - - ADVANCE('(', "("); - ExpressionAST *expr = 0; - parseCommaExpression(expr); - ADVANCE(')', ")"); - - MemInitializerAST *ast = CreateNode(_M_pool); - ast->initializer_id = initId; - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseTypeIdList(const ListNode *&node) -{ - TypeIdAST *typeId = 0; - if (!parseTypeId(typeId)) - return false; - - node = snoc(node, typeId, _M_pool); - - while (token_stream.lookAhead() == ',') - { - token_stream.nextToken(); - if (parseTypeId(typeId)) - { - node = snoc(node, typeId, _M_pool); - } - else - { - reportError(("Type id expected")); - break; - } - } - - return true; -} - -bool Parser::parseBaseSpecifier(BaseSpecifierAST *&node) -{ - std::size_t start = token_stream.cursor(); - - BaseSpecifierAST *ast = CreateNode(_M_pool); - - if (token_stream.lookAhead() == Token_virtual) - { - ast->virt = token_stream.cursor(); - token_stream.nextToken(); - - int tk = token_stream.lookAhead(); - if (tk == Token_public || tk == Token_protected - || tk == Token_private) - { - ast->access_specifier = token_stream.cursor(); - token_stream.nextToken(); - } - } - else - { - int tk = token_stream.lookAhead(); - if (tk == Token_public || tk == Token_protected - || tk == Token_private) - { - ast->access_specifier = token_stream.cursor(); - token_stream.nextToken(); - } - - if (token_stream.lookAhead() == Token_virtual) - { - ast->virt = token_stream.cursor(); - token_stream.nextToken(); - } - } - - if (!parseName(ast->name, true)) - reportError(("Class name expected")); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseInitializerClause(InitializerClauseAST *&node) -{ - std::size_t start = token_stream.cursor(); - - InitializerClauseAST *ast = CreateNode(_M_pool); - - if (token_stream.lookAhead() == '{') - { -#if defined(__GNUC__) -#warning "implement me" -#endif - if (skip('{','}')) - token_stream.nextToken(); - else - reportError(("} missing")); - } - else - { - if (!parseAssignmentExpression(ast->expression)) - { - //reportError(("Expression expected")); - } - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parsePtrToMember(PtrToMemberAST *&node) -{ -#if defined(__GNUC__) -#warning "implemente me (AST)" -#endif - - std::size_t start = token_stream.cursor(); - - std::size_t global_scope = 0; - if (token_stream.lookAhead() == Token_scope) - { - global_scope = token_stream.cursor(); - token_stream.nextToken(); - } - - UnqualifiedNameAST *name = 0; - while (token_stream.lookAhead() == Token_identifier) - { - if (!parseUnqualifiedName(name)) - break; - - if (token_stream.lookAhead() == Token_scope - && token_stream.lookAhead(1) == '*') - { - token_stream.nextToken(); - token_stream.nextToken(); - - PtrToMemberAST *ast = CreateNode(_M_pool); - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - - if (token_stream.lookAhead() == Token_scope) - token_stream.nextToken(); - } - - token_stream.rewind((int) start); - return false; -} - -bool Parser::parseUnqualifiedName(UnqualifiedNameAST *&node, - bool parseTemplateId) -{ - std::size_t start = token_stream.cursor(); - - std::size_t tilde = 0; - std::size_t id = 0; - OperatorFunctionIdAST *operator_id = 0; - - if (token_stream.lookAhead() == Token_identifier) - { - id = token_stream.cursor(); - token_stream.nextToken(); - } - else if (token_stream.lookAhead() == '~' - && token_stream.lookAhead(1) == Token_identifier) - { - tilde = token_stream.cursor(); - token_stream.nextToken(); // skip ~ - - id = token_stream.cursor(); - token_stream.nextToken(); // skip classname - } - else if (token_stream.lookAhead() == Token_operator) - { - if (!parseOperatorFunctionId(operator_id)) - return false; - } - else - { - return false; - } - - UnqualifiedNameAST *ast = CreateNode(_M_pool); - ast->tilde = tilde; - ast->id = id; - ast->operator_id = operator_id; - - if (parseTemplateId && !tilde) - { - std::size_t index = token_stream.cursor(); - - if (token_stream.lookAhead() == '<') - { - token_stream.nextToken(); - - // optional template arguments - parseTemplateArgumentList(ast->template_arguments); - - if (token_stream.lookAhead() == '>') - { - token_stream.nextToken(); - } - else - { - ast->template_arguments = 0; - token_stream.rewind((int) index); - } - } - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseStringLiteral(StringLiteralAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (token_stream.lookAhead() != Token_string_literal) - return false; - - StringLiteralAST *ast = CreateNode(_M_pool); - - while (token_stream.lookAhead() == Token_string_literal) - { - ast->literals = snoc(ast->literals, token_stream.cursor(), _M_pool); - token_stream.nextToken(); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseExpressionStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - ExpressionAST *expr = 0; - parseCommaExpression(expr); - - ADVANCE(';', ";"); - - ExpressionStatementAST *ast = CreateNode(_M_pool); - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - switch(token_stream.lookAhead()) - { - case Token_while: - return parseWhileStatement(node); - - case Token_do: - return parseDoStatement(node); - - case Token_for: - return parseForStatement(node); - - case Token_if: - return parseIfStatement(node); - - case Token_switch: - return parseSwitchStatement(node); - - case Token_try: - return parseTryBlockStatement(node); - - case Token_case: - case Token_default: - return parseLabeledStatement(node); - - case Token_break: - case Token_continue: -#if defined(__GNUC__) -#warning "implement me" -#endif - token_stream.nextToken(); - ADVANCE(';', ";"); - return true; - - case Token_goto: -#if defined(__GNUC__) -#warning "implement me" -#endif - token_stream.nextToken(); - ADVANCE(Token_identifier, "identifier"); - ADVANCE(';', ";"); - return true; - - case Token_return: - { - token_stream.nextToken(); - ExpressionAST *expr = 0; - parseCommaExpression(expr); - - ADVANCE(';', ";"); - - ReturnStatementAST *ast = CreateNode(_M_pool); - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case '{': - return parseCompoundStatement(node); - - case Token_identifier: - if (parseLabeledStatement(node)) - return true; - break; - } - - return parseExpressionOrDeclarationStatement(node); -} - -bool Parser::parseExpressionOrDeclarationStatement(StatementAST *&node) -{ - bool blocked = block_errors(true); - - std::size_t start = token_stream.cursor(); - - StatementAST *decl_ast = 0; - bool maybe_amb = parseDeclarationStatement(decl_ast); - maybe_amb &= token_stream.kind(token_stream.cursor() - 1) == ';'; - - std::size_t end = token_stream.cursor(); - - token_stream.rewind((int) start); - StatementAST *expr_ast = 0; - maybe_amb &= parseExpressionStatement(expr_ast); - maybe_amb &= token_stream.kind(token_stream.cursor() - 1) == ';'; - - if (maybe_amb) - { - Q_ASSERT(decl_ast != 0 && expr_ast != 0); - ExpressionOrDeclarationStatementAST *ast - = CreateNode(_M_pool); - ast->declaration = decl_ast; - ast->expression = expr_ast; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - else - { - token_stream.rewind((int) std::max(end, token_stream.cursor())); - - node = decl_ast; - if (!node) - node = expr_ast; - } - - block_errors(blocked); - - if (!node) - syntaxError(); - - return node != 0; -} - -bool Parser::parseCondition(ConditionAST *&node, bool initRequired) -{ - std::size_t start = token_stream.cursor(); - - ConditionAST *ast = CreateNode(_M_pool); - TypeSpecifierAST *spec = 0; - - if (parseTypeSpecifier(spec)) - { - ast->type_specifier = spec; - - std::size_t declarator_start = token_stream.cursor(); - - DeclaratorAST *decl = 0; - if (!parseDeclarator(decl)) - { - token_stream.rewind((int) declarator_start); - if (!initRequired && !parseAbstractDeclarator(decl)) - decl = 0; - } - - if (decl && (!initRequired || token_stream.lookAhead() == '=')) - { - ast->declarator = decl; - - if (token_stream.lookAhead() == '=') - { - token_stream.nextToken(); - - parseExpression(ast->expression); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - } - - token_stream.rewind((int) start); - - if (!parseCommaExpression(ast->expression)) - return false; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - - -bool Parser::parseWhileStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - ADVANCE(Token_while, "while"); - ADVANCE('(' , "("); - - ConditionAST *cond = 0; - if (!parseCondition(cond)) - { - reportError(("condition expected")); - return false; - } - ADVANCE(')', ")"); - - StatementAST *body = 0; - if (!parseStatement(body)) - { - reportError(("statement expected")); - return false; - } - - WhileStatementAST *ast = CreateNode(_M_pool); - ast->condition = cond; - ast->statement = body; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseDoStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - ADVANCE(Token_do, "do"); - - StatementAST *body = 0; - if (!parseStatement(body)) - { - reportError(("statement expected")); - //return false; - } - - ADVANCE_NR(Token_while, "while"); - ADVANCE_NR('(' , "("); - - ExpressionAST *expr = 0; - if (!parseCommaExpression(expr)) - { - reportError(("expression expected")); - //return false; - } - - ADVANCE_NR(')', ")"); - ADVANCE_NR(';', ";"); - - DoStatementAST *ast = CreateNode(_M_pool); - ast->statement = body; - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseForStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - ADVANCE(Token_for, "for"); - ADVANCE('(', "("); - - StatementAST *init = 0; - if (!parseForInitStatement(init)) - { - reportError(("for initialization expected")); - return false; - } - - ConditionAST *cond = 0; - parseCondition(cond); - ADVANCE(';', ";"); - - ExpressionAST *expr = 0; - parseCommaExpression(expr); - ADVANCE(')', ")"); - - StatementAST *body = 0; - if (!parseStatement(body)) - return false; - - ForStatementAST *ast = CreateNode(_M_pool); - ast->init_statement = init; - ast->condition = cond; - ast->expression = expr; - ast->statement = body; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseForInitStatement(StatementAST *&node) -{ - if (parseDeclarationStatement(node)) - return true; - - return parseExpressionStatement(node); -} - -bool Parser::parseCompoundStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK('{'); - - CompoundStatementAST *ast = CreateNode(_M_pool); - - while (token_stream.lookAhead()) - { - if (token_stream.lookAhead() == '}') - break; - - std::size_t startStmt = token_stream.cursor(); - - StatementAST *stmt = 0; - if (!parseStatement(stmt)) - { - if (startStmt == token_stream.cursor()) - token_stream.nextToken(); - - skipUntilStatement(); - } - else - { - ast->statements = snoc(ast->statements, stmt, _M_pool); - } - } - - ADVANCE_NR('}', "}"); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseIfStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - ADVANCE(Token_if, "if"); - - ADVANCE('(' , "("); - - IfStatementAST *ast = CreateNode(_M_pool); - - ConditionAST *cond = 0; - if (!parseCondition(cond)) - { - reportError(("condition expected")); - return false; - } - ADVANCE(')', ")"); - - StatementAST *stmt = 0; - if (!parseStatement(stmt)) - { - reportError(("statement expected")); - return false; - } - - ast->condition = cond; - ast->statement = stmt; - - if (token_stream.lookAhead() == Token_else) - { - token_stream.nextToken(); - - if (!parseStatement(ast->else_statement)) - { - reportError(("statement expected")); - return false; - } - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseSwitchStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - ADVANCE(Token_switch, "switch"); - - ADVANCE('(' , "("); - - ConditionAST *cond = 0; - if (!parseCondition(cond)) - { - reportError(("condition expected")); - return false; - } - ADVANCE(')', ")"); - - StatementAST *stmt = 0; - if (!parseCompoundStatement(stmt)) - { - syntaxError(); - return false; - } - - SwitchStatementAST *ast = CreateNode(_M_pool); - ast->condition = cond; - ast->statement = stmt; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseLabeledStatement(StatementAST *&node) -{ - switch(token_stream.lookAhead()) - { - case Token_identifier: - case Token_default: - if (token_stream.lookAhead(1) == ':') - { - token_stream.nextToken(); - token_stream.nextToken(); - - StatementAST *stmt = 0; - if (parseStatement(stmt)) - { - node = stmt; - return true; - } - } - break; - - case Token_case: - { - token_stream.nextToken(); - ExpressionAST *expr = 0; - if (!parseConstantExpression(expr)) - { - reportError(("expression expected")); - } - else if (token_stream.lookAhead() == Token_ellipsis) - { - token_stream.nextToken(); - - ExpressionAST *expr2 = 0; - if (!parseConstantExpression(expr2)) - { - reportError(("expression expected")); - } - } - ADVANCE(':', ":"); - - StatementAST *stmt = 0; - if (parseStatement(stmt)) - { - node = stmt; - return true; - } - } - break; - - } - - return false; -} - -bool Parser::parseBlockDeclaration(DeclarationAST *&node) -{ - switch(token_stream.lookAhead()) - { - case Token_typedef: - return parseTypedef(node); - case Token_using: - return parseUsing(node); - case Token_asm: - return parseAsmDefinition(node); - case Token_namespace: - return parseNamespaceAliasDefinition(node); - } - - std::size_t start = token_stream.cursor(); - - const ListNode *cv = 0; - parseCvQualify(cv); - - const ListNode *storageSpec = 0; - parseStorageClassSpecifier(storageSpec); - - parseCvQualify(cv); - - TypeSpecifierAST *spec = 0; - if (!parseTypeSpecifierOrClassSpec(spec)) - { // replace with simpleTypeSpecifier?!?! - token_stream.rewind((int) start); - return false; - } - - parseCvQualify(cv); - spec->cv = cv; - - const ListNode *declarators = 0; - parseInitDeclaratorList(declarators); - - if (token_stream.lookAhead() != ';') - { - token_stream.rewind((int) start); - return false; - } - token_stream.nextToken(); - - SimpleDeclarationAST *ast = CreateNode(_M_pool); - ast->type_specifier = spec; - ast->init_declarators = declarators; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseNamespaceAliasDefinition(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_namespace); - - NamespaceAliasDefinitionAST *ast - = CreateNode(_M_pool); - - ADVANCE(Token_identifier, "identifier"); - ast->namespace_name = token_stream.cursor() - 1; - - ADVANCE('=', "="); - - if (!parseName(ast->alias_name)) - { - reportError(("Namespace name expected")); - } - - ADVANCE(';', ";"); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseDeclarationStatement(StatementAST *&node) -{ - std::size_t start = token_stream.cursor(); - - DeclarationAST *decl = 0; - if (!parseBlockDeclaration(decl)) - return false; - - DeclarationStatementAST *ast = CreateNode(_M_pool); - ast->declaration = decl; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseDeclarationInternal(DeclarationAST *&node) -{ - std::size_t start = token_stream.cursor(); - - // that is for the case '__declspec(dllexport) int ...' or - // '__declspec(dllexport) inline int ...', etc. - WinDeclSpecAST *winDeclSpec = 0; - parseWinDeclSpec(winDeclSpec); - - const ListNode *funSpec = 0; - bool hasFunSpec = parseFunctionSpecifier(funSpec); - - const ListNode *cv = 0; - parseCvQualify(cv); - - const ListNode *storageSpec = 0; - bool hasStorageSpec = parseStorageClassSpecifier(storageSpec); - - if (hasStorageSpec && !hasFunSpec) - hasFunSpec = parseFunctionSpecifier(funSpec); - - // that is for the case 'friend __declspec(dllexport) ....' - parseWinDeclSpec(winDeclSpec); - - if (!cv) - parseCvQualify(cv); - - int index = (int) token_stream.cursor(); - NameAST *name = 0; - if (parseName(name, true) && token_stream.lookAhead() == '(') - { - // no type specifier, maybe a constructor or a cast operator?? - - token_stream.rewind((int) index); - - InitDeclaratorAST *declarator = 0; - if (parseInitDeclarator(declarator)) - { - switch(token_stream.lookAhead()) - { - case ';': - { - token_stream.nextToken(); - - SimpleDeclarationAST *ast - = CreateNode(_M_pool); - - ast->storage_specifiers = storageSpec; - ast->function_specifiers = funSpec; - ast->init_declarators = snoc(ast->init_declarators, - declarator, _M_pool); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case ':': - { - CtorInitializerAST *ctorInit = 0; - StatementAST *funBody = 0; - - if (parseCtorInitializer(ctorInit) - && parseFunctionBody(funBody)) - { - FunctionDefinitionAST *ast - = CreateNode(_M_pool); - - ast->storage_specifiers = storageSpec; - ast->function_specifiers = funSpec; - ast->init_declarator = declarator; - ast->function_body = funBody; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - } - break; - - case '{': - { - StatementAST *funBody = 0; - if (parseFunctionBody(funBody)) - { - FunctionDefinitionAST *ast - = CreateNode(_M_pool); - - ast->storage_specifiers = storageSpec; - ast->function_specifiers = funSpec; - ast->init_declarator = declarator; - ast->function_body = funBody; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - } - break; - - case '(': - case '[': - // ops!! it seems a declarator - goto start_decl; - break; - } - - } - } - - start_decl: - token_stream.rewind((int) index); - - if (token_stream.lookAhead() == Token_const - && token_stream.lookAhead(1) == Token_identifier - && token_stream.lookAhead(2) == '=') - { - // constant definition - token_stream.nextToken(); // skip const - - const ListNode *declarators = 0; - if (!parseInitDeclaratorList(declarators)) - { - syntaxError(); - return false; - } - - ADVANCE(';', ";"); - -#if defined(__GNUC__) -#warning "mark the ast as constant" -#endif - SimpleDeclarationAST *ast = CreateNode(_M_pool); - ast->init_declarators = declarators; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - - TypeSpecifierAST *spec = 0; - if (parseTypeSpecifier(spec)) - { - Q_ASSERT(spec != 0); - - if (!hasFunSpec) - parseFunctionSpecifier(funSpec); // e.g. "void inline" - - spec->cv = cv; - - const ListNode *declarators = 0; - InitDeclaratorAST *decl = 0; - int startDeclarator = (int) token_stream.cursor(); - bool maybeFunctionDefinition = false; - - if (token_stream.lookAhead() != ';') - { - if (parseInitDeclarator(decl) && token_stream.lookAhead() == '{') - { - // function definition - maybeFunctionDefinition = true; - } - else - { - token_stream.rewind((int) startDeclarator); - if (!parseInitDeclaratorList(declarators)) - { - syntaxError(); - return false; - } - } - } - - switch(token_stream.lookAhead()) - { - case ';': - { - token_stream.nextToken(); - SimpleDeclarationAST *ast - = CreateNode(_M_pool); - - ast->storage_specifiers = storageSpec; - ast->function_specifiers = funSpec; - ast->type_specifier = spec; - ast->win_decl_specifiers = winDeclSpec; - ast->init_declarators = declarators; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case '{': - { - if (!maybeFunctionDefinition) - { - syntaxError(); - return false; - } - - StatementAST *funBody = 0; - if (parseFunctionBody(funBody)) - { - FunctionDefinitionAST *ast - = CreateNode(_M_pool); - - ast->win_decl_specifiers = winDeclSpec; - ast->storage_specifiers = storageSpec; - ast->function_specifiers = funSpec; - ast->type_specifier = spec; - ast->init_declarator = decl; - ast->function_body = funBody; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - } - break; - } // end switch - } - - syntaxError(); - return false; -} - -bool Parser::skipFunctionBody(StatementAST *&) -{ -#if defined(__GNUC__) -#warning "Parser::skipFunctionBody() -- implement me" -#endif - Q_ASSERT(0); // ### not implemented - return 0; -} - -bool Parser::parseFunctionBody(StatementAST *&node) -{ - if (control->skipFunctionBody()) - return skipFunctionBody(node); - - return parseCompoundStatement(node); -} - -bool Parser::parseTypeSpecifierOrClassSpec(TypeSpecifierAST *&node) -{ - if (parseClassSpecifier(node)) - return true; - else if (parseEnumSpecifier(node)) - return true; - else if (parseTypeSpecifier(node)) - return true; - - return false; -} - -bool Parser::parseTryBlockStatement(StatementAST *&node) -{ -#if defined(__GNUC__) -#warning "implement me" -#endif - CHECK(Token_try); - - StatementAST *stmt = 0; - if (!parseCompoundStatement(stmt)) - { - syntaxError(); - return false; - } - - if (token_stream.lookAhead() != Token_catch) - { - reportError(("catch expected")); - return false; - } - - while (token_stream.lookAhead() == Token_catch) - { - token_stream.nextToken(); - ADVANCE('(', "("); - ConditionAST *cond = 0; - if (token_stream.lookAhead() == Token_ellipsis) - { - token_stream.nextToken(); - } - else if (!parseCondition(cond, false)) - { - reportError(("condition expected")); - return false; - } - ADVANCE(')', ")"); - - StatementAST *body = 0; - if (!parseCompoundStatement(body)) - { - syntaxError(); - return false; - } - } - - node = stmt; - return true; -} - -bool Parser::parsePrimaryExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - PrimaryExpressionAST *ast = CreateNode(_M_pool); - - switch(token_stream.lookAhead()) - { - case Token_string_literal: - parseStringLiteral(ast->literal); - break; - - case Token_number_literal: - case Token_char_literal: - case Token_true: - case Token_false: - case Token_this: - ast->token = token_stream.cursor(); - token_stream.nextToken(); - break; - - case '(': - token_stream.nextToken(); - - if (token_stream.lookAhead() == '{') - { - if (!parseCompoundStatement(ast->expression_statement)) - return false; - } - else - { - if (!parseExpression(ast->sub_expression)) - return false; - } - - CHECK(')'); - break; - - default: - if (!parseName(ast->name)) - return false; - - break; - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - - -/* - postfix-expression-internal: - [ expression ] - ( expression-list [opt] ) - (.|->) template [opt] id-expression - (.|->) pseudo-destructor-name - ++ - -- -*/ -bool Parser::parsePostfixExpressionInternal(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - switch (token_stream.lookAhead()) - { - case '[': - { - token_stream.nextToken(); - ExpressionAST *expr = 0; - parseExpression(expr); - CHECK(']'); - - SubscriptExpressionAST *ast - = CreateNode(_M_pool); - - ast->subscript = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case '(': - { - token_stream.nextToken(); - ExpressionAST *expr = 0; - parseExpression(expr); - CHECK(')'); - - FunctionCallAST *ast = CreateNode(_M_pool); - ast->arguments = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case '.': - case Token_arrow: - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - std::size_t templ = 0; - if (token_stream.lookAhead() == Token_template) - { - templ = token_stream.cursor(); - token_stream.nextToken(); - } - - int saved = int(token_stream.cursor()); - NameAST *name = 0; - - if (parseName(name, true) && name->unqualified_name - && name->unqualified_name->template_arguments != 0 - && token_stream.lookAhead() == '(') { - // a template method call - // ### reverse the logic - } else { - token_stream.rewind(saved); - name = 0; - - if (! parseName (name, templ != 0)) - return false; - } - - ClassMemberAccessAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->name = name; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case Token_incr: - case Token_decr: - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - IncrDecrExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - default: - return false; - } -} - -/* - postfix-expression: - simple-type-specifier ( expression-list [opt] ) - primary-expression postfix-expression-internal* -*/ -bool Parser::parsePostfixExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - switch (token_stream.lookAhead()) - { - case Token_dynamic_cast: - case Token_static_cast: - case Token_reinterpret_cast: - case Token_const_cast: - { - std::size_t castOp = token_stream.cursor(); - token_stream.nextToken(); - - CHECK('<'); - TypeIdAST *typeId = 0; - parseTypeId(typeId); - CHECK('>'); - - CHECK('('); - ExpressionAST *expr = 0; - parseCommaExpression(expr); - CHECK(')'); - - CppCastExpressionAST *ast = CreateNode(_M_pool); - ast->op = castOp; - ast->type_id = typeId; - ast->expression = expr; - - ExpressionAST *e = 0; - while (parsePostfixExpressionInternal(e)) - { - ast->sub_expressions = snoc(ast->sub_expressions, e, _M_pool); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case Token_typename: - { - std::size_t token = token_stream.cursor(); - token_stream.nextToken(); - - NameAST* name = 0; - if (!parseName(name, true)) - return false; - - CHECK('('); - ExpressionAST *expr = 0; - parseCommaExpression(expr); - CHECK(')'); - - TypeIdentificationAST *ast = CreateNode(_M_pool); - ast->typename_token = token; - ast->name = name; - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case Token_typeid: - { - token_stream.nextToken(); - - CHECK('('); - TypeIdAST *typeId = 0; - parseTypeId(typeId); - CHECK(')'); - - TypeIdentificationAST *ast = CreateNode(_M_pool); - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - default: - break; - } - - std::size_t saved_pos = token_stream.cursor(); - - TypeSpecifierAST *typeSpec = 0; - ExpressionAST *expr = 0; - - // let's try to parse a type - NameAST *name = 0; - if (parseName(name, true)) - { - Q_ASSERT(name->unqualified_name != 0); - - bool has_template_args - = name->unqualified_name->template_arguments != 0; - - if (has_template_args && token_stream.lookAhead() == '(') - { - ExpressionAST *cast_expr = 0; - if (parseCastExpression(cast_expr) - && cast_expr->kind == AST::Kind_CastExpression) - { - token_stream.rewind((int) saved_pos); - parsePrimaryExpression(expr); - goto L_no_rewind; - } - } - } - - token_stream.rewind((int) saved_pos); - - L_no_rewind: - if (!expr && parseSimpleTypeSpecifier(typeSpec) - && token_stream.lookAhead() == '(') - { - token_stream.nextToken(); // skip '(' - parseCommaExpression(expr); - CHECK(')'); - } - else if (expr) - { - typeSpec = 0; - } - else - { - typeSpec = 0; - token_stream.rewind((int) start); - - if (!parsePrimaryExpression(expr)) - return false; - } - - const ListNode *sub_expressions = 0; - ExpressionAST *sub_expression = 0; - - while (parsePostfixExpressionInternal(sub_expression)) - sub_expressions = snoc(sub_expressions, sub_expression, _M_pool); - - if (sub_expressions || ! expr || (typeSpec && expr)) - { - PostfixExpressionAST *ast = CreateNode(_M_pool); - ast->type_specifier = typeSpec; - ast->expression = expr; - ast->sub_expressions = sub_expressions; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - else - node = expr; - - return true; -} - -bool Parser::parseUnaryExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - switch(token_stream.lookAhead()) - { - case Token_incr: - case Token_decr: - case '*': - case '&': - case '+': - case '-': - case '!': - case '~': - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *expr = 0; - if (!parseCastExpression(expr)) - return false; - - UnaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->expression = expr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - return true; - - case Token_sizeof: - { - std::size_t sizeof_token = token_stream.cursor(); - token_stream.nextToken(); - - SizeofExpressionAST *ast = CreateNode(_M_pool); - ast->sizeof_token = sizeof_token; - - std::size_t index = token_stream.cursor(); - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - if (parseTypeId(ast->type_id) && token_stream.lookAhead() == ')') - { - token_stream.nextToken(); // skip ) - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - return true; - } - - ast->type_id = 0; - token_stream.rewind((int) index); - } - - if (!parseUnaryExpression(ast->expression)) - return false; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - return true; - } - - default: - break; - } - - int token = token_stream.lookAhead(); - - if (token == Token_new - || (token == Token_scope && token_stream.lookAhead(1) == Token_new)) - return parseNewExpression(node); - - if (token == Token_delete - || (token == Token_scope && token_stream.lookAhead(1) == Token_delete)) - return parseDeleteExpression(node); - - return parsePostfixExpression(node); -} - -bool Parser::parseNewExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - NewExpressionAST *ast = CreateNode(_M_pool); - - if (token_stream.lookAhead() == Token_scope - && token_stream.lookAhead(1) == Token_new) - { - ast->scope_token = token_stream.cursor(); - token_stream.nextToken(); - } - - CHECK(Token_new); - ast->new_token = token_stream.cursor() - 1; - - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - parseCommaExpression(ast->expression); - CHECK(')'); - } - - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - parseTypeId(ast->type_id); - CHECK(')'); - } - else - { - parseNewTypeId(ast->new_type_id); - } - - parseNewInitializer(ast->new_initializer); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseNewTypeId(NewTypeIdAST *&node) -{ - std::size_t start = token_stream.cursor(); - - TypeSpecifierAST *typeSpec = 0; - if (!parseTypeSpecifier(typeSpec)) - return false; - - NewTypeIdAST *ast = CreateNode(_M_pool); - ast->type_specifier = typeSpec; - - parseNewDeclarator(ast->new_declarator); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseNewDeclarator(NewDeclaratorAST *&node) -{ - std::size_t start = token_stream.cursor(); - - NewDeclaratorAST *ast = CreateNode(_M_pool); - - PtrOperatorAST *ptrOp = 0; - if (parsePtrOperator(ptrOp)) - { - ast->ptr_op = ptrOp; - parseNewDeclarator(ast->sub_declarator); - } - - while (token_stream.lookAhead() == '[') - { - token_stream.nextToken(); - ExpressionAST *expr = 0; - parseExpression(expr); - ast->expressions = snoc(ast->expressions, expr, _M_pool); - ADVANCE(']', "]"); - } - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseNewInitializer(NewInitializerAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK('('); - - NewInitializerAST *ast = CreateNode(_M_pool); - - parseCommaExpression(ast->expression); - - CHECK(')'); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseDeleteExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - DeleteExpressionAST *ast = CreateNode(_M_pool); - - if (token_stream.lookAhead() == Token_scope - && token_stream.lookAhead(1) == Token_delete) - { - ast->scope_token = token_stream.cursor(); - token_stream.nextToken(); - } - - CHECK(Token_delete); - ast->delete_token = token_stream.cursor() - 1; - - if (token_stream.lookAhead() == '[') - { - ast->lbracket_token = token_stream.cursor(); - token_stream.nextToken(); - CHECK(']'); - ast->rbracket_token = token_stream.cursor() - 1; - } - - if (!parseCastExpression(ast->expression)) - return false; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseCastExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (token_stream.lookAhead() == '(') - { - token_stream.nextToken(); - - CastExpressionAST *ast = CreateNode(_M_pool); - - if (parseTypeId(ast->type_id)) - { - if (token_stream.lookAhead() == ')') - { - token_stream.nextToken(); - - if (parseCastExpression(ast->expression)) - { - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; - } - } - } - } - - token_stream.rewind((int) start); - return parseUnaryExpression(node); -} - -bool Parser::parsePmExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (!parseCastExpression(node) || !node) // ### fixme - return false; - - while (token_stream.lookAhead() == Token_ptrmem) - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseCastExpression(rightExpr)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseMultiplicativeExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (!parsePmExpression(node)) - return false; - - while (token_stream.lookAhead() == '*' - || token_stream.lookAhead() == '/' - || token_stream.lookAhead() == '%') - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parsePmExpression(rightExpr)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - - -bool Parser::parseAdditiveExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (!parseMultiplicativeExpression(node)) - return false; - - while (token_stream.lookAhead() == '+' || token_stream.lookAhead() == '-') - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseMultiplicativeExpression(rightExpr)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseShiftExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (!parseAdditiveExpression(node)) - return false; - - while (token_stream.lookAhead() == Token_shift) - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseAdditiveExpression(rightExpr)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseRelationalExpression(ExpressionAST *&node, bool templArgs) -{ - std::size_t start = token_stream.cursor(); - - if (!parseShiftExpression(node)) - return false; - - while (token_stream.lookAhead() == '<' - || (token_stream.lookAhead() == '>' && !templArgs) - || token_stream.lookAhead() == Token_leq - || token_stream.lookAhead() == Token_geq) - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseShiftExpression(rightExpr)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseEqualityExpression(ExpressionAST *&node, bool templArgs) -{ - std::size_t start = token_stream.cursor(); - - if (!parseRelationalExpression(node, templArgs)) - return false; - - while (token_stream.lookAhead() == Token_eq - || token_stream.lookAhead() == Token_not_eq) - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseRelationalExpression(rightExpr, templArgs)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseAndExpression(ExpressionAST *&node, bool templArgs) -{ - std::size_t start = token_stream.cursor(); - - if (!parseEqualityExpression(node, templArgs)) - return false; - - while (token_stream.lookAhead() == '&') - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseEqualityExpression(rightExpr, templArgs)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseExclusiveOrExpression(ExpressionAST *&node, bool templArgs) -{ - std::size_t start = token_stream.cursor(); - - if (!parseAndExpression(node, templArgs)) - return false; - - while (token_stream.lookAhead() == '^') - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseAndExpression(rightExpr, templArgs)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseInclusiveOrExpression(ExpressionAST *&node, bool templArgs) -{ - std::size_t start = token_stream.cursor(); - - if (!parseExclusiveOrExpression(node, templArgs)) - return false; - - while (token_stream.lookAhead() == '|') - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseExclusiveOrExpression(rightExpr, templArgs)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseLogicalAndExpression(ExpressionAST *&node, bool templArgs) -{ - std::size_t start = token_stream.cursor(); - - if (!parseInclusiveOrExpression(node, templArgs)) - return false; - - while (token_stream.lookAhead() == Token_and) - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseInclusiveOrExpression(rightExpr, templArgs)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseLogicalOrExpression(ExpressionAST *&node, bool templArgs) -{ - std::size_t start = token_stream.cursor(); - - if (!parseLogicalAndExpression(node, templArgs)) - return false; - - while (token_stream.lookAhead() == Token_or) - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseLogicalAndExpression(rightExpr, templArgs)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseConditionalExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (!parseLogicalOrExpression(node)) - return false; - - if (token_stream.lookAhead() == '?') - { - token_stream.nextToken(); - - ExpressionAST *leftExpr = 0; - if (!parseExpression(leftExpr)) - return false; - - CHECK(':'); - - ExpressionAST *rightExpr = 0; - if (!parseAssignmentExpression(rightExpr)) - return false; - - ConditionalExpressionAST *ast - = CreateNode(_M_pool); - - ast->condition = node; - ast->left_expression = leftExpr; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseAssignmentExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (token_stream.lookAhead() == Token_throw && !parseThrowExpression(node)) - return false; - else if (!parseConditionalExpression(node)) - return false; - - while (token_stream.lookAhead() == Token_assign - || token_stream.lookAhead() == '=') - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseConditionalExpression(rightExpr)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseConstantExpression(ExpressionAST *&node) -{ - return parseConditionalExpression(node); -} - -bool Parser::parseExpression(ExpressionAST *&node) -{ - return parseCommaExpression(node); -} - -bool Parser::parseCommaExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - if (!parseAssignmentExpression(node)) - return false; - - while (token_stream.lookAhead() == ',') - { - std::size_t op = token_stream.cursor(); - token_stream.nextToken(); - - ExpressionAST *rightExpr = 0; - if (!parseAssignmentExpression(rightExpr)) - return false; - - BinaryExpressionAST *ast = CreateNode(_M_pool); - ast->op = op; - ast->left_expression = node; - ast->right_expression = rightExpr; - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - } - - return true; -} - -bool Parser::parseThrowExpression(ExpressionAST *&node) -{ - std::size_t start = token_stream.cursor(); - - CHECK(Token_throw); - - ThrowExpressionAST *ast = CreateNode(_M_pool); - ast->throw_token = token_stream.cursor() - 1; - - parseAssignmentExpression(ast->expression); - - UPDATE_POS(ast, start, token_stream.cursor()); - node = ast; - - return true; -} - -bool Parser::parseQ_ENUMS(DeclarationAST *&node) -{ - if (token_stream.lookAhead() != Token_Q_ENUMS) - return false; - - if (token_stream.lookAhead(1) != '(') - return false; - - token_stream.nextToken(); - token_stream.nextToken(); - - int firstToken = token_stream.cursor(); - while (token_stream.lookAhead() != ')') { - token_stream.nextToken(); - } - QEnumsAST *ast = CreateNode(_M_pool); - UPDATE_POS(ast, firstToken, token_stream.cursor()); - node = ast; - - token_stream.nextToken(); - - return true; -} - -bool Parser::parseQ_PROPERTY(DeclarationAST *&node) -{ - if (token_stream.lookAhead() != Token_Q_PROPERTY) - return false; - - if (token_stream.lookAhead(1) != '(') - return false; - - token_stream.nextToken(); - token_stream.nextToken(); - - int firstToken = token_stream.cursor(); - while (token_stream.lookAhead() != ')') { - token_stream.nextToken(); - } - QPropertyAST *ast = CreateNode(_M_pool); - UPDATE_POS(ast, firstToken, token_stream.cursor()); - node = ast; - -// const Token &t1 = token_stream[firstToken]; -// const Token &t2 = token_stream[token_stream.cursor()]; -// printf("property: %s\n", -// qPrintable(QString::fromLatin1(t1.text + t1.position, t2.position - t1.position))); - - token_stream.nextToken(); - - return true; -} - -bool Parser::block_errors(bool block) -{ - bool current = _M_block_errors; - _M_block_errors = block; - return current; -} - - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/parser.h b/3rdparty/pythonqt/generator/parser/parser.h deleted file mode 100644 index e2cd814ed..000000000 --- a/3rdparty/pythonqt/generator/parser/parser.h +++ /dev/null @@ -1,215 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef PARSER_H -#define PARSER_H - -#include "ast.h" -#include "lexer.h" - -#include - -class FileSymbol; -class Control; - -class Parser -{ -public: - Parser(Control *control); - ~Parser(); - - LocationManager &location() { return _M_location; } - - TranslationUnitAST *parse(const char *contents, std::size_t size, pool *p); - -private: - void reportError(const QString& msg); - void syntaxError(); - void tokenRequiredError(int expected); - -public: - bool skipFunctionBody(StatementAST *&node); - -public: - bool parse_Attribute__(); - bool parseAbstractDeclarator(DeclaratorAST *&node); - bool parseAccessSpecifier(DeclarationAST *&node); - bool parseAdditiveExpression(ExpressionAST *&node); - bool parseAndExpression(ExpressionAST *&node, bool templArgs = false); - bool parseAsmDefinition(DeclarationAST *&node); - bool parseAssignmentExpression(ExpressionAST *&node); - bool parseBaseClause(BaseClauseAST *&node); - bool parseBaseSpecifier(BaseSpecifierAST *&node); - bool parseBlockDeclaration(DeclarationAST *&node); - bool parseCastExpression(ExpressionAST *&node); - bool parseClassSpecifier(TypeSpecifierAST *&node); - bool parseForwardDeclarationSpecifier(TypeSpecifierAST *&node); - bool parseCommaExpression(ExpressionAST *&node); - bool parseCompoundStatement(StatementAST *&node); - bool parseCondition(ConditionAST *&node, bool initRequired = true); - bool parseConditionalExpression(ExpressionAST *&node); - bool parseConstantExpression(ExpressionAST *&node); - bool parseCtorInitializer(CtorInitializerAST *&node); - bool parseCvQualify(const ListNode *&node); - bool parseDeclaration(DeclarationAST *&node); - bool parseDeclarationInternal(DeclarationAST *&node); - bool parseDeclarationStatement(StatementAST *&node); - bool parseDeclarator(DeclaratorAST *&node); - bool parseDeleteExpression(ExpressionAST *&node); - bool parseDoStatement(StatementAST *&node); - bool parseElaboratedTypeSpecifier(TypeSpecifierAST *&node); - bool parseEnumSpecifier(TypeSpecifierAST *&node); - bool parseEnumerator(EnumeratorAST *&node); - bool parseEqualityExpression(ExpressionAST *&node, - bool templArgs = false); - bool parseExceptionSpecification(ExceptionSpecificationAST *&node); - bool parseExclusiveOrExpression(ExpressionAST *&node, - bool templArgs = false); - bool parseExpression(ExpressionAST *&node); - bool parseExpressionOrDeclarationStatement(StatementAST *&node); - bool parseExpressionStatement(StatementAST *&node); - bool parseForInitStatement(StatementAST *&node); - bool parseForStatement(StatementAST *&node); - bool parseFunctionBody(StatementAST *&node); - bool parseFunctionSpecifier(const ListNode *&node); - bool parseIfStatement(StatementAST *&node); - bool parseInclusiveOrExpression(ExpressionAST *&node, - bool templArgs = false); - bool parseInitDeclarator(InitDeclaratorAST *&node); - bool parseInitDeclaratorList(const ListNode *&node); - bool parseInitializer(InitializerAST *&node); - bool parseInitializerClause(InitializerClauseAST *&node); - bool parseLabeledStatement(StatementAST *&node); - bool parseLinkageBody(LinkageBodyAST *&node); - bool parseLinkageSpecification(DeclarationAST *&node); - bool parseLogicalAndExpression(ExpressionAST *&node, - bool templArgs = false); - bool parseLogicalOrExpression(ExpressionAST *&node, - bool templArgs = false); - bool parseMemInitializer(MemInitializerAST *&node); - bool parseMemInitializerList(const ListNode *&node); - bool parseMemberSpecification(DeclarationAST *&node); - bool parseMultiplicativeExpression(ExpressionAST *&node); - bool parseName(NameAST *&node, bool acceptTemplateId = false); - bool parseNamespace(DeclarationAST *&node); - bool parseNamespaceAliasDefinition(DeclarationAST *&node); - bool parseNewDeclarator(NewDeclaratorAST *&node); - bool parseNewExpression(ExpressionAST *&node); - bool parseNewInitializer(NewInitializerAST *&node); - bool parseNewTypeId(NewTypeIdAST *&node); - bool parseOperator(OperatorAST *&node); - bool parseOperatorFunctionId(OperatorFunctionIdAST *&node); - bool parseParameterDeclaration(ParameterDeclarationAST *&node); - bool parseParameterDeclarationClause(ParameterDeclarationClauseAST *&node); - bool parseParameterDeclarationList(const ListNode *&node); - bool parsePmExpression(ExpressionAST *&node); - bool parsePostfixExpression(ExpressionAST *&node); - bool parsePostfixExpressionInternal(ExpressionAST *&node); - bool parsePrimaryExpression(ExpressionAST *&node); - bool parsePtrOperator(PtrOperatorAST *&node); - bool parsePtrToMember(PtrToMemberAST *&node); - bool parseRelationalExpression(ExpressionAST *&node, - bool templArgs = false); - bool parseShiftExpression(ExpressionAST *&node); - bool parseSimpleTypeSpecifier(TypeSpecifierAST *&node, - bool onlyIntegral = false); - bool parseStatement(StatementAST *&node); - bool parseStorageClassSpecifier(const ListNode *&node); - bool parseStringLiteral(StringLiteralAST *&node); - bool parseSwitchStatement(StatementAST *&node); - bool parseTemplateArgument(TemplateArgumentAST *&node); - bool parseTemplateArgumentList(const ListNode *&node, - bool reportError = true); - bool parseTemplateDeclaration(DeclarationAST *&node); - bool parseTemplateParameter(TemplateParameterAST *&node); - bool parseTemplateParameterList(const ListNode *&node); - bool parseThrowExpression(ExpressionAST *&node); - bool parseTranslationUnit(TranslationUnitAST *&node); - bool parseTryBlockStatement(StatementAST *&node); - bool parseTypeId(TypeIdAST *&node); - bool parseTypeIdList(const ListNode *&node); - bool parseTypeParameter(TypeParameterAST *&node); - bool parseTypeSpecifier(TypeSpecifierAST *&node); - bool parseTypeSpecifierOrClassSpec(TypeSpecifierAST *&node); - bool parseTypedef(DeclarationAST *&node); - bool parseUnaryExpression(ExpressionAST *&node); - bool parseUnqualifiedName(UnqualifiedNameAST *&node, - bool parseTemplateId = true); - bool parseUsing(DeclarationAST *&node); - bool parseUsingDirective(DeclarationAST *&node); - bool parseWhileStatement(StatementAST *&node); - bool parseWinDeclSpec(WinDeclSpecAST *&node); - - bool parseQ_PROPERTY(DeclarationAST *&node); - bool parseQ_ENUMS(DeclarationAST *&node); - - bool skipUntil(int token); - bool skipUntilDeclaration(); - bool skipUntilStatement(); - bool skip(int l, int r); - - void advance(); - - // private: - TokenStream token_stream; - LocationTable location_table; - LocationTable line_table; - - bool block_errors(bool block); - -private: - QString tokenText(AST *) const; - - LocationManager _M_location; - Control *control; - Lexer lexer; - pool *_M_pool; - bool _M_block_errors; - -private: - Parser(const Parser& source); - void operator = (const Parser& source); -}; - -#endif - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/r++.macros b/3rdparty/pythonqt/generator/parser/r++.macros deleted file mode 100644 index 455276c84..000000000 --- a/3rdparty/pythonqt/generator/parser/r++.macros +++ /dev/null @@ -1,28 +0,0 @@ - -#define __attribute__(a...) -#define __typeof__ __typeof - -#define __extension -#define __extension__ - -#define __restrict -#define __restrict__ - -#define __volatile volatile -#define __volatile__ volatile - -#define __inline inline -#define __inline__ inline - -#define __const const -#define __const__ const - -#define __asm asm -#define __asm__ asm - -#define __GNUC__ 3 -//#define __GNUC_MINOR__ 4 - -#define __ROBC__ 0 -#define __ROBC_MINOR__ 1 - diff --git a/3rdparty/pythonqt/generator/parser/rpp-allocator.h b/3rdparty/pythonqt/generator/parser/rpp-allocator.h deleted file mode 100644 index eb7f43d37..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp-allocator.h +++ /dev/null @@ -1,42 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "rxx_allocator.h" diff --git a/3rdparty/pythonqt/generator/parser/rpp/builtin-macros.cpp b/3rdparty/pythonqt/generator/parser/rpp/builtin-macros.cpp deleted file mode 100644 index bae1ab77d..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/builtin-macros.cpp +++ /dev/null @@ -1,41 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-cctype.h b/3rdparty/pythonqt/generator/parser/rpp/pp-cctype.h deleted file mode 100644 index 9bfef9097..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-cctype.h +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_CCTYPE_H -#define PP_CCTYPE_H - -#include - -namespace rpp { - -inline bool pp_isalpha (int __ch) -{ return std::isalpha ((unsigned char) __ch) != 0; } - -inline bool pp_isalnum (int __ch) -{ return std::isalnum ((unsigned char) __ch) != 0; } - -inline bool pp_isdigit (int __ch) -{ return std::isdigit ((unsigned char) __ch) != 0; } - -inline bool pp_isspace (int __ch) -{ return std::isspace ((unsigned char) __ch) != 0; } - -} // namespace rpp - -#endif // PP_CCTYPE_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-configuration b/3rdparty/pythonqt/generator/parser/rpp/pp-configuration deleted file mode 100644 index 15586dd88..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-configuration +++ /dev/null @@ -1,86 +0,0 @@ -#define __DBL_MIN_EXP__ (-1021) -#define __FLT_MIN__ 1.17549435e-38F -#define __CHAR_BIT__ 8 -#define __WCHAR_MAX__ 2147483647 -#define __DBL_DENORM_MIN__ 4.9406564584124654e-324 -#define __FLT_EVAL_METHOD__ 2 -#define __DBL_MIN_10_EXP__ (-307) -#define __FINITE_MATH_ONLY__ 0 -#define __GNUC_PATCHLEVEL__ 2 -#define __SHRT_MAX__ 32767 -#define __LDBL_MAX__ 1.18973149535723176502e+4932L -#define __UINTMAX_TYPE__ long long unsigned int -#define __linux 1 -#define __unix 1 -#define __LDBL_MAX_EXP__ 16384 -#define __linux__ 1 -#define __SCHAR_MAX__ 127 -#define __USER_LABEL_PREFIX__ -#define __STDC_HOSTED__ 1 -#define __LDBL_HAS_INFINITY__ 1 -#define __DBL_DIG__ 15 -#define __FLT_EPSILON__ 1.19209290e-7F -#define __GXX_WEAK__ 1 -#define __LDBL_MIN__ 3.36210314311209350626e-4932L -#define __unix__ 1 -#define __DECIMAL_DIG__ 21 -#define __gnu_linux__ 1 -#define __LDBL_HAS_QUIET_NAN__ 1 -#define __GNUC__ 4 -#define __DBL_MAX__ 1.7976931348623157e+308 -#define __DBL_HAS_INFINITY__ 1 -#define __cplusplus 1 -#define __DEPRECATED 1 -#define __DBL_MAX_EXP__ 1024 -#define __GNUG__ 4 -#define __LONG_LONG_MAX__ 9223372036854775807LL -#define __GXX_ABI_VERSION 1002 -#define __FLT_MIN_EXP__ (-125) -#define __DBL_MIN__ 2.2250738585072014e-308 -#define __FLT_MIN_10_EXP__ (-37) -#define __DBL_HAS_QUIET_NAN__ 1 -#define __REGISTER_PREFIX__ -#define __NO_INLINE__ 1 -#define __i386 1 -#define __FLT_MANT_DIG__ 24 -#define __VERSION__ "4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)" -#define i386 1 -#define __i486__ 1 -#define unix 1 -#define __i386__ 1 -#define __SIZE_TYPE__ unsigned int -#define __ELF__ 1 -#define __FLT_RADIX__ 2 -#define __LDBL_EPSILON__ 1.08420217248550443401e-19L -#define __FLT_HAS_QUIET_NAN__ 1 -#define __FLT_MAX_10_EXP__ 38 -#define __LONG_MAX__ 2147483647L -#define __FLT_HAS_INFINITY__ 1 -#define linux 1 -#define __EXCEPTIONS 1 -#define __LDBL_MANT_DIG__ 64 -#define __WCHAR_TYPE__ int -#define __FLT_DIG__ 6 -#define __INT_MAX__ 2147483647 -#define __i486 1 -#define __FLT_MAX_EXP__ 128 -#define __DBL_MANT_DIG__ 53 -#define __WINT_TYPE__ unsigned int -#define __LDBL_MIN_EXP__ (-16381) -#define __LDBL_MAX_10_EXP__ 4932 -#define __DBL_EPSILON__ 2.2204460492503131e-16 -#define __tune_i486__ 1 -#define __INTMAX_MAX__ 9223372036854775807LL -#define __FLT_DENORM_MIN__ 1.40129846e-45F -#define __FLT_MAX__ 3.40282347e+38F -#define __INTMAX_TYPE__ long long int -#define __GNUC_MINOR__ 0 -#define __DBL_MAX_10_EXP__ 308 -#define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L -#define __PTRDIFF_TYPE__ int -#define __LDBL_MIN_10_EXP__ (-4931) -#define __LDBL_DIG__ 18 -#define _GNU_SOURCE 1 - - -#define __STDC__ diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-engine-bits.h b/3rdparty/pythonqt/generator/parser/rpp/pp-engine-bits.h deleted file mode 100644 index 4c8cf4bb9..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-engine-bits.h +++ /dev/null @@ -1,1369 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_ENGINE_BITS_H -#define PP_ENGINE_BITS_H - -#include - -namespace rpp { - -inline std::string pp::fix_file_path(std::string const &filename) const -{ -#if defined (PP_OS_WIN) - std::string s = filename; - for (std::string::iterator it = s.begin(); it != s.end(); ++it) - { - if (*it == '/') - *it = '\\'; - } - return s; -#else - return filename; -#endif -} - -inline bool pp::is_absolute(std::string const &filename) const -{ -#if defined(PP_OS_WIN) - return filename.length() >= 3 - && filename.at(1) == ':' - && (filename.at(2) == '\\' || filename.at(2) == '/'); -#else - return filename.length() >= 1 - && filename.at(0) == '/'; -#endif -} - -template -void pp::file (std::string const &filename, _OutputIterator __result) -{ - FILE *fp = fopen (filename.c_str(), "rb"); - if (fp != 0) - { - std::string was = env.current_file; - env.current_file = filename; - file (fp, __result); - env.current_file = was; - } - //else - //std::cerr << "** WARNING file ``" << filename << " not found!" << std::endl; -} - -template -void pp::file (FILE *fp, _OutputIterator __result) -{ - assert (fp != 0); - -#if defined (HAVE_MMAP) - struct stat st; - fstat(FILENO (fp), &st); - std::size_t size = st.st_size; - char *buffer = 0; - buffer = (char *) ::mmap(0, size, PROT_READ, MAP_SHARED, FILENO (fp), 0); - fclose (fp); - if (!buffer || buffer == (char*) -1) - return; - this->operator () (buffer, buffer + size, __result); - ::munmap(buffer, size); -#else - std::string buffer; - while (!feof(fp)) { - char tmp[1024]; - int read = (int) fread (tmp, sizeof(char), 1023, fp); - tmp[read] = '\0'; - buffer += tmp; - } - fclose (fp); - this->operator () (buffer.c_str(), buffer.c_str() + buffer.size(), __result); -#endif -} - -template -bool pp::find_header_protection (_InputIterator __first, _InputIterator __last, std::string *__prot) -{ - int was = env.current_line; - - while (__first != __last) - { - if (pp_isspace (*__first)) - { - if (*__first == '\n') - ++env.current_line; - - ++__first; - } - else if (_PP_internal::comment_p (__first, __last)) - { - __first = skip_comment_or_divop (__first, __last); - env.current_line += skip_comment_or_divop.lines; - } - else if (*__first == '#') - { - __first = skip_blanks (++__first, __last); - env.current_line += skip_blanks.lines; - - if (__first != __last && *__first == 'i') - { - _InputIterator __begin = __first; - __first = skip_identifier (__begin, __last); - env.current_line += skip_identifier.lines; - - std::string __directive (__begin, __first); - - if (__directive == "ifndef") - { - __first = skip_blanks (__first, __last); - env.current_line += skip_blanks.lines; - - __begin = __first; - __first = skip_identifier (__first, __last); - env.current_line += skip_identifier.lines; - - if (__begin != __first && __first != __last) - { - __prot->assign (__begin, __first); - return true; - } - } - } - break; - } - else - break; - } - - env.current_line = was; - return false; -} - -inline pp::PP_DIRECTIVE_TYPE pp::find_directive (char const *__directive, std::size_t __size) const -{ - switch (__size) - { - case 2: - if (__directive[0] == 'i' - && __directive[1] == 'f') - return PP_IF; - break; - - case 4: - if (__directive[0] == 'e' && !strcmp (__directive, "elif")) - return PP_ELIF; - else if (__directive[0] == 'e' && !strcmp (__directive, "else")) - return PP_ELSE; - break; - - case 5: - if (__directive[0] == 'i' && !strcmp (__directive, "ifdef")) - return PP_IFDEF; - else if (__directive[0] == 'u' && !strcmp (__directive, "undef")) - return PP_UNDEF; - else if (__directive[0] == 'e') { - if (!strcmp (__directive, "endif")) - return PP_ENDIF; - else if (!strcmp (__directive, "error")) - return PP_ERROR; - } - break; - - case 6: - if (__directive[0] == 'i' && !strcmp (__directive, "ifndef")) - return PP_IFNDEF; - else if (__directive[0] == 'd' && !strcmp (__directive, "define")) - return PP_DEFINE; - else if (__directive[0] == 'p' && !strcmp (__directive, "pragma")) - return PP_PRAGMA; - break; - - case 7: - if (__directive[0] == 'i' && !strcmp (__directive, "include")) - return PP_INCLUDE; - else if (__directive[0] == 'w' && !strcmp(__directive, "warning")) - return PP_WARNING; - break; - - case 12: - if (__directive[0] == 'i' && !strcmp (__directive, "include_next")) - return PP_INCLUDE_NEXT; - break; - - default: - break; - } - std::cerr << "** WARNING unknown directive '#" << __directive << "' at " << env.current_file << ":" << env.current_line << std::endl; - return PP_UNKNOWN_DIRECTIVE; -} - -inline bool pp::file_isdir (std::string const &__filename) const -{ - struct stat __st; -#if defined(PP_OS_WIN) - if (stat(__filename.c_str (), &__st) == 0) - return (__st.st_mode & _S_IFDIR) == _S_IFDIR; - else - return false; -#else - if (lstat (__filename.c_str (), &__st) == 0) - return (__st.st_mode & S_IFDIR) == S_IFDIR; - else - return false; -#endif -} - -inline bool pp::file_exists (std::string const &__filename) const -{ - struct stat __st; -#if defined(PP_OS_WIN) - return stat(__filename.c_str (), &__st) == 0; -#else - return lstat (__filename.c_str (), &__st) == 0; -#endif -} - -inline FILE *pp::find_include_file(std::string const &__input_filename, std::string *__filepath, - INCLUDE_POLICY __include_policy, bool __skip_current_path) const -{ - assert (__filepath != 0); - assert (! __input_filename.empty()); - - __filepath->assign (__input_filename); - - if (is_absolute (*__filepath)) - return fopen (__filepath->c_str(), "r"); - - if (! env.current_file.empty ()) - _PP_internal::extract_file_path (env.current_file, __filepath); - - if (__include_policy == INCLUDE_LOCAL && ! __skip_current_path) - { - std::string __tmp (*__filepath); - __tmp += __input_filename; - - if (file_exists (__tmp) && !file_isdir(__tmp)) - { - __filepath->append (__input_filename); - return fopen (__filepath->c_str (), "r"); - } - } - - std::vector::const_iterator it = include_paths.begin (); - - if (__skip_current_path) - { - it = std::find (include_paths.begin (), include_paths.end (), *__filepath); - - if (it != include_paths.end ()) - ++it; - - else - it = include_paths.begin (); - } - - for (; it != include_paths.end (); ++it) - { - if (__skip_current_path && it == include_paths.begin()) - continue; - - __filepath->assign (*it); - __filepath->append (__input_filename); - - if (file_exists (*__filepath) && !file_isdir(*__filepath)) - return fopen (__filepath->c_str(), "r"); - -#ifdef Q_OS_MAC - // try in Framework path on Mac, if there is a path in front - // ### what about escaped slashes? - size_t slashPos = __input_filename.find('/'); - if (slashPos != std::string::npos) { - __filepath->assign (*it); - __filepath->append (__input_filename.substr(0, slashPos)); - __filepath->append (".framework/Headers/"); - __filepath->append (__input_filename.substr(slashPos+1, std::string::npos)); - std::cerr << *__filepath << "\n"; - - if (file_exists (*__filepath) && !file_isdir(*__filepath)) - return fopen (__filepath->c_str(), "r"); - } -#endif // Q_OS_MAC - } - - return 0; -} - -template -_InputIterator pp::handle_directive(char const *__directive, std::size_t __size, - _InputIterator __first, _InputIterator __last, _OutputIterator __result) -{ - __first = skip_blanks (__first, __last); - - PP_DIRECTIVE_TYPE d = find_directive (__directive, __size); - switch (d) - { - case PP_DEFINE: - if (! skipping ()) - return handle_define (__first, __last); - break; - - case PP_INCLUDE: - case PP_INCLUDE_NEXT: - if (! skipping ()) - return handle_include (d == PP_INCLUDE_NEXT, __first, __last, __result); - break; - - case PP_UNDEF: - if (! skipping ()) - return handle_undef(__first, __last); - break; - - case PP_ELIF: - return handle_elif (__first, __last); - - case PP_ELSE: - return handle_else (__first, __last); - - case PP_ENDIF: - return handle_endif (__first, __last); - - case PP_IF: - return handle_if (__first, __last); - - case PP_IFDEF: - return handle_ifdef (false, __first, __last); - - case PP_IFNDEF: - return handle_ifdef (true, __first, __last); - - default: - break; - } - - return __first; -} - -template -_InputIterator pp::handle_include (bool __skip_current_path, _InputIterator __first, _InputIterator __last, - _OutputIterator __result) -{ - std::cout << env.current_file << std::endl; - if (pp_isalpha (*__first) || *__first == '_') - { - pp_macro_expander expand_include (env); - std::string name; - name.reserve (255); - expand_include (__first, __last, std::back_inserter (name)); - std::string::iterator it = skip_blanks (name.begin (), name.end ()); - printf("%s", name.c_str()); - assert((it != name.end () && (*it == '<' || *it == '"'))); - handle_include (__skip_current_path, it, name.end (), __result); - return __first; - } - - assert (*__first == '<' || *__first == '"'); - int quote = (*__first == '"') ? '"' : '>'; - ++__first; - - _InputIterator end_name = __first; - for (; end_name != __last; ++end_name) - { - assert (*end_name != '\n'); - - if (*end_name == quote) - break; - } - - std::string filename (__first, end_name); - -#ifdef PP_OS_WIN - std::replace(filename.begin(), filename.end(), '/', '\\'); -#endif - - std::string filepath; - FILE *fp = find_include_file (filename, &filepath, quote == '>' ? INCLUDE_GLOBAL : INCLUDE_LOCAL, __skip_current_path); - -#if defined (PP_HOOK_ON_FILE_INCLUDED) - PP_HOOK_ON_FILE_INCLUDED (env.current_file, fp ? filepath : filename, fp); -#endif - - if (fp != 0) - { - std::string old_file = env.current_file; - env.current_file = filepath; - int __saved_lines = env.current_line; - - env.current_line = 1; - //output_line (env.current_file, 1, __result); - - file (fp, __result); - - // restore the file name and the line position - env.current_file = old_file; - env.current_line = __saved_lines; - - // sync the buffer - _PP_internal::output_line (env.current_file, env.current_line, __result); - } -#ifndef RPP_JAMBI -// else -// std::cerr << "*** WARNING " << filename << ": No such file or directory" << std::endl; -#endif - - return __first; -} - -template -void pp::operator () (_InputIterator __first, _InputIterator __last, _OutputIterator __result) -{ -#ifndef PP_NO_SMART_HEADER_PROTECTION - std::string __prot; - __prot.reserve (255); - pp_fast_string __tmp (__prot.c_str (), __prot.size ()); - - if (find_header_protection (__first, __last, &__prot) - && env.resolve (&__tmp) != 0) - { - // std::cerr << "** DEBUG found header protection:" << __prot << std::endl; - return; - } -#endif - - env.current_line = 1; - char __buffer[512]; - - while (true) - { - __first = skip_blanks (__first, __last); - env.current_line += skip_blanks.lines; - - if (__first == __last) - break; - else if (*__first == '#') - { - assert (*__first == '#'); - __first = skip_blanks (++__first, __last); - env.current_line += skip_blanks.lines; - - _InputIterator end_id = skip_identifier (__first, __last); - env.current_line += skip_identifier.lines; - std::size_t __size = end_id - __first; - - assert (__size < 512); - char *__cp = __buffer; - std::copy (__first, end_id, __cp); - __cp[__size] = '\0'; - - end_id = skip_blanks (end_id, __last); - __first = skip (end_id, __last); - - int was = env.current_line; - (void) handle_directive (__buffer, __size, end_id, __first, __result); - - if (env.current_line != was) - { - env.current_line = was; - _PP_internal::output_line (env.current_file, env.current_line, __result); - } - } - else if (*__first == '\n') - { - // ### compress the line - *__result++ = *__first++; - ++env.current_line; - } - else if (skipping ()) - __first = skip (__first, __last); - else - { - _PP_internal::output_line (env.current_file, env.current_line, __result); - __first = expand (__first, __last, __result); - env.current_line += expand.lines; - - if (expand.generated_lines) - _PP_internal::output_line (env.current_file, env.current_line, __result); - } - } -} - -inline pp::pp (pp_environment &__env): - env (__env), expand (env) -{ - iflevel = 0; - _M_skipping[iflevel] = 0; - _M_true_test[iflevel] = 0; -} - -inline std::back_insert_iterator > pp::include_paths_inserter () -{ return std::back_inserter (include_paths); } - -inline std::vector::iterator pp::include_paths_begin () -{ return include_paths.begin (); } - -inline std::vector::iterator pp::include_paths_end () -{ return include_paths.end (); } - -inline std::vector::const_iterator pp::include_paths_begin () const -{ return include_paths.begin (); } - -inline std::vector::const_iterator pp::include_paths_end () const -{ return include_paths.end (); } - -inline void pp::push_include_path (std::string const &__path) -{ - if (__path.empty () || __path [__path.size () - 1] != PATH_SEPARATOR) - { - std::string __tmp (__path); - __tmp += PATH_SEPARATOR; - include_paths.push_back (__tmp); - } - - else - include_paths.push_back (__path); -} - -template -_InputIterator pp::handle_define (_InputIterator __first, _InputIterator __last) -{ - pp_macro macro; -#if defined (PP_WITH_MACRO_POSITION) - macro.file = pp_symbol::get (env.current_file); -#endif - std::string definition; - - __first = skip_blanks (__first, __last); - _InputIterator end_macro_name = skip_identifier (__first, __last); - pp_fast_string const *macro_name = pp_symbol::get (__first, end_macro_name); - __first = end_macro_name; - - if (__first != __last && *__first == '(') - { - macro.function_like = true; - macro.formals.reserve (5); - - __first = skip_blanks (++__first, __last); // skip '(' - _InputIterator arg_end = skip_identifier (__first, __last); - if (__first != arg_end) - macro.formals.push_back (pp_symbol::get (__first, arg_end)); - - __first = skip_blanks (arg_end, __last); - - if (*__first == '.') - { - macro.variadics = true; - while (*__first == '.') - ++__first; - } - - while (__first != __last && *__first == ',') - { - __first = skip_blanks (++__first, __last); - - arg_end = skip_identifier (__first, __last); - if (__first != arg_end) - macro.formals.push_back (pp_symbol::get (__first, arg_end)); - - __first = skip_blanks (arg_end, __last); - - if (*__first == '.') - { - macro.variadics = true; - while (*__first == '.') - ++__first; - } - } - - assert (*__first == ')'); - ++__first; - } - - __first = skip_blanks (__first, __last); - - while (__first != __last && *__first != '\n') - { - if (*__first == '/') { - __first = skip_comment_or_divop(__first, __last); - env.current_line += skip_comment_or_divop.lines; - } - - if (*__first == '\\') - { - _InputIterator __begin = __first; - __begin = skip_blanks (++__begin, __last); - - if (__begin != __last && *__begin == '\n') - { - ++macro.lines; - __first = skip_blanks (++__begin, __last); - definition += ' '; - continue; - } - } - - definition += *__first++; - } - - macro.definition = pp_symbol::get (definition); - env.bind (macro_name, macro); - - return __first; -} - -template -_InputIterator pp::skip (_InputIterator __first, _InputIterator __last) -{ - pp_skip_string_literal skip_string_literal; - pp_skip_char_literal skip_char_literal; - - while (__first != __last && *__first != '\n') - { - if (*__first == '/') - { - __first = skip_comment_or_divop (__first, __last); - env.current_line += skip_comment_or_divop.lines; - } - else if (*__first == '"') - { - __first = skip_string_literal (__first, __last); - env.current_line += skip_string_literal.lines; - } - else if (*__first == '\'') - { - __first = skip_char_literal (__first, __last); - env.current_line += skip_char_literal.lines; - } - else if (*__first == '\\') - { - __first = skip_blanks (++__first, __last); - env.current_line += skip_blanks.lines; - - if (__first != __last && *__first == '\n') - { - ++__first; - ++env.current_line; - } - } - else - ++__first; - } - - return __first; -} - -inline bool pp::test_if_level() -{ - bool result = !_M_skipping[iflevel++]; - _M_skipping[iflevel] = _M_skipping[iflevel - 1]; - _M_true_test[iflevel] = false; - return result; -} - -inline int pp::skipping() const -{ return _M_skipping[iflevel]; } - -template -_InputIterator pp::eval_primary(_InputIterator __first, _InputIterator __last, Value *result) -{ - bool expect_paren = false; - int token; - __first = next_token (__first, __last, &token); - - switch (token) - { - case TOKEN_NUMBER: - result->set_long (token_value); - break; - - case TOKEN_UNUMBER: - result->set_ulong (token_uvalue); - break; - - case TOKEN_DEFINED: - __first = next_token (__first, __last, &token); - - if (token == '(') - { - expect_paren = true; - __first = next_token (__first, __last, &token); - } - - if (token != TOKEN_IDENTIFIER) - { - std::cerr << "** WARNING expected ``identifier'' found:" << char(token) << std::endl; - result->set_long (0); - break; - } - - result->set_long (env.resolve (token_text->c_str (), token_text->size ()) != 0); - - next_token (__first, __last, &token); // skip '(' - - if (expect_paren) - { - _InputIterator next = next_token (__first, __last, &token); - if (token != ')') - std::cerr << "** WARNING expected ``)''" << std::endl; - else - __first = next; - } - break; - - case TOKEN_IDENTIFIER: - result->set_long (0); - break; - - case '-': - __first = eval_primary (__first, __last, result); - result->set_long (- result->l); - return __first; - - case '+': - __first = eval_primary (__first, __last, result); - return __first; - - case '!': - __first = eval_primary (__first, __last, result); - result->set_long (result->is_zero ()); - return __first; - - case '(': - __first = eval_constant_expression(__first, __last, result); - next_token (__first, __last, &token); - - if (token != ')') - std::cerr << "** WARNING expected ``)'' = " << token << std::endl; - else - __first = next_token(__first, __last, &token); - break; - - default: - result->set_long (0); - } - - return __first; -} - -template -_InputIterator pp::eval_multiplicative(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_primary(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == '*' || token == '/' || token == '%') - { - Value value; - __first = eval_primary(next, __last, &value); - - if (token == '*') - result->op_mult (value); - else if (token == '/') - { - if (value.is_zero ()) - { - std::cerr << "** WARNING division by zero" << std::endl; - result->set_long (0); - } - else - result->op_div (value); - } - else - { - if (value.is_zero ()) - { - std::cerr << "** WARNING division by zero" << std::endl; - result->set_long (0); - } - else - result->op_mod (value); - } - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_additive(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_multiplicative(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == '+' || token == '-') - { - Value value; - __first = eval_multiplicative(next, __last, &value); - - if (token == '+') - result->op_add (value); - else - result->op_sub (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_shift(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_additive(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == TOKEN_LT_LT || token == TOKEN_GT_GT) - { - Value value; - __first = eval_additive (next, __last, &value); - - if (token == TOKEN_LT_LT) - result->op_lhs (value); - else - result->op_rhs (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_relational(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_shift(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == '<' - || token == '>' - || token == TOKEN_LT_EQ - || token == TOKEN_GT_EQ) - { - Value value; - __first = eval_shift(next, __last, &value); - - switch (token) - { - default: - assert (0); - break; - - case '<': - result->op_lt (value); - break; - - case '>': - result->op_gt (value); - break; - - case TOKEN_LT_EQ: - result->op_le (value); - break; - - case TOKEN_GT_EQ: - result->op_ge (value); - break; - } - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_equality(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_relational(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == TOKEN_EQ_EQ || token == TOKEN_NOT_EQ) - { - Value value; - __first = eval_relational(next, __last, &value); - - if (token == TOKEN_EQ_EQ) - result->op_eq (value); - else - result->op_ne (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_and(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_equality(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == '&') - { - Value value; - __first = eval_equality(next, __last, &value); - result->op_bit_and (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_xor(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_and(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == '^') - { - Value value; - __first = eval_and(next, __last, &value); - result->op_bit_xor (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_or(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_xor(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == '|') - { - Value value; - __first = eval_xor(next, __last, &value); - result->op_bit_or (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_logical_and(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_or(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == TOKEN_AND_AND) - { - Value value; - __first = eval_or(next, __last, &value); - result->op_and (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_logical_or(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_logical_and (__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - while (token == TOKEN_OR_OR) - { - Value value; - __first = eval_logical_and(next, __last, &value); - result->op_or (value); - next = next_token (__first, __last, &token); - } - - return __first; -} - -template -_InputIterator pp::eval_constant_expression(_InputIterator __first, _InputIterator __last, Value *result) -{ - __first = eval_logical_or(__first, __last, result); - - int token; - _InputIterator next = next_token (__first, __last, &token); - - if (token == '?') - { - Value left_value; - __first = eval_constant_expression(next, __last, &left_value); - __first = skip_blanks (__first, __last); - - __first = next_token(__first, __last, &token); - if (token == ':') - { - Value right_value; - __first = eval_constant_expression(__first, __last, &right_value); - - *result = !result->is_zero () ? left_value : right_value; - } - else - { - std::cerr << "** WARNING expected ``:'' = " << int (token) << std::endl; - *result = left_value; - } - } - - return __first; -} - -template -_InputIterator pp::eval_expression (_InputIterator __first, _InputIterator __last, Value *result) -{ - return __first = eval_constant_expression (skip_blanks (__first, __last), __last, result); -} - -template -_InputIterator pp::handle_if (_InputIterator __first, _InputIterator __last) -{ - if (test_if_level()) - { - pp_macro_expander expand_condition (env); - std::string condition; - condition.reserve (255); - expand_condition (skip_blanks (__first, __last), __last, std::back_inserter (condition)); - - Value result; - result.set_long (0); - eval_expression(condition.c_str (), condition.c_str () + condition.size (), &result); - - _M_true_test[iflevel] = !result.is_zero (); - _M_skipping[iflevel] = result.is_zero (); - } - - return __first; -} - -template -_InputIterator pp::handle_else (_InputIterator __first, _InputIterator /*__last*/) -{ - if (iflevel == 0 && !skipping ()) - { - std::cerr << "** WARNING #else without #if" << std::endl; - } - else if (iflevel > 0 && _M_skipping[iflevel - 1]) - { - _M_skipping[iflevel] = true; - } - else - { - _M_skipping[iflevel] = _M_true_test[iflevel]; - } - - return __first; -} - -template -_InputIterator pp::handle_elif (_InputIterator __first, _InputIterator __last) -{ - assert(iflevel > 0); - - if (iflevel == 0 && !skipping()) - { - std::cerr << "** WARNING #else without #if" << std::endl; - } - else if (!_M_true_test[iflevel] && !_M_skipping[iflevel - 1]) - { - Value result; - __first = eval_expression(__first, __last, &result); - _M_true_test[iflevel] = !result.is_zero (); - _M_skipping[iflevel] = result.is_zero (); - } - else - { - _M_skipping[iflevel] = true; - } - - return __first; -} - -template -_InputIterator pp::handle_endif (_InputIterator __first, _InputIterator /*__last*/) -{ - if (iflevel == 0 && !skipping()) - { - std::cerr << "** WARNING #endif without #if" << std::endl; - } - else - { - _M_skipping[iflevel] = 0; - _M_true_test[iflevel] = 0; - - --iflevel; - } - - return __first; -} - -template -_InputIterator pp::handle_ifdef (bool check_undefined, _InputIterator __first, _InputIterator __last) -{ - if (test_if_level()) - { - _InputIterator end_macro_name = skip_identifier (__first, __last); - - std::size_t __size; -#if defined(__SUNPRO_CC) - std::distance (__first, end_macro_name, __size); -#else - __size = std::distance (__first, end_macro_name); -#endif - assert (__size < 256); - - char __buffer [256]; - std::copy (__first, end_macro_name, __buffer); - - bool value = env.resolve (__buffer, __size) != 0; - - __first = end_macro_name; - - if (check_undefined) - value = !value; - - _M_true_test[iflevel] = value; - _M_skipping[iflevel] = !value; - } - - return __first; -} - -template -_InputIterator pp::handle_undef(_InputIterator __first, _InputIterator __last) -{ - __first = skip_blanks (__first, __last); - _InputIterator end_macro_name = skip_identifier (__first, __last); - assert (end_macro_name != __first); - - std::size_t __size; -#if defined(__SUNPRO_CC) - std::distance (__first, end_macro_name, __size); -#else - __size = std::distance (__first, end_macro_name); -#endif - - assert (__size < 256); - - char __buffer [256]; - std::copy (__first, end_macro_name, __buffer); - - pp_fast_string const __tmp (__buffer, __size); - env.unbind (&__tmp); - - __first = end_macro_name; - - return __first; -} - -template -char pp::peek_char (_InputIterator __first, _InputIterator __last) -{ - if (__first == __last) - return 0; - - return *++__first; -} - -template -_InputIterator pp::next_token (_InputIterator __first, _InputIterator __last, int *kind) -{ - __first = skip_blanks (__first, __last); - - if (__first == __last) - { - *kind = 0; - return __first; - } - - char ch = *__first; - char ch2 = peek_char (__first, __last); - - switch (ch) - { - case '/': - if (ch2 == '/' || ch2 == '*') - { - __first = skip_comment_or_divop (__first, __last); - return next_token (__first, __last, kind); - } - ++__first; - *kind = '/'; - break; - - case '<': - ++__first; - if (ch2 == '<') - { - ++__first; - *kind = TOKEN_LT_LT; - } - else if (ch2 == '=') - { - ++__first; - *kind = TOKEN_LT_EQ; - } - else - *kind = '<'; - - return __first; - - case '>': - ++__first; - if (ch2 == '>') - { - ++__first; - *kind = TOKEN_GT_GT; - } - else if (ch2 == '=') - { - ++__first; - *kind = TOKEN_GT_EQ; - } - else - *kind = '>'; - - return __first; - - case '!': - ++__first; - if (ch2 == '=') - { - ++__first; - *kind = TOKEN_NOT_EQ; - } - else - *kind = '!'; - - return __first; - - case '=': - ++__first; - if (ch2 == '=') - { - ++__first; - *kind = TOKEN_EQ_EQ; - } - else - *kind = '='; - - return __first; - - case '|': - ++__first; - if (ch2 == '|') - { - ++__first; - *kind = TOKEN_OR_OR; - } - else - *kind = '|'; - - return __first; - - case '&': - ++__first; - if (ch2 == '&') - { - ++__first; - *kind = TOKEN_AND_AND; - } - else - *kind = '&'; - - return __first; - - default: - if (pp_isalpha (ch) || ch == '_') - { - _InputIterator end = skip_identifier (__first, __last); - _M_current_text.assign (__first, end); - - token_text = &_M_current_text; - __first = end; - - if (*token_text == "defined") - *kind = TOKEN_DEFINED; - else - *kind = TOKEN_IDENTIFIER; - } - else if (pp_isdigit (ch)) - { - _InputIterator end = skip_number (__first, __last); - std::string __str (__first, __last); - char ch = __str [__str.size () - 1]; - if (ch == 'u' || ch == 'U') - { - token_uvalue = strtoul (__str.c_str (), 0, 0); - *kind = TOKEN_UNUMBER; - } - else - { - token_value = strtol (__str.c_str (), 0, 0); - *kind = TOKEN_NUMBER; - } - __first = end; - } - else - *kind = *__first++; - } - - return __first; -} - -} // namespace rpp - -#endif // PP_ENGINE_BITS_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-engine.h b/3rdparty/pythonqt/generator/parser/rpp/pp-engine.h deleted file mode 100644 index 0da92e93b..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-engine.h +++ /dev/null @@ -1,293 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_ENGINE_H -#define PP_ENGINE_H - -namespace rpp { - -struct Value -{ - enum Kind { - Kind_Long, - Kind_ULong, - }; - - Kind kind; - - union { - long l; - unsigned long ul; - }; - - inline bool is_ulong () const { return kind == Kind_ULong; } - - inline void set_ulong (unsigned long v) - { - ul = v; - kind = Kind_ULong; - } - - inline void set_long (long v) - { - l = v; - kind = Kind_Long; - } - - inline bool is_zero () const { return l == 0; } - -#define PP_DEFINE_BIN_OP(name, op) \ - inline Value &name (const Value &other) \ - { \ - if (is_ulong () || other.is_ulong ()) \ - set_ulong (ul op other.ul); \ - else \ - set_long (l op other.l); \ - return *this; \ - } - - PP_DEFINE_BIN_OP(op_add, +) - PP_DEFINE_BIN_OP(op_sub, -) - PP_DEFINE_BIN_OP(op_mult, *) - PP_DEFINE_BIN_OP(op_div, /) - PP_DEFINE_BIN_OP(op_mod, %) - PP_DEFINE_BIN_OP(op_lhs, <<) - PP_DEFINE_BIN_OP(op_rhs, >>) - PP_DEFINE_BIN_OP(op_lt, <) - PP_DEFINE_BIN_OP(op_gt, >) - PP_DEFINE_BIN_OP(op_le, <=) - PP_DEFINE_BIN_OP(op_ge, >=) - PP_DEFINE_BIN_OP(op_eq, ==) - PP_DEFINE_BIN_OP(op_ne, !=) - PP_DEFINE_BIN_OP(op_bit_and, &) - PP_DEFINE_BIN_OP(op_bit_or, |) - PP_DEFINE_BIN_OP(op_bit_xor, ^) - PP_DEFINE_BIN_OP(op_and, &&) - PP_DEFINE_BIN_OP(op_or, ||) - -#undef PP_DEFINE_BIN_OP -}; - -class pp -{ - pp_environment &env; - pp_macro_expander expand; - pp_skip_identifier skip_identifier; - pp_skip_comment_or_divop skip_comment_or_divop; - pp_skip_blanks skip_blanks; - pp_skip_number skip_number; - std::vector include_paths; - std::string _M_current_text; - - enum { MAX_LEVEL = 512 }; - int _M_skipping[MAX_LEVEL]; - int _M_true_test[MAX_LEVEL]; - int iflevel; - - union - { - long token_value; - unsigned long token_uvalue; - std::string *token_text; - }; - - enum INCLUDE_POLICY - { - INCLUDE_GLOBAL, - INCLUDE_LOCAL - }; - - enum TOKEN_TYPE - { - TOKEN_NUMBER = 1000, - TOKEN_UNUMBER, - TOKEN_IDENTIFIER, - TOKEN_DEFINED, - TOKEN_LT_LT, - TOKEN_LT_EQ, - TOKEN_GT_GT, - TOKEN_GT_EQ, - TOKEN_EQ_EQ, - TOKEN_NOT_EQ, - TOKEN_OR_OR, - TOKEN_AND_AND, - }; - - enum PP_DIRECTIVE_TYPE - { - PP_UNKNOWN_DIRECTIVE, - PP_DEFINE, - PP_INCLUDE, - PP_INCLUDE_NEXT, - PP_ELIF, - PP_ELSE, - PP_ENDIF, - PP_IF, - PP_IFDEF, - PP_IFNDEF, - PP_UNDEF, - PP_PRAGMA, - PP_ERROR, - PP_WARNING - }; - -public: - pp (pp_environment &__env); - - inline std::back_insert_iterator > include_paths_inserter (); - - inline void push_include_path (std::string const &__path); - - inline std::vector::iterator include_paths_begin (); - inline std::vector::iterator include_paths_end (); - - inline std::vector::const_iterator include_paths_begin () const; - inline std::vector::const_iterator include_paths_end () const; - - template - inline _InputIterator eval_expression (_InputIterator __first, _InputIterator __last, Value *result); - - template - void file (std::string const &filename, _OutputIterator __result); - - template - void file (FILE *fp, _OutputIterator __result); - - template - void operator () (_InputIterator __first, _InputIterator __last, _OutputIterator __result); - -private: - inline bool file_isdir (std::string const &__filename) const; - inline bool file_exists (std::string const &__filename) const; - FILE *find_include_file (std::string const &__filename, std::string *__filepath, - INCLUDE_POLICY __include_policy, bool __skip_current_path = false) const; - - inline int skipping() const; - bool test_if_level(); - - inline std::string fix_file_path (std::string const &filename) const; - inline bool is_absolute (std::string const &filename) const; - - PP_DIRECTIVE_TYPE find_directive (char const *__directive, std::size_t __size) const; - - template - bool find_header_protection (_InputIterator __first, _InputIterator __last, std::string *__prot); - - template - _InputIterator skip (_InputIterator __first, _InputIterator __last); - - template - _InputIterator eval_primary(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_multiplicative(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_additive(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_shift(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_relational(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_equality(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_and(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_xor(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_or(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_logical_and(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_logical_or(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator eval_constant_expression(_InputIterator __first, _InputIterator __last, Value *result); - - template - _InputIterator handle_directive(char const *__directive, std::size_t __size, - _InputIterator __first, _InputIterator __last, _OutputIterator __result); - - template - _InputIterator handle_include(bool skip_current_path, _InputIterator __first, _InputIterator __last, - _OutputIterator __result); - - template - _InputIterator handle_define (_InputIterator __first, _InputIterator __last); - - template - _InputIterator handle_if (_InputIterator __first, _InputIterator __last); - - template - _InputIterator handle_else (_InputIterator __first, _InputIterator __last); - - template - _InputIterator handle_elif (_InputIterator __first, _InputIterator __last); - - template - _InputIterator handle_endif (_InputIterator __first, _InputIterator __last); - - template - _InputIterator handle_ifdef (bool check_undefined, _InputIterator __first, _InputIterator __last); - - template - _InputIterator handle_undef(_InputIterator __first, _InputIterator __last); - - template - inline char peek_char (_InputIterator __first, _InputIterator __last); - - template - _InputIterator next_token (_InputIterator __first, _InputIterator __last, int *kind); -}; - -} // namespace rpp - -#endif // PP_ENGINE_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-environment.h b/3rdparty/pythonqt/generator/parser/rpp/pp-environment.h deleted file mode 100644 index 122772834..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-environment.h +++ /dev/null @@ -1,159 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_ENVIRONMENT_H -#define PP_ENVIRONMENT_H - -#include -#include - -namespace rpp { - -class pp_environment -{ -public: - typedef std::vector::const_iterator const_iterator; - -public: - pp_environment (): - current_line (0), - _M_hash_size (4093) - { - _M_base = (pp_macro **) memset (new pp_macro* [_M_hash_size], 0, _M_hash_size * sizeof (pp_macro*)); - } - - ~pp_environment () - { - for (std::size_t i = 0; i < _M_macros.size (); ++i) - delete _M_macros [i]; - - delete [] _M_base; - } - - const_iterator first_macro () const { return _M_macros.begin (); } - const_iterator last_macro () const { return _M_macros.end (); } - - inline void bind (pp_fast_string const *__name, pp_macro const &__macro) - { - std::size_t h = hash_code (*__name) % _M_hash_size; - pp_macro *m = new pp_macro (__macro); - m->name = __name; - m->next = _M_base [h]; - m->hash_code = h; - _M_base [h] = m; - - _M_macros.push_back (m); - - if (_M_macros.size() == _M_hash_size) - rehash(); - } - - inline void unbind (pp_fast_string const *__name) - { - if (pp_macro *m = resolve (__name)) - m->hidden = true; - } - - inline void unbind (char const *__s, std::size_t __size) - { - pp_fast_string __tmp (__s, __size); - unbind (&__tmp); - } - - inline pp_macro *resolve (pp_fast_string const *__name) const - { - std::size_t h = hash_code (*__name) % _M_hash_size; - pp_macro *it = _M_base [h]; - - while (it && it->name && it->hash_code == h && (*it->name != *__name || it->hidden)) - it = it->next; - - return it; - } - - inline pp_macro *resolve (char const *__data, std::size_t __size) const - { - pp_fast_string const __tmp (__data, __size); - return resolve (&__tmp); - } - - std::string current_file; - int current_line; - -private: - inline std::size_t hash_code (pp_fast_string const &s) const - { - std::size_t hash_value = 0; - - for (std::size_t i = 0; i < s.size (); ++i) - hash_value = (hash_value << 5) - hash_value + s.at (i); - - return hash_value; - } - - void rehash() - { - delete[] _M_base; - - _M_hash_size <<= 1; - - _M_base = (pp_macro **) memset (new pp_macro* [_M_hash_size], 0, _M_hash_size * sizeof(pp_macro*)); - for (std::size_t index = 0; index < _M_macros.size (); ++index) - { - pp_macro *elt = _M_macros [index]; - std::size_t h = hash_code (*elt->name) % _M_hash_size; - elt->next = _M_base [h]; - elt->hash_code = h; - _M_base [h] = elt; - } - } - -private: - std::vector _M_macros; - pp_macro **_M_base; - std::size_t _M_hash_size; -}; - -} // namespace rpp - -#endif // PP_ENVIRONMENT_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-fwd.h b/3rdparty/pythonqt/generator/parser/rpp/pp-fwd.h deleted file mode 100644 index eacac5dac..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-fwd.h +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_FWD_H -#define PP_FWD_H - -namespace rpp { - -template class pp_string; - -typedef pp_string pp_fast_string; - -#endif // PP_FWD_H - -} // namespace rpp - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-internal.h b/3rdparty/pythonqt/generator/parser/rpp/pp-internal.h deleted file mode 100644 index 045bf0972..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-internal.h +++ /dev/null @@ -1,134 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_INTERNAL_H -#define PP_INTERNAL_H - -#include -#include - -namespace rpp { - -namespace _PP_internal -{ - -inline void extract_file_path (const std::string &__filename, std::string *__filepath) -{ - std::size_t __index = __filename.rfind (PATH_SEPARATOR); - - if (__index == std::string::npos) - *__filepath = "/"; - - else - __filepath->assign (__filename, 0, __index + 1); -} - -template -void output_line(const std::string &__filename, int __line, _OutputIterator __result) -{ - std::string __msg; - - __msg += "# "; - - char __line_descr[16]; - pp_snprintf (__line_descr, 16, "%d", __line); - __msg += __line_descr; - - __msg += " \""; - - if (__filename.empty ()) - __msg += ""; - else - __msg += __filename; - - __msg += "\"\n"; - std::copy (__msg.begin (), __msg.end (), __result); -} - -template -inline bool comment_p (_InputIterator __first, _InputIterator __last) /*const*/ -{ - if (__first == __last) - return false; - - if (*__first != '/') - return false; - - if (++__first == __last) - return false; - - return (*__first == '/' || *__first == '*'); -} - -struct _Compare_string: public std::binary_function -{ - inline bool operator () (pp_fast_string const *__lhs, pp_fast_string const *__rhs) const - { return *__lhs < *__rhs; } -}; - -struct _Equal_to_string: public std::binary_function -{ - inline bool operator () (pp_fast_string const *__lhs, pp_fast_string const *__rhs) const - { return *__lhs == *__rhs; } -}; - -struct _Hash_string: public std::unary_function -{ - inline std::size_t operator () (pp_fast_string const *__s) const - { - char const *__ptr = __s->begin (); - std::size_t __size = __s->size (); - std::size_t __h = 0; - - for (std::size_t i = 0; i < __size; ++i) - __h = (__h << 5) - __h + __ptr [i]; - - return __h; - } -}; - -} // _PP_internal - -} // namespace rpp - -#endif // PP_INTERNAL_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-iterator.h b/3rdparty/pythonqt/generator/parser/rpp/pp-iterator.h deleted file mode 100644 index d982efb3c..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-iterator.h +++ /dev/null @@ -1,92 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_ITERATOR_H -#define PP_ITERATOR_H - -#include - -namespace rpp { - -class pp_null_output_iterator - : public std::iterator -{ -public: - pp_null_output_iterator() {} - - template - pp_null_output_iterator &operator=(_Tp const &) - { return *this; } - - inline pp_null_output_iterator &operator * () { return *this; } - inline pp_null_output_iterator &operator ++ () { return *this; } - inline pp_null_output_iterator operator ++ (int) { return *this; } -}; - -template -class pp_output_iterator - : public std::iterator -{ - std::string &_M_result; - -public: - explicit pp_output_iterator(std::string &__result): - _M_result (__result) {} - - inline pp_output_iterator &operator=(typename _Container::const_reference __v) - { - if (_M_result.capacity () == _M_result.size ()) - _M_result.reserve (_M_result.capacity () << 2); - - _M_result.push_back(__v); - return *this; - } - - inline pp_output_iterator &operator * () { return *this; } - inline pp_output_iterator &operator ++ () { return *this; } - inline pp_output_iterator operator ++ (int) { return *this; } -}; - -} // namespace rpp - -#endif // PP_ITERATOR_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-macro-expander.h b/3rdparty/pythonqt/generator/parser/rpp/pp-macro-expander.h deleted file mode 100644 index 8a348f2e2..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-macro-expander.h +++ /dev/null @@ -1,411 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_MACRO_EXPANDER_H -#define PP_MACRO_EXPANDER_H - -#include - -namespace rpp { - -struct pp_frame -{ - pp_macro *expanding_macro; - std::vector *actuals; - - pp_frame (pp_macro *__expanding_macro, std::vector *__actuals): - expanding_macro (__expanding_macro), actuals (__actuals) {} -}; - -class pp_macro_expander -{ - pp_environment &env; - pp_frame *frame; - - pp_skip_number skip_number; - pp_skip_identifier skip_identifier; - pp_skip_string_literal skip_string_literal; - pp_skip_char_literal skip_char_literal; - pp_skip_argument skip_argument; - pp_skip_comment_or_divop skip_comment_or_divop; - pp_skip_blanks skip_blanks; - pp_skip_whitespaces skip_whitespaces; - - std::string const *resolve_formal (pp_fast_string const *__name) - { - assert (__name != 0); - - if (! frame) - return 0; - - assert (frame->expanding_macro != 0); - - std::vector const formals = frame->expanding_macro->formals; - for (std::size_t index = 0; index < formals.size(); ++index) - { - pp_fast_string const *formal = formals[index]; - - if (*formal != *__name) - continue; - - else if (frame->actuals && index < frame->actuals->size()) - return &(*frame->actuals)[index]; - - else - assert (0); // internal error? - } - - return 0; - } - -public: // attributes - int lines; - int generated_lines; - -public: - pp_macro_expander (pp_environment &__env, pp_frame *__frame = 0): - env (__env), frame (__frame), lines (0), generated_lines (0) {} - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last, _OutputIterator __result) - { - generated_lines = 0; - __first = skip_blanks (__first, __last); - lines = skip_blanks.lines; - - while (__first != __last) - { - if (*__first == '\n') - { - *__result++ = *__first; - ++lines; - - __first = skip_blanks (++__first, __last); - lines += skip_blanks.lines; - - if (__first != __last && *__first == '#') - break; - } - else if (*__first == '#') - { - __first = skip_blanks (++__first, __last); - lines += skip_blanks.lines; - - _InputIterator end_id = skip_identifier (__first, __last); - - // ### rewrite: not safe - char name_buffer[512], *cp = name_buffer; - std::copy (__first, end_id, cp); - std::size_t name_size = end_id - __first; - name_buffer[name_size] = '\0'; - - pp_fast_string fast_name (name_buffer, name_size); - - if (std::string const *actual = resolve_formal (&fast_name)) - { - *__result++ = '\"'; - - for (std::string::const_iterator it = skip_whitespaces (actual->begin (), actual->end ()); - it != actual->end (); ++it) - { - if (*it == '"') - { - *__result++ = '\\'; - *__result++ = *it; - } - - else if (*it == '\n') - { - *__result++ = '"'; - *__result++ = '\n'; - *__result++ = '"'; - } - - else - *__result++ = *it; - } - - *__result++ = '\"'; - __first = end_id; - } - else - *__result++ = '#'; // ### warning message? - } - else if (*__first == '\"') - { - _InputIterator next_pos = skip_string_literal (__first, __last); - lines += skip_string_literal.lines; - std::copy (__first, next_pos, __result); - __first = next_pos; - } - else if (*__first == '\'') - { - _InputIterator next_pos = skip_char_literal (__first, __last); - lines += skip_char_literal.lines; - std::copy (__first, next_pos, __result); - __first = next_pos; - } - else if (_PP_internal::comment_p (__first, __last)) - { - __first = skip_comment_or_divop (__first, __last); - int n = skip_comment_or_divop.lines; - lines += n; - - while (n-- > 0) - *__result++ = '\n'; - } - else if (pp_isspace (*__first)) - { - for (; __first != __last; ++__first) - { - if (*__first == '\n' || !pp_isspace (*__first)) - break; - } - - *__result = ' '; - } - else if (pp_isdigit (*__first)) - { - _InputIterator next_pos = skip_number (__first, __last); - lines += skip_number.lines; - std::copy (__first, next_pos, __result); - __first = next_pos; - } - else if (pp_isalpha (*__first) || *__first == '_') - { - _InputIterator name_begin = __first; - _InputIterator name_end = skip_identifier (__first, __last); - __first = name_end; // advance - - // search for the paste token - _InputIterator next = skip_blanks (__first, __last); - if (next != __last && *next == '#') - { - ++next; - if (next != __last && *next == '#') - __first = skip_blanks(++next, __last); - } - - // ### rewrite: not safe - - std::ptrdiff_t name_size; -#if defined(__SUNPRO_CC) - std::distance (name_begin, name_end, name_size); -#else - name_size = std::distance (name_begin, name_end); -#endif - assert (name_size >= 0 && name_size < 512); - - char name_buffer[512], *cp = name_buffer; - std::size_t __size = name_end - name_begin; - std::copy (name_begin, name_end, cp); - name_buffer[__size] = '\0'; - - pp_fast_string fast_name (name_buffer, name_size); - - if (std::string const *actual = resolve_formal (&fast_name)) - { - std::copy (actual->begin (), actual->end (), __result); - continue; - } - - static bool hide_next = false; // ### remove me - - pp_macro *macro = env.resolve (name_buffer, name_size); - if (! macro || macro->hidden || hide_next) - { - hide_next = ! strcmp (name_buffer, "defined"); - - if (__size == 8 && name_buffer [0] == '_' && name_buffer [1] == '_') - { - if (! strcmp (name_buffer, "__LINE__")) - { - char buf [16]; - char *end = buf + pp_snprintf (buf, 16, "%d", env.current_line + lines); - - std::copy (&buf [0], end, __result); - continue; - } - - else if (! strcmp (name_buffer, "__FILE__")) - { - __result++ = '"'; - std::copy (env.current_file.begin (), env.current_file.end (), __result); // ### quote - __result++ = '"'; - continue; - } - } - - std::copy (name_begin, name_end, __result); - continue; - } - - if (! macro->function_like) - { - pp_macro *m = 0; - - if (macro->definition) - { - macro->hidden = true; - - std::string __tmp; - __tmp.reserve (256); - - pp_macro_expander expand_macro (env); - expand_macro (macro->definition->begin (), macro->definition->end (), std::back_inserter (__tmp)); - generated_lines += expand_macro.lines; - - if (! __tmp.empty ()) - { - std::string::iterator __begin_id = skip_whitespaces (__tmp.begin (), __tmp.end ()); - std::string::iterator __end_id = skip_identifier (__begin_id, __tmp.end ()); - - if (__end_id == __tmp.end ()) - { - std::string __id; - __id.assign (__begin_id, __end_id); - - std::size_t x; -#if defined(__SUNPRO_CC) - std::distance (__begin_id, __end_id, x); -#else - x = std::distance (__begin_id, __end_id); -#endif - m = env.resolve (__id.c_str (), x); - } - - if (! m) - std::copy (__tmp.begin (), __tmp.end (), __result); - } - - macro->hidden = false; - } - - if (! m) - continue; - - macro = m; - } - - // function like macro - _InputIterator arg_it = skip_whitespaces (__first, __last); - - if (arg_it == __last || *arg_it != '(') - { - std::copy (name_begin, name_end, __result); - lines += skip_whitespaces.lines; - __first = arg_it; - continue; - } - - std::vector actuals; - actuals.reserve (5); - ++arg_it; // skip '(' - - pp_macro_expander expand_actual (env, frame); - - _InputIterator arg_end = skip_argument_variadics (actuals, macro, arg_it, __last); - if (arg_it != arg_end) - { - std::string actual (arg_it, arg_end); - actuals.resize (actuals.size() + 1); - actuals.back ().reserve (255); - expand_actual (actual.begin (), actual.end(), std::back_inserter (actuals.back())); - arg_it = arg_end; - } - - while (arg_it != __last && *arg_end == ',') - { - ++arg_it; // skip ',' - - arg_end = skip_argument_variadics (actuals, macro, arg_it, __last); - std::string actual (arg_it, arg_end); - actuals.resize (actuals.size() + 1); - actuals.back ().reserve (255); - expand_actual (actual.begin (), actual.end(), std::back_inserter (actuals.back())); - arg_it = arg_end; - } - - assert (arg_it != __last && *arg_it == ')'); - - ++arg_it; // skip ')' - __first = arg_it; - -#if 0 // ### enable me - assert ((macro->variadics && macro->formals.size () >= actuals.size ()) - || macro->formals.size() == actuals.size()); -#endif - - pp_frame frame (macro, &actuals); - pp_macro_expander expand_macro (env, &frame); - macro->hidden = true; - expand_macro (macro->definition->begin (), macro->definition->end (), __result); - macro->hidden = false; - generated_lines += expand_macro.lines; - } - else - *__result++ = *__first++; - } - - return __first; - } - - template - _InputIterator skip_argument_variadics (std::vector const &__actuals, pp_macro *__macro, - _InputIterator __first, _InputIterator __last) - { - _InputIterator arg_end = skip_argument (__first, __last); - - while (__macro->variadics && __first != arg_end && arg_end != __last && *arg_end == ',' - && (__actuals.size () + 1) == __macro->formals.size ()) - { - arg_end = skip_argument (++arg_end, __last); - } - - return arg_end; - } -}; - -} // namespace rpp - -#endif // PP_MACRO_EXPANDER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-macro.h b/3rdparty/pythonqt/generator/parser/rpp/pp-macro.h deleted file mode 100644 index 0b4d7b5e8..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-macro.h +++ /dev/null @@ -1,89 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_MACRO_H -#define PP_MACRO_H - -namespace rpp { - -struct pp_macro -{ -#if defined (PP_WITH_MACRO_POSITION) - pp_fast_string const *file; -#endif - pp_fast_string const *name; - pp_fast_string const *definition; - std::vector formals; - - union - { - int unsigned state; - - struct - { - int unsigned hidden: 1; - int unsigned function_like: 1; - int unsigned variadics: 1; - }; - }; - - int lines; - pp_macro *next; - std::size_t hash_code; - - inline pp_macro(): -#if defined (PP_WITH_MACRO_POSITION) - file (0), -#endif - name (0), - definition (0), - state (0), - lines (0), - next (0), - hash_code (0) - {} -}; - -} // namespace rpp - -#endif // PP_MACRO_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-qt-configuration b/3rdparty/pythonqt/generator/parser/rpp/pp-qt-configuration deleted file mode 100644 index dfdd30ffd..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-qt-configuration +++ /dev/null @@ -1,24 +0,0 @@ -#define __cplusplus 1 - -#define __STDC__ - -// Qt -#define QOBJECTDEFS_H - -// not yet supported -#define Q_SLOTS slots -#define Q_SIGNALS signals -#define Q_FLAGS(a) -#define Q_PRIVATE_SLOT(a, b) -#define Q_DECLARE_INTERFACE(a,b) -#define Q_INTERFACES(a) -#define Q_GADGET -#define Q_OVERRIDE(a) -#define Q_OS_OS2 -#define Q_NO_USING_KEYWORD - -// There are symbols in Qt that exist in Debug but -// not in release -#define QT_NO_DEBUG - -#define QT_JAMBI_RUN diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-scanner.h b/3rdparty/pythonqt/generator/parser/rpp/pp-scanner.h deleted file mode 100644 index 32d94cd47..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-scanner.h +++ /dev/null @@ -1,367 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_SCANNER_H -#define PP_SCANNER_H - -namespace rpp { - -struct pp_skip_blanks -{ - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - lines = 0; - - for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) - { - if (*__first == '\\') - { - _InputIterator __begin = __first; - ++__begin; - - if (__begin != __last && *__begin == '\n') - ++__first; - else - break; - } - else if (*__first == '\n' || !pp_isspace (*__first)) - break; - } - - return __first; - } -}; - -struct pp_skip_whitespaces -{ - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - lines = 0; - - for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) - { - if (! pp_isspace (*__first)) - break; - } - - return __first; - } -}; - -struct pp_skip_comment_or_divop -{ - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - enum { - MAYBE_BEGIN, - BEGIN, - MAYBE_END, - END, - IN_COMMENT, - IN_CXX_COMMENT - } state (MAYBE_BEGIN); - - lines = 0; - - for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) - { - switch (state) - { - default: - assert (0); - break; - - case MAYBE_BEGIN: - if (*__first != '/') - return __first; - - state = BEGIN; - break; - - case BEGIN: - if (*__first == '*') - state = IN_COMMENT; - else if (*__first == '/') - state = IN_CXX_COMMENT; - else - return __first; - break; - - case IN_COMMENT: - if (*__first == '*') - state = MAYBE_END; - break; - - case IN_CXX_COMMENT: - if (*__first == '\n') - return __first; - break; - - case MAYBE_END: - if (*__first == '/') - state = END; - else if (*__first != '*') - state = IN_COMMENT; - break; - - case END: - return __first; - } - } - - return __first; - } -}; - -struct pp_skip_identifier -{ - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - lines = 0; - - for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) - { - if (! pp_isalnum (*__first) && *__first != '_') - break; - } - - return __first; - } -}; - -struct pp_skip_number -{ - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - lines = 0; - - for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) - { - if (! pp_isalnum (*__first) && *__first != '.') - break; - } - - return __first; - } -}; - -struct pp_skip_string_literal -{ - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - enum { - BEGIN, - IN_STRING, - QUOTE, - END - } state (BEGIN); - - lines = 0; - - for (; __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) - { - switch (state) - { - default: - assert (0); - break; - - case BEGIN: - if (*__first != '\"') - return __first; - state = IN_STRING; - break; - - case IN_STRING: - assert (*__first != '\n'); - - if (*__first == '\"') - state = END; - else if (*__first == '\\') - state = QUOTE; - break; - - case QUOTE: - state = IN_STRING; - break; - - case END: - return __first; - } - } - - return __first; - } -}; - -struct pp_skip_char_literal -{ - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - enum { - BEGIN, - IN_STRING, - QUOTE, - END - } state (BEGIN); - - lines = 0; - - for (; state != END && __first != __last; lines += (*__first != '\n' ? 0 : 1), ++__first) - { - switch (state) - { - default: - assert (0); - break; - - case BEGIN: - if (*__first != '\'') - return __first; - state = IN_STRING; - break; - - case IN_STRING: - assert (*__first != '\n'); - - if (*__first == '\'') - state = END; - else if (*__first == '\\') - state = QUOTE; - break; - - case QUOTE: - state = IN_STRING; - break; - } - } - - return __first; - } -}; - -struct pp_skip_argument -{ - pp_skip_identifier skip_number; - pp_skip_identifier skip_identifier; - pp_skip_string_literal skip_string_literal; - pp_skip_char_literal skip_char_literal; - pp_skip_comment_or_divop skip_comment_or_divop; - int lines; - - template - _InputIterator operator () (_InputIterator __first, _InputIterator __last) - { - int depth = 0; - lines = 0; - - while (__first != __last) - { - if (!depth && (*__first == ')' || *__first == ',')) - break; - else if (*__first == '(') - ++depth, ++__first; - else if (*__first == ')') - --depth, ++__first; - else if (*__first == '\"') - { - __first = skip_string_literal (__first, __last); - lines += skip_string_literal.lines; - } - else if (*__first == '\'') - { - __first = skip_char_literal (__first, __last); - lines += skip_char_literal.lines; - } - else if (*__first == '/') - { - __first = skip_comment_or_divop (__first, __last); - lines += skip_comment_or_divop.lines; - } - else if (pp_isalpha (*__first) || *__first == '_') - { - __first = skip_identifier (__first, __last); - lines += skip_identifier.lines; - } - else if (pp_isdigit (*__first)) - { - __first = skip_number (__first, __last); - lines += skip_number.lines; - } - else if (*__first == '\n') - { - ++__first; - ++lines; - } - else - ++__first; - } - - return __first; - } -}; - -} // namespace rpp - -#endif // PP_SCANNER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-string.h b/3rdparty/pythonqt/generator/parser/rpp/pp-string.h deleted file mode 100644 index f0c3d4c4d..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-string.h +++ /dev/null @@ -1,113 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_STRING_H -#define PP_STRING_H - -namespace rpp { - -template -class pp_string -{ - typedef std::char_traits<_CharT> traits_type; - typedef std::size_t size_type; - - _CharT const *_M_begin; - std::size_t _M_size; - -public: - inline pp_string (): - _M_begin (0), _M_size(0) {} - - explicit pp_string (std::string const &__s): - _M_begin (__s.c_str ()), _M_size (__s.size ()) {} - - inline pp_string (_CharT const *__begin, std::size_t __size): - _M_begin (__begin), _M_size (__size) {} - - inline _CharT const *begin () const { return _M_begin; } - inline _CharT const *end () const { return _M_begin + _M_size; } - - inline _CharT at (std::size_t index) const { return _M_begin [index]; } - - inline std::size_t size () const { return _M_size; } - - inline int compare (pp_string const &__other) const - { - size_type const __size = this->size(); - size_type const __osize = __other.size(); - size_type const __len = std::min (__size, __osize); - - int __r = traits_type::compare (_M_begin, __other._M_begin, __len); - if (!__r) - __r = (int) (__size - __osize); - - return __r; - } - - inline bool operator == (pp_string const &__other) const - { return compare (__other) == 0; } - - inline bool operator != (pp_string const &__other) const - { return compare (__other) != 0; } - - inline bool operator < (pp_string const &__other) const - { return compare (__other) < 0; } - - inline bool operator == (char const *s) const - { - std::size_t n = strlen (s); - - if (n != _M_size) - return false; - - return ! strncmp (_M_begin, s, n); - } - - inline bool operator != (char const *s) const - { return ! operator == (s); } -}; - -} // namespace rpp - -#endif // PP_STRING_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp-symbol.h b/3rdparty/pythonqt/generator/parser/rpp/pp-symbol.h deleted file mode 100644 index b078b6651..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp-symbol.h +++ /dev/null @@ -1,101 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_SYMBOL_H -#define PP_SYMBOL_H - -namespace rpp { - -class pp_symbol -{ - static rxx_allocator &allocator_instance () - { - static rxx_allocator__allocator; - return __allocator; - } - -public: - static int &N() - { - static int __N; - return __N; - } - - static pp_fast_string const *get (char const *__data, std::size_t __size) - { - ++N(); - char *data = allocator_instance ().allocate (__size + 1); - memcpy(data, __data, __size); - data[__size] = '\0'; - - char *where = allocator_instance ().allocate (sizeof (pp_fast_string)); - return new (where) pp_fast_string (data, __size); - } - - template - static pp_fast_string const *get (_InputIterator __first, _InputIterator __last) - { - ++N(); - std::ptrdiff_t __size; -#if defined(__SUNPRO_CC) - std::distance (__first, __last, __size); -#else - __size = std::distance (__first, __last); -#endif - assert (__size >= 0 && __size < 512); - - char *data = allocator_instance ().allocate (__size + 1); - std::copy (__first, __last, data); - data[__size] = '\0'; - - char *where = allocator_instance ().allocate (sizeof (pp_fast_string)); - return new (where) pp_fast_string (data, __size); - } - - static pp_fast_string const *get(std::string const &__s) - { return get (__s.c_str (), __s.size ()); } -}; - -} // namespace rpp - -#endif // PP_SYMBOL_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/pp.h b/3rdparty/pythonqt/generator/parser/rpp/pp.h deleted file mode 100644 index b7d042101..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/pp.h +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PP_H -#define PP_H - -#if defined(_WIN64) || defined(WIN64) || defined(__WIN64__) \ - || defined(_WIN32) || defined(WIN32) || defined(__WIN32__) -# define PP_OS_WIN -#endif - -#include -#include -#include -#include -#include -#include -#include -#include - -#include - -#ifdef HAVE_MMAP -# include -#endif - -#include -#include - -#if (_MSC_VER >= 1400) -# define FILENO _fileno -#else -# define FILENO fileno -#endif - -#if defined (PP_OS_WIN) -# define PATH_SEPARATOR '\\' -#else -# define PATH_SEPARATOR '/' -#endif - -#if defined (RPP_JAMBI) -# include "rxx_allocator.h" -#else -# include "rpp-allocator.h" -#endif - -#if defined (_MSC_VER) -# define pp_snprintf _snprintf -#else -# define pp_snprintf snprintf -#endif - -#include "pp-fwd.h" -#include "pp-cctype.h" -#include "pp-string.h" -#include "pp-symbol.h" -#include "pp-internal.h" -#include "pp-iterator.h" -#include "pp-macro.h" -#include "pp-environment.h" -#include "pp-scanner.h" -#include "pp-macro-expander.h" -#include "pp-engine.h" -#include "pp-engine-bits.h" - -#endif // PP_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/rpp/preprocessor.cpp b/3rdparty/pythonqt/generator/parser/rpp/preprocessor.cpp deleted file mode 100644 index cd58bcd6e..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/preprocessor.cpp +++ /dev/null @@ -1,176 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "preprocessor.h" - -#include - -// register callback for include hooks -static void includeFileHook(const std::string &, const std::string &, FILE *); - -#define PP_HOOK_ON_FILE_INCLUDED(A, B, C) includeFileHook(A, B, C) -#include "pp.h" - -using namespace rpp; - -#include - -class PreprocessorPrivate -{ -public: - QByteArray result; - pp_environment env; - QStringList includePaths; - - void initPP(pp &proc) - { - foreach(QString path, includePaths) - proc.push_include_path(path.toStdString()); - } -}; - -QHash includedFiles; - -void includeFileHook(const std::string &fileName, const std::string &filePath, FILE *) -{ - includedFiles[QString::fromStdString(fileName)].append(QString::fromStdString(filePath)); -} - -Preprocessor::Preprocessor() -{ - d = new PreprocessorPrivate; - includedFiles.clear(); -} - -Preprocessor::~Preprocessor() -{ - delete d; -} - -void Preprocessor::processFile(const QString &fileName) -{ - pp proc(d->env); - d->initPP(proc); - - d->result.reserve(d->result.size() + 20 * 1024); - - d->result += "# 1 \"" + fileName.toLatin1() + "\"\n"; // ### REMOVE ME - proc.file(fileName.toLocal8Bit().constData(), std::back_inserter(d->result)); -} - -void Preprocessor::processString(const QByteArray &str) -{ - pp proc(d->env); - d->initPP(proc); - - proc(str.begin(), str.end(), std::back_inserter(d->result)); -} - -QByteArray Preprocessor::result() const -{ - return d->result; -} - -void Preprocessor::addIncludePaths(const QStringList &includePaths) -{ - d->includePaths += includePaths; -} - -QStringList Preprocessor::macroNames() const -{ - QStringList macros; - - pp_environment::const_iterator it = d->env.first_macro(); - while (it != d->env.last_macro()) { - const pp_macro *m = *it; - macros += QString::fromLatin1(m->name->begin(), m->name->size()); - ++it; - } - - return macros; -} - -QList Preprocessor::macros() const -{ - QList items; - - pp_environment::const_iterator it = d->env.first_macro(); - while (it != d->env.last_macro()) { - const pp_macro *m = *it; - MacroItem item; - item.name = QString::fromLatin1(m->name->begin(), m->name->size()); - item.definition = QString::fromLatin1(m->definition->begin(), - m->definition->size()); - for (size_t i = 0; i < m->formals.size(); ++i) { - item.parameters += QString::fromLatin1(m->formals[i]->begin(), - m->formals[i]->size()); - } - item.isFunctionLike = m->function_like; - -#ifdef PP_WITH_MACRO_POSITION - item.fileName = QString::fromLatin1(m->file->begin(), m->file->size()); -#endif - items += item; - - ++it; - } - - return items; -} - -/* -int main() -{ - Preprocessor pp; - - QStringList paths; - paths << "/usr/include"; - pp.addIncludePaths(paths); - - pp.processFile("pp-configuration"); - pp.processFile("/usr/include/stdio.h"); - - qDebug() << pp.result(); - - return 0; -} -*/ - diff --git a/3rdparty/pythonqt/generator/parser/rpp/preprocessor.h b/3rdparty/pythonqt/generator/parser/rpp/preprocessor.h deleted file mode 100644 index 93231aeb9..000000000 --- a/3rdparty/pythonqt/generator/parser/rpp/preprocessor.h +++ /dev/null @@ -1,84 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PREPROCESSOR_H -#define PREPROCESSOR_H - -#include -#include -#include - -class QByteArray; -class PreprocessorPrivate; - -class Preprocessor -{ -public: - Preprocessor(); - ~Preprocessor(); - - void processFile(const QString &fileName); - void processString(const QByteArray &str); - - void addIncludePaths(const QStringList &includePaths); - - QByteArray result() const; - - QStringList macroNames() const; - - struct MacroItem - { - QString name; - QStringList parameters; - QString definition; - bool isFunctionLike; -#ifdef PP_WITH_MACRO_POSITION - QString fileName; -#endif - }; - QList macros() const; - -private: - Q_DISABLE_COPY(Preprocessor) - PreprocessorPrivate *d; -}; - -#endif diff --git a/3rdparty/pythonqt/generator/parser/rxx.pro b/3rdparty/pythonqt/generator/parser/rxx.pro deleted file mode 100644 index 5f242f9ca..000000000 --- a/3rdparty/pythonqt/generator/parser/rxx.pro +++ /dev/null @@ -1,12 +0,0 @@ -# File generated by kdevelop's qmake manager. -# ------------------------------------------- -# Subdir relative project main directory: . -# Target is an application: r++0 - -include(rxx.pri) -SOURCES += main.cpp - -TEMPLATE = app -QT = core -TARGET = r++0 -CONFIG += debug_and_release diff --git a/3rdparty/pythonqt/generator/parser/rxx_allocator.h b/3rdparty/pythonqt/generator/parser/rxx_allocator.h deleted file mode 100644 index 87ec7e81f..000000000 --- a/3rdparty/pythonqt/generator/parser/rxx_allocator.h +++ /dev/null @@ -1,132 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef RXX_ALLOCATOR_H -#define RXX_ALLOCATOR_H - -#include -#include -#include -#include - -template class rxx_allocator { -public: - typedef _Tp value_type; - typedef _Tp* pointer; - typedef const _Tp* const_pointer; - typedef _Tp& reference; - typedef const _Tp& const_reference; - typedef std::size_t size_type; - typedef std::ptrdiff_t difference_type; - - static const size_type max_block_count = size_type(-1); - static const size_type _S_block_size = 1 << 16; // 64K - - rxx_allocator() { - _M_block_index = max_block_count; - _M_current_index = 0; - _M_storage = 0; - _M_current_block = 0; - } - - ~rxx_allocator() { - for (size_type index = 0; index < _M_block_index + 1; ++index) - delete[] _M_storage[index]; - - ::free(_M_storage); - } - - pointer address(reference __val) { return &__val; } - const_pointer address(const_reference __val) const { return &__val; } - - pointer allocate(size_type __n, const void* = 0) { - const size_type bytes = __n * sizeof(_Tp); - - if (_M_current_block == 0 - || _S_block_size < _M_current_index + bytes) - { - ++_M_block_index; - - _M_storage = reinterpret_cast - (::realloc(_M_storage, sizeof(char*) * (1 + _M_block_index))); - - _M_current_block = _M_storage[_M_block_index] = reinterpret_cast - (new char[_S_block_size]); - -#if defined(RXX_ALLOCATOR_INIT_0) // ### make it a policy - ::memset(_M_current_block, 0, _S_block_size); -#endif - _M_current_index = 0; - } - - pointer p = reinterpret_cast - (_M_current_block + _M_current_index); - - _M_current_index += bytes; - - return p; - } - - void deallocate(pointer __p, size_type __n) {} - - size_type max_size() const { return size_type(-1) / sizeof(_Tp); } - - void contruct(pointer __p, const_reference __val) { new (__p) _Tp(__val); } - void destruct(pointer __p) { __p->~_Tp(); } - -private: - template struct rebind { - typedef rxx_allocator<_Tp1> other; - }; - - template rxx_allocator(const rxx_allocator<_Tp1> &__o) {} - -private: - size_type _M_block_index; - size_type _M_current_index; - char *_M_current_block; - char **_M_storage; -}; - -#endif // RXX_ALLOCATOR_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/smallobject.cpp b/3rdparty/pythonqt/generator/parser/smallobject.cpp deleted file mode 100644 index 4e511be47..000000000 --- a/3rdparty/pythonqt/generator/parser/smallobject.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "smallobject.h" - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/smallobject.h b/3rdparty/pythonqt/generator/parser/smallobject.h deleted file mode 100644 index 1295c304f..000000000 --- a/3rdparty/pythonqt/generator/parser/smallobject.h +++ /dev/null @@ -1,64 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef SMALLOBJECT_H -#define SMALLOBJECT_H - -#include "rxx_allocator.h" -#include - -class pool -{ - rxx_allocator __alloc; - -public: - inline void *allocate(std::size_t __size); -}; - -inline void *pool::allocate(std::size_t __size) -{ - return __alloc.allocate(__size); -} - -#endif - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/symbol.h b/3rdparty/pythonqt/generator/parser/symbol.h deleted file mode 100644 index f9fe13725..000000000 --- a/3rdparty/pythonqt/generator/parser/symbol.h +++ /dev/null @@ -1,142 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef SYMBOL_H -#define SYMBOL_H - -#include -#include - -#include -#include - -struct NameSymbol -{ - const char *data; - std::size_t count; - - inline QString as_string() const - { - return QString::fromUtf8(data, (int) count); - } - - inline bool operator == (const NameSymbol &other) const - { - return count == other.count - && std::strncmp(data, other.data, count) == 0; - } - -protected: - inline NameSymbol() {} - inline NameSymbol(const char *d, std::size_t c) - : data(d), count(c) {} - -private: - void operator = (const NameSymbol &); - - friend class NameTable; -}; - -inline uint qHash(const NameSymbol &r) -{ - uint hash_value = 0; - - for (std::size_t i=0; i &r) -{ - uint hash_value = 0; - - for (std::size_t i=0; i KeyType; - typedef QHash ContainerType; - -public: - NameTable() {} - - ~NameTable() - { - qDeleteAll(_M_storage); - } - - inline const NameSymbol *findOrInsert(const char *str, std::size_t len) - { - KeyType key(str, len); - - NameSymbol *name = _M_storage.value(key); - if (!name) - { - name = new NameSymbol(str, len); - _M_storage.insert(key, name); - } - - return name; - } - - inline std::size_t count() const - { - return _M_storage.size(); - } - -private: - ContainerType _M_storage; - -private: - NameTable(const NameTable &other); - void operator = (const NameTable &other); -}; - -#endif // SYMBOL_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/tokens.cpp b/3rdparty/pythonqt/generator/parser/tokens.cpp deleted file mode 100644 index 79c87c53b..000000000 --- a/3rdparty/pythonqt/generator/parser/tokens.cpp +++ /dev/null @@ -1,272 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include - -#include "tokens.h" - -static char const * const _S_token_names[] = { - "K_DCOP", - "Q_OBJECT", - "Q_PROPERTY", - "__attribute__", - "__typeof", - "and", - "and_eq", - "arrow", - "asm", - "assign", - "auto", - "bitand", - "bitor", - "bool", - "break", - "case", - "catch", - "char", - "char_literal", - "class", - "comment", - "compl", - "concat", - "const", - "const_cast", - "continue", - "decr", - "default", - "delete", - "do", - "double", - "dynamic_cast", - "ellipsis", - "else", - "emit", - "enum", - "eq", - "explicit", - "export", - "extern", - "false", - "float", - "for", - "friend", - "geq", - "goto", - "identifier", - "if", - "incr", - "inline", - "int", - "k_dcop", - "k_dcop_signals", - "leq", - "long", - "mutable", - "namespace", - "new", - "not", - "not_eq", - "number_literal", - "operator", - "or", - "or_eq", - "preproc", - "private", - "protected", - "ptrmem", - "public", - "register", - "reinterpret_cast", - "return", - "scope", - "shift", - "short", - "signals", - "signed", - "sizeof", - "slots", - "static", - "static_cast", - "string_literal", - "struct", - "switch", - "template", - "this", - "throw", - "true", - "try", - "typedef", - "typeid", - "typename", - "union", - "unsigned", - "using", - "virtual", - "void", - "volatile", - "wchar_t", - "while", - "whitespaces", - "xor", - "xor_eq", - "Q_ENUMS" -}; - -static char _S_printable[][2] = { - { char(32), '\0' }, - { char(33), '\0' }, - { char(34), '\0' }, - { char(35), '\0' }, - { char(36), '\0' }, - { char(37), '\0' }, - { char(38), '\0' }, - { char(39), '\0' }, - { char(40), '\0' }, - { char(41), '\0' }, - { char(42), '\0' }, - { char(43), '\0' }, - { char(44), '\0' }, - { char(45), '\0' }, - { char(46), '\0' }, - { char(47), '\0' }, - { char(48), '\0' }, - { char(49), '\0' }, - { char(50), '\0' }, - { char(51), '\0' }, - { char(52), '\0' }, - { char(53), '\0' }, - { char(54), '\0' }, - { char(55), '\0' }, - { char(56), '\0' }, - { char(57), '\0' }, - { char(58), '\0' }, - { char(59), '\0' }, - { char(60), '\0' }, - { char(61), '\0' }, - { char(62), '\0' }, - { char(63), '\0' }, - { char(64), '\0' }, - { char(65), '\0' }, - { char(66), '\0' }, - { char(67), '\0' }, - { char(68), '\0' }, - { char(69), '\0' }, - { char(70), '\0' }, - { char(71), '\0' }, - { char(72), '\0' }, - { char(73), '\0' }, - { char(74), '\0' }, - { char(75), '\0' }, - { char(76), '\0' }, - { char(77), '\0' }, - { char(78), '\0' }, - { char(79), '\0' }, - { char(80), '\0' }, - { char(81), '\0' }, - { char(82), '\0' }, - { char(83), '\0' }, - { char(84), '\0' }, - { char(85), '\0' }, - { char(86), '\0' }, - { char(87), '\0' }, - { char(88), '\0' }, - { char(89), '\0' }, - { char(90), '\0' }, - { char(91), '\0' }, - { char(92), '\0' }, - { char(93), '\0' }, - { char(94), '\0' }, - { char(95), '\0' }, - { char(96), '\0' }, - { char(97), '\0' }, - { char(98), '\0' }, - { char(99), '\0' }, - { char(100), '\0' }, - { char(101), '\0' }, - { char(102), '\0' }, - { char(103), '\0' }, - { char(104), '\0' }, - { char(105), '\0' }, - { char(106), '\0' }, - { char(107), '\0' }, - { char(108), '\0' }, - { char(109), '\0' }, - { char(110), '\0' }, - { char(111), '\0' }, - { char(112), '\0' }, - { char(113), '\0' }, - { char(114), '\0' }, - { char(115), '\0' }, - { char(116), '\0' }, - { char(117), '\0' }, - { char(118), '\0' }, - { char(119), '\0' }, - { char(120), '\0' }, - { char(121), '\0' }, - { char(122), '\0' }, - { char(123), '\0' }, - { char(124), '\0' }, - { char(125), '\0' }, - { char(126), '\0' }, - { char(127), '\0' }, -}; - -char const *token_name(int token) -{ - if (token == 0) - { - return "eof"; - } - else if (token >= 32 && token <= 127) - { - return _S_printable[token - 32]; - } - else if (token >= 1000) - { - return _S_token_names[token - 1000]; - } - - Q_ASSERT(0); - return 0; -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/tokens.h b/3rdparty/pythonqt/generator/parser/tokens.h deleted file mode 100644 index c2b5bc9c3..000000000 --- a/3rdparty/pythonqt/generator/parser/tokens.h +++ /dev/null @@ -1,163 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef TOKENS_H -#define TOKENS_H - -enum TOKEN_KIND -{ - Token_EOF = 0, - - Token_K_DCOP = 1000, - Token_Q_OBJECT, - Token_Q_PROPERTY, - Token___attribute__, - Token___typeof, - Token_and, - Token_and_eq, - Token_arrow, - Token_asm, - Token_assign, - Token_auto, - Token_bitand, - Token_bitor, - Token_bool, - Token_break, - Token_case, - Token_catch, - Token_char, - Token_char_literal, - Token_class, - Token_comment, - Token_compl, - Token_concat, - Token_const, - Token_const_cast, - Token_continue, - Token_decr, - Token_default, - Token_delete, - Token_do, - Token_double, - Token_dynamic_cast, - Token_ellipsis, - Token_else, - Token_emit, - Token_enum, - Token_eq, - Token_explicit, - Token_export, - Token_extern, - Token_false, - Token_float, - Token_for, - Token_friend, - Token_geq, - Token_goto, - Token_identifier, - Token_if, - Token_incr, - Token_inline, - Token_int, - Token_k_dcop, - Token_k_dcop_signals, - Token_leq, - Token_long, - Token_mutable, - Token_namespace, - Token_new, - Token_not, - Token_not_eq, - Token_number_literal, - Token_operator, - Token_or, - Token_or_eq, - Token_preproc, - Token_private, - Token_protected, - Token_ptrmem, - Token_public, - Token_register, - Token_reinterpret_cast, - Token_return, - Token_scope, - Token_shift, - Token_short, - Token_signals, - Token_signed, - Token_sizeof, - Token_slots, - Token_static, - Token_static_cast, - Token_string_literal, - Token_struct, - Token_switch, - Token_template, - Token_this, - Token_throw, - Token_true, - Token_try, - Token_typedef, - Token_typeid, - Token_typename, - Token_union, - Token_unsigned, - Token_using, - Token_virtual, - Token_void, - Token_volatile, - Token_wchar_t, - Token_while, - Token_whitespaces, - Token_xor, - Token_xor_eq, - Token_Q_ENUMS, - Token_Q_INVOKABLE, - - TOKEN_KIND_COUNT -}; - -char const *token_name(int token); - -#endif - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/type_compiler.cpp b/3rdparty/pythonqt/generator/parser/type_compiler.cpp deleted file mode 100644 index 4a73a7448..000000000 --- a/3rdparty/pythonqt/generator/parser/type_compiler.cpp +++ /dev/null @@ -1,155 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ - - -#include "type_compiler.h" -#include "name_compiler.h" -#include "lexer.h" -#include "symbol.h" -#include "tokens.h" -#include "binder.h" - -#include - -TypeCompiler::TypeCompiler(Binder *binder) - : _M_binder (binder), _M_token_stream(binder->tokenStream ()) -{ -} - -void TypeCompiler::run(TypeSpecifierAST *node) -{ - _M_type.clear(); - _M_cv.clear(); - - visit(node); - - if (node && node->cv) - { - const ListNode *it = node->cv->toFront(); - const ListNode *end = it; - do - { - int kind = _M_token_stream->kind(it->element); - if (! _M_cv.contains(kind)) - _M_cv.append(kind); - - it = it->next; - } - while (it != end); - } -} - -void TypeCompiler::visitClassSpecifier(ClassSpecifierAST *node) -{ - visit(node->name); -} - -void TypeCompiler::visitEnumSpecifier(EnumSpecifierAST *node) -{ - visit(node->name); -} - -void TypeCompiler::visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *node) -{ - visit(node->name); -} - -void TypeCompiler::visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *node) -{ - if (const ListNode *it = node->integrals) - { - it = it->toFront(); - const ListNode *end = it; - QString current_item; - do - { - std::size_t token = it->element; - current_item += token_name(_M_token_stream->kind(token)); - current_item += " "; - it = it->next; - } - while (it != end); - _M_type += current_item.trimmed(); - } - else if (node->type_of) - { - // ### implement me - _M_type += QLatin1String("typeof<...>"); - } - - visit(node->name); -} - -void TypeCompiler::visitName(NameAST *node) -{ - NameCompiler name_cc(_M_binder); - name_cc.run(node); - _M_type = name_cc.qualifiedName(); -} - -QStringList TypeCompiler::cvString() const -{ - QStringList lst; - - foreach (int q, cv()) - { - if (q == Token_const) - lst.append(QLatin1String("const")); - else if (q == Token_volatile) - lst.append(QLatin1String("volatile")); - } - - return lst; -} - -bool TypeCompiler::isConstant() const -{ - return _M_cv.contains(Token_const); -} - -bool TypeCompiler::isVolatile() const -{ - return _M_cv.contains(Token_volatile); -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/type_compiler.h b/3rdparty/pythonqt/generator/parser/type_compiler.h deleted file mode 100644 index 87e51ca99..000000000 --- a/3rdparty/pythonqt/generator/parser/type_compiler.h +++ /dev/null @@ -1,87 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef TYPE_COMPILER_H -#define TYPE_COMPILER_H - -#include "default_visitor.h" - -#include -#include -#include - -class TokenStream; -class Binder; - -class TypeCompiler: protected DefaultVisitor -{ -public: - TypeCompiler(Binder *binder); - - inline QStringList qualifiedName() const { return _M_type; } - inline QList cv() const { return _M_cv; } - - bool isConstant() const; - bool isVolatile() const; - - QStringList cvString() const; - - void run(TypeSpecifierAST *node); - -protected: - virtual void visitClassSpecifier(ClassSpecifierAST *node); - virtual void visitEnumSpecifier(EnumSpecifierAST *node); - virtual void visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *node); - virtual void visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *node); - - virtual void visitName(NameAST *node); - -private: - Binder *_M_binder; - TokenStream *_M_token_stream; - QStringList _M_type; - QList _M_cv; -}; - -#endif // TYPE_COMPILER_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/visitor.cpp b/3rdparty/pythonqt/generator/parser/visitor.cpp deleted file mode 100644 index be88d8352..000000000 --- a/3rdparty/pythonqt/generator/parser/visitor.cpp +++ /dev/null @@ -1,139 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#include "visitor.h" - -Visitor::visitor_fun_ptr Visitor::_S_table[AST::NODE_KIND_COUNT] = { - 0, - reinterpret_cast(&Visitor::visitAccessSpecifier), - reinterpret_cast(&Visitor::visitAsmDefinition), - reinterpret_cast(&Visitor::visitBaseClause), - reinterpret_cast(&Visitor::visitBaseSpecifier), - reinterpret_cast(&Visitor::visitBinaryExpression), - reinterpret_cast(&Visitor::visitCastExpression), - reinterpret_cast(&Visitor::visitClassMemberAccess), - reinterpret_cast(&Visitor::visitClassSpecifier), - reinterpret_cast(&Visitor::visitCompoundStatement), - reinterpret_cast(&Visitor::visitCondition), - reinterpret_cast(&Visitor::visitConditionalExpression), - reinterpret_cast(&Visitor::visitCppCastExpression), - reinterpret_cast(&Visitor::visitCtorInitializer), - reinterpret_cast(&Visitor::visitDeclarationStatement), - reinterpret_cast(&Visitor::visitDeclarator), - reinterpret_cast(&Visitor::visitDeleteExpression), - reinterpret_cast(&Visitor::visitDoStatement), - reinterpret_cast(&Visitor::visitElaboratedTypeSpecifier), - reinterpret_cast(&Visitor::visitEnumSpecifier), - reinterpret_cast(&Visitor::visitEnumerator), - reinterpret_cast(&Visitor::visitExceptionSpecification), - reinterpret_cast(&Visitor::visitExpressionOrDeclarationStatement), - reinterpret_cast(&Visitor::visitExpressionStatement), - reinterpret_cast(&Visitor::visitForStatement), - reinterpret_cast(&Visitor::visitFunctionCall), - reinterpret_cast(&Visitor::visitFunctionDefinition), - reinterpret_cast(&Visitor::visitIfStatement), - reinterpret_cast(&Visitor::visitIncrDecrExpression), - reinterpret_cast(&Visitor::visitInitDeclarator), - reinterpret_cast(&Visitor::visitInitializer), - reinterpret_cast(&Visitor::visitInitializerClause), - reinterpret_cast(&Visitor::visitLabeledStatement), - reinterpret_cast(&Visitor::visitLinkageBody), - reinterpret_cast(&Visitor::visitLinkageSpecification), - reinterpret_cast(&Visitor::visitMemInitializer), - reinterpret_cast(&Visitor::visitName), - reinterpret_cast(&Visitor::visitNamespace), - reinterpret_cast(&Visitor::visitNamespaceAliasDefinition), - reinterpret_cast(&Visitor::visitNewDeclarator), - reinterpret_cast(&Visitor::visitNewExpression), - reinterpret_cast(&Visitor::visitNewInitializer), - reinterpret_cast(&Visitor::visitNewTypeId), - reinterpret_cast(&Visitor::visitOperator), - reinterpret_cast(&Visitor::visitOperatorFunctionId), - reinterpret_cast(&Visitor::visitParameterDeclaration), - reinterpret_cast(&Visitor::visitParameterDeclarationClause), - reinterpret_cast(&Visitor::visitPostfixExpression), - reinterpret_cast(&Visitor::visitPrimaryExpression), - reinterpret_cast(&Visitor::visitPtrOperator), - reinterpret_cast(&Visitor::visitPtrToMember), - reinterpret_cast(&Visitor::visitReturnStatement), - reinterpret_cast(&Visitor::visitSimpleDeclaration), - reinterpret_cast(&Visitor::visitSimpleTypeSpecifier), - reinterpret_cast(&Visitor::visitSizeofExpression), - reinterpret_cast(&Visitor::visitStringLiteral), - reinterpret_cast(&Visitor::visitSubscriptExpression), - reinterpret_cast(&Visitor::visitSwitchStatement), - reinterpret_cast(&Visitor::visitTemplateArgument), - reinterpret_cast(&Visitor::visitTemplateDeclaration), - reinterpret_cast(&Visitor::visitTemplateParameter), - reinterpret_cast(&Visitor::visitThrowExpression), - reinterpret_cast(&Visitor::visitTranslationUnit), - reinterpret_cast(&Visitor::visitTryBlockStatement), - reinterpret_cast(&Visitor::visitTypeId), - reinterpret_cast(&Visitor::visitTypeIdentification), - reinterpret_cast(&Visitor::visitTypeParameter), - reinterpret_cast(&Visitor::visitTypedef), - reinterpret_cast(&Visitor::visitUnaryExpression), - reinterpret_cast(&Visitor::visitUnqualifiedName), - reinterpret_cast(&Visitor::visitUsing), - reinterpret_cast(&Visitor::visitUsingDirective), - reinterpret_cast(&Visitor::visitWhileStatement), - reinterpret_cast(&Visitor::visitWinDeclSpec), - reinterpret_cast(&Visitor::visitQProperty), - reinterpret_cast(&Visitor::visitForwardDeclarationSpecifier), - reinterpret_cast(&Visitor::visitQEnums) -}; - -Visitor::Visitor() -{ -} - -Visitor::~Visitor() -{ -} - -void Visitor::visit(AST *node) -{ - if (node) - (this->*_S_table[node->kind])(node); -} - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/parser/visitor.h b/3rdparty/pythonqt/generator/parser/visitor.h deleted file mode 100644 index 01f5898d6..000000000 --- a/3rdparty/pythonqt/generator/parser/visitor.h +++ /dev/null @@ -1,159 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - - -#ifndef VISITOR_H -#define VISITOR_H - -#include "ast.h" - -class Visitor -{ -public: - Visitor(); - virtual ~Visitor(); - - virtual void visit(AST *node); - -protected: - virtual void visitAccessSpecifier(AccessSpecifierAST *) {} - virtual void visitAsmDefinition(AsmDefinitionAST *) {} - virtual void visitBaseClause(BaseClauseAST *) {} - virtual void visitBaseSpecifier(BaseSpecifierAST *) {} - virtual void visitBinaryExpression(BinaryExpressionAST *) {} - virtual void visitCastExpression(CastExpressionAST *) {} - virtual void visitClassMemberAccess(ClassMemberAccessAST *) {} - virtual void visitClassSpecifier(ClassSpecifierAST *) {} - virtual void visitCompoundStatement(CompoundStatementAST *) {} - virtual void visitCondition(ConditionAST *) {} - virtual void visitConditionalExpression(ConditionalExpressionAST *) {} - virtual void visitCppCastExpression(CppCastExpressionAST *) {} - virtual void visitCtorInitializer(CtorInitializerAST *) {} - virtual void visitDeclarationStatement(DeclarationStatementAST *) {} - virtual void visitDeclarator(DeclaratorAST *) {} - virtual void visitDeleteExpression(DeleteExpressionAST *) {} - virtual void visitDoStatement(DoStatementAST *) {} - virtual void visitElaboratedTypeSpecifier(ElaboratedTypeSpecifierAST *) {} - virtual void visitEnumSpecifier(EnumSpecifierAST *) {} - virtual void visitEnumerator(EnumeratorAST *) {} - virtual void visitExceptionSpecification(ExceptionSpecificationAST *) {} - virtual void visitExpressionOrDeclarationStatement(ExpressionOrDeclarationStatementAST *) {} - virtual void visitExpressionStatement(ExpressionStatementAST *) {} - virtual void visitForStatement(ForStatementAST *) {} - virtual void visitFunctionCall(FunctionCallAST *) {} - virtual void visitFunctionDefinition(FunctionDefinitionAST *) {} - virtual void visitIfStatement(IfStatementAST *) {} - virtual void visitIncrDecrExpression(IncrDecrExpressionAST *) {} - virtual void visitInitDeclarator(InitDeclaratorAST *) {} - virtual void visitInitializer(InitializerAST *) {} - virtual void visitInitializerClause(InitializerClauseAST *) {} - virtual void visitLabeledStatement(LabeledStatementAST *) {} - virtual void visitLinkageBody(LinkageBodyAST *) {} - virtual void visitLinkageSpecification(LinkageSpecificationAST *) {} - virtual void visitMemInitializer(MemInitializerAST *) {} - virtual void visitName(NameAST *) {} - virtual void visitNamespace(NamespaceAST *) {} - virtual void visitNamespaceAliasDefinition(NamespaceAliasDefinitionAST *) {} - virtual void visitNewDeclarator(NewDeclaratorAST *) {} - virtual void visitNewExpression(NewExpressionAST *) {} - virtual void visitNewInitializer(NewInitializerAST *) {} - virtual void visitNewTypeId(NewTypeIdAST *) {} - virtual void visitOperator(OperatorAST *) {} - virtual void visitOperatorFunctionId(OperatorFunctionIdAST *) {} - virtual void visitParameterDeclaration(ParameterDeclarationAST *) {} - virtual void visitParameterDeclarationClause(ParameterDeclarationClauseAST *) {} - virtual void visitPostfixExpression(PostfixExpressionAST *) {} - virtual void visitPrimaryExpression(PrimaryExpressionAST *) {} - virtual void visitPtrOperator(PtrOperatorAST *) {} - virtual void visitPtrToMember(PtrToMemberAST *) {} - virtual void visitReturnStatement(ReturnStatementAST *) {} - virtual void visitSimpleDeclaration(SimpleDeclarationAST *) {} - virtual void visitSimpleTypeSpecifier(SimpleTypeSpecifierAST *) {} - virtual void visitSizeofExpression(SizeofExpressionAST *) {} - virtual void visitStringLiteral(StringLiteralAST *) {} - virtual void visitSubscriptExpression(SubscriptExpressionAST *) {} - virtual void visitSwitchStatement(SwitchStatementAST *) {} - virtual void visitTemplateArgument(TemplateArgumentAST *) {} - virtual void visitTemplateDeclaration(TemplateDeclarationAST *) {} - virtual void visitTemplateParameter(TemplateParameterAST *) {} - virtual void visitThrowExpression(ThrowExpressionAST *) {} - virtual void visitTranslationUnit(TranslationUnitAST *) {} - virtual void visitTryBlockStatement(TryBlockStatementAST *) {} - virtual void visitTypeId(TypeIdAST *) {} - virtual void visitTypeIdentification(TypeIdentificationAST *) {} - virtual void visitTypeParameter(TypeParameterAST *) {} - virtual void visitTypedef(TypedefAST *) {} - virtual void visitUnaryExpression(UnaryExpressionAST *) {} - virtual void visitUnqualifiedName(UnqualifiedNameAST *) {} - virtual void visitUsing(UsingAST *) {} - virtual void visitUsingDirective(UsingDirectiveAST *) {} - virtual void visitWhileStatement(WhileStatementAST *) {} - virtual void visitWinDeclSpec(WinDeclSpecAST *) {} - virtual void visitQProperty(QPropertyAST *) {} - virtual void visitForwardDeclarationSpecifier(ForwardDeclarationSpecifierAST *) {} - virtual void visitQEnums(QEnumsAST *) {} - -private: - typedef void (Visitor::*visitor_fun_ptr)(AST *); - static visitor_fun_ptr _S_table[]; -}; - -template - void visitNodes(Visitor *v, const ListNode<_Tp> *nodes) - { - if (!nodes) - return; - - const ListNode<_Tp> - *it = nodes->toFront(), - *end = it; - - do - { - v->visit(it->element); - it = it->next; - } - while (it != end); - } - -#endif // VISITOR_H - -// kate: space-indent on; indent-width 2; replace-tabs on; diff --git a/3rdparty/pythonqt/generator/prigenerator.cpp b/3rdparty/pythonqt/generator/prigenerator.cpp deleted file mode 100644 index efc478dc4..000000000 --- a/3rdparty/pythonqt/generator/prigenerator.cpp +++ /dev/null @@ -1,162 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "prigenerator.h" -#include "shellgenerator.h" -#include "reporthandler.h" -#include "fileout.h" - -void PriGenerator::addHeader(const QString &folder, const QString &header) -{ - priHash[folder].headers << header; -} - -void PriGenerator::addSource(const QString &folder, const QString &source) -{ - priHash[folder].sources << source; -} - -static void collectAndRemoveFile(QTextStream& stream, const QString& file) { - QFile f(file); - if (f.open(QIODevice::ReadOnly | QIODevice::Text)) { - QString s = QString::fromLatin1(f.readAll()); - if (file.endsWith(".cpp")) { - // remove first line include - s = s.mid(s.indexOf('\n')+1); - } - stream << s; - f.close(); - QFile::remove(file); - } -} - -static QString combineIncludes(const QString& text) { - QStringList lines = text.split('\n'); - QSet includes; - QString result; - foreach(QString line, lines) { - if (line.startsWith("#include")) { - includes.insert(line); - } else if (line.startsWith("#")) { - // skip preprocessor stuff - } else { - result += line + "\n"; - } - } - QStringList includeList = includes.toList(); - qSort(includeList); - result = "#define protected public\n" + includeList.join("\n") + "\n#undef protected\n" + result; - return result; -} - -static QStringList compactFiles(const QStringList& list, const QString& ext, const QString& dir, const QString& prefix) { - QStringList outList; - int count = list.count(); - int fileNum = 0; - QString srcDir = dir; - if (dir.endsWith("_builtin")) { - srcDir = dir.left(dir.length()-strlen("_builtin")); - } - while (count>0) { - QString outFileName = prefix + QString::number(fileNum) + ext; - FileOut file(dir + "/" + outFileName); - if (ext == ".cpp") { - file.stream << "#include \"" + prefix + QString::number(fileNum) + ".h\"\n"; - } - outList << outFileName; - QString allText; - QTextStream ts(&allText); - for (int i = 0; i0; i++) { - collectAndRemoveFile(ts, srcDir + "/" + list.at(list.count()-count)); - count--; - } - allText = combineIncludes(allText); - file.stream << allText; - fileNum++; - } - return outList; -} - -void PriGenerator::generate() -{ - QHashIterator pri(priHash); - while (pri.hasNext()) { - pri.next(); - QStringList list = pri.value().headers; - if (list.isEmpty()) - continue; - - QString folder = pri.key(); - folder.replace('\\','/'); - int idx = folder.indexOf('/'); - folder = folder.left(idx); - - qSort(list.begin(), list.end()); - FileOut file(m_out_dir + "/generated_cpp/" + pri.key()); - - // strange idea to do the file compacting so late, but it is the most effective way without patching the generator a lot - bool compact = true; - if (compact) { - list = compactFiles(list, ".h", m_out_dir + "/generated_cpp/" + folder, folder); - } - - file.stream << "HEADERS += \\\n"; - foreach (const QString &entry, list) { - file.stream << " $$PWD/" << entry << " \\\n"; - } - - file.stream << "\n"; - file.stream << "SOURCES += \\\n"; - list = pri.value().sources; - qSort(list.begin(), list.end()); - if (compact) { - list = compactFiles(list, ".cpp", m_out_dir + "/generated_cpp/" + folder, folder); - } - foreach (const QString &entry, list) { - file.stream << " $$PWD/" << entry << " \\\n"; - } - file.stream << " $$PWD/" << folder << "_init.cpp\n"; - - if (file.done()) - ++m_num_generated_written; - ++m_num_generated; - } -} diff --git a/3rdparty/pythonqt/generator/prigenerator.h b/3rdparty/pythonqt/generator/prigenerator.h deleted file mode 100644 index ff75682eb..000000000 --- a/3rdparty/pythonqt/generator/prigenerator.h +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef PRIGENERATOR_H -#define PRIGENERATOR_H - -#include "generator.h" - -#include -#include - -struct Pri -{ - QStringList headers; - QStringList sources; -}; - -class PriGenerator : public Generator -{ - Q_OBJECT - - public: - virtual void generate(); - - void addHeader(const QString &folder, const QString &header); - void addSource(const QString &folder, const QString &source); - - private: - QHash priHash; - -}; -#endif // PRIGENERATOR_H - diff --git a/3rdparty/pythonqt/generator/qtscript_masterinclude.h b/3rdparty/pythonqt/generator/qtscript_masterinclude.h deleted file mode 100644 index 91fb046a3..000000000 --- a/3rdparty/pythonqt/generator/qtscript_masterinclude.h +++ /dev/null @@ -1,1152 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#define QT_NO_STL -#include -#include -#include -#include -#include -#include - -#include - -#ifndef QT_NO_XMLPATTERNS -# include -#endif - -#ifndef QT_NO_WEBKIT -# include -#endif - -#ifndef QT_NO_PHONON -# include -#endif - -//#include "../qtbindings/qtscript_core/qtscriptconcurrent.h" - -#ifndef QT_NO_OPENGL -#define GL_ACCUM 0x0100 -#define GL_LOAD 0x0101 -#define GL_RETURN 0x0102 -#define GL_MULT 0x0103 -#define GL_ADD 0x0104 - -/* AlphaFunction */ -#define GL_NEVER 0x0200 -#define GL_LESS 0x0201 -#define GL_EQUAL 0x0202 -#define GL_LEQUAL 0x0203 -#define GL_GREATER 0x0204 -#define GL_NOTEQUAL 0x0205 -#define GL_GEQUAL 0x0206 -#define GL_ALWAYS 0x0207 - -/* AttribMask */ -#define GL_CURRENT_BIT 0x00000001 -#define GL_POINT_BIT 0x00000002 -#define GL_LINE_BIT 0x00000004 -#define GL_POLYGON_BIT 0x00000008 -#define GL_POLYGON_STIPPLE_BIT 0x00000010 -#define GL_PIXEL_MODE_BIT 0x00000020 -#define GL_LIGHTING_BIT 0x00000040 -#define GL_FOG_BIT 0x00000080 -#define GL_DEPTH_BUFFER_BIT 0x00000100 -#define GL_ACCUM_BUFFER_BIT 0x00000200 -#define GL_STENCIL_BUFFER_BIT 0x00000400 -#define GL_VIEWPORT_BIT 0x00000800 -#define GL_TRANSFORM_BIT 0x00001000 -#define GL_ENABLE_BIT 0x00002000 -#define GL_COLOR_BUFFER_BIT 0x00004000 -#define GL_HINT_BIT 0x00008000 -#define GL_EVAL_BIT 0x00010000 -#define GL_LIST_BIT 0x00020000 -#define GL_TEXTURE_BIT 0x00040000 -#define GL_SCISSOR_BIT 0x00080000 -#define GL_ALL_ATTRIB_BITS 0x000fffff - -/* BeginMode */ -#define GL_POINTS 0x0000 -#define GL_LINES 0x0001 -#define GL_LINE_LOOP 0x0002 -#define GL_LINE_STRIP 0x0003 -#define GL_TRIANGLES 0x0004 -#define GL_TRIANGLE_STRIP 0x0005 -#define GL_TRIANGLE_FAN 0x0006 -#define GL_QUADS 0x0007 -#define GL_QUAD_STRIP 0x0008 -#define GL_POLYGON 0x0009 - -/* BlendingFactorDest */ -#define GL_ZERO 0 -#define GL_ONE 1 -#define GL_SRC_COLOR 0x0300 -#define GL_ONE_MINUS_SRC_COLOR 0x0301 -#define GL_SRC_ALPHA 0x0302 -#define GL_ONE_MINUS_SRC_ALPHA 0x0303 -#define GL_DST_ALPHA 0x0304 -#define GL_ONE_MINUS_DST_ALPHA 0x0305 - -/* BlendingFactorSrc */ -/* GL_ZERO */ -/* GL_ONE */ -#define GL_DST_COLOR 0x0306 -#define GL_ONE_MINUS_DST_COLOR 0x0307 -#define GL_SRC_ALPHA_SATURATE 0x0308 -/* GL_SRC_ALPHA */ -/* GL_ONE_MINUS_SRC_ALPHA */ -/* GL_DST_ALPHA */ -/* GL_ONE_MINUS_DST_ALPHA */ - -/* Boolean */ -#define GL_TRUE 1 -#define GL_FALSE 0 - -/* ClearBufferMask */ -/* GL_COLOR_BUFFER_BIT */ -/* GL_ACCUM_BUFFER_BIT */ -/* GL_STENCIL_BUFFER_BIT */ -/* GL_DEPTH_BUFFER_BIT */ - -/* ClientArrayType */ -/* GL_VERTEX_ARRAY */ -/* GL_NORMAL_ARRAY */ -/* GL_COLOR_ARRAY */ -/* GL_INDEX_ARRAY */ -/* GL_TEXTURE_COORD_ARRAY */ -/* GL_EDGE_FLAG_ARRAY */ - -/* ClipPlaneName */ -#define GL_CLIP_PLANE0 0x3000 -#define GL_CLIP_PLANE1 0x3001 -#define GL_CLIP_PLANE2 0x3002 -#define GL_CLIP_PLANE3 0x3003 -#define GL_CLIP_PLANE4 0x3004 -#define GL_CLIP_PLANE5 0x3005 - -/* ColorMaterialFace */ -/* GL_FRONT */ -/* GL_BACK */ -/* GL_FRONT_AND_BACK */ - -/* ColorMaterialParameter */ -/* GL_AMBIENT */ -/* GL_DIFFUSE */ -/* GL_SPECULAR */ -/* GL_EMISSION */ -/* GL_AMBIENT_AND_DIFFUSE */ - -/* ColorPointerType */ -/* GL_BYTE */ -/* GL_UNSIGNED_BYTE */ -/* GL_SHORT */ -/* GL_UNSIGNED_SHORT */ -/* GL_INT */ -/* GL_UNSIGNED_INT */ -/* GL_FLOAT */ -/* GL_DOUBLE */ - -/* CullFaceMode */ -/* GL_FRONT */ -/* GL_BACK */ -/* GL_FRONT_AND_BACK */ - -/* DataType */ -#define GL_BYTE 0x1400 -#define GL_UNSIGNED_BYTE 0x1401 -#define GL_SHORT 0x1402 -#define GL_UNSIGNED_SHORT 0x1403 -#define GL_INT 0x1404 -#define GL_UNSIGNED_INT 0x1405 -#define GL_FLOAT 0x1406 -#define GL_2_BYTES 0x1407 -#define GL_3_BYTES 0x1408 -#define GL_4_BYTES 0x1409 -#define GL_DOUBLE 0x140A - -/* DepthFunction */ -/* GL_NEVER */ -/* GL_LESS */ -/* GL_EQUAL */ -/* GL_LEQUAL */ -/* GL_GREATER */ -/* GL_NOTEQUAL */ -/* GL_GEQUAL */ -/* GL_ALWAYS */ - -/* DrawBufferMode */ -#define GL_NONE 0 -#define GL_FRONT_LEFT 0x0400 -#define GL_FRONT_RIGHT 0x0401 -#define GL_BACK_LEFT 0x0402 -#define GL_BACK_RIGHT 0x0403 -#define GL_FRONT 0x0404 -#define GL_BACK 0x0405 -#define GL_LEFT 0x0406 -#define GL_RIGHT 0x0407 -#define GL_FRONT_AND_BACK 0x0408 -#define GL_AUX0 0x0409 -#define GL_AUX1 0x040A -#define GL_AUX2 0x040B -#define GL_AUX3 0x040C - -/* Enable */ -/* GL_FOG */ -/* GL_LIGHTING */ -/* GL_TEXTURE_1D */ -/* GL_TEXTURE_2D */ -/* GL_LINE_STIPPLE */ -/* GL_POLYGON_STIPPLE */ -/* GL_CULL_FACE */ -/* GL_ALPHA_TEST */ -/* GL_BLEND */ -/* GL_INDEX_LOGIC_OP */ -/* GL_COLOR_LOGIC_OP */ -/* GL_DITHER */ -/* GL_STENCIL_TEST */ -/* GL_DEPTH_TEST */ -/* GL_CLIP_PLANE0 */ -/* GL_CLIP_PLANE1 */ -/* GL_CLIP_PLANE2 */ -/* GL_CLIP_PLANE3 */ -/* GL_CLIP_PLANE4 */ -/* GL_CLIP_PLANE5 */ -/* GL_LIGHT0 */ -/* GL_LIGHT1 */ -/* GL_LIGHT2 */ -/* GL_LIGHT3 */ -/* GL_LIGHT4 */ -/* GL_LIGHT5 */ -/* GL_LIGHT6 */ -/* GL_LIGHT7 */ -/* GL_TEXTURE_GEN_S */ -/* GL_TEXTURE_GEN_T */ -/* GL_TEXTURE_GEN_R */ -/* GL_TEXTURE_GEN_Q */ -/* GL_MAP1_VERTEX_3 */ -/* GL_MAP1_VERTEX_4 */ -/* GL_MAP1_COLOR_4 */ -/* GL_MAP1_INDEX */ -/* GL_MAP1_NORMAL */ -/* GL_MAP1_TEXTURE_COORD_1 */ -/* GL_MAP1_TEXTURE_COORD_2 */ -/* GL_MAP1_TEXTURE_COORD_3 */ -/* GL_MAP1_TEXTURE_COORD_4 */ -/* GL_MAP2_VERTEX_3 */ -/* GL_MAP2_VERTEX_4 */ -/* GL_MAP2_COLOR_4 */ -/* GL_MAP2_INDEX */ -/* GL_MAP2_NORMAL */ -/* GL_MAP2_TEXTURE_COORD_1 */ -/* GL_MAP2_TEXTURE_COORD_2 */ -/* GL_MAP2_TEXTURE_COORD_3 */ -/* GL_MAP2_TEXTURE_COORD_4 */ -/* GL_POINT_SMOOTH */ -/* GL_LINE_SMOOTH */ -/* GL_POLYGON_SMOOTH */ -/* GL_SCISSOR_TEST */ -/* GL_COLOR_MATERIAL */ -/* GL_NORMALIZE */ -/* GL_AUTO_NORMAL */ -/* GL_VERTEX_ARRAY */ -/* GL_NORMAL_ARRAY */ -/* GL_COLOR_ARRAY */ -/* GL_INDEX_ARRAY */ -/* GL_TEXTURE_COORD_ARRAY */ -/* GL_EDGE_FLAG_ARRAY */ -/* GL_POLYGON_OFFSET_POINT */ -/* GL_POLYGON_OFFSET_LINE */ -/* GL_POLYGON_OFFSET_FILL */ - -/* ErrorCode */ -#define GL_NO_ERROR 0 -#define GL_INVALID_ENUM 0x0500 -#define GL_INVALID_VALUE 0x0501 -#define GL_INVALID_OPERATION 0x0502 -#define GL_STACK_OVERFLOW 0x0503 -#define GL_STACK_UNDERFLOW 0x0504 -#define GL_OUT_OF_MEMORY 0x0505 - -/* FeedBackMode */ -#define GL_2D 0x0600 -#define GL_3D 0x0601 -#define GL_3D_COLOR 0x0602 -#define GL_3D_COLOR_TEXTURE 0x0603 -#define GL_4D_COLOR_TEXTURE 0x0604 - -/* FeedBackToken */ -#define GL_PASS_THROUGH_TOKEN 0x0700 -#define GL_POINT_TOKEN 0x0701 -#define GL_LINE_TOKEN 0x0702 -#define GL_POLYGON_TOKEN 0x0703 -#define GL_BITMAP_TOKEN 0x0704 -#define GL_DRAW_PIXEL_TOKEN 0x0705 -#define GL_COPY_PIXEL_TOKEN 0x0706 -#define GL_LINE_RESET_TOKEN 0x0707 - -/* FogMode */ -/* GL_LINEAR */ -#define GL_EXP 0x0800 -#define GL_EXP2 0x0801 - - -/* FogParameter */ -/* GL_FOG_COLOR */ -/* GL_FOG_DENSITY */ -/* GL_FOG_END */ -/* GL_FOG_INDEX */ -/* GL_FOG_MODE */ -/* GL_FOG_START */ - -/* FrontFaceDirection */ -#define GL_CW 0x0900 -#define GL_CCW 0x0901 - -/* GetMapTarget */ -#define GL_COEFF 0x0A00 -#define GL_ORDER 0x0A01 -#define GL_DOMAIN 0x0A02 - -/* GetPixelMap */ -/* GL_PIXEL_MAP_I_TO_I */ -/* GL_PIXEL_MAP_S_TO_S */ -/* GL_PIXEL_MAP_I_TO_R */ -/* GL_PIXEL_MAP_I_TO_G */ -/* GL_PIXEL_MAP_I_TO_B */ -/* GL_PIXEL_MAP_I_TO_A */ -/* GL_PIXEL_MAP_R_TO_R */ -/* GL_PIXEL_MAP_G_TO_G */ -/* GL_PIXEL_MAP_B_TO_B */ -/* GL_PIXEL_MAP_A_TO_A */ - -/* GetPointerTarget */ -/* GL_VERTEX_ARRAY_POINTER */ -/* GL_NORMAL_ARRAY_POINTER */ -/* GL_COLOR_ARRAY_POINTER */ -/* GL_INDEX_ARRAY_POINTER */ -/* GL_TEXTURE_COORD_ARRAY_POINTER */ -/* GL_EDGE_FLAG_ARRAY_POINTER */ - -/* GetTarget */ -#define GL_CURRENT_COLOR 0x0B00 -#define GL_CURRENT_INDEX 0x0B01 -#define GL_CURRENT_NORMAL 0x0B02 -#define GL_CURRENT_TEXTURE_COORDS 0x0B03 -#define GL_CURRENT_RASTER_COLOR 0x0B04 -#define GL_CURRENT_RASTER_INDEX 0x0B05 -#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06 -#define GL_CURRENT_RASTER_POSITION 0x0B07 -#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08 -#define GL_CURRENT_RASTER_DISTANCE 0x0B09 -#define GL_POINT_SMOOTH 0x0B10 -#define GL_POINT_SIZE 0x0B11 -#define GL_POINT_SIZE_RANGE 0x0B12 -#define GL_POINT_SIZE_GRANULARITY 0x0B13 -#define GL_LINE_SMOOTH 0x0B20 -#define GL_LINE_WIDTH 0x0B21 -#define GL_LINE_WIDTH_RANGE 0x0B22 -#define GL_LINE_WIDTH_GRANULARITY 0x0B23 -#define GL_LINE_STIPPLE 0x0B24 -#define GL_LINE_STIPPLE_PATTERN 0x0B25 -#define GL_LINE_STIPPLE_REPEAT 0x0B26 -#define GL_LIST_MODE 0x0B30 -#define GL_MAX_LIST_NESTING 0x0B31 -#define GL_LIST_BASE 0x0B32 -#define GL_LIST_INDEX 0x0B33 -#define GL_POLYGON_MODE 0x0B40 -#define GL_POLYGON_SMOOTH 0x0B41 -#define GL_POLYGON_STIPPLE 0x0B42 -#define GL_EDGE_FLAG 0x0B43 -#define GL_CULL_FACE 0x0B44 -#define GL_CULL_FACE_MODE 0x0B45 -#define GL_FRONT_FACE 0x0B46 -#define GL_LIGHTING 0x0B50 -#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51 -#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52 -#define GL_LIGHT_MODEL_AMBIENT 0x0B53 -#define GL_SHADE_MODEL 0x0B54 -#define GL_COLOR_MATERIAL_FACE 0x0B55 -#define GL_COLOR_MATERIAL_PARAMETER 0x0B56 -#define GL_COLOR_MATERIAL 0x0B57 -#define GL_FOG 0x0B60 -#define GL_FOG_INDEX 0x0B61 -#define GL_FOG_DENSITY 0x0B62 -#define GL_FOG_START 0x0B63 -#define GL_FOG_END 0x0B64 -#define GL_FOG_MODE 0x0B65 -#define GL_FOG_COLOR 0x0B66 -#define GL_DEPTH_RANGE 0x0B70 -#define GL_DEPTH_TEST 0x0B71 -#define GL_DEPTH_WRITEMASK 0x0B72 -#define GL_DEPTH_CLEAR_VALUE 0x0B73 -#define GL_DEPTH_FUNC 0x0B74 -#define GL_ACCUM_CLEAR_VALUE 0x0B80 -#define GL_STENCIL_TEST 0x0B90 -#define GL_STENCIL_CLEAR_VALUE 0x0B91 -#define GL_STENCIL_FUNC 0x0B92 -#define GL_STENCIL_VALUE_MASK 0x0B93 -#define GL_STENCIL_FAIL 0x0B94 -#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95 -#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96 -#define GL_STENCIL_REF 0x0B97 -#define GL_STENCIL_WRITEMASK 0x0B98 -#define GL_MATRIX_MODE 0x0BA0 -#define GL_NORMALIZE 0x0BA1 -#define GL_VIEWPORT 0x0BA2 -#define GL_MODELVIEW_STACK_DEPTH 0x0BA3 -#define GL_PROJECTION_STACK_DEPTH 0x0BA4 -#define GL_TEXTURE_STACK_DEPTH 0x0BA5 -#define GL_MODELVIEW_MATRIX 0x0BA6 -#define GL_PROJECTION_MATRIX 0x0BA7 -#define GL_TEXTURE_MATRIX 0x0BA8 -#define GL_ATTRIB_STACK_DEPTH 0x0BB0 -#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1 -#define GL_ALPHA_TEST 0x0BC0 -#define GL_ALPHA_TEST_FUNC 0x0BC1 -#define GL_ALPHA_TEST_REF 0x0BC2 -#define GL_DITHER 0x0BD0 -#define GL_BLEND_DST 0x0BE0 -#define GL_BLEND_SRC 0x0BE1 -#define GL_BLEND 0x0BE2 -#define GL_LOGIC_OP_MODE 0x0BF0 -#define GL_INDEX_LOGIC_OP 0x0BF1 -#define GL_COLOR_LOGIC_OP 0x0BF2 -#define GL_AUX_BUFFERS 0x0C00 -#define GL_DRAW_BUFFER 0x0C01 -#define GL_READ_BUFFER 0x0C02 -#define GL_SCISSOR_BOX 0x0C10 -#define GL_SCISSOR_TEST 0x0C11 -#define GL_INDEX_CLEAR_VALUE 0x0C20 -#define GL_INDEX_WRITEMASK 0x0C21 -#define GL_COLOR_CLEAR_VALUE 0x0C22 -#define GL_COLOR_WRITEMASK 0x0C23 -#define GL_INDEX_MODE 0x0C30 -#define GL_RGBA_MODE 0x0C31 -#define GL_DOUBLEBUFFER 0x0C32 -#define GL_STEREO 0x0C33 -#define GL_RENDER_MODE 0x0C40 -#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50 -#define GL_POINT_SMOOTH_HINT 0x0C51 -#define GL_LINE_SMOOTH_HINT 0x0C52 -#define GL_POLYGON_SMOOTH_HINT 0x0C53 -#define GL_FOG_HINT 0x0C54 -#define GL_TEXTURE_GEN_S 0x0C60 -#define GL_TEXTURE_GEN_T 0x0C61 -#define GL_TEXTURE_GEN_R 0x0C62 -#define GL_TEXTURE_GEN_Q 0x0C63 -#define GL_PIXEL_MAP_I_TO_I 0x0C70 -#define GL_PIXEL_MAP_S_TO_S 0x0C71 -#define GL_PIXEL_MAP_I_TO_R 0x0C72 -#define GL_PIXEL_MAP_I_TO_G 0x0C73 -#define GL_PIXEL_MAP_I_TO_B 0x0C74 -#define GL_PIXEL_MAP_I_TO_A 0x0C75 -#define GL_PIXEL_MAP_R_TO_R 0x0C76 -#define GL_PIXEL_MAP_G_TO_G 0x0C77 -#define GL_PIXEL_MAP_B_TO_B 0x0C78 -#define GL_PIXEL_MAP_A_TO_A 0x0C79 -#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0 -#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1 -#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2 -#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3 -#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4 -#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5 -#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6 -#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7 -#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8 -#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9 -#define GL_UNPACK_SWAP_BYTES 0x0CF0 -#define GL_UNPACK_LSB_FIRST 0x0CF1 -#define GL_UNPACK_ROW_LENGTH 0x0CF2 -#define GL_UNPACK_SKIP_ROWS 0x0CF3 -#define GL_UNPACK_SKIP_PIXELS 0x0CF4 -#define GL_UNPACK_ALIGNMENT 0x0CF5 -#define GL_PACK_SWAP_BYTES 0x0D00 -#define GL_PACK_LSB_FIRST 0x0D01 -#define GL_PACK_ROW_LENGTH 0x0D02 -#define GL_PACK_SKIP_ROWS 0x0D03 -#define GL_PACK_SKIP_PIXELS 0x0D04 -#define GL_PACK_ALIGNMENT 0x0D05 -#define GL_MAP_COLOR 0x0D10 -#define GL_MAP_STENCIL 0x0D11 -#define GL_INDEX_SHIFT 0x0D12 -#define GL_INDEX_OFFSET 0x0D13 -#define GL_RED_SCALE 0x0D14 -#define GL_RED_BIAS 0x0D15 -#define GL_ZOOM_X 0x0D16 -#define GL_ZOOM_Y 0x0D17 -#define GL_GREEN_SCALE 0x0D18 -#define GL_GREEN_BIAS 0x0D19 -#define GL_BLUE_SCALE 0x0D1A -#define GL_BLUE_BIAS 0x0D1B -#define GL_ALPHA_SCALE 0x0D1C -#define GL_ALPHA_BIAS 0x0D1D -#define GL_DEPTH_SCALE 0x0D1E -#define GL_DEPTH_BIAS 0x0D1F -#define GL_MAX_EVAL_ORDER 0x0D30 -#define GL_MAX_LIGHTS 0x0D31 -#define GL_MAX_CLIP_PLANES 0x0D32 -#define GL_MAX_TEXTURE_SIZE 0x0D33 -#define GL_MAX_PIXEL_MAP_TABLE 0x0D34 -#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35 -#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36 -#define GL_MAX_NAME_STACK_DEPTH 0x0D37 -#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38 -#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39 -#define GL_MAX_VIEWPORT_DIMS 0x0D3A -#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B -#define GL_SUBPIXEL_BITS 0x0D50 -#define GL_INDEX_BITS 0x0D51 -#define GL_RED_BITS 0x0D52 -#define GL_GREEN_BITS 0x0D53 -#define GL_BLUE_BITS 0x0D54 -#define GL_ALPHA_BITS 0x0D55 -#define GL_DEPTH_BITS 0x0D56 -#define GL_STENCIL_BITS 0x0D57 -#define GL_ACCUM_RED_BITS 0x0D58 -#define GL_ACCUM_GREEN_BITS 0x0D59 -#define GL_ACCUM_BLUE_BITS 0x0D5A -#define GL_ACCUM_ALPHA_BITS 0x0D5B -#define GL_NAME_STACK_DEPTH 0x0D70 -#define GL_AUTO_NORMAL 0x0D80 -#define GL_MAP1_COLOR_4 0x0D90 -#define GL_MAP1_INDEX 0x0D91 -#define GL_MAP1_NORMAL 0x0D92 -#define GL_MAP1_TEXTURE_COORD_1 0x0D93 -#define GL_MAP1_TEXTURE_COORD_2 0x0D94 -#define GL_MAP1_TEXTURE_COORD_3 0x0D95 -#define GL_MAP1_TEXTURE_COORD_4 0x0D96 -#define GL_MAP1_VERTEX_3 0x0D97 -#define GL_MAP1_VERTEX_4 0x0D98 -#define GL_MAP2_COLOR_4 0x0DB0 -#define GL_MAP2_INDEX 0x0DB1 -#define GL_MAP2_NORMAL 0x0DB2 -#define GL_MAP2_TEXTURE_COORD_1 0x0DB3 -#define GL_MAP2_TEXTURE_COORD_2 0x0DB4 -#define GL_MAP2_TEXTURE_COORD_3 0x0DB5 -#define GL_MAP2_TEXTURE_COORD_4 0x0DB6 -#define GL_MAP2_VERTEX_3 0x0DB7 -#define GL_MAP2_VERTEX_4 0x0DB8 -#define GL_MAP1_GRID_DOMAIN 0x0DD0 -#define GL_MAP1_GRID_SEGMENTS 0x0DD1 -#define GL_MAP2_GRID_DOMAIN 0x0DD2 -#define GL_MAP2_GRID_SEGMENTS 0x0DD3 -#define GL_TEXTURE_1D 0x0DE0 -#define GL_TEXTURE_2D 0x0DE1 -#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0 -#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1 -#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2 -#define GL_SELECTION_BUFFER_POINTER 0x0DF3 -#define GL_SELECTION_BUFFER_SIZE 0x0DF4 -/* GL_TEXTURE_BINDING_1D */ -/* GL_TEXTURE_BINDING_2D */ -/* GL_VERTEX_ARRAY */ -/* GL_NORMAL_ARRAY */ -/* GL_COLOR_ARRAY */ -/* GL_INDEX_ARRAY */ -/* GL_TEXTURE_COORD_ARRAY */ -/* GL_EDGE_FLAG_ARRAY */ -/* GL_VERTEX_ARRAY_SIZE */ -/* GL_VERTEX_ARRAY_TYPE */ -/* GL_VERTEX_ARRAY_STRIDE */ -/* GL_NORMAL_ARRAY_TYPE */ -/* GL_NORMAL_ARRAY_STRIDE */ -/* GL_COLOR_ARRAY_SIZE */ -/* GL_COLOR_ARRAY_TYPE */ -/* GL_COLOR_ARRAY_STRIDE */ -/* GL_INDEX_ARRAY_TYPE */ -/* GL_INDEX_ARRAY_STRIDE */ -/* GL_TEXTURE_COORD_ARRAY_SIZE */ -/* GL_TEXTURE_COORD_ARRAY_TYPE */ -/* GL_TEXTURE_COORD_ARRAY_STRIDE */ -/* GL_EDGE_FLAG_ARRAY_STRIDE */ -/* GL_POLYGON_OFFSET_FACTOR */ -/* GL_POLYGON_OFFSET_UNITS */ - -/* GetTextureParameter */ -/* GL_TEXTURE_MAG_FILTER */ -/* GL_TEXTURE_MIN_FILTER */ -/* GL_TEXTURE_WRAP_S */ -/* GL_TEXTURE_WRAP_T */ -#define GL_TEXTURE_WIDTH 0x1000 -#define GL_TEXTURE_HEIGHT 0x1001 -#define GL_TEXTURE_INTERNAL_FORMAT 0x1003 -#define GL_TEXTURE_BORDER_COLOR 0x1004 -#define GL_TEXTURE_BORDER 0x1005 -/* GL_TEXTURE_RED_SIZE */ -/* GL_TEXTURE_GREEN_SIZE */ -/* GL_TEXTURE_BLUE_SIZE */ -/* GL_TEXTURE_ALPHA_SIZE */ -/* GL_TEXTURE_LUMINANCE_SIZE */ -/* GL_TEXTURE_INTENSITY_SIZE */ -/* GL_TEXTURE_PRIORITY */ -/* GL_TEXTURE_RESIDENT */ - -/* HintMode */ -#define GL_DONT_CARE 0x1100 -#define GL_FASTEST 0x1101 -#define GL_NICEST 0x1102 - -/* HintTarget */ -/* GL_PERSPECTIVE_CORRECTION_HINT */ -/* GL_POINT_SMOOTH_HINT */ -/* GL_LINE_SMOOTH_HINT */ -/* GL_POLYGON_SMOOTH_HINT */ -/* GL_FOG_HINT */ -/* GL_PHONG_HINT */ - -/* IndexPointerType */ -/* GL_SHORT */ -/* GL_INT */ -/* GL_FLOAT */ -/* GL_DOUBLE */ - -/* LightModelParameter */ -/* GL_LIGHT_MODEL_AMBIENT */ -/* GL_LIGHT_MODEL_LOCAL_VIEWER */ -/* GL_LIGHT_MODEL_TWO_SIDE */ - -/* LightName */ -#define GL_LIGHT0 0x4000 -#define GL_LIGHT1 0x4001 -#define GL_LIGHT2 0x4002 -#define GL_LIGHT3 0x4003 -#define GL_LIGHT4 0x4004 -#define GL_LIGHT5 0x4005 -#define GL_LIGHT6 0x4006 -#define GL_LIGHT7 0x4007 - -/* LightParameter */ -#define GL_AMBIENT 0x1200 -#define GL_DIFFUSE 0x1201 -#define GL_SPECULAR 0x1202 -#define GL_POSITION 0x1203 -#define GL_SPOT_DIRECTION 0x1204 -#define GL_SPOT_EXPONENT 0x1205 -#define GL_SPOT_CUTOFF 0x1206 -#define GL_CONSTANT_ATTENUATION 0x1207 -#define GL_LINEAR_ATTENUATION 0x1208 -#define GL_QUADRATIC_ATTENUATION 0x1209 - -/* InterleavedArrays */ -/* GL_V2F */ -/* GL_V3F */ -/* GL_C4UB_V2F */ -/* GL_C4UB_V3F */ -/* GL_C3F_V3F */ -/* GL_N3F_V3F */ -/* GL_C4F_N3F_V3F */ -/* GL_T2F_V3F */ -/* GL_T4F_V4F */ -/* GL_T2F_C4UB_V3F */ -/* GL_T2F_C3F_V3F */ -/* GL_T2F_N3F_V3F */ -/* GL_T2F_C4F_N3F_V3F */ -/* GL_T4F_C4F_N3F_V4F */ - -/* ListMode */ -#define GL_COMPILE 0x1300 -#define GL_COMPILE_AND_EXECUTE 0x1301 - -/* ListNameType */ -/* GL_BYTE */ -/* GL_UNSIGNED_BYTE */ -/* GL_SHORT */ -/* GL_UNSIGNED_SHORT */ -/* GL_INT */ -/* GL_UNSIGNED_INT */ -/* GL_FLOAT */ -/* GL_2_BYTES */ -/* GL_3_BYTES */ -/* GL_4_BYTES */ - -/* LogicOp */ -#define GL_CLEAR 0x1500 -#define GL_AND 0x1501 -#define GL_AND_REVERSE 0x1502 -#define GL_COPY 0x1503 -#define GL_AND_INVERTED 0x1504 -#define GL_NOOP 0x1505 -#define GL_XOR 0x1506 -#define GL_OR 0x1507 -#define GL_NOR 0x1508 -#define GL_EQUIV 0x1509 -#define GL_INVERT 0x150A -#define GL_OR_REVERSE 0x150B -#define GL_COPY_INVERTED 0x150C -#define GL_OR_INVERTED 0x150D -#define GL_NAND 0x150E -#define GL_SET 0x150F - -/* MapTarget */ -/* GL_MAP1_COLOR_4 */ -/* GL_MAP1_INDEX */ -/* GL_MAP1_NORMAL */ -/* GL_MAP1_TEXTURE_COORD_1 */ -/* GL_MAP1_TEXTURE_COORD_2 */ -/* GL_MAP1_TEXTURE_COORD_3 */ -/* GL_MAP1_TEXTURE_COORD_4 */ -/* GL_MAP1_VERTEX_3 */ -/* GL_MAP1_VERTEX_4 */ -/* GL_MAP2_COLOR_4 */ -/* GL_MAP2_INDEX */ -/* GL_MAP2_NORMAL */ -/* GL_MAP2_TEXTURE_COORD_1 */ -/* GL_MAP2_TEXTURE_COORD_2 */ -/* GL_MAP2_TEXTURE_COORD_3 */ -/* GL_MAP2_TEXTURE_COORD_4 */ -/* GL_MAP2_VERTEX_3 */ -/* GL_MAP2_VERTEX_4 */ - -/* MaterialFace */ -/* GL_FRONT */ -/* GL_BACK */ -/* GL_FRONT_AND_BACK */ - -/* MaterialParameter */ -#define GL_EMISSION 0x1600 -#define GL_SHININESS 0x1601 -#define GL_AMBIENT_AND_DIFFUSE 0x1602 -#define GL_COLOR_INDEXES 0x1603 -/* GL_AMBIENT */ -/* GL_DIFFUSE */ -/* GL_SPECULAR */ - -/* MatrixMode */ -#define GL_MODELVIEW 0x1700 -#define GL_PROJECTION 0x1701 -#define GL_TEXTURE 0x1702 - -/* MeshMode1 */ -/* GL_POINT */ -/* GL_LINE */ - -/* MeshMode2 */ -/* GL_POINT */ -/* GL_LINE */ -/* GL_FILL */ - -/* NormalPointerType */ -/* GL_BYTE */ -/* GL_SHORT */ -/* GL_INT */ -/* GL_FLOAT */ -/* GL_DOUBLE */ - -/* PixelCopyType */ -#define GL_COLOR 0x1800 -#define GL_DEPTH 0x1801 -#define GL_STENCIL 0x1802 - -/* PixelFormat */ -#define GL_COLOR_INDEX 0x1900 -#define GL_STENCIL_INDEX 0x1901 -#define GL_DEPTH_COMPONENT 0x1902 -#define GL_RED 0x1903 -#define GL_GREEN 0x1904 -#define GL_BLUE 0x1905 -#define GL_ALPHA 0x1906 -#define GL_RGB 0x1907 -#define GL_RGBA 0x1908 -#define GL_LUMINANCE 0x1909 -#define GL_LUMINANCE_ALPHA 0x190A - -/* PixelMap */ -/* GL_PIXEL_MAP_I_TO_I */ -/* GL_PIXEL_MAP_S_TO_S */ -/* GL_PIXEL_MAP_I_TO_R */ -/* GL_PIXEL_MAP_I_TO_G */ -/* GL_PIXEL_MAP_I_TO_B */ -/* GL_PIXEL_MAP_I_TO_A */ -/* GL_PIXEL_MAP_R_TO_R */ -/* GL_PIXEL_MAP_G_TO_G */ -/* GL_PIXEL_MAP_B_TO_B */ -/* GL_PIXEL_MAP_A_TO_A */ - -/* PixelStore */ -/* GL_UNPACK_SWAP_BYTES */ -/* GL_UNPACK_LSB_FIRST */ -/* GL_UNPACK_ROW_LENGTH */ -/* GL_UNPACK_SKIP_ROWS */ -/* GL_UNPACK_SKIP_PIXELS */ -/* GL_UNPACK_ALIGNMENT */ -/* GL_PACK_SWAP_BYTES */ -/* GL_PACK_LSB_FIRST */ -/* GL_PACK_ROW_LENGTH */ -/* GL_PACK_SKIP_ROWS */ -/* GL_PACK_SKIP_PIXELS */ -/* GL_PACK_ALIGNMENT */ - -/* PixelTransfer */ -/* GL_MAP_COLOR */ -/* GL_MAP_STENCIL */ -/* GL_INDEX_SHIFT */ -/* GL_INDEX_OFFSET */ -/* GL_RED_SCALE */ -/* GL_RED_BIAS */ -/* GL_GREEN_SCALE */ -/* GL_GREEN_BIAS */ -/* GL_BLUE_SCALE */ -/* GL_BLUE_BIAS */ -/* GL_ALPHA_SCALE */ -/* GL_ALPHA_BIAS */ -/* GL_DEPTH_SCALE */ -/* GL_DEPTH_BIAS */ - -/* PixelType */ -#define GL_BITMAP 0x1A00 -/* GL_BYTE */ -/* GL_UNSIGNED_BYTE */ -/* GL_SHORT */ -/* GL_UNSIGNED_SHORT */ -/* GL_INT */ -/* GL_UNSIGNED_INT */ -/* GL_FLOAT */ - -/* PolygonMode */ -#define GL_POINT 0x1B00 -#define GL_LINE 0x1B01 -#define GL_FILL 0x1B02 - -/* ReadBufferMode */ -/* GL_FRONT_LEFT */ -/* GL_FRONT_RIGHT */ -/* GL_BACK_LEFT */ -/* GL_BACK_RIGHT */ -/* GL_FRONT */ -/* GL_BACK */ -/* GL_LEFT */ -/* GL_RIGHT */ -/* GL_AUX0 */ -/* GL_AUX1 */ -/* GL_AUX2 */ -/* GL_AUX3 */ - -/* RenderingMode */ -#define GL_RENDER 0x1C00 -#define GL_FEEDBACK 0x1C01 -#define GL_SELECT 0x1C02 - -/* ShadingModel */ -#define GL_FLAT 0x1D00 -#define GL_SMOOTH 0x1D01 - - -/* StencilFunction */ -/* GL_NEVER */ -/* GL_LESS */ -/* GL_EQUAL */ -/* GL_LEQUAL */ -/* GL_GREATER */ -/* GL_NOTEQUAL */ -/* GL_GEQUAL */ -/* GL_ALWAYS */ - -/* StencilOp */ -/* GL_ZERO */ -#define GL_KEEP 0x1E00 -#define GL_REPLACE 0x1E01 -#define GL_INCR 0x1E02 -#define GL_DECR 0x1E03 -/* GL_INVERT */ - -/* StringName */ -#define GL_VENDOR 0x1F00 -#define GL_RENDERER 0x1F01 -#define GL_VERSION 0x1F02 -#define GL_EXTENSIONS 0x1F03 - -/* TextureCoordName */ -#define GL_S 0x2000 -#define GL_T 0x2001 -#define GL_R 0x2002 -#define GL_Q 0x2003 - -/* TexCoordPointerType */ -/* GL_SHORT */ -/* GL_INT */ -/* GL_FLOAT */ -/* GL_DOUBLE */ - -/* TextureEnvMode */ -#define GL_MODULATE 0x2100 -#define GL_DECAL 0x2101 -/* GL_BLEND */ -/* GL_REPLACE */ - -/* TextureEnvParameter */ -#define GL_TEXTURE_ENV_MODE 0x2200 -#define GL_TEXTURE_ENV_COLOR 0x2201 - -/* TextureEnvTarget */ -#define GL_TEXTURE_ENV 0x2300 - -/* TextureGenMode */ -#define GL_EYE_LINEAR 0x2400 -#define GL_OBJECT_LINEAR 0x2401 -#define GL_SPHERE_MAP 0x2402 - -/* TextureGenParameter */ -#define GL_TEXTURE_GEN_MODE 0x2500 -#define GL_OBJECT_PLANE 0x2501 -#define GL_EYE_PLANE 0x2502 - -/* TextureMagFilter */ -#define GL_NEAREST 0x2600 -#define GL_LINEAR 0x2601 - -/* TextureMinFilter */ -/* GL_NEAREST */ -/* GL_LINEAR */ -#define GL_NEAREST_MIPMAP_NEAREST 0x2700 -#define GL_LINEAR_MIPMAP_NEAREST 0x2701 -#define GL_NEAREST_MIPMAP_LINEAR 0x2702 -#define GL_LINEAR_MIPMAP_LINEAR 0x2703 - -/* TextureParameterName */ -#define GL_TEXTURE_MAG_FILTER 0x2800 -#define GL_TEXTURE_MIN_FILTER 0x2801 -#define GL_TEXTURE_WRAP_S 0x2802 -#define GL_TEXTURE_WRAP_T 0x2803 -/* GL_TEXTURE_BORDER_COLOR */ -/* GL_TEXTURE_PRIORITY */ - -/* TextureTarget */ -/* GL_TEXTURE_1D */ -/* GL_TEXTURE_2D */ -/* GL_PROXY_TEXTURE_1D */ -/* GL_PROXY_TEXTURE_2D */ - -/* TextureWrapMode */ -#define GL_CLAMP 0x2900 -#define GL_REPEAT 0x2901 - -/* VertexPointerType */ -/* GL_SHORT */ -/* GL_INT */ -/* GL_FLOAT */ -/* GL_DOUBLE */ - -/* ClientAttribMask */ -#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001 -#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002 -#define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff - -/* polygon_offset */ -#define GL_POLYGON_OFFSET_FACTOR 0x8038 -#define GL_POLYGON_OFFSET_UNITS 0x2A00 -#define GL_POLYGON_OFFSET_POINT 0x2A01 -#define GL_POLYGON_OFFSET_LINE 0x2A02 -#define GL_POLYGON_OFFSET_FILL 0x8037 - -/* texture */ -#define GL_ALPHA4 0x803B -#define GL_ALPHA8 0x803C -#define GL_ALPHA12 0x803D -#define GL_ALPHA16 0x803E -#define GL_LUMINANCE4 0x803F -#define GL_LUMINANCE8 0x8040 -#define GL_LUMINANCE12 0x8041 -#define GL_LUMINANCE16 0x8042 -#define GL_LUMINANCE4_ALPHA4 0x8043 -#define GL_LUMINANCE6_ALPHA2 0x8044 -#define GL_LUMINANCE8_ALPHA8 0x8045 -#define GL_LUMINANCE12_ALPHA4 0x8046 -#define GL_LUMINANCE12_ALPHA12 0x8047 -#define GL_LUMINANCE16_ALPHA16 0x8048 -#define GL_INTENSITY 0x8049 -#define GL_INTENSITY4 0x804A -#define GL_INTENSITY8 0x804B -#define GL_INTENSITY12 0x804C -#define GL_INTENSITY16 0x804D -#define GL_R3_G3_B2 0x2A10 -#define GL_RGB4 0x804F -#define GL_RGB5 0x8050 -#define GL_RGB8 0x8051 -#define GL_RGB10 0x8052 -#define GL_RGB12 0x8053 -#define GL_RGB16 0x8054 -#define GL_RGBA2 0x8055 -#define GL_RGBA4 0x8056 -#define GL_RGB5_A1 0x8057 -#define GL_RGBA8 0x8058 -#define GL_RGB10_A2 0x8059 -#define GL_RGBA12 0x805A -#define GL_RGBA16 0x805B -#define GL_TEXTURE_RED_SIZE 0x805C -#define GL_TEXTURE_GREEN_SIZE 0x805D -#define GL_TEXTURE_BLUE_SIZE 0x805E -#define GL_TEXTURE_ALPHA_SIZE 0x805F -#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 -#define GL_TEXTURE_INTENSITY_SIZE 0x8061 -#define GL_PROXY_TEXTURE_1D 0x8063 -#define GL_PROXY_TEXTURE_2D 0x8064 - -/* texture_object */ -#define GL_TEXTURE_PRIORITY 0x8066 -#define GL_TEXTURE_RESIDENT 0x8067 -#define GL_TEXTURE_BINDING_1D 0x8068 -#define GL_TEXTURE_BINDING_2D 0x8069 - -/* vertex_array */ -#define GL_VERTEX_ARRAY 0x8074 -#define GL_NORMAL_ARRAY 0x8075 -#define GL_COLOR_ARRAY 0x8076 -#define GL_INDEX_ARRAY 0x8077 -#define GL_TEXTURE_COORD_ARRAY 0x8078 -#define GL_EDGE_FLAG_ARRAY 0x8079 -#define GL_VERTEX_ARRAY_SIZE 0x807A -#define GL_VERTEX_ARRAY_TYPE 0x807B -#define GL_VERTEX_ARRAY_STRIDE 0x807C -#define GL_NORMAL_ARRAY_TYPE 0x807E -#define GL_NORMAL_ARRAY_STRIDE 0x807F -#define GL_COLOR_ARRAY_SIZE 0x8081 -#define GL_COLOR_ARRAY_TYPE 0x8082 -#define GL_COLOR_ARRAY_STRIDE 0x8083 -#define GL_INDEX_ARRAY_TYPE 0x8085 -#define GL_INDEX_ARRAY_STRIDE 0x8086 -#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 -#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 -#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A -#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C -#define GL_VERTEX_ARRAY_POINTER 0x808E -#define GL_NORMAL_ARRAY_POINTER 0x808F -#define GL_COLOR_ARRAY_POINTER 0x8090 -#define GL_INDEX_ARRAY_POINTER 0x8091 -#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 -#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093 -#define GL_V2F 0x2A20 -#define GL_V3F 0x2A21 -#define GL_C4UB_V2F 0x2A22 -#define GL_C4UB_V3F 0x2A23 -#define GL_C3F_V3F 0x2A24 -#define GL_N3F_V3F 0x2A25 -#define GL_C4F_N3F_V3F 0x2A26 -#define GL_T2F_V3F 0x2A27 -#define GL_T4F_V4F 0x2A28 -#define GL_T2F_C4UB_V3F 0x2A29 -#define GL_T2F_C3F_V3F 0x2A2A -#define GL_T2F_N3F_V3F 0x2A2B -#define GL_T2F_C4F_N3F_V3F 0x2A2C -#define GL_T4F_C4F_N3F_V4F 0x2A2D - -/* Extensions */ -#define GL_EXT_vertex_array 1 -#define GL_EXT_bgra 1 -#define GL_EXT_paletted_texture 1 -#define GL_WIN_swap_hint 1 -#define GL_WIN_draw_range_elements 1 -// #define GL_WIN_phong_shading 1 -// #define GL_WIN_specular_fog 1 - -/* EXT_vertex_array */ -#define GL_VERTEX_ARRAY_EXT 0x8074 -#define GL_NORMAL_ARRAY_EXT 0x8075 -#define GL_COLOR_ARRAY_EXT 0x8076 -#define GL_INDEX_ARRAY_EXT 0x8077 -#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078 -#define GL_EDGE_FLAG_ARRAY_EXT 0x8079 -#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A -#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B -#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C -#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D -#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E -#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F -#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080 -#define GL_COLOR_ARRAY_SIZE_EXT 0x8081 -#define GL_COLOR_ARRAY_TYPE_EXT 0x8082 -#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083 -#define GL_COLOR_ARRAY_COUNT_EXT 0x8084 -#define GL_INDEX_ARRAY_TYPE_EXT 0x8085 -#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086 -#define GL_INDEX_ARRAY_COUNT_EXT 0x8087 -#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088 -#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089 -#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A -#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B -#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C -#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D -#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E -#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F -#define GL_COLOR_ARRAY_POINTER_EXT 0x8090 -#define GL_INDEX_ARRAY_POINTER_EXT 0x8091 -#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092 -#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093 -#define GL_DOUBLE_EXT GL_DOUBLE - -/* EXT_bgra */ -#define GL_BGR_EXT 0x80E0 -#define GL_BGRA_EXT 0x80E1 - -/* EXT_paletted_texture */ - -/* These must match the GL_COLOR_TABLE_*_SGI enumerants */ -#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8 -#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9 -#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA -#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB -#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC -#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD -#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE -#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF - -#define GL_COLOR_INDEX1_EXT 0x80E2 -#define GL_COLOR_INDEX2_EXT 0x80E3 -#define GL_COLOR_INDEX4_EXT 0x80E4 -#define GL_COLOR_INDEX8_EXT 0x80E5 -#define GL_COLOR_INDEX12_EXT 0x80E6 -#define GL_COLOR_INDEX16_EXT 0x80E7 - -/* WIN_draw_range_elements */ -#define GL_MAX_ELEMENTS_VERTICES_WIN 0x80E8 -#define GL_MAX_ELEMENTS_INDICES_WIN 0x80E9 - -/* WIN_phong_shading */ -#define GL_PHONG_WIN 0x80EA -#define GL_PHONG_HINT_WIN 0x80EB - -/* WIN_specular_fog */ -#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC - -/* For compatibility with OpenGL v1.0 */ -#define GL_LOGIC_OP GL_INDEX_LOGIC_OP -#define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT -#include -#endif // QT_NO_OPENGL diff --git a/3rdparty/pythonqt/generator/reporthandler.cpp b/3rdparty/pythonqt/generator/reporthandler.cpp deleted file mode 100644 index 7128ec2a7..000000000 --- a/3rdparty/pythonqt/generator/reporthandler.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "reporthandler.h" -#include "typesystem.h" - -int ReportHandler::m_warning_count = 0; -int ReportHandler::m_suppressed_count = 0; -QString ReportHandler::m_context; -ReportHandler::DebugLevel ReportHandler::m_debug_level = NoDebug; -QSet ReportHandler::m_reported_warnings; - - -void ReportHandler::warning(const QString &text) -{ - QString warningText = QString("WARNING(%1) :: %2").arg(m_context).arg(text); - - TypeDatabase *db = TypeDatabase::instance(); - if (db && db->isSuppressedWarning(warningText)) { - ++m_suppressed_count; - } else if (!m_reported_warnings.contains(warningText)) { - qDebug(qPrintable(warningText)); - ++m_warning_count; - - m_reported_warnings.insert(warningText); - } -} - -void ReportHandler::debug(DebugLevel level, const QString &text) -{ - if (m_debug_level == NoDebug) - return; - - if (level <= m_debug_level) - qDebug(" - DEBUG(%s) :: %s", qPrintable(m_context), qPrintable(text)); -} diff --git a/3rdparty/pythonqt/generator/reporthandler.h b/3rdparty/pythonqt/generator/reporthandler.h deleted file mode 100644 index 030764b8c..000000000 --- a/3rdparty/pythonqt/generator/reporthandler.h +++ /dev/null @@ -1,83 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef REPORTHANDLER_H -#define REPORTHANDLER_H - -#include -#include - -class ReportHandler -{ -public: - enum DebugLevel { NoDebug, SparseDebug, MediumDebug, FullDebug }; - - static void setContext(const QString &context) { m_context = context; } - - static DebugLevel debugLevel() { return m_debug_level; } - static void setDebugLevel(DebugLevel level) { m_debug_level = level; } - - static int warningCount() { return m_warning_count; } - - static int suppressedCount() { return m_suppressed_count; } - - static void warning(const QString &str); - - static void debugSparse(const QString &str) { - debug(SparseDebug, str); - } - static void debugMedium(const QString &str) { - debug(MediumDebug, str); - } - static void debugFull(const QString &str) { - debug(FullDebug, str); - } - static void debug(DebugLevel level, const QString &str); - -private: - static int m_warning_count; - static int m_suppressed_count; - static DebugLevel m_debug_level; - static QString m_context; - static QSet m_reported_warnings; -}; - -#endif // REPORTHANDLER_H diff --git a/3rdparty/pythonqt/generator/setupgenerator.cpp b/3rdparty/pythonqt/generator/setupgenerator.cpp deleted file mode 100644 index 18d018a1b..000000000 --- a/3rdparty/pythonqt/generator/setupgenerator.cpp +++ /dev/null @@ -1,303 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "setupgenerator.h" -#include "shellgenerator.h" -#include "reporthandler.h" -#include "fileout.h" - -//#define Q_SCRIPT_LAZY_GENERATOR - -void SetupGenerator::addClass(const QString& package, const AbstractMetaClass *cls) -{ - packHash[package].append(cls); -} - -void maybeDeclareMetaType(QTextStream &stream, const QString &typeName, - QSet ®isteredTypeNames); -bool hasDefaultConstructor(const AbstractMetaClass *meta_class); - -static QStringList getOperatorCodes(const AbstractMetaClass* cls) { - QSet operatorCodes; - AbstractMetaFunctionList returned; - AbstractMetaFunctionList functions = cls->functions(); - foreach (AbstractMetaFunction *function, functions) { - if (function->originalName().startsWith("operator")) { - QString op = function->originalName().mid(8); - operatorCodes.insert(op); - } - } - QSet r; - foreach(QString op, operatorCodes.toList()) { - if (op == ">" || op == "<" || op == ">=" || op == "<=" || op == "==" || op == "!=") { - r.insert("PythonQt::Type_RichCompare"); - } else if (op == "+") { - r.insert("PythonQt::Type_Add"); - } else if (op == "-") { - r.insert("PythonQt::Type_Subtract"); - } else if (op == "/") { - r.insert("PythonQt::Type_Divide"); - } else if (op == "*") { - r.insert("PythonQt::Type_Multiply"); - } else if (op == "%") { - r.insert("PythonQt::Type_Mod"); - } else if (op == "&") { - r.insert("PythonQt::Type_And"); - } else if (op == "|") { - r.insert("PythonQt::Type_Or"); - } else if (op == "^") { - r.insert("PythonQt::Type_Xor"); - } else if (op == "~") { - r.insert("PythonQt::Type_Invert"); - - } else if (op == "+=") { - r.insert("PythonQt::Type_InplaceAdd"); - } else if (op == "-=") { - r.insert("PythonQt::Type_InplaceSubtract"); - } else if (op == "/=") { - r.insert("PythonQt::Type_InplaceDivide"); - } else if (op == "*=") { - r.insert("PythonQt::Type_InplaceMultiply"); - } else if (op == "%=") { - r.insert("PythonQt::Type_InplaceMod"); - } else if (op == "&=") { - r.insert("PythonQt::Type_InplaceAnd"); - } else if (op == "|=") { - r.insert("PythonQt::Type_InplaceOr"); - } else if (op == "^=") { - r.insert("PythonQt::Type_InplaceXor"); - } - } - if (cls->hasDefaultIsNull()) { - r.insert("PythonQt::Type_NonZero"); - } - QStringList result = r.toList(); - return result; -} - -static bool class_less_than(const AbstractMetaClass *a, const AbstractMetaClass *b) -{ - return a->name() < b->name(); -} - -void SetupGenerator::generate() -{ - AbstractMetaClassList classes_with_polymorphic_id; - { - QHashIterator > pack(packHash); - while (pack.hasNext()) { - pack.next(); - QList list = pack.value(); - foreach (const AbstractMetaClass *cls, list) { - if (cls->typeEntry()->isPolymorphicBase()) { - classes_with_polymorphic_id.append((AbstractMetaClass*)cls); - } - } - } - } - qSort(classes_with_polymorphic_id.begin(), classes_with_polymorphic_id.end(), class_less_than); - - QHashIterator > pack(packHash); - while (pack.hasNext()) { - pack.next(); - QList list = pack.value(); - if (list.isEmpty()) - continue; - qSort(list.begin(), list.end(), class_less_than); - - QString packKey = pack.key(); - QString packName = pack.key(); - QStringList components = packName.split("_"); - if ((components.size() > 2) && (components.at(0) == "com") - && (components.at(1) == "trolltech")) { - // kill com.trolltech in key - components.removeAt(0); - components.removeAt(0); - } - - QString shortPackName; - foreach (QString comp, components) { - comp[0] = comp[0].toUpper(); - shortPackName += comp; - } - // add missing camel case (workaround..) - if (shortPackName == "QtWebkit") { - shortPackName = "QtWebKit"; - } else if (shortPackName == "QtXmlpatterns") { - shortPackName = "QtXmlPatterns"; - } else if (shortPackName == "QtOpengl") { - shortPackName = "QtOpenGL"; - } else if (shortPackName == "QtUitools") { - shortPackName = "QtUiTools"; - } - - - { - FileOut initFile(m_out_dir + "/generated_cpp/" + packName + "/" + packKey + "_init.cpp"); - QTextStream &s = initFile.stream; - - s << "#include " << endl; - - for (int i=0; i<(list.count()+MAX_CLASSES_PER_FILE-1) / MAX_CLASSES_PER_FILE; i++) { - s << "#include \"" << packKey << QString::number(i) << ".h\"" << endl; - } - s << endl; - - QStringList polymorphicHandlers; - if (!packName.endsWith("_builtin")) { - polymorphicHandlers = writePolymorphicHandler(s, list.at(0)->package(), classes_with_polymorphic_id, list); - s << endl; - } - - // declare individual class creation functions - s << "void PythonQt_init_" << shortPackName << "(PyObject* module) {" << endl; - - if (shortPackName.endsWith("Builtin")) { - shortPackName = shortPackName.mid(0, shortPackName.length()-strlen("builtin")); - } - - QStringList cppClassNames; - foreach (const AbstractMetaClass *cls, list) { - - QString shellCreator; - if (cls->generateShellClass()) { - shellCreator = ", PythonQtSetInstanceWrapperOnShell<" + ShellGenerator::shellClassName(cls) + ">"; - } else { - shellCreator = ", NULL"; - } - QString operatorCodes = getOperatorCodes(cls).join("|"); - if (operatorCodes.isEmpty()) { - operatorCodes = "0"; - } - if (cls->isQObject()) { - s << "PythonQt::priv()->registerClass(&" << cls->qualifiedCppName() << "::staticMetaObject, \"" << shortPackName <<"\", PythonQtCreateObjectname() << ">" << shellCreator << ", module, " << operatorCodes <<");" << endl; - } else { - QString baseName = cls->baseClass()?cls->baseClass()->qualifiedCppName():""; - s << "PythonQt::priv()->registerCPPClass(\""<< cls->qualifiedCppName() << "\", \"" << baseName << "\", \"" << shortPackName <<"\", PythonQtCreateObjectname() << ">" << shellCreator << ", module, " << operatorCodes <<");" << endl; - } - foreach(AbstractMetaClass* interface, cls->interfaces()) { - // the interface might be our own class... (e.g. QPaintDevice) - if (interface->qualifiedCppName() != cls->qualifiedCppName()) { - s << "PythonQt::self()->addParentClass(\""<< cls->qualifiedCppName() << "\", \"" << interface->qualifiedCppName() << "\",PythonQtUpcastingOffset<" << cls->qualifiedCppName() <<","<qualifiedCppName()<<">());" << endl; - } - } - } - s << endl; - foreach (QString handler, polymorphicHandlers) { - s << "PythonQt::self()->addPolymorphicHandler(\""<< handler << "\", polymorphichandler_" << handler << ");" << endl; - } - - s << "}"; - s << endl; - } - } -} - -QStringList SetupGenerator::writePolymorphicHandler(QTextStream &s, const QString &package, - const AbstractMetaClassList &polybase, QList& allClasses) -{ - QStringList handlers; - foreach (AbstractMetaClass *cls, polybase) { - const ComplexTypeEntry *centry = cls->typeEntry(); - if (!centry->isPolymorphicBase()) - continue; - bool isGraphicsItem = (cls->qualifiedCppName()=="QGraphicsItem"); - - bool first = true; - foreach (const AbstractMetaClass *clazz, allClasses) { - bool inherits = false; - if (isGraphicsItem) { - foreach(AbstractMetaClass* interfaze, clazz->interfaces()) { - if (interfaze->qualifiedCppName()=="QGraphicsItem") { - inherits = true; - break; - } - } - } else { - inherits = clazz->inheritsFrom(cls); - } - if (clazz->package() == package && inherits) { - if (!clazz->typeEntry()->polymorphicIdValue().isEmpty() || isGraphicsItem) { - // On first find, open the function - if (first) { - first = false; - - QString handler = cls->name(); - handlers.append(handler); - - s << "static void* polymorphichandler_" << handler - << "(const void *ptr, char **class_name)" << endl - << "{" << endl - << " Q_ASSERT(ptr != 0);" << endl - << " " << cls->qualifiedCppName() << " *object = (" - << cls->qualifiedCppName() << " *)ptr;" << endl; - } - - // For each, add case label - QString polyId = clazz->typeEntry()->polymorphicIdValue(); - if (isGraphicsItem) { - polyId = "%1->type() == " + clazz->qualifiedCppName() + "::Type"; - } - s << " if (" - << polyId.replace("%1", "object") - << ") {" << endl - << " *class_name = \"" << clazz->name() << "\";" << endl - << " return (" << clazz->qualifiedCppName() << "*)object;" << endl - << " }" << endl; - } else { - QString warning = QString("class '%1' inherits from polymorphic class '%2', but has no polymorphic id set") - .arg(clazz->name()) - .arg(cls->name()); - - ReportHandler::warning(warning); - } - } - } - - // Close the function if it has been opened - if (!first) { - s << " return NULL;" << endl - << "}" << endl; - } - } - - return handlers; -} diff --git a/3rdparty/pythonqt/generator/setupgenerator.h b/3rdparty/pythonqt/generator/setupgenerator.h deleted file mode 100644 index 84dc0ce0e..000000000 --- a/3rdparty/pythonqt/generator/setupgenerator.h +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef SETUPGENERATOR_H -#define SETUPGENERATOR_H - -#include "generator.h" -#include "metaqtscript.h" - -class SetupGenerator : public Generator -{ - Q_OBJECT - - public: - virtual void generate(); - - void addClass(const QString& package, const AbstractMetaClass *cls); - - static void writeInclude(QTextStream &stream, const Include &inc); - - static bool isSpecialStreamingOperator(const AbstractMetaFunction *fun); - - private: - QStringList writePolymorphicHandler(QTextStream &s, const QString &package, - const AbstractMetaClassList &polyBaseClasses, QList& allClasses); - - QHash > packHash; -}; -#endif // SETUPGENERATOR_H - diff --git a/3rdparty/pythonqt/generator/shellgenerator.cpp b/3rdparty/pythonqt/generator/shellgenerator.cpp deleted file mode 100644 index 25c3f4605..000000000 --- a/3rdparty/pythonqt/generator/shellgenerator.cpp +++ /dev/null @@ -1,382 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "shellgenerator.h" -#include "reporthandler.h" - -#include "metaqtscript.h" - -bool ShellGenerator::shouldGenerate(const AbstractMetaClass *meta_class) const -{ - uint cg = meta_class->typeEntry()->codeGeneration(); - if (meta_class->name().startsWith("QtScript")) return false; - if (meta_class->name().startsWith("QFuture")) return false; - if (meta_class->name().startsWith("Global")) return false; - if (meta_class->name().startsWith("QStyleOptionComplex")) return false; - if (meta_class->name().startsWith("QTextLayout")) return false; - if (meta_class->name().startsWith("QPersistentModelIndex")) return false; - return ((cg & TypeEntry::GenerateCode) != 0); -} - -void ShellGenerator::writeTypeInfo(QTextStream &s, const AbstractMetaType *type, Option options) -{ - if ((options & OriginalTypeDescription) && !type->originalTypeDescription().isEmpty()) { - s << type->originalTypeDescription(); - return; - } - - if (type->isArray()) { - writeTypeInfo(s, type->arrayElementType(), options); - if (options & ArrayAsPointer) { - s << "*"; - } else { - s << "[" << type->arrayElementCount() << "]"; - } - return; - } - - const TypeEntry *te = type->typeEntry(); - - if (type->isConstant() && !(options & ExcludeConst)) - s << "const "; - - if ((options & EnumAsInts) && (te->isEnum() || te->isFlags())) { - s << "int"; - } else if (te->isFlags()) { - s << ((FlagsTypeEntry *) te)->originalName(); - } else { - s << fixCppTypeName(te->qualifiedCppName()); - } - - if (type->instantiations().size() > 0 - && (!type->isContainer() - || (static_cast(te))->type() != ContainerTypeEntry::StringListContainer)) { - s << '<'; - QList args = type->instantiations(); - bool nested_template = false; - for (int i=0; iisContainer(); - writeTypeInfo(s, args.at(i)); - } - if (nested_template) - s << ' '; - s << '>'; - } - - s << QString(type->indirections(), '*'); - - if (type->isReference() && !(options & ExcludeReference) && !(options & ConvertReferenceToPtr)) - s << "&"; - - if (type->isReference() && (options & ConvertReferenceToPtr)) { - s << "*"; - } - - - if (!(options & SkipName)) - s << ' '; -} - - -void ShellGenerator::writeFunctionArguments(QTextStream &s, const AbstractMetaClass* owner, - const AbstractMetaArgumentList &arguments, - Option option, - int numArguments) -{ - if (numArguments < 0) numArguments = arguments.size(); - - for (int i=0; itype(), option); - if (!(option & SkipName)) - s << " " << arg->argumentName(); - if ((option & IncludeDefaultExpression) && !arg->originalDefaultValueExpression().isEmpty()) { - s << " = "; - - QString expr = arg->originalDefaultValueExpression(); - if (expr != "0") { - QString qualifier; - if (arg->type()->typeEntry()->isEnum() && expr.indexOf("::") < 0) { - qualifier = ((EnumTypeEntry *)arg->type()->typeEntry())->qualifier(); - } else if (arg->type()->typeEntry()->isFlags() && expr.indexOf("::") < 0) { - qualifier = ((FlagsTypeEntry *)arg->type()->typeEntry())->originator()->qualifier(); - } - if (!qualifier.isEmpty()) { - s << qualifier << "::"; - } - } - if (expr.contains("defaultConnection")) { - expr.replace("defaultConnection","QSqlDatabase::defaultConnection"); - } - if (expr == "MediaSource()") { - expr = "Phonon::MediaSource()"; - } - s << expr; - } - } -} - -/*! - * Writes the function \a meta_function signature to the textstream \a s. - * - * The \a name_prefix can be used to give the function name a prefix, - * like "__public_" or "__override_" and \a classname_prefix can - * be used to give the class name a prefix. - * - * The \a option flags can be used to tweak various parameters, such as - * showing static, original vs renamed name, underscores for space etc. - * - * The \a extra_arguments list is a list of extra arguments on the - * form "bool static_call". - */ - -void ShellGenerator::writeFunctionSignature(QTextStream &s, - const AbstractMetaFunction *meta_function, - const AbstractMetaClass *implementor, - const QString &name_prefix, - Option option, - const QString &classname_prefix, - const QStringList &extra_arguments, - int numArguments) -{ -// ### remove the implementor - AbstractMetaType *function_type = meta_function->type(); - - - if ((option & SkipReturnType) == 0) { - if (function_type) { - writeTypeInfo(s, function_type, option); - s << " "; - } else if (!meta_function->isConstructor()) { - s << "void "; - } - } - - if (implementor) { - if (classname_prefix.isEmpty()) - s << wrapperClassName(implementor) << "::"; - else - s << classname_prefix << implementor->name() << "::"; - } - - - QString function_name; - if (option & OriginalName) - function_name = meta_function->originalName(); - else - function_name = meta_function->name(); - - if (option & UnderscoreSpaces) - function_name = function_name.replace(' ', '_'); - - if (meta_function->isConstructor()) - function_name = meta_function->ownerClass()->name(); - - if (meta_function->isStatic() && (option & ShowStatic)) { - function_name = "static_" + meta_function->ownerClass()->name() + "_" + function_name; - } - - if (function_name.startsWith("operator")) { - function_name = meta_function->name(); - } - - if (meta_function->attributes() & AbstractMetaAttributes::SetterFunction) - s << "py_set_"; - else if (meta_function->attributes() & AbstractMetaAttributes::GetterFunction) - s << "py_get_"; - - s << name_prefix << function_name; - - s << "("; - - if ((option & FirstArgIsWrappedObject) && meta_function->ownerClass() && !meta_function->isConstructor() && !meta_function->isStatic()) { - s << meta_function->ownerClass()->qualifiedCppName() << "* theWrappedObject"; - if (meta_function->arguments().size() != 0) { - s << ", "; - } - } - - writeFunctionArguments(s, meta_function->ownerClass(), meta_function->arguments(), Option(option & Option(~ConvertReferenceToPtr)), numArguments); - - // The extra arguments... - for (int i=0; i 0 || meta_function->arguments().size() != 0) - s << ", "; - s << extra_arguments.at(i); - } - - s << ")"; - if (meta_function->isConstant()) - s << " const"; -} - -bool function_sorter(AbstractMetaFunction *a, AbstractMetaFunction *b); - -AbstractMetaFunctionList ShellGenerator::getFunctionsToWrap(const AbstractMetaClass* meta_class) -{ - AbstractMetaFunctionList functions = meta_class->queryFunctions( - AbstractMetaClass::NormalFunctions | AbstractMetaClass::WasPublic - | AbstractMetaClass::NotRemovedFromTargetLang | AbstractMetaClass::ClassImplements - ); - AbstractMetaFunctionList functions2 = meta_class->queryFunctions( - AbstractMetaClass::WasVisible - | AbstractMetaClass::NotRemovedFromTargetLang | AbstractMetaClass::ClassImplements - ); - QSet set1 = QSet::fromList(functions); - foreach(AbstractMetaFunction* func, functions2) { - set1.insert(func); - } - - AbstractMetaFunctionList resultFunctions; - - foreach(AbstractMetaFunction* func, set1.toList()) { - if (!func->isAbstract() && func->implementingClass()==meta_class) { - resultFunctions << func; - } - } - qSort(resultFunctions.begin(), resultFunctions.end(), function_sorter); - return resultFunctions; -} - -AbstractMetaFunctionList ShellGenerator::getVirtualFunctionsForShell(const AbstractMetaClass* meta_class) -{ - AbstractMetaFunctionList functions = meta_class->queryFunctions( - AbstractMetaClass::VirtualFunctions | AbstractMetaClass::WasVisible -// | AbstractMetaClass::NotRemovedFromTargetLang - ); - qSort(functions.begin(), functions.end(), function_sorter); - return functions; -} - -AbstractMetaFunctionList ShellGenerator::getProtectedFunctionsThatNeedPromotion(const AbstractMetaClass* meta_class) -{ - AbstractMetaFunctionList functions; - AbstractMetaFunctionList functions1 = getFunctionsToWrap(meta_class); - foreach(AbstractMetaFunction* func, functions1) { - if (!func->isPublic() || func->isVirtual()) { - functions << func; - } - } - qSort(functions.begin(), functions.end(), function_sorter); - return functions; -} - -/*! -Writes the include defined by \a inc to \a stream. -*/ -void ShellGenerator::writeInclude(QTextStream &stream, const Include &inc) -{ - if (inc.name.isEmpty()) - return; - if (inc.type == Include::TargetLangImport) - return; - stream << "#include "; - if (inc.type == Include::IncludePath) - stream << "<"; - else - stream << "\""; - stream << inc.name; - if (inc.type == Include::IncludePath) - stream << ">"; - else - stream << "\""; - stream << endl; -} - -/*! -Returns true if the given function \a fun is operator>>() or -operator<<() that streams from/to a Q{Data,Text}Stream, false -otherwise. -*/ -bool ShellGenerator::isSpecialStreamingOperator(const AbstractMetaFunction *fun) -{ - return ((fun->functionType() == AbstractMetaFunction::GlobalScopeFunction) - && (fun->arguments().size() == 1) - && (((fun->originalName() == "operator>>") && (fun->modifiedName() == "readFrom")) - || ((fun->originalName() == "operator<<") && (fun->modifiedName() == "writeTo")))); -} - -bool ShellGenerator::isBuiltIn(const QString& name) { - - static QSet builtIn; - if (builtIn.isEmpty()) { - builtIn.insert("Qt"); - builtIn.insert("QFont"); - builtIn.insert("QPixmap"); - builtIn.insert("QBrush"); - builtIn.insert("QBitArray"); - builtIn.insert("QByteArray"); - builtIn.insert("QPalette"); - builtIn.insert("QPen"); - builtIn.insert("QIcon"); - builtIn.insert("QImage"); - builtIn.insert("QPolygon"); - builtIn.insert("QRegion"); - builtIn.insert("QBitmap"); - builtIn.insert("QCursor"); - builtIn.insert("QColor"); - builtIn.insert("QSizePolicy"); - builtIn.insert("QKeySequence"); - builtIn.insert("QTextLength"); - builtIn.insert("QTextFormat"); - builtIn.insert("QMatrix"); - builtIn.insert("QDate"); - builtIn.insert("QTime"); - builtIn.insert("QDateTime"); - builtIn.insert("QUrl"); - builtIn.insert("QLocale"); - builtIn.insert("QRect"); - builtIn.insert("QRectF"); - builtIn.insert("QSize"); - builtIn.insert("QSizeF"); - builtIn.insert("QLine"); - builtIn.insert("QLineF"); - builtIn.insert("QPoint"); - builtIn.insert("QPointF"); - builtIn.insert("QRegExp"); - } - return builtIn.contains(name); -} - diff --git a/3rdparty/pythonqt/generator/shellgenerator.h b/3rdparty/pythonqt/generator/shellgenerator.h deleted file mode 100644 index 49fa7eecd..000000000 --- a/3rdparty/pythonqt/generator/shellgenerator.h +++ /dev/null @@ -1,102 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef SHELLGENERATOR_H -#define SHELLGENERATOR_H - -#include "generator.h" -#include "metaqtscript.h" -#include "prigenerator.h" - -#define MAX_CLASSES_PER_FILE 30 - -class ShellGenerator : public Generator -{ - Q_OBJECT - -public: - virtual QString subDirectoryForClass(const AbstractMetaClass *cls) const - { - return "generated_cpp/" + cls->package().replace(".", "_") + "/"; - } - - static void writeTypeInfo(QTextStream &s, const AbstractMetaType *type, Option option = NoOption); - static void writeFunctionSignature(QTextStream &s, const AbstractMetaFunction *meta_function, - const AbstractMetaClass *implementor = 0, - const QString &name_prefix = QString(), - Option option = NoOption, - const QString &classname_prefix = QString(), - const QStringList &extra_arguments = QStringList(), - int numArguments = -1); - static void writeFunctionArguments(QTextStream &s, const AbstractMetaClass* owner, const AbstractMetaArgumentList &arguments, - Option option = NoOption, - int numArguments = -1); - - bool shouldGenerate(const AbstractMetaClass *meta_class) const; - - static QString shellClassName(const AbstractMetaClass *meta_class) { - return "PythonQtShell_" + meta_class->name(); - } - static QString wrapperClassName(const AbstractMetaClass *meta_class) { - return "PythonQtWrapper_" + meta_class->name(); - } - static QString promoterClassName(const AbstractMetaClass *meta_class) { - return "PythonQtPublicPromoter_" + meta_class->name(); - } - - static AbstractMetaFunctionList getFunctionsToWrap(const AbstractMetaClass* cls); - static AbstractMetaFunctionList getVirtualFunctionsForShell(const AbstractMetaClass* cls); - static AbstractMetaFunctionList getProtectedFunctionsThatNeedPromotion(const AbstractMetaClass* cls); - - // PythonQt builtins..., dont put them in pri files and dont register them, but generate the code - static bool isBuiltIn(const QString& name); - - static bool isSpecialStreamingOperator(const AbstractMetaFunction *fun); - - static void writeInclude(QTextStream &stream, const Include &inc); - - protected: - PriGenerator *priGenerator; - -}; - - -#endif // SHELLGENERATOR_H diff --git a/3rdparty/pythonqt/generator/shellheadergenerator.cpp b/3rdparty/pythonqt/generator/shellheadergenerator.cpp deleted file mode 100644 index f2d6e22ec..000000000 --- a/3rdparty/pythonqt/generator/shellheadergenerator.cpp +++ /dev/null @@ -1,312 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "shellheadergenerator.h" -#include "fileout.h" - -#include - -#include - -QString ShellHeaderGenerator::fileNameForClass(const AbstractMetaClass *meta_class) const -{ - return QString("PythonQtWrapper_%1.h").arg(meta_class->name()); -} - - -void ShellHeaderGenerator::writeFieldAccessors(QTextStream &s, const AbstractMetaField *field) -{ - const AbstractMetaFunction *setter = field->setter(); - const AbstractMetaFunction *getter = field->getter(); - - // static fields are not supported (yet?) - if (setter->isStatic()) return; - - // Uuid data4 did not work (TODO: move to typesystem...( - if (field->enclosingClass()->name()=="QUuid" && setter->name()=="data4") return; - if (field->enclosingClass()->name()=="QIPv6Address") return; - - if (!field->type()->isConstant()) { - writeFunctionSignature(s, setter, 0, QString(), - Option(ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | ShowStatic | UnderscoreSpaces)); - s << "{ theWrappedObject->" << field->name() << " = " << setter->arguments()[0]->argumentName() << "; }\n"; - } - - writeFunctionSignature(s, getter, 0, QString(), - Option(ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); - s << "{ return theWrappedObject->" << field->name() << "; }\n"; -} - -void ShellHeaderGenerator::write(QTextStream &s, const AbstractMetaClass *meta_class) -{ - QString builtIn = ShellGenerator::isBuiltIn(meta_class->name())?"_builtin":""; - QString pro_file_name = meta_class->package().replace(".", "_") + builtIn + "/" + meta_class->package().replace(".", "_") + builtIn + ".pri"; - priGenerator->addHeader(pro_file_name, fileNameForClass(meta_class)); - setupGenerator->addClass(meta_class->package().replace(".", "_") + builtIn, meta_class); - - QString include_block = "PYTHONQTWRAPPER_" + meta_class->name().toUpper() + "_H"; - - s << "#ifndef " << include_block << endl - << "#define " << include_block << endl << endl; - - Include inc = meta_class->typeEntry()->include(); - ShellGenerator::writeInclude(s, inc); - - s << "#include " << endl << endl; - s << "#include " << endl << endl; - - IncludeList list = meta_class->typeEntry()->extraIncludes(); - qSort(list.begin(), list.end()); - foreach (const Include &inc, list) { - ShellGenerator::writeInclude(s, inc); - } - s << endl; - - AbstractMetaFunctionList ctors = meta_class->queryFunctions(AbstractMetaClass::Constructors - | AbstractMetaClass::WasVisible - | AbstractMetaClass::NotRemovedFromTargetLang); - - // Shell------------------------------------------------------------------- - if (meta_class->generateShellClass()) { - - AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class); - - s << "class " << shellClassName(meta_class) - << " : public " << meta_class->qualifiedCppName() << endl << "{" << endl; - s << "public:" << endl; - foreach(AbstractMetaFunction* fun, ctors) { - s << " "; - writeFunctionSignature(s, fun, 0,"PythonQtShell_", - Option(IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); - s << ":" << meta_class->qualifiedCppName() << "("; - QString scriptFunctionName = fun->originalName(); - AbstractMetaArgumentList args = fun->arguments(); - for (int i = 0; i < args.size(); ++i) { - if (i > 0) - s << ", "; - s << args.at(i)->argumentName(); - } - s << "),_wrapper(NULL) {};" << endl; - } - s << endl; - - foreach(AbstractMetaFunction* fun, virtualsForShell) { - s << "virtual "; - writeFunctionSignature(s, fun, 0, QString(), - Option(IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); - s << ";" << endl; - } - s << endl; - s << " PythonQtInstanceWrapper* _wrapper; " << endl; - - s << "};" << endl << endl; - } - - // Promoter------------------------------------------------------------------- - AbstractMetaFunctionList promoteFunctions = getProtectedFunctionsThatNeedPromotion(meta_class); - if (!promoteFunctions.isEmpty()) { - s << "class " << promoterClassName(meta_class) - << " : public " << meta_class->qualifiedCppName() << endl << "{ public:" << endl; - - foreach(AbstractMetaFunction* fun, promoteFunctions) { - s << "inline "; - writeFunctionSignature(s, fun, 0, "promoted_", - Option(IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); - s << " { "; - QString scriptFunctionName = fun->originalName(); - AbstractMetaArgumentList args = fun->arguments(); - if (fun->type()) - s << "return "; - s << meta_class->qualifiedCppName() << "::"; - s << fun->originalName() << "("; - for (int i = 0; i < args.size(); ++i) { - if (i > 0) - s << ", "; - s << args.at(i)->argumentName(); - } - s << "); }" << endl; - } - - s << "};" << endl << endl; - } - - // Wrapper------------------------------------------------------------------- - - s << "class " << wrapperClassName(meta_class) - << " : public QObject" << endl - << "{ Q_OBJECT" << endl; - - s << "public:" << endl; - - AbstractMetaEnumList enums1 = meta_class->enums(); - AbstractMetaEnumList enums; - QList flags; - foreach(AbstractMetaEnum* enum1, enums1) { - // catch gadgets and enums that are not exported on QObjects... - if (enum1->wasPublic() && (!meta_class->isQObject() || !enum1->hasQEnumsDeclaration())) { - enums << enum1; - if (enum1->typeEntry()->flags()) { - flags << enum1->typeEntry()->flags(); - } - } - } - if (enums.count()) { - s << "Q_ENUMS("; - foreach(AbstractMetaEnum* enum1, enums) { - s << enum1->name() << " "; - } - s << ")" << endl; - - if (flags.count()) { - s << "Q_FLAGS("; - foreach(FlagsTypeEntry* flag1, flags) { - QString origName = flag1->originalName(); - int idx = origName.lastIndexOf("::"); - if (idx!= -1) { - origName = origName.mid(idx+2); - } - s << origName << " "; - } - s << ")" << endl; - } - - foreach(AbstractMetaEnum* enum1, enums) { - s << "enum " << enum1->name() << "{" << endl; - bool first = true; - foreach(AbstractMetaEnumValue* value, enum1->values()) { - if (first) { first = false; } - else { s << ", "; } - s << " " << value->name() << " = " << meta_class->qualifiedCppName() << "::" << value->name(); - } - s << "};" << endl; - } - if (flags.count()) { - foreach(AbstractMetaEnum* enum1, enums) { - if (enum1->typeEntry()->flags()) { - QString origName = enum1->typeEntry()->flags()->originalName(); - int idx = origName.lastIndexOf("::"); - if (idx!= -1) { - origName = origName.mid(idx+2); - } - s << "Q_DECLARE_FLAGS("<< origName << ", " << enum1->name() <<")"<generateShellClass() || !meta_class->isAbstract()) { - - bool copyConstructorSeen = false; - bool defaultConstructorSeen = false; - foreach (const AbstractMetaFunction *fun, ctors) { - if (!fun->isPublic() || fun->isAbstract()) { continue; } - s << meta_class->qualifiedCppName() << "* "; - writeFunctionSignature(s, fun, 0, "new_", - Option(IncludeDefaultExpression | OriginalName | ShowStatic)); - s << ";" << endl; - if (fun->arguments().size()==1 && meta_class->qualifiedCppName() == fun->arguments().at(0)->type()->typeEntry()->qualifiedCppName()) { - copyConstructorSeen = true; - } - if (fun->arguments().size()==0) { - defaultConstructorSeen = true; - } - } - - if (meta_class->typeEntry()->isValue() - && !copyConstructorSeen && defaultConstructorSeen) { - QString className = meta_class->generateShellClass()?shellClassName(meta_class):meta_class->qualifiedCppName(); - s << meta_class->qualifiedCppName() << "* new_" << meta_class->name() << "(const " << meta_class->qualifiedCppName() << "& other) {" << endl; - s << className << "* a = new " << className << "();" << endl; - s << "*((" << meta_class->qualifiedCppName() << "*)a) = other;" << endl; - s << "return a; }" << endl; - } - } - if (meta_class->hasPublicDestructor() && !meta_class->isNamespace()) { - s << "void delete_" << meta_class->name() << "(" << meta_class->qualifiedCppName() << "* obj) { delete obj; } "; - s << endl; - } - if (meta_class->name()=="QTreeWidgetItem") { - s << "bool py_hasOwner(QTreeWidgetItem* theWrappedObject) { return theWrappedObject->treeWidget()!=NULL || theWrappedObject->parent()!=NULL; }" << endl; - } else if (meta_class->name()=="QGraphicsItem") { - s << "bool py_hasOwner(QGraphicsItem* theWrappedObject) { return theWrappedObject->scene()!=NULL || theWrappedObject->parentItem()!=NULL; }" << endl; - } - - AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class); - - foreach (const AbstractMetaFunction *function, functions) { - if (!function->isSlot()) { - s << " "; - writeFunctionSignature(s, function, 0, QString(), - Option(ConvertReferenceToPtr | FirstArgIsWrappedObject| IncludeDefaultExpression | OriginalName | ShowStatic | UnderscoreSpaces)); - s << ";" << endl; - } - } - if (meta_class->hasDefaultToStringFunction() || meta_class->hasToStringCapability()) { - s << " QString py_toString(" << meta_class->qualifiedCppName() << "*);" << endl; - } - if (meta_class->hasDefaultIsNull()) { - s << " bool __nonzero__(" << meta_class->qualifiedCppName() << "* obj) { return !obj->isNull(); }" << endl; - } - - // Field accessors - foreach (const AbstractMetaField *field, meta_class->fields()) { - if (field->isPublic()) { - writeFieldAccessors(s, field); - } - } - - writeInjectedCode(s, meta_class); - - - s << "};" << endl << endl - << "#endif // " << include_block << endl; - -} - -void ShellHeaderGenerator::writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class) -{ - CodeSnipList code_snips = meta_class->typeEntry()->codeSnips(); - foreach (const CodeSnip &cs, code_snips) { - if (cs.language == TypeSystem::PyWrapperDeclaration) { - s << cs.code() << endl; - } - } -} diff --git a/3rdparty/pythonqt/generator/shellheadergenerator.h b/3rdparty/pythonqt/generator/shellheadergenerator.h deleted file mode 100644 index bfcb1017d..000000000 --- a/3rdparty/pythonqt/generator/shellheadergenerator.h +++ /dev/null @@ -1,70 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef SHELL_HEADER_GENERATOR -#define SHELL_HEADER_GENERATOR - -#include "shellgenerator.h" -#include "setupgenerator.h" -#include "metaqtscript.h" - -class ShellHeaderGenerator : public ShellGenerator -{ - Q_OBJECT - -public: - ShellHeaderGenerator(PriGenerator *pri, SetupGenerator *setup) - { - priGenerator = pri; - setupGenerator = setup; - } - - virtual QString fileNameForClass(const AbstractMetaClass *cls) const; - - void write(QTextStream &s, const AbstractMetaClass *meta_class); - void writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class); - - void writeFieldAccessors(QTextStream &s, const AbstractMetaField *field); - - SetupGenerator* setupGenerator; -}; - -#endif // SHELL_HEADER_GENERATOR diff --git a/3rdparty/pythonqt/generator/shellimplgenerator.cpp b/3rdparty/pythonqt/generator/shellimplgenerator.cpp deleted file mode 100644 index c8a0a068d..000000000 --- a/3rdparty/pythonqt/generator/shellimplgenerator.cpp +++ /dev/null @@ -1,330 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "shellimplgenerator.h" -#include "reporthandler.h" -#include "fileout.h" -#include - -extern void declareFunctionMetaTypes(QTextStream &stream, - const AbstractMetaFunctionList &functions, - QSet ®isteredTypeNames); - -QString ShellImplGenerator::fileNameForClass(const AbstractMetaClass *meta_class) const -{ - return QString("PythonQtWrapper_%1.cpp").arg(meta_class->name()); -} - -static bool include_less_than(const Include &a, const Include &b) -{ - return a.name < b.name; -} - -static void writeHelperCode(QTextStream &s, const AbstractMetaClass *) -{ -} - - - -void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_class) -{ - QString builtIn = ShellGenerator::isBuiltIn(meta_class->name())?"_builtin":""; - QString pro_file_name = meta_class->package().replace(".", "_") + builtIn + "/" + meta_class->package().replace(".", "_") + builtIn + ".pri"; - priGenerator->addSource(pro_file_name, fileNameForClass(meta_class)); - - s << "#include \"PythonQtWrapper_" << meta_class->name() << ".h\"" << endl << endl; - - s << "#include " << endl; - s << "#include " << endl; - s << "#include " << endl; - - //if (!meta_class->generateShellClass()) - // return; - - IncludeList list = meta_class->typeEntry()->extraIncludes(); - qSort(list.begin(), list.end()); - foreach (const Include &inc, list) { - ShellGenerator::writeInclude(s, inc); - } - s << endl; - - writeHelperCode(s, meta_class); - - // find constructors - AbstractMetaFunctionList ctors; - ctors = meta_class->queryFunctions(AbstractMetaClass::Constructors - | AbstractMetaClass::WasVisible - | AbstractMetaClass::NotRemovedFromTargetLang); - // find member functions - AbstractMetaFunctionList functions = getFunctionsToWrap(meta_class); - - // write metatype declarations - { - // QSet registeredTypeNames = m_qmetatype_declared_typenames; - // declareFunctionMetaTypes(s, functions, registeredTypeNames); - // s << endl; - } - - if (meta_class->generateShellClass()) { - AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class); - foreach (const AbstractMetaFunction *fun, virtualsForShell) { - bool hasReturnValue = (fun->type()); - writeFunctionSignature(s, fun, meta_class, QString(), - Option(OriginalName | ShowStatic | UnderscoreSpaces), - "PythonQtShell_"); - s << endl << "{" << endl; - - Option typeOptions = Option(OriginalName | UnderscoreSpaces | SkipName); - AbstractMetaArgumentList args = fun->arguments(); - - s << "if (_wrapper) {" << endl; - s << " PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, \"" << fun->name() << "\");" << endl; - s << " PyErr_Clear();" << endl; - s << " if (obj && !PythonQtSlotFunction_Check(obj)) {" << endl; - s << " static const char* argumentList[] ={\""; - if (hasReturnValue) { - // write the arguments, return type first - writeTypeInfo(s, fun->type(), typeOptions); - } - s << "\""; - for (int i = 0; i < args.size(); ++i) { - s << " , \""; - writeTypeInfo(s, args.at(i)->type(), typeOptions); - s << "\""; - } - s << "};" << endl; - s << " static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(" << QString::number(args.size()+1) << ", argumentList);" << endl; - - if (hasReturnValue) { - s << " "; - AbstractMetaType* type = fun->type(); - writeTypeInfo(s, type, typeOptions); - s << " returnValue"; - - if ((type->isArray() && typeOptions & ArrayAsPointer) || - (type->indirections()) || - (type->isReference() && typeOptions & ConvertReferenceToPtr) || - type->isPrimitive()) { - s << " = 0"; - } else if (type->isEnum() || type->isTargetLangEnum() || - type->isIntegerEnum()) { - s << " = " << type->cppSignature() << "(0)"; - } - - s << ";" << endl; - // TODO: POD init to default is missing... - } - s << " void* args[" << QString::number(args.size()+1) << "] = {NULL"; - for (int i = 0; i < args.size(); ++i) { - s << ", (void*)&" << args.at(i)->argumentName(); - } - s << "};" << endl; - - s << " PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);" << endl; - if (hasReturnValue) { - s << " if (result) {" << endl; - s << " args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue);" << endl; - s << " if (args[0]!=&returnValue) {" << endl; - s << " if (args[0]==NULL) {" << endl; - s << " PythonQt::priv()->handleVirtualOverloadReturnError(\"" << fun->name() << "\", methodInfo, result);" << endl; - s << " } else {" << endl; - s << " returnValue = *(("; - writeTypeInfo(s, fun->type(), typeOptions); - s << "*)args[0]);" << endl; - s << " }" << endl; - s << " }" << endl; - s << " }" << endl; - } - s << " if (result) { Py_DECREF(result); } " << endl; - s << " Py_DECREF(obj);" << endl; - if (hasReturnValue) { - s << " return returnValue;" << endl; - } else { - s << " return;" << endl; - } - s << " }" << endl; - s << " Py_XDECREF(obj);" << endl; - s << "}" << endl; - - s << " "; - if (fun->isAbstract()) { - if (fun->type()) { - // return empty default object - s << "return "; - if (fun->type()->indirections()>0) { - s << "0;"; - } else { - writeTypeInfo(s, fun->type(), typeOptions); - s << "();"; - } - } - } else { - if (fun->type()) { - s << "return "; - } - s << meta_class->qualifiedCppName() << "::"; - s << fun->originalName() << "("; - for (int i = 0; i < args.size(); ++i) { - if (i > 0) - s << ", "; - s << args.at(i)->argumentName(); - } - s << ");"; - } - s << endl << "}" << endl; - } - } - - if (meta_class->generateShellClass() || !meta_class->isAbstract()) { - - // write constructors - foreach (const AbstractMetaFunction *ctor, ctors) { - if (!ctor->isPublic() || ctor->isAbstract()) { continue; } - - s << meta_class->qualifiedCppName() << "* "; - s << "PythonQtWrapper_" << meta_class->name() << "::"; - writeFunctionSignature(s, ctor, 0, "new_", Option(OriginalName | ShowStatic)); - s << endl; - s << "{ " << endl; - s << "return new " << (meta_class->generateShellClass()?shellClassName(meta_class):meta_class->qualifiedCppName()) << "("; - AbstractMetaArgumentList args = ctor->arguments(); - for (int i = 0; i < args.size(); ++i) { - if (i > 0) - s << ", "; - s << args.at(i)->argumentName(); - } - s << ");" << " }" << endl << endl; - } - } - - QString wrappedObject = " (*theWrappedObject)"; - - // write member functions - for (int i = 0; i < functions.size(); ++i) { - AbstractMetaFunction *fun = functions.at(i); - if (fun->isSlot()) continue; - - writeFunctionSignature(s, fun, meta_class, QString(), - Option(ConvertReferenceToPtr | FirstArgIsWrappedObject | OriginalName | ShowStatic | UnderscoreSpaces), - "PythonQtWrapper_"); - s << endl << "{" << endl; - s << " "; - if (ShellGenerator::isSpecialStreamingOperator(fun)) { - s << fun->arguments().at(0)->argumentName(); - if (fun->originalName().startsWith("operator>>")) { - s << " >> "; - } else { - s << " << "; - } - s << wrappedObject; - } else { - QString scriptFunctionName = fun->originalName(); - AbstractMetaArgumentList args = fun->arguments(); - // call the C++ implementation - if (fun->type()) { - s << "return "; - // call the C++ implementation - if (fun->type()->isReference()) { - s << "&"; - } - } - s << "("; - if (scriptFunctionName.startsWith("operator>>")) { - s << wrappedObject << " >>" << args.at(0)->argumentName(); - } else if (scriptFunctionName.startsWith("operator<<")) { - s << wrappedObject << " <<" << args.at(0)->argumentName(); - } else if (scriptFunctionName.startsWith("operator[]")) { - s << wrappedObject << "[" << args.at(0)->argumentName() << "]"; - } else if (scriptFunctionName.startsWith("operator") && args.size()==1) { - QString op = scriptFunctionName.mid(8); - s << wrappedObject << op << " " << args.at(0)->argumentName(); - } else { - if (fun->isStatic()) { - s << meta_class->qualifiedCppName() << "::"; - } else { - if (!fun->isPublic() || fun->isVirtual()) { - s << " ((" << promoterClassName(meta_class) << "*)theWrappedObject)->promoted_"; - } else { - s << " theWrappedObject->"; - } - } - s << fun->originalName() << "("; - for (int i = 0; i < args.size(); ++i) { - if (i > 0) - s << ", "; - s << args.at(i)->argumentName(); - } - s << ")"; - } - s << ")"; - } - s << ";" << endl; - - s << "}" << endl << endl; - } - - if (meta_class->hasDefaultToStringFunction()) { - s << "QString PythonQtWrapper_" << meta_class->name() << "::py_toString(" << meta_class->qualifiedCppName() << "* obj) { return obj->toString(); }" << endl; - } else if (meta_class->hasToStringCapability()) { - FunctionModelItem fun = meta_class->hasToStringCapability(); - int indirections = fun->arguments().at(1)->type().indirections(); - QString deref = QLatin1String(indirections == 0 ? "*" : ""); - s << "QString PythonQtWrapper_" << meta_class->name() << "::py_toString(" << meta_class->qualifiedCppName() << "* obj) {" << endl; - s << " QString result;" << endl; - s << " QDebug d(&result);" << endl; - s << " d << " << deref << "obj;" << endl; - s << " return result;" << endl; - s << "}" << endl << endl; - } - - writeInjectedCode(s, meta_class); - -} - -void ShellImplGenerator::writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class) -{ - CodeSnipList code_snips = meta_class->typeEntry()->codeSnips(); - foreach (const CodeSnip &cs, code_snips) { - if (cs.language == TypeSystem::PyWrapperCode) { - s << cs.code() << endl; - } - } -} diff --git a/3rdparty/pythonqt/generator/shellimplgenerator.h b/3rdparty/pythonqt/generator/shellimplgenerator.h deleted file mode 100644 index c2fc7c60f..000000000 --- a/3rdparty/pythonqt/generator/shellimplgenerator.h +++ /dev/null @@ -1,65 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef SHELLIMPLGENERATOR_H -#define SHELLIMPLGENERATOR_H - -#include "shellgenerator.h" -#include "metaqtscript.h" - -class ShellImplGenerator : public ShellGenerator -{ - Q_OBJECT - -public: - ShellImplGenerator(PriGenerator *pri) - { - priGenerator = pri; - } - - virtual QString fileNameForClass(const AbstractMetaClass *cls) const; - - void write(QTextStream &s, const AbstractMetaClass *meta_class); - void writeInjectedCode(QTextStream &s, const AbstractMetaClass *meta_class); - -}; - -#endif // SHELLIMPLGENERATOR_H diff --git a/3rdparty/pythonqt/generator/typeparser.cpp b/3rdparty/pythonqt/generator/typeparser.cpp deleted file mode 100644 index 87730fa5c..000000000 --- a/3rdparty/pythonqt/generator/typeparser.cpp +++ /dev/null @@ -1,284 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "typeparser.h" - -#include -#include - -class Scanner -{ -public: - enum Token { - StarToken, - AmpersandToken, - LessThanToken, - ColonToken, - CommaToken, - OpenParenToken, - CloseParenToken, - SquareBegin, - SquareEnd, - GreaterThanToken, - - ConstToken, - Identifier, - NoToken - }; - - Scanner(const QString &s) - : m_pos(0), m_length(s.length()), m_chars(s.constData()) - { - } - - Token nextToken(); - QString identifier() const; - -private: - int m_pos; - int m_length; - int m_token_start; - const QChar *m_chars; -}; - -QString Scanner::identifier() const -{ - return QString(m_chars + m_token_start, m_pos - m_token_start); -} - -Scanner::Token Scanner::nextToken() -{ - Token tok = NoToken; - - // remove whitespace - while (m_pos < m_length && m_chars[m_pos] == ' ') { - ++m_pos; - } - - m_token_start = m_pos; - - while (m_pos < m_length) { - - const QChar &c = m_chars[m_pos]; - - if (tok == NoToken) { - switch (c.toLatin1()) { - case '*': tok = StarToken; break; - case '&': tok = AmpersandToken; break; - case '<': tok = LessThanToken; break; - case '>': tok = GreaterThanToken; break; - case ',': tok = CommaToken; break; - case '(': tok = OpenParenToken; break; - case ')': tok = CloseParenToken; break; - case '[': tok = SquareBegin; break; - case ']' : tok = SquareEnd; break; - case ':': - tok = ColonToken; - Q_ASSERT(m_pos + 1 < m_length); - ++m_pos; - break; - default: - if (c.isLetterOrNumber() || c == '_') - tok = Identifier; - else - qFatal("Unrecognized character in lexer: %c", c.toLatin1()); - break; - } - } - - if (tok <= GreaterThanToken) { - ++m_pos; - break; - } - - if (tok == Identifier) { - if (c.isLetterOrNumber() || c == '_') - ++m_pos; - else - break; - } - } - - if (tok == Identifier && m_pos - m_token_start == 5) { - if (m_chars[m_token_start] == 'c' - && m_chars[m_token_start + 1] == 'o' - && m_chars[m_token_start + 2] == 'n' - && m_chars[m_token_start + 3] == 's' - && m_chars[m_token_start + 4] == 't') - tok = ConstToken; - } - - return tok; - -} - -TypeParser::Info TypeParser::parse(const QString &str) -{ - Scanner scanner(str); - - Info info; - QStack stack; - stack.push(&info); - - bool colon_prefix = false; - bool in_array = false; - QString array; - - Scanner::Token tok = scanner.nextToken(); - while (tok != Scanner::NoToken) { - -// switch (tok) { -// case Scanner::StarToken: printf(" - *\n"); break; -// case Scanner::AmpersandToken: printf(" - &\n"); break; -// case Scanner::LessThanToken: printf(" - <\n"); break; -// case Scanner::GreaterThanToken: printf(" - >\n"); break; -// case Scanner::ColonToken: printf(" - ::\n"); break; -// case Scanner::CommaToken: printf(" - ,\n"); break; -// case Scanner::ConstToken: printf(" - const\n"); break; -// case Scanner::SquareBegin: printf(" - [\n"); break; -// case Scanner::SquareEnd: printf(" - ]\n"); break; -// case Scanner::Identifier: printf(" - '%s'\n", qPrintable(scanner.identifier())); break; -// default: -// break; -// } - - switch (tok) { - - case Scanner::StarToken: - ++stack.top()->indirections; - break; - - case Scanner::AmpersandToken: - stack.top()->is_reference = true; - break; - - case Scanner::LessThanToken: - stack.top()->template_instantiations << Info(); - stack.push(&stack.top()->template_instantiations.last()); - break; - - case Scanner::CommaToken: - stack.pop(); - stack.top()->template_instantiations << Info(); - stack.push(&stack.top()->template_instantiations.last()); - break; - - case Scanner::GreaterThanToken: - stack.pop(); - break; - - case Scanner::ColonToken: - colon_prefix = true; - break; - - case Scanner::ConstToken: - stack.top()->is_constant = true; - break; - - case Scanner::OpenParenToken: // function pointers not supported - case Scanner::CloseParenToken: - { - Info i; - i.is_busted = true; - return i; - } - - - case Scanner::Identifier: - if (in_array) { - array = scanner.identifier(); - } else if (colon_prefix || stack.top()->qualified_name.isEmpty()) { - stack.top()->qualified_name << scanner.identifier(); - colon_prefix = false; - } else { - stack.top()->qualified_name.last().append(" " + scanner.identifier()); - } - break; - - case Scanner::SquareBegin: - in_array = true; - break; - - case Scanner::SquareEnd: - in_array = false; - stack.top()->arrays += array; - break; - - - default: - break; - } - - tok = scanner.nextToken(); - } - - return info; -} - -QString TypeParser::Info::instantiationName() const -{ - QString s(qualified_name.join("::")); - if (!template_instantiations.isEmpty()) { - s += '<'; - for (int i=0; i -#include -#include - -class TypeParser -{ -public: - struct Info - { - Info() : is_reference(false), is_constant(false), is_busted(false), indirections(0) { } - QStringList qualified_name; - QStringList arrays; - QList template_instantiations; - uint is_reference : 1; - uint is_constant : 1; - uint is_busted : 1; - uint indirections : 5; - - QString toString() const; - QString instantiationName() const; - }; - - static Info parse(const QString &str); -}; - -#endif // TYPEPARSER_H diff --git a/3rdparty/pythonqt/generator/typesystem.cpp b/3rdparty/pythonqt/generator/typesystem.cpp deleted file mode 100644 index b91c443b6..000000000 --- a/3rdparty/pythonqt/generator/typesystem.cpp +++ /dev/null @@ -1,2013 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "typesystem.h" -#include "generator.h" - -#include "customtypes.h" - -#include - -#include - -#include - -QString strings_Object = QLatin1String("Object"); -QString strings_String = QLatin1String("String"); -QString strings_Thread = QLatin1String("Thread"); -QString strings_char = QLatin1String("char"); -QString strings_java_lang = QLatin1String("java.lang"); -QString strings_jchar = QLatin1String("jchar"); -QString strings_jobject = QLatin1String("jobject"); - -static void addRemoveFunctionToTemplates(TypeDatabase *db); - -class StackElement -{ - public: - enum ElementType { - None = 0x0, - - // Type tags (0x1, ... , 0xff) - ObjectTypeEntry = 0x1, - ValueTypeEntry = 0x2, - InterfaceTypeEntry = 0x3, - NamespaceTypeEntry = 0x4, - ComplexTypeEntryMask = 0xf, - - // Non-complex type tags (0x10, 0x20, ... , 0xf0) - PrimitiveTypeEntry = 0x10, - EnumTypeEntry = 0x20, - TypeEntryMask = 0xff, - - // Simple tags (0x100, 0x200, ... , 0xf00) - ExtraIncludes = 0x100, - Include = 0x200, - ModifyFunction = 0x300, - ModifyField = 0x400, - Root = 0x500, - CustomMetaConstructor = 0x600, - CustomMetaDestructor = 0x700, - ArgumentMap = 0x800, - SuppressedWarning = 0x900, - Rejection = 0xa00, - LoadTypesystem = 0xb00, - RejectEnumValue = 0xc00, - Template = 0xd00, - TemplateInstanceEnum = 0xe00, - Replace = 0xf00, - SimpleMask = 0xf00, - - // Code snip tags (0x1000, 0x2000, ... , 0xf000) - InjectCode = 0x1000, - InjectCodeInFunction = 0x2000, - CodeSnipMask = 0xf000, - - // Function modifier tags (0x010000, 0x020000, ... , 0xf00000) - Access = 0x010000, - Removal = 0x020000, - Rename = 0x040000, - ModifyArgument = 0x080000, - FunctionModifiers = 0xff0000, - - // Argument modifier tags (0x01000000 ... 0xf0000000) - ConversionRule = 0x01000000, - ReplaceType = 0x02000000, - ReplaceDefaultExpression = 0x04000000, - RemoveArgument = 0x08000000, - DefineOwnership = 0x10000000, - RemoveDefaultExpression = 0x20000000, - NoNullPointers = 0x40000000, - ReferenceCount = 0x80000000, - ArgumentModifiers = 0xff000000 - }; - - StackElement(StackElement *p) : entry(0), type(None), parent(p){ } - - TypeEntry *entry; - ElementType type; - StackElement *parent; - - union { - TemplateInstance *templateInstance; - TemplateEntry *templateEntry; - CustomFunction *customFunction; - } value; -}; - -class Handler : public QXmlDefaultHandler -{ -public: - Handler(TypeDatabase *database, bool generate) - : m_database(database), m_generate(generate ? TypeEntry::GenerateAll : TypeEntry::GenerateForSubclass) - { - m_current_enum = 0; - current = 0; - - tagNames["rejection"] = StackElement::Rejection; - tagNames["primitive-type"] = StackElement::PrimitiveTypeEntry; - tagNames["object-type"] = StackElement::ObjectTypeEntry; - tagNames["value-type"] = StackElement::ValueTypeEntry; - tagNames["interface-type"] = StackElement::InterfaceTypeEntry; - tagNames["namespace-type"] = StackElement::NamespaceTypeEntry; - tagNames["enum-type"] = StackElement::EnumTypeEntry; - tagNames["extra-includes"] = StackElement::ExtraIncludes; - tagNames["include"] = StackElement::Include; - tagNames["inject-code"] = StackElement::InjectCode; - tagNames["modify-function"] = StackElement::ModifyFunction; - tagNames["modify-field"] = StackElement::ModifyField; - tagNames["access"] = StackElement::Access; - tagNames["remove"] = StackElement::Removal; - tagNames["rename"] = StackElement::Rename; - tagNames["typesystem"] = StackElement::Root; - tagNames["custom-constructor"] = StackElement::CustomMetaConstructor; - tagNames["custom-destructor"] = StackElement::CustomMetaDestructor; - tagNames["argument-map"] = StackElement::ArgumentMap; - tagNames["suppress-warning"] = StackElement::SuppressedWarning; - tagNames["load-typesystem"] = StackElement::LoadTypesystem; - tagNames["define-ownership"] = StackElement::DefineOwnership; - tagNames["replace-default-expression"] = StackElement::ReplaceDefaultExpression; - tagNames["reject-enum-value"] = StackElement::RejectEnumValue; - tagNames["replace-type"] = StackElement::ReplaceType; - tagNames["conversion-rule"] = StackElement::ConversionRule; - tagNames["modify-argument"] = StackElement::ModifyArgument; - tagNames["remove-argument"] = StackElement::RemoveArgument; - tagNames["remove-default-expression"] = StackElement::RemoveDefaultExpression; - tagNames["template"] = StackElement::Template; - tagNames["insert-template"] = StackElement::TemplateInstanceEnum; - tagNames["replace"] = StackElement::Replace; - tagNames["no-null-pointer"] = StackElement::NoNullPointers; - tagNames["reference-count"] = StackElement::ReferenceCount; - } - - bool startElement(const QString &namespaceURI, const QString &localName, - const QString &qName, const QXmlAttributes &atts); - bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName); - - QString errorString() const { return m_error; } - bool error(const QXmlParseException &exception); - bool fatalError(const QXmlParseException &exception); - bool warning(const QXmlParseException &exception); - - bool characters(const QString &ch); - -private: - void fetchAttributeValues(const QString &name, const QXmlAttributes &atts, - QHash *acceptedAttributes); - - bool importFileElement(const QXmlAttributes &atts); - bool convertBoolean(const QString &, const QString &, bool); - - TypeDatabase *m_database; - StackElement* current; - QString m_defaultPackage; - QString m_defaultSuperclass; - QString m_error; - TypeEntry::CodeGeneration m_generate; - - EnumTypeEntry *m_current_enum; - - CodeSnipList m_code_snips; - FunctionModificationList m_function_mods; - FieldModificationList m_field_mods; - - QHash tagNames; -}; - -bool Handler::error(const QXmlParseException &e) -{ - qWarning("Error: line=%d, column=%d, message=%s\n", - e.lineNumber(), e.columnNumber(), qPrintable(e.message())); - return false; -} - -bool Handler::fatalError(const QXmlParseException &e) -{ - qWarning("Fatal error: line=%d, column=%d, message=%s\n", - e.lineNumber(), e.columnNumber(), qPrintable(e.message())); - - return false; -} - -bool Handler::warning(const QXmlParseException &e) -{ - qWarning("Warning: line=%d, column=%d, message=%s\n", - e.lineNumber(), e.columnNumber(), qPrintable(e.message())); - - return false; -} - -void Handler::fetchAttributeValues(const QString &name, const QXmlAttributes &atts, - QHash *acceptedAttributes) -{ - Q_ASSERT(acceptedAttributes != 0); - - for (int i=0; icontains(key)) { - ReportHandler::warning(QString("Unknown attribute for '%1': '%2'").arg(name).arg(key)); - } else { - (*acceptedAttributes)[key] = val; - } - } -} - -bool Handler::endElement(const QString &, const QString &localName, const QString &) -{ - QString tagName = localName.toLower(); - if(tagName == "import-file") - return true; - - if (!current) - return true; - - switch (current->type) { - case StackElement::ObjectTypeEntry: - case StackElement::ValueTypeEntry: - case StackElement::InterfaceTypeEntry: - case StackElement::NamespaceTypeEntry: - { - ComplexTypeEntry *centry = static_cast(current->entry); - centry->setFunctionModifications(m_function_mods); - centry->setFieldModifications(m_field_mods); - centry->setCodeSnips(m_code_snips); - - if (centry->designatedInterface()) { - centry->designatedInterface()->setCodeSnips(m_code_snips); - centry->designatedInterface()->setFunctionModifications(m_function_mods); - } - m_code_snips = CodeSnipList(); - m_function_mods = FunctionModificationList(); - m_field_mods = FieldModificationList(); - } - break; - case StackElement::CustomMetaConstructor: - { - current->entry->setCustomConstructor(*current->value.customFunction); - delete current->value.customFunction; - } - break; - case StackElement::CustomMetaDestructor: - { - current->entry->setCustomDestructor(*current->value.customFunction); - delete current->value.customFunction; - } - break; - case StackElement::EnumTypeEntry: - m_current_enum = 0; - break; - case StackElement::Template: - m_database->addTemplate(current->value.templateEntry); - break; - case StackElement::TemplateInstanceEnum: - if(current->parent->type == StackElement::InjectCode){ - m_code_snips.last().addTemplateInstance(current->value.templateInstance); - }else if(current->parent->type == StackElement::Template){ - current->parent->value.templateEntry->addTemplateInstance(current->value.templateInstance); - }else if(current->parent->type == StackElement::CustomMetaConstructor || current->parent->type == StackElement::CustomMetaConstructor){ - current->parent->value.customFunction->addTemplateInstance(current->value.templateInstance); - }else if(current->parent->type == StackElement::ConversionRule){ - m_function_mods.last().argument_mods.last().conversion_rules.last().addTemplateInstance(current->value.templateInstance); - }else if(current->parent->type == StackElement::InjectCodeInFunction){ - m_function_mods.last().snips.last().addTemplateInstance(current->value.templateInstance); - } - break; - default: - break; - } - - StackElement *child = current; - current=current->parent; - delete(child); - - return true; -} - -bool Handler::characters(const QString &ch) -{ - if(current->type == StackElement::Template){ - current->value.templateEntry->addCode(ch); - return true; - } - - if (current->type == StackElement::CustomMetaConstructor || current->type == StackElement::CustomMetaDestructor){ - current->value.customFunction->addCode(ch); - return true; - } - - if (current->type == StackElement::ConversionRule){ - m_function_mods.last().argument_mods.last().conversion_rules.last().addCode(ch); - return true; - } - - if (current->parent){ - if ((current->type & StackElement::CodeSnipMask) != 0) { - switch (current->parent->type) { - case StackElement::Root: - ((TypeSystemTypeEntry *) current->parent->entry)->snips.last().addCode(ch); - break; - case StackElement::ModifyFunction: - m_function_mods.last().snips.last().addCode(ch); - break; - case StackElement::NamespaceTypeEntry: - case StackElement::ObjectTypeEntry: - case StackElement::ValueTypeEntry: - case StackElement::InterfaceTypeEntry: - m_code_snips.last().addCode(ch); - break; - default: - Q_ASSERT(false); - }; - return true; - } - } - - return true; -} - -bool Handler::importFileElement(const QXmlAttributes &atts) -{ - QString fileName = atts.value("name"); - if(fileName.isEmpty()){ - m_error = "Required attribute 'name' missing for include-file tag."; - return false; - } - - QFile file(fileName); - if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - file.setFileName(":/trolltech/generator/" + fileName); - if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { - m_error = QString("Could not open file: '%1'").arg(fileName); - return false; - } - } - - QString quoteFrom = atts.value("quote-after-line"); - bool foundFromOk = quoteFrom.isEmpty(); - bool from = quoteFrom.isEmpty(); - - QString quoteTo = atts.value("quote-before-line"); - bool foundToOk = quoteTo.isEmpty(); - bool to = true; - - QTextStream in(&file); - while (!in.atEnd()) { - QString line = in.readLine(); - if(from && to && line.contains(quoteTo)) { - to = false; - foundToOk = true; - break; - } - if(from && to) - characters(line + "\n"); - if(!from && line.contains(quoteFrom)) { - from = true; - foundFromOk = true; - } - } - if(!foundFromOk || !foundToOk){ - QString fromError = QString("Could not find quote-after-line='%1' in file '%2'.").arg(quoteFrom).arg(fileName); - QString toError = QString("Could not find quote-before-line='%1' in file '%2'.").arg(quoteTo).arg(fileName); - - if(!foundToOk) - m_error = toError; - if(!foundFromOk) - m_error = fromError; - if(!foundFromOk && !foundToOk) - m_error = fromError + " " + toError; - return false; - } - - return true; -} - -bool Handler::convertBoolean(const QString &_value, const QString &attributeName, bool defaultValue) -{ - QString value = _value.toLower(); - if (value == "true" || value == "yes") { - return true; - } else if (value == "false" || value == "no") { - return false; - } else { - QString warn = QString("Boolean value '%1' not supported in attribute '%2'. Use 'yes' or 'no'. Defaulting to '%3'.") - .arg(value).arg(attributeName).arg(defaultValue ? "yes" : "no"); - - ReportHandler::warning(warn); - return defaultValue; - } -} - -bool Handler::startElement(const QString &, const QString &n, - const QString &, const QXmlAttributes &atts) -{ - QString tagName = n.toLower(); - if(tagName == "import-file"){ - return importFileElement(atts); - } - - std::auto_ptr element(new StackElement(current)); - - if (!tagNames.contains(tagName)) { - m_error = QString("Unknown tag name: '%1'").arg(tagName); - return false; - } - - element->type = tagNames[tagName]; - if (element->type & StackElement::TypeEntryMask) { - if (current->type != StackElement::Root) { - m_error = "Nested types not supported"; - return false; - } - - QHash attributes; - attributes["name"] = QString(); - - switch (element->type) { - case StackElement::PrimitiveTypeEntry: - attributes["java-name"] = QString(); - attributes["jni-name"] = QString(); - attributes["preferred-conversion"] = "yes"; - attributes["preferred-java-type"] = "yes"; - break; - case StackElement::EnumTypeEntry: - attributes["flags"] = "no"; - attributes["upper-bound"] = QString(); - attributes["lower-bound"] = QString(); - attributes["force-integer"] = "no"; - attributes["extensible"] = "no"; - - break; - - case StackElement::ObjectTypeEntry: - case StackElement::ValueTypeEntry: - attributes["force-abstract"] = QString("no"); - attributes["deprecated"] = QString("no"); - // fall throooough - case StackElement::InterfaceTypeEntry: - attributes["default-superclass"] = m_defaultSuperclass; - attributes["polymorphic-id-expression"] = QString(); - attributes["delete-in-main-thread"] = QString("no"); - // fall through - case StackElement::NamespaceTypeEntry: - attributes["java-name"] = QString(); - attributes["package"] = m_defaultPackage; - attributes["expense-cost"] = "1"; - attributes["expense-limit"] = "none"; - attributes["polymorphic-base"] = QString("no"); - attributes["generate"] = QString("yes"); - attributes["target-type"] = QString(); - attributes["generic-class"] = QString("no"); - break; - default: - ; // nada - }; - - fetchAttributeValues(tagName, atts, &attributes); - - QString name = attributes["name"]; - - // We need to be able to have duplicate primitive type entries, or it's not possible to - // cover all primitive java types (which we need to do in order to support fake - // meta objects) - if (element->type != StackElement::PrimitiveTypeEntry) { - TypeEntry *tmp = m_database->findType(name); - if (tmp != 0) { - ReportHandler::warning(QString("Duplicate type entry: '%1'").arg(name)); - } - } - - if (name.isEmpty()) { - m_error = "no 'name' attribute specified"; - return false; - } - switch (element->type) { - case StackElement::PrimitiveTypeEntry: - { - QString java_name = attributes["java-name"]; - QString jni_name = attributes["jni-name"]; - QString preferred_conversion = attributes["preferred-conversion"].toLower(); - QString preferred_java_type = attributes["preferred-java-type"].toLower(); - - if (java_name.isEmpty()) - java_name = name; - if (jni_name.isEmpty()) - jni_name = name; - - PrimitiveTypeEntry *type = new PrimitiveTypeEntry(name); - type->setCodeGeneration(m_generate); - type->setTargetLangName(java_name); - type->setJniName(jni_name); - - type->setPreferredConversion(convertBoolean(preferred_conversion, "preferred-conversion", true)); - type->setPreferredTargetLangType(convertBoolean(preferred_java_type, "preferred-java-type", true)); - - element->entry = type; - } - break; - case StackElement::EnumTypeEntry: { - QStringList names = name.split(QLatin1String("::")); - - if (names.size() == 1) { - m_current_enum = new EnumTypeEntry(QString(), name); - } - else - m_current_enum = - new EnumTypeEntry(QStringList(names.mid(0, names.size() - 1)).join("::"), - names.last()); - element->entry = m_current_enum; - m_current_enum->setCodeGeneration(m_generate); - m_current_enum->setTargetLangPackage(m_defaultPackage); - m_current_enum->setUpperBound(attributes["upper-bound"]); - m_current_enum->setLowerBound(attributes["lower-bound"]); - m_current_enum->setForceInteger(convertBoolean(attributes["force-integer"], "force-integer", false)); - m_current_enum->setExtensible(convertBoolean(attributes["extensible"], "extensible", false)); - - // put in the flags parallel... - if (!attributes["flags"].isEmpty() && attributes["flags"].toLower() != "no") { - FlagsTypeEntry *ftype = new FlagsTypeEntry("QFlags<" + name + ">"); - ftype->setOriginator(m_current_enum); - ftype->setOriginalName(attributes["flags"]); - ftype->setCodeGeneration(m_generate); - QString origname = ftype->originalName(); - - QStringList lst = origname.split("::"); - if (QStringList(lst.mid(0, lst.size() - 1)).join("::") != m_current_enum->javaQualifier()) { - ReportHandler::warning(QString("enum %1 and flags %2 differ in qualifiers") - .arg(m_current_enum->javaQualifier()) - .arg(lst.at(0))); - } - - ftype->setFlagsName(lst.last()); - m_current_enum->setFlags(ftype); - - m_database->addFlagsType(ftype); - m_database->addType(ftype); - } - } - break; - - case StackElement::InterfaceTypeEntry: - { - ObjectTypeEntry *otype = new ObjectTypeEntry(name); - QString javaName = attributes["java-name"]; - if (javaName.isEmpty()) - javaName = name; - InterfaceTypeEntry *itype = - new InterfaceTypeEntry(InterfaceTypeEntry::interfaceName(javaName)); - - if (!convertBoolean(attributes["generate"], "generate", true)) - itype->setCodeGeneration(TypeEntry::GenerateForSubclass); - else - itype->setCodeGeneration(m_generate); - otype->setDesignatedInterface(itype); - itype->setOrigin(otype); - element->entry = otype; - } - // fall through - case StackElement::NamespaceTypeEntry: - if (element->entry == 0) { - element->entry = new NamespaceTypeEntry(name); - } - // fall through - case StackElement::ObjectTypeEntry: - if (element->entry == 0) { - element->entry = new ObjectTypeEntry(name); - } - // fall through - case StackElement::ValueTypeEntry: - { - if (element->entry == 0) { - element->entry = new ValueTypeEntry(name); - } - - ComplexTypeEntry *ctype = static_cast(element->entry); - ctype->setTargetLangPackage(attributes["package"]); - ctype->setDefaultSuperclass(attributes["default-superclass"]); - ctype->setGenericClass(convertBoolean(attributes["generic-class"], "generic-class", false)); - - if (!convertBoolean(attributes["generate"], "generate", true)) - element->entry->setCodeGeneration(TypeEntry::GenerateForSubclass); - else - element->entry->setCodeGeneration(m_generate); - - QString javaName = attributes["java-name"]; - if (!javaName.isEmpty()) - ctype->setTargetLangName(javaName); - - // The expense policy - QString limit = attributes["expense-limit"]; - if (!limit.isEmpty() && limit != "none") { - ExpensePolicy ep; - ep.limit = limit.toInt(); - ep.cost = attributes["expense-cost"]; - ctype->setExpensePolicy(ep); - } - - ctype->setIsPolymorphicBase(convertBoolean(attributes["polymorphic-base"], "polymorphic-base", false)); - ctype->setPolymorphicIdValue(attributes["polymorphic-id-expression"]); - - if (element->type == StackElement::ObjectTypeEntry || element->type == StackElement::ValueTypeEntry) { - if (convertBoolean(attributes["force-abstract"], "force-abstract", false)) - ctype->setTypeFlags(ctype->typeFlags() | ComplexTypeEntry::ForceAbstract); - if (convertBoolean(attributes["deprecated"], "deprecated", false)) - ctype->setTypeFlags(ctype->typeFlags() | ComplexTypeEntry::Deprecated); - } - - if (element->type == StackElement::InterfaceTypeEntry || - element->type == StackElement::ValueTypeEntry || - element->type == StackElement::ObjectTypeEntry) { - if (convertBoolean(attributes["delete-in-main-thread"], "delete-in-main-thread", false)) - ctype->setTypeFlags(ctype->typeFlags() | ComplexTypeEntry::DeleteInMainThread); - } - - QString targetType = attributes["target-type"]; - if (!targetType.isEmpty() && element->entry->isComplex()) - static_cast(element->entry)->setTargetType(targetType); - - // ctype->setInclude(Include(Include::IncludePath, ctype->name())); - ctype = ctype->designatedInterface(); - if (ctype != 0) - ctype->setTargetLangPackage(attributes["package"]); - - } - break; - default: - Q_ASSERT(false); - }; - - if (element->entry) - m_database->addType(element->entry); - else - ReportHandler::warning(QString("Type: %1 was rejected by typesystem").arg(name)); - - } else if (element->type != StackElement::None) { - bool topLevel = element->type == StackElement::Root - || element->type == StackElement::SuppressedWarning - || element->type == StackElement::Rejection - || element->type == StackElement::LoadTypesystem - || element->type == StackElement::InjectCode - || element->type == StackElement::Template; - - if (!topLevel && current->type == StackElement::Root) { - m_error = QString("Tag requires parent: '%1'").arg(tagName); - return false; - } - - StackElement topElement = current==0 ? StackElement(0) : *current; - element->entry = topElement.entry; - - QHash attributes; - switch (element->type) { - case StackElement::Root: - attributes["package"] = QString(); - attributes["default-superclass"] = QString(); - break; - case StackElement::LoadTypesystem: - attributes["name"] = QString(); - attributes["generate"] = "yes"; - break; - case StackElement::NoNullPointers: - attributes["default-value"] = QString(); - break; - case StackElement::SuppressedWarning: - attributes["text"] = QString(); - break; - case StackElement::ReplaceDefaultExpression: - attributes["with"] = QString(); - break; - case StackElement::DefineOwnership: - attributes["class"] = "java"; - attributes["owner"] = ""; - break; - case StackElement::ModifyFunction: - attributes["signature"] = QString(); - attributes["access"] = QString(); - attributes["remove"] = QString(); - attributes["rename"] = QString(); - attributes["deprecated"] = QString("no"); - attributes["associated-to"] = QString(); - attributes["virtual-slot"] = QString("no"); - break; - case StackElement::ModifyArgument: - attributes["index"] = QString(); - attributes["replace-value"] = QString(); - attributes["invalidate-after-use"] = QString("no"); - break; - case StackElement::ModifyField: - attributes["name"] = QString(); - attributes["write"] = "true"; - attributes["read"] = "true"; - break; - case StackElement::Access: - attributes["modifier"] = QString(); - break; - case StackElement::Include: - attributes["file-name"] = QString(); - attributes["location"] = QString(); - break; - case StackElement::CustomMetaConstructor: - attributes["name"] = topElement.entry->name().toLower() + "_create"; - attributes["param-name"] = "copy"; - break; - case StackElement::CustomMetaDestructor: - attributes["name"] = topElement.entry->name().toLower() + "_delete"; - attributes["param-name"] = "copy"; - break; - case StackElement::ReplaceType: - attributes["modified-type"] = QString(); - break; - case StackElement::InjectCode: - attributes["class"] = "java"; - attributes["position"] = "beginning"; - break; - case StackElement::ConversionRule: - attributes["class"] = ""; - break; - case StackElement::RejectEnumValue: - attributes["name"] = ""; - break; - case StackElement::ArgumentMap: - attributes["index"] = "1"; - attributes["meta-name"] = QString(); - break; - case StackElement::Rename: - attributes["to"] = QString(); - break; - case StackElement::Rejection: - attributes["class"] = "*"; - attributes["function-name"] = "*"; - attributes["field-name"] = "*"; - attributes["enum-name"] = "*"; - break; - case StackElement::Removal: - attributes["class"] = "all"; - break; - case StackElement::Template: - attributes["name"] = QString(); - break; - case StackElement::TemplateInstanceEnum: - attributes["name"] = QString(); - break; - case StackElement::Replace: - attributes["from"] = QString(); - attributes["to"] = QString(); - break; - case StackElement::ReferenceCount: - attributes["action"] = QString(); - attributes["variable-name"] = QString(); - attributes["thread-safe"] = QString("no"); - attributes["declare-variable"] = QString(); - attributes["access"] = QString("private"); - attributes["conditional"] = QString(""); - break; - default: - ; // nada - }; - - if (attributes.count() > 0) - fetchAttributeValues(tagName, atts, &attributes); - - switch (element->type) { - case StackElement::Root: - m_defaultPackage = attributes["package"]; - m_defaultSuperclass = attributes["default-superclass"]; - element->type = StackElement::Root; - element->entry = new TypeSystemTypeEntry(m_defaultPackage); - TypeDatabase::instance()->addType(element->entry); - break; - case StackElement::LoadTypesystem: - { - QString name = attributes["name"]; - if (name.isEmpty()) { - m_error = "No typesystem name specified"; - return false; - } - - if (!m_database->parseFile(name, convertBoolean(attributes["generate"], "generate", true))) { - m_error = QString("Failed to parse: '%1'").arg(name); - return false; - } - } - break; - case StackElement::RejectEnumValue: { - if (!m_current_enum) { - m_error = " node must be used inside a node"; - return false; - } - QString name = attributes["name"]; - - bool added = false; - if (!name.isEmpty()) { - added = true; - m_current_enum->addEnumValueRejection(name); - } - - } break; - case StackElement::ReplaceType: - { - if (topElement.type != StackElement::ModifyArgument) { - m_error = "Type replacement can only be specified for argument modifications"; - return false; - } - - if (attributes["modified-type"].isEmpty()) { - m_error = "Type replacement requires 'modified-type' attribute"; - return false; - } - - m_function_mods.last().argument_mods.last().modified_type = attributes["modified-type"]; - } - break; - case StackElement::ConversionRule: - { - if (topElement.type != StackElement::ModifyArgument) { - m_error = "Conversion rules can only be specified for argument modification"; - return false; - } - - static QHash languageNames; - if (languageNames.isEmpty()) { - languageNames["native"] = TypeSystem::NativeCode; - languageNames["shell"] = TypeSystem::ShellCode; - } - - CodeSnip snip; - QString languageAttribute = attributes["class"].toLower(); - TypeSystem::Language lang = languageNames.value(languageAttribute, TypeSystem::NoLanguage); - if (lang == TypeSystem::NoLanguage) { - m_error = QString("unsupported class attribute: '%1'").arg(languageAttribute); - return false; - } - - snip.language = lang; - m_function_mods.last().argument_mods.last().conversion_rules.append(snip); - } - - break; - case StackElement::ModifyArgument: - { - if (topElement.type != StackElement::ModifyFunction) { - m_error = QString::fromLatin1("argument modification requires function" - " modification as parent, was %1") - .arg(topElement.type, 0, 16); - return false; - } - - QString index = attributes["index"]; - if (index == "return") - index = "0"; - else if (index == "this") - index = "-1"; - - bool ok = false; - int idx = index.toInt(&ok); - if (!ok) { - m_error = QString("Cannot convert '%1' to integer").arg(index); - return false; - } - - QString replace_value = attributes["replace-value"]; - - if (!replace_value.isEmpty() && idx != 0) { - m_error = QString("replace-value is only supported for return values (index=0)."); - return false; - } - - ArgumentModification argumentModification = ArgumentModification(idx); - argumentModification.replace_value = replace_value; - argumentModification.reset_after_use = convertBoolean(attributes["invalidate-after-use"], "invalidate-after-use", false); - m_function_mods.last().argument_mods.append(argumentModification); - } - break; - case StackElement::NoNullPointers: - { - if (topElement.type != StackElement::ModifyArgument) { - m_error = "no-null-pointer requires argument modification as parent"; - return false; - } - - m_function_mods.last().argument_mods.last().no_null_pointers = true; - if (m_function_mods.last().argument_mods.last().index == 0) { - m_function_mods.last().argument_mods.last().null_pointer_default_value = attributes["default-value"]; - } else if (!attributes["default-value"].isEmpty()) { - ReportHandler::warning("default values for null pointer guards are only effective for return values"); - } - } - break; - case StackElement::DefineOwnership: - { - if (topElement.type != StackElement::ModifyArgument) { - m_error = "define-ownership requires argument modification as parent"; - return false; - } - - static QHash languageNames; - if (languageNames.isEmpty()) { - languageNames["java"] = TypeSystem::TargetLangCode; - languageNames["shell"] = TypeSystem::ShellCode; - } - - QString classAttribute = attributes["class"].toLower(); - TypeSystem::Language lang = languageNames.value(classAttribute, TypeSystem::NoLanguage); - if (lang == TypeSystem::NoLanguage) { - m_error = QString("unsupported class attribute: '%1'").arg(classAttribute); - return false; - } - - static QHash ownershipNames; - if (ownershipNames.isEmpty()) { - ownershipNames["java"] = TypeSystem::TargetLangOwnership; - ownershipNames["c++"] = TypeSystem::CppOwnership; - ownershipNames["default"] = TypeSystem::DefaultOwnership; - } - - QString ownershipAttribute = attributes["owner"].toLower(); - TypeSystem::Ownership owner = ownershipNames.value(ownershipAttribute, TypeSystem::InvalidOwnership); - if (owner == TypeSystem::InvalidOwnership) { - m_error = QString("unsupported owner attribute: '%1'").arg(ownershipAttribute); - return false; - } - - m_function_mods.last().argument_mods.last().ownerships[lang] = owner; - } - break; - case StackElement::SuppressedWarning: - if (attributes["text"].isEmpty()) - ReportHandler::warning("Suppressed warning with no text specified"); - else - m_database->addSuppressedWarning(attributes["text"]); - break; - case StackElement::ArgumentMap: - { - if (!(topElement.type & StackElement::CodeSnipMask)) { - m_error = "Argument maps requires code injection as parent"; - return false; - } - - bool ok; - int pos = attributes["index"].toInt(&ok); - if (!ok) { - m_error = QString("Can't convert position '%1' to integer") - .arg(attributes["position"]); - return false; - } - - if (pos <= 0) { - m_error = QString("Argument position %1 must be a positive number").arg(pos); - return false; - } - - QString meta_name = attributes["meta-name"]; - if (meta_name.isEmpty()) { - ReportHandler::warning("Empty meta name in argument map"); - } - - if (topElement.type == StackElement::InjectCodeInFunction) { - m_function_mods.last().snips.last().argumentMap[pos] = meta_name; - } else { - ReportHandler::warning("Argument maps are only useful for injection of code " - "into functions."); - } - } - break; - case StackElement::Removal: - { - if (topElement.type != StackElement::ModifyFunction) { - m_error = "Function modification parent required"; - return false; - } - - static QHash languageNames; - if (languageNames.isEmpty()) { - languageNames["java"] = TypeSystem::TargetLangAndNativeCode; - languageNames["all"] = TypeSystem::All; - } - - QString languageAttribute = attributes["class"].toLower(); - TypeSystem::Language lang = languageNames.value(languageAttribute, TypeSystem::NoLanguage); - if (lang == TypeSystem::NoLanguage) { - m_error = QString("unsupported class attribute: '%1'").arg(languageAttribute); - return false; - } - - m_function_mods.last().removal = lang; - } - break; - case StackElement::Rename: - case StackElement::Access: - { - if (topElement.type != StackElement::ModifyField - && topElement.type != StackElement::ModifyFunction) { - m_error = "Function or field modification parent required"; - return false; - } - - Modification *mod = 0; - if (topElement.type == StackElement::ModifyFunction) - mod = &m_function_mods.last(); - else - mod = &m_field_mods.last(); - - QString modifier; - if (element->type == StackElement::Rename) { - modifier = "rename"; - QString renamed_to = attributes["to"]; - if (renamed_to.isEmpty()) { - m_error = "Rename modifier requires 'to' attribute"; - return false; - } - - if (topElement.type == StackElement::ModifyFunction) - mod->setRenamedTo(renamed_to); - else - mod->setRenamedTo(renamed_to); - } else { - modifier = attributes["modifier"].toLower(); - } - - if (modifier.isEmpty()) { - m_error = "No access modification specified"; - return false; - } - - static QHash modifierNames; - if (modifierNames.isEmpty()) { - modifierNames["private"] = Modification::Private; - modifierNames["public"] = Modification::Public; - modifierNames["protected"] = Modification::Protected; - modifierNames["friendly"] = Modification::Friendly; - modifierNames["rename"] = Modification::Rename; - modifierNames["final"] = Modification::Final; - modifierNames["non-final"] = Modification::NonFinal; - } - - if (!modifierNames.contains(modifier)) { - m_error = QString("Unknown access modifier: '%1'").arg(modifier); - return false; - } - - mod->modifiers |= modifierNames[modifier]; - } - break; - case StackElement::RemoveArgument: - if (topElement.type != StackElement::ModifyArgument) { - m_error = "Removing argument requires argument modification as parent"; - return false; - } - - m_function_mods.last().argument_mods.last().removed = true; - - break; - - case StackElement::ModifyField: - { - QString name = attributes["name"]; - if (name.isEmpty()) - break; - FieldModification fm; - fm.name = name; - fm.modifiers = 0; - - QString read = attributes["read"]; - QString write = attributes["write"]; - - if (read == "true") fm.modifiers |= FieldModification::Readable; - if (write == "true") fm.modifiers |= FieldModification::Writable; - - m_field_mods << fm; - } - break; - case StackElement::ModifyFunction: - { - if (!(topElement.type & StackElement::ComplexTypeEntryMask)) { - m_error = QString::fromLatin1("Modify function requires complex type as parent" - ", was=%1").arg(topElement.type, 0, 16); - return false; - } - QString signature = attributes["signature"]; - - signature = QMetaObject::normalizedSignature(signature.toLocal8Bit().constData()); - if (signature.isEmpty()) { - m_error = "No signature for modified function"; - return false; - } - - FunctionModification mod; - mod.signature = signature; - - QString access = attributes["access"].toLower(); - if (!access.isEmpty()) { - if (access == QLatin1String("private")) - mod.modifiers |= Modification::Private; - else if (access == QLatin1String("protected")) - mod.modifiers |= Modification::Protected; - else if (access == QLatin1String("public")) - mod.modifiers |= Modification::Public; - else if (access == QLatin1String("final")) - mod.modifiers |= Modification::Final; - else if (access == QLatin1String("non-final")) - mod.modifiers |= Modification::NonFinal; - else { - m_error = QString::fromLatin1("Bad access type '%1'").arg(access); - return false; - } - } - - if (convertBoolean(attributes["deprecated"], "deprecated", false)) { - mod.modifiers |= Modification::Deprecated; - } - - QString remove = attributes["remove"].toLower(); - if (!remove.isEmpty()) { - if (remove == QLatin1String("all")) - mod.removal = TypeSystem::All; - else if (remove == QLatin1String("java")) - mod.removal = TypeSystem::TargetLangAndNativeCode; - else { - m_error = QString::fromLatin1("Bad removal type '%1'").arg(remove); - return false; - } - } - - QString rename = attributes["rename"]; - if (!rename.isEmpty()) { - mod.renamedToName = rename; - mod.modifiers |= Modification::Rename; - } - - QString association = attributes["associated-to"]; - if (!association.isEmpty()) - mod.association = association; - - mod.modifiers |= (convertBoolean(attributes["virtual-slot"], "virtual-slot", false) ? Modification::VirtualSlot : 0); - - m_function_mods << mod; - } - break; - case StackElement::ReplaceDefaultExpression: - if (!(topElement.type & StackElement::ModifyArgument)) { - m_error = "Replace default expression only allowed as child of argument modification"; - return false; - } - - if (attributes["with"].isEmpty()) { - m_error = "Default expression replaced with empty string. Use remove-default-expression instead."; - return false; - } - - m_function_mods.last().argument_mods.last().replaced_default_expression = attributes["with"]; - break; - case StackElement::RemoveDefaultExpression: - m_function_mods.last().argument_mods.last().removed_default_expression = true; - break; - case StackElement::CustomMetaConstructor: - case StackElement::CustomMetaDestructor: - { - CustomFunction *func = new CustomFunction(attributes["name"]); - func->param_name = attributes["param-name"]; - element->value.customFunction = func; - } - break; - case StackElement::ReferenceCount: - { - if (topElement.type != StackElement::ModifyArgument) { - m_error = "reference-count must be child of modify-argument"; - return false; - } - - ReferenceCount rc; - rc.threadSafe = convertBoolean(attributes["thread-safe"], "thread-safe", false); - - static QHash actions; - if (actions.isEmpty()) { - actions["add"] = ReferenceCount::Add; - actions["add-all"] = ReferenceCount::AddAll; - actions["remove"] = ReferenceCount::Remove; - actions["set"] = ReferenceCount::Set; - actions["ignore"] = ReferenceCount::Ignore; - } - rc.action = actions.value(attributes["action"].toLower(), ReferenceCount::Invalid); - - rc.variableName = attributes["variable-name"]; - if (rc.action != ReferenceCount::Ignore && rc.variableName.isEmpty()) { - m_error = "variable-name attribute must be specified"; - return false; - } - - rc.declareVariable = attributes["declare-variable"]; - rc.conditional = attributes["conditional"]; - - static QHash accessRights; - if (accessRights.isEmpty()) { - accessRights["private"] = ReferenceCount::Private; - accessRights["public"] = ReferenceCount::Public; - accessRights["protected"] = ReferenceCount::Protected; - accessRights["friendly"] = ReferenceCount::Friendly; - } - rc.access = accessRights.value(attributes["access"].toLower(), 0); - if (rc.access == 0) { - m_error = "unrecognized access value: " + attributes["access"]; - return false; - } - - if (rc.action == ReferenceCount::Invalid) { - m_error = "unrecognized value for action attribute. supported actions:"; - foreach (QString action, actions.keys()) - m_error += " " + action; - } - - m_function_mods.last().argument_mods.last().referenceCounts.append(rc); - } - break; - case StackElement::InjectCode: - { - if (((topElement.type & StackElement::ComplexTypeEntryMask) == 0) - && (topElement.type != StackElement::ModifyFunction) - && (topElement.type != StackElement::Root)) { - m_error = "wrong parent type for code injection"; - return false; - } - - static QHash languageNames; - if (languageNames.isEmpty()) { - languageNames["java"] = TypeSystem::TargetLangCode; - languageNames["native"] = TypeSystem::NativeCode; - languageNames["shell"] = TypeSystem::ShellCode; - languageNames["shell-declaration"] = TypeSystem::ShellDeclaration; - languageNames["library-initializer"] = TypeSystem::PackageInitializer; - languageNames["destructor-function"] = TypeSystem::DestructorFunction; - languageNames["constructors"] = TypeSystem::Constructors; - languageNames["interface"] = TypeSystem::Interface; - languageNames["pywrap-cpp"] = TypeSystem::PyWrapperCode; - languageNames["pywrap-h"] = TypeSystem::PyWrapperDeclaration; - } - - QString className = attributes["class"].toLower(); - if (!languageNames.contains(className)) { - m_error = QString("Invalid class specifier: '%1'").arg(className); - return false; - } - - - static QHash positionNames; - if (positionNames.isEmpty()) { - positionNames["beginning"] = CodeSnip::Beginning; - positionNames["end"] = CodeSnip::End; - // QtScript - positionNames["prototype-initialization"] = CodeSnip::PrototypeInitialization; - positionNames["constructor-initialization"] = CodeSnip::ConstructorInitialization; - positionNames["constructor"] = CodeSnip::Constructor; - } - - QString position = attributes["position"].toLower(); - if (!positionNames.contains(position)) { - m_error = QString("Invalid position: '%1'").arg(position); - return false; - } - - CodeSnip snip; - snip.language = languageNames[className]; - snip.position = positionNames[position]; - - if (snip.language == TypeSystem::Interface && topElement.type != StackElement::InterfaceTypeEntry) { - m_error = "Interface code injections must be direct child of an interface type entry"; - return false; - } - - if (topElement.type == StackElement::ModifyFunction) { - FunctionModification mod = m_function_mods.last(); - if (snip.language == TypeSystem::ShellDeclaration) { - m_error = "no function implementation in shell declaration in which to inject code"; - return false; - } - - m_function_mods.last().snips << snip; - element->type = StackElement::InjectCodeInFunction; - } else if (topElement.type == StackElement::Root) { - ((TypeSystemTypeEntry *) element->entry)->snips << snip; - - } else if (topElement.type != StackElement::Root) { - m_code_snips << snip; - } - } - break; - case StackElement::Include: - { - QString location = attributes["location"].toLower(); - - static QHash locationNames; - if (locationNames.isEmpty()) { - locationNames["global"] = Include::IncludePath; - locationNames["local"] = Include::LocalPath; - locationNames["java"] = Include::TargetLangImport; - } - - if (!locationNames.contains(location)) { - m_error = QString("Location not recognized: '%1'").arg(location); - return false; - } - - Include::IncludeType loc = locationNames[location]; - Include inc(loc, attributes["file-name"]); - - ComplexTypeEntry *ctype = static_cast(element->entry); - if (topElement.type & StackElement::ComplexTypeEntryMask) { - ctype->setInclude(inc); - } else if (topElement.type == StackElement::ExtraIncludes) { - ctype->addExtraInclude(inc); - } else { - m_error = "Only supported parents are complex types and extra-includes"; - return false; - } - - inc = ctype->include(); - IncludeList lst = ctype->extraIncludes(); - ctype = ctype->designatedInterface(); - if (ctype != 0) { - ctype->setExtraIncludes(lst); - ctype->setInclude(inc); - } - } - break; - case StackElement::Rejection: - { - QString cls = attributes["class"]; - QString function = attributes["function-name"]; - QString field = attributes["field-name"]; - QString enum_ = attributes["enum-name"]; - if (cls == "*" && function == "*" && field == "*" && enum_ == "*") { - m_error = "bad reject entry, neither 'class', 'function-name' nor " - "'field' specified"; - return false; - } - m_database->addRejection(cls, function, field, enum_); - } - break; - case StackElement::Template: - element->value.templateEntry = new TemplateEntry(attributes["name"]); - break; - case StackElement::TemplateInstanceEnum: - if (!(topElement.type & StackElement::CodeSnipMask) && - (topElement.type != StackElement::Template) && - (topElement.type != StackElement::CustomMetaConstructor) && - (topElement.type != StackElement::CustomMetaDestructor) && - (topElement.type != StackElement::ConversionRule)) - { - m_error = "Can only insert templates into code snippets, templates, custom-constructors, custom-destructors or conversion-rule."; - return false; - } - element->value.templateInstance = new TemplateInstance(attributes["name"]); - break; - case StackElement::Replace: - if (topElement.type != StackElement::TemplateInstanceEnum) { - m_error = "Can only insert replace rules into insert-template."; - return false; - } - element->parent->value.templateInstance->addReplaceRule(attributes["from"],attributes["to"]); - break; - default: - break; // nada - }; - } - - current = element.release(); - return true; -} - -TypeDatabase *TypeDatabase::instance() -{ - static TypeDatabase *db = new TypeDatabase(); - return db; -} - -TypeDatabase::TypeDatabase() : m_suppressWarnings(true) -{ - addType(new StringTypeEntry("QString")); - - StringTypeEntry *e = new StringTypeEntry("QLatin1String"); - e->setPreferredConversion(false); - addType(e); - - e = new StringTypeEntry("QStringRef"); - e->setPreferredConversion(false); - addType(e); - - e = new StringTypeEntry("QXmlStreamStringRef"); - e->setPreferredConversion(false); - addType(e); - - addType(new CharTypeEntry("QChar")); - - CharTypeEntry *c = new CharTypeEntry("QLatin1Char"); - c->setPreferredConversion(false); - addType(c); - - { - VariantTypeEntry *qvariant = new VariantTypeEntry("QVariant"); - qvariant->setCodeGeneration(TypeEntry::GenerateNothing); - addType(qvariant); - } - - { - JObjectWrapperTypeEntry *wrapper = new JObjectWrapperTypeEntry("JObjectWrapper"); - wrapper->setCodeGeneration(TypeEntry::GenerateNothing); - addType(wrapper); - } - - addType(new ThreadTypeEntry()); - addType(new VoidTypeEntry()); - - // Predefined containers... - addType(new ContainerTypeEntry("QList", ContainerTypeEntry::ListContainer)); - addType(new ContainerTypeEntry("QStringList", ContainerTypeEntry::StringListContainer)); - addType(new ContainerTypeEntry("QLinkedList", ContainerTypeEntry::LinkedListContainer)); - addType(new ContainerTypeEntry("QVector", ContainerTypeEntry::VectorContainer)); - addType(new ContainerTypeEntry("QStack", ContainerTypeEntry::StackContainer)); - addType(new ContainerTypeEntry("QSet", ContainerTypeEntry::SetContainer)); - addType(new ContainerTypeEntry("QMap", ContainerTypeEntry::MapContainer)); - addType(new ContainerTypeEntry("QHash", ContainerTypeEntry::HashContainer)); - addType(new ContainerTypeEntry("QPair", ContainerTypeEntry::PairContainer)); - addType(new ContainerTypeEntry("QQueue", ContainerTypeEntry::QueueContainer)); - addType(new ContainerTypeEntry("QMultiMap", ContainerTypeEntry::MultiMapContainer)); - - // Custom types... - // ### QtScript: no custom handling of QModelIndex for now -// addType(new QModelIndexTypeEntry()); - - addRemoveFunctionToTemplates(this); -} - -bool TypeDatabase::parseFile(const QString &filename, bool generate) -{ - QFile file(filename); - Q_ASSERT(file.exists()); - QXmlInputSource source(&file); - - int count = m_entries.size(); - - QXmlSimpleReader reader; - Handler handler(this, generate); - - reader.setContentHandler(&handler); - reader.setErrorHandler(&handler); - - bool ok = reader.parse(&source, false); - - int newCount = m_entries.size(); - - ReportHandler::debugSparse(QString::fromLatin1("Parsed: '%1', %2 new entries") - .arg(filename) - .arg(newCount - count)); - - return ok; -} - -QString PrimitiveTypeEntry::javaObjectName() const -{ - static QHash table; - if (table.isEmpty()) { - table["boolean"] = "Boolean"; - table["byte"] = "Byte"; - table["char"] = "Character"; - table["short"] = "Short"; - table["int"] = "Integer"; - table["long"] = "Long"; - table["float"] = "Float"; - table["double"] = "Double"; - } - Q_ASSERT(table.contains(targetLangName())); - return table[targetLangName()]; -} - -ContainerTypeEntry *TypeDatabase::findContainerType(const QString &name) -{ - QString template_name = name; - - int pos = name.indexOf('<'); - if (pos > 0) - template_name = name.left(pos); - - TypeEntry *type_entry = findType(template_name); - if (type_entry && type_entry->isContainer()) - return static_cast(type_entry); - return 0; -} - -PrimitiveTypeEntry *TypeDatabase::findTargetLangPrimitiveType(const QString &java_name) -{ - foreach (QList entries, m_entries.values()) { - foreach (TypeEntry *e, entries) { - if (e && e->isPrimitive()) { - PrimitiveTypeEntry *pe = static_cast(e); - if (pe->targetLangName() == java_name && pe->preferredConversion()) - return pe; - } - } - } - - return 0; -} - -IncludeList TypeDatabase::extraIncludes(const QString &className) -{ - ComplexTypeEntry *typeEntry = findComplexType(className); - if (typeEntry != 0) - return typeEntry->extraIncludes(); - else - return IncludeList(); -} - - - -QString Include::toString() const -{ - if (type == IncludePath) - return "#include <" + name + '>'; - else if (type == LocalPath) - return "#include \"" + name + "\""; - else - return "import " + name + ";"; -} - -QString Modification::accessModifierString() const -{ - if (isPrivate()) return "private"; - if (isProtected()) return "protected"; - if (isPublic()) return "public"; - if (isFriendly()) return "friendly"; - return QString(); -} - -FunctionModificationList ComplexTypeEntry::functionModifications(const QString &signature) const -{ - FunctionModificationList lst; - for (int i=0; ifindType(m_qualifier); - if (te != 0) - return te->targetLangName(); - else - return m_qualifier; -} - -QString EnumTypeEntry::jniName() const -{ - return "jint"; -} - -QString FlagsTypeEntry::jniName() const -{ - return "jint"; -} - -void EnumTypeEntry::addEnumValueRedirection(const QString &rejected, const QString &usedValue) -{ - m_enum_redirections << EnumValueRedirection(rejected, usedValue); -} - -QString EnumTypeEntry::enumValueRedirection(const QString &value) const -{ - for (int i=0; ijavaQualifier() + "." + targetLangName(); -} - - -void TypeDatabase::addRejection(const QString &class_name, const QString &function_name, - const QString &field_name, const QString &enum_name) -{ - TypeRejection r; - r.class_name = class_name; - r.function_name = function_name; - r.field_name = field_name; - r.enum_name = enum_name; - - m_rejections << r; -} - -bool TypeDatabase::isClassRejected(const QString &class_name) -{ - if (!m_rebuild_classes.isEmpty()) - return !m_rebuild_classes.contains(class_name); - - foreach (const TypeRejection &r, m_rejections) - if (r.class_name == class_name && r.function_name == "*" && r.field_name == "*" && r.enum_name == "*") { - return true; - } - return false; -} - -bool TypeDatabase::isEnumRejected(const QString &class_name, const QString &enum_name) -{ - foreach (const TypeRejection &r, m_rejections) { - if (r.enum_name == enum_name - && (r.class_name == class_name || r.class_name == "*")) { - return true; - } - } - - return false; -} - -bool TypeDatabase::isFunctionRejected(const QString &class_name, const QString &function_name) -{ - foreach (const TypeRejection &r, m_rejections) - if (r.function_name == function_name && - (r.class_name == class_name || r.class_name == "*")) - return true; - return false; -} - - -bool TypeDatabase::isFieldRejected(const QString &class_name, const QString &field_name) -{ - foreach (const TypeRejection &r, m_rejections) - if (r.field_name == field_name && - (r.class_name == class_name || r.class_name == "*")) - return true; - return false; -} - -FlagsTypeEntry *TypeDatabase::findFlagsType(const QString &name) const -{ - FlagsTypeEntry *fte = (FlagsTypeEntry *) findType(name); - return fte ? fte : (FlagsTypeEntry *) m_flags_entries.value(name); -} - -QString TypeDatabase::globalNamespaceClassName(const TypeEntry * /*entry*/) { - return QLatin1String("Global"); -} - - -/*! - * The Visual Studio 2002 compiler doesn't support these symbols, - * which our typedefs unforntuatly expand to. - */ -QString fixCppTypeName(const QString &name) -{ - if (name == "long long") return "qint64"; - else if (name == "unsigned long long") return "quint64"; - return name; -} - -QString formattedCodeHelper(QTextStream &s, Indentor &indentor, QStringList &lines) { - bool multilineComment = false; - bool lastEmpty = true; - QString lastLine; - while (!lines.isEmpty()) { - const QString line = lines.takeFirst().trimmed(); - if (line.isEmpty()) { - if (!lastEmpty) - s << endl; - lastEmpty = true; - continue; - } else { - lastEmpty = false; - } - if (line.startsWith("/*")) - multilineComment = true; - - if (multilineComment) { - s << indentor; - if (line.startsWith("*")) - s << " "; - s << line << endl; - if (line.endsWith("*/")) - multilineComment = false; - } else if (line.startsWith("}")) { - return line; - } else if (line.endsWith("}")) { - s << indentor << line << endl; - return 0; - } else if(line.endsWith("{")) { - s << indentor << line << endl; - QString tmp; - { - Indentation indent(indentor); - tmp = formattedCodeHelper(s, indentor, lines); - } - if (!tmp.isNull()) { - s << indentor << tmp << endl; - } - lastLine = tmp; - continue; - } else { - s << indentor; - if (!lastLine.isEmpty() && - !lastLine.endsWith(";") && - !line.startsWith("@") && - !line.startsWith("//") && - !lastLine.startsWith("//") && - !lastLine.endsWith("}") && - !line.startsWith("{")) - s << " "; - s << line << endl; - } - lastLine = line; - } - return 0; -} - - -QTextStream &CodeSnip::formattedCode(QTextStream &s, Indentor &indentor) const -{ - QStringList lst(code().split("\n")); - while (!lst.isEmpty()) { - QString tmp = formattedCodeHelper(s, indentor, lst); - if (!tmp.isNull()) { - s << indentor << tmp << endl; - } - } - s.flush(); - return s; -} - -QString TemplateInstance::expandCode() const{ - TemplateEntry *templateEntry = TypeDatabase::instance()->findTemplate(m_name); - if(templateEntry){ - QString res = templateEntry->code(); - foreach(QString key, replaceRules.keys()){ - res.replace(key, replaceRules[key]); - } - return "// TEMPLATE - " + m_name + " - START" + res + "// TEMPLATE - " + m_name + " - END"; - } - else{ - ReportHandler::warning("insert-template referring to non-existing template '" + m_name + "'"); - } - return QString(); -} - - -QString CodeSnipAbstract::code() const{ - QString res; - foreach(CodeSnipFragment *codeFrag, codeList){ - res.append(codeFrag->code()); - } - return res; -} - -QString CodeSnipFragment::code() const{ - if(m_instance) - return m_instance->expandCode(); - else - return m_code; -} - -QString FunctionModification::toString() const -{ - QString str = signature + QLatin1String("->"); - if (modifiers & AccessModifierMask) { - switch (modifiers & AccessModifierMask) { - case Private: str += QLatin1String("private"); break; - case Protected: str += QLatin1String("protected"); break; - case Public: str += QLatin1String("public"); break; - case Friendly: str += QLatin1String("friendly"); break; - } - } - - if (modifiers & Final) str += QLatin1String("final"); - if (modifiers & NonFinal) str += QLatin1String("non-final"); - - if (modifiers & Readable) str += QLatin1String("readable"); - if (modifiers & Writable) str += QLatin1String("writable"); - - if (modifiers & CodeInjection) { - foreach (CodeSnip s, snips) { - str += QLatin1String("\n//code injection:\n"); - str += s.code(); - } - } - - if (modifiers & Rename) str += QLatin1String("renamed:") + renamedToName; - - if (modifiers & Deprecated) str += QLatin1String("deprecate"); - - if (modifiers & ReplaceExpression) str += QLatin1String("replace-expression"); - - return str; -} - -static void removeFunction(ComplexTypeEntry *e, const char *signature) -{ - FunctionModification mod; - mod.signature = QMetaObject::normalizedSignature(signature); - mod.removal = TypeSystem::All; - - e->addFunctionModification(mod); -} - - - - -static void injectCode(ComplexTypeEntry *e, - const char *signature, - const QByteArray &code, - const ArgumentMap &args) -{ - CodeSnip snip; - snip.language = TypeSystem::NativeCode; - snip.position = CodeSnip::Beginning; - snip.addCode(QString::fromLatin1(code)); - snip.argumentMap = args; - - FunctionModification mod; - mod.signature = QMetaObject::normalizedSignature(signature); - mod.snips << snip; - mod.modifiers = Modification::CodeInjection; - e->addFunctionModification(mod); -} - - -static void addRemoveFunctionToTemplates(TypeDatabase *db) -{ - ContainerTypeEntry *qvector = db->findContainerType(QLatin1String("QVector")); - removeFunction(qvector, "constData() const"); - removeFunction(qvector, "data() const"); - removeFunction(qvector, "data()"); - removeFunction(qvector, "first()"); - removeFunction(qvector, "last()"); - removeFunction(qvector, "operator[](int)"); - removeFunction(qvector, "operator[](int) const"); - removeFunction(qvector, "operator=(QVector)"); - - ContainerTypeEntry *qlist = db->findContainerType(QLatin1String("QList")); - removeFunction(qlist, "constData() const"); - removeFunction(qlist, "data() const"); - removeFunction(qlist, "data()"); - removeFunction(qlist, "back()"); - removeFunction(qlist, "front()"); - removeFunction(qlist, "first()"); - removeFunction(qlist, "last()"); - removeFunction(qlist, "operator[](int)"); - removeFunction(qlist, "operator[](int) const"); - removeFunction(qlist, "operator=(QList)"); - - ContainerTypeEntry *qqueue = db->findContainerType(QLatin1String("QQueue")); - removeFunction(qqueue, "head() const"); - - // QtScript: The next part is Java-specific, skip it for now... - return; - - ArgumentMap args1; - args1[1] = QLatin1String("$1"); - ArgumentMap args2 = args1; - args2[2] = QLatin1String("$2"); - - QByteArray code = - "\nif ($1 >= __qt_this->size() || $1 < 0) {" - "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," - "\n QString::fromLatin1(\"Accessing container of size %3 at %4\")" - "\n .arg(__qt_this->size()).arg($1).toLatin1());" - "\n return;" - "\n}"; - - QByteArray code_with_return = QByteArray(code).replace("return;", "return 0;"); - - QByteArray code_index_length = - "\nif ($1 < 0 || $2 < 0 || ($1 + $2) >= __qt_this->size()) {" - "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," - "\n QString::fromLatin1(\"Accessing container of size %3 from %4 to %5\")" - "\n .arg(__qt_this->size()).arg($1).arg($1+$2).toLatin1());" - "\n return;" - "\n}"; - - QByteArray code_non_empty = - "\nif (__qt_this->isEmpty()) {" - "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," - "\n QString::fromLatin1(\"Accessing empty container...\").toLatin1());" - "\n return;" - "\n}"; - - QByteArray code_two_indices = - "\nif ($1 < 0 || $2 < 0 || $1 >= __qt_this->size() || $2 >= __qt_this->size()) {" - "\n __jni_env->ThrowNew(__jni_env->FindClass(\"java/lang/IndexOutOfBoundsException\")," - "\n QString::fromLatin1(\"Accessing container of size %3 from %4 to %5\")" - "\n .arg(__qt_this->size()).arg($1).arg($1+$2).toLatin1());" - "\n return;" - "\n}"; - - { // QVector safty... - injectCode(qvector, "at(int) const", code_with_return, args1); - injectCode(qvector, "replace(int,T)", code, args1); - injectCode(qvector, "remove(int)", code, args1); - injectCode(qvector, "remove(int, int)", code_index_length, args2); - injectCode(qvector, "pop_back()", code_non_empty, ArgumentMap()); - injectCode(qvector, "pop_front()", code_non_empty, ArgumentMap()); - } - - { // QList safty... - injectCode(qlist, "at(int) const", code_with_return, args1); - injectCode(qlist, "replace(int, T)", code, args1); - injectCode(qlist, "pop_back()", code_non_empty, ArgumentMap()); - injectCode(qlist, "pop_front()", code_non_empty, ArgumentMap()); - injectCode(qlist, "swap(int, int)", code_two_indices, args2); - injectCode(qlist, "move(int, int)", code_two_indices, args2); - injectCode(qlist, "removeAt(int)", code, args1); - injectCode(qlist, "takeAt(int)", code_with_return, args1); - } - -} diff --git a/3rdparty/pythonqt/generator/typesystem.h b/3rdparty/pythonqt/generator/typesystem.h deleted file mode 100644 index 4c051026e..000000000 --- a/3rdparty/pythonqt/generator/typesystem.h +++ /dev/null @@ -1,1225 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) -** -** This file is part of the Qt Script Generator project on Qt Labs. -** -** $QT_BEGIN_LICENSE:LGPL$ -** No Commercial Usage -** This file contains pre-release code and may not be distributed. -** You may use this file in accordance with the terms and conditions -** contained in the Technology Preview License Agreement accompanying -** this package. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** If you have questions regarding the use of this file, please contact -** Nokia at qt-info@nokia.com. -** -** -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef TYPESYSTEM_H -#define TYPESYSTEM_H - -#include -#include -#include -#include -#include - -class Indentor; - -class AbstractMetaType; -class QTextStream; - -class EnumTypeEntry; -class FlagsTypeEntry; - -extern QString strings_Object; -extern QString strings_String; -extern QString strings_Thread; -extern QString strings_char; -extern QString strings_java_lang; -extern QString strings_jchar; -extern QString strings_jobject; - -struct Include -{ - enum IncludeType { - IncludePath, - LocalPath, - TargetLangImport - }; - - Include() : type(IncludePath) { } - Include(IncludeType t, const QString &nam) : type(t), name(nam) { }; - - bool isValid() { return !name.isEmpty(); } - - IncludeType type; - QString name; - - QString toString() const; - - bool operator<(const Include &other) const { return name < other.name; } -}; -typedef QList IncludeList; - -typedef QMap ArgumentMap; - -class TemplateInstance; - -namespace TypeSystem { - enum Language { - NoLanguage = 0x0000, - TargetLangCode = 0x0001, - NativeCode = 0x0002, - ShellCode = 0x0004, - ShellDeclaration = 0x0008, - PackageInitializer = 0x0010, - DestructorFunction = 0x0020, - Constructors = 0x0040, - Interface = 0x0080, - PyWrapperCode = 0x0100, - PyWrapperDeclaration = 0x0200, - - // masks - All = TargetLangCode - | NativeCode - | ShellCode - | ShellDeclaration - | PackageInitializer - | Constructors - | Interface - | DestructorFunction, - - JavaAndNativeCode = TargetLangCode | NativeCode, - TargetLangAndNativeCode = TargetLangCode | NativeCode - }; - - enum Ownership { - InvalidOwnership, - DefaultOwnership, - TargetLangOwnership, - CppOwnership - }; -}; - -struct ReferenceCount -{ - ReferenceCount() : threadSafe(false), access(Public) { } - enum Action { // 0x01 - 0xff - Invalid = 0x00, - Add = 0x01, - AddAll = 0x02, - Remove = 0x04, - Set = 0x08, - Ignore = 0x10, - - ActionsMask = 0xff, - - Padding = 0xffffffff - }; - - enum Flag { // 0x100 - 0xf00 - ThreadSafe = 0x100, - Static = 0x200, - DeclareVariable = 0x400, - - FlagsMask = 0xf00 - }; - - enum Access { // 0x1000 - 0xf000 - Private = 0x1000, - Protected = 0x2000, - Friendly = 0x3000, - Public = 0x4000, - - AccessMask = 0xf000 - }; - - Action action; - QString variableName; - QString conditional; - QString declareVariable; - - uint threadSafe : 1; - - uint access; -}; - -class CodeSnipFragment{ - private: - const QString m_code; - TemplateInstance *m_instance; - - public: - CodeSnipFragment(const QString &code) - : m_code(code), - m_instance(0) - {} - - CodeSnipFragment(TemplateInstance *instance) - : m_instance(instance) - {} - - QString code() const; -}; - -class CodeSnipAbstract{ -public: - QString code() const; - - void addCode(const QString &code){ - codeList.append(new CodeSnipFragment(code)); - } - - void addTemplateInstance(TemplateInstance *ti){ - codeList.append(new CodeSnipFragment(ti)); - } - - QList codeList; -}; - -class CustomFunction : public CodeSnipAbstract -{ - public: - CustomFunction(const QString &n = QString()) : name(n) { } - - QString name; - QString param_name; -}; - -class TemplateEntry : public CodeSnipAbstract -{ -public: - TemplateEntry(const QString &name) - : m_name(name) - { - }; - - QString name() const { - return m_name; - }; - -private: - QString m_name; -}; - -typedef QHash TemplateEntryHash; - -class TemplateInstance -{ - public: - TemplateInstance(const QString &name) - : m_name(name) - {} - - void addReplaceRule(const QString &name, const QString &value){ - replaceRules[name]=value; - } - - QString expandCode() const; - - QString name() const { - return m_name; - } - - private: - const QString m_name; - QHash replaceRules; -}; - - -class CodeSnip : public CodeSnipAbstract -{ - public: - enum Position { - Beginning, - End, - AfterThis, - // QtScript - PrototypeInitialization, - ConstructorInitialization, - Constructor - }; - - CodeSnip() : language(TypeSystem::TargetLangCode) { } - CodeSnip(TypeSystem::Language lang) : language(lang) { } - - // Very simple, easy to make code ugly if you try - QTextStream &formattedCode(QTextStream &s, Indentor &indentor) const; - - TypeSystem::Language language; - Position position; - ArgumentMap argumentMap; -}; -typedef QList CodeSnipList; - -struct ArgumentModification -{ - ArgumentModification(int idx) : removed_default_expression(false), removed(false), no_null_pointers(false), index(idx) - {} - - // Should the default expression be removed? - uint removed_default_expression : 1; - uint removed : 1; - uint no_null_pointers : 1; - uint reset_after_use : 1; - - // The index of this argument - int index; - - // Reference count flags for this argument - QList referenceCounts; - - // The text given for the new type of the argument - QString modified_type; - - QString replace_value; - - // The code to be used to construct a return value when no_null_pointers is true and - // the returned value is null. If no_null_pointers is true and this string is - // empty, then the base class implementation will be used (or a default construction - // if there is no implementation) - QString null_pointer_default_value; - - // The text of the new default expression of the argument - QString replaced_default_expression; - - // The new definition of ownership for a specific argument - QHash ownerships; - - // Different conversion rules - CodeSnipList conversion_rules; -}; - -struct Modification { - enum Modifiers { - Private = 0x0001, - Protected = 0x0002, - Public = 0x0003, - Friendly = 0x0004, - AccessModifierMask = 0x000f, - - Final = 0x0010, - NonFinal = 0x0020, - FinalMask = Final | NonFinal, - - Readable = 0x0100, - Writable = 0x0200, - - CodeInjection = 0x1000, - Rename = 0x2000, - Deprecated = 0x4000, - ReplaceExpression = 0x8000, - VirtualSlot = 0x10000 | NonFinal - }; - - Modification() : modifiers(0) { } - - bool isAccessModifier() const { return modifiers & AccessModifierMask; } - Modifiers accessModifier() const { return Modifiers(modifiers & AccessModifierMask); } - bool isPrivate() const { return accessModifier() == Private; } - bool isProtected() const { return accessModifier() == Protected; } - bool isPublic() const { return accessModifier() == Public; } - bool isFriendly() const { return accessModifier() == Friendly; } - bool isFinal() const { return modifiers & Final; } - bool isNonFinal() const { return modifiers & NonFinal; } - bool isVirtualSlot() const { return (modifiers & VirtualSlot) == VirtualSlot; } - QString accessModifierString() const; - - bool isDeprecated() const { return modifiers & Deprecated; } - - void setRenamedTo(const QString &name) { renamedToName = name; } - QString renamedTo() const { return renamedToName; } - bool isRenameModifier() const { return modifiers & Rename; } - - uint modifiers; - QString renamedToName; -}; - -struct FunctionModification: public Modification -{ - FunctionModification() : removal(TypeSystem::NoLanguage) { } - - bool isCodeInjection() const { return modifiers & CodeInjection; } - bool isRemoveModifier() const { return removal != TypeSystem::NoLanguage; } - - QString toString() const; - - QString signature; - QString association; - CodeSnipList snips; - TypeSystem::Language removal; - - QList argument_mods; -}; -typedef QList FunctionModificationList; - -struct FieldModification: public Modification -{ - bool isReadable() const { return modifiers & Readable; } - bool isWritable() const { return modifiers & Writable; } - - QString name; -}; -typedef QList FieldModificationList; - -struct ExpensePolicy { - ExpensePolicy() : limit(-1) { } - int limit; - QString cost; - bool isValid() const { return limit >= 0; } -}; - -class InterfaceTypeEntry; -class ObjectTypeEntry; - -class TypeEntry -{ -public: - enum Type { - PrimitiveType, - VoidType, - FlagsType, - EnumType, - TemplateArgumentType, - ThreadType, - BasicValueType, - StringType, - ContainerType, - InterfaceType, - ObjectType, - NamespaceType, - VariantType, - JObjectWrapperType, - CharType, - ArrayType, - TypeSystemType, - CustomType, - }; - - enum CodeGeneration { - GenerateTargetLang = 0x0001, - GenerateCpp = 0x0002, - GenerateForSubclass = 0x0004, - - GenerateNothing = 0, - GenerateAll = 0xffff, - GenerateCode = GenerateTargetLang | GenerateCpp - }; - - TypeEntry(const QString &name, Type t) - : m_name(name), - m_type(t), - m_code_generation(GenerateAll), - m_preferred_conversion(true) - { - }; - - virtual ~TypeEntry() { } - - Type type() const { return m_type; } - bool isPrimitive() const { return m_type == PrimitiveType; } - bool isEnum() const { return m_type == EnumType; } - bool isFlags() const { return m_type == FlagsType; } - bool isInterface() const { return m_type == InterfaceType; } - bool isObject() const { return m_type == ObjectType; } - bool isString() const { return m_type == StringType; } - bool isChar() const { return m_type == CharType; } - bool isNamespace() const { return m_type == NamespaceType; } - bool isContainer() const { return m_type == ContainerType; } - bool isVariant() const { return m_type == VariantType; } - bool isJObjectWrapper() const { return m_type == JObjectWrapperType; } - bool isArray() const { return m_type == ArrayType; } - bool isTemplateArgument() const { return m_type == TemplateArgumentType; } - bool isVoid() const { return m_type == VoidType; } - bool isThread() const { return m_type == ThreadType; } - bool isCustom() const { return m_type == CustomType; } - bool isBasicValue() const { return m_type == BasicValueType; } - bool isTypeSystem() const { return m_type == TypeSystemType; } - - virtual bool preferredConversion() const { return m_preferred_conversion; } - virtual void setPreferredConversion(bool b) { m_preferred_conversion = b; } - - // The type's name in C++, fully qualified - QString name() const { return m_name; } - - uint codeGeneration() const { return m_code_generation; } - void setCodeGeneration(uint cg) { m_code_generation = cg; } - - virtual QString qualifiedCppName() const { return m_name; } - - // Its type's name in JNI - virtual QString jniName() const { return m_name; } - - // The type's name in TargetLang - virtual QString targetLangName() const { return m_name; } - - // The type to lookup when converting to TargetLang - virtual QString lookupName() const { return targetLangName(); } - - // The package - virtual QString javaPackage() const { return QString(); } - - virtual QString qualifiedTargetLangName() const { - QString pkg = javaPackage(); - if (pkg.isEmpty()) return targetLangName(); - return pkg + '.' + targetLangName(); - } - - virtual InterfaceTypeEntry *designatedInterface() const { return 0; } - - void setCustomConstructor(const CustomFunction &func) { m_customConstructor = func; } - CustomFunction customConstructor() const { return m_customConstructor; } - - void setCustomDestructor(const CustomFunction &func) { m_customDestructor = func; } - CustomFunction customDestructor() const { return m_customDestructor; } - - virtual bool isValue() const { return false; } - virtual bool isComplex() const { return false; } - - virtual bool isNativeIdBased() const { return false; } - -private: - QString m_name; - Type m_type; - uint m_code_generation; - CustomFunction m_customConstructor; - CustomFunction m_customDestructor; - bool m_preferred_conversion; -}; -typedef QHash > TypeEntryHash; -typedef QHash SingleTypeEntryHash; - - -class TypeSystemTypeEntry : public TypeEntry -{ -public: - TypeSystemTypeEntry(const QString &name) - : TypeEntry(name, TypeSystemType) - { - }; - - QList snips; -}; - - -class ThreadTypeEntry : public TypeEntry -{ -public: - ThreadTypeEntry() : TypeEntry("QThread", ThreadType) { setCodeGeneration(GenerateNothing); } - - QString jniName() const { return strings_jobject; } - QString targetLangName() const { return strings_Thread; } - QString javaPackage() const { return strings_java_lang; } -}; - -class VoidTypeEntry : public TypeEntry -{ -public: - VoidTypeEntry() : TypeEntry("void", VoidType) { } -}; - -class TemplateArgumentEntry : public TypeEntry -{ -public: - TemplateArgumentEntry(const QString &name) - : TypeEntry(name, TemplateArgumentType), m_ordinal(0) - { - } - - int ordinal() const { return m_ordinal; } - void setOrdinal(int o) { m_ordinal = o; } - -private: - int m_ordinal; -}; - -class ArrayTypeEntry : public TypeEntry -{ -public: - ArrayTypeEntry(const TypeEntry *nested_type) : TypeEntry("Array", ArrayType), m_nested_type(nested_type) - { - Q_ASSERT(m_nested_type); - } - - void setNestedTypeEntry(TypeEntry *nested) { m_nested_type = nested; } - const TypeEntry *nestedTypeEntry() const { return m_nested_type; } - - QString targetLangName() const { return m_nested_type->targetLangName() + "[]"; } - QString jniName() const - { - if (m_nested_type->isPrimitive()) - return m_nested_type->jniName() + "Array"; - else - return "jobjectArray"; - } - -private: - const TypeEntry *m_nested_type; -}; - - -class PrimitiveTypeEntry : public TypeEntry -{ -public: - PrimitiveTypeEntry(const QString &name) - : TypeEntry(name, PrimitiveType), m_preferred_conversion(true), m_preferred_java_type(true) - { - } - - QString targetLangName() const { return m_java_name; } - void setTargetLangName(const QString &targetLangName) { m_java_name = targetLangName; } - - QString jniName() const { return m_jni_name; } - void setJniName(const QString &jniName) { m_jni_name = jniName; } - - QString javaObjectFullName() const { return javaObjectPackage() + "." + javaObjectName(); } - QString javaObjectName() const; - QString javaObjectPackage() const { return strings_java_lang; } - - virtual bool preferredConversion() const { return m_preferred_conversion; } - virtual void setPreferredConversion(bool b) { m_preferred_conversion = b; } - - virtual bool preferredTargetLangType() const { return m_preferred_java_type; } - virtual void setPreferredTargetLangType(bool b) { m_preferred_java_type = b; } - -private: - QString m_java_name; - QString m_jni_name; - uint m_preferred_conversion : 1; - uint m_preferred_java_type : 1; -}; - - - - -struct EnumValueRedirection -{ - EnumValueRedirection(const QString &rej, const QString &us) - : rejected(rej), - used(us) - { - } - QString rejected; - QString used; -}; - -class EnumTypeEntry : public TypeEntry -{ -public: - EnumTypeEntry(const QString &nspace, const QString &enumName) - : TypeEntry(nspace.isEmpty() ? enumName : nspace + QLatin1String("::") + enumName, - EnumType), - m_flags(0), - m_extensible(false) - { - m_qualifier = nspace; - m_java_name = enumName; - } - - QString javaPackage() const { return m_package_name; } - void setTargetLangPackage(const QString &package) { m_package_name = package; } - - QString targetLangName() const { return m_java_name; } - QString javaQualifier() const; - QString qualifiedTargetLangName() const { - QString pkg = javaPackage(); - if (pkg.isEmpty()) return javaQualifier() + '.' + targetLangName(); - return pkg + '.' + javaQualifier() + '.' + targetLangName(); - } - - QString jniName() const; - - Include include() const { return m_include; } - void setInclude(const Include &inc) { m_include = inc; } - - QString qualifier() const { return m_qualifier; } - void setQualifier(const QString &q) { m_qualifier = q; } - - virtual bool preferredConversion() const { return false; } - - bool isBoundsChecked() const { return m_lower_bound.isEmpty() && m_upper_bound.isEmpty(); } - - QString upperBound() const { return m_upper_bound; } - void setUpperBound(const QString &bound) { m_upper_bound = bound; } - - QString lowerBound() const { return m_lower_bound; } - void setLowerBound(const QString &bound) { m_lower_bound = bound; } - - void setFlags(FlagsTypeEntry *flags) { m_flags = flags; } - FlagsTypeEntry *flags() const { return m_flags; } - - bool isExtensible() const { return m_extensible; } - void setExtensible(bool is) { m_extensible = is; } - - bool isEnumValueRejected(const QString &name) { return m_rejected_enums.contains(name); } - void addEnumValueRejection(const QString &name) { m_rejected_enums << name; } - QStringList enumValueRejections() const { return m_rejected_enums; } - - void addEnumValueRedirection(const QString &rejected, const QString &usedValue); - QString enumValueRedirection(const QString &value) const; - - bool forceInteger() const { return m_force_integer; } - void setForceInteger(bool force) { m_force_integer = force; } - -private: - Include m_include; - QString m_package_name; - QString m_qualifier; - QString m_java_name; - - QString m_lower_bound; - QString m_upper_bound; - - QStringList m_rejected_enums; - QList m_enum_redirections; - - FlagsTypeEntry *m_flags; - - bool m_extensible; - bool m_force_integer; -}; - -class FlagsTypeEntry : public TypeEntry -{ -public: - FlagsTypeEntry(const QString &name) : TypeEntry(name, FlagsType), m_enum(0) - { - } - - QString qualifiedTargetLangName() const; - QString targetLangName() const { return m_java_name; } - QString jniName() const; - virtual bool preferredConversion() const { return false; } - - QString originalName() const { return m_original_name; } - void setOriginalName(const QString &s) { m_original_name = s; } - - QString flagsName() const { return m_java_name; } - void setFlagsName(const QString &name) { m_java_name = name; } - - bool forceInteger() const { return m_enum->forceInteger(); } - - EnumTypeEntry *originator() const { return m_enum; } - void setOriginator(EnumTypeEntry *e) { m_enum = e; } - - QString javaPackage() const { return m_enum->javaPackage(); } - -private: - QString m_original_name; - QString m_java_name; - EnumTypeEntry *m_enum; -}; - - -class ComplexTypeEntry : public TypeEntry -{ -public: - enum TypeFlag { - ForceAbstract = 0x1, - DeleteInMainThread = 0x2, - Deprecated = 0x4 - }; - typedef QFlags TypeFlags; - - ComplexTypeEntry(const QString &name, Type t) - : TypeEntry(QString(name).replace("::", "_"), t), - m_qualified_cpp_name(name), - m_qobject(false), - m_polymorphic_base(false), - m_generic_class(false), - m_type_flags(0) - { - Include inc; - inc.name = "QVariant"; - inc.type = Include::IncludePath; - - addExtraInclude(inc); - } - - bool isComplex() const { return true; } - - IncludeList extraIncludes() const { return m_extra_includes; } - void setExtraIncludes(const IncludeList &includes) { m_extra_includes = includes; } - void addExtraInclude(const Include &include) - { - if (!m_includes_used.value(include.name, false)) { - m_extra_includes << include; - m_includes_used[include.name] = true; - } - } - - ComplexTypeEntry *copy() const - { - ComplexTypeEntry *centry = new ComplexTypeEntry(name(), type()); - centry->setInclude(include()); - centry->setExtraIncludes(extraIncludes()); - centry->setFunctionModifications(functionModifications()); - centry->setFieldModifications(fieldModifications()); - centry->setQObject(isQObject()); - centry->setDefaultSuperclass(defaultSuperclass()); - centry->setCodeSnips(codeSnips()); - centry->setTargetLangPackage(javaPackage()); - - return centry; - } - - void setLookupName(const QString &name) - { - m_lookup_name = name; - } - - virtual QString lookupName() const - { - return m_lookup_name.isEmpty() ? targetLangName() : m_lookup_name; - } - - QString jniName() const { return strings_jobject; } - - - Include include() const { return m_include; } - void setInclude(const Include &inc) { m_include = inc; } - - void setTypeFlags(TypeFlags flags) - { - m_type_flags = flags; - } - - TypeFlags typeFlags() const - { - return m_type_flags; - } - - CodeSnipList codeSnips() const { return m_code_snips; } - void setCodeSnips(const CodeSnipList &codeSnips) { m_code_snips = codeSnips; } - void addCodeSnip(const CodeSnip &codeSnip) { m_code_snips << codeSnip; } - - FunctionModificationList functionModifications() const { return m_function_mods; } - void setFunctionModifications(const FunctionModificationList &functionModifications) { - m_function_mods = functionModifications; - } - void addFunctionModification(const FunctionModification &functionModification) { - m_function_mods << functionModification; - } - FunctionModificationList functionModifications(const QString &signature) const; - - FieldModification fieldModification(const QString &name) const; - void setFieldModifications(const FieldModificationList &mods) { m_field_mods = mods; } - FieldModificationList fieldModifications() const { return m_field_mods; } - - QString javaPackage() const { return m_package; } - void setTargetLangPackage(const QString &package) { m_package = package; } - - bool isQObject() const { return m_qobject; } - void setQObject(bool qobject) { m_qobject = qobject; } - - QString defaultSuperclass() const { return m_default_superclass; } - void setDefaultSuperclass(const QString &sc) { m_default_superclass = sc; } - - virtual QString qualifiedCppName() const { return m_qualified_cpp_name; } - - - void setIsPolymorphicBase(bool on) - { - m_polymorphic_base = on; - } - bool isPolymorphicBase() const { return m_polymorphic_base; } - - void setPolymorphicIdValue(const QString &value) - { - m_polymorphic_id_value = value; - } - QString polymorphicIdValue() const { return m_polymorphic_id_value; } - - void setExpensePolicy(const ExpensePolicy &policy) { m_expense_policy = policy; } - const ExpensePolicy &expensePolicy() const { return m_expense_policy; } - - QString targetType() const { return m_target_type; } - void setTargetType(const QString &code) { m_target_type = code; } - - QString targetLangName() const { return m_java_name.isEmpty() - ? TypeEntry::targetLangName() - : m_java_name; - } - void setTargetLangName(const QString &name) { m_java_name = name; } - - bool isGenericClass() const { return m_generic_class; } - void setGenericClass(bool isGeneric) { m_generic_class = isGeneric; } - -private: - IncludeList m_extra_includes; - Include m_include; - QHash m_includes_used; - FunctionModificationList m_function_mods; - FieldModificationList m_field_mods; - CodeSnipList m_code_snips; - QString m_package; - QString m_default_superclass; - QString m_qualified_cpp_name; - QString m_java_name; - - uint m_qobject : 1; - uint m_polymorphic_base : 1; - uint m_generic_class : 1; - - QString m_polymorphic_id_value; - QString m_lookup_name; - QString m_target_type; - ExpensePolicy m_expense_policy; - TypeFlags m_type_flags; -}; - -class ContainerTypeEntry : public ComplexTypeEntry -{ -public: - enum Type { - NoContainer, - ListContainer, - StringListContainer, - LinkedListContainer, - VectorContainer, - StackContainer, - QueueContainer, - SetContainer, - MapContainer, - MultiMapContainer, - HashContainer, - MultiHashContainer, - PairContainer, - }; - - ContainerTypeEntry(const QString &name, Type type) - : ComplexTypeEntry(name, ContainerType) - { - m_type = type; - setCodeGeneration(GenerateForSubclass); - } - - Type type() const { return m_type; } - QString targetLangName() const; - QString javaPackage() const; - QString qualifiedCppName() const; - -private: - Type m_type; -}; - - -class NamespaceTypeEntry : public ComplexTypeEntry -{ -public: - NamespaceTypeEntry(const QString &name) : ComplexTypeEntry(name, NamespaceType) { } -}; - - -class ValueTypeEntry : public ComplexTypeEntry -{ -public: - ValueTypeEntry(const QString &name) : ComplexTypeEntry(name, BasicValueType) { } - - bool isValue() const { return true; } - - virtual bool isNativeIdBased() const { return true; } - -protected: - ValueTypeEntry(const QString &name, Type t) : ComplexTypeEntry(name, t) { } -}; - - -class StringTypeEntry : public ValueTypeEntry -{ -public: - StringTypeEntry(const QString &name) - : ValueTypeEntry(name, StringType) - { - setCodeGeneration(GenerateNothing); - } - - QString jniName() const { return strings_jobject; } - QString targetLangName() const { return strings_String; } - QString javaPackage() const { return strings_java_lang; } - - virtual bool isNativeIdBased() const { return false; } -}; - -class CharTypeEntry : public ValueTypeEntry -{ -public: - CharTypeEntry(const QString &name) : ValueTypeEntry(name, CharType) - { - setCodeGeneration(GenerateNothing); - } - - QString jniName() const { return strings_jchar; } - QString targetLangName() const { return strings_char; } - QString javaPackage() const { return QString(); } - - virtual bool isNativeIdBased() const { return false; } -}; - -class JObjectWrapperTypeEntry: public ValueTypeEntry -{ -public: - JObjectWrapperTypeEntry(const QString &name) : ValueTypeEntry(name, JObjectWrapperType) { } - - QString jniName() const { return strings_jobject; } - QString targetLangName() const { return strings_Object; } - QString javaPackage() const { return strings_java_lang; } - - bool isNativeIdBased() const { return false; } -}; - -class VariantTypeEntry: public ValueTypeEntry -{ -public: - VariantTypeEntry(const QString &name) : ValueTypeEntry(name, VariantType) { } - - QString jniName() const { return strings_jobject; } - QString targetLangName() const { return strings_Object; } - QString javaPackage() const { return strings_java_lang; } - - virtual bool isNativeIdBased() const { return false; } -}; - - -class InterfaceTypeEntry : public ComplexTypeEntry -{ -public: - InterfaceTypeEntry(const QString &name) - : ComplexTypeEntry(name, InterfaceType) - { - } - - static QString interfaceName(const QString &name) { - return name + "Interface"; - } - - ObjectTypeEntry *origin() const { return m_origin; } - void setOrigin(ObjectTypeEntry *origin) { m_origin = origin; } - - virtual bool isNativeIdBased() const { return true; } - virtual QString qualifiedCppName() const { - return ComplexTypeEntry::qualifiedCppName().left(ComplexTypeEntry::qualifiedCppName().length() - interfaceName("").length()); - } - -private: - ObjectTypeEntry *m_origin; -}; - - -class ObjectTypeEntry : public ComplexTypeEntry -{ -public: - ObjectTypeEntry(const QString &name) - : ComplexTypeEntry(name, ObjectType), m_interface(0) - { - } - - InterfaceTypeEntry *designatedInterface() const { return m_interface; } - void setDesignatedInterface(InterfaceTypeEntry *entry) { m_interface = entry; } - - virtual bool isNativeIdBased() const { return true; } - -private: - InterfaceTypeEntry *m_interface; -}; - -class CustomTypeEntry : public ComplexTypeEntry -{ -public: - CustomTypeEntry(const QString &name) : ComplexTypeEntry(name, CustomType) { } - - virtual void generateCppJavaToQt(QTextStream &s, - const AbstractMetaType *java_type, - const QString &env_name, - const QString &qt_name, - const QString &java_name) const = 0; - - virtual void generateCppQtToJava(QTextStream &s, - const AbstractMetaType *java_type, - const QString &env_name, - const QString &qt_name, - const QString &java_name) const = 0; -}; - -struct TypeRejection -{ - QString class_name; - QString function_name; - QString field_name; - QString enum_name; -}; - -class TypeDatabase -{ -public: - TypeDatabase(); - - static TypeDatabase *instance(); - - QList extraIncludes(const QString &className); - - inline PrimitiveTypeEntry *findPrimitiveType(const QString &name); - inline ComplexTypeEntry *findComplexType(const QString &name); - inline ObjectTypeEntry *findObjectType(const QString &name); - inline NamespaceTypeEntry *findNamespaceType(const QString &name); - ContainerTypeEntry *findContainerType(const QString &name); - - TypeEntry *findType(const QString &name) const { - QList entries = findTypes(name); - foreach (TypeEntry *entry, entries) { - if (entry != 0 && - (!entry->isPrimitive() || static_cast(entry)->preferredTargetLangType())) { - return entry; - } - } - return 0; - } - QList findTypes(const QString &name) const { return m_entries.value(name); } - TypeEntryHash allEntries() { return m_entries; } - SingleTypeEntryHash entries() { - TypeEntryHash entries = allEntries(); - - SingleTypeEntryHash returned; - QList keys = entries.keys(); - - foreach(QString key, keys) { - returned[key] = findType(key); - } - - return returned; - } - - PrimitiveTypeEntry *findTargetLangPrimitiveType(const QString &java_name); - - void addRejection(const QString &class_name, const QString &function_name, - const QString &field_name, const QString &enum_name); - bool isClassRejected(const QString &class_name); - bool isFunctionRejected(const QString &class_name, const QString &function_name); - bool isFieldRejected(const QString &class_name, const QString &field_name); - bool isEnumRejected(const QString &class_name, const QString &enum_name); - - void addType(TypeEntry *e) { m_entries[e->qualifiedCppName()].append(e); } - - SingleTypeEntryHash flagsEntries() const { return m_flags_entries; } - FlagsTypeEntry *findFlagsType(const QString &name) const; - void addFlagsType(FlagsTypeEntry *fte) { m_flags_entries[fte->originalName()] = fte; } - - TemplateEntry *findTemplate(const QString &name) { return m_templates[name]; } - void addTemplate(TemplateEntry *t) { m_templates[t->name()] = t; } - - void setSuppressWarnings(bool on) { m_suppressWarnings = on; } - void addSuppressedWarning(const QString &s) - { - m_suppressedWarnings.append(s); - } - - bool isSuppressedWarning(const QString &s) - { - if (!m_suppressWarnings) - return false; - - foreach (const QString &_warning, m_suppressedWarnings) { - QString warning(QString(_warning).replace("\\*", "&place_holder_for_asterisk;")); - - QStringList segs = warning.split("*", QString::SkipEmptyParts); - if (segs.size() == 0) - continue ; - - int i = 0; - int pos = s.indexOf(QString(segs.at(i++)).replace("&place_holder_for_asterisk;", "*")); - //qDebug() << "s == " << s << ", warning == " << segs; - while (pos != -1) { - if (i == segs.size()) - return true; - pos = s.indexOf(QString(segs.at(i++)).replace("&place_holder_for_asterisk;", "*"), pos); - } - } - - return false; - } - - void setRebuildClasses(const QStringList &cls) { m_rebuild_classes = cls; } - - static QString globalNamespaceClassName(const TypeEntry *te); - QString filename() const { return "typesystem.txt"; } - - bool parseFile(const QString &filename, bool generate = true); - -private: - bool m_suppressWarnings; - TypeEntryHash m_entries; - SingleTypeEntryHash m_flags_entries; - TemplateEntryHash m_templates; - QStringList m_suppressedWarnings; - - QList m_rejections; - QStringList m_rebuild_classes; -}; - -inline PrimitiveTypeEntry *TypeDatabase::findPrimitiveType(const QString &name) -{ - QList entries = findTypes(name); - - foreach (TypeEntry *entry, entries) { - if (entry != 0 && entry->isPrimitive() && static_cast(entry)->preferredTargetLangType()) - return static_cast(entry); - } - - return 0; -} - -inline ComplexTypeEntry *TypeDatabase::findComplexType(const QString &name) -{ - TypeEntry *entry = findType(name); - if (entry != 0 && entry->isComplex()) - return static_cast(entry); - else - return 0; -} - -inline ObjectTypeEntry *TypeDatabase::findObjectType(const QString &name) -{ - TypeEntry *entry = findType(name); - if (entry != 0 && entry->isObject()) - return static_cast(entry); - else - return 0; -} - -inline NamespaceTypeEntry *TypeDatabase::findNamespaceType(const QString &name) -{ - TypeEntry *entry = findType(name); - if (entry != 0 && entry->isNamespace()) - return static_cast(entry); - else - return 0; -} - -QString fixCppTypeName(const QString &name); - -#endif // TYPESYSTEM_H diff --git a/3rdparty/pythonqt/generator/typesystem_core.xml b/3rdparty/pythonqt/generator/typesystem_core.xml deleted file mode 100644 index 33ed74e09..000000000 --- a/3rdparty/pythonqt/generator/typesystem_core.xml +++ /dev/null @@ -1,2483 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Q_DECLARE_METATYPE(QScriptValue) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - QScriptValue %out%; - if (!__ok) - %out% = context->engine()->nullValue(); - else - %out% = QScriptValue(context->engine(), double(%in%)).toObject(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); - - - - - - - - QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PyObject* data(QByteArray* b) { - if (b->data()) { - return PyString_FromStringAndSize(b->data(), b->size()); - } else { - Py_INCREF(Py_None); - return Py_None; - } - } - - - - Q_DECLARE_METATYPE(QScriptValue) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - QFile & %out% = *qscriptvalue_cast<QFile*>(%in%); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - __rcDevice = null; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bool __result; - bool & %out% = __result; - - - - - bool %out% = __result; - - - - - - - - - unsigned char __result; - unsigned char & %out% = __result; - - - - - int %out% = __result; - - - - - - - - - int __result; - int & %out% = __result; - - - - - int %out% = __result; - - - - - - - - - uint __result; - uint & %out% = __result; - - - - - uint %out% = __result; - - - - - - - - - qint64 __result; - qint64 & %out% = __result; - - - - - qint64 %out% = __result; - - - - - - - - - unsigned long long __result; - unsigned long long & %out% = __result; - - - - - unsigned long long %out% = __result; - - - - - - - - - float __result; - float & %out% = __result; - - - - - float %out% = __result; - - - - - - - - - double __result; - double & %out% = __result; - - - - - double %out% = __result; - - - - - - - - - short __result; - short & %out% = __result; - - - - - short %out% = __result; - - - - - - - - - unsigned short __result; - unsigned short & %out% = __result; - - - - - unsigned short %out% = __result; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - char __result; - char & %out% = __result; - - - - - int %out% = __result; - - - - - - - - - short __result; - short & %out% = __result; - - - - - short %out% = __result; - - - - - - - - - int __result; - int & %out% = __result; - - - - - int %out% = __result; - - - - - - - - - unsigned short __result; - unsigned short & %out% = __result; - - - - - unsigned short %out% = __result; - - - - - - - - - unsigned int __result; - unsigned int & %out% = __result; - - - - - unsigned int %out% = __result; - - - - - - - - - qlonglong __result; - qlonglong & %out% = __result; - - - - - qlonglong %out% = __result; - - - - - - - - - qulonglong __result; - qulonglong & %out% = __result; - - - - - qulonglong %out% = __result; - - - - - - - - - float __result; - float & %out% = __result; - - - - - float %out% = __result; - - - - - - - - - double __result; - double & %out% = __result; - - - - - double %out% = __result; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/3rdparty/pythonqt/generator/typesystem_gui.xml b/3rdparty/pythonqt/generator/typesystem_gui.xml deleted file mode 100644 index 5c5e42eb7..000000000 --- a/3rdparty/pythonqt/generator/typesystem_gui.xml +++ /dev/null @@ -1,5657 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if ((context->argumentCount() == 1) && (qMetaTypeId<QTextFormat>() == context->argument(0).toVariant().userType())) { - QTextFormat _q_arg0 = qscriptvalue_cast<QTextFormat>(context->argument(0)); - QTextFormat _q_cpp_result(_q_arg0); - QScriptValue _q_result = context->engine()->newVariant(context->thisObject(), qVariantFromValue(_q_cpp_result)); - return _q_result; - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return new QTreeWidgetItemIterator(*copy); - - - delete copy; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return new QInputMethodEvent::Attribute(copy->type, copy->start, copy->length, copy->value); - - - delete copy; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return new QConicalGradient(copy->center(), copy->angle()); - - - delete copy; - - - - - - return new QFontInfo(*copy); - - - delete copy; - - - - - - - - - QFontInfo & %out% = *qscriptvalue_cast<QFontInfo*>(%in%); - - - - - - - - return new QRadialGradient(copy->center(), copy->radius(), copy->focalPoint()); - - - delete copy; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return new QColormap(*copy); - - - delete copy; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - QGradient & %out% = *qscriptvalue_cast<QGradient*>(%in%); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return new QFontMetricsF(*copy); - - - delete copy; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return new QFontMetrics(*copy); - - - delete copy; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Q_UNUSED(copy) - qWarning("Copying empty QGradient object"); - return new QGradient(); - - - delete copy; - - - - - - - - - QLinearGradient *lg = new QLinearGradient(copy->start(), copy->finalStop()); - lg->setSpread(copy->spread()); - lg->setStops(copy->stops()); - return (void *) lg; - - - delete copy; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if (%1 != null) disableGarbageCollection(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - QModelIndex moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers) - { return QModelIndex(); } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Q_DECLARE_METATYPE(QScriptValue) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - QAction* addAction (QMenu* menu, const QString & text, PyObject* callable, const QKeySequence & shortcut = 0) { - QAction* a = menu->addAction(text); - a->setShortcut(shortcut); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - - QAction* addAction (QMenu* menu, const QIcon& icon, const QString& text, PyObject* callable, const QKeySequence& shortcut = 0) - { - QAction* a = menu->addAction(text); - a->setIcon(icon); - a->setShortcut(shortcut); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - - - - - - - - - - - - - - - - - - QAction* addAction (QMenuBar* menu, const QString & text, PyObject* callable) - { - QAction* a = menu->addAction(text); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // nothing - - - - - - int __length = %out; - - - - - - - - - - jobjectArray graphicsItemArrayHolder = %out; - - - - - - - - - - - - - jobjectArray styleOptionArrayHolder = %out; - - - - - - - - - qtjambi_invalidate_array(__jni_env, styleOptionArrayHolder); - qtjambi_invalidate_array(__jni_env, graphicsItemArrayHolder); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Q_DECLARE_METATYPE(QScriptValue) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if (%1 != null) disableGarbageCollection(); - - - - - - if (%2 != null) disableGarbageCollection(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - extern "C" JNIEXPORT void JNICALL QTJAMBI_FUNCTION_PREFIX(Java_com_trolltech_qt_gui_QWidget__1_1qt_1QMessageBox_1setWindowTitle) - (JNIEnv *__jni_env, - jclass, - jlong __this_nativeId, - jobject title0) - { - QTJAMBI_DEBUG_TRACE("(native) entering: QMessageBox::setWindowTitle(const QString & title)"); - QString __qt_title0 = qtjambi_to_qstring(__jni_env, (jstring) title0); - QTJAMBI_EXCEPTION_CHECK(__jni_env); - QMessageBox *__qt_this = (QMessageBox *) qtjambi_from_jlong(__this_nativeId); - QTJAMBI_EXCEPTION_CHECK(__jni_env); - Q_ASSERT(__qt_this); - __qt_this->setWindowTitle((const QString& )__qt_title0); - QTJAMBI_DEBUG_TRACE("(native) -> leaving: QMessageBox::setWindowTitle(const QString & title)"); - } - - - - extern "C" JNIEXPORT void JNICALL QTJAMBI_FUNCTION_PREFIX(Java_com_trolltech_qt_gui_QWidget__1_1qt_1QMessageBox_1setWindowModality) - (JNIEnv *__jni_env, - jclass, - jlong __this_nativeId, - jint windowModality0) - { - Q_UNUSED(__jni_env); - QTJAMBI_DEBUG_TRACE("(native) entering: QMessageBox::setWindowModality(Qt::WindowModality modality)"); - Qt::WindowModality __qt_windowModality0 = (Qt::WindowModality) windowModality0; - QTJAMBI_EXCEPTION_CHECK(__jni_env); - QMessageBox *__qt_this = (QMessageBox *) qtjambi_from_jlong(__this_nativeId); - QTJAMBI_EXCEPTION_CHECK(__jni_env); - Q_ASSERT(__qt_this); - __qt_this->setWindowModality((Qt::WindowModality )__qt_windowModality0); - QTJAMBI_DEBUG_TRACE("(native) -> leaving: QMessageBox::setWindowModality(Qt::WindowModality modality)"); - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - jobject %out = qtjambi_from_object(__jni_env, %in, "QImage", "com/trolltech/qt/gui/", false); - - QtJambiLink *__link = %out != 0 ? QtJambiLink::findLink(__jni_env, %out) : 0; - - - QImage *%out = (QImage *) qtjambi_to_object(__jni_env, %in); - - - - - // Invalidate object - if (__link != 0) __link->resetObject(__jni_env); - bool %out = (bool) %in; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - QAction* addAction (QToolBar* menu, const QString & text, PyObject* callable) - { - QAction* a = menu->addAction(text); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - - QAction* addAction (QToolBar* menu, const QIcon& icon, const QString& text, PyObject* callable) - { - QAction* a = menu->addAction(text); - a->setIcon(icon); - PythonQt::self()->addSignalHandler(a, SIGNAL(triggered(bool)), callable); - return a; - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/3rdparty/pythonqt/generator/typesystem_network.xml b/3rdparty/pythonqt/generator/typesystem_network.xml deleted file mode 100644 index c635547fe..000000000 --- a/3rdparty/pythonqt/generator/typesystem_network.xml +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/3rdparty/pythonqt/patches/argument-reference-count.patch b/3rdparty/pythonqt/patches/argument-reference-count.patch deleted file mode 100644 index d3f2dbf23..000000000 --- a/3rdparty/pythonqt/patches/argument-reference-count.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/3rdparty/pythonqt/src/PythonQtClassWrapper.cpp b/3rdparty/pythonqt/src/PythonQtClassWrapper.cpp -index 4c3e280..411c7bf 100644 ---- a/3rdparty/pythonqt/src/PythonQtClassWrapper.cpp -+++ b/3rdparty/pythonqt/src/PythonQtClassWrapper.cpp -@@ -275,7 +275,9 @@ PyObject *PythonQtClassWrapper__init__(PythonQtClassWrapper *type, PyObject *arg - if (PyObject_TypeCheck(self, (PyTypeObject*)type->classInfo()->pythonQtClassWrapper())) { - PyObject* newargs = PyTuple_New(argc-1); - for (int i = 0;ifullSignature() + ", return type '" + returnValueParam.name + "' is ignored because it is unknown to PythonQt. Probably you should register it using qRegisterMetaType() or add a default constructor decorator to the class."; - PyErr_SetString(PyExc_ValueError, e.toLatin1().data()); - result = NULL; -+ ok = false; - } - } - recursiveEntry--; -@@ -170,7 +171,7 @@ bool PythonQtCallSlot(PythonQtClassInfo* classInfo, QObject* objectToCall, PyObj - - *pythonReturnValue = result; - // NOTE: it is important to only return here, otherwise the stack will not be popped!!! -- return result || (directReturnValuePointer && *directReturnValuePointer); -+ return ok; - } - - //----------------------------------------------------------------------------------- diff --git a/3rdparty/pythonqt/patches/cleanup-signal-receivers.patch b/3rdparty/pythonqt/patches/cleanup-signal-receivers.patch deleted file mode 100644 index 0f50f3086..000000000 --- a/3rdparty/pythonqt/patches/cleanup-signal-receivers.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/3rdparty/pythonqt/src/PythonQt.cpp b/3rdparty/pythonqt/src/PythonQt.cpp -index f97bdf1..dfde7a0 100644 ---- a/3rdparty/pythonqt/src/PythonQt.cpp -+++ b/3rdparty/pythonqt/src/PythonQt.cpp -@@ -200,12 +200,9 @@ PythonQtPrivate::~PythonQtPrivate() { - delete _defaultImporter; - _defaultImporter = NULL; - -- { -- QHashIterator i(_knownClassInfos); -- while (i.hasNext()) { -- delete i.next().value(); -- } -- } -+ qDeleteAll(_knownClassInfos.values()); -+ qDeleteAll(_signalReceivers.values()); -+ - PythonQtConv::global_valueStorage.clear(); - PythonQtConv::global_ptrStorage.clear(); - PythonQtConv::global_variantStorage.clear(); diff --git a/3rdparty/pythonqt/patches/cocoarequestmodel.patch b/3rdparty/pythonqt/patches/cocoarequestmodel.patch deleted file mode 100644 index e14e81e11..000000000 --- a/3rdparty/pythonqt/patches/cocoarequestmodel.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h -index b98ea57..5c00fe5 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.h -@@ -852,7 +852,7 @@ class PythonQtWrapper_QEvent : public QObject - public: - Q_ENUMS(Type ) - enum Type{ -- None = QEvent::None, Timer = QEvent::Timer, MouseButtonPress = QEvent::MouseButtonPress, MouseButtonRelease = QEvent::MouseButtonRelease, MouseButtonDblClick = QEvent::MouseButtonDblClick, MouseMove = QEvent::MouseMove, KeyPress = QEvent::KeyPress, KeyRelease = QEvent::KeyRelease, FocusIn = QEvent::FocusIn, FocusOut = QEvent::FocusOut, Enter = QEvent::Enter, Leave = QEvent::Leave, Paint = QEvent::Paint, Move = QEvent::Move, Resize = QEvent::Resize, Create = QEvent::Create, Destroy = QEvent::Destroy, Show = QEvent::Show, Hide = QEvent::Hide, Close = QEvent::Close, Quit = QEvent::Quit, ParentChange = QEvent::ParentChange, ParentAboutToChange = QEvent::ParentAboutToChange, ThreadChange = QEvent::ThreadChange, WindowActivate = QEvent::WindowActivate, WindowDeactivate = QEvent::WindowDeactivate, ShowToParent = QEvent::ShowToParent, HideToParent = QEvent::HideToParent, Wheel = QEvent::Wheel, WindowTitleChange = QEvent::WindowTitleChange, WindowIconChange = QEvent::WindowIconChange, ApplicationWindowIconChange = QEvent::ApplicationWindowIconChange, ApplicationFontChange = QEvent::ApplicationFontChange, ApplicationLayoutDirectionChange = QEvent::ApplicationLayoutDirectionChange, ApplicationPaletteChange = QEvent::ApplicationPaletteChange, PaletteChange = QEvent::PaletteChange, Clipboard = QEvent::Clipboard, Speech = QEvent::Speech, MetaCall = QEvent::MetaCall, SockAct = QEvent::SockAct, WinEventAct = QEvent::WinEventAct, DeferredDelete = QEvent::DeferredDelete, DragEnter = QEvent::DragEnter, DragMove = QEvent::DragMove, DragLeave = QEvent::DragLeave, Drop = QEvent::Drop, DragResponse = QEvent::DragResponse, ChildAdded = QEvent::ChildAdded, ChildPolished = QEvent::ChildPolished, ChildRemoved = QEvent::ChildRemoved, ShowWindowRequest = QEvent::ShowWindowRequest, PolishRequest = QEvent::PolishRequest, Polish = QEvent::Polish, LayoutRequest = QEvent::LayoutRequest, UpdateRequest = QEvent::UpdateRequest, UpdateLater = QEvent::UpdateLater, EmbeddingControl = QEvent::EmbeddingControl, ActivateControl = QEvent::ActivateControl, DeactivateControl = QEvent::DeactivateControl, ContextMenu = QEvent::ContextMenu, InputMethod = QEvent::InputMethod, AccessibilityPrepare = QEvent::AccessibilityPrepare, TabletMove = QEvent::TabletMove, LocaleChange = QEvent::LocaleChange, LanguageChange = QEvent::LanguageChange, LayoutDirectionChange = QEvent::LayoutDirectionChange, Style = QEvent::Style, TabletPress = QEvent::TabletPress, TabletRelease = QEvent::TabletRelease, OkRequest = QEvent::OkRequest, HelpRequest = QEvent::HelpRequest, IconDrag = QEvent::IconDrag, FontChange = QEvent::FontChange, EnabledChange = QEvent::EnabledChange, ActivationChange = QEvent::ActivationChange, StyleChange = QEvent::StyleChange, IconTextChange = QEvent::IconTextChange, ModifiedChange = QEvent::ModifiedChange, MouseTrackingChange = QEvent::MouseTrackingChange, WindowBlocked = QEvent::WindowBlocked, WindowUnblocked = QEvent::WindowUnblocked, WindowStateChange = QEvent::WindowStateChange, ToolTip = QEvent::ToolTip, WhatsThis = QEvent::WhatsThis, StatusTip = QEvent::StatusTip, ActionChanged = QEvent::ActionChanged, ActionAdded = QEvent::ActionAdded, ActionRemoved = QEvent::ActionRemoved, FileOpen = QEvent::FileOpen, Shortcut = QEvent::Shortcut, ShortcutOverride = QEvent::ShortcutOverride, WhatsThisClicked = QEvent::WhatsThisClicked, ToolBarChange = QEvent::ToolBarChange, ApplicationActivate = QEvent::ApplicationActivate, ApplicationActivated = QEvent::ApplicationActivated, ApplicationDeactivate = QEvent::ApplicationDeactivate, ApplicationDeactivated = QEvent::ApplicationDeactivated, QueryWhatsThis = QEvent::QueryWhatsThis, EnterWhatsThisMode = QEvent::EnterWhatsThisMode, LeaveWhatsThisMode = QEvent::LeaveWhatsThisMode, ZOrderChange = QEvent::ZOrderChange, HoverEnter = QEvent::HoverEnter, HoverLeave = QEvent::HoverLeave, HoverMove = QEvent::HoverMove, AccessibilityHelp = QEvent::AccessibilityHelp, AccessibilityDescription = QEvent::AccessibilityDescription, AcceptDropsChange = QEvent::AcceptDropsChange, MenubarUpdated = QEvent::MenubarUpdated, ZeroTimerEvent = QEvent::ZeroTimerEvent, GraphicsSceneMouseMove = QEvent::GraphicsSceneMouseMove, GraphicsSceneMousePress = QEvent::GraphicsSceneMousePress, GraphicsSceneMouseRelease = QEvent::GraphicsSceneMouseRelease, GraphicsSceneMouseDoubleClick = QEvent::GraphicsSceneMouseDoubleClick, GraphicsSceneContextMenu = QEvent::GraphicsSceneContextMenu, GraphicsSceneHoverEnter = QEvent::GraphicsSceneHoverEnter, GraphicsSceneHoverMove = QEvent::GraphicsSceneHoverMove, GraphicsSceneHoverLeave = QEvent::GraphicsSceneHoverLeave, GraphicsSceneHelp = QEvent::GraphicsSceneHelp, GraphicsSceneDragEnter = QEvent::GraphicsSceneDragEnter, GraphicsSceneDragMove = QEvent::GraphicsSceneDragMove, GraphicsSceneDragLeave = QEvent::GraphicsSceneDragLeave, GraphicsSceneDrop = QEvent::GraphicsSceneDrop, GraphicsSceneWheel = QEvent::GraphicsSceneWheel, KeyboardLayoutChange = QEvent::KeyboardLayoutChange, DynamicPropertyChange = QEvent::DynamicPropertyChange, TabletEnterProximity = QEvent::TabletEnterProximity, TabletLeaveProximity = QEvent::TabletLeaveProximity, NonClientAreaMouseMove = QEvent::NonClientAreaMouseMove, NonClientAreaMouseButtonPress = QEvent::NonClientAreaMouseButtonPress, NonClientAreaMouseButtonRelease = QEvent::NonClientAreaMouseButtonRelease, NonClientAreaMouseButtonDblClick = QEvent::NonClientAreaMouseButtonDblClick, MacSizeChange = QEvent::MacSizeChange, ContentsRectChange = QEvent::ContentsRectChange, MacGLWindowChange = QEvent::MacGLWindowChange, FutureCallOut = QEvent::FutureCallOut, GraphicsSceneResize = QEvent::GraphicsSceneResize, GraphicsSceneMove = QEvent::GraphicsSceneMove, CursorChange = QEvent::CursorChange, ToolTipChange = QEvent::ToolTipChange, NetworkReplyUpdated = QEvent::NetworkReplyUpdated, GrabMouse = QEvent::GrabMouse, UngrabMouse = QEvent::UngrabMouse, GrabKeyboard = QEvent::GrabKeyboard, UngrabKeyboard = QEvent::UngrabKeyboard, CocoaRequestModal = QEvent::CocoaRequestModal, MacGLClearDrawable = QEvent::MacGLClearDrawable, StateMachineSignal = QEvent::StateMachineSignal, StateMachineWrapped = QEvent::StateMachineWrapped, TouchBegin = QEvent::TouchBegin, TouchUpdate = QEvent::TouchUpdate, TouchEnd = QEvent::TouchEnd, NativeGesture = QEvent::NativeGesture, RequestSoftwareInputPanel = QEvent::RequestSoftwareInputPanel, CloseSoftwareInputPanel = QEvent::CloseSoftwareInputPanel, UpdateSoftKeys = QEvent::UpdateSoftKeys, WinIdChange = QEvent::WinIdChange, Gesture = QEvent::Gesture, GestureOverride = QEvent::GestureOverride, User = QEvent::User, MaxUser = QEvent::MaxUser}; -+ None = QEvent::None, Timer = QEvent::Timer, MouseButtonPress = QEvent::MouseButtonPress, MouseButtonRelease = QEvent::MouseButtonRelease, MouseButtonDblClick = QEvent::MouseButtonDblClick, MouseMove = QEvent::MouseMove, KeyPress = QEvent::KeyPress, KeyRelease = QEvent::KeyRelease, FocusIn = QEvent::FocusIn, FocusOut = QEvent::FocusOut, Enter = QEvent::Enter, Leave = QEvent::Leave, Paint = QEvent::Paint, Move = QEvent::Move, Resize = QEvent::Resize, Create = QEvent::Create, Destroy = QEvent::Destroy, Show = QEvent::Show, Hide = QEvent::Hide, Close = QEvent::Close, Quit = QEvent::Quit, ParentChange = QEvent::ParentChange, ParentAboutToChange = QEvent::ParentAboutToChange, ThreadChange = QEvent::ThreadChange, WindowActivate = QEvent::WindowActivate, WindowDeactivate = QEvent::WindowDeactivate, ShowToParent = QEvent::ShowToParent, HideToParent = QEvent::HideToParent, Wheel = QEvent::Wheel, WindowTitleChange = QEvent::WindowTitleChange, WindowIconChange = QEvent::WindowIconChange, ApplicationWindowIconChange = QEvent::ApplicationWindowIconChange, ApplicationFontChange = QEvent::ApplicationFontChange, ApplicationLayoutDirectionChange = QEvent::ApplicationLayoutDirectionChange, ApplicationPaletteChange = QEvent::ApplicationPaletteChange, PaletteChange = QEvent::PaletteChange, Clipboard = QEvent::Clipboard, Speech = QEvent::Speech, MetaCall = QEvent::MetaCall, SockAct = QEvent::SockAct, WinEventAct = QEvent::WinEventAct, DeferredDelete = QEvent::DeferredDelete, DragEnter = QEvent::DragEnter, DragMove = QEvent::DragMove, DragLeave = QEvent::DragLeave, Drop = QEvent::Drop, DragResponse = QEvent::DragResponse, ChildAdded = QEvent::ChildAdded, ChildPolished = QEvent::ChildPolished, ChildRemoved = QEvent::ChildRemoved, ShowWindowRequest = QEvent::ShowWindowRequest, PolishRequest = QEvent::PolishRequest, Polish = QEvent::Polish, LayoutRequest = QEvent::LayoutRequest, UpdateRequest = QEvent::UpdateRequest, UpdateLater = QEvent::UpdateLater, EmbeddingControl = QEvent::EmbeddingControl, ActivateControl = QEvent::ActivateControl, DeactivateControl = QEvent::DeactivateControl, ContextMenu = QEvent::ContextMenu, InputMethod = QEvent::InputMethod, AccessibilityPrepare = QEvent::AccessibilityPrepare, TabletMove = QEvent::TabletMove, LocaleChange = QEvent::LocaleChange, LanguageChange = QEvent::LanguageChange, LayoutDirectionChange = QEvent::LayoutDirectionChange, Style = QEvent::Style, TabletPress = QEvent::TabletPress, TabletRelease = QEvent::TabletRelease, OkRequest = QEvent::OkRequest, HelpRequest = QEvent::HelpRequest, IconDrag = QEvent::IconDrag, FontChange = QEvent::FontChange, EnabledChange = QEvent::EnabledChange, ActivationChange = QEvent::ActivationChange, StyleChange = QEvent::StyleChange, IconTextChange = QEvent::IconTextChange, ModifiedChange = QEvent::ModifiedChange, MouseTrackingChange = QEvent::MouseTrackingChange, WindowBlocked = QEvent::WindowBlocked, WindowUnblocked = QEvent::WindowUnblocked, WindowStateChange = QEvent::WindowStateChange, ToolTip = QEvent::ToolTip, WhatsThis = QEvent::WhatsThis, StatusTip = QEvent::StatusTip, ActionChanged = QEvent::ActionChanged, ActionAdded = QEvent::ActionAdded, ActionRemoved = QEvent::ActionRemoved, FileOpen = QEvent::FileOpen, Shortcut = QEvent::Shortcut, ShortcutOverride = QEvent::ShortcutOverride, WhatsThisClicked = QEvent::WhatsThisClicked, ToolBarChange = QEvent::ToolBarChange, ApplicationActivate = QEvent::ApplicationActivate, ApplicationActivated = QEvent::ApplicationActivated, ApplicationDeactivate = QEvent::ApplicationDeactivate, ApplicationDeactivated = QEvent::ApplicationDeactivated, QueryWhatsThis = QEvent::QueryWhatsThis, EnterWhatsThisMode = QEvent::EnterWhatsThisMode, LeaveWhatsThisMode = QEvent::LeaveWhatsThisMode, ZOrderChange = QEvent::ZOrderChange, HoverEnter = QEvent::HoverEnter, HoverLeave = QEvent::HoverLeave, HoverMove = QEvent::HoverMove, AccessibilityHelp = QEvent::AccessibilityHelp, AccessibilityDescription = QEvent::AccessibilityDescription, AcceptDropsChange = QEvent::AcceptDropsChange, MenubarUpdated = QEvent::MenubarUpdated, ZeroTimerEvent = QEvent::ZeroTimerEvent, GraphicsSceneMouseMove = QEvent::GraphicsSceneMouseMove, GraphicsSceneMousePress = QEvent::GraphicsSceneMousePress, GraphicsSceneMouseRelease = QEvent::GraphicsSceneMouseRelease, GraphicsSceneMouseDoubleClick = QEvent::GraphicsSceneMouseDoubleClick, GraphicsSceneContextMenu = QEvent::GraphicsSceneContextMenu, GraphicsSceneHoverEnter = QEvent::GraphicsSceneHoverEnter, GraphicsSceneHoverMove = QEvent::GraphicsSceneHoverMove, GraphicsSceneHoverLeave = QEvent::GraphicsSceneHoverLeave, GraphicsSceneHelp = QEvent::GraphicsSceneHelp, GraphicsSceneDragEnter = QEvent::GraphicsSceneDragEnter, GraphicsSceneDragMove = QEvent::GraphicsSceneDragMove, GraphicsSceneDragLeave = QEvent::GraphicsSceneDragLeave, GraphicsSceneDrop = QEvent::GraphicsSceneDrop, GraphicsSceneWheel = QEvent::GraphicsSceneWheel, KeyboardLayoutChange = QEvent::KeyboardLayoutChange, DynamicPropertyChange = QEvent::DynamicPropertyChange, TabletEnterProximity = QEvent::TabletEnterProximity, TabletLeaveProximity = QEvent::TabletLeaveProximity, NonClientAreaMouseMove = QEvent::NonClientAreaMouseMove, NonClientAreaMouseButtonPress = QEvent::NonClientAreaMouseButtonPress, NonClientAreaMouseButtonRelease = QEvent::NonClientAreaMouseButtonRelease, NonClientAreaMouseButtonDblClick = QEvent::NonClientAreaMouseButtonDblClick, MacSizeChange = QEvent::MacSizeChange, ContentsRectChange = QEvent::ContentsRectChange, MacGLWindowChange = QEvent::MacGLWindowChange, FutureCallOut = QEvent::FutureCallOut, GraphicsSceneResize = QEvent::GraphicsSceneResize, GraphicsSceneMove = QEvent::GraphicsSceneMove, CursorChange = QEvent::CursorChange, ToolTipChange = QEvent::ToolTipChange, NetworkReplyUpdated = QEvent::NetworkReplyUpdated, GrabMouse = QEvent::GrabMouse, UngrabMouse = QEvent::UngrabMouse, GrabKeyboard = QEvent::GrabKeyboard, UngrabKeyboard = QEvent::UngrabKeyboard, MacGLClearDrawable = QEvent::MacGLClearDrawable, StateMachineSignal = QEvent::StateMachineSignal, StateMachineWrapped = QEvent::StateMachineWrapped, TouchBegin = QEvent::TouchBegin, TouchUpdate = QEvent::TouchUpdate, TouchEnd = QEvent::TouchEnd, NativeGesture = QEvent::NativeGesture, RequestSoftwareInputPanel = QEvent::RequestSoftwareInputPanel, CloseSoftwareInputPanel = QEvent::CloseSoftwareInputPanel, UpdateSoftKeys = QEvent::UpdateSoftKeys, WinIdChange = QEvent::WinIdChange, Gesture = QEvent::Gesture, GestureOverride = QEvent::GestureOverride, User = QEvent::User, MaxUser = QEvent::MaxUser}; - public slots: - QEvent* new_QEvent(QEvent::Type type); - void delete_QEvent(QEvent* obj) { delete obj; } diff --git a/3rdparty/pythonqt/patches/conversion-stack.patch b/3rdparty/pythonqt/patches/conversion-stack.patch deleted file mode 100644 index c71f0efb5..000000000 --- a/3rdparty/pythonqt/patches/conversion-stack.patch +++ /dev/null @@ -1,52 +0,0 @@ -diff --git a/3rdparty/pythonqt/src/PythonQtConversion.cpp b/3rdparty/pythonqt/src/PythonQtConversion.cpp -index 0fbe291..7ea97c4 100644 ---- a/3rdparty/pythonqt/src/PythonQtConversion.cpp -+++ b/3rdparty/pythonqt/src/PythonQtConversion.cpp -@@ -519,8 +519,13 @@ void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i - { - QByteArray bytes = PyObjGetBytes(obj, strict, ok); - if (ok) { -- PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(bytes), ptr); -- ptr = (void*)((QVariant*)ptr)->constData(); -+ if (alreadyAllocatedCPPObject) { -+ ptr = alreadyAllocatedCPPObject; -+ *reinterpret_cast(alreadyAllocatedCPPObject) = bytes; -+ } else { -+ PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(bytes), ptr); -+ ptr = (void*)((QVariant*)ptr)->constData(); -+ } - } - } - break; -@@ -528,8 +533,13 @@ void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i - { - QString str = PyObjGetString(obj, strict, ok); - if (ok) { -- PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(str), ptr); -- ptr = (void*)((QVariant*)ptr)->constData(); -+ if (alreadyAllocatedCPPObject) { -+ ptr = alreadyAllocatedCPPObject; -+ *reinterpret_cast(alreadyAllocatedCPPObject) = str; -+ } else { -+ PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(str), ptr); -+ ptr = (void*)((QVariant*)ptr)->constData(); -+ } - } - } - break; -@@ -537,8 +547,13 @@ void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i - { - QStringList l = PyObjToStringList(obj, strict, ok); - if (ok) { -- PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(l), ptr); -- ptr = (void*)((QVariant*)ptr)->constData(); -+ if (alreadyAllocatedCPPObject) { -+ ptr = alreadyAllocatedCPPObject; -+ *reinterpret_cast(alreadyAllocatedCPPObject) = l; -+ } else { -+ PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(l), ptr); -+ ptr = (void*)((QVariant*)ptr)->constData(); -+ } - } - } - break; diff --git a/3rdparty/pythonqt/patches/debug.patch b/3rdparty/pythonqt/patches/debug.patch deleted file mode 100644 index 0ecbaf78c..000000000 --- a/3rdparty/pythonqt/patches/debug.patch +++ /dev/null @@ -1,418 +0,0 @@ -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -index 23a7662..6ba7e74 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -@@ -4228,8 +4228,10 @@ QString PythonQtWrapper_QDir::static_QDir_toNativeSeparators(const QString& pa - - QString PythonQtWrapper_QDir::py_toString(QDir* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -4364,8 +4366,10 @@ qreal PythonQtWrapper_QEasingCurve::valueForProgress(QEasingCurve* theWrappedOb - - QString PythonQtWrapper_QEasingCurve::py_toString(QEasingCurve* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -4412,8 +4416,10 @@ QEvent::Type PythonQtWrapper_QEvent::type(QEvent* theWrappedObject) const - - QString PythonQtWrapper_QEvent::py_toString(QEvent* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << obj; -+#endif - return result; - } - -@@ -7433,8 +7439,10 @@ QModelIndex PythonQtWrapper_QModelIndex::sibling(QModelIndex* theWrappedObject, - - QString PythonQtWrapper_QModelIndex::py_toString(QModelIndex* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp -index 07d8818..3ad258e 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp -@@ -1250,8 +1250,10 @@ int PythonQtWrapper_QLine::y2(QLine* theWrappedObject) const - - QString PythonQtWrapper_QLine::py_toString(QLine* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -1450,8 +1452,10 @@ qreal PythonQtWrapper_QLineF::y2(QLineF* theWrappedObject) const - - QString PythonQtWrapper_QLineF::py_toString(QLineF* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -1870,8 +1874,10 @@ int PythonQtWrapper_QPoint::y(QPoint* theWrappedObject) const - - QString PythonQtWrapper_QPoint::py_toString(QPoint* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -1996,8 +2002,10 @@ qreal PythonQtWrapper_QPointF::y(QPointF* theWrappedObject) const - - QString PythonQtWrapper_QPointF::py_toString(QPointF* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -2321,8 +2329,10 @@ int PythonQtWrapper_QRect::y(QRect* theWrappedObject) const - - QString PythonQtWrapper_QRect::py_toString(QRect* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -2665,8 +2675,10 @@ qreal PythonQtWrapper_QRectF::y(QRectF* theWrappedObject) const - - QString PythonQtWrapper_QRectF::py_toString(QRectF* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -2936,8 +2948,10 @@ int PythonQtWrapper_QSize::width(QSize* theWrappedObject) const - - QString PythonQtWrapper_QSize::py_toString(QSize* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -3077,8 +3091,10 @@ qreal PythonQtWrapper_QSizeF::width(QSizeF* theWrappedObject) const - - QString PythonQtWrapper_QSizeF::py_toString(QSizeF* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -index 391341f..2b05be0 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -@@ -692,8 +692,10 @@ QTransform::TransformationType PythonQtWrapper_QTransform::type(QTransform* the - - QString PythonQtWrapper_QTransform::py_toString(QTransform* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -7875,8 +7877,10 @@ qreal PythonQtWrapper_QVector2D::y(QVector2D* theWrappedObject) const - - QString PythonQtWrapper_QVector2D::py_toString(QVector2D* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -8092,8 +8096,10 @@ qreal PythonQtWrapper_QVector3D::z(QVector3D* theWrappedObject) const - - QString PythonQtWrapper_QVector3D::py_toString(QVector3D* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -8303,8 +8309,10 @@ qreal PythonQtWrapper_QVector4D::z(QVector4D* theWrappedObject) const - - QString PythonQtWrapper_QVector4D::py_toString(QVector4D* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -index 796919d..63e376f 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -@@ -9427,8 +9427,10 @@ qreal PythonQtWrapper_QGraphicsItem::zValue(QGraphicsItem* theWrappedObject) co - - QString PythonQtWrapper_QGraphicsItem::py_toString(QGraphicsItem* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << obj; -+#endif - return result; - } - -@@ -12894,8 +12896,10 @@ return new PythonQtShell_QGraphicsObject(parent); } - - QString PythonQtWrapper_QGraphicsObject::py_toString(QGraphicsObject* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -index 077e294..d0fcd2f 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -@@ -4354,8 +4354,10 @@ int PythonQtWrapper_QItemSelectionRange::width(QItemSelectionRange* theWrappedO - - QString PythonQtWrapper_QItemSelectionRange::py_toString(QItemSelectionRange* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -13872,8 +13874,10 @@ int PythonQtWrapper_QMargins::top(QMargins* theWrappedObject) const - - QString PythonQtWrapper_QMargins::py_toString(QMargins* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -index 8a22514..cb77279 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -@@ -415,8 +415,10 @@ QMatrix4x4 PythonQtWrapper_QMatrix4x4::transposed(QMatrix4x4* theWrappedObject) - - QString PythonQtWrapper_QMatrix4x4::py_toString(QMatrix4x4* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -9467,8 +9469,10 @@ QPainterPath PythonQtWrapper_QPainterPath::united(QPainterPath* theWrappedObjec - - QString PythonQtWrapper_QPainterPath::py_toString(QPainterPath* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -12792,8 +12796,10 @@ QPointF PythonQtWrapper_QPolygonF::value(QPolygonF* theWrappedObject, int i, c - - QString PythonQtWrapper_QPolygonF::py_toString(QPolygonF* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -index 415722c..4cb93f4 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -@@ -6690,8 +6690,10 @@ qreal PythonQtWrapper_QQuaternion::z(QQuaternion* theWrappedObject) const - - QString PythonQtWrapper_QQuaternion::py_toString(QQuaternion* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -index 4890c63..4200fd0 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -@@ -5000,8 +5000,10 @@ void PythonQtWrapper_QStyleOption::initFrom(QStyleOption* theWrappedObject, cons - - QString PythonQtWrapper_QStyleOption::py_toString(QStyleOption* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -index a743a34..cb99423 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -@@ -302,8 +302,10 @@ QTransform PythonQtWrapper_QBrush::transform(QBrush* theWrappedObject) const - - QString PythonQtWrapper_QBrush::py_toString(QBrush* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -750,8 +752,10 @@ qreal PythonQtWrapper_QColor::yellowF(QColor* theWrappedObject) const - - QString PythonQtWrapper_QColor::py_toString(QColor* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -2082,8 +2086,10 @@ QMatrix* PythonQtWrapper_QMatrix::translate(QMatrix* theWrappedObject, qreal d - - QString PythonQtWrapper_QMatrix::py_toString(QMatrix* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -2477,8 +2483,10 @@ qreal PythonQtWrapper_QPen::widthF(QPen* theWrappedObject) const - - QString PythonQtWrapper_QPen::py_toString(QPen* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -3096,8 +3104,10 @@ QPoint PythonQtWrapper_QPolygon::value(QPolygon* theWrappedObject, int i, cons - - QString PythonQtWrapper_QPolygon::py_toString(QPolygon* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -3279,8 +3289,10 @@ QRegion PythonQtWrapper_QRegion::xored(QRegion* theWrappedObject, const QRegion - - QString PythonQtWrapper_QRegion::py_toString(QRegion* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -index 11f8087..65ca21d 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -@@ -3770,8 +3770,10 @@ QByteArray PythonQtWrapper_QNetworkCookie::value(QNetworkCookie* theWrappedObje - - QString PythonQtWrapper_QNetworkCookie::py_toString(QNetworkCookie* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -@@ -4418,8 +4420,10 @@ QString PythonQtWrapper_QNetworkInterface::name(QNetworkInterface* theWrappedOb - - QString PythonQtWrapper_QNetworkInterface::py_toString(QNetworkInterface* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -index 06d867b..61e2158 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -@@ -88,8 +88,10 @@ bool PythonQtWrapper_QSslKey::isNull(QSslKey* theWrappedObject) const - - QString PythonQtWrapper_QSslKey::py_toString(QSslKey* obj) { - QString result; -+#ifdef QT_DEBUG - QDebug d(&result); - d << *obj; -+#endif - return result; - } - diff --git a/3rdparty/pythonqt/patches/delete-qstandarditem.patch b/3rdparty/pythonqt/patches/delete-qstandarditem.patch deleted file mode 100644 index 05a79bd43..000000000 --- a/3rdparty/pythonqt/patches/delete-qstandarditem.patch +++ /dev/null @@ -1,40 +0,0 @@ -commit 0e555968ea51ab125a070df10ed24ce0eb24ed2a -Author: davidsansome -Date: Mon May 30 14:54:11 2011 +0000 - - Hack the wrapped ~QStandardItem to remove the row properly from the model (which deletes it as well) - - git-svn-id: https://clementine-player.googlecode.com/svn/trunk@3345 94c5599e-fc6c-11de-b061-8119ef04aefe - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -index e08ea9b..16c24dc 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -@@ -1039,6 +1039,14 @@ QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(int rows, int - { - return new PythonQtShell_QStandardItem(rows, columns); } - -+void PythonQtWrapper_QStandardItem::delete_QStandardItem(QStandardItem* obj) { -+ if (obj && obj->parent()) { -+ obj->parent()->removeRow(obj->row()); -+ } else if (obj) { -+ delete obj; -+ } -+} -+ - QString PythonQtWrapper_QStandardItem::accessibleDescription(QStandardItem* theWrappedObject) const - { - return ( theWrappedObject->accessibleDescription()); -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h -index 23ff35d..380b7fc 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.h -@@ -161,7 +161,7 @@ QStandardItem* new_QStandardItem(); - QStandardItem* new_QStandardItem(const QIcon& icon, const QString& text); - QStandardItem* new_QStandardItem(const QString& text); - QStandardItem* new_QStandardItem(int rows, int columns = 1); --void delete_QStandardItem(QStandardItem* obj) { delete obj; } -+void delete_QStandardItem(QStandardItem* obj); - QString accessibleDescription(QStandardItem* theWrappedObject) const; - QString accessibleText(QStandardItem* theWrappedObject) const; - void appendColumn(QStandardItem* theWrappedObject, const QList& items); diff --git a/3rdparty/pythonqt/patches/initialise-pod-returnvalues.patch b/3rdparty/pythonqt/patches/initialise-pod-returnvalues.patch deleted file mode 100644 index 82f778ce2..000000000 --- a/3rdparty/pythonqt/patches/initialise-pod-returnvalues.patch +++ /dev/null @@ -1,13650 +0,0 @@ -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -index 6ba7e74..11ecbd5 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -@@ -82,7 +82,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -110,7 +110,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -138,7 +138,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -333,7 +333,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -378,7 +378,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -451,7 +451,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -479,7 +479,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -507,7 +507,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -552,7 +552,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- Qt::ItemFlags returnValue; -+ Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -580,7 +580,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -664,7 +664,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -692,7 +692,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -776,7 +776,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -860,7 +860,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -888,7 +888,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -933,7 +933,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -961,7 +961,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -989,7 +989,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1017,7 +1017,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1090,7 +1090,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1118,7 +1118,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1352,7 +1352,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1442,7 +1442,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1470,7 +1470,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1498,7 +1498,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1543,7 +1543,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- Qt::ItemFlags returnValue; -+ Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1627,7 +1627,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1655,7 +1655,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1739,7 +1739,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1795,7 +1795,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1823,7 +1823,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1868,7 +1868,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1896,7 +1896,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1924,7 +1924,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1952,7 +1952,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2025,7 +2025,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2053,7 +2053,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2148,7 +2148,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2176,7 +2176,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2306,7 +2306,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2334,7 +2334,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2362,7 +2362,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2514,7 +2514,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2542,7 +2542,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2570,7 +2570,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2743,7 +2743,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2771,7 +2771,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2799,7 +2799,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2827,7 +2827,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2906,7 +2906,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2934,7 +2934,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2962,7 +2962,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2990,7 +2990,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&openMode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3018,7 +3018,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3046,7 +3046,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3074,7 +3074,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3102,7 +3102,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3130,7 +3130,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&off}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3158,7 +3158,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3203,7 +3203,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3231,7 +3231,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3259,7 +3259,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3450,7 +3450,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3478,7 +3478,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3506,7 +3506,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4467,7 +4467,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4495,7 +4495,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4610,7 +4610,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4638,7 +4638,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4666,7 +4666,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4807,7 +4807,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4835,7 +4835,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4863,7 +4863,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4891,7 +4891,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4970,7 +4970,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4998,7 +4998,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5026,7 +5026,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractFileEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractFileEngine* returnValue; -+ QAbstractFileEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5054,7 +5054,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5082,7 +5082,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5110,7 +5110,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5138,7 +5138,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5166,7 +5166,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5194,7 +5194,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5222,7 +5222,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&offset}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5250,7 +5250,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5295,7 +5295,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5323,7 +5323,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5351,7 +5351,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5868,7 +5868,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5896,7 +5896,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6015,7 +6015,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6043,7 +6043,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6177,7 +6177,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6205,7 +6205,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6329,7 +6329,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6357,7 +6357,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6385,7 +6385,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6413,7 +6413,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6492,7 +6492,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6520,7 +6520,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6548,7 +6548,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6576,7 +6576,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6604,7 +6604,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6632,7 +6632,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6660,7 +6660,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6688,7 +6688,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6716,7 +6716,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6744,7 +6744,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6789,7 +6789,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6817,7 +6817,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6845,7 +6845,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7094,7 +7094,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7122,7 +7122,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7178,7 +7178,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mimetype}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp -index 8809855..5553f54 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp -@@ -114,7 +114,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -142,7 +142,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -347,7 +347,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -375,7 +375,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -403,7 +403,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -564,7 +564,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -592,7 +592,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -620,7 +620,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -746,7 +746,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -774,7 +774,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -802,7 +802,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -830,7 +830,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -909,7 +909,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -937,7 +937,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -965,7 +965,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -993,7 +993,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1021,7 +1021,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1049,7 +1049,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1077,7 +1077,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1105,7 +1105,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1133,7 +1133,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1178,7 +1178,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1223,7 +1223,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1251,7 +1251,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1279,7 +1279,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1627,7 +1627,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1655,7 +1655,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1683,7 +1683,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2012,7 +2012,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2040,7 +2040,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2068,7 +2068,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2244,7 +2244,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2272,7 +2272,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2533,7 +2533,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2561,7 +2561,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2681,7 +2681,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2709,7 +2709,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2737,7 +2737,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2878,7 +2878,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2906,7 +2906,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3011,7 +3011,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3039,7 +3039,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3300,7 +3300,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3328,7 +3328,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3650,7 +3650,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3678,7 +3678,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3706,7 +3706,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3734,7 +3734,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3813,7 +3813,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3841,7 +3841,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3869,7 +3869,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractFileEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractFileEngine* returnValue; -+ QAbstractFileEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3897,7 +3897,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3925,7 +3925,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3953,7 +3953,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3981,7 +3981,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4009,7 +4009,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4037,7 +4037,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4065,7 +4065,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&offset}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4093,7 +4093,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4138,7 +4138,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4166,7 +4166,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4194,7 +4194,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4443,7 +4443,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4936,7 +4936,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4964,7 +4964,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5104,7 +5104,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5132,7 +5132,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5177,7 +5177,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qreal" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- qreal returnValue; -+ qreal returnValue = 0; - void* args[2] = {NULL, (void*)&msec}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5365,7 +5365,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5393,7 +5393,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp -index 5dceafe..419dc8e 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp -@@ -74,7 +74,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -102,7 +102,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -130,7 +130,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -333,7 +333,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -361,7 +361,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -389,7 +389,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp -index 845fa37..93c0706 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp -@@ -214,7 +214,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -327,7 +327,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -355,7 +355,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -400,7 +400,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -445,7 +445,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -490,7 +490,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -631,7 +631,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -789,7 +789,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1168,7 +1168,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1196,7 +1196,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1224,7 +1224,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1495,7 +1495,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1698,7 +1698,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1726,7 +1726,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1799,7 +1799,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1827,7 +1827,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1925,7 +1925,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1970,7 +1970,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1998,7 +1998,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2026,7 +2026,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2368,7 +2368,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2481,7 +2481,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2543,7 +2543,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2571,7 +2571,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2616,7 +2616,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2661,7 +2661,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2706,7 +2706,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2841,7 +2841,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2954,7 +2954,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3095,7 +3095,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3304,7 +3304,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3417,7 +3417,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3445,7 +3445,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3575,7 +3575,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3665,7 +3665,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4271,7 +4271,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4401,7 +4401,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4429,7 +4429,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4457,7 +4457,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4502,7 +4502,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4547,7 +4547,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4705,7 +4705,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4818,7 +4818,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5100,7 +5100,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5230,7 +5230,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5258,7 +5258,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5286,7 +5286,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5331,7 +5331,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5376,7 +5376,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5534,7 +5534,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5647,7 +5647,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5972,7 +5972,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6085,7 +6085,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6113,7 +6113,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6158,7 +6158,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6203,7 +6203,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6361,7 +6361,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6474,7 +6474,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6604,7 +6604,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6922,7 +6922,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7035,7 +7035,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7063,7 +7063,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7108,7 +7108,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7153,7 +7153,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7311,7 +7311,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7452,7 +7452,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7887,7 +7887,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8000,7 +8000,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8028,7 +8028,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8090,7 +8090,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8135,7 +8135,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8293,7 +8293,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8406,7 +8406,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8502,7 +8502,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractSpinBox::StepEnabled returnValue; -+ QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8868,7 +8868,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8913,7 +8913,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8986,7 +8986,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9014,7 +9014,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9042,7 +9042,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9087,7 +9087,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- Qt::ItemFlags returnValue; -+ Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9171,7 +9171,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9199,7 +9199,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9283,7 +9283,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9339,7 +9339,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9367,7 +9367,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9412,7 +9412,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9440,7 +9440,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9468,7 +9468,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9496,7 +9496,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9569,7 +9569,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9597,7 +9597,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9779,7 +9779,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9807,7 +9807,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9835,7 +9835,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9863,7 +9863,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9891,7 +9891,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9919,7 +9919,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9947,7 +9947,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QObject* returnValue; -+ QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10003,7 +10003,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QAccessible::Relation returnValue; -+ QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10076,7 +10076,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QAccessible::State returnValue; -+ QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10132,7 +10132,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10204,7 +10204,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10232,7 +10232,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10260,7 +10260,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10288,7 +10288,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10344,7 +10344,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10372,7 +10372,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10400,7 +10400,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QObject* returnValue; -+ QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10456,7 +10456,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QAccessible::Relation returnValue; -+ QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10529,7 +10529,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QAccessible::State returnValue; -+ QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10585,7 +10585,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10680,7 +10680,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10708,7 +10708,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10736,7 +10736,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10764,7 +10764,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10792,7 +10792,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10820,7 +10820,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10848,7 +10848,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QObject* returnValue; -+ QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10904,7 +10904,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QAccessible::Relation returnValue; -+ QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10977,7 +10977,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QAccessible::State returnValue; -+ QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11033,7 +11033,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11130,7 +11130,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11158,7 +11158,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11186,7 +11186,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11214,7 +11214,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11270,7 +11270,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11298,7 +11298,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&relation, (void*)&index, (void*)&iface}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11326,7 +11326,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QObject* returnValue; -+ QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11382,7 +11382,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QAccessible::Relation returnValue; -+ QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11455,7 +11455,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QAccessible::State returnValue; -+ QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11511,7 +11511,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11625,7 +11625,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*" , "const QString&" , "QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QAccessibleInterface* returnValue; -+ QAccessibleInterface* returnValue = 0; - void* args[3] = {NULL, (void*)&key, (void*)&object}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11670,7 +11670,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11698,7 +11698,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11777,7 +11777,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QAccessibleInterface* returnValue; -+ QAccessibleInterface* returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11805,7 +11805,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAccessibleInterface* returnValue; -+ QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11850,7 +11850,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&rowIndex, (void*)&columnIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11878,7 +11878,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11934,7 +11934,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAccessibleInterface* returnValue; -+ QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11962,7 +11962,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&childIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11990,7 +11990,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12018,7 +12018,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12046,7 +12046,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12074,7 +12074,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12102,7 +12102,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12158,7 +12158,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAccessibleInterface* returnValue; -+ QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12186,7 +12186,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&childIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12214,7 +12214,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&row, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12276,7 +12276,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12304,7 +12304,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "QList*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&maxColumns, (void*)&columns}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12332,7 +12332,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12360,7 +12360,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "QList*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&maxRows, (void*)&rows}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12388,7 +12388,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAccessibleInterface* returnValue; -+ QAccessibleInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12484,7 +12484,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12512,7 +12512,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12540,7 +12540,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12568,7 +12568,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12596,7 +12596,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12624,7 +12624,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&rel, (void*)&entry, (void*)&target}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12652,7 +12652,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QObject* returnValue; -+ QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12708,7 +12708,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QAccessible::Relation returnValue; -+ QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12781,7 +12781,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QAccessible::State returnValue; -+ QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12837,7 +12837,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12959,7 +12959,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[3] = {NULL, (void*)&x, (void*)&y}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12987,7 +12987,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13015,7 +13015,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&action, (void*)&child, (void*)¶ms}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13043,7 +13043,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QAccessibleInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13099,7 +13099,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13127,7 +13127,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QAccessible::RelationFlag" , "int" , "QAccessibleInterface**"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&rel, (void*)&entry, (void*)&target}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13155,7 +13155,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QObject*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QObject* returnValue; -+ QObject* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13211,7 +13211,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::Relation" , "int" , "const QAccessibleInterface*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QAccessible::Relation returnValue; -+ QAccessible::Relation returnValue = 0; - void* args[4] = {NULL, (void*)&child, (void*)&other, (void*)&otherChild}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13284,7 +13284,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAccessible::State" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QAccessible::State returnValue; -+ QAccessible::State returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13340,7 +13340,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&child}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13496,7 +13496,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13524,7 +13524,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13883,7 +13883,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13911,7 +13911,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14058,7 +14058,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14086,7 +14086,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14114,7 +14114,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14572,7 +14572,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14617,7 +14617,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14645,7 +14645,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14673,7 +14673,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14729,7 +14729,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14774,7 +14774,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14802,7 +14802,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14830,7 +14830,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14931,7 +14931,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15176,7 +15176,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15204,7 +15204,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15429,7 +15429,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15457,7 +15457,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15569,7 +15569,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15732,7 +15732,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15995,7 +15995,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16108,7 +16108,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16136,7 +16136,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16181,7 +16181,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16226,7 +16226,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16384,7 +16384,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16542,7 +16542,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp -index dfa2818..e4590df 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp -@@ -204,7 +204,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -317,7 +317,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -345,7 +345,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -390,7 +390,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -435,7 +435,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -480,7 +480,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -621,7 +621,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -779,7 +779,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1093,7 +1093,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1121,7 +1121,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1233,7 +1233,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1396,7 +1396,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&option, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1841,7 +1841,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1971,7 +1971,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1999,7 +1999,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2044,7 +2044,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2089,7 +2089,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2247,7 +2247,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2360,7 +2360,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2731,7 +2731,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractItemView*" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QAbstractItemView* returnValue; -+ QAbstractItemView* returnValue = 0; - void* args[2] = {NULL, (void*)&rootIndex}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2810,7 +2810,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2923,7 +2923,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2985,7 +2985,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3013,7 +3013,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3058,7 +3058,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3103,7 +3103,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3148,7 +3148,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3283,7 +3283,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3396,7 +3396,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3509,7 +3509,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3718,7 +3718,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3831,7 +3831,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3859,7 +3859,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3989,7 +3989,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4079,7 +4079,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4408,7 +4408,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4521,7 +4521,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4549,7 +4549,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4594,7 +4594,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4639,7 +4639,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4814,7 +4814,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4927,7 +4927,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5564,7 +5564,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5677,7 +5677,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5705,7 +5705,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5750,7 +5750,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5795,7 +5795,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5840,7 +5840,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5981,7 +5981,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6111,7 +6111,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6399,7 +6399,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6427,7 +6427,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6539,7 +6539,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&m, (void*)&opt, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6702,7 +6702,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&sh, (void*)&opt, (void*)&w, (void*)&shret}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6952,7 +6952,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6980,7 +6980,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7367,7 +7367,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7395,7 +7395,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7700,7 +7700,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7813,7 +7813,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7841,7 +7841,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7903,7 +7903,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7948,7 +7948,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8106,7 +8106,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8219,7 +8219,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8315,7 +8315,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractSpinBox::StepEnabled returnValue; -+ QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8607,7 +8607,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8720,7 +8720,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8748,7 +8748,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8810,7 +8810,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8855,7 +8855,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9013,7 +9013,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9126,7 +9126,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9222,7 +9222,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractSpinBox::StepEnabled returnValue; -+ QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9788,7 +9788,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9901,7 +9901,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9929,7 +9929,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9974,7 +9974,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10019,7 +10019,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10177,7 +10177,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10318,7 +10318,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10654,7 +10654,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10767,7 +10767,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10795,7 +10795,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10840,7 +10840,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10885,7 +10885,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11043,7 +11043,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11156,7 +11156,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11476,7 +11476,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11606,7 +11606,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11634,7 +11634,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11679,7 +11679,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11724,7 +11724,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11882,7 +11882,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11995,7 +11995,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12320,7 +12320,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12433,7 +12433,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12461,7 +12461,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12506,7 +12506,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12551,7 +12551,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12709,7 +12709,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12850,7 +12850,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13209,7 +13209,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13322,7 +13322,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13350,7 +13350,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13395,7 +13395,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13440,7 +13440,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13598,7 +13598,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13739,7 +13739,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14106,7 +14106,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14219,7 +14219,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14247,7 +14247,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14309,7 +14309,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14354,7 +14354,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14512,7 +14512,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14625,7 +14625,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14721,7 +14721,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractSpinBox::StepEnabled returnValue; -+ QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14839,7 +14839,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"double" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- double returnValue; -+ double returnValue = 0; - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15019,7 +15019,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15047,7 +15047,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15248,7 +15248,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15276,7 +15276,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -index 2b05be0..2ec6639 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -@@ -879,7 +879,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1026,7 +1026,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1088,7 +1088,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1116,7 +1116,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1161,7 +1161,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1206,7 +1206,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1251,7 +1251,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1386,7 +1386,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1499,7 +1499,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1612,7 +1612,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1821,7 +1821,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1934,7 +1934,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1962,7 +1962,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2092,7 +2092,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2182,7 +2182,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2834,7 +2834,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2981,7 +2981,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QTreeWidgetItem*" , "int" , "const QMimeData*" , "Qt::DropAction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)&parent, (void*)&index, (void*)&data, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3009,7 +3009,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3071,7 +3071,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3099,7 +3099,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3144,7 +3144,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3189,7 +3189,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3234,7 +3234,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3369,7 +3369,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3482,7 +3482,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3510,7 +3510,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&items}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3651,7 +3651,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3860,7 +3860,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3956,7 +3956,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3984,7 +3984,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4029,7 +4029,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4142,7 +4142,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4232,7 +4232,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4554,7 +4554,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTreeWidgetItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QTreeWidgetItem* returnValue; -+ QTreeWidgetItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4610,7 +4610,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QTreeWidgetItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5003,7 +5003,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5031,7 +5031,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QUndoCommand*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5177,7 +5177,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5205,7 +5205,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5345,7 +5345,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5373,7 +5373,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5689,7 +5689,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5802,7 +5802,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5864,7 +5864,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5892,7 +5892,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5937,7 +5937,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5982,7 +5982,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6027,7 +6027,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6162,7 +6162,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6275,7 +6275,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6388,7 +6388,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6597,7 +6597,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6710,7 +6710,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6738,7 +6738,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6868,7 +6868,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6958,7 +6958,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7137,7 +7137,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7182,7 +7182,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7210,7 +7210,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7238,7 +7238,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7294,7 +7294,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7339,7 +7339,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7367,7 +7367,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7395,7 +7395,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7496,7 +7496,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7585,7 +7585,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7613,7 +7613,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8526,7 +8526,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8656,7 +8656,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8684,7 +8684,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8729,7 +8729,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8791,7 +8791,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8949,7 +8949,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9090,7 +9090,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10522,7 +10522,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10584,7 +10584,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10612,7 +10612,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10703,7 +10703,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10759,7 +10759,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10787,7 +10787,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10832,7 +10832,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10860,7 +10860,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10916,7 +10916,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11017,7 +11017,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QSpacerItem* returnValue; -+ QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11045,7 +11045,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11268,7 +11268,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11296,7 +11296,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11408,7 +11408,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&pm, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11571,7 +11571,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11918,7 +11918,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12048,7 +12048,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12076,7 +12076,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12121,7 +12121,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12166,7 +12166,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12341,7 +12341,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12454,7 +12454,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12482,7 +12482,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12612,7 +12612,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12982,7 +12982,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13095,7 +13095,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13123,7 +13123,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13168,7 +13168,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13213,7 +13213,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13320,7 +13320,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13416,7 +13416,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13557,7 +13557,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13585,7 +13585,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13726,7 +13726,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13964,7 +13964,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14077,7 +14077,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14105,7 +14105,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14150,7 +14150,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14195,7 +14195,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14353,7 +14353,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14494,7 +14494,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -index 63e376f..b0abee7 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -@@ -203,7 +203,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -333,7 +333,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -361,7 +361,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -406,7 +406,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -451,7 +451,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -609,7 +609,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -722,7 +722,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1009,7 +1009,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1139,7 +1139,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1167,7 +1167,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1212,7 +1212,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1257,7 +1257,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1415,7 +1415,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1528,7 +1528,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2238,7 +2238,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2351,7 +2351,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2379,7 +2379,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2424,7 +2424,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2469,7 +2469,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2627,7 +2627,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2768,7 +2768,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3059,7 +3059,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3172,7 +3172,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3200,7 +3200,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3245,7 +3245,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3290,7 +3290,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3465,7 +3465,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3578,7 +3578,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3885,7 +3885,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4015,7 +4015,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4060,7 +4060,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4105,7 +4105,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4263,7 +4263,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4376,7 +4376,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5012,7 +5012,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5057,7 +5057,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5085,7 +5085,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5113,7 +5113,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5169,7 +5169,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5214,7 +5214,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5242,7 +5242,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5270,7 +5270,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5371,7 +5371,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5759,7 +5759,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5872,7 +5872,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5900,7 +5900,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5945,7 +5945,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5990,7 +5990,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6148,7 +6148,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6289,7 +6289,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6544,7 +6544,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6572,7 +6572,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6731,7 +6731,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6793,7 +6793,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QGraphicsLayoutItem* returnValue; -+ QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7027,7 +7027,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7055,7 +7055,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7143,7 +7143,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7283,7 +7283,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7345,7 +7345,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QGraphicsLayoutItem* returnValue; -+ QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7695,7 +7695,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7723,7 +7723,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7751,7 +7751,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8022,7 +8022,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8225,7 +8225,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8253,7 +8253,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8326,7 +8326,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8354,7 +8354,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9512,7 +9512,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9540,7 +9540,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9766,7 +9766,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9794,7 +9794,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9822,7 +9822,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10093,7 +10093,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10296,7 +10296,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10324,7 +10324,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10397,7 +10397,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10425,7 +10425,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10511,7 +10511,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10573,7 +10573,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QGraphicsLayoutItem* returnValue; -+ QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&i}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11043,7 +11043,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11071,7 +11071,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11099,7 +11099,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11370,7 +11370,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11573,7 +11573,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11601,7 +11601,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11657,7 +11657,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11781,7 +11781,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11843,7 +11843,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QGraphicsLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QGraphicsLayoutItem* returnValue; -+ QGraphicsLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12104,7 +12104,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12132,7 +12132,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12160,7 +12160,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12290,7 +12290,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12318,7 +12318,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12504,7 +12504,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12707,7 +12707,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12735,7 +12735,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12808,7 +12808,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem::Extension"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&extension}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12853,7 +12853,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12992,7 +12992,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13020,7 +13020,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13103,7 +13103,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp -index f558afd..b773a32 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp -@@ -120,7 +120,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&other, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -148,7 +148,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPainterPath&" , "Qt::ItemSelectionMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&path, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -176,7 +176,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPointF&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&point}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -447,7 +447,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -650,7 +650,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -678,7 +678,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QGraphicsItem*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -734,7 +734,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -874,7 +874,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1063,7 +1063,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1091,7 +1091,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1119,7 +1119,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1492,7 +1492,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1644,7 +1644,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1815,7 +1815,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1843,7 +1843,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1985,7 +1985,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2013,7 +2013,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2279,7 +2279,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2307,7 +2307,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3610,7 +3610,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QGraphicsItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3765,7 +3765,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3793,7 +3793,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4039,7 +4039,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4067,7 +4067,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4220,7 +4220,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4384,7 +4384,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4412,7 +4412,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4457,7 +4457,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4502,7 +4502,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4660,7 +4660,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4773,7 +4773,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4903,7 +4903,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5536,7 +5536,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5564,7 +5564,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5592,7 +5592,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5965,7 +5965,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6426,7 +6426,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6471,7 +6471,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6499,7 +6499,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6527,7 +6527,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6583,7 +6583,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6628,7 +6628,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6656,7 +6656,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6684,7 +6684,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6785,7 +6785,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7142,7 +7142,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7255,7 +7255,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7283,7 +7283,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7328,7 +7328,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7373,7 +7373,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7531,7 +7531,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7644,7 +7644,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7941,7 +7941,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7986,7 +7986,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8014,7 +8014,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8042,7 +8042,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8098,7 +8098,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8143,7 +8143,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8171,7 +8171,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8199,7 +8199,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8300,7 +8300,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8525,7 +8525,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8638,7 +8638,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8700,7 +8700,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8728,7 +8728,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8773,7 +8773,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8818,7 +8818,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8863,7 +8863,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8998,7 +8998,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9111,7 +9111,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9224,7 +9224,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9478,7 +9478,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9591,7 +9591,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9619,7 +9619,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9749,7 +9749,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9839,7 +9839,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -index d0fcd2f..c28acdf 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -@@ -152,7 +152,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -180,7 +180,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -259,7 +259,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -287,7 +287,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -343,7 +343,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -371,7 +371,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&imageNumber}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -399,7 +399,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -427,7 +427,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -483,7 +483,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -539,7 +539,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QImage*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&image}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -584,7 +584,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QImageIOHandler::ImageOption"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&option}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -612,7 +612,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QImage&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&image}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -721,7 +721,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QImageIOPlugin::Capabilities" , "QIODevice*" , "const QByteArray&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QImageIOPlugin::Capabilities returnValue; -+ QImageIOPlugin::Capabilities returnValue = 0; - void* args[3] = {NULL, (void*)&device, (void*)&format}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -766,7 +766,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QImageIOHandler*" , "QIODevice*" , "const QByteArray&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QImageIOHandler* returnValue; -+ QImageIOHandler* returnValue = 0; - void* args[3] = {NULL, (void*)&device, (void*)&format}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -811,7 +811,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -839,7 +839,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1303,7 +1303,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1331,7 +1331,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1359,7 +1359,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1443,7 +1443,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1700,7 +1700,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QInputContext*" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QInputContext* returnValue; -+ QInputContext* returnValue = 0; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1801,7 +1801,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1829,7 +1829,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2055,7 +2055,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2185,7 +2185,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2213,7 +2213,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2258,7 +2258,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2303,7 +2303,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2461,7 +2461,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2574,7 +2574,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3022,7 +3022,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3050,7 +3050,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3214,7 +3214,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3327,7 +3327,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3355,7 +3355,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3383,7 +3383,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3610,7 +3610,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3672,7 +3672,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QVariant::Type" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[3] = {NULL, (void*)&type, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4060,7 +4060,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4088,7 +4088,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4466,7 +4466,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4494,7 +4494,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4522,7 +4522,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4726,7 +4726,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4839,7 +4839,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4867,7 +4867,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4912,7 +4912,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4957,7 +4957,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5115,7 +5115,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5256,7 +5256,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5578,7 +5578,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5691,7 +5691,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5719,7 +5719,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5764,7 +5764,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5809,7 +5809,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5967,7 +5967,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6080,7 +6080,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6434,7 +6434,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6479,7 +6479,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6507,7 +6507,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6535,7 +6535,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6591,7 +6591,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6619,7 +6619,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6647,7 +6647,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6692,7 +6692,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6720,7 +6720,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6748,7 +6748,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6804,7 +6804,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6905,7 +6905,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QSpacerItem* returnValue; -+ QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6933,7 +6933,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6978,7 +6978,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7206,7 +7206,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7262,7 +7262,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7290,7 +7290,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7335,7 +7335,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7363,7 +7363,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7419,7 +7419,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7520,7 +7520,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QSpacerItem* returnValue; -+ QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7548,7 +7548,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7734,7 +7734,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7847,7 +7847,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7875,7 +7875,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7920,7 +7920,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7965,7 +7965,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8123,7 +8123,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8236,7 +8236,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8920,7 +8920,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9033,7 +9033,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9095,7 +9095,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9123,7 +9123,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9168,7 +9168,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9213,7 +9213,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9258,7 +9258,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9393,7 +9393,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9506,7 +9506,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9619,7 +9619,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9828,7 +9828,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9941,7 +9941,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9969,7 +9969,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10099,7 +10099,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10189,7 +10189,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10761,7 +10761,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10874,7 +10874,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "const QMimeData*" , "Qt::DropAction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&data, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10902,7 +10902,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10964,7 +10964,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10992,7 +10992,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11037,7 +11037,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11082,7 +11082,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11127,7 +11127,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11262,7 +11262,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11375,7 +11375,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11403,7 +11403,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&items}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11544,7 +11544,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11753,7 +11753,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11849,7 +11849,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11877,7 +11877,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11922,7 +11922,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12035,7 +12035,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12125,7 +12125,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12407,7 +12407,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QListWidgetItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QListWidgetItem* returnValue; -+ QListWidgetItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12463,7 +12463,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QListWidgetItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12833,7 +12833,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMenu*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QMenu* returnValue; -+ QMenu* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12878,7 +12878,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12991,7 +12991,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13019,7 +13019,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13064,7 +13064,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13109,7 +13109,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13267,7 +13267,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13408,7 +13408,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -index cb77279..d17e746 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -@@ -534,7 +534,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -647,7 +647,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -675,7 +675,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -720,7 +720,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -765,7 +765,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -923,7 +923,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1036,7 +1036,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1166,7 +1166,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1469,7 +1469,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1582,7 +1582,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1610,7 +1610,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1655,7 +1655,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1700,7 +1700,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1858,7 +1858,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1971,7 +1971,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2389,7 +2389,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2502,7 +2502,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2530,7 +2530,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2575,7 +2575,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2620,7 +2620,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2778,7 +2778,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2919,7 +2919,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3411,7 +3411,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3524,7 +3524,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3552,7 +3552,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3597,7 +3597,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3642,7 +3642,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3800,7 +3800,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3913,7 +3913,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4370,7 +4370,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4500,7 +4500,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4528,7 +4528,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4573,7 +4573,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4618,7 +4618,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4776,7 +4776,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4889,7 +4889,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5405,7 +5405,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5433,7 +5433,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&o, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5545,7 +5545,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5708,7 +5708,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6043,7 +6043,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6071,7 +6071,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6099,7 +6099,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6261,7 +6261,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6289,7 +6289,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6587,7 +6587,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6717,7 +6717,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6745,7 +6745,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6773,7 +6773,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6818,7 +6818,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6863,7 +6863,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7021,7 +7021,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7134,7 +7134,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7346,7 +7346,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7374,7 +7374,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&metric}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7402,7 +7402,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7506,7 +7506,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QPaintDevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pdev}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7817,7 +7817,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9606,7 +9606,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9634,7 +9634,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9720,7 +9720,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9748,7 +9748,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&m}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9776,7 +9776,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9940,7 +9940,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9968,7 +9968,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9996,7 +9996,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&format}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10052,7 +10052,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "QPicture*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&format, (void*)&filename, (void*)&pic}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10080,7 +10080,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "const QPicture&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&format, (void*)&filename, (void*)&pic}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10309,7 +10309,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10337,7 +10337,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10632,7 +10632,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10728,7 +10728,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10773,7 +10773,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10886,7 +10886,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10914,7 +10914,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10959,7 +10959,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11004,7 +11004,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11207,7 +11207,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11320,7 +11320,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11450,7 +11450,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11994,7 +11994,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12022,7 +12022,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&watched, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12134,7 +12134,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12297,7 +12297,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&option, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -index 4cb93f4..4eb41a2 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -@@ -198,7 +198,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -328,7 +328,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -356,7 +356,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -384,7 +384,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -429,7 +429,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -474,7 +474,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -632,7 +632,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -745,7 +745,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -947,7 +947,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -975,7 +975,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1003,7 +1003,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1229,7 +1229,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1359,7 +1359,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1387,7 +1387,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1432,7 +1432,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1477,7 +1477,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1635,7 +1635,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1748,7 +1748,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2032,7 +2032,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2145,7 +2145,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2173,7 +2173,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2218,7 +2218,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2263,7 +2263,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2421,7 +2421,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2562,7 +2562,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2770,7 +2770,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2798,7 +2798,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2826,7 +2826,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3271,7 +3271,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3384,7 +3384,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3412,7 +3412,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3457,7 +3457,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3502,7 +3502,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3660,7 +3660,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3773,7 +3773,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4151,7 +4151,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4281,7 +4281,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4309,7 +4309,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4354,7 +4354,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4399,7 +4399,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4557,7 +4557,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4670,7 +4670,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5046,7 +5046,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5074,7 +5074,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5186,7 +5186,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5349,7 +5349,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&hint, (void*)&option, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5729,7 +5729,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5842,7 +5842,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5870,7 +5870,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5915,7 +5915,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5960,7 +5960,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6005,7 +6005,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6146,7 +6146,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6276,7 +6276,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6888,7 +6888,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7001,7 +7001,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7029,7 +7029,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7074,7 +7074,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7119,7 +7119,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7164,7 +7164,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7305,7 +7305,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7463,7 +7463,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7662,7 +7662,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7690,7 +7690,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7923,7 +7923,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8036,7 +8036,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8064,7 +8064,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8109,7 +8109,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8154,7 +8154,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8312,7 +8312,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8453,7 +8453,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8784,7 +8784,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8897,7 +8897,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8925,7 +8925,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8970,7 +8970,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9015,7 +9015,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9173,7 +9173,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9286,7 +9286,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9416,7 +9416,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9644,7 +9644,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9757,7 +9757,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9785,7 +9785,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9830,7 +9830,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9875,7 +9875,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10033,7 +10033,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10174,7 +10174,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10470,7 +10470,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10498,7 +10498,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10747,7 +10747,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10860,7 +10860,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10888,7 +10888,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10933,7 +10933,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -10978,7 +10978,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11136,7 +11136,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11277,7 +11277,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11570,7 +11570,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11683,7 +11683,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11711,7 +11711,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11756,7 +11756,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11801,7 +11801,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -11959,7 +11959,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12072,7 +12072,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12301,7 +12301,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12329,7 +12329,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12415,7 +12415,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12471,7 +12471,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12499,7 +12499,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12544,7 +12544,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12572,7 +12572,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12628,7 +12628,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12729,7 +12729,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSpacerItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QSpacerItem* returnValue; -+ QSpacerItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12757,7 +12757,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -12955,7 +12955,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13068,7 +13068,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13096,7 +13096,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13158,7 +13158,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13203,7 +13203,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13361,7 +13361,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13474,7 +13474,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13570,7 +13570,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractSpinBox::StepEnabled returnValue; -+ QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13688,7 +13688,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&text}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -13931,7 +13931,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14061,7 +14061,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14089,7 +14089,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14134,7 +14134,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14179,7 +14179,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14337,7 +14337,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14478,7 +14478,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14761,7 +14761,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSplitterHandle*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QSplitterHandle* returnValue; -+ QSplitterHandle* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14806,7 +14806,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14919,7 +14919,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14947,7 +14947,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -14992,7 +14992,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15037,7 +15037,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15195,7 +15195,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15308,7 +15308,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15710,7 +15710,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15823,7 +15823,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15851,7 +15851,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15896,7 +15896,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -15941,7 +15941,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16099,7 +16099,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16240,7 +16240,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16460,7 +16460,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16505,7 +16505,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16533,7 +16533,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16561,7 +16561,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::Orientations"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::Orientations returnValue; -+ Qt::Orientations returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16617,7 +16617,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16662,7 +16662,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16690,7 +16690,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16718,7 +16718,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayout*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLayout* returnValue; -+ QLayout* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -16819,7 +16819,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLayoutItem*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QLayoutItem* returnValue; -+ QLayoutItem* returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -index 4200fd0..e08ea9b 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -@@ -157,7 +157,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -270,7 +270,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -298,7 +298,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -343,7 +343,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -388,7 +388,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -546,7 +546,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -687,7 +687,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -868,7 +868,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStandardItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QStandardItem* returnValue; -+ QStandardItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -924,7 +924,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QStandardItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -986,7 +986,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1472,7 +1472,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1517,7 +1517,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1590,7 +1590,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1618,7 +1618,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1646,7 +1646,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1691,7 +1691,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- Qt::ItemFlags returnValue; -+ Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1719,7 +1719,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1803,7 +1803,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1831,7 +1831,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1915,7 +1915,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1999,7 +1999,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2027,7 +2027,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2072,7 +2072,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2100,7 +2100,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2128,7 +2128,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2156,7 +2156,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2229,7 +2229,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2257,7 +2257,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2674,7 +2674,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2787,7 +2787,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2815,7 +2815,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2860,7 +2860,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2905,7 +2905,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3063,7 +3063,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3204,7 +3204,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3467,7 +3467,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3557,7 +3557,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3585,7 +3585,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3613,7 +3613,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3658,7 +3658,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- Qt::ItemFlags returnValue; -+ Qt::ItemFlags returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3742,7 +3742,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3770,7 +3770,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3854,7 +3854,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3910,7 +3910,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3938,7 +3938,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3983,7 +3983,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4011,7 +4011,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4039,7 +4039,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4067,7 +4067,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4140,7 +4140,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4168,7 +4168,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4392,7 +4392,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4420,7 +4420,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4560,7 +4560,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::PixelMetric" , "const QStyleOption*" , "const QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[4] = {NULL, (void*)&metric, (void*)&option, (void*)&widget}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4723,7 +4723,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QStyle::StyleHint" , "const QStyleOption*" , "const QWidget*" , "QStyleHintReturn*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[5] = {NULL, (void*)&stylehint, (void*)&opt, (void*)&widget, (void*)&returnData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp -index fdda27e..5e356f9 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp -@@ -333,7 +333,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStyle*" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QStyle* returnValue; -+ QStyle* returnValue = 0; - void* args[2] = {NULL, (void*)&key}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -378,7 +378,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -406,7 +406,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -502,7 +502,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*" , "QWidget*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QWidget* returnValue; -+ QWidget* returnValue = 0; - void* args[4] = {NULL, (void*)&parent, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -575,7 +575,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*" , "QAbstractItemModel*" , "const QStyleOptionViewItem&" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)&event, (void*)&model, (void*)&option, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -603,7 +603,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -631,7 +631,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&object, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -889,7 +889,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -917,7 +917,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1022,7 +1022,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1050,7 +1050,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1170,7 +1170,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1198,7 +1198,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1415,7 +1415,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1528,7 +1528,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1556,7 +1556,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1601,7 +1601,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1646,7 +1646,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1804,7 +1804,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1917,7 +1917,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2549,7 +2549,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2662,7 +2662,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2690,7 +2690,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2735,7 +2735,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2780,7 +2780,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2938,7 +2938,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3051,7 +3051,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3636,7 +3636,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3749,7 +3749,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3811,7 +3811,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3839,7 +3839,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3884,7 +3884,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3929,7 +3929,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3974,7 +3974,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4109,7 +4109,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4222,7 +4222,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4335,7 +4335,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4544,7 +4544,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4657,7 +4657,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4685,7 +4685,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4815,7 +4815,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4905,7 +4905,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5447,7 +5447,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5560,7 +5560,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QMimeData*" , "Qt::DropAction"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[5] = {NULL, (void*)&row, (void*)&column, (void*)&data, (void*)&action}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5588,7 +5588,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "QAbstractItemView::EditTrigger" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&trigger, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5650,7 +5650,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5678,7 +5678,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5723,7 +5723,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5768,7 +5768,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5813,7 +5813,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5948,7 +5948,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6061,7 +6061,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6089,7 +6089,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&items}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6230,7 +6230,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6439,7 +6439,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelectionModel::SelectionFlags" , "const QModelIndex&" , "const QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- QItemSelectionModel::SelectionFlags returnValue; -+ QItemSelectionModel::SelectionFlags returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6535,7 +6535,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&column}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6563,7 +6563,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&row}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6608,7 +6608,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- Qt::DropActions returnValue; -+ Qt::DropActions returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6721,7 +6721,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6811,7 +6811,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7157,7 +7157,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTableWidgetItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QTableWidgetItem* returnValue; -+ QTableWidgetItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7213,7 +7213,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QTableWidgetItem&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&other}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp -index 298f275..825c580 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp -@@ -165,7 +165,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -193,7 +193,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -295,7 +295,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -391,7 +391,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -436,7 +436,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -549,7 +549,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -577,7 +577,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -622,7 +622,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -684,7 +684,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -904,7 +904,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1017,7 +1017,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1181,7 +1181,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1653,7 +1653,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTextCodec*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QTextCodec* returnValue; -+ QTextCodec* returnValue = 0; - void* args[2] = {NULL, (void*)&mib}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1681,7 +1681,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTextCodec*" , "const QByteArray&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QTextCodec* returnValue; -+ QTextCodec* returnValue = 0; - void* args[2] = {NULL, (void*)&name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1726,7 +1726,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1754,7 +1754,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2252,7 +2252,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTextObject*" , "const QTextFormat&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QTextObject* returnValue; -+ QTextObject* returnValue = 0; - void* args[2] = {NULL, (void*)&f}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2297,7 +2297,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2325,7 +2325,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2897,7 +2897,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&source}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2993,7 +2993,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QMimeData* returnValue; -+ QMimeData* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3038,7 +3038,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3151,7 +3151,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3179,7 +3179,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3224,7 +3224,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3269,7 +3269,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3472,7 +3472,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3585,7 +3585,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3715,7 +3715,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4289,7 +4289,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4317,7 +4317,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4928,7 +4928,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4956,7 +4956,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5117,7 +5117,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5145,7 +5145,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5246,7 +5246,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5274,7 +5274,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5799,7 +5799,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5912,7 +5912,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5940,7 +5940,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6002,7 +6002,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6047,7 +6047,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6205,7 +6205,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6318,7 +6318,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6414,7 +6414,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QAbstractSpinBox::StepEnabled returnValue; -+ QAbstractSpinBox::StepEnabled returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6661,7 +6661,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6774,7 +6774,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6802,7 +6802,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6847,7 +6847,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6892,7 +6892,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7050,7 +7050,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7191,7 +7191,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7637,7 +7637,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7750,7 +7750,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7778,7 +7778,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7823,7 +7823,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -7868,7 +7868,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8060,7 +8060,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8201,7 +8201,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8571,7 +8571,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8684,7 +8684,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&e}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8712,7 +8712,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8757,7 +8757,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8802,7 +8802,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8847,7 +8847,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -8988,7 +8988,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -9118,7 +9118,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -index cb99423..e7c669c 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -@@ -51,7 +51,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -79,7 +79,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -107,7 +107,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1331,7 +1331,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1359,7 +1359,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&metric}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1387,7 +1387,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2500,7 +2500,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2528,7 +2528,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2556,7 +2556,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QPaintEngine* returnValue; -+ QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -index 65ca21d..c9c9553 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -@@ -44,7 +44,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -123,7 +123,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QIODevice* returnValue; -+ QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -151,7 +151,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -179,7 +179,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -252,7 +252,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QIODevice* returnValue; -+ QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -280,7 +280,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -344,7 +344,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -372,7 +372,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -400,7 +400,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -428,7 +428,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -507,7 +507,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -535,7 +535,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -563,7 +563,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -591,7 +591,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -619,7 +619,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -647,7 +647,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -675,7 +675,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -703,7 +703,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -731,7 +731,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -759,7 +759,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -804,7 +804,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -832,7 +832,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -860,7 +860,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1143,7 +1143,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1171,7 +1171,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1598,7 +1598,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1626,7 +1626,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1815,7 +1815,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1843,7 +1843,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -1871,7 +1871,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&line, (void*)&number}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2033,7 +2033,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2061,7 +2061,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2089,7 +2089,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&line, (void*)&number}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2199,7 +2199,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2227,7 +2227,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- int returnValue; -+ int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2255,7 +2255,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&line, (void*)&number}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2405,7 +2405,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2433,7 +2433,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2461,7 +2461,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2506,7 +2506,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QLocalSocket*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QLocalSocket* returnValue; -+ QLocalSocket* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2627,7 +2627,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2655,7 +2655,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2683,7 +2683,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2711,7 +2711,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2790,7 +2790,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2818,7 +2818,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2846,7 +2846,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2874,7 +2874,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2902,7 +2902,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2930,7 +2930,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2958,7 +2958,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -2986,7 +2986,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3014,7 +3014,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3042,7 +3042,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3087,7 +3087,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3115,7 +3115,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3143,7 +3143,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3314,7 +3314,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QNetworkReply*" , "QNetworkAccessManager::Operation" , "const QNetworkRequest&" , "QIODevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); -- QNetworkReply* returnValue; -+ QNetworkReply* returnValue = 0; - void* args[4] = {NULL, (void*)&op, (void*)&request, (void*)&outgoingData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3359,7 +3359,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3387,7 +3387,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3849,7 +3849,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3877,7 +3877,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3905,7 +3905,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QList&" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&cookieList, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -3966,7 +3966,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4045,7 +4045,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QIODevice* returnValue; -+ QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4073,7 +4073,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4101,7 +4101,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4129,7 +4129,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4202,7 +4202,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- QIODevice* returnValue; -+ QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4230,7 +4230,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4704,7 +4704,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4732,7 +4732,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4760,7 +4760,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4788,7 +4788,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4867,7 +4867,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4895,7 +4895,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4940,7 +4940,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4968,7 +4968,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -4996,7 +4996,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5024,7 +5024,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5052,7 +5052,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5080,7 +5080,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5108,7 +5108,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5153,7 +5153,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5198,7 +5198,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5226,7 +5226,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5254,7 +5254,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5485,7 +5485,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5513,7 +5513,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5541,7 +5541,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5586,7 +5586,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QTcpSocket*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QTcpSocket* returnValue; -+ QTcpSocket* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5722,7 +5722,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5750,7 +5750,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5778,7 +5778,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5806,7 +5806,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5885,7 +5885,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5913,7 +5913,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5941,7 +5941,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5969,7 +5969,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -5997,7 +5997,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6025,7 +6025,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6053,7 +6053,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6081,7 +6081,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6109,7 +6109,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6137,7 +6137,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6182,7 +6182,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6210,7 +6210,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6238,7 +6238,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6272,7 +6272,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6300,7 +6300,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6328,7 +6328,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6356,7 +6356,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6435,7 +6435,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6463,7 +6463,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6491,7 +6491,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6519,7 +6519,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6547,7 +6547,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6575,7 +6575,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6603,7 +6603,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6631,7 +6631,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6659,7 +6659,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6687,7 +6687,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6732,7 +6732,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6760,7 +6760,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -6788,7 +6788,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -index 61e2158..0afa431 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -@@ -105,7 +105,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -133,7 +133,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -161,7 +161,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -189,7 +189,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&len}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -217,7 +217,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -245,7 +245,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -273,7 +273,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -318,7 +318,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&msecs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -346,7 +346,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -374,7 +374,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -402,7 +402,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -430,7 +430,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -+ qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -458,7 +458,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -486,7 +486,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&mode}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -514,7 +514,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -593,7 +593,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -@@ -621,7 +621,7 @@ if (_wrapper) { - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -+ bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { -diff --git a/3rdparty/pythonqt/generator/shellimplgenerator.cpp b/3rdparty/pythonqt/generator/shellimplgenerator.cpp -index 6b7c874..d14656b 100644 ---- a/3rdparty/pythonqt/generator/shellimplgenerator.cpp -+++ b/3rdparty/pythonqt/generator/shellimplgenerator.cpp -@@ -135,8 +135,21 @@ void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_cla - - if (hasReturnValue) { - s << " "; -- writeTypeInfo(s, fun->type(), typeOptions); -- s << " returnValue;" << endl; -+ AbstractMetaType* type = fun->type(); -+ writeTypeInfo(s, type, typeOptions); -+ s << " returnValue"; -+ -+ if ((type->isArray() && typeOptions & ArrayAsPointer) || -+ (type->indirections()) || -+ (type->isReference() && typeOptions & ConvertReferenceToPtr) || -+ type->isPrimitive()) { -+ s << " = 0"; -+ } else if (type->isEnum() || type->isTargetLangEnum() || -+ type->isIntegerEnum()) { -+ s << " = " << type->cppSignature() << "(0)"; -+ } -+ -+ s << ";" << endl; - // TODO: POD init to default is missing... - } - s << " void* args[" << QString::number(args.size()+1) << "] = {NULL"; diff --git a/3rdparty/pythonqt/patches/network-duplicates.patch b/3rdparty/pythonqt/patches/network-duplicates.patch deleted file mode 100644 index 165061b39..000000000 --- a/3rdparty/pythonqt/patches/network-duplicates.patch +++ /dev/null @@ -1,2040 +0,0 @@ -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -index 8c323fb..06d867b 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -@@ -18,11 +18,7 @@ - #include - #include - #include --#include --#include --#include - #include --#include - - QSslKey* PythonQtWrapper_QSslKey::new_QSslKey() - { -@@ -953,1769 +949,3 @@ QList PythonQtWrapper_QSslSocket::ciphers(QSslSocket* theWrappedOb - } - - -- --QTcpSocket* PythonQtShell_QTcpServer::nextPendingConnection() --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nextPendingConnection"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"QTcpSocket*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- QTcpSocket* returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("nextPendingConnection", methodInfo, result); -- } else { -- returnValue = *((QTcpSocket**)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpServer::nextPendingConnection(); --} --bool PythonQtShell_QTcpServer::hasPendingConnections() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasPendingConnections"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("hasPendingConnections", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpServer::hasPendingConnections(); --} --void PythonQtShell_QTcpServer::incomingConnection(int handle) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "incomingConnection"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "int"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&handle}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpServer::incomingConnection(handle); --} --void PythonQtShell_QTcpServer::childEvent(QChildEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QChildEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpServer::childEvent(arg__1); --} --void PythonQtShell_QTcpServer::timerEvent(QTimerEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QTimerEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpServer::timerEvent(arg__1); --} --void PythonQtShell_QTcpServer::customEvent(QEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpServer::customEvent(arg__1); --} --bool PythonQtShell_QTcpServer::event(QEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpServer::event(arg__1); --} --bool PythonQtShell_QTcpServer::eventFilter(QObject* arg__1, QEvent* arg__2) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -- void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpServer::eventFilter(arg__1, arg__2); --} --QTcpServer* PythonQtWrapper_QTcpServer::new_QTcpServer(QObject* parent) --{ --return new PythonQtShell_QTcpServer(parent); } -- --int PythonQtWrapper_QTcpServer::maxPendingConnections(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->maxPendingConnections()); --} -- --QAbstractSocket::SocketError PythonQtWrapper_QTcpServer::serverError(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->serverError()); --} -- --bool PythonQtWrapper_QTcpServer::waitForNewConnection(QTcpServer* theWrappedObject, int msec, bool* timedOut) --{ -- return ( theWrappedObject->waitForNewConnection(msec, timedOut)); --} -- --bool PythonQtWrapper_QTcpServer::isListening(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->isListening()); --} -- --unsigned short PythonQtWrapper_QTcpServer::serverPort(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->serverPort()); --} -- --QTcpSocket* PythonQtWrapper_QTcpServer::nextPendingConnection(QTcpServer* theWrappedObject) --{ -- return ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_nextPendingConnection()); --} -- --void PythonQtWrapper_QTcpServer::close(QTcpServer* theWrappedObject) --{ -- ( theWrappedObject->close()); --} -- --void PythonQtWrapper_QTcpServer::setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy) --{ -- ( theWrappedObject->setProxy(networkProxy)); --} -- --QNetworkProxy PythonQtWrapper_QTcpServer::proxy(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->proxy()); --} -- --QHostAddress PythonQtWrapper_QTcpServer::serverAddress(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->serverAddress()); --} -- --int PythonQtWrapper_QTcpServer::socketDescriptor(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->socketDescriptor()); --} -- --bool PythonQtWrapper_QTcpServer::setSocketDescriptor(QTcpServer* theWrappedObject, int socketDescriptor) --{ -- return ( theWrappedObject->setSocketDescriptor(socketDescriptor)); --} -- --void PythonQtWrapper_QTcpServer::setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections) --{ -- ( theWrappedObject->setMaxPendingConnections(numConnections)); --} -- --bool PythonQtWrapper_QTcpServer::listen(QTcpServer* theWrappedObject, const QHostAddress& address, unsigned short port) --{ -- return ( theWrappedObject->listen(address, port)); --} -- --bool PythonQtWrapper_QTcpServer::hasPendingConnections(QTcpServer* theWrappedObject) const --{ -- return ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_hasPendingConnections()); --} -- --QString PythonQtWrapper_QTcpServer::errorString(QTcpServer* theWrappedObject) const --{ -- return ( theWrappedObject->errorString()); --} -- --void PythonQtWrapper_QTcpServer::incomingConnection(QTcpServer* theWrappedObject, int handle) --{ -- ( ((PythonQtPublicPromoter_QTcpServer*)theWrappedObject)->promoted_incomingConnection(handle)); --} -- -- -- --qint64 PythonQtShell_QTcpSocket::bytesAvailable() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::bytesAvailable(); --} --bool PythonQtShell_QTcpSocket::waitForBytesWritten(int msecs) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "int"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&msecs}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::waitForBytesWritten(msecs); --} --bool PythonQtShell_QTcpSocket::isSequential() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::isSequential(); --} --qint64 PythonQtShell_QTcpSocket::readData(char* data, qint64 maxlen) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -- void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::readData(data, maxlen); --} --bool PythonQtShell_QTcpSocket::reset() --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::reset(); --} --qint64 PythonQtShell_QTcpSocket::bytesToWrite() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::bytesToWrite(); --} --bool PythonQtShell_QTcpSocket::waitForReadyRead(int msecs) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "int"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&msecs}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::waitForReadyRead(msecs); --} --qint64 PythonQtShell_QTcpSocket::writeData(const char* data, qint64 len) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -- void* args[3] = {NULL, (void*)&data, (void*)&len}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::writeData(data, len); --} --bool PythonQtShell_QTcpSocket::canReadLine() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::canReadLine(); --} --void PythonQtShell_QTcpSocket::close() --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={""}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpSocket::close(); --} --bool PythonQtShell_QTcpSocket::atEnd() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::atEnd(); --} --qint64 PythonQtShell_QTcpSocket::readLineData(char* data, qint64 maxlen) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -- void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::readLineData(data, maxlen); --} --qint64 PythonQtShell_QTcpSocket::size() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::size(); --} --qint64 PythonQtShell_QTcpSocket::pos() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::pos(); --} --bool PythonQtShell_QTcpSocket::open(QIODevice::OpenMode mode) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&mode}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::open(mode); --} --bool PythonQtShell_QTcpSocket::seek(qint64 pos) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&pos}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::seek(pos); --} --void PythonQtShell_QTcpSocket::childEvent(QChildEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QChildEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpSocket::childEvent(arg__1); --} --void PythonQtShell_QTcpSocket::timerEvent(QTimerEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QTimerEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpSocket::timerEvent(arg__1); --} --void PythonQtShell_QTcpSocket::customEvent(QEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QTcpSocket::customEvent(arg__1); --} --bool PythonQtShell_QTcpSocket::event(QEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::event(arg__1); --} --bool PythonQtShell_QTcpSocket::eventFilter(QObject* arg__1, QEvent* arg__2) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -- void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QTcpSocket::eventFilter(arg__1, arg__2); --} --QTcpSocket* PythonQtWrapper_QTcpSocket::new_QTcpSocket(QObject* parent) --{ --return new PythonQtShell_QTcpSocket(parent); } -- -- -- --qint64 PythonQtShell_QUdpSocket::bytesAvailable() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesAvailable"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("bytesAvailable", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::bytesAvailable(); --} --bool PythonQtShell_QUdpSocket::waitForBytesWritten(int msecs) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForBytesWritten"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "int"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&msecs}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("waitForBytesWritten", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::waitForBytesWritten(msecs); --} --qint64 PythonQtShell_QUdpSocket::size() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "size"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("size", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::size(); --} --bool PythonQtShell_QUdpSocket::isSequential() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isSequential"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("isSequential", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::isSequential(); --} --qint64 PythonQtShell_QUdpSocket::readData(char* data, qint64 maxlen) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readData"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -- void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("readData", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::readData(data, maxlen); --} --qint64 PythonQtShell_QUdpSocket::bytesToWrite() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "bytesToWrite"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("bytesToWrite", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::bytesToWrite(); --} --bool PythonQtShell_QUdpSocket::waitForReadyRead(int msecs) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "waitForReadyRead"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "int"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&msecs}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("waitForReadyRead", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::waitForReadyRead(msecs); --} --qint64 PythonQtShell_QUdpSocket::writeData(const char* data, qint64 len) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "writeData"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64" , "const char*" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -- void* args[3] = {NULL, (void*)&data, (void*)&len}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("writeData", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::writeData(data, len); --} --bool PythonQtShell_QUdpSocket::canReadLine() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canReadLine"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("canReadLine", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::canReadLine(); --} --void PythonQtShell_QUdpSocket::close() --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "close"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={""}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUdpSocket::close(); --} --bool PythonQtShell_QUdpSocket::atEnd() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "atEnd"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("atEnd", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::atEnd(); --} --qint64 PythonQtShell_QUdpSocket::readLineData(char* data, qint64 maxlen) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "readLineData"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64" , "char*" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- qint64 returnValue; -- void* args[3] = {NULL, (void*)&data, (void*)&maxlen}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("readLineData", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::readLineData(data, maxlen); --} --qint64 PythonQtShell_QUdpSocket::pos() const --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "pos"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- qint64 returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("pos", methodInfo, result); -- } else { -- returnValue = *((qint64*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::pos(); --} --bool PythonQtShell_QUdpSocket::reset() --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reset"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); -- bool returnValue; -- void* args[1] = {NULL}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("reset", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::reset(); --} --bool PythonQtShell_QUdpSocket::open(QIODevice::OpenMode mode) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "open"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QIODevice::OpenMode"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&mode}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("open", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::open(mode); --} --bool PythonQtShell_QUdpSocket::seek(qint64 pos) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "seek"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&pos}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("seek", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::seek(pos); --} --void PythonQtShell_QUdpSocket::childEvent(QChildEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QChildEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUdpSocket::childEvent(arg__1); --} --void PythonQtShell_QUdpSocket::timerEvent(QTimerEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QTimerEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUdpSocket::timerEvent(arg__1); --} --void PythonQtShell_QUdpSocket::customEvent(QEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUdpSocket::customEvent(arg__1); --} --bool PythonQtShell_QUdpSocket::event(QEvent* arg__1) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- bool returnValue; -- void* args[2] = {NULL, (void*)&arg__1}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::event(arg__1); --} --bool PythonQtShell_QUdpSocket::eventFilter(QObject* arg__1, QEvent* arg__2) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); -- bool returnValue; -- void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { -- args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); -- if (args[0]!=&returnValue) { -- if (args[0]==NULL) { -- PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); -- } else { -- returnValue = *((bool*)args[0]); -- } -- } -- } -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return returnValue; -- } --} -- return QUdpSocket::eventFilter(arg__1, arg__2); --} --QUdpSocket* PythonQtWrapper_QUdpSocket::new_QUdpSocket(QObject* parent) --{ --return new PythonQtShell_QUdpSocket(parent); } -- --qint64 PythonQtWrapper_QUdpSocket::writeDatagram(QUdpSocket* theWrappedObject, const QByteArray& datagram, const QHostAddress& host, unsigned short port) --{ -- return ( theWrappedObject->writeDatagram(datagram, host, port)); --} -- --bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, unsigned short port) --{ -- return ( theWrappedObject->bind(port)); --} -- --bool PythonQtWrapper_QUdpSocket::hasPendingDatagrams(QUdpSocket* theWrappedObject) const --{ -- return ( theWrappedObject->hasPendingDatagrams()); --} -- --qint64 PythonQtWrapper_QUdpSocket::pendingDatagramSize(QUdpSocket* theWrappedObject) const --{ -- return ( theWrappedObject->pendingDatagramSize()); --} -- --bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, unsigned short port, QUdpSocket::BindMode mode) --{ -- return ( theWrappedObject->bind(port, mode)); --} -- --bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QUdpSocket::BindMode mode) --{ -- return ( theWrappedObject->bind(address, port, mode)); --} -- --bool PythonQtWrapper_QUdpSocket::bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port) --{ -- return ( theWrappedObject->bind(address, port)); --} -- --qint64 PythonQtWrapper_QUdpSocket::readDatagram(QUdpSocket* theWrappedObject, char* data, qint64 maxlen, QHostAddress* host, unsigned short* port) --{ -- return ( theWrappedObject->readDatagram(data, maxlen, host, port)); --} -- -- -- --void PythonQtShell_QUrlInfo::setWritable(bool b) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setWritable"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&b}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setWritable(b); --} --void PythonQtShell_QUrlInfo::setName(const QString& name) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setName"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "const QString&"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&name}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setName(name); --} --void PythonQtShell_QUrlInfo::setReadable(bool b) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setReadable"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&b}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setReadable(b); --} --void PythonQtShell_QUrlInfo::setGroup(const QString& s) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setGroup"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "const QString&"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&s}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setGroup(s); --} --void PythonQtShell_QUrlInfo::setSize(qint64 size) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSize"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "qint64"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&size}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setSize(size); --} --void PythonQtShell_QUrlInfo::setFile(bool b) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFile"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&b}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setFile(b); --} --void PythonQtShell_QUrlInfo::setLastModified(const QDateTime& dt) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setLastModified"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "const QDateTime&"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&dt}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setLastModified(dt); --} --void PythonQtShell_QUrlInfo::setDir(bool b) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setDir"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&b}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setDir(b); --} --void PythonQtShell_QUrlInfo::setPermissions(int p) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setPermissions"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "int"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&p}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setPermissions(p); --} --void PythonQtShell_QUrlInfo::setOwner(const QString& s) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setOwner"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "const QString&"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&s}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setOwner(s); --} --void PythonQtShell_QUrlInfo::setSymLink(bool b) --{ --if (_wrapper) { -- PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setSymLink"); -- PyErr_Clear(); -- if (obj && !PythonQtSlotFunction_Check(obj)) { -- static const char* argumentList[] ={"" , "bool"}; -- static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); -- void* args[2] = {NULL, (void*)&b}; -- PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); -- if (result) { Py_DECREF(result); } -- Py_DECREF(obj); -- return; -- } --} -- QUrlInfo::setSymLink(b); --} --QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo() --{ --return new PythonQtShell_QUrlInfo(); } -- --QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) --{ --return new PythonQtShell_QUrlInfo(name, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable); } -- --QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable) --{ --return new PythonQtShell_QUrlInfo(url, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable); } -- --QUrlInfo* PythonQtWrapper_QUrlInfo::new_QUrlInfo(const QUrlInfo& ui) --{ --return new PythonQtShell_QUrlInfo(ui); } -- --bool PythonQtWrapper_QUrlInfo::isValid(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->isValid()); --} -- --bool PythonQtWrapper_QUrlInfo::isWritable(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->isWritable()); --} -- --void PythonQtWrapper_QUrlInfo::setWritable(QUrlInfo* theWrappedObject, bool b) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setWritable(b)); --} -- --bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_equal(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) --{ -- return (QUrlInfo::equal(i1, i2, sortBy)); --} -- --void PythonQtWrapper_QUrlInfo::setName(QUrlInfo* theWrappedObject, const QString& name) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setName(name)); --} -- --void PythonQtWrapper_QUrlInfo::setReadable(QUrlInfo* theWrappedObject, bool b) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setReadable(b)); --} -- --bool PythonQtWrapper_QUrlInfo::isDir(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->isDir()); --} -- --QString PythonQtWrapper_QUrlInfo::name(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->name()); --} -- --void PythonQtWrapper_QUrlInfo::setLastRead(QUrlInfo* theWrappedObject, const QDateTime& dt) --{ -- ( theWrappedObject->setLastRead(dt)); --} -- --void PythonQtWrapper_QUrlInfo::setGroup(QUrlInfo* theWrappedObject, const QString& s) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setGroup(s)); --} -- --bool PythonQtWrapper_QUrlInfo::isExecutable(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->isExecutable()); --} -- --QDateTime PythonQtWrapper_QUrlInfo::lastModified(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->lastModified()); --} -- --bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_greaterThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) --{ -- return (QUrlInfo::greaterThan(i1, i2, sortBy)); --} -- --void PythonQtWrapper_QUrlInfo::setSize(QUrlInfo* theWrappedObject, qint64 size) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setSize(size)); --} -- --QString PythonQtWrapper_QUrlInfo::owner(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->owner()); --} -- --bool PythonQtWrapper_QUrlInfo::operator_equal(QUrlInfo* theWrappedObject, const QUrlInfo& i) const --{ -- return ( (*theWrappedObject)== i); --} -- --void PythonQtWrapper_QUrlInfo::setFile(QUrlInfo* theWrappedObject, bool b) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setFile(b)); --} -- --bool PythonQtWrapper_QUrlInfo::isSymLink(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->isSymLink()); --} -- --void PythonQtWrapper_QUrlInfo::setLastModified(QUrlInfo* theWrappedObject, const QDateTime& dt) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setLastModified(dt)); --} -- --void PythonQtWrapper_QUrlInfo::setDir(QUrlInfo* theWrappedObject, bool b) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setDir(b)); --} -- --void PythonQtWrapper_QUrlInfo::setPermissions(QUrlInfo* theWrappedObject, int p) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setPermissions(p)); --} -- --bool PythonQtWrapper_QUrlInfo::isFile(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->isFile()); --} -- --bool PythonQtWrapper_QUrlInfo::isReadable(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->isReadable()); --} -- --void PythonQtWrapper_QUrlInfo::setOwner(QUrlInfo* theWrappedObject, const QString& s) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setOwner(s)); --} -- --QString PythonQtWrapper_QUrlInfo::group(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->group()); --} -- --qint64 PythonQtWrapper_QUrlInfo::size(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->size()); --} -- --bool PythonQtWrapper_QUrlInfo::static_QUrlInfo_lessThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy) --{ -- return (QUrlInfo::lessThan(i1, i2, sortBy)); --} -- --QDateTime PythonQtWrapper_QUrlInfo::lastRead(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->lastRead()); --} -- --int PythonQtWrapper_QUrlInfo::permissions(QUrlInfo* theWrappedObject) const --{ -- return ( theWrappedObject->permissions()); --} -- --void PythonQtWrapper_QUrlInfo::setSymLink(QUrlInfo* theWrappedObject, bool b) --{ -- ( ((PythonQtPublicPromoter_QUrlInfo*)theWrappedObject)->promoted_setSymLink(b)); --} -- -- -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h -index 923fd89..d5ca517 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.h -@@ -16,11 +16,7 @@ - #include - #include - #include --#include --#include --#include - #include --#include - - - -@@ -170,237 +166,3 @@ void delete_QSslSocket(QSslSocket* obj) { delete obj; } - - - -- --class PythonQtShell_QTcpServer : public QTcpServer --{ --public: -- PythonQtShell_QTcpServer(QObject* parent = 0):QTcpServer(parent),_wrapper(NULL) {}; -- --virtual QTcpSocket* nextPendingConnection(); --virtual bool hasPendingConnections() const; --virtual void incomingConnection(int handle); --virtual void childEvent(QChildEvent* arg__1); --virtual void timerEvent(QTimerEvent* arg__1); --virtual void customEvent(QEvent* arg__1); --virtual bool event(QEvent* arg__1); --virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -- -- PythonQtInstanceWrapper* _wrapper; --}; -- --class PythonQtPublicPromoter_QTcpServer : public QTcpServer --{ public: --inline QTcpSocket* promoted_nextPendingConnection() { return QTcpServer::nextPendingConnection(); } --inline bool promoted_hasPendingConnections() const { return QTcpServer::hasPendingConnections(); } --inline void promoted_incomingConnection(int handle) { QTcpServer::incomingConnection(handle); } --}; -- --class PythonQtWrapper_QTcpServer : public QObject --{ Q_OBJECT --public: --public slots: --QTcpServer* new_QTcpServer(QObject* parent = 0); --void delete_QTcpServer(QTcpServer* obj) { delete obj; } -- int maxPendingConnections(QTcpServer* theWrappedObject) const; -- QAbstractSocket::SocketError serverError(QTcpServer* theWrappedObject) const; -- bool waitForNewConnection(QTcpServer* theWrappedObject, int msec = 0, bool* timedOut = 0); -- bool isListening(QTcpServer* theWrappedObject) const; -- unsigned short serverPort(QTcpServer* theWrappedObject) const; -- QTcpSocket* nextPendingConnection(QTcpServer* theWrappedObject); -- void close(QTcpServer* theWrappedObject); -- void setProxy(QTcpServer* theWrappedObject, const QNetworkProxy& networkProxy); -- QNetworkProxy proxy(QTcpServer* theWrappedObject) const; -- QHostAddress serverAddress(QTcpServer* theWrappedObject) const; -- int socketDescriptor(QTcpServer* theWrappedObject) const; -- bool setSocketDescriptor(QTcpServer* theWrappedObject, int socketDescriptor); -- void setMaxPendingConnections(QTcpServer* theWrappedObject, int numConnections); -- bool listen(QTcpServer* theWrappedObject, const QHostAddress& address = QHostAddress::Any, unsigned short port = 0); -- bool hasPendingConnections(QTcpServer* theWrappedObject) const; -- QString errorString(QTcpServer* theWrappedObject) const; -- void incomingConnection(QTcpServer* theWrappedObject, int handle); --}; -- -- -- -- -- --class PythonQtShell_QTcpSocket : public QTcpSocket --{ --public: -- PythonQtShell_QTcpSocket(QObject* parent = 0):QTcpSocket(parent),_wrapper(NULL) {}; -- --virtual qint64 bytesAvailable() const; --virtual bool waitForBytesWritten(int msecs); --virtual bool isSequential() const; --virtual qint64 readData(char* data, qint64 maxlen); --virtual bool reset(); --virtual qint64 bytesToWrite() const; --virtual bool waitForReadyRead(int msecs); --virtual qint64 writeData(const char* data, qint64 len); --virtual bool canReadLine() const; --virtual void close(); --virtual bool atEnd() const; --virtual qint64 readLineData(char* data, qint64 maxlen); --virtual qint64 size() const; --virtual qint64 pos() const; --virtual bool open(QIODevice::OpenMode mode); --virtual bool seek(qint64 pos); --virtual void childEvent(QChildEvent* arg__1); --virtual void timerEvent(QTimerEvent* arg__1); --virtual void customEvent(QEvent* arg__1); --virtual bool event(QEvent* arg__1); --virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -- -- PythonQtInstanceWrapper* _wrapper; --}; -- --class PythonQtWrapper_QTcpSocket : public QObject --{ Q_OBJECT --public: --public slots: --QTcpSocket* new_QTcpSocket(QObject* parent = 0); --void delete_QTcpSocket(QTcpSocket* obj) { delete obj; } --}; -- -- -- -- -- --class PythonQtShell_QUdpSocket : public QUdpSocket --{ --public: -- PythonQtShell_QUdpSocket(QObject* parent = 0):QUdpSocket(parent),_wrapper(NULL) {}; -- --virtual qint64 bytesAvailable() const; --virtual bool waitForBytesWritten(int msecs); --virtual qint64 size() const; --virtual bool isSequential() const; --virtual qint64 readData(char* data, qint64 maxlen); --virtual qint64 bytesToWrite() const; --virtual bool waitForReadyRead(int msecs); --virtual qint64 writeData(const char* data, qint64 len); --virtual bool canReadLine() const; --virtual void close(); --virtual bool atEnd() const; --virtual qint64 readLineData(char* data, qint64 maxlen); --virtual qint64 pos() const; --virtual bool reset(); --virtual bool open(QIODevice::OpenMode mode); --virtual bool seek(qint64 pos); --virtual void childEvent(QChildEvent* arg__1); --virtual void timerEvent(QTimerEvent* arg__1); --virtual void customEvent(QEvent* arg__1); --virtual bool event(QEvent* arg__1); --virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -- -- PythonQtInstanceWrapper* _wrapper; --}; -- --class PythonQtWrapper_QUdpSocket : public QObject --{ Q_OBJECT --public: --Q_ENUMS(BindFlag ) --Q_FLAGS(BindMode ) --enum BindFlag{ -- DefaultForPlatform = QUdpSocket::DefaultForPlatform, ShareAddress = QUdpSocket::ShareAddress, DontShareAddress = QUdpSocket::DontShareAddress, ReuseAddressHint = QUdpSocket::ReuseAddressHint}; --Q_DECLARE_FLAGS(BindMode, BindFlag) --public slots: --QUdpSocket* new_QUdpSocket(QObject* parent = 0); --void delete_QUdpSocket(QUdpSocket* obj) { delete obj; } -- qint64 writeDatagram(QUdpSocket* theWrappedObject, const QByteArray& datagram, const QHostAddress& host, unsigned short port); -- bool bind(QUdpSocket* theWrappedObject, unsigned short port = 0); -- bool hasPendingDatagrams(QUdpSocket* theWrappedObject) const; -- qint64 pendingDatagramSize(QUdpSocket* theWrappedObject) const; -- bool bind(QUdpSocket* theWrappedObject, unsigned short port, QUdpSocket::BindMode mode); -- bool bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port, QUdpSocket::BindMode mode); -- bool bind(QUdpSocket* theWrappedObject, const QHostAddress& address, unsigned short port); -- qint64 readDatagram(QUdpSocket* theWrappedObject, char* data, qint64 maxlen, QHostAddress* host = 0, unsigned short* port = 0); --}; -- -- -- -- -- --class PythonQtShell_QUrlInfo : public QUrlInfo --{ --public: -- PythonQtShell_QUrlInfo():QUrlInfo(),_wrapper(NULL) {}; -- PythonQtShell_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable):QUrlInfo(name, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable),_wrapper(NULL) {}; -- PythonQtShell_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable):QUrlInfo(url, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable),_wrapper(NULL) {}; -- PythonQtShell_QUrlInfo(const QUrlInfo& ui):QUrlInfo(ui),_wrapper(NULL) {}; -- --virtual void setWritable(bool b); --virtual void setName(const QString& name); --virtual void setReadable(bool b); --virtual void setGroup(const QString& s); --virtual void setSize(qint64 size); --virtual void setFile(bool b); --virtual void setLastModified(const QDateTime& dt); --virtual void setDir(bool b); --virtual void setPermissions(int p); --virtual void setOwner(const QString& s); --virtual void setSymLink(bool b); -- -- PythonQtInstanceWrapper* _wrapper; --}; -- --class PythonQtPublicPromoter_QUrlInfo : public QUrlInfo --{ public: --inline void promoted_setWritable(bool b) { QUrlInfo::setWritable(b); } --inline void promoted_setName(const QString& name) { QUrlInfo::setName(name); } --inline void promoted_setReadable(bool b) { QUrlInfo::setReadable(b); } --inline void promoted_setGroup(const QString& s) { QUrlInfo::setGroup(s); } --inline void promoted_setSize(qint64 size) { QUrlInfo::setSize(size); } --inline void promoted_setFile(bool b) { QUrlInfo::setFile(b); } --inline void promoted_setLastModified(const QDateTime& dt) { QUrlInfo::setLastModified(dt); } --inline void promoted_setDir(bool b) { QUrlInfo::setDir(b); } --inline void promoted_setPermissions(int p) { QUrlInfo::setPermissions(p); } --inline void promoted_setOwner(const QString& s) { QUrlInfo::setOwner(s); } --inline void promoted_setSymLink(bool b) { QUrlInfo::setSymLink(b); } --}; -- --class PythonQtWrapper_QUrlInfo : public QObject --{ Q_OBJECT --public: --Q_ENUMS(PermissionSpec ) --enum PermissionSpec{ -- ReadOwner = QUrlInfo::ReadOwner, WriteOwner = QUrlInfo::WriteOwner, ExeOwner = QUrlInfo::ExeOwner, ReadGroup = QUrlInfo::ReadGroup, WriteGroup = QUrlInfo::WriteGroup, ExeGroup = QUrlInfo::ExeGroup, ReadOther = QUrlInfo::ReadOther, WriteOther = QUrlInfo::WriteOther, ExeOther = QUrlInfo::ExeOther}; --public slots: --QUrlInfo* new_QUrlInfo(); --QUrlInfo* new_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable); --QUrlInfo* new_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable); --QUrlInfo* new_QUrlInfo(const QUrlInfo& ui); --void delete_QUrlInfo(QUrlInfo* obj) { delete obj; } -- bool isValid(QUrlInfo* theWrappedObject) const; -- bool isWritable(QUrlInfo* theWrappedObject) const; -- void setWritable(QUrlInfo* theWrappedObject, bool b); -- bool static_QUrlInfo_equal(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); -- void setName(QUrlInfo* theWrappedObject, const QString& name); -- void setReadable(QUrlInfo* theWrappedObject, bool b); -- bool isDir(QUrlInfo* theWrappedObject) const; -- QString name(QUrlInfo* theWrappedObject) const; -- void setLastRead(QUrlInfo* theWrappedObject, const QDateTime& dt); -- void setGroup(QUrlInfo* theWrappedObject, const QString& s); -- bool isExecutable(QUrlInfo* theWrappedObject) const; -- QDateTime lastModified(QUrlInfo* theWrappedObject) const; -- bool static_QUrlInfo_greaterThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); -- void setSize(QUrlInfo* theWrappedObject, qint64 size); -- QString owner(QUrlInfo* theWrappedObject) const; -- bool operator_equal(QUrlInfo* theWrappedObject, const QUrlInfo& i) const; -- void setFile(QUrlInfo* theWrappedObject, bool b); -- bool isSymLink(QUrlInfo* theWrappedObject) const; -- void setLastModified(QUrlInfo* theWrappedObject, const QDateTime& dt); -- void setDir(QUrlInfo* theWrappedObject, bool b); -- void setPermissions(QUrlInfo* theWrappedObject, int p); -- bool isFile(QUrlInfo* theWrappedObject) const; -- bool isReadable(QUrlInfo* theWrappedObject) const; -- void setOwner(QUrlInfo* theWrappedObject, const QString& s); -- QString group(QUrlInfo* theWrappedObject) const; -- qint64 size(QUrlInfo* theWrappedObject) const; -- bool static_QUrlInfo_lessThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); -- QDateTime lastRead(QUrlInfo* theWrappedObject) const; -- int permissions(QUrlInfo* theWrappedObject) const; -- void setSymLink(QUrlInfo* theWrappedObject, bool b); --}; -- -- diff --git a/3rdparty/pythonqt/patches/qt-no-cast-to-ascii.patch b/3rdparty/pythonqt/patches/qt-no-cast-to-ascii.patch deleted file mode 100644 index ef3c251b0..000000000 --- a/3rdparty/pythonqt/patches/qt-no-cast-to-ascii.patch +++ /dev/null @@ -1,218 +0,0 @@ -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp -index b3759cb..07d8818 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp -@@ -202,10 +202,12 @@ QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, co - return &( theWrappedObject->append(a)); - } - -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const QString& s) - { - return &( theWrappedObject->append(s)); - } -+#endif - - QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const char* s, int len) - { -@@ -297,10 +299,12 @@ int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QBy - return ( theWrappedObject->indexOf(a, from)); - } - -+#ifndef QT_NO_CAST_TO_ASCII - int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QString& s, int from) const - { - return ( theWrappedObject->indexOf(s, from)); - } -+#endif - - QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, char c) - { -@@ -312,10 +316,12 @@ QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, in - return &( theWrappedObject->insert(i, a)); - } - -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const QString& s) - { - return &( theWrappedObject->insert(i, s)); - } -+#endif - - QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const char* s, int len) - { -@@ -342,10 +348,12 @@ int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const - return ( theWrappedObject->lastIndexOf(a, from)); - } - -+#ifndef QT_NO_CAST_TO_ASCII - int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const QString& s, int from) const - { - return ( theWrappedObject->lastIndexOf(s, from)); - } -+#endif - - QByteArray PythonQtWrapper_QByteArray::left(QByteArray* theWrappedObject, int len) const - { -@@ -522,20 +530,24 @@ QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, c - return &( theWrappedObject->replace(before, after)); - } - -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char c, const QString& after) - { - return &( theWrappedObject->replace(c, after)); - } -+#endif - - QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QByteArray& before, const QByteArray& after) - { - return &( theWrappedObject->replace(before, after)); - } - -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QString& before, const QByteArray& after) - { - return &( theWrappedObject->replace(before, after)); - } -+#endif - - QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const char* before, int bsize, const char* after, int asize) - { -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h -index 56e8bf0..9be4d90 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.h -@@ -80,7 +80,9 @@ QByteArray* new_QByteArray(int size, char c); - void delete_QByteArray(QByteArray* obj) { delete obj; } - QByteArray* append(QByteArray* theWrappedObject, char c); - QByteArray* append(QByteArray* theWrappedObject, const QByteArray& a); -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* append(QByteArray* theWrappedObject, const QString& s); -+#endif - QByteArray* append(QByteArray* theWrappedObject, const char* s, int len); - char at(QByteArray* theWrappedObject, int i) const; - int capacity(QByteArray* theWrappedObject) const; -@@ -99,16 +101,22 @@ void delete_QByteArray(QByteArray* obj) { delete obj; } - QByteArray static_QByteArray_fromPercentEncoding(const QByteArray& pctEncoded, char percent = '%'); - int indexOf(QByteArray* theWrappedObject, char c, int from = 0) const; - int indexOf(QByteArray* theWrappedObject, const QByteArray& a, int from = 0) const; -+#ifndef QT_NO_CAST_TO_ASCII - int indexOf(QByteArray* theWrappedObject, const QString& s, int from = 0) const; -+#endif - QByteArray* insert(QByteArray* theWrappedObject, int i, char c); - QByteArray* insert(QByteArray* theWrappedObject, int i, const QByteArray& a); -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* insert(QByteArray* theWrappedObject, int i, const QString& s); -+#endif - QByteArray* insert(QByteArray* theWrappedObject, int i, const char* s, int len); - bool isEmpty(QByteArray* theWrappedObject) const; - bool isNull(QByteArray* theWrappedObject) const; - int lastIndexOf(QByteArray* theWrappedObject, char c, int from = -1) const; - int lastIndexOf(QByteArray* theWrappedObject, const QByteArray& a, int from = -1) const; -+#ifndef QT_NO_CAST_TO_ASCII - int lastIndexOf(QByteArray* theWrappedObject, const QString& s, int from = -1) const; -+#endif - QByteArray left(QByteArray* theWrappedObject, int len) const; - QByteArray leftJustified(QByteArray* theWrappedObject, int width, char fill = ' ', bool truncate = false) const; - int length(QByteArray* theWrappedObject) const; -@@ -144,9 +152,13 @@ void delete_QByteArray(QByteArray* obj) { delete obj; } - QByteArray repeated(QByteArray* theWrappedObject, int times) const; - QByteArray* replace(QByteArray* theWrappedObject, char before, char after); - QByteArray* replace(QByteArray* theWrappedObject, char before, const QByteArray& after); -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* replace(QByteArray* theWrappedObject, char c, const QString& after); -+#endif - QByteArray* replace(QByteArray* theWrappedObject, const QByteArray& before, const QByteArray& after); -+#ifndef QT_NO_CAST_TO_ASCII - QByteArray* replace(QByteArray* theWrappedObject, const QString& before, const QByteArray& after); -+#endif - QByteArray* replace(QByteArray* theWrappedObject, const char* before, int bsize, const char* after, int asize); - QByteArray* replace(QByteArray* theWrappedObject, int index, int len, const QByteArray& s); - void reserve(QByteArray* theWrappedObject, int size); -diff --git a/3rdparty/pythonqt/qt-no-cast-to-ascii.patch b/3rdparty/pythonqt/qt-no-cast-to-ascii.patch -index f2f1922..3960a99 100644 ---- a/3rdparty/pythonqt/qt-no-cast-to-ascii.patch -+++ b/3rdparty/pythonqt/qt-no-cast-to-ascii.patch -@@ -1,81 +0,0 @@ --diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp --index b3759cb..07d8818 100644 ----- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp --+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core_builtin/com_trolltech_qt_core_builtin0.cpp --@@ -202,10 +202,12 @@ QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, co -- return &( theWrappedObject->append(a)); -- } -- --+#ifndef QT_NO_CAST_TO_ASCII -- QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const QString& s) -- { -- return &( theWrappedObject->append(s)); -- } --+#endif -- -- QByteArray* PythonQtWrapper_QByteArray::append(QByteArray* theWrappedObject, const char* s, int len) -- { --@@ -297,10 +299,12 @@ int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QBy -- return ( theWrappedObject->indexOf(a, from)); -- } -- --+#ifndef QT_NO_CAST_TO_ASCII -- int PythonQtWrapper_QByteArray::indexOf(QByteArray* theWrappedObject, const QString& s, int from) const -- { -- return ( theWrappedObject->indexOf(s, from)); -- } --+#endif -- -- QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, char c) -- { --@@ -312,10 +316,12 @@ QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, in -- return &( theWrappedObject->insert(i, a)); -- } -- --+#ifndef QT_NO_CAST_TO_ASCII -- QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const QString& s) -- { -- return &( theWrappedObject->insert(i, s)); -- } --+#endif -- -- QByteArray* PythonQtWrapper_QByteArray::insert(QByteArray* theWrappedObject, int i, const char* s, int len) -- { --@@ -342,10 +348,12 @@ int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const -- return ( theWrappedObject->lastIndexOf(a, from)); -- } -- --+#ifndef QT_NO_CAST_TO_ASCII -- int PythonQtWrapper_QByteArray::lastIndexOf(QByteArray* theWrappedObject, const QString& s, int from) const -- { -- return ( theWrappedObject->lastIndexOf(s, from)); -- } --+#endif -- -- QByteArray PythonQtWrapper_QByteArray::left(QByteArray* theWrappedObject, int len) const -- { --@@ -522,20 +530,24 @@ QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, c -- return &( theWrappedObject->replace(before, after)); -- } -- --+#ifndef QT_NO_CAST_TO_ASCII -- QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, char c, const QString& after) -- { -- return &( theWrappedObject->replace(c, after)); -- } --+#endif -- -- QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QByteArray& before, const QByteArray& after) -- { -- return &( theWrappedObject->replace(before, after)); -- } -- --+#ifndef QT_NO_CAST_TO_ASCII -- QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const QString& before, const QByteArray& after) -- { -- return &( theWrappedObject->replace(before, after)); -- } --+#endif -- -- QByteArray* PythonQtWrapper_QByteArray::replace(QByteArray* theWrappedObject, const char* before, int bsize, const char* after, int asize) -- { diff --git a/3rdparty/pythonqt/patches/shell-callable-reference-count.patch b/3rdparty/pythonqt/patches/shell-callable-reference-count.patch deleted file mode 100644 index 415bb9414..000000000 --- a/3rdparty/pythonqt/patches/shell-callable-reference-count.patch +++ /dev/null @@ -1,44904 +0,0 @@ -commit 4cb2d1286872697e14b43ca9894ff7275333ad93 -Author: davidsansome -Date: Mon May 30 14:54:25 2011 +0000 - - Decrement the refcounts of shell methods if they're not called - - git-svn-id: https://clementine-player.googlecode.com/svn/trunk@3346 94c5599e-fc6c-11de-b061-8119ef04aefe - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -index 11ecbd5..cbe69d5 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core0.cpp -@@ -54,6 +54,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractAnimation::childEvent(arg__1); - } -@@ -71,6 +72,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractAnimation::customEvent(arg__1); - } -@@ -99,6 +101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -127,6 +130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractAnimation::event(event); - } -@@ -155,6 +159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractAnimation::eventFilter(arg__1, arg__2); - } -@@ -172,6 +177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractAnimation::timerEvent(arg__1); - } -@@ -189,6 +195,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -206,6 +213,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractAnimation::updateDirection(direction); - } -@@ -223,6 +231,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractAnimation::updateState(newState, oldState); - } -@@ -322,6 +331,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::buddy(index); - } -@@ -350,6 +360,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::canFetchMore(parent); - } -@@ -367,6 +378,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemModel::childEvent(arg__1); - } -@@ -395,6 +407,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -412,6 +425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemModel::customEvent(arg__1); - } -@@ -440,6 +454,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariant(); - } -@@ -468,6 +483,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::dropMimeData(data, action, row, column, parent); - } -@@ -496,6 +512,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::event(arg__1); - } -@@ -524,6 +541,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::eventFilter(arg__1, arg__2); - } -@@ -541,6 +559,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemModel::fetchMore(parent); - } -@@ -569,6 +588,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::flags(index); - } -@@ -597,6 +617,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::hasChildren(parent); - } -@@ -625,6 +646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::headerData(section, orientation, role); - } -@@ -653,6 +675,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QModelIndex(); - } -@@ -681,6 +704,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::insertColumns(column, count, parent); - } -@@ -709,6 +733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::insertRows(row, count, parent); - } -@@ -737,6 +762,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::itemData(index); - } -@@ -765,6 +791,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::match(start, role, value, hits, flags); - } -@@ -793,6 +820,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::mimeData(indexes); - } -@@ -821,6 +849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::mimeTypes(); - } -@@ -849,6 +878,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QModelIndex(); - } -@@ -877,6 +907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::removeColumns(column, count, parent); - } -@@ -905,6 +936,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::removeRows(row, count, parent); - } -@@ -922,6 +954,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemModel::revert(); - } -@@ -950,6 +983,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -978,6 +1012,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::setData(index, value, role); - } -@@ -1006,6 +1041,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::setHeaderData(section, orientation, value, role); - } -@@ -1034,6 +1070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::setItemData(index, roles); - } -@@ -1051,6 +1088,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemModel::sort(column, order); - } -@@ -1079,6 +1117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::span(index); - } -@@ -1107,6 +1146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::submit(); - } -@@ -1135,6 +1175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemModel::supportedDropActions(); - } -@@ -1152,6 +1193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemModel::timerEvent(arg__1); - } -@@ -1341,6 +1383,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::buddy(index); - } -@@ -1369,6 +1412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::canFetchMore(parent); - } -@@ -1386,6 +1430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractListModel::childEvent(arg__1); - } -@@ -1403,6 +1448,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractListModel::customEvent(arg__1); - } -@@ -1431,6 +1477,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariant(); - } -@@ -1459,6 +1506,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::dropMimeData(data, action, row, column, parent); - } -@@ -1487,6 +1535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::event(arg__1); - } -@@ -1515,6 +1564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::eventFilter(arg__1, arg__2); - } -@@ -1532,6 +1582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractListModel::fetchMore(parent); - } -@@ -1560,6 +1611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::flags(index); - } -@@ -1588,6 +1640,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::headerData(section, orientation, role); - } -@@ -1616,6 +1669,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::index(row, column, parent); - } -@@ -1644,6 +1698,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::insertColumns(column, count, parent); - } -@@ -1672,6 +1727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::insertRows(row, count, parent); - } -@@ -1700,6 +1756,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::itemData(index); - } -@@ -1728,6 +1785,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::match(start, role, value, hits, flags); - } -@@ -1756,6 +1814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::mimeData(indexes); - } -@@ -1784,6 +1843,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::mimeTypes(); - } -@@ -1812,6 +1872,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::removeColumns(column, count, parent); - } -@@ -1840,6 +1901,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::removeRows(row, count, parent); - } -@@ -1857,6 +1919,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractListModel::revert(); - } -@@ -1885,6 +1948,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -1913,6 +1977,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::setData(index, value, role); - } -@@ -1941,6 +2006,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::setHeaderData(section, orientation, value, role); - } -@@ -1969,6 +2035,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::setItemData(index, roles); - } -@@ -1986,6 +2053,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractListModel::sort(column, order); - } -@@ -2014,6 +2082,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::span(index); - } -@@ -2042,6 +2111,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::submit(); - } -@@ -2070,6 +2140,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractListModel::supportedDropActions(); - } -@@ -2087,6 +2158,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractListModel::timerEvent(arg__1); - } -@@ -2120,6 +2192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractState::childEvent(arg__1); - } -@@ -2137,6 +2210,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractState::customEvent(arg__1); - } -@@ -2165,6 +2239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractState::event(e); - } -@@ -2193,6 +2268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractState::eventFilter(arg__1, arg__2); - } -@@ -2210,6 +2286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -2227,6 +2304,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -2244,6 +2322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractState::timerEvent(arg__1); - } -@@ -2278,6 +2357,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTransition::childEvent(arg__1); - } -@@ -2295,6 +2375,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTransition::customEvent(arg__1); - } -@@ -2323,6 +2404,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTransition::event(e); - } -@@ -2351,6 +2433,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTransition::eventFilter(arg__1, arg__2); - } -@@ -2379,6 +2462,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -2396,6 +2480,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -2413,6 +2498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTransition::timerEvent(arg__1); - } -@@ -2486,6 +2572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAnimationGroup::childEvent(arg__1); - } -@@ -2503,6 +2590,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAnimationGroup::customEvent(arg__1); - } -@@ -2531,6 +2619,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -2559,6 +2648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAnimationGroup::event(event); - } -@@ -2587,6 +2677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAnimationGroup::eventFilter(arg__1, arg__2); - } -@@ -2604,6 +2695,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAnimationGroup::timerEvent(arg__1); - } -@@ -2621,6 +2713,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -2638,6 +2731,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAnimationGroup::updateDirection(direction); - } -@@ -2655,6 +2749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAnimationGroup::updateState(newState, oldState); - } -@@ -2760,6 +2855,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::atEnd(); - } -@@ -2788,6 +2884,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::bytesAvailable(); - } -@@ -2816,6 +2913,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::bytesToWrite(); - } -@@ -2844,6 +2942,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::canReadLine(); - } -@@ -2861,6 +2960,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBuffer::childEvent(arg__1); - } -@@ -2878,6 +2978,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBuffer::close(); - } -@@ -2895,6 +2996,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBuffer::customEvent(arg__1); - } -@@ -2923,6 +3025,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::event(arg__1); - } -@@ -2951,6 +3054,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::eventFilter(arg__1, arg__2); - } -@@ -2979,6 +3083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::isSequential(); - } -@@ -3007,6 +3112,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::open(openMode); - } -@@ -3035,6 +3141,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::pos(); - } -@@ -3063,6 +3170,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::readData(data, maxlen); - } -@@ -3091,6 +3199,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::readLineData(data, maxlen); - } -@@ -3119,6 +3228,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::reset(); - } -@@ -3147,6 +3257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::seek(off); - } -@@ -3175,6 +3286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::size(); - } -@@ -3192,6 +3304,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBuffer::timerEvent(arg__1); - } -@@ -3220,6 +3333,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::waitForBytesWritten(msecs); - } -@@ -3248,6 +3362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::waitForReadyRead(msecs); - } -@@ -3276,6 +3391,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBuffer::writeData(data, len); - } -@@ -3422,6 +3538,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCoreApplication::childEvent(arg__1); - } -@@ -3439,6 +3556,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCoreApplication::customEvent(arg__1); - } -@@ -3467,6 +3585,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCoreApplication::event(arg__1); - } -@@ -3495,6 +3614,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCoreApplication::eventFilter(arg__1, arg__2); - } -@@ -3523,6 +3643,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCoreApplication::notify(arg__1, arg__2); - } -@@ -3540,6 +3661,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCoreApplication::timerEvent(arg__1); - } -@@ -4439,6 +4561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QEventLoop::childEvent(arg__1); - } -@@ -4456,6 +4579,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QEventLoop::customEvent(arg__1); - } -@@ -4484,6 +4608,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QEventLoop::event(arg__1); - } -@@ -4512,6 +4637,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QEventLoop::eventFilter(arg__1, arg__2); - } -@@ -4529,6 +4655,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QEventLoop::timerEvent(arg__1); - } -@@ -4582,6 +4709,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QEventTransition::childEvent(arg__1); - } -@@ -4599,6 +4727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QEventTransition::customEvent(arg__1); - } -@@ -4627,6 +4756,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QEventTransition::event(e); - } -@@ -4655,6 +4785,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QEventTransition::eventFilter(arg__1, arg__2); - } -@@ -4683,6 +4814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QEventTransition::eventTest(event); - } -@@ -4700,6 +4832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QEventTransition::onTransition(event); - } -@@ -4717,6 +4850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QEventTransition::timerEvent(arg__1); - } -@@ -4790,6 +4924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -4824,6 +4959,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::atEnd(); - } -@@ -4852,6 +4988,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::bytesAvailable(); - } -@@ -4880,6 +5017,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::bytesToWrite(); - } -@@ -4908,6 +5046,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::canReadLine(); - } -@@ -4925,6 +5064,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFile::childEvent(arg__1); - } -@@ -4942,6 +5082,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFile::close(); - } -@@ -4959,6 +5100,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFile::customEvent(arg__1); - } -@@ -4987,6 +5129,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::event(arg__1); - } -@@ -5015,6 +5158,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::eventFilter(arg__1, arg__2); - } -@@ -5043,6 +5187,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::fileEngine(); - } -@@ -5071,6 +5216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::isSequential(); - } -@@ -5099,6 +5245,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::open(flags); - } -@@ -5127,6 +5274,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::pos(); - } -@@ -5155,6 +5303,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::readData(data, maxlen); - } -@@ -5183,6 +5332,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::readLineData(data, maxlen); - } -@@ -5211,6 +5361,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::reset(); - } -@@ -5239,6 +5390,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::seek(offset); - } -@@ -5267,6 +5419,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::size(); - } -@@ -5284,6 +5437,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFile::timerEvent(arg__1); - } -@@ -5312,6 +5466,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::waitForBytesWritten(msecs); - } -@@ -5340,6 +5495,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::waitForReadyRead(msecs); - } -@@ -5368,6 +5524,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFile::writeData(data, len); - } -@@ -5840,6 +5997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileSystemWatcher::childEvent(arg__1); - } -@@ -5857,6 +6015,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileSystemWatcher::customEvent(arg__1); - } -@@ -5885,6 +6044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileSystemWatcher::event(arg__1); - } -@@ -5913,6 +6073,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileSystemWatcher::eventFilter(arg__1, arg__2); - } -@@ -5930,6 +6091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileSystemWatcher::timerEvent(arg__1); - } -@@ -5987,6 +6149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFinalState::childEvent(arg__1); - } -@@ -6004,6 +6167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFinalState::customEvent(arg__1); - } -@@ -6032,6 +6196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFinalState::event(e); - } -@@ -6060,6 +6225,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFinalState::eventFilter(arg__1, arg__2); - } -@@ -6077,6 +6243,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFinalState::onEntry(event); - } -@@ -6094,6 +6261,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFinalState::onExit(event); - } -@@ -6111,6 +6279,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFinalState::timerEvent(arg__1); - } -@@ -6149,6 +6318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHistoryState::childEvent(arg__1); - } -@@ -6166,6 +6336,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHistoryState::customEvent(arg__1); - } -@@ -6194,6 +6365,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHistoryState::event(e); - } -@@ -6222,6 +6394,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHistoryState::eventFilter(arg__1, arg__2); - } -@@ -6239,6 +6412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHistoryState::onEntry(event); - } -@@ -6256,6 +6430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHistoryState::onExit(event); - } -@@ -6273,6 +6448,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHistoryState::timerEvent(arg__1); - } -@@ -6346,6 +6522,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::atEnd(); - } -@@ -6374,6 +6551,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::bytesAvailable(); - } -@@ -6402,6 +6580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::bytesToWrite(); - } -@@ -6430,6 +6609,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::canReadLine(); - } -@@ -6447,6 +6627,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIODevice::childEvent(arg__1); - } -@@ -6464,6 +6645,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIODevice::close(); - } -@@ -6481,6 +6663,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIODevice::customEvent(arg__1); - } -@@ -6509,6 +6692,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::event(arg__1); - } -@@ -6537,6 +6721,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::eventFilter(arg__1, arg__2); - } -@@ -6565,6 +6750,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::isSequential(); - } -@@ -6593,6 +6779,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::open(mode); - } -@@ -6621,6 +6808,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::pos(); - } -@@ -6649,6 +6837,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return qint64(); - } -@@ -6677,6 +6866,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::readLineData(data, maxlen); - } -@@ -6705,6 +6895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::reset(); - } -@@ -6733,6 +6924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::seek(pos); - } -@@ -6761,6 +6953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::size(); - } -@@ -6778,6 +6971,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIODevice::timerEvent(arg__1); - } -@@ -6806,6 +7000,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::waitForBytesWritten(msecs); - } -@@ -6834,6 +7029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIODevice::waitForReadyRead(msecs); - } -@@ -6862,6 +7058,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return qint64(); - } -@@ -7066,6 +7263,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMimeData::childEvent(arg__1); - } -@@ -7083,6 +7281,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMimeData::customEvent(arg__1); - } -@@ -7111,6 +7310,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMimeData::event(arg__1); - } -@@ -7139,6 +7339,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMimeData::eventFilter(arg__1, arg__2); - } -@@ -7167,6 +7368,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMimeData::formats(); - } -@@ -7195,6 +7397,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMimeData::hasFormat(mimetype); - } -@@ -7223,6 +7426,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMimeData::retrieveData(mimetype, preferredType); - } -@@ -7240,6 +7444,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMimeData::timerEvent(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp -index 5553f54..c6a8967 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core1.cpp -@@ -86,6 +86,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QObject::childEvent(arg__1); - } -@@ -103,6 +104,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QObject::customEvent(arg__1); - } -@@ -131,6 +133,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QObject::event(arg__1); - } -@@ -159,6 +162,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QObject::eventFilter(arg__1, arg__2); - } -@@ -176,6 +180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QObject::timerEvent(arg__1); - } -@@ -319,6 +324,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QParallelAnimationGroup::childEvent(arg__1); - } -@@ -336,6 +342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QParallelAnimationGroup::customEvent(arg__1); - } -@@ -364,6 +371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QParallelAnimationGroup::duration(); - } -@@ -392,6 +400,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QParallelAnimationGroup::event(event); - } -@@ -420,6 +429,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QParallelAnimationGroup::eventFilter(arg__1, arg__2); - } -@@ -437,6 +447,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QParallelAnimationGroup::timerEvent(arg__1); - } -@@ -454,6 +465,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QParallelAnimationGroup::updateCurrentTime(currentTime); - } -@@ -471,6 +483,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QParallelAnimationGroup::updateDirection(direction); - } -@@ -488,6 +501,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QParallelAnimationGroup::updateState(newState, oldState); - } -@@ -536,6 +550,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPauseAnimation::childEvent(arg__1); - } -@@ -553,6 +568,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPauseAnimation::customEvent(arg__1); - } -@@ -581,6 +597,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPauseAnimation::duration(); - } -@@ -609,6 +626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPauseAnimation::event(e); - } -@@ -637,6 +655,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPauseAnimation::eventFilter(arg__1, arg__2); - } -@@ -654,6 +673,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPauseAnimation::timerEvent(arg__1); - } -@@ -671,6 +691,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPauseAnimation::updateCurrentTime(arg__1); - } -@@ -688,6 +709,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPauseAnimation::updateDirection(direction); - } -@@ -705,6 +727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPauseAnimation::updateState(newState, oldState); - } -@@ -763,6 +786,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::atEnd(); - } -@@ -791,6 +815,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::bytesAvailable(); - } -@@ -819,6 +844,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::bytesToWrite(); - } -@@ -847,6 +873,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::canReadLine(); - } -@@ -864,6 +891,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProcess::childEvent(arg__1); - } -@@ -881,6 +909,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProcess::close(); - } -@@ -898,6 +927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProcess::customEvent(arg__1); - } -@@ -926,6 +956,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::event(arg__1); - } -@@ -954,6 +985,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::eventFilter(arg__1, arg__2); - } -@@ -982,6 +1014,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::isSequential(); - } -@@ -1010,6 +1043,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::open(mode); - } -@@ -1038,6 +1072,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::pos(); - } -@@ -1066,6 +1101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::readData(data, maxlen); - } -@@ -1094,6 +1130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::readLineData(data, maxlen); - } -@@ -1122,6 +1159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::reset(); - } -@@ -1150,6 +1188,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::seek(pos); - } -@@ -1167,6 +1206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProcess::setupChildProcess(); - } -@@ -1195,6 +1235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::size(); - } -@@ -1212,6 +1253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProcess::timerEvent(arg__1); - } -@@ -1240,6 +1282,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::waitForBytesWritten(msecs); - } -@@ -1268,6 +1311,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::waitForReadyRead(msecs); - } -@@ -1296,6 +1340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProcess::writeData(data, len); - } -@@ -1599,6 +1644,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPropertyAnimation::childEvent(arg__1); - } -@@ -1616,6 +1662,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPropertyAnimation::customEvent(arg__1); - } -@@ -1644,6 +1691,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPropertyAnimation::duration(); - } -@@ -1672,6 +1720,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPropertyAnimation::event(event); - } -@@ -1700,6 +1749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPropertyAnimation::eventFilter(arg__1, arg__2); - } -@@ -1728,6 +1778,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPropertyAnimation::interpolated(from, to, progress); - } -@@ -1745,6 +1796,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPropertyAnimation::timerEvent(arg__1); - } -@@ -1762,6 +1814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPropertyAnimation::updateCurrentTime(arg__1); - } -@@ -1779,6 +1832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPropertyAnimation::updateCurrentValue(value); - } -@@ -1796,6 +1850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPropertyAnimation::updateDirection(direction); - } -@@ -1813,6 +1868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPropertyAnimation::updateState(newState, oldState); - } -@@ -1920,6 +1976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -1984,6 +2041,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSequentialAnimationGroup::childEvent(arg__1); - } -@@ -2001,6 +2059,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSequentialAnimationGroup::customEvent(arg__1); - } -@@ -2029,6 +2088,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSequentialAnimationGroup::duration(); - } -@@ -2057,6 +2117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSequentialAnimationGroup::event(event); - } -@@ -2085,6 +2146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSequentialAnimationGroup::eventFilter(arg__1, arg__2); - } -@@ -2102,6 +2164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSequentialAnimationGroup::timerEvent(arg__1); - } -@@ -2119,6 +2182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSequentialAnimationGroup::updateCurrentTime(arg__1); - } -@@ -2136,6 +2200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSequentialAnimationGroup::updateDirection(direction); - } -@@ -2153,6 +2218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSequentialAnimationGroup::updateState(newState, oldState); - } -@@ -2216,6 +2282,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSettings::childEvent(arg__1); - } -@@ -2233,6 +2300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSettings::customEvent(arg__1); - } -@@ -2261,6 +2329,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSettings::event(event); - } -@@ -2289,6 +2358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSettings::eventFilter(arg__1, arg__2); - } -@@ -2306,6 +2376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSettings::timerEvent(arg__1); - } -@@ -2505,6 +2576,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSignalMapper::childEvent(arg__1); - } -@@ -2522,6 +2594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSignalMapper::customEvent(arg__1); - } -@@ -2550,6 +2623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSignalMapper::event(arg__1); - } -@@ -2578,6 +2652,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSignalMapper::eventFilter(arg__1, arg__2); - } -@@ -2595,6 +2670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSignalMapper::timerEvent(arg__1); - } -@@ -2653,6 +2729,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSignalTransition::childEvent(arg__1); - } -@@ -2670,6 +2747,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSignalTransition::customEvent(arg__1); - } -@@ -2698,6 +2776,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSignalTransition::event(e); - } -@@ -2726,6 +2805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSignalTransition::eventFilter(arg__1, arg__2); - } -@@ -2754,6 +2834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSignalTransition::eventTest(event); - } -@@ -2771,6 +2852,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSignalTransition::onTransition(event); - } -@@ -2788,6 +2870,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSignalTransition::timerEvent(arg__1); - } -@@ -2850,6 +2933,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSocketNotifier::childEvent(arg__1); - } -@@ -2867,6 +2951,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSocketNotifier::customEvent(arg__1); - } -@@ -2895,6 +2980,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSocketNotifier::event(arg__1); - } -@@ -2923,6 +3009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSocketNotifier::eventFilter(arg__1, arg__2); - } -@@ -2940,6 +3027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSocketNotifier::timerEvent(arg__1); - } -@@ -2983,6 +3071,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QState::childEvent(arg__1); - } -@@ -3000,6 +3089,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QState::customEvent(arg__1); - } -@@ -3028,6 +3118,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QState::event(e); - } -@@ -3056,6 +3147,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QState::eventFilter(arg__1, arg__2); - } -@@ -3073,6 +3165,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QState::onEntry(event); - } -@@ -3090,6 +3183,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QState::onExit(event); - } -@@ -3107,6 +3201,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QState::timerEvent(arg__1); - } -@@ -3204,6 +3299,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::beginMicrostep(event); - } -@@ -3221,6 +3317,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::beginSelectTransitions(event); - } -@@ -3238,6 +3335,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::childEvent(arg__1); - } -@@ -3255,6 +3353,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::customEvent(arg__1); - } -@@ -3272,6 +3371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::endMicrostep(event); - } -@@ -3289,6 +3389,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::endSelectTransitions(event); - } -@@ -3317,6 +3418,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStateMachine::event(e); - } -@@ -3345,6 +3447,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStateMachine::eventFilter(watched, event); - } -@@ -3362,6 +3465,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::onEntry(event); - } -@@ -3379,6 +3483,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::onExit(event); - } -@@ -3396,6 +3501,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStateMachine::timerEvent(arg__1); - } -@@ -3667,6 +3773,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::atEnd(); - } -@@ -3695,6 +3802,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::bytesAvailable(); - } -@@ -3723,6 +3831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::bytesToWrite(); - } -@@ -3751,6 +3860,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::canReadLine(); - } -@@ -3768,6 +3878,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTemporaryFile::childEvent(arg__1); - } -@@ -3785,6 +3896,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTemporaryFile::close(); - } -@@ -3802,6 +3914,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTemporaryFile::customEvent(arg__1); - } -@@ -3830,6 +3943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::event(arg__1); - } -@@ -3858,6 +3972,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::eventFilter(arg__1, arg__2); - } -@@ -3886,6 +4001,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::fileEngine(); - } -@@ -3914,6 +4030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::isSequential(); - } -@@ -3942,6 +4059,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::open(flags); - } -@@ -3970,6 +4088,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::pos(); - } -@@ -3998,6 +4117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::readData(data, maxlen); - } -@@ -4026,6 +4146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::readLineData(data, maxlen); - } -@@ -4054,6 +4175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::reset(); - } -@@ -4082,6 +4204,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::seek(offset); - } -@@ -4110,6 +4233,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::size(); - } -@@ -4127,6 +4251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTemporaryFile::timerEvent(arg__1); - } -@@ -4155,6 +4280,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::waitForBytesWritten(msecs); - } -@@ -4183,6 +4309,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::waitForReadyRead(msecs); - } -@@ -4211,6 +4338,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTemporaryFile::writeData(data, len); - } -@@ -4376,6 +4504,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextCodec::aliases(); - } -@@ -4404,6 +4533,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QByteArray(); - } -@@ -4432,6 +4562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -4460,6 +4591,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -4488,6 +4620,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QByteArray(); - } -@@ -4908,6 +5041,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QThreadPool::childEvent(arg__1); - } -@@ -4925,6 +5059,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QThreadPool::customEvent(arg__1); - } -@@ -4953,6 +5088,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QThreadPool::event(arg__1); - } -@@ -4981,6 +5117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QThreadPool::eventFilter(arg__1, arg__2); - } -@@ -4998,6 +5135,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QThreadPool::timerEvent(arg__1); - } -@@ -5076,6 +5214,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeLine::childEvent(arg__1); - } -@@ -5093,6 +5232,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeLine::customEvent(arg__1); - } -@@ -5121,6 +5261,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeLine::event(arg__1); - } -@@ -5149,6 +5290,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeLine::eventFilter(arg__1, arg__2); - } -@@ -5166,6 +5308,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeLine::timerEvent(event); - } -@@ -5194,6 +5337,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeLine::valueForTime(msec); - } -@@ -5337,6 +5481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimer::childEvent(arg__1); - } -@@ -5354,6 +5499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimer::customEvent(arg__1); - } -@@ -5382,6 +5528,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimer::event(arg__1); - } -@@ -5410,6 +5557,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimer::eventFilter(arg__1, arg__2); - } -@@ -5427,6 +5575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimer::timerEvent(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp -index 419dc8e..b9ea7df 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core2.cpp -@@ -46,6 +46,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTranslator::childEvent(arg__1); - } -@@ -63,6 +64,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTranslator::customEvent(arg__1); - } -@@ -91,6 +93,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTranslator::event(arg__1); - } -@@ -119,6 +122,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTranslator::eventFilter(arg__1, arg__2); - } -@@ -147,6 +151,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTranslator::isEmpty(); - } -@@ -164,6 +169,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTranslator::timerEvent(arg__1); - } -@@ -192,6 +198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTranslator::translate(context, sourceText, disambiguation); - } -@@ -305,6 +312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVariantAnimation::childEvent(arg__1); - } -@@ -322,6 +330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVariantAnimation::customEvent(arg__1); - } -@@ -350,6 +359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariantAnimation::duration(); - } -@@ -378,6 +388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariantAnimation::event(event); - } -@@ -406,6 +417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariantAnimation::eventFilter(arg__1, arg__2); - } -@@ -434,6 +446,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariantAnimation::interpolated(from, to, progress); - } -@@ -451,6 +464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVariantAnimation::timerEvent(arg__1); - } -@@ -468,6 +482,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVariantAnimation::updateCurrentTime(arg__1); - } -@@ -485,6 +500,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -502,6 +518,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVariantAnimation::updateDirection(direction); - } -@@ -519,6 +536,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVariantAnimation::updateState(newState, oldState); - } -@@ -664,6 +682,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QXmlStreamEntityResolver::resolveEntity(publicId, systemId); - } -@@ -692,6 +711,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QXmlStreamEntityResolver::resolveUndeclaredEntity(name); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp -index 93c0706..ed2c903 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui0.cpp -@@ -101,6 +101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::actionEvent(arg__1); - } -@@ -118,6 +119,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::changeEvent(e); - } -@@ -135,6 +137,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::checkStateSet(); - } -@@ -152,6 +155,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::childEvent(arg__1); - } -@@ -169,6 +173,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::closeEvent(arg__1); - } -@@ -186,6 +191,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::contextMenuEvent(arg__1); - } -@@ -203,6 +209,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::customEvent(arg__1); - } -@@ -231,6 +238,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::devType(); - } -@@ -248,6 +256,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::dragEnterEvent(arg__1); - } -@@ -265,6 +274,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::dragLeaveEvent(arg__1); - } -@@ -282,6 +292,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::dragMoveEvent(arg__1); - } -@@ -299,6 +310,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::dropEvent(arg__1); - } -@@ -316,6 +328,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::enterEvent(arg__1); - } -@@ -344,6 +357,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::event(e); - } -@@ -372,6 +386,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::eventFilter(arg__1, arg__2); - } -@@ -389,6 +404,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::focusInEvent(e); - } -@@ -417,6 +433,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::focusNextPrevChild(next); - } -@@ -434,6 +451,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::focusOutEvent(e); - } -@@ -462,6 +480,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::heightForWidth(arg__1); - } -@@ -479,6 +498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::hideEvent(arg__1); - } -@@ -507,6 +527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::hitButton(pos); - } -@@ -524,6 +545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::inputMethodEvent(arg__1); - } -@@ -552,6 +574,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::inputMethodQuery(arg__1); - } -@@ -569,6 +592,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::keyPressEvent(e); - } -@@ -586,6 +610,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::keyReleaseEvent(e); - } -@@ -603,6 +628,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::languageChange(); - } -@@ -620,6 +646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::leaveEvent(arg__1); - } -@@ -648,6 +675,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::metric(arg__1); - } -@@ -676,6 +704,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::minimumSizeHint(); - } -@@ -693,6 +722,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::mouseDoubleClickEvent(arg__1); - } -@@ -710,6 +740,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::mouseMoveEvent(e); - } -@@ -727,6 +758,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::mousePressEvent(e); - } -@@ -744,6 +776,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::mouseReleaseEvent(e); - } -@@ -761,6 +794,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::moveEvent(arg__1); - } -@@ -778,6 +812,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::nextCheckState(); - } -@@ -806,6 +841,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::paintEngine(); - } -@@ -823,6 +859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -840,6 +877,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::resizeEvent(arg__1); - } -@@ -857,6 +895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::showEvent(arg__1); - } -@@ -885,6 +924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractButton::sizeHint(); - } -@@ -902,6 +942,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::tabletEvent(arg__1); - } -@@ -919,6 +960,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::timerEvent(e); - } -@@ -936,6 +978,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractButton::wheelEvent(arg__1); - } -@@ -1129,6 +1172,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::advance(phase); - } -@@ -1157,6 +1201,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRectF(); - } -@@ -1185,6 +1230,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::collidesWithItem(other, mode); - } -@@ -1213,6 +1259,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::collidesWithPath(path, mode); - } -@@ -1241,6 +1288,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::contains(point); - } -@@ -1258,6 +1306,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::contextMenuEvent(event); - } -@@ -1275,6 +1324,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::dragEnterEvent(event); - } -@@ -1292,6 +1342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::dragLeaveEvent(event); - } -@@ -1309,6 +1360,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::dragMoveEvent(event); - } -@@ -1326,6 +1378,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::dropEvent(event); - } -@@ -1354,6 +1407,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::extension(variant); - } -@@ -1371,6 +1425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::focusInEvent(event); - } -@@ -1388,6 +1443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::focusOutEvent(event); - } -@@ -1405,6 +1461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::hoverEnterEvent(event); - } -@@ -1422,6 +1479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::hoverLeaveEvent(event); - } -@@ -1439,6 +1497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::hoverMoveEvent(event); - } -@@ -1456,6 +1515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::inputMethodEvent(event); - } -@@ -1484,6 +1544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::inputMethodQuery(query); - } -@@ -1512,6 +1573,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::isObscuredBy(item); - } -@@ -1540,6 +1602,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::itemChange(change, value); - } -@@ -1557,6 +1620,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::keyPressEvent(event); - } -@@ -1574,6 +1638,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::keyReleaseEvent(event); - } -@@ -1591,6 +1656,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::mouseDoubleClickEvent(event); - } -@@ -1608,6 +1674,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::mouseMoveEvent(event); - } -@@ -1625,6 +1692,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::mousePressEvent(event); - } -@@ -1642,6 +1710,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::mouseReleaseEvent(event); - } -@@ -1670,6 +1739,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::opaqueArea(); - } -@@ -1687,6 +1757,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -1715,6 +1786,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::sceneEvent(event); - } -@@ -1743,6 +1815,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::sceneEventFilter(watched, event); - } -@@ -1760,6 +1833,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::setExtension(extension, variant); - } -@@ -1788,6 +1862,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::shape(); - } -@@ -1816,6 +1891,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::supportsExtension(extension); - } -@@ -1844,6 +1920,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractGraphicsShapeItem::type(); - } -@@ -1861,6 +1938,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractGraphicsShapeItem::wheelEvent(event); - } -@@ -1914,6 +1992,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemDelegate::childEvent(arg__1); - } -@@ -1942,6 +2021,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemDelegate::createEditor(parent, option, index); - } -@@ -1959,6 +2039,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemDelegate::customEvent(arg__1); - } -@@ -1987,6 +2068,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemDelegate::editorEvent(event, model, option, index); - } -@@ -2015,6 +2097,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemDelegate::event(arg__1); - } -@@ -2043,6 +2126,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemDelegate::eventFilter(arg__1, arg__2); - } -@@ -2060,6 +2144,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -2077,6 +2162,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemDelegate::setEditorData(editor, index); - } -@@ -2094,6 +2180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemDelegate::setModelData(editor, model, index); - } -@@ -2122,6 +2209,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSize(); - } -@@ -2139,6 +2227,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemDelegate::timerEvent(arg__1); - } -@@ -2156,6 +2245,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemDelegate::updateEditorGeometry(editor, option, index); - } -@@ -2204,6 +2294,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::actionEvent(arg__1); - } -@@ -2221,6 +2312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::changeEvent(arg__1); - } -@@ -2238,6 +2330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::childEvent(arg__1); - } -@@ -2255,6 +2348,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::closeEditor(editor, hint); - } -@@ -2272,6 +2366,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::closeEvent(arg__1); - } -@@ -2289,6 +2384,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::commitData(editor); - } -@@ -2306,6 +2402,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::contextMenuEvent(arg__1); - } -@@ -2323,6 +2420,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::currentChanged(current, previous); - } -@@ -2340,6 +2438,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::customEvent(arg__1); - } -@@ -2357,6 +2456,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::dataChanged(topLeft, bottomRight); - } -@@ -2385,6 +2485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::devType(); - } -@@ -2402,6 +2503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::doItemsLayout(); - } -@@ -2419,6 +2521,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::dragEnterEvent(event); - } -@@ -2436,6 +2539,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::dragLeaveEvent(event); - } -@@ -2453,6 +2557,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::dragMoveEvent(event); - } -@@ -2470,6 +2575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::dropEvent(event); - } -@@ -2498,6 +2604,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::edit(index, trigger, event); - } -@@ -2515,6 +2622,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::editorDestroyed(editor); - } -@@ -2532,6 +2640,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::enterEvent(arg__1); - } -@@ -2560,6 +2669,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::event(event); - } -@@ -2588,6 +2698,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::eventFilter(arg__1, arg__2); - } -@@ -2605,6 +2716,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::focusInEvent(event); - } -@@ -2633,6 +2745,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::focusNextPrevChild(next); - } -@@ -2650,6 +2763,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::focusOutEvent(event); - } -@@ -2678,6 +2792,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::heightForWidth(arg__1); - } -@@ -2695,6 +2810,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::hideEvent(arg__1); - } -@@ -2723,6 +2839,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -2740,6 +2857,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::horizontalScrollbarAction(action); - } -@@ -2757,6 +2875,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::horizontalScrollbarValueChanged(value); - } -@@ -2785,6 +2904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QModelIndex(); - } -@@ -2802,6 +2922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::inputMethodEvent(event); - } -@@ -2830,6 +2951,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::inputMethodQuery(query); - } -@@ -2858,6 +2980,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -2875,6 +2998,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::keyPressEvent(event); - } -@@ -2892,6 +3016,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::keyReleaseEvent(arg__1); - } -@@ -2909,6 +3034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::keyboardSearch(search); - } -@@ -2926,6 +3052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::languageChange(); - } -@@ -2943,6 +3070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::leaveEvent(arg__1); - } -@@ -2971,6 +3099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::metric(arg__1); - } -@@ -2988,6 +3117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::mouseDoubleClickEvent(event); - } -@@ -3005,6 +3135,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::mouseMoveEvent(event); - } -@@ -3022,6 +3153,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::mousePressEvent(event); - } -@@ -3039,6 +3171,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::mouseReleaseEvent(event); - } -@@ -3067,6 +3200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QModelIndex(); - } -@@ -3084,6 +3218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::moveEvent(arg__1); - } -@@ -3112,6 +3247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::paintEngine(); - } -@@ -3129,6 +3265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::paintEvent(arg__1); - } -@@ -3146,6 +3283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::reset(); - } -@@ -3163,6 +3301,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::resizeEvent(event); - } -@@ -3180,6 +3319,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::rowsAboutToBeRemoved(parent, start, end); - } -@@ -3197,6 +3337,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::rowsInserted(parent, start, end); - } -@@ -3214,6 +3355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::scrollContentsBy(dx, dy); - } -@@ -3231,6 +3373,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -3248,6 +3391,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::selectAll(); - } -@@ -3276,6 +3420,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::selectedIndexes(); - } -@@ -3293,6 +3438,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::selectionChanged(selected, deselected); - } -@@ -3321,6 +3467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::selectionCommand(index, event); - } -@@ -3338,6 +3485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::setModel(model); - } -@@ -3355,6 +3503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::setRootIndex(index); - } -@@ -3372,6 +3521,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -3389,6 +3539,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::setSelectionModel(selectionModel); - } -@@ -3406,6 +3557,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::showEvent(arg__1); - } -@@ -3434,6 +3586,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::sizeHintForColumn(column); - } -@@ -3462,6 +3615,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::sizeHintForRow(row); - } -@@ -3479,6 +3633,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::startDrag(supportedActions); - } -@@ -3496,6 +3651,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::tabletEvent(arg__1); - } -@@ -3513,6 +3669,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::timerEvent(event); - } -@@ -3530,6 +3687,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::updateEditorData(); - } -@@ -3547,6 +3705,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::updateEditorGeometries(); - } -@@ -3564,6 +3723,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::updateGeometries(); - } -@@ -3592,6 +3752,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -3609,6 +3770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::verticalScrollbarAction(action); - } -@@ -3626,6 +3788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::verticalScrollbarValueChanged(value); - } -@@ -3654,6 +3817,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::viewOptions(); - } -@@ -3682,6 +3846,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractItemView::viewportEvent(event); - } -@@ -3710,6 +3875,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRect(); - } -@@ -3738,6 +3904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRegion(); - } -@@ -3755,6 +3922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractItemView::wheelEvent(arg__1); - } -@@ -4158,6 +4326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::accept(); - } -@@ -4175,6 +4344,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::actionEvent(arg__1); - } -@@ -4192,6 +4362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::changeEvent(arg__1); - } -@@ -4209,6 +4380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::childEvent(arg__1); - } -@@ -4226,6 +4398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::closeEvent(arg__1); - } -@@ -4243,6 +4416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::contextMenuEvent(arg__1); - } -@@ -4260,6 +4434,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::customEvent(arg__1); - } -@@ -4288,6 +4463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::devType(); - } -@@ -4305,6 +4481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::done(result); - } -@@ -4322,6 +4499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::dragEnterEvent(arg__1); - } -@@ -4339,6 +4517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::dragLeaveEvent(arg__1); - } -@@ -4356,6 +4535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::dragMoveEvent(arg__1); - } -@@ -4373,6 +4553,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::dropEvent(arg__1); - } -@@ -4390,6 +4571,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::enterEvent(arg__1); - } -@@ -4418,6 +4600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::event(arg__1); - } -@@ -4446,6 +4629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::eventFilter(arg__1, arg__2); - } -@@ -4474,6 +4658,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -4491,6 +4676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::focusInEvent(arg__1); - } -@@ -4519,6 +4705,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::focusNextPrevChild(next); - } -@@ -4536,6 +4723,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::focusOutEvent(arg__1); - } -@@ -4564,6 +4752,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::heightForWidth(arg__1); - } -@@ -4581,6 +4770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::hideEvent(arg__1); - } -@@ -4598,6 +4788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::inputMethodEvent(arg__1); - } -@@ -4626,6 +4817,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::inputMethodQuery(arg__1); - } -@@ -4643,6 +4835,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::keyPressEvent(arg__1); - } -@@ -4660,6 +4853,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::keyReleaseEvent(arg__1); - } -@@ -4677,6 +4871,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::languageChange(); - } -@@ -4694,6 +4889,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::leaveEvent(arg__1); - } -@@ -4722,6 +4918,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::metric(arg__1); - } -@@ -4739,6 +4936,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::mouseDoubleClickEvent(arg__1); - } -@@ -4756,6 +4954,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::mouseMoveEvent(arg__1); - } -@@ -4773,6 +4972,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::mousePressEvent(arg__1); - } -@@ -4790,6 +4990,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::mouseReleaseEvent(arg__1); - } -@@ -4807,6 +5008,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::moveEvent(arg__1); - } -@@ -4835,6 +5037,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPageSetupDialog::paintEngine(); - } -@@ -4852,6 +5055,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::paintEvent(arg__1); - } -@@ -4869,6 +5073,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::reject(); - } -@@ -4886,6 +5091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::resizeEvent(arg__1); - } -@@ -4903,6 +5109,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::showEvent(arg__1); - } -@@ -4920,6 +5127,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::tabletEvent(arg__1); - } -@@ -4937,6 +5145,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::timerEvent(arg__1); - } -@@ -4954,6 +5163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPageSetupDialog::wheelEvent(arg__1); - } -@@ -4987,6 +5197,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::accept(); - } -@@ -5004,6 +5215,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::actionEvent(arg__1); - } -@@ -5021,6 +5233,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::changeEvent(arg__1); - } -@@ -5038,6 +5251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::childEvent(arg__1); - } -@@ -5055,6 +5269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::closeEvent(arg__1); - } -@@ -5072,6 +5287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::contextMenuEvent(arg__1); - } -@@ -5089,6 +5305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::customEvent(arg__1); - } -@@ -5117,6 +5334,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::devType(); - } -@@ -5134,6 +5352,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::done(arg__1); - } -@@ -5151,6 +5370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::dragEnterEvent(arg__1); - } -@@ -5168,6 +5388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::dragLeaveEvent(arg__1); - } -@@ -5185,6 +5406,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::dragMoveEvent(arg__1); - } -@@ -5202,6 +5424,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::dropEvent(arg__1); - } -@@ -5219,6 +5442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::enterEvent(arg__1); - } -@@ -5247,6 +5471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::event(arg__1); - } -@@ -5275,6 +5500,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::eventFilter(arg__1, arg__2); - } -@@ -5303,6 +5529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -5320,6 +5547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::focusInEvent(arg__1); - } -@@ -5348,6 +5576,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::focusNextPrevChild(next); - } -@@ -5365,6 +5594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::focusOutEvent(arg__1); - } -@@ -5393,6 +5623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::heightForWidth(arg__1); - } -@@ -5410,6 +5641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::hideEvent(arg__1); - } -@@ -5427,6 +5659,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::inputMethodEvent(arg__1); - } -@@ -5455,6 +5688,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::inputMethodQuery(arg__1); - } -@@ -5472,6 +5706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::keyPressEvent(arg__1); - } -@@ -5489,6 +5724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::keyReleaseEvent(arg__1); - } -@@ -5506,6 +5742,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::languageChange(); - } -@@ -5523,6 +5760,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::leaveEvent(arg__1); - } -@@ -5551,6 +5789,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::metric(arg__1); - } -@@ -5568,6 +5807,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::mouseDoubleClickEvent(arg__1); - } -@@ -5585,6 +5825,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::mouseMoveEvent(arg__1); - } -@@ -5602,6 +5843,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::mousePressEvent(arg__1); - } -@@ -5619,6 +5861,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::mouseReleaseEvent(arg__1); - } -@@ -5636,6 +5879,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::moveEvent(arg__1); - } -@@ -5664,6 +5908,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractPrintDialog::paintEngine(); - } -@@ -5681,6 +5926,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::paintEvent(arg__1); - } -@@ -5698,6 +5944,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::reject(); - } -@@ -5715,6 +5962,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::resizeEvent(arg__1); - } -@@ -5732,6 +5980,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::showEvent(arg__1); - } -@@ -5749,6 +5998,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::tabletEvent(arg__1); - } -@@ -5766,6 +6016,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::timerEvent(arg__1); - } -@@ -5783,6 +6034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractPrintDialog::wheelEvent(arg__1); - } -@@ -5876,6 +6128,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::actionEvent(arg__1); - } -@@ -5893,6 +6146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::changeEvent(arg__1); - } -@@ -5910,6 +6164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::childEvent(arg__1); - } -@@ -5927,6 +6182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::closeEvent(arg__1); - } -@@ -5944,6 +6200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::contextMenuEvent(arg__1); - } -@@ -5961,6 +6218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::customEvent(arg__1); - } -@@ -5989,6 +6247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::devType(); - } -@@ -6006,6 +6265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::dragEnterEvent(arg__1); - } -@@ -6023,6 +6283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::dragLeaveEvent(arg__1); - } -@@ -6040,6 +6301,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::dragMoveEvent(arg__1); - } -@@ -6057,6 +6319,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::dropEvent(arg__1); - } -@@ -6074,6 +6337,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::enterEvent(arg__1); - } -@@ -6102,6 +6366,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::event(arg__1); - } -@@ -6130,6 +6395,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::eventFilter(arg__1, arg__2); - } -@@ -6147,6 +6413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::focusInEvent(arg__1); - } -@@ -6175,6 +6442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::focusNextPrevChild(next); - } -@@ -6192,6 +6460,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::focusOutEvent(arg__1); - } -@@ -6220,6 +6489,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::heightForWidth(arg__1); - } -@@ -6237,6 +6507,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::hideEvent(arg__1); - } -@@ -6254,6 +6525,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::inputMethodEvent(arg__1); - } -@@ -6282,6 +6554,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::inputMethodQuery(arg__1); - } -@@ -6299,6 +6572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::keyPressEvent(arg__1); - } -@@ -6316,6 +6590,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::keyReleaseEvent(arg__1); - } -@@ -6333,6 +6608,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::languageChange(); - } -@@ -6350,6 +6626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::leaveEvent(arg__1); - } -@@ -6378,6 +6655,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::metric(arg__1); - } -@@ -6395,6 +6673,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::mouseDoubleClickEvent(arg__1); - } -@@ -6412,6 +6691,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::mouseMoveEvent(arg__1); - } -@@ -6429,6 +6709,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::mousePressEvent(arg__1); - } -@@ -6446,6 +6727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::mouseReleaseEvent(arg__1); - } -@@ -6463,6 +6745,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::moveEvent(arg__1); - } -@@ -6491,6 +6774,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::paintEngine(); - } -@@ -6508,6 +6792,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::paintEvent(arg__1); - } -@@ -6525,6 +6810,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::resizeEvent(arg__1); - } -@@ -6542,6 +6828,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::scrollContentsBy(dx, dy); - } -@@ -6559,6 +6846,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::showEvent(arg__1); - } -@@ -6576,6 +6864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::tabletEvent(arg__1); - } -@@ -6593,6 +6882,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::timerEvent(arg__1); - } -@@ -6621,6 +6911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractScrollArea::viewportEvent(arg__1); - } -@@ -6638,6 +6929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractScrollArea::wheelEvent(arg__1); - } -@@ -6826,6 +7118,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::actionEvent(arg__1); - } -@@ -6843,6 +7136,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::changeEvent(e); - } -@@ -6860,6 +7154,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::childEvent(arg__1); - } -@@ -6877,6 +7172,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::closeEvent(arg__1); - } -@@ -6894,6 +7190,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::contextMenuEvent(arg__1); - } -@@ -6911,6 +7208,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::customEvent(arg__1); - } -@@ -6939,6 +7237,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::devType(); - } -@@ -6956,6 +7255,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::dragEnterEvent(arg__1); - } -@@ -6973,6 +7273,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::dragLeaveEvent(arg__1); - } -@@ -6990,6 +7291,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::dragMoveEvent(arg__1); - } -@@ -7007,6 +7309,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::dropEvent(arg__1); - } -@@ -7024,6 +7327,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::enterEvent(arg__1); - } -@@ -7052,6 +7356,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::event(e); - } -@@ -7080,6 +7385,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::eventFilter(arg__1, arg__2); - } -@@ -7097,6 +7403,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::focusInEvent(arg__1); - } -@@ -7125,6 +7432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::focusNextPrevChild(next); - } -@@ -7142,6 +7450,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::focusOutEvent(arg__1); - } -@@ -7170,6 +7479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::heightForWidth(arg__1); - } -@@ -7187,6 +7497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::hideEvent(arg__1); - } -@@ -7204,6 +7515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::inputMethodEvent(arg__1); - } -@@ -7232,6 +7544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::inputMethodQuery(arg__1); - } -@@ -7249,6 +7562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::keyPressEvent(ev); - } -@@ -7266,6 +7580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::keyReleaseEvent(arg__1); - } -@@ -7283,6 +7598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::languageChange(); - } -@@ -7300,6 +7616,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::leaveEvent(arg__1); - } -@@ -7328,6 +7645,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::metric(arg__1); - } -@@ -7356,6 +7674,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::minimumSizeHint(); - } -@@ -7373,6 +7692,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::mouseDoubleClickEvent(arg__1); - } -@@ -7390,6 +7710,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::mouseMoveEvent(arg__1); - } -@@ -7407,6 +7728,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::mousePressEvent(arg__1); - } -@@ -7424,6 +7746,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::mouseReleaseEvent(arg__1); - } -@@ -7441,6 +7764,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::moveEvent(arg__1); - } -@@ -7469,6 +7793,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::paintEngine(); - } -@@ -7486,6 +7811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::paintEvent(arg__1); - } -@@ -7503,6 +7829,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::resizeEvent(arg__1); - } -@@ -7520,6 +7847,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::showEvent(arg__1); - } -@@ -7548,6 +7876,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSlider::sizeHint(); - } -@@ -7565,6 +7894,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::sliderChange(change); - } -@@ -7582,6 +7912,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::tabletEvent(arg__1); - } -@@ -7599,6 +7930,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::timerEvent(arg__1); - } -@@ -7616,6 +7948,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSlider::wheelEvent(e); - } -@@ -7774,6 +8107,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::actionEvent(arg__1); - } -@@ -7791,6 +8125,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::changeEvent(event); - } -@@ -7808,6 +8143,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::childEvent(arg__1); - } -@@ -7825,6 +8161,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::clear(); - } -@@ -7842,6 +8179,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::closeEvent(event); - } -@@ -7859,6 +8197,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::contextMenuEvent(event); - } -@@ -7876,6 +8215,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::customEvent(arg__1); - } -@@ -7904,6 +8244,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::devType(); - } -@@ -7921,6 +8262,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::dragEnterEvent(arg__1); - } -@@ -7938,6 +8280,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::dragLeaveEvent(arg__1); - } -@@ -7955,6 +8298,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::dragMoveEvent(arg__1); - } -@@ -7972,6 +8316,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::dropEvent(arg__1); - } -@@ -7989,6 +8334,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::enterEvent(arg__1); - } -@@ -8017,6 +8363,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::event(event); - } -@@ -8045,6 +8392,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::eventFilter(arg__1, arg__2); - } -@@ -8062,6 +8410,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::fixup(input); - } -@@ -8079,6 +8428,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::focusInEvent(event); - } -@@ -8107,6 +8457,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::focusNextPrevChild(next); - } -@@ -8124,6 +8475,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::focusOutEvent(event); - } -@@ -8152,6 +8504,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::heightForWidth(arg__1); - } -@@ -8169,6 +8522,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::hideEvent(event); - } -@@ -8186,6 +8540,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::inputMethodEvent(arg__1); - } -@@ -8214,6 +8569,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::inputMethodQuery(arg__1); - } -@@ -8231,6 +8587,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::keyPressEvent(event); - } -@@ -8248,6 +8605,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::keyReleaseEvent(event); - } -@@ -8265,6 +8623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::languageChange(); - } -@@ -8282,6 +8641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::leaveEvent(arg__1); - } -@@ -8310,6 +8670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::metric(arg__1); - } -@@ -8327,6 +8688,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::mouseDoubleClickEvent(arg__1); - } -@@ -8344,6 +8706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::mouseMoveEvent(event); - } -@@ -8361,6 +8724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::mousePressEvent(event); - } -@@ -8378,6 +8742,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::mouseReleaseEvent(event); - } -@@ -8395,6 +8760,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::moveEvent(arg__1); - } -@@ -8423,6 +8789,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::paintEngine(); - } -@@ -8440,6 +8807,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::paintEvent(event); - } -@@ -8457,6 +8825,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::resizeEvent(event); - } -@@ -8474,6 +8843,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::showEvent(event); - } -@@ -8491,6 +8861,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::stepBy(steps); - } -@@ -8519,6 +8890,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::stepEnabled(); - } -@@ -8536,6 +8908,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::tabletEvent(arg__1); - } -@@ -8553,6 +8926,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::timerEvent(event); - } -@@ -8581,6 +8955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSpinBox::validate(input, pos); - } -@@ -8598,6 +8973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSpinBox::wheelEvent(event); - } -@@ -8857,6 +9233,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::buddy(index); - } -@@ -8885,6 +9262,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::canFetchMore(parent); - } -@@ -8902,6 +9280,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTableModel::childEvent(arg__1); - } -@@ -8930,6 +9309,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -8947,6 +9327,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTableModel::customEvent(arg__1); - } -@@ -8975,6 +9356,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariant(); - } -@@ -9003,6 +9385,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::dropMimeData(data, action, row, column, parent); - } -@@ -9031,6 +9414,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::event(arg__1); - } -@@ -9059,6 +9443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::eventFilter(arg__1, arg__2); - } -@@ -9076,6 +9461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTableModel::fetchMore(parent); - } -@@ -9104,6 +9490,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::flags(index); - } -@@ -9132,6 +9519,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::headerData(section, orientation, role); - } -@@ -9160,6 +9548,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::index(row, column, parent); - } -@@ -9188,6 +9577,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::insertColumns(column, count, parent); - } -@@ -9216,6 +9606,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::insertRows(row, count, parent); - } -@@ -9244,6 +9635,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::itemData(index); - } -@@ -9272,6 +9664,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::match(start, role, value, hits, flags); - } -@@ -9300,6 +9693,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::mimeData(indexes); - } -@@ -9328,6 +9722,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::mimeTypes(); - } -@@ -9356,6 +9751,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::removeColumns(column, count, parent); - } -@@ -9384,6 +9780,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::removeRows(row, count, parent); - } -@@ -9401,6 +9798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTableModel::revert(); - } -@@ -9429,6 +9827,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -9457,6 +9856,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::setData(index, value, role); - } -@@ -9485,6 +9885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::setHeaderData(section, orientation, value, role); - } -@@ -9513,6 +9914,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::setItemData(index, roles); - } -@@ -9530,6 +9932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTableModel::sort(column, order); - } -@@ -9558,6 +9961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::span(index); - } -@@ -9586,6 +9990,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::submit(); - } -@@ -9614,6 +10019,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractTableModel::supportedDropActions(); - } -@@ -9631,6 +10037,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractTableModel::timerEvent(arg__1); - } -@@ -9696,6 +10103,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -9713,6 +10121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -9768,6 +10177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -9796,6 +10206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -9824,6 +10235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -9852,6 +10264,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -9880,6 +10293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -9908,6 +10322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -9936,6 +10351,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -9964,6 +10380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -9992,6 +10409,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRect(); - } -@@ -10020,6 +10438,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Relation(); - } -@@ -10048,6 +10467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Role(); - } -@@ -10065,6 +10485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -10093,6 +10514,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::State(); - } -@@ -10121,6 +10543,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -10149,6 +10572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10193,6 +10617,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -10221,6 +10646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10249,6 +10675,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10277,6 +10704,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -10305,6 +10733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10333,6 +10762,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariant(); - } -@@ -10361,6 +10791,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -10389,6 +10820,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10417,6 +10849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -10445,6 +10878,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRect(); - } -@@ -10473,6 +10907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Relation(); - } -@@ -10501,6 +10936,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Role(); - } -@@ -10518,6 +10954,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -10546,6 +10983,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::State(); - } -@@ -10574,6 +11012,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -10602,6 +11041,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10630,6 +11070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleInterfaceEx::virtual_hook(data); - } -@@ -10669,6 +11110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObject::actionText(action, t, child); - } -@@ -10697,6 +11139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10725,6 +11168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10753,6 +11197,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObject::doAction(action, child, params); - } -@@ -10781,6 +11226,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10809,6 +11255,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObject::isValid(); - } -@@ -10837,6 +11284,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10865,6 +11313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObject::object(); - } -@@ -10893,6 +11342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObject::rect(child); - } -@@ -10921,6 +11371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Relation(); - } -@@ -10949,6 +11400,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Role(); - } -@@ -10966,6 +11418,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAccessibleObject::setText(t, child, text); - } -@@ -10994,6 +11447,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::State(); - } -@@ -11022,6 +11476,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -11050,6 +11505,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObject::userActionCount(child); - } -@@ -11119,6 +11575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObjectEx::actionText(action, t, child); - } -@@ -11147,6 +11604,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -11175,6 +11633,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -11203,6 +11662,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObjectEx::doAction(action, child, params); - } -@@ -11231,6 +11691,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -11259,6 +11720,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariant(); - } -@@ -11287,6 +11749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObjectEx::isValid(); - } -@@ -11315,6 +11778,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -11343,6 +11807,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObjectEx::object(); - } -@@ -11371,6 +11836,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObjectEx::rect(child); - } -@@ -11399,6 +11865,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Relation(); - } -@@ -11427,6 +11894,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::Role(); - } -@@ -11444,6 +11912,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAccessibleObjectEx::setText(t, child, text); - } -@@ -11472,6 +11941,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessible::State(); - } -@@ -11500,6 +11970,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -11528,6 +11999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObjectEx::userActionCount(child); - } -@@ -11556,6 +12028,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleObjectEx::virtual_hook(data); - } -@@ -11614,6 +12087,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAccessiblePlugin::childEvent(arg__1); - } -@@ -11642,6 +12116,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -11659,6 +12134,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAccessiblePlugin::customEvent(arg__1); - } -@@ -11687,6 +12163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessiblePlugin::event(arg__1); - } -@@ -11715,6 +12192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessiblePlugin::eventFilter(arg__1, arg__2); - } -@@ -11743,6 +12221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -11760,6 +12239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAccessiblePlugin::timerEvent(arg__1); - } -@@ -11794,6 +12274,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -11822,6 +12303,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -11839,6 +12321,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -11867,6 +12350,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -11895,6 +12379,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -11923,6 +12408,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -11951,6 +12437,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -11979,6 +12466,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12007,6 +12495,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12035,6 +12524,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -12063,6 +12553,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -12091,6 +12582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -12119,6 +12611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12147,6 +12640,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -12175,6 +12669,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -12203,6 +12698,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12231,6 +12727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12248,6 +12745,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -12265,6 +12763,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -12293,6 +12792,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12321,6 +12821,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12349,6 +12850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12377,6 +12879,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -12405,6 +12908,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -12422,6 +12926,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -12439,6 +12944,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -12473,6 +12979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::actionText(action, t, child); - } -@@ -12501,6 +13008,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::childAt(x, y); - } -@@ -12529,6 +13037,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::childCount(); - } -@@ -12557,6 +13066,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::doAction(action, child, params); - } -@@ -12585,6 +13095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::indexOfChild(child); - } -@@ -12613,6 +13124,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::isValid(); - } -@@ -12641,6 +13153,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::navigate(rel, entry, target); - } -@@ -12669,6 +13182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::object(); - } -@@ -12697,6 +13211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::rect(child); - } -@@ -12725,6 +13240,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::relationTo(child, other, otherChild); - } -@@ -12753,6 +13269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::role(child); - } -@@ -12770,6 +13287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAccessibleWidget::setText(t, child, text); - } -@@ -12798,6 +13316,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::state(child); - } -@@ -12826,6 +13345,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::text(t, child); - } -@@ -12854,6 +13374,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidget::userActionCount(child); - } -@@ -12948,6 +13469,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::actionText(action, t, child); - } -@@ -12976,6 +13498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::childAt(x, y); - } -@@ -13004,6 +13527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::childCount(); - } -@@ -13032,6 +13556,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::doAction(action, child, params); - } -@@ -13060,6 +13585,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::indexOfChild(child); - } -@@ -13088,6 +13614,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::invokeMethodEx(method, child, params); - } -@@ -13116,6 +13643,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::isValid(); - } -@@ -13144,6 +13672,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::navigate(rel, entry, target); - } -@@ -13172,6 +13701,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::object(); - } -@@ -13200,6 +13730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::rect(child); - } -@@ -13228,6 +13759,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::relationTo(child, other, otherChild); - } -@@ -13256,6 +13788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::role(child); - } -@@ -13273,6 +13806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAccessibleWidgetEx::setText(t, child, text); - } -@@ -13301,6 +13835,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::state(child); - } -@@ -13329,6 +13864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::text(t, child); - } -@@ -13357,6 +13893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::userActionCount(child); - } -@@ -13385,6 +13922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAccessibleWidgetEx::virtual_hook(data); - } -@@ -13468,6 +14006,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAction::childEvent(arg__1); - } -@@ -13485,6 +14024,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAction::customEvent(arg__1); - } -@@ -13513,6 +14053,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAction::event(arg__1); - } -@@ -13541,6 +14082,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAction::eventFilter(arg__1, arg__2); - } -@@ -13558,6 +14100,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAction::timerEvent(arg__1); - } -@@ -13855,6 +14398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QActionGroup::childEvent(arg__1); - } -@@ -13872,6 +14416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QActionGroup::customEvent(arg__1); - } -@@ -13900,6 +14445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QActionGroup::event(arg__1); - } -@@ -13928,6 +14474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QActionGroup::eventFilter(arg__1, arg__2); - } -@@ -13945,6 +14492,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QActionGroup::timerEvent(arg__1); - } -@@ -14013,6 +14561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QApplication::childEvent(arg__1); - } -@@ -14030,6 +14579,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QApplication::commitData(sm); - } -@@ -14047,6 +14597,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QApplication::customEvent(arg__1); - } -@@ -14075,6 +14626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QApplication::event(arg__1); - } -@@ -14103,6 +14655,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QApplication::eventFilter(arg__1, arg__2); - } -@@ -14131,6 +14684,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QApplication::notify(arg__1, arg__2); - } -@@ -14148,6 +14702,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QApplication::saveState(sm); - } -@@ -14165,6 +14720,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QApplication::timerEvent(arg__1); - } -@@ -14544,6 +15100,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBoxLayout::addItem(arg__1); - } -@@ -14561,6 +15118,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBoxLayout::childEvent(e); - } -@@ -14589,6 +15147,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::count(); - } -@@ -14606,6 +15165,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBoxLayout::customEvent(arg__1); - } -@@ -14634,6 +15194,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::event(arg__1); - } -@@ -14662,6 +15223,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::eventFilter(arg__1, arg__2); - } -@@ -14690,6 +15252,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::expandingDirections(); - } -@@ -14718,6 +15281,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::geometry(); - } -@@ -14746,6 +15310,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::indexOf(arg__1); - } -@@ -14763,6 +15328,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBoxLayout::invalidate(); - } -@@ -14791,6 +15357,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::isEmpty(); - } -@@ -14819,6 +15386,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::itemAt(arg__1); - } -@@ -14847,6 +15415,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::layout(); - } -@@ -14875,6 +15444,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::maximumSize(); - } -@@ -14903,6 +15473,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::minimumSize(); - } -@@ -14920,6 +15491,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBoxLayout::setGeometry(arg__1); - } -@@ -14948,6 +15520,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBoxLayout::takeAt(arg__1); - } -@@ -14965,6 +15538,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QBoxLayout::timerEvent(arg__1); - } -@@ -15148,6 +15722,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QButtonGroup::childEvent(arg__1); - } -@@ -15165,6 +15740,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QButtonGroup::customEvent(arg__1); - } -@@ -15193,6 +15769,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QButtonGroup::event(arg__1); - } -@@ -15221,6 +15798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QButtonGroup::eventFilter(arg__1, arg__2); - } -@@ -15238,6 +15816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QButtonGroup::timerEvent(arg__1); - } -@@ -15316,6 +15895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::childEvent(arg__1); - } -@@ -15333,6 +15913,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::customEvent(arg__1); - } -@@ -15350,6 +15931,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::drawComplexControl(cc, opt, p, w); - } -@@ -15367,6 +15949,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::drawControl(element, opt, p, w); - } -@@ -15384,6 +15967,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -15401,6 +15985,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -15418,6 +16003,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::drawPrimitive(pe, opt, p, w); - } -@@ -15446,6 +16032,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::event(arg__1); - } -@@ -15474,6 +16061,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::eventFilter(o, e); - } -@@ -15502,6 +16090,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::generatedIconPixmap(iconMode, pixmap, opt); - } -@@ -15530,6 +16119,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::hitTestComplexControl(cc, opt, pt, w); - } -@@ -15558,6 +16148,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -15586,6 +16177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::pixelMetric(metric, option, widget); - } -@@ -15603,6 +16195,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::polish(arg__1); - } -@@ -15620,6 +16213,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::polish(arg__1); - } -@@ -15637,6 +16231,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::polish(arg__1); - } -@@ -15665,6 +16260,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::sizeFromContents(ct, opt, contentsSize, widget); - } -@@ -15693,6 +16289,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::standardPalette(); - } -@@ -15721,6 +16318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -15749,6 +16347,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::styleHint(hint, opt, widget, returnData); - } -@@ -15777,6 +16376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::subControlRect(cc, opt, sc, widget); - } -@@ -15805,6 +16405,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCDEStyle::subElementRect(r, opt, widget); - } -@@ -15822,6 +16423,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::timerEvent(event); - } -@@ -15839,6 +16441,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::unpolish(arg__1); - } -@@ -15856,6 +16459,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCDEStyle::unpolish(arg__1); - } -@@ -15899,6 +16503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::actionEvent(arg__1); - } -@@ -15916,6 +16521,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::changeEvent(arg__1); - } -@@ -15933,6 +16539,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::childEvent(arg__1); - } -@@ -15950,6 +16557,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::closeEvent(arg__1); - } -@@ -15967,6 +16575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::contextMenuEvent(arg__1); - } -@@ -15984,6 +16593,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::customEvent(arg__1); - } -@@ -16012,6 +16622,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::devType(); - } -@@ -16029,6 +16640,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::dragEnterEvent(arg__1); - } -@@ -16046,6 +16658,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::dragLeaveEvent(arg__1); - } -@@ -16063,6 +16676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::dragMoveEvent(arg__1); - } -@@ -16080,6 +16694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::dropEvent(arg__1); - } -@@ -16097,6 +16712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::enterEvent(arg__1); - } -@@ -16125,6 +16741,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::event(event); - } -@@ -16153,6 +16770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::eventFilter(watched, event); - } -@@ -16170,6 +16788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::focusInEvent(arg__1); - } -@@ -16198,6 +16817,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::focusNextPrevChild(next); - } -@@ -16215,6 +16835,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::focusOutEvent(arg__1); - } -@@ -16243,6 +16864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::heightForWidth(arg__1); - } -@@ -16260,6 +16882,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::hideEvent(arg__1); - } -@@ -16277,6 +16900,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::inputMethodEvent(arg__1); - } -@@ -16305,6 +16929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::inputMethodQuery(arg__1); - } -@@ -16322,6 +16947,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::keyPressEvent(event); - } -@@ -16339,6 +16965,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::keyReleaseEvent(arg__1); - } -@@ -16356,6 +16983,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::languageChange(); - } -@@ -16373,6 +17001,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::leaveEvent(arg__1); - } -@@ -16401,6 +17030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::metric(arg__1); - } -@@ -16429,6 +17059,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::minimumSizeHint(); - } -@@ -16446,6 +17077,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::mouseDoubleClickEvent(arg__1); - } -@@ -16463,6 +17095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::mouseMoveEvent(arg__1); - } -@@ -16480,6 +17113,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::mousePressEvent(event); - } -@@ -16497,6 +17131,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::mouseReleaseEvent(arg__1); - } -@@ -16514,6 +17149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::moveEvent(arg__1); - } -@@ -16531,6 +17167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::paintCell(painter, rect, date); - } -@@ -16559,6 +17196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::paintEngine(); - } -@@ -16576,6 +17214,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::paintEvent(arg__1); - } -@@ -16593,6 +17232,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::resizeEvent(event); - } -@@ -16610,6 +17250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::showEvent(arg__1); - } -@@ -16638,6 +17279,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCalendarWidget::sizeHint(); - } -@@ -16655,6 +17297,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::tabletEvent(arg__1); - } -@@ -16672,6 +17315,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::timerEvent(arg__1); - } -@@ -16689,6 +17333,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCalendarWidget::wheelEvent(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp -index e4590df..9d050f8 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui1.cpp -@@ -91,6 +91,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::actionEvent(arg__1); - } -@@ -108,6 +109,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::changeEvent(e); - } -@@ -125,6 +127,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::checkStateSet(); - } -@@ -142,6 +145,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::childEvent(arg__1); - } -@@ -159,6 +163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::closeEvent(arg__1); - } -@@ -176,6 +181,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::contextMenuEvent(arg__1); - } -@@ -193,6 +199,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::customEvent(arg__1); - } -@@ -221,6 +228,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::devType(); - } -@@ -238,6 +246,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::dragEnterEvent(arg__1); - } -@@ -255,6 +264,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::dragLeaveEvent(arg__1); - } -@@ -272,6 +282,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::dragMoveEvent(arg__1); - } -@@ -289,6 +300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::dropEvent(arg__1); - } -@@ -306,6 +318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::enterEvent(arg__1); - } -@@ -334,6 +347,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::event(e); - } -@@ -362,6 +376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::eventFilter(arg__1, arg__2); - } -@@ -379,6 +394,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::focusInEvent(e); - } -@@ -407,6 +423,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::focusNextPrevChild(next); - } -@@ -424,6 +441,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::focusOutEvent(e); - } -@@ -452,6 +470,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::heightForWidth(arg__1); - } -@@ -469,6 +488,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::hideEvent(arg__1); - } -@@ -497,6 +517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::hitButton(pos); - } -@@ -514,6 +535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::inputMethodEvent(arg__1); - } -@@ -542,6 +564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::inputMethodQuery(arg__1); - } -@@ -559,6 +582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::keyPressEvent(e); - } -@@ -576,6 +600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::keyReleaseEvent(e); - } -@@ -593,6 +618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::languageChange(); - } -@@ -610,6 +636,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::leaveEvent(arg__1); - } -@@ -638,6 +665,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::metric(arg__1); - } -@@ -666,6 +694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::minimumSizeHint(); - } -@@ -683,6 +712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::mouseDoubleClickEvent(arg__1); - } -@@ -700,6 +730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::mouseMoveEvent(arg__1); - } -@@ -717,6 +748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::mousePressEvent(e); - } -@@ -734,6 +766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::mouseReleaseEvent(e); - } -@@ -751,6 +784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::moveEvent(arg__1); - } -@@ -768,6 +802,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::nextCheckState(); - } -@@ -796,6 +831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCheckBox::paintEngine(); - } -@@ -813,6 +849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::paintEvent(arg__1); - } -@@ -830,6 +867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::resizeEvent(arg__1); - } -@@ -847,6 +885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::showEvent(arg__1); - } -@@ -864,6 +903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::tabletEvent(arg__1); - } -@@ -881,6 +921,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::timerEvent(e); - } -@@ -898,6 +939,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCheckBox::wheelEvent(arg__1); - } -@@ -980,6 +1022,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::childEvent(arg__1); - } -@@ -997,6 +1040,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::customEvent(arg__1); - } -@@ -1014,6 +1058,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::drawComplexControl(control, option, painter, widget); - } -@@ -1031,6 +1076,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::drawControl(ce, option, painter, widget); - } -@@ -1048,6 +1094,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -1065,6 +1112,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -1082,6 +1130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::drawPrimitive(elem, option, painter, widget); - } -@@ -1110,6 +1159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::event(arg__1); - } -@@ -1138,6 +1188,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::eventFilter(o, e); - } -@@ -1166,6 +1217,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::generatedIconPixmap(iconMode, pixmap, opt); - } -@@ -1194,6 +1246,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::hitTestComplexControl(cc, opt, pt, w); - } -@@ -1222,6 +1275,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -1250,6 +1304,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::pixelMetric(metric, option, widget); - } -@@ -1267,6 +1322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::polish(app); - } -@@ -1284,6 +1340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::polish(pal); - } -@@ -1301,6 +1358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::polish(widget); - } -@@ -1329,6 +1387,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::sizeFromContents(type, option, size, widget); - } -@@ -1357,6 +1416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::standardPalette(); - } -@@ -1385,6 +1445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -1413,6 +1474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::styleHint(hint, option, widget, returnData); - } -@@ -1441,6 +1503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::subControlRect(cc, opt, sc, widget); - } -@@ -1469,6 +1532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCleanlooksStyle::subElementRect(r, opt, widget); - } -@@ -1486,6 +1550,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::timerEvent(event); - } -@@ -1503,6 +1568,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::unpolish(app); - } -@@ -1520,6 +1586,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCleanlooksStyle::unpolish(widget); - } -@@ -1728,6 +1795,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::accept(); - } -@@ -1745,6 +1813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::actionEvent(arg__1); - } -@@ -1762,6 +1831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::changeEvent(event); - } -@@ -1779,6 +1849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::childEvent(arg__1); - } -@@ -1796,6 +1867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::closeEvent(arg__1); - } -@@ -1813,6 +1885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::contextMenuEvent(arg__1); - } -@@ -1830,6 +1903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::customEvent(arg__1); - } -@@ -1858,6 +1932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::devType(); - } -@@ -1875,6 +1950,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::done(result); - } -@@ -1892,6 +1968,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::dragEnterEvent(arg__1); - } -@@ -1909,6 +1986,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::dragLeaveEvent(arg__1); - } -@@ -1926,6 +2004,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::dragMoveEvent(arg__1); - } -@@ -1943,6 +2022,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::dropEvent(arg__1); - } -@@ -1960,6 +2040,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::enterEvent(arg__1); - } -@@ -1988,6 +2069,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::event(arg__1); - } -@@ -2016,6 +2098,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::eventFilter(arg__1, arg__2); - } -@@ -2033,6 +2116,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::focusInEvent(arg__1); - } -@@ -2061,6 +2145,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::focusNextPrevChild(next); - } -@@ -2078,6 +2163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::focusOutEvent(arg__1); - } -@@ -2106,6 +2192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::heightForWidth(arg__1); - } -@@ -2123,6 +2210,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::hideEvent(arg__1); - } -@@ -2140,6 +2228,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::inputMethodEvent(arg__1); - } -@@ -2168,6 +2257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::inputMethodQuery(arg__1); - } -@@ -2185,6 +2275,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::keyPressEvent(arg__1); - } -@@ -2202,6 +2293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::keyReleaseEvent(arg__1); - } -@@ -2219,6 +2311,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::languageChange(); - } -@@ -2236,6 +2329,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::leaveEvent(arg__1); - } -@@ -2264,6 +2358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::metric(arg__1); - } -@@ -2281,6 +2376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::mouseDoubleClickEvent(arg__1); - } -@@ -2298,6 +2394,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::mouseMoveEvent(arg__1); - } -@@ -2315,6 +2412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::mousePressEvent(arg__1); - } -@@ -2332,6 +2430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::mouseReleaseEvent(arg__1); - } -@@ -2349,6 +2448,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::moveEvent(arg__1); - } -@@ -2377,6 +2477,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColorDialog::paintEngine(); - } -@@ -2394,6 +2495,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::paintEvent(arg__1); - } -@@ -2411,6 +2513,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::reject(); - } -@@ -2428,6 +2531,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::resizeEvent(arg__1); - } -@@ -2445,6 +2549,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::showEvent(arg__1); - } -@@ -2462,6 +2567,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::tabletEvent(arg__1); - } -@@ -2479,6 +2585,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::timerEvent(arg__1); - } -@@ -2496,6 +2603,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColorDialog::wheelEvent(arg__1); - } -@@ -2618,6 +2726,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::actionEvent(arg__1); - } -@@ -2635,6 +2744,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::changeEvent(arg__1); - } -@@ -2652,6 +2762,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::childEvent(arg__1); - } -@@ -2669,6 +2780,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::closeEditor(editor, hint); - } -@@ -2686,6 +2798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::closeEvent(arg__1); - } -@@ -2703,6 +2816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::commitData(editor); - } -@@ -2720,6 +2834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::contextMenuEvent(arg__1); - } -@@ -2748,6 +2863,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::createColumn(rootIndex); - } -@@ -2765,6 +2881,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::currentChanged(current, previous); - } -@@ -2782,6 +2899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::customEvent(arg__1); - } -@@ -2799,6 +2917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::dataChanged(topLeft, bottomRight); - } -@@ -2827,6 +2946,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::devType(); - } -@@ -2844,6 +2964,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::doItemsLayout(); - } -@@ -2861,6 +2982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::dragEnterEvent(event); - } -@@ -2878,6 +3000,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::dragLeaveEvent(event); - } -@@ -2895,6 +3018,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::dragMoveEvent(event); - } -@@ -2912,6 +3036,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::dropEvent(event); - } -@@ -2940,6 +3065,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::edit(index, trigger, event); - } -@@ -2957,6 +3083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::editorDestroyed(editor); - } -@@ -2974,6 +3101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::enterEvent(arg__1); - } -@@ -3002,6 +3130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::event(event); - } -@@ -3030,6 +3159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::eventFilter(arg__1, arg__2); - } -@@ -3047,6 +3177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::focusInEvent(event); - } -@@ -3075,6 +3206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::focusNextPrevChild(next); - } -@@ -3092,6 +3224,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::focusOutEvent(event); - } -@@ -3120,6 +3253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::heightForWidth(arg__1); - } -@@ -3137,6 +3271,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::hideEvent(arg__1); - } -@@ -3165,6 +3300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::horizontalOffset(); - } -@@ -3182,6 +3318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::horizontalScrollbarAction(action); - } -@@ -3199,6 +3336,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::horizontalScrollbarValueChanged(value); - } -@@ -3227,6 +3365,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::indexAt(point); - } -@@ -3244,6 +3383,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::inputMethodEvent(event); - } -@@ -3272,6 +3412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::inputMethodQuery(query); - } -@@ -3300,6 +3441,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::isIndexHidden(index); - } -@@ -3317,6 +3459,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::keyPressEvent(event); - } -@@ -3334,6 +3477,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::keyReleaseEvent(arg__1); - } -@@ -3351,6 +3495,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::keyboardSearch(search); - } -@@ -3368,6 +3513,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::languageChange(); - } -@@ -3385,6 +3531,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::leaveEvent(arg__1); - } -@@ -3413,6 +3560,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::metric(arg__1); - } -@@ -3430,6 +3578,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::mouseDoubleClickEvent(event); - } -@@ -3447,6 +3596,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::mouseMoveEvent(event); - } -@@ -3464,6 +3614,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::mousePressEvent(event); - } -@@ -3481,6 +3632,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::mouseReleaseEvent(event); - } -@@ -3498,6 +3650,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::moveEvent(arg__1); - } -@@ -3526,6 +3679,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::paintEngine(); - } -@@ -3543,6 +3697,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::paintEvent(arg__1); - } -@@ -3560,6 +3715,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::reset(); - } -@@ -3577,6 +3733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::resizeEvent(event); - } -@@ -3594,6 +3751,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::rowsAboutToBeRemoved(parent, start, end); - } -@@ -3611,6 +3769,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::rowsInserted(parent, start, end); - } -@@ -3628,6 +3787,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::scrollContentsBy(dx, dy); - } -@@ -3645,6 +3805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::scrollTo(index, hint); - } -@@ -3662,6 +3823,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::selectAll(); - } -@@ -3690,6 +3852,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::selectedIndexes(); - } -@@ -3707,6 +3870,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::selectionChanged(selected, deselected); - } -@@ -3735,6 +3899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::selectionCommand(index, event); - } -@@ -3752,6 +3917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::setModel(model); - } -@@ -3769,6 +3935,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::setRootIndex(index); - } -@@ -3786,6 +3953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::setSelection(rect, command); - } -@@ -3803,6 +3971,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::setSelectionModel(selectionModel); - } -@@ -3820,6 +3989,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::showEvent(arg__1); - } -@@ -3848,6 +4018,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::sizeHintForColumn(column); - } -@@ -3876,6 +4047,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::sizeHintForRow(row); - } -@@ -3893,6 +4065,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::startDrag(supportedActions); - } -@@ -3910,6 +4083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::tabletEvent(arg__1); - } -@@ -3927,6 +4101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::timerEvent(event); - } -@@ -3944,6 +4119,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::updateEditorData(); - } -@@ -3961,6 +4137,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::updateEditorGeometries(); - } -@@ -3978,6 +4155,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::updateGeometries(); - } -@@ -4006,6 +4184,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::verticalOffset(); - } -@@ -4023,6 +4202,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::verticalScrollbarAction(action); - } -@@ -4040,6 +4220,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::verticalScrollbarValueChanged(value); - } -@@ -4068,6 +4249,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::viewOptions(); - } -@@ -4096,6 +4278,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::viewportEvent(event); - } -@@ -4124,6 +4307,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::visualRect(index); - } -@@ -4152,6 +4336,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QColumnView::visualRegionForSelection(selection); - } -@@ -4169,6 +4354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QColumnView::wheelEvent(arg__1); - } -@@ -4312,6 +4498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::actionEvent(arg__1); - } -@@ -4329,6 +4516,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::changeEvent(e); - } -@@ -4346,6 +4534,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::childEvent(arg__1); - } -@@ -4363,6 +4552,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::closeEvent(arg__1); - } -@@ -4380,6 +4570,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::contextMenuEvent(e); - } -@@ -4397,6 +4588,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::customEvent(arg__1); - } -@@ -4425,6 +4617,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::devType(); - } -@@ -4442,6 +4635,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::dragEnterEvent(arg__1); - } -@@ -4459,6 +4653,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::dragLeaveEvent(arg__1); - } -@@ -4476,6 +4671,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::dragMoveEvent(arg__1); - } -@@ -4493,6 +4689,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::dropEvent(arg__1); - } -@@ -4510,6 +4707,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::enterEvent(arg__1); - } -@@ -4538,6 +4736,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::event(event); - } -@@ -4566,6 +4765,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::eventFilter(arg__1, arg__2); - } -@@ -4583,6 +4783,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::focusInEvent(e); - } -@@ -4611,6 +4812,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::focusNextPrevChild(next); - } -@@ -4628,6 +4830,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::focusOutEvent(e); - } -@@ -4656,6 +4859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::heightForWidth(arg__1); - } -@@ -4673,6 +4877,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::hideEvent(e); - } -@@ -4690,6 +4895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::hidePopup(); - } -@@ -4707,6 +4913,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::inputMethodEvent(arg__1); - } -@@ -4735,6 +4942,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::inputMethodQuery(arg__1); - } -@@ -4752,6 +4960,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::keyPressEvent(e); - } -@@ -4769,6 +4978,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::keyReleaseEvent(e); - } -@@ -4786,6 +4996,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::languageChange(); - } -@@ -4803,6 +5014,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::leaveEvent(arg__1); - } -@@ -4831,6 +5043,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::metric(arg__1); - } -@@ -4848,6 +5061,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::mouseDoubleClickEvent(arg__1); - } -@@ -4865,6 +5079,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::mouseMoveEvent(arg__1); - } -@@ -4882,6 +5097,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::mousePressEvent(e); - } -@@ -4899,6 +5115,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::mouseReleaseEvent(e); - } -@@ -4916,6 +5133,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::moveEvent(arg__1); - } -@@ -4944,6 +5162,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QComboBox::paintEngine(); - } -@@ -4961,6 +5180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::paintEvent(e); - } -@@ -4978,6 +5198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::resizeEvent(e); - } -@@ -4995,6 +5216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::showEvent(e); - } -@@ -5012,6 +5234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::showPopup(); - } -@@ -5029,6 +5252,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::tabletEvent(arg__1); - } -@@ -5046,6 +5270,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::timerEvent(arg__1); - } -@@ -5063,6 +5288,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QComboBox::wheelEvent(e); - } -@@ -5451,6 +5677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::actionEvent(arg__1); - } -@@ -5468,6 +5695,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::changeEvent(e); - } -@@ -5485,6 +5713,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::checkStateSet(); - } -@@ -5502,6 +5731,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::childEvent(arg__1); - } -@@ -5519,6 +5749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::closeEvent(arg__1); - } -@@ -5536,6 +5767,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::contextMenuEvent(arg__1); - } -@@ -5553,6 +5785,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::customEvent(arg__1); - } -@@ -5581,6 +5814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::devType(); - } -@@ -5598,6 +5832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::dragEnterEvent(arg__1); - } -@@ -5615,6 +5850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::dragLeaveEvent(arg__1); - } -@@ -5632,6 +5868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::dragMoveEvent(arg__1); - } -@@ -5649,6 +5886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::dropEvent(arg__1); - } -@@ -5666,6 +5904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::enterEvent(arg__1); - } -@@ -5694,6 +5933,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::event(e); - } -@@ -5722,6 +5962,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::eventFilter(arg__1, arg__2); - } -@@ -5739,6 +5980,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::focusInEvent(arg__1); - } -@@ -5767,6 +6009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::focusNextPrevChild(next); - } -@@ -5784,6 +6027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::focusOutEvent(arg__1); - } -@@ -5812,6 +6056,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::heightForWidth(arg__1); - } -@@ -5829,6 +6074,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::hideEvent(arg__1); - } -@@ -5857,6 +6103,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::hitButton(pos); - } -@@ -5874,6 +6121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::inputMethodEvent(arg__1); - } -@@ -5902,6 +6150,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::inputMethodQuery(arg__1); - } -@@ -5919,6 +6168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::keyPressEvent(arg__1); - } -@@ -5936,6 +6186,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::keyReleaseEvent(e); - } -@@ -5953,6 +6204,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::languageChange(); - } -@@ -5970,6 +6222,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::leaveEvent(arg__1); - } -@@ -5998,6 +6251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::metric(arg__1); - } -@@ -6015,6 +6269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::mouseDoubleClickEvent(arg__1); - } -@@ -6032,6 +6287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::mouseMoveEvent(e); - } -@@ -6049,6 +6305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::mousePressEvent(e); - } -@@ -6066,6 +6323,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::mouseReleaseEvent(e); - } -@@ -6083,6 +6341,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::moveEvent(arg__1); - } -@@ -6100,6 +6359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::nextCheckState(); - } -@@ -6128,6 +6388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommandLinkButton::paintEngine(); - } -@@ -6145,6 +6406,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::paintEvent(arg__1); - } -@@ -6162,6 +6424,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::resizeEvent(arg__1); - } -@@ -6179,6 +6442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::showEvent(arg__1); - } -@@ -6196,6 +6460,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::tabletEvent(arg__1); - } -@@ -6213,6 +6478,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::timerEvent(e); - } -@@ -6230,6 +6496,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommandLinkButton::wheelEvent(arg__1); - } -@@ -6286,6 +6553,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::childEvent(arg__1); - } -@@ -6303,6 +6571,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::customEvent(arg__1); - } -@@ -6320,6 +6589,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::drawComplexControl(cc, opt, p, w); - } -@@ -6337,6 +6607,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::drawControl(element, opt, p, w); - } -@@ -6354,6 +6625,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -6371,6 +6643,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -6388,6 +6661,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::drawPrimitive(pe, opt, p, w); - } -@@ -6416,6 +6690,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::event(arg__1); - } -@@ -6444,6 +6719,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::eventFilter(arg__1, arg__2); - } -@@ -6472,6 +6748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::generatedIconPixmap(iconMode, pixmap, opt); - } -@@ -6500,6 +6777,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::hitTestComplexControl(cc, opt, pt, w); - } -@@ -6528,6 +6806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -6556,6 +6835,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::pixelMetric(m, opt, widget); - } -@@ -6573,6 +6853,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::polish(app); - } -@@ -6590,6 +6871,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::polish(arg__1); - } -@@ -6607,6 +6889,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::polish(widget); - } -@@ -6635,6 +6918,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::sizeFromContents(ct, opt, contentsSize, widget); - } -@@ -6663,6 +6947,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::standardPalette(); - } -@@ -6691,6 +6976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -6719,6 +7005,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::styleHint(sh, opt, w, shret); - } -@@ -6747,6 +7034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::subControlRect(cc, opt, sc, w); - } -@@ -6775,6 +7063,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCommonStyle::subElementRect(r, opt, widget); - } -@@ -6792,6 +7081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::timerEvent(arg__1); - } -@@ -6809,6 +7099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::unpolish(application); - } -@@ -6826,6 +7117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCommonStyle::unpolish(widget); - } -@@ -6924,6 +7216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCompleter::childEvent(arg__1); - } -@@ -6941,6 +7234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCompleter::customEvent(arg__1); - } -@@ -6969,6 +7263,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCompleter::event(arg__1); - } -@@ -6997,6 +7292,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCompleter::eventFilter(o, e); - } -@@ -7025,6 +7321,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCompleter::pathFromIndex(index); - } -@@ -7053,6 +7350,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QCompleter::splitPath(path); - } -@@ -7070,6 +7368,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QCompleter::timerEvent(arg__1); - } -@@ -7339,6 +7638,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDataWidgetMapper::childEvent(arg__1); - } -@@ -7356,6 +7656,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDataWidgetMapper::customEvent(arg__1); - } -@@ -7384,6 +7685,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDataWidgetMapper::event(arg__1); - } -@@ -7412,6 +7714,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDataWidgetMapper::eventFilter(arg__1, arg__2); - } -@@ -7429,6 +7732,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDataWidgetMapper::setCurrentIndex(index); - } -@@ -7446,6 +7750,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDataWidgetMapper::timerEvent(arg__1); - } -@@ -7559,6 +7864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::actionEvent(arg__1); - } -@@ -7576,6 +7882,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::changeEvent(event); - } -@@ -7593,6 +7900,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::childEvent(arg__1); - } -@@ -7610,6 +7918,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::clear(); - } -@@ -7627,6 +7936,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::closeEvent(event); - } -@@ -7644,6 +7954,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::contextMenuEvent(event); - } -@@ -7661,6 +7972,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::customEvent(arg__1); - } -@@ -7689,6 +8001,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::dateTimeFromText(text); - } -@@ -7717,6 +8030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::devType(); - } -@@ -7734,6 +8048,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::dragEnterEvent(arg__1); - } -@@ -7751,6 +8066,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::dragLeaveEvent(arg__1); - } -@@ -7768,6 +8084,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::dragMoveEvent(arg__1); - } -@@ -7785,6 +8102,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::dropEvent(arg__1); - } -@@ -7802,6 +8120,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::enterEvent(arg__1); - } -@@ -7830,6 +8149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::event(event); - } -@@ -7858,6 +8178,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::eventFilter(arg__1, arg__2); - } -@@ -7875,6 +8196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::fixup(input); - } -@@ -7892,6 +8214,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::focusInEvent(event); - } -@@ -7920,6 +8243,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::focusNextPrevChild(next); - } -@@ -7937,6 +8261,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::focusOutEvent(event); - } -@@ -7965,6 +8290,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::heightForWidth(arg__1); - } -@@ -7982,6 +8308,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::hideEvent(event); - } -@@ -7999,6 +8326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::inputMethodEvent(arg__1); - } -@@ -8027,6 +8355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::inputMethodQuery(arg__1); - } -@@ -8044,6 +8373,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::keyPressEvent(event); - } -@@ -8061,6 +8391,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::keyReleaseEvent(event); - } -@@ -8078,6 +8409,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::languageChange(); - } -@@ -8095,6 +8427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::leaveEvent(arg__1); - } -@@ -8123,6 +8456,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::metric(arg__1); - } -@@ -8140,6 +8474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::mouseDoubleClickEvent(arg__1); - } -@@ -8157,6 +8492,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::mouseMoveEvent(event); - } -@@ -8174,6 +8510,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::mousePressEvent(event); - } -@@ -8191,6 +8528,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::mouseReleaseEvent(event); - } -@@ -8208,6 +8546,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::moveEvent(arg__1); - } -@@ -8236,6 +8575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::paintEngine(); - } -@@ -8253,6 +8593,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::paintEvent(event); - } -@@ -8270,6 +8611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::resizeEvent(event); - } -@@ -8287,6 +8629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::showEvent(event); - } -@@ -8304,6 +8647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::stepBy(steps); - } -@@ -8332,6 +8676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::stepEnabled(); - } -@@ -8349,6 +8694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::tabletEvent(arg__1); - } -@@ -8377,6 +8723,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::textFromDateTime(dt); - } -@@ -8394,6 +8741,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::timerEvent(event); - } -@@ -8422,6 +8770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateEdit::validate(input, pos); - } -@@ -8439,6 +8788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateEdit::wheelEvent(event); - } -@@ -8466,6 +8816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::actionEvent(arg__1); - } -@@ -8483,6 +8834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::changeEvent(event); - } -@@ -8500,6 +8852,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::childEvent(arg__1); - } -@@ -8517,6 +8870,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::clear(); - } -@@ -8534,6 +8888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::closeEvent(event); - } -@@ -8551,6 +8906,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::contextMenuEvent(event); - } -@@ -8568,6 +8924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::customEvent(arg__1); - } -@@ -8596,6 +8953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::dateTimeFromText(text); - } -@@ -8624,6 +8982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::devType(); - } -@@ -8641,6 +9000,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::dragEnterEvent(arg__1); - } -@@ -8658,6 +9018,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::dragLeaveEvent(arg__1); - } -@@ -8675,6 +9036,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::dragMoveEvent(arg__1); - } -@@ -8692,6 +9054,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::dropEvent(arg__1); - } -@@ -8709,6 +9072,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::enterEvent(arg__1); - } -@@ -8737,6 +9101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::event(event); - } -@@ -8765,6 +9130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::eventFilter(arg__1, arg__2); - } -@@ -8782,6 +9148,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::fixup(input); - } -@@ -8799,6 +9166,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::focusInEvent(event); - } -@@ -8827,6 +9195,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::focusNextPrevChild(next); - } -@@ -8844,6 +9213,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::focusOutEvent(event); - } -@@ -8872,6 +9242,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::heightForWidth(arg__1); - } -@@ -8889,6 +9260,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::hideEvent(event); - } -@@ -8906,6 +9278,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::inputMethodEvent(arg__1); - } -@@ -8934,6 +9307,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::inputMethodQuery(arg__1); - } -@@ -8951,6 +9325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::keyPressEvent(event); - } -@@ -8968,6 +9343,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::keyReleaseEvent(event); - } -@@ -8985,6 +9361,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::languageChange(); - } -@@ -9002,6 +9379,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::leaveEvent(arg__1); - } -@@ -9030,6 +9408,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::metric(arg__1); - } -@@ -9047,6 +9426,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::mouseDoubleClickEvent(arg__1); - } -@@ -9064,6 +9444,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::mouseMoveEvent(event); - } -@@ -9081,6 +9462,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::mousePressEvent(event); - } -@@ -9098,6 +9480,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::mouseReleaseEvent(event); - } -@@ -9115,6 +9498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::moveEvent(arg__1); - } -@@ -9143,6 +9527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::paintEngine(); - } -@@ -9160,6 +9545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::paintEvent(event); - } -@@ -9177,6 +9563,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::resizeEvent(event); - } -@@ -9194,6 +9581,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::showEvent(event); - } -@@ -9211,6 +9599,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::stepBy(steps); - } -@@ -9239,6 +9628,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::stepEnabled(); - } -@@ -9256,6 +9646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::tabletEvent(arg__1); - } -@@ -9284,6 +9675,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::textFromDateTime(dt); - } -@@ -9301,6 +9693,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::timerEvent(event); - } -@@ -9329,6 +9722,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDateTimeEdit::validate(input, pos); - } -@@ -9346,6 +9740,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDateTimeEdit::wheelEvent(event); - } -@@ -9692,6 +10087,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::actionEvent(arg__1); - } -@@ -9709,6 +10105,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::changeEvent(arg__1); - } -@@ -9726,6 +10123,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::childEvent(arg__1); - } -@@ -9743,6 +10141,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::closeEvent(arg__1); - } -@@ -9760,6 +10159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::contextMenuEvent(arg__1); - } -@@ -9777,6 +10177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::customEvent(arg__1); - } -@@ -9805,6 +10206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::devType(); - } -@@ -9822,6 +10224,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::dragEnterEvent(arg__1); - } -@@ -9839,6 +10242,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::dragLeaveEvent(arg__1); - } -@@ -9856,6 +10260,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::dragMoveEvent(arg__1); - } -@@ -9873,6 +10278,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::dropEvent(arg__1); - } -@@ -9890,6 +10296,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::enterEvent(arg__1); - } -@@ -9918,6 +10325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::event(arg__1); - } -@@ -9946,6 +10354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::eventFilter(arg__1, arg__2); - } -@@ -9963,6 +10372,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::focusInEvent(arg__1); - } -@@ -9991,6 +10401,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::focusNextPrevChild(next); - } -@@ -10008,6 +10419,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::focusOutEvent(arg__1); - } -@@ -10036,6 +10448,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::heightForWidth(arg__1); - } -@@ -10053,6 +10466,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::hideEvent(arg__1); - } -@@ -10070,6 +10484,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::inputMethodEvent(arg__1); - } -@@ -10098,6 +10513,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::inputMethodQuery(arg__1); - } -@@ -10115,6 +10531,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::keyPressEvent(arg__1); - } -@@ -10132,6 +10549,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::keyReleaseEvent(arg__1); - } -@@ -10149,6 +10567,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::languageChange(); - } -@@ -10166,6 +10585,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::leaveEvent(arg__1); - } -@@ -10194,6 +10614,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::metric(arg__1); - } -@@ -10222,6 +10643,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::minimumSizeHint(); - } -@@ -10239,6 +10661,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::mouseDoubleClickEvent(arg__1); - } -@@ -10256,6 +10679,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::mouseMoveEvent(arg__1); - } -@@ -10273,6 +10697,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::mousePressEvent(arg__1); - } -@@ -10290,6 +10715,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::mouseReleaseEvent(arg__1); - } -@@ -10307,6 +10733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::moveEvent(arg__1); - } -@@ -10335,6 +10762,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::paintEngine(); - } -@@ -10352,6 +10780,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::paintEvent(arg__1); - } -@@ -10369,6 +10798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::resizeEvent(e); - } -@@ -10386,6 +10816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::showEvent(arg__1); - } -@@ -10414,6 +10845,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDesktopWidget::sizeHint(); - } -@@ -10431,6 +10863,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::tabletEvent(arg__1); - } -@@ -10448,6 +10881,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::timerEvent(arg__1); - } -@@ -10465,6 +10899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDesktopWidget::wheelEvent(arg__1); - } -@@ -10558,6 +10993,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::actionEvent(arg__1); - } -@@ -10575,6 +11011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::changeEvent(e); - } -@@ -10592,6 +11029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::childEvent(arg__1); - } -@@ -10609,6 +11047,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::closeEvent(arg__1); - } -@@ -10626,6 +11065,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::contextMenuEvent(arg__1); - } -@@ -10643,6 +11083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::customEvent(arg__1); - } -@@ -10671,6 +11112,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::devType(); - } -@@ -10688,6 +11130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::dragEnterEvent(arg__1); - } -@@ -10705,6 +11148,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::dragLeaveEvent(arg__1); - } -@@ -10722,6 +11166,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::dragMoveEvent(arg__1); - } -@@ -10739,6 +11184,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::dropEvent(arg__1); - } -@@ -10756,6 +11202,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::enterEvent(arg__1); - } -@@ -10784,6 +11231,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::event(e); - } -@@ -10812,6 +11260,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::eventFilter(arg__1, arg__2); - } -@@ -10829,6 +11278,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::focusInEvent(arg__1); - } -@@ -10857,6 +11307,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::focusNextPrevChild(next); - } -@@ -10874,6 +11325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::focusOutEvent(arg__1); - } -@@ -10902,6 +11354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::heightForWidth(arg__1); - } -@@ -10919,6 +11372,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::hideEvent(arg__1); - } -@@ -10936,6 +11390,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::inputMethodEvent(arg__1); - } -@@ -10964,6 +11419,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::inputMethodQuery(arg__1); - } -@@ -10981,6 +11437,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::keyPressEvent(ev); - } -@@ -10998,6 +11455,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::keyReleaseEvent(arg__1); - } -@@ -11015,6 +11473,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::languageChange(); - } -@@ -11032,6 +11491,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::leaveEvent(arg__1); - } -@@ -11060,6 +11520,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::metric(arg__1); - } -@@ -11077,6 +11538,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::mouseDoubleClickEvent(arg__1); - } -@@ -11094,6 +11556,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::mouseMoveEvent(me); - } -@@ -11111,6 +11574,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::mousePressEvent(me); - } -@@ -11128,6 +11592,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::mouseReleaseEvent(me); - } -@@ -11145,6 +11610,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::moveEvent(arg__1); - } -@@ -11173,6 +11639,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDial::paintEngine(); - } -@@ -11190,6 +11657,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::paintEvent(pe); - } -@@ -11207,6 +11675,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::resizeEvent(re); - } -@@ -11224,6 +11693,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::showEvent(arg__1); - } -@@ -11241,6 +11711,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::tabletEvent(arg__1); - } -@@ -11258,6 +11729,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::timerEvent(arg__1); - } -@@ -11275,6 +11747,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDial::wheelEvent(e); - } -@@ -11363,6 +11836,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::accept(); - } -@@ -11380,6 +11854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::actionEvent(arg__1); - } -@@ -11397,6 +11872,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::changeEvent(arg__1); - } -@@ -11414,6 +11890,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::childEvent(arg__1); - } -@@ -11431,6 +11908,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::closeEvent(arg__1); - } -@@ -11448,6 +11926,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::contextMenuEvent(arg__1); - } -@@ -11465,6 +11944,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::customEvent(arg__1); - } -@@ -11493,6 +11973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::devType(); - } -@@ -11510,6 +11991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::done(arg__1); - } -@@ -11527,6 +12009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::dragEnterEvent(arg__1); - } -@@ -11544,6 +12027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::dragLeaveEvent(arg__1); - } -@@ -11561,6 +12045,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::dragMoveEvent(arg__1); - } -@@ -11578,6 +12063,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::dropEvent(arg__1); - } -@@ -11595,6 +12081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::enterEvent(arg__1); - } -@@ -11623,6 +12110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::event(arg__1); - } -@@ -11651,6 +12139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::eventFilter(arg__1, arg__2); - } -@@ -11668,6 +12157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::focusInEvent(arg__1); - } -@@ -11696,6 +12186,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::focusNextPrevChild(next); - } -@@ -11713,6 +12204,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::focusOutEvent(arg__1); - } -@@ -11741,6 +12233,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::heightForWidth(arg__1); - } -@@ -11758,6 +12251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::hideEvent(arg__1); - } -@@ -11775,6 +12269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::inputMethodEvent(arg__1); - } -@@ -11803,6 +12298,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::inputMethodQuery(arg__1); - } -@@ -11820,6 +12316,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::keyPressEvent(arg__1); - } -@@ -11837,6 +12334,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::keyReleaseEvent(arg__1); - } -@@ -11854,6 +12352,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::languageChange(); - } -@@ -11871,6 +12370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::leaveEvent(arg__1); - } -@@ -11899,6 +12399,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::metric(arg__1); - } -@@ -11916,6 +12417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::mouseDoubleClickEvent(arg__1); - } -@@ -11933,6 +12435,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::mouseMoveEvent(arg__1); - } -@@ -11950,6 +12453,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::mousePressEvent(arg__1); - } -@@ -11967,6 +12471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::mouseReleaseEvent(arg__1); - } -@@ -11984,6 +12489,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::moveEvent(arg__1); - } -@@ -12012,6 +12518,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialog::paintEngine(); - } -@@ -12029,6 +12536,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::paintEvent(arg__1); - } -@@ -12046,6 +12554,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::reject(); - } -@@ -12063,6 +12572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::resizeEvent(arg__1); - } -@@ -12080,6 +12590,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::showEvent(arg__1); - } -@@ -12097,6 +12608,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::tabletEvent(arg__1); - } -@@ -12114,6 +12626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::timerEvent(arg__1); - } -@@ -12131,6 +12644,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialog::wheelEvent(arg__1); - } -@@ -12224,6 +12738,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::actionEvent(arg__1); - } -@@ -12241,6 +12756,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::changeEvent(event); - } -@@ -12258,6 +12774,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::childEvent(arg__1); - } -@@ -12275,6 +12792,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::closeEvent(arg__1); - } -@@ -12292,6 +12810,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::contextMenuEvent(arg__1); - } -@@ -12309,6 +12828,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::customEvent(arg__1); - } -@@ -12337,6 +12857,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::devType(); - } -@@ -12354,6 +12875,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::dragEnterEvent(arg__1); - } -@@ -12371,6 +12893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::dragLeaveEvent(arg__1); - } -@@ -12388,6 +12911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::dragMoveEvent(arg__1); - } -@@ -12405,6 +12929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::dropEvent(arg__1); - } -@@ -12422,6 +12947,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::enterEvent(arg__1); - } -@@ -12450,6 +12976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::event(event); - } -@@ -12478,6 +13005,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::eventFilter(arg__1, arg__2); - } -@@ -12495,6 +13023,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::focusInEvent(arg__1); - } -@@ -12523,6 +13052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::focusNextPrevChild(next); - } -@@ -12540,6 +13070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::focusOutEvent(arg__1); - } -@@ -12568,6 +13099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::heightForWidth(arg__1); - } -@@ -12585,6 +13117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::hideEvent(arg__1); - } -@@ -12602,6 +13135,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::inputMethodEvent(arg__1); - } -@@ -12630,6 +13164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::inputMethodQuery(arg__1); - } -@@ -12647,6 +13182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::keyPressEvent(arg__1); - } -@@ -12664,6 +13200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::keyReleaseEvent(arg__1); - } -@@ -12681,6 +13218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::languageChange(); - } -@@ -12698,6 +13236,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::leaveEvent(arg__1); - } -@@ -12726,6 +13265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::metric(arg__1); - } -@@ -12754,6 +13294,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::minimumSizeHint(); - } -@@ -12771,6 +13312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::mouseDoubleClickEvent(arg__1); - } -@@ -12788,6 +13330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::mouseMoveEvent(arg__1); - } -@@ -12805,6 +13348,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::mousePressEvent(arg__1); - } -@@ -12822,6 +13366,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::mouseReleaseEvent(arg__1); - } -@@ -12839,6 +13384,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::moveEvent(arg__1); - } -@@ -12867,6 +13413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::paintEngine(); - } -@@ -12884,6 +13431,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::paintEvent(arg__1); - } -@@ -12901,6 +13449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::resizeEvent(arg__1); - } -@@ -12918,6 +13467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::showEvent(arg__1); - } -@@ -12946,6 +13496,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDialogButtonBox::sizeHint(); - } -@@ -12963,6 +13514,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::tabletEvent(arg__1); - } -@@ -12980,6 +13532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::timerEvent(arg__1); - } -@@ -12997,6 +13550,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDialogButtonBox::wheelEvent(arg__1); - } -@@ -13113,6 +13667,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::actionEvent(arg__1); - } -@@ -13130,6 +13685,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::changeEvent(event); - } -@@ -13147,6 +13703,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::childEvent(arg__1); - } -@@ -13164,6 +13721,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::closeEvent(event); - } -@@ -13181,6 +13739,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::contextMenuEvent(arg__1); - } -@@ -13198,6 +13757,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::customEvent(arg__1); - } -@@ -13226,6 +13786,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::devType(); - } -@@ -13243,6 +13804,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::dragEnterEvent(arg__1); - } -@@ -13260,6 +13822,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::dragLeaveEvent(arg__1); - } -@@ -13277,6 +13840,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::dragMoveEvent(arg__1); - } -@@ -13294,6 +13858,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::dropEvent(arg__1); - } -@@ -13311,6 +13876,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::enterEvent(arg__1); - } -@@ -13339,6 +13905,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::event(event); - } -@@ -13367,6 +13934,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::eventFilter(arg__1, arg__2); - } -@@ -13384,6 +13952,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::focusInEvent(arg__1); - } -@@ -13412,6 +13981,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::focusNextPrevChild(next); - } -@@ -13429,6 +13999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::focusOutEvent(arg__1); - } -@@ -13457,6 +14028,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::heightForWidth(arg__1); - } -@@ -13474,6 +14046,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::hideEvent(arg__1); - } -@@ -13491,6 +14064,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::inputMethodEvent(arg__1); - } -@@ -13519,6 +14093,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::inputMethodQuery(arg__1); - } -@@ -13536,6 +14111,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::keyPressEvent(arg__1); - } -@@ -13553,6 +14129,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::keyReleaseEvent(arg__1); - } -@@ -13570,6 +14147,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::languageChange(); - } -@@ -13587,6 +14165,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::leaveEvent(arg__1); - } -@@ -13615,6 +14194,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::metric(arg__1); - } -@@ -13643,6 +14223,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::minimumSizeHint(); - } -@@ -13660,6 +14241,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::mouseDoubleClickEvent(arg__1); - } -@@ -13677,6 +14259,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::mouseMoveEvent(arg__1); - } -@@ -13694,6 +14277,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::mousePressEvent(arg__1); - } -@@ -13711,6 +14295,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::mouseReleaseEvent(arg__1); - } -@@ -13728,6 +14313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::moveEvent(arg__1); - } -@@ -13756,6 +14342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::paintEngine(); - } -@@ -13773,6 +14360,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::paintEvent(event); - } -@@ -13790,6 +14378,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::resizeEvent(arg__1); - } -@@ -13807,6 +14396,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::showEvent(arg__1); - } -@@ -13835,6 +14425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDockWidget::sizeHint(); - } -@@ -13852,6 +14443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::tabletEvent(arg__1); - } -@@ -13869,6 +14461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::timerEvent(arg__1); - } -@@ -13886,6 +14479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDockWidget::wheelEvent(arg__1); - } -@@ -13993,6 +14587,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::actionEvent(arg__1); - } -@@ -14010,6 +14605,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::changeEvent(event); - } -@@ -14027,6 +14623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::childEvent(arg__1); - } -@@ -14044,6 +14641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::clear(); - } -@@ -14061,6 +14659,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::closeEvent(event); - } -@@ -14078,6 +14677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::contextMenuEvent(event); - } -@@ -14095,6 +14695,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::customEvent(arg__1); - } -@@ -14123,6 +14724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::devType(); - } -@@ -14140,6 +14742,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::dragEnterEvent(arg__1); - } -@@ -14157,6 +14760,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::dragLeaveEvent(arg__1); - } -@@ -14174,6 +14778,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::dragMoveEvent(arg__1); - } -@@ -14191,6 +14796,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::dropEvent(arg__1); - } -@@ -14208,6 +14814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::enterEvent(arg__1); - } -@@ -14236,6 +14843,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::event(event); - } -@@ -14264,6 +14872,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::eventFilter(arg__1, arg__2); - } -@@ -14281,6 +14890,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::fixup(str); - } -@@ -14298,6 +14908,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::focusInEvent(event); - } -@@ -14326,6 +14937,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::focusNextPrevChild(next); - } -@@ -14343,6 +14955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::focusOutEvent(event); - } -@@ -14371,6 +14984,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::heightForWidth(arg__1); - } -@@ -14388,6 +15002,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::hideEvent(event); - } -@@ -14405,6 +15020,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::inputMethodEvent(arg__1); - } -@@ -14433,6 +15049,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::inputMethodQuery(arg__1); - } -@@ -14450,6 +15067,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::keyPressEvent(event); - } -@@ -14467,6 +15085,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::keyReleaseEvent(event); - } -@@ -14484,6 +15103,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::languageChange(); - } -@@ -14501,6 +15121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::leaveEvent(arg__1); - } -@@ -14529,6 +15150,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::metric(arg__1); - } -@@ -14546,6 +15168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::mouseDoubleClickEvent(arg__1); - } -@@ -14563,6 +15186,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::mouseMoveEvent(event); - } -@@ -14580,6 +15204,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::mousePressEvent(event); - } -@@ -14597,6 +15222,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::mouseReleaseEvent(event); - } -@@ -14614,6 +15240,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::moveEvent(arg__1); - } -@@ -14642,6 +15269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::paintEngine(); - } -@@ -14659,6 +15287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::paintEvent(event); - } -@@ -14676,6 +15305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::resizeEvent(event); - } -@@ -14693,6 +15323,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::showEvent(event); - } -@@ -14710,6 +15341,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::stepBy(steps); - } -@@ -14738,6 +15370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::stepEnabled(); - } -@@ -14755,6 +15388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::tabletEvent(arg__1); - } -@@ -14783,6 +15417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::textFromValue(val); - } -@@ -14800,6 +15435,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::timerEvent(event); - } -@@ -14828,6 +15464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::validate(input, pos); - } -@@ -14856,6 +15493,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleSpinBox::valueFromText(text); - } -@@ -14873,6 +15511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleSpinBox::wheelEvent(event); - } -@@ -14991,6 +15630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleValidator::childEvent(arg__1); - } -@@ -15008,6 +15648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleValidator::customEvent(arg__1); - } -@@ -15036,6 +15677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleValidator::event(arg__1); - } -@@ -15064,6 +15706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleValidator::eventFilter(arg__1, arg__2); - } -@@ -15081,6 +15724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleValidator::fixup(arg__1); - } -@@ -15098,6 +15742,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleValidator::setRange(bottom, top, decimals); - } -@@ -15115,6 +15760,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDoubleValidator::timerEvent(arg__1); - } -@@ -15143,6 +15789,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDoubleValidator::validate(arg__1, arg__2); - } -@@ -15220,6 +15867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDrag::childEvent(arg__1); - } -@@ -15237,6 +15885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDrag::customEvent(arg__1); - } -@@ -15265,6 +15914,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDrag::event(arg__1); - } -@@ -15293,6 +15943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QDrag::eventFilter(arg__1, arg__2); - } -@@ -15310,6 +15961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QDrag::timerEvent(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -index 2ec6639..04c50d7 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui10.cpp -@@ -715,6 +715,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::actionEvent(arg__1); - } -@@ -732,6 +733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::changeEvent(arg__1); - } -@@ -749,6 +751,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::childEvent(arg__1); - } -@@ -766,6 +769,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::closeEditor(editor, hint); - } -@@ -783,6 +787,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::closeEvent(arg__1); - } -@@ -800,6 +805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::commitData(editor); - } -@@ -817,6 +823,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::contextMenuEvent(arg__1); - } -@@ -834,6 +841,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::currentChanged(current, previous); - } -@@ -851,6 +859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::customEvent(arg__1); - } -@@ -868,6 +877,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::dataChanged(topLeft, bottomRight); - } -@@ -896,6 +906,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::devType(); - } -@@ -913,6 +924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::doItemsLayout(); - } -@@ -930,6 +942,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::dragEnterEvent(event); - } -@@ -947,6 +960,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::dragLeaveEvent(event); - } -@@ -964,6 +978,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::dragMoveEvent(event); - } -@@ -981,6 +996,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::drawBranches(painter, rect, index); - } -@@ -998,6 +1014,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::drawRow(painter, options, index); - } -@@ -1015,6 +1032,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::dropEvent(event); - } -@@ -1043,6 +1061,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::edit(index, trigger, event); - } -@@ -1060,6 +1079,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::editorDestroyed(editor); - } -@@ -1077,6 +1097,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::enterEvent(arg__1); - } -@@ -1105,6 +1126,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::event(event); - } -@@ -1133,6 +1155,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::eventFilter(arg__1, arg__2); - } -@@ -1150,6 +1173,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::focusInEvent(event); - } -@@ -1178,6 +1202,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::focusNextPrevChild(next); - } -@@ -1195,6 +1220,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::focusOutEvent(event); - } -@@ -1223,6 +1249,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::heightForWidth(arg__1); - } -@@ -1240,6 +1267,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::hideEvent(arg__1); - } -@@ -1268,6 +1296,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::horizontalOffset(); - } -@@ -1285,6 +1314,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::horizontalScrollbarAction(action); - } -@@ -1302,6 +1332,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::horizontalScrollbarValueChanged(value); - } -@@ -1330,6 +1361,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::indexAt(p); - } -@@ -1347,6 +1379,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::inputMethodEvent(event); - } -@@ -1375,6 +1408,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::inputMethodQuery(query); - } -@@ -1403,6 +1437,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::isIndexHidden(index); - } -@@ -1420,6 +1455,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::keyPressEvent(event); - } -@@ -1437,6 +1473,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::keyReleaseEvent(arg__1); - } -@@ -1454,6 +1491,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::keyboardSearch(search); - } -@@ -1471,6 +1509,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::languageChange(); - } -@@ -1488,6 +1527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::leaveEvent(arg__1); - } -@@ -1516,6 +1556,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::metric(arg__1); - } -@@ -1533,6 +1574,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::mouseDoubleClickEvent(event); - } -@@ -1550,6 +1592,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::mouseMoveEvent(event); - } -@@ -1567,6 +1610,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::mousePressEvent(event); - } -@@ -1584,6 +1628,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::mouseReleaseEvent(event); - } -@@ -1601,6 +1646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::moveEvent(arg__1); - } -@@ -1629,6 +1675,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::paintEngine(); - } -@@ -1646,6 +1693,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::paintEvent(event); - } -@@ -1663,6 +1711,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::reset(); - } -@@ -1680,6 +1729,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::resizeEvent(event); - } -@@ -1697,6 +1747,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::rowsAboutToBeRemoved(parent, start, end); - } -@@ -1714,6 +1765,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::rowsInserted(parent, start, end); - } -@@ -1731,6 +1783,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::scrollContentsBy(dx, dy); - } -@@ -1748,6 +1801,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::scrollTo(index, hint); - } -@@ -1765,6 +1819,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::selectAll(); - } -@@ -1793,6 +1848,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::selectedIndexes(); - } -@@ -1810,6 +1866,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::selectionChanged(selected, deselected); - } -@@ -1838,6 +1895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::selectionCommand(index, event); - } -@@ -1855,6 +1913,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::setModel(model); - } -@@ -1872,6 +1931,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::setRootIndex(index); - } -@@ -1889,6 +1949,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::setSelection(rect, command); - } -@@ -1906,6 +1967,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::setSelectionModel(selectionModel); - } -@@ -1923,6 +1985,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::showEvent(arg__1); - } -@@ -1951,6 +2014,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::sizeHintForColumn(column); - } -@@ -1979,6 +2043,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::sizeHintForRow(row); - } -@@ -1996,6 +2061,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::startDrag(supportedActions); - } -@@ -2013,6 +2079,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::tabletEvent(arg__1); - } -@@ -2030,6 +2097,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::timerEvent(event); - } -@@ -2047,6 +2115,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::updateEditorData(); - } -@@ -2064,6 +2133,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::updateEditorGeometries(); - } -@@ -2081,6 +2151,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::updateGeometries(); - } -@@ -2109,6 +2180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::verticalOffset(); - } -@@ -2126,6 +2198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::verticalScrollbarAction(action); - } -@@ -2143,6 +2216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::verticalScrollbarValueChanged(value); - } -@@ -2171,6 +2245,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::viewOptions(); - } -@@ -2199,6 +2274,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::viewportEvent(event); - } -@@ -2227,6 +2303,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::visualRect(index); - } -@@ -2255,6 +2332,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeView::visualRegionForSelection(selection); - } -@@ -2272,6 +2350,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeView::wheelEvent(arg__1); - } -@@ -2670,6 +2749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::actionEvent(arg__1); - } -@@ -2687,6 +2767,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::changeEvent(arg__1); - } -@@ -2704,6 +2785,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::childEvent(arg__1); - } -@@ -2721,6 +2803,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::closeEditor(editor, hint); - } -@@ -2738,6 +2821,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::closeEvent(arg__1); - } -@@ -2755,6 +2839,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::commitData(editor); - } -@@ -2772,6 +2857,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::contextMenuEvent(arg__1); - } -@@ -2789,6 +2875,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::currentChanged(current, previous); - } -@@ -2806,6 +2893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::customEvent(arg__1); - } -@@ -2823,6 +2911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::dataChanged(topLeft, bottomRight); - } -@@ -2851,6 +2940,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::devType(); - } -@@ -2868,6 +2958,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::doItemsLayout(); - } -@@ -2885,6 +2976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::dragEnterEvent(event); - } -@@ -2902,6 +2994,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::dragLeaveEvent(event); - } -@@ -2919,6 +3012,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::dragMoveEvent(event); - } -@@ -2936,6 +3030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::drawBranches(painter, rect, index); - } -@@ -2953,6 +3048,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::drawRow(painter, options, index); - } -@@ -2970,6 +3066,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::dropEvent(event); - } -@@ -2998,6 +3095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::dropMimeData(parent, index, data, action); - } -@@ -3026,6 +3124,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::edit(index, trigger, event); - } -@@ -3043,6 +3142,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::editorDestroyed(editor); - } -@@ -3060,6 +3160,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::enterEvent(arg__1); - } -@@ -3088,6 +3189,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::event(e); - } -@@ -3116,6 +3218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::eventFilter(arg__1, arg__2); - } -@@ -3133,6 +3236,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::focusInEvent(event); - } -@@ -3161,6 +3265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::focusNextPrevChild(next); - } -@@ -3178,6 +3283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::focusOutEvent(event); - } -@@ -3206,6 +3312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::heightForWidth(arg__1); - } -@@ -3223,6 +3330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::hideEvent(arg__1); - } -@@ -3251,6 +3359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::horizontalOffset(); - } -@@ -3268,6 +3377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::horizontalScrollbarAction(action); - } -@@ -3285,6 +3395,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::horizontalScrollbarValueChanged(value); - } -@@ -3313,6 +3424,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::indexAt(p); - } -@@ -3330,6 +3442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::inputMethodEvent(event); - } -@@ -3358,6 +3471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::inputMethodQuery(query); - } -@@ -3386,6 +3500,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::isIndexHidden(index); - } -@@ -3403,6 +3518,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::keyPressEvent(event); - } -@@ -3420,6 +3536,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::keyReleaseEvent(arg__1); - } -@@ -3437,6 +3554,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::keyboardSearch(search); - } -@@ -3454,6 +3572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::languageChange(); - } -@@ -3471,6 +3590,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::leaveEvent(arg__1); - } -@@ -3499,6 +3619,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::metric(arg__1); - } -@@ -3527,6 +3648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::mimeData(items); - } -@@ -3555,6 +3677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::mimeTypes(); - } -@@ -3572,6 +3695,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::mouseDoubleClickEvent(event); - } -@@ -3589,6 +3713,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::mouseMoveEvent(event); - } -@@ -3606,6 +3731,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::mousePressEvent(event); - } -@@ -3623,6 +3749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::mouseReleaseEvent(event); - } -@@ -3640,6 +3767,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::moveEvent(arg__1); - } -@@ -3668,6 +3796,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::paintEngine(); - } -@@ -3685,6 +3814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::paintEvent(event); - } -@@ -3702,6 +3832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::reset(); - } -@@ -3719,6 +3850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::resizeEvent(event); - } -@@ -3736,6 +3868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::rowsAboutToBeRemoved(parent, start, end); - } -@@ -3753,6 +3886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::rowsInserted(parent, start, end); - } -@@ -3770,6 +3904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::scrollContentsBy(dx, dy); - } -@@ -3787,6 +3922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::scrollTo(index, hint); - } -@@ -3804,6 +3940,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::selectAll(); - } -@@ -3832,6 +3969,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::selectedIndexes(); - } -@@ -3849,6 +3987,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::selectionChanged(selected, deselected); - } -@@ -3877,6 +4016,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::selectionCommand(index, event); - } -@@ -3894,6 +4034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::setRootIndex(index); - } -@@ -3911,6 +4052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::setSelection(rect, command); - } -@@ -3928,6 +4070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::setSelectionModel(selectionModel); - } -@@ -3945,6 +4088,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::showEvent(arg__1); - } -@@ -3973,6 +4117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::sizeHintForColumn(column); - } -@@ -4001,6 +4146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::sizeHintForRow(row); - } -@@ -4018,6 +4164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::startDrag(supportedActions); - } -@@ -4046,6 +4193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::supportedDropActions(); - } -@@ -4063,6 +4211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::tabletEvent(arg__1); - } -@@ -4080,6 +4229,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::timerEvent(event); - } -@@ -4097,6 +4247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::updateEditorData(); - } -@@ -4114,6 +4265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::updateEditorGeometries(); - } -@@ -4131,6 +4283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::updateGeometries(); - } -@@ -4159,6 +4312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::verticalOffset(); - } -@@ -4176,6 +4330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::verticalScrollbarAction(action); - } -@@ -4193,6 +4348,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::verticalScrollbarValueChanged(value); - } -@@ -4221,6 +4377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::viewOptions(); - } -@@ -4249,6 +4406,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::viewportEvent(event); - } -@@ -4277,6 +4435,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::visualRect(index); - } -@@ -4305,6 +4464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidget::visualRegionForSelection(selection); - } -@@ -4322,6 +4482,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidget::wheelEvent(arg__1); - } -@@ -4571,6 +4732,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidgetItem::clone(); - } -@@ -4599,6 +4761,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidgetItem::data(column, role); - } -@@ -4627,6 +4790,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTreeWidgetItem::operator<(other); - } -@@ -4644,6 +4808,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidgetItem::read(in); - } -@@ -4661,6 +4826,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidgetItem::setData(column, role, value); - } -@@ -4678,6 +4844,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTreeWidgetItem::write(out); - } -@@ -5020,6 +5187,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoCommand::id(); - } -@@ -5048,6 +5216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoCommand::mergeWith(other); - } -@@ -5065,6 +5234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoCommand::redo(); - } -@@ -5082,6 +5252,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoCommand::undo(); - } -@@ -5149,6 +5320,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoGroup::childEvent(arg__1); - } -@@ -5166,6 +5338,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoGroup::customEvent(arg__1); - } -@@ -5194,6 +5367,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoGroup::event(arg__1); - } -@@ -5222,6 +5396,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoGroup::eventFilter(arg__1, arg__2); - } -@@ -5239,6 +5414,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoGroup::timerEvent(arg__1); - } -@@ -5317,6 +5493,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoStack::childEvent(arg__1); - } -@@ -5334,6 +5511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoStack::customEvent(arg__1); - } -@@ -5362,6 +5540,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoStack::event(arg__1); - } -@@ -5390,6 +5569,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoStack::eventFilter(arg__1, arg__2); - } -@@ -5407,6 +5587,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoStack::timerEvent(arg__1); - } -@@ -5525,6 +5706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::actionEvent(arg__1); - } -@@ -5542,6 +5724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::changeEvent(arg__1); - } -@@ -5559,6 +5742,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::childEvent(arg__1); - } -@@ -5576,6 +5760,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::closeEditor(editor, hint); - } -@@ -5593,6 +5778,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::closeEvent(arg__1); - } -@@ -5610,6 +5796,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::commitData(editor); - } -@@ -5627,6 +5814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::contextMenuEvent(arg__1); - } -@@ -5644,6 +5832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::currentChanged(current, previous); - } -@@ -5661,6 +5850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::customEvent(arg__1); - } -@@ -5678,6 +5868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::dataChanged(topLeft, bottomRight); - } -@@ -5706,6 +5897,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::devType(); - } -@@ -5723,6 +5915,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::doItemsLayout(); - } -@@ -5740,6 +5933,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::dragEnterEvent(event); - } -@@ -5757,6 +5951,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::dragLeaveEvent(e); - } -@@ -5774,6 +5969,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::dragMoveEvent(e); - } -@@ -5791,6 +5987,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::dropEvent(e); - } -@@ -5819,6 +6016,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::edit(index, trigger, event); - } -@@ -5836,6 +6034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::editorDestroyed(editor); - } -@@ -5853,6 +6052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::enterEvent(arg__1); - } -@@ -5881,6 +6081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::event(e); - } -@@ -5909,6 +6110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::eventFilter(arg__1, arg__2); - } -@@ -5926,6 +6128,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::focusInEvent(event); - } -@@ -5954,6 +6157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::focusNextPrevChild(next); - } -@@ -5971,6 +6175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::focusOutEvent(event); - } -@@ -5999,6 +6204,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::heightForWidth(arg__1); - } -@@ -6016,6 +6222,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::hideEvent(arg__1); - } -@@ -6044,6 +6251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::horizontalOffset(); - } -@@ -6061,6 +6269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::horizontalScrollbarAction(action); - } -@@ -6078,6 +6287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::horizontalScrollbarValueChanged(value); - } -@@ -6106,6 +6316,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::indexAt(p); - } -@@ -6123,6 +6334,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::inputMethodEvent(event); - } -@@ -6151,6 +6363,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::inputMethodQuery(query); - } -@@ -6179,6 +6392,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::isIndexHidden(index); - } -@@ -6196,6 +6410,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::keyPressEvent(event); - } -@@ -6213,6 +6428,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::keyReleaseEvent(arg__1); - } -@@ -6230,6 +6446,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::keyboardSearch(search); - } -@@ -6247,6 +6464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::languageChange(); - } -@@ -6264,6 +6482,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::leaveEvent(arg__1); - } -@@ -6292,6 +6511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::metric(arg__1); - } -@@ -6309,6 +6529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::mouseDoubleClickEvent(event); - } -@@ -6326,6 +6547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::mouseMoveEvent(e); - } -@@ -6343,6 +6565,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::mousePressEvent(event); - } -@@ -6360,6 +6583,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::mouseReleaseEvent(e); - } -@@ -6377,6 +6601,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::moveEvent(arg__1); - } -@@ -6405,6 +6630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::paintEngine(); - } -@@ -6422,6 +6648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::paintEvent(e); - } -@@ -6439,6 +6666,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::reset(); - } -@@ -6456,6 +6684,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::resizeEvent(e); - } -@@ -6473,6 +6702,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::rowsAboutToBeRemoved(parent, start, end); - } -@@ -6490,6 +6720,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::rowsInserted(parent, start, end); - } -@@ -6507,6 +6738,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::scrollContentsBy(dx, dy); - } -@@ -6524,6 +6756,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::scrollTo(index, hint); - } -@@ -6541,6 +6774,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::selectAll(); - } -@@ -6569,6 +6803,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::selectedIndexes(); - } -@@ -6586,6 +6821,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::selectionChanged(selected, deselected); - } -@@ -6614,6 +6850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::selectionCommand(index, event); - } -@@ -6631,6 +6868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::setModel(model); - } -@@ -6648,6 +6886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::setRootIndex(index); - } -@@ -6665,6 +6904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::setSelection(rect, command); - } -@@ -6682,6 +6922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::setSelectionModel(selectionModel); - } -@@ -6699,6 +6940,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::showEvent(arg__1); - } -@@ -6727,6 +6969,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::sizeHintForColumn(column); - } -@@ -6755,6 +6998,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::sizeHintForRow(row); - } -@@ -6772,6 +7016,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::startDrag(supportedActions); - } -@@ -6789,6 +7034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::tabletEvent(arg__1); - } -@@ -6806,6 +7052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::timerEvent(e); - } -@@ -6823,6 +7070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::updateEditorData(); - } -@@ -6840,6 +7088,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::updateEditorGeometries(); - } -@@ -6857,6 +7106,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::updateGeometries(); - } -@@ -6885,6 +7135,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::verticalOffset(); - } -@@ -6902,6 +7153,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::verticalScrollbarAction(action); - } -@@ -6919,6 +7171,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::verticalScrollbarValueChanged(value); - } -@@ -6947,6 +7200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::viewOptions(); - } -@@ -6975,6 +7229,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::viewportEvent(event); - } -@@ -7003,6 +7258,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::visualRect(index); - } -@@ -7031,6 +7287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUndoView::visualRegionForSelection(selection); - } -@@ -7048,6 +7305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUndoView::wheelEvent(arg__1); - } -@@ -7109,6 +7367,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVBoxLayout::addItem(arg__1); - } -@@ -7126,6 +7385,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVBoxLayout::childEvent(e); - } -@@ -7154,6 +7414,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::count(); - } -@@ -7171,6 +7432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVBoxLayout::customEvent(arg__1); - } -@@ -7199,6 +7461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::event(arg__1); - } -@@ -7227,6 +7490,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::eventFilter(arg__1, arg__2); - } -@@ -7255,6 +7519,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::expandingDirections(); - } -@@ -7283,6 +7548,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::geometry(); - } -@@ -7311,6 +7577,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::indexOf(arg__1); - } -@@ -7328,6 +7595,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVBoxLayout::invalidate(); - } -@@ -7356,6 +7624,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::isEmpty(); - } -@@ -7384,6 +7653,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::itemAt(arg__1); - } -@@ -7412,6 +7682,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::layout(); - } -@@ -7440,6 +7711,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::maximumSize(); - } -@@ -7468,6 +7740,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::minimumSize(); - } -@@ -7485,6 +7758,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVBoxLayout::setGeometry(arg__1); - } -@@ -7513,6 +7787,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVBoxLayout::takeAt(arg__1); - } -@@ -7530,6 +7805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QVBoxLayout::timerEvent(arg__1); - } -@@ -7557,6 +7833,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QValidator::childEvent(arg__1); - } -@@ -7574,6 +7851,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QValidator::customEvent(arg__1); - } -@@ -7602,6 +7880,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QValidator::event(arg__1); - } -@@ -7630,6 +7909,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QValidator::eventFilter(arg__1, arg__2); - } -@@ -7647,6 +7927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QValidator::fixup(arg__1); - } -@@ -7664,6 +7945,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QValidator::timerEvent(arg__1); - } -@@ -7692,6 +7974,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QValidator::State(); - } -@@ -8430,6 +8713,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::actionEvent(arg__1); - } -@@ -8447,6 +8731,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::changeEvent(arg__1); - } -@@ -8464,6 +8749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::childEvent(arg__1); - } -@@ -8481,6 +8767,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::closeEvent(arg__1); - } -@@ -8498,6 +8785,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::contextMenuEvent(arg__1); - } -@@ -8515,6 +8803,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::customEvent(arg__1); - } -@@ -8543,6 +8832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::devType(); - } -@@ -8560,6 +8850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::dragEnterEvent(arg__1); - } -@@ -8577,6 +8868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::dragLeaveEvent(arg__1); - } -@@ -8594,6 +8886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::dragMoveEvent(arg__1); - } -@@ -8611,6 +8904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::dropEvent(arg__1); - } -@@ -8628,6 +8922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::enabledChange(arg__1); - } -@@ -8645,6 +8940,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::enterEvent(arg__1); - } -@@ -8673,6 +8969,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::event(arg__1); - } -@@ -8701,6 +8998,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::eventFilter(arg__1, arg__2); - } -@@ -8718,6 +9016,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::focusInEvent(arg__1); - } -@@ -8746,6 +9045,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::focusNextPrevChild(next); - } -@@ -8763,6 +9063,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::focusOutEvent(arg__1); - } -@@ -8780,6 +9081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::fontChange(arg__1); - } -@@ -8808,6 +9110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::heightForWidth(arg__1); - } -@@ -8825,6 +9128,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::hideEvent(arg__1); - } -@@ -8842,6 +9146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::inputMethodEvent(arg__1); - } -@@ -8870,6 +9175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::inputMethodQuery(arg__1); - } -@@ -8887,6 +9193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::keyPressEvent(arg__1); - } -@@ -8904,6 +9211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::keyReleaseEvent(arg__1); - } -@@ -8921,6 +9229,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::languageChange(); - } -@@ -8938,6 +9247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::leaveEvent(arg__1); - } -@@ -8966,6 +9276,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::metric(arg__1); - } -@@ -8994,6 +9305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::minimumSizeHint(); - } -@@ -9011,6 +9323,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::mouseDoubleClickEvent(arg__1); - } -@@ -9028,6 +9341,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::mouseMoveEvent(arg__1); - } -@@ -9045,6 +9359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::mousePressEvent(arg__1); - } -@@ -9062,6 +9377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::mouseReleaseEvent(arg__1); - } -@@ -9079,6 +9395,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::moveEvent(arg__1); - } -@@ -9107,6 +9424,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::paintEngine(); - } -@@ -9124,6 +9442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::paintEvent(arg__1); - } -@@ -9141,6 +9460,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::paletteChange(arg__1); - } -@@ -9158,6 +9478,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::resizeEvent(arg__1); - } -@@ -9175,6 +9496,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::setVisible(visible); - } -@@ -9192,6 +9514,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::showEvent(arg__1); - } -@@ -9220,6 +9543,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidget::sizeHint(); - } -@@ -9237,6 +9561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::tabletEvent(arg__1); - } -@@ -9254,6 +9579,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::timerEvent(arg__1); - } -@@ -9271,6 +9597,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::wheelEvent(arg__1); - } -@@ -9288,6 +9615,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidget::windowActivationChange(arg__1); - } -@@ -10511,6 +10839,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidgetAction::childEvent(arg__1); - } -@@ -10539,6 +10868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetAction::createWidget(parent); - } -@@ -10556,6 +10886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidgetAction::customEvent(arg__1); - } -@@ -10573,6 +10904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidgetAction::deleteWidget(widget); - } -@@ -10601,6 +10933,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetAction::event(arg__1); - } -@@ -10629,6 +10962,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetAction::eventFilter(arg__1, arg__2); - } -@@ -10646,6 +10980,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidgetAction::timerEvent(arg__1); - } -@@ -10720,6 +11055,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::expandingDirections(); - } -@@ -10748,6 +11084,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::geometry(); - } -@@ -10776,6 +11113,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::hasHeightForWidth(); - } -@@ -10804,6 +11142,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::heightForWidth(arg__1); - } -@@ -10821,6 +11160,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidgetItem::invalidate(); - } -@@ -10849,6 +11189,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::isEmpty(); - } -@@ -10877,6 +11218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::layout(); - } -@@ -10905,6 +11247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::maximumSize(); - } -@@ -10933,6 +11276,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::minimumHeightForWidth(arg__1); - } -@@ -10961,6 +11305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::minimumSize(); - } -@@ -10978,6 +11323,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWidgetItem::setGeometry(arg__1); - } -@@ -11006,6 +11352,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::sizeHint(); - } -@@ -11034,6 +11381,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::spacerItem(); - } -@@ -11062,6 +11410,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWidgetItem::widget(); - } -@@ -11155,6 +11504,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::childEvent(arg__1); - } -@@ -11172,6 +11522,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::customEvent(arg__1); - } -@@ -11189,6 +11540,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::drawComplexControl(cc, opt, p, w); - } -@@ -11206,6 +11558,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::drawControl(element, opt, p, w); - } -@@ -11223,6 +11576,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -11240,6 +11594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -11257,6 +11612,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::drawPrimitive(pe, opt, p, w); - } -@@ -11285,6 +11641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::event(arg__1); - } -@@ -11313,6 +11670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::eventFilter(o, e); - } -@@ -11341,6 +11699,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::generatedIconPixmap(iconMode, pixmap, opt); - } -@@ -11369,6 +11728,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::hitTestComplexControl(cc, opt, pt, w); - } -@@ -11397,6 +11757,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -11425,6 +11786,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::pixelMetric(pm, option, widget); - } -@@ -11442,6 +11804,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::polish(arg__1); - } -@@ -11459,6 +11822,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::polish(arg__1); - } -@@ -11476,6 +11840,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::polish(arg__1); - } -@@ -11504,6 +11869,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::sizeFromContents(ct, opt, contentsSize, widget); - } -@@ -11532,6 +11898,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::standardPalette(); - } -@@ -11560,6 +11927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -11588,6 +11956,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::styleHint(hint, opt, widget, returnData); - } -@@ -11616,6 +11985,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::subControlRect(cc, opt, sc, w); - } -@@ -11644,6 +12014,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWindowsStyle::subElementRect(r, opt, widget); - } -@@ -11661,6 +12032,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::timerEvent(event); - } -@@ -11678,6 +12050,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::unpolish(arg__1); - } -@@ -11695,6 +12068,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWindowsStyle::unpolish(arg__1); - } -@@ -11788,6 +12162,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::accept(); - } -@@ -11805,6 +12180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::actionEvent(arg__1); - } -@@ -11822,6 +12198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::changeEvent(arg__1); - } -@@ -11839,6 +12216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::childEvent(arg__1); - } -@@ -11856,6 +12234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::cleanupPage(id); - } -@@ -11873,6 +12252,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::closeEvent(arg__1); - } -@@ -11890,6 +12270,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::contextMenuEvent(arg__1); - } -@@ -11907,6 +12288,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::customEvent(arg__1); - } -@@ -11935,6 +12317,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::devType(); - } -@@ -11952,6 +12335,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::done(result); - } -@@ -11969,6 +12353,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::dragEnterEvent(arg__1); - } -@@ -11986,6 +12371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::dragLeaveEvent(arg__1); - } -@@ -12003,6 +12389,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::dragMoveEvent(arg__1); - } -@@ -12020,6 +12407,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::dropEvent(arg__1); - } -@@ -12037,6 +12425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::enterEvent(arg__1); - } -@@ -12065,6 +12454,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::event(event); - } -@@ -12093,6 +12483,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::eventFilter(arg__1, arg__2); - } -@@ -12110,6 +12501,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::focusInEvent(arg__1); - } -@@ -12138,6 +12530,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::focusNextPrevChild(next); - } -@@ -12155,6 +12548,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::focusOutEvent(arg__1); - } -@@ -12183,6 +12577,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::heightForWidth(arg__1); - } -@@ -12200,6 +12595,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::hideEvent(arg__1); - } -@@ -12217,6 +12613,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::initializePage(id); - } -@@ -12234,6 +12631,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::inputMethodEvent(arg__1); - } -@@ -12262,6 +12660,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::inputMethodQuery(arg__1); - } -@@ -12279,6 +12678,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::keyPressEvent(arg__1); - } -@@ -12296,6 +12696,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::keyReleaseEvent(arg__1); - } -@@ -12313,6 +12714,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::languageChange(); - } -@@ -12330,6 +12732,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::leaveEvent(arg__1); - } -@@ -12358,6 +12761,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::metric(arg__1); - } -@@ -12375,6 +12779,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::mouseDoubleClickEvent(arg__1); - } -@@ -12392,6 +12797,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::mouseMoveEvent(arg__1); - } -@@ -12409,6 +12815,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::mousePressEvent(arg__1); - } -@@ -12426,6 +12833,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::mouseReleaseEvent(arg__1); - } -@@ -12443,6 +12851,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::moveEvent(arg__1); - } -@@ -12471,6 +12880,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::nextId(); - } -@@ -12499,6 +12909,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::paintEngine(); - } -@@ -12516,6 +12927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::paintEvent(event); - } -@@ -12533,6 +12945,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::reject(); - } -@@ -12550,6 +12963,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::resizeEvent(event); - } -@@ -12567,6 +12981,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::showEvent(arg__1); - } -@@ -12584,6 +12999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::tabletEvent(arg__1); - } -@@ -12601,6 +13017,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::timerEvent(arg__1); - } -@@ -12629,6 +13046,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizard::validateCurrentPage(); - } -@@ -12646,6 +13064,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizard::wheelEvent(arg__1); - } -@@ -12869,6 +13288,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::actionEvent(arg__1); - } -@@ -12886,6 +13306,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::changeEvent(arg__1); - } -@@ -12903,6 +13324,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::childEvent(arg__1); - } -@@ -12920,6 +13342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::cleanupPage(); - } -@@ -12937,6 +13360,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::closeEvent(arg__1); - } -@@ -12954,6 +13378,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::contextMenuEvent(arg__1); - } -@@ -12971,6 +13396,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::customEvent(arg__1); - } -@@ -12999,6 +13425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::devType(); - } -@@ -13016,6 +13443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::dragEnterEvent(arg__1); - } -@@ -13033,6 +13461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::dragLeaveEvent(arg__1); - } -@@ -13050,6 +13479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::dragMoveEvent(arg__1); - } -@@ -13067,6 +13497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::dropEvent(arg__1); - } -@@ -13084,6 +13515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::enterEvent(arg__1); - } -@@ -13112,6 +13544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::event(arg__1); - } -@@ -13140,6 +13573,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::eventFilter(arg__1, arg__2); - } -@@ -13157,6 +13591,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::focusInEvent(arg__1); - } -@@ -13185,6 +13620,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::focusNextPrevChild(next); - } -@@ -13202,6 +13638,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::focusOutEvent(arg__1); - } -@@ -13230,6 +13667,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::heightForWidth(arg__1); - } -@@ -13247,6 +13685,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::hideEvent(arg__1); - } -@@ -13264,6 +13703,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::initializePage(); - } -@@ -13281,6 +13721,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::inputMethodEvent(arg__1); - } -@@ -13309,6 +13750,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::inputMethodQuery(arg__1); - } -@@ -13337,6 +13779,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::isComplete(); - } -@@ -13354,6 +13797,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::keyPressEvent(arg__1); - } -@@ -13371,6 +13815,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::keyReleaseEvent(arg__1); - } -@@ -13388,6 +13833,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::languageChange(); - } -@@ -13405,6 +13851,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::leaveEvent(arg__1); - } -@@ -13433,6 +13880,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::metric(arg__1); - } -@@ -13461,6 +13909,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::minimumSizeHint(); - } -@@ -13478,6 +13927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::mouseDoubleClickEvent(arg__1); - } -@@ -13495,6 +13945,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::mouseMoveEvent(arg__1); - } -@@ -13512,6 +13963,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::mousePressEvent(arg__1); - } -@@ -13529,6 +13981,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::mouseReleaseEvent(arg__1); - } -@@ -13546,6 +13999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::moveEvent(arg__1); - } -@@ -13574,6 +14028,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::nextId(); - } -@@ -13602,6 +14057,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::paintEngine(); - } -@@ -13619,6 +14075,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::paintEvent(arg__1); - } -@@ -13636,6 +14093,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::resizeEvent(arg__1); - } -@@ -13653,6 +14111,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::showEvent(arg__1); - } -@@ -13681,6 +14140,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::sizeHint(); - } -@@ -13698,6 +14158,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::tabletEvent(arg__1); - } -@@ -13715,6 +14176,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::timerEvent(arg__1); - } -@@ -13743,6 +14205,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWizardPage::validatePage(); - } -@@ -13760,6 +14223,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWizardPage::wheelEvent(arg__1); - } -@@ -13868,6 +14332,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::actionEvent(arg__1); - } -@@ -13885,6 +14350,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::changeEvent(arg__1); - } -@@ -13902,6 +14368,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::childEvent(arg__1); - } -@@ -13919,6 +14386,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::closeEvent(arg__1); - } -@@ -13936,6 +14404,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::contextMenuEvent(arg__1); - } -@@ -13953,6 +14422,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::customEvent(arg__1); - } -@@ -13981,6 +14451,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::devType(); - } -@@ -13998,6 +14469,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::dragEnterEvent(arg__1); - } -@@ -14015,6 +14487,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::dragLeaveEvent(arg__1); - } -@@ -14032,6 +14505,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::dragMoveEvent(arg__1); - } -@@ -14049,6 +14523,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::dropEvent(arg__1); - } -@@ -14066,6 +14541,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::enterEvent(arg__1); - } -@@ -14094,6 +14570,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::event(e); - } -@@ -14122,6 +14599,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::eventFilter(arg__1, arg__2); - } -@@ -14139,6 +14617,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::focusInEvent(arg__1); - } -@@ -14167,6 +14646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::focusNextPrevChild(next); - } -@@ -14184,6 +14664,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::focusOutEvent(arg__1); - } -@@ -14212,6 +14693,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::heightForWidth(arg__1); - } -@@ -14229,6 +14711,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::hideEvent(e); - } -@@ -14246,6 +14729,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::inputMethodEvent(arg__1); - } -@@ -14274,6 +14758,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::inputMethodQuery(arg__1); - } -@@ -14291,6 +14776,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::keyPressEvent(arg__1); - } -@@ -14308,6 +14794,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::keyReleaseEvent(arg__1); - } -@@ -14325,6 +14812,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::languageChange(); - } -@@ -14342,6 +14830,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::leaveEvent(arg__1); - } -@@ -14370,6 +14859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::metric(arg__1); - } -@@ -14398,6 +14888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::minimumSizeHint(); - } -@@ -14415,6 +14906,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::mouseDoubleClickEvent(arg__1); - } -@@ -14432,6 +14924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::mouseMoveEvent(arg__1); - } -@@ -14449,6 +14942,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::mousePressEvent(arg__1); - } -@@ -14466,6 +14960,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::mouseReleaseEvent(arg__1); - } -@@ -14483,6 +14978,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::moveEvent(arg__1); - } -@@ -14511,6 +15007,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QWorkspace::paintEngine(); - } -@@ -14528,6 +15025,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::paintEvent(e); - } -@@ -14545,6 +15043,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::resizeEvent(arg__1); - } -@@ -14562,6 +15061,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::showEvent(e); - } -@@ -14579,6 +15079,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::tabletEvent(arg__1); - } -@@ -14596,6 +15097,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::timerEvent(arg__1); - } -@@ -14613,6 +15115,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QWorkspace::wheelEvent(e); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -index b0abee7..bb3fda1 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui2.cpp -@@ -90,6 +90,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::accept(); - } -@@ -107,6 +108,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::actionEvent(arg__1); - } -@@ -124,6 +126,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::changeEvent(e); - } -@@ -141,6 +144,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::childEvent(arg__1); - } -@@ -158,6 +162,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::closeEvent(arg__1); - } -@@ -175,6 +180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::contextMenuEvent(arg__1); - } -@@ -192,6 +198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::customEvent(arg__1); - } -@@ -220,6 +227,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::devType(); - } -@@ -237,6 +245,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::done(arg__1); - } -@@ -254,6 +263,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::dragEnterEvent(arg__1); - } -@@ -271,6 +281,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::dragLeaveEvent(arg__1); - } -@@ -288,6 +299,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::dragMoveEvent(arg__1); - } -@@ -305,6 +317,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::dropEvent(arg__1); - } -@@ -322,6 +335,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::enterEvent(arg__1); - } -@@ -350,6 +364,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::event(arg__1); - } -@@ -378,6 +393,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::eventFilter(arg__1, arg__2); - } -@@ -395,6 +411,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::focusInEvent(arg__1); - } -@@ -423,6 +440,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::focusNextPrevChild(next); - } -@@ -440,6 +458,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::focusOutEvent(arg__1); - } -@@ -468,6 +487,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::heightForWidth(arg__1); - } -@@ -485,6 +505,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::hideEvent(arg__1); - } -@@ -502,6 +523,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::inputMethodEvent(arg__1); - } -@@ -530,6 +552,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::inputMethodQuery(arg__1); - } -@@ -547,6 +570,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::keyPressEvent(arg__1); - } -@@ -564,6 +588,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::keyReleaseEvent(arg__1); - } -@@ -581,6 +606,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::languageChange(); - } -@@ -598,6 +624,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::leaveEvent(arg__1); - } -@@ -626,6 +653,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::metric(arg__1); - } -@@ -643,6 +671,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::mouseDoubleClickEvent(arg__1); - } -@@ -660,6 +689,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::mouseMoveEvent(arg__1); - } -@@ -677,6 +707,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::mousePressEvent(arg__1); - } -@@ -694,6 +725,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::mouseReleaseEvent(arg__1); - } -@@ -711,6 +743,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::moveEvent(arg__1); - } -@@ -739,6 +772,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QErrorMessage::paintEngine(); - } -@@ -756,6 +790,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::paintEvent(arg__1); - } -@@ -773,6 +808,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::reject(); - } -@@ -790,6 +826,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::resizeEvent(arg__1); - } -@@ -807,6 +844,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::showEvent(arg__1); - } -@@ -824,6 +862,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::tabletEvent(arg__1); - } -@@ -841,6 +880,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::timerEvent(arg__1); - } -@@ -858,6 +898,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QErrorMessage::wheelEvent(arg__1); - } -@@ -896,6 +937,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::accept(); - } -@@ -913,6 +955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::actionEvent(arg__1); - } -@@ -930,6 +973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::changeEvent(e); - } -@@ -947,6 +991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::childEvent(arg__1); - } -@@ -964,6 +1009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::closeEvent(arg__1); - } -@@ -981,6 +1027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::contextMenuEvent(arg__1); - } -@@ -998,6 +1045,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::customEvent(arg__1); - } -@@ -1026,6 +1074,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::devType(); - } -@@ -1043,6 +1092,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::done(result); - } -@@ -1060,6 +1110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::dragEnterEvent(arg__1); - } -@@ -1077,6 +1128,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::dragLeaveEvent(arg__1); - } -@@ -1094,6 +1146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::dragMoveEvent(arg__1); - } -@@ -1111,6 +1164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::dropEvent(arg__1); - } -@@ -1128,6 +1182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::enterEvent(arg__1); - } -@@ -1156,6 +1211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::event(arg__1); - } -@@ -1184,6 +1240,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::eventFilter(arg__1, arg__2); - } -@@ -1201,6 +1258,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::focusInEvent(arg__1); - } -@@ -1229,6 +1287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::focusNextPrevChild(next); - } -@@ -1246,6 +1305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::focusOutEvent(arg__1); - } -@@ -1274,6 +1334,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::heightForWidth(arg__1); - } -@@ -1291,6 +1352,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::hideEvent(arg__1); - } -@@ -1308,6 +1370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::inputMethodEvent(arg__1); - } -@@ -1336,6 +1399,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::inputMethodQuery(arg__1); - } -@@ -1353,6 +1417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::keyPressEvent(arg__1); - } -@@ -1370,6 +1435,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::keyReleaseEvent(arg__1); - } -@@ -1387,6 +1453,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::languageChange(); - } -@@ -1404,6 +1471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::leaveEvent(arg__1); - } -@@ -1432,6 +1500,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::metric(arg__1); - } -@@ -1449,6 +1518,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::mouseDoubleClickEvent(arg__1); - } -@@ -1466,6 +1536,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::mouseMoveEvent(arg__1); - } -@@ -1483,6 +1554,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::mousePressEvent(arg__1); - } -@@ -1500,6 +1572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::mouseReleaseEvent(arg__1); - } -@@ -1517,6 +1590,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::moveEvent(arg__1); - } -@@ -1545,6 +1619,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileDialog::paintEngine(); - } -@@ -1562,6 +1637,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::paintEvent(arg__1); - } -@@ -1579,6 +1655,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::reject(); - } -@@ -1596,6 +1673,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::resizeEvent(arg__1); - } -@@ -1613,6 +1691,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::showEvent(arg__1); - } -@@ -1630,6 +1709,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::tabletEvent(arg__1); - } -@@ -1647,6 +1727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::timerEvent(arg__1); - } -@@ -1664,6 +1745,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFileDialog::wheelEvent(arg__1); - } -@@ -2007,6 +2089,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileIconProvider::icon(type); - } -@@ -2035,6 +2118,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileIconProvider::icon(info); - } -@@ -2063,6 +2147,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFileIconProvider::type(info); - } -@@ -2142,6 +2227,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::actionEvent(arg__1); - } -@@ -2159,6 +2245,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::changeEvent(arg__1); - } -@@ -2176,6 +2263,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::childEvent(arg__1); - } -@@ -2193,6 +2281,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::closeEvent(arg__1); - } -@@ -2210,6 +2299,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::contextMenuEvent(arg__1); - } -@@ -2227,6 +2317,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::customEvent(arg__1); - } -@@ -2255,6 +2346,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::devType(); - } -@@ -2272,6 +2364,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::dragEnterEvent(arg__1); - } -@@ -2289,6 +2382,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::dragLeaveEvent(arg__1); - } -@@ -2306,6 +2400,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::dragMoveEvent(arg__1); - } -@@ -2323,6 +2418,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::dropEvent(arg__1); - } -@@ -2340,6 +2436,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::enterEvent(arg__1); - } -@@ -2368,6 +2465,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::event(e); - } -@@ -2396,6 +2494,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::eventFilter(arg__1, arg__2); - } -@@ -2413,6 +2512,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::focusInEvent(arg__1); - } -@@ -2441,6 +2541,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::focusNextPrevChild(next); - } -@@ -2458,6 +2559,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::focusOutEvent(arg__1); - } -@@ -2486,6 +2588,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::heightForWidth(arg__1); - } -@@ -2503,6 +2606,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::hideEvent(arg__1); - } -@@ -2520,6 +2624,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::inputMethodEvent(arg__1); - } -@@ -2548,6 +2653,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::inputMethodQuery(arg__1); - } -@@ -2565,6 +2671,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::keyPressEvent(arg__1); - } -@@ -2582,6 +2689,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::keyReleaseEvent(arg__1); - } -@@ -2599,6 +2707,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::languageChange(); - } -@@ -2616,6 +2725,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::leaveEvent(arg__1); - } -@@ -2644,6 +2754,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::metric(arg__1); - } -@@ -2672,6 +2783,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::minimumSizeHint(); - } -@@ -2689,6 +2801,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::mouseDoubleClickEvent(arg__1); - } -@@ -2706,6 +2819,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::mouseMoveEvent(arg__1); - } -@@ -2723,6 +2837,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::mousePressEvent(arg__1); - } -@@ -2740,6 +2855,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::mouseReleaseEvent(arg__1); - } -@@ -2757,6 +2873,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::moveEvent(arg__1); - } -@@ -2785,6 +2902,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::paintEngine(); - } -@@ -2802,6 +2920,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::paintEvent(arg__1); - } -@@ -2819,6 +2938,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::resizeEvent(arg__1); - } -@@ -2836,6 +2956,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::showEvent(arg__1); - } -@@ -2864,6 +2985,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFocusFrame::sizeHint(); - } -@@ -2881,6 +3003,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::tabletEvent(arg__1); - } -@@ -2898,6 +3021,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::timerEvent(arg__1); - } -@@ -2915,6 +3039,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFocusFrame::wheelEvent(arg__1); - } -@@ -2963,6 +3088,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::actionEvent(arg__1); - } -@@ -2980,6 +3106,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::changeEvent(e); - } -@@ -2997,6 +3124,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::childEvent(arg__1); - } -@@ -3014,6 +3142,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::closeEvent(arg__1); - } -@@ -3031,6 +3160,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::contextMenuEvent(e); - } -@@ -3048,6 +3178,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::customEvent(arg__1); - } -@@ -3076,6 +3207,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::devType(); - } -@@ -3093,6 +3225,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::dragEnterEvent(arg__1); - } -@@ -3110,6 +3243,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::dragLeaveEvent(arg__1); - } -@@ -3127,6 +3261,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::dragMoveEvent(arg__1); - } -@@ -3144,6 +3279,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::dropEvent(arg__1); - } -@@ -3161,6 +3297,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::enterEvent(arg__1); - } -@@ -3189,6 +3326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::event(e); - } -@@ -3217,6 +3355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::eventFilter(arg__1, arg__2); - } -@@ -3234,6 +3373,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::focusInEvent(e); - } -@@ -3262,6 +3402,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::focusNextPrevChild(next); - } -@@ -3279,6 +3420,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::focusOutEvent(e); - } -@@ -3307,6 +3449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::heightForWidth(arg__1); - } -@@ -3324,6 +3467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::hideEvent(e); - } -@@ -3341,6 +3485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::hidePopup(); - } -@@ -3358,6 +3503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::inputMethodEvent(arg__1); - } -@@ -3386,6 +3532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::inputMethodQuery(arg__1); - } -@@ -3403,6 +3550,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::keyPressEvent(e); - } -@@ -3420,6 +3568,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::keyReleaseEvent(e); - } -@@ -3437,6 +3586,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::languageChange(); - } -@@ -3454,6 +3604,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::leaveEvent(arg__1); - } -@@ -3482,6 +3633,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::metric(arg__1); - } -@@ -3499,6 +3651,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::mouseDoubleClickEvent(arg__1); - } -@@ -3516,6 +3669,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::mouseMoveEvent(arg__1); - } -@@ -3533,6 +3687,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::mousePressEvent(e); - } -@@ -3550,6 +3705,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::mouseReleaseEvent(e); - } -@@ -3567,6 +3723,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::moveEvent(arg__1); - } -@@ -3595,6 +3752,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontComboBox::paintEngine(); - } -@@ -3612,6 +3770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::paintEvent(e); - } -@@ -3629,6 +3788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::resizeEvent(e); - } -@@ -3646,6 +3806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::showEvent(e); - } -@@ -3663,6 +3824,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::showPopup(); - } -@@ -3680,6 +3842,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::tabletEvent(arg__1); - } -@@ -3697,6 +3860,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::timerEvent(arg__1); - } -@@ -3714,6 +3878,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontComboBox::wheelEvent(e); - } -@@ -3772,6 +3937,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::accept(); - } -@@ -3789,6 +3955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::actionEvent(arg__1); - } -@@ -3806,6 +3973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::changeEvent(event); - } -@@ -3823,6 +3991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::childEvent(arg__1); - } -@@ -3840,6 +4009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::closeEvent(arg__1); - } -@@ -3857,6 +4027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::contextMenuEvent(arg__1); - } -@@ -3874,6 +4045,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::customEvent(arg__1); - } -@@ -3902,6 +4074,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontDialog::devType(); - } -@@ -3919,6 +4092,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::done(result); - } -@@ -3936,6 +4110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::dragEnterEvent(arg__1); - } -@@ -3953,6 +4128,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::dragLeaveEvent(arg__1); - } -@@ -3970,6 +4146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::dragMoveEvent(arg__1); - } -@@ -3987,6 +4164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::dropEvent(arg__1); - } -@@ -4004,6 +4182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::enterEvent(arg__1); - } -@@ -4032,6 +4211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontDialog::event(arg__1); - } -@@ -4049,6 +4229,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::focusInEvent(arg__1); - } -@@ -4077,6 +4258,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontDialog::focusNextPrevChild(next); - } -@@ -4094,6 +4276,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::focusOutEvent(arg__1); - } -@@ -4122,6 +4305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontDialog::heightForWidth(arg__1); - } -@@ -4139,6 +4323,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::hideEvent(arg__1); - } -@@ -4156,6 +4341,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::inputMethodEvent(arg__1); - } -@@ -4184,6 +4370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontDialog::inputMethodQuery(arg__1); - } -@@ -4201,6 +4388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::keyPressEvent(arg__1); - } -@@ -4218,6 +4406,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::keyReleaseEvent(arg__1); - } -@@ -4235,6 +4424,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::languageChange(); - } -@@ -4252,6 +4442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::leaveEvent(arg__1); - } -@@ -4280,6 +4471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontDialog::metric(arg__1); - } -@@ -4297,6 +4489,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::mouseDoubleClickEvent(arg__1); - } -@@ -4314,6 +4507,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::mouseMoveEvent(arg__1); - } -@@ -4331,6 +4525,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::mousePressEvent(arg__1); - } -@@ -4348,6 +4543,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::mouseReleaseEvent(arg__1); - } -@@ -4365,6 +4561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::moveEvent(arg__1); - } -@@ -4393,6 +4590,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFontDialog::paintEngine(); - } -@@ -4410,6 +4608,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::paintEvent(arg__1); - } -@@ -4427,6 +4626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::reject(); - } -@@ -4444,6 +4644,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::resizeEvent(arg__1); - } -@@ -4461,6 +4662,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::showEvent(arg__1); - } -@@ -4478,6 +4680,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::tabletEvent(arg__1); - } -@@ -4495,6 +4698,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::timerEvent(arg__1); - } -@@ -4512,6 +4716,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFontDialog::wheelEvent(arg__1); - } -@@ -4984,6 +5189,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFormLayout::addItem(item); - } -@@ -5001,6 +5207,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFormLayout::childEvent(e); - } -@@ -5029,6 +5236,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::count(); - } -@@ -5046,6 +5254,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFormLayout::customEvent(arg__1); - } -@@ -5074,6 +5283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::event(arg__1); - } -@@ -5102,6 +5312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::eventFilter(arg__1, arg__2); - } -@@ -5130,6 +5341,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::expandingDirections(); - } -@@ -5158,6 +5370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::geometry(); - } -@@ -5186,6 +5399,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::indexOf(arg__1); - } -@@ -5203,6 +5417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFormLayout::invalidate(); - } -@@ -5231,6 +5446,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::isEmpty(); - } -@@ -5259,6 +5475,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::itemAt(index); - } -@@ -5287,6 +5504,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::layout(); - } -@@ -5315,6 +5533,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::maximumSize(); - } -@@ -5343,6 +5562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::minimumSize(); - } -@@ -5360,6 +5580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFormLayout::setGeometry(rect); - } -@@ -5388,6 +5609,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFormLayout::takeAt(index); - } -@@ -5405,6 +5627,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFormLayout::timerEvent(arg__1); - } -@@ -5663,6 +5886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::actionEvent(arg__1); - } -@@ -5680,6 +5904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::changeEvent(arg__1); - } -@@ -5697,6 +5922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::childEvent(arg__1); - } -@@ -5714,6 +5940,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::closeEvent(arg__1); - } -@@ -5731,6 +5958,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::contextMenuEvent(arg__1); - } -@@ -5748,6 +5976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::customEvent(arg__1); - } -@@ -5776,6 +6005,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::devType(); - } -@@ -5793,6 +6023,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::dragEnterEvent(arg__1); - } -@@ -5810,6 +6041,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::dragLeaveEvent(arg__1); - } -@@ -5827,6 +6059,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::dragMoveEvent(arg__1); - } -@@ -5844,6 +6077,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::dropEvent(arg__1); - } -@@ -5861,6 +6095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::enterEvent(arg__1); - } -@@ -5889,6 +6124,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::event(e); - } -@@ -5917,6 +6153,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::eventFilter(arg__1, arg__2); - } -@@ -5934,6 +6171,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::focusInEvent(arg__1); - } -@@ -5962,6 +6200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::focusNextPrevChild(next); - } -@@ -5979,6 +6218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::focusOutEvent(arg__1); - } -@@ -6007,6 +6247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::heightForWidth(arg__1); - } -@@ -6024,6 +6265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::hideEvent(arg__1); - } -@@ -6041,6 +6283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::inputMethodEvent(arg__1); - } -@@ -6069,6 +6312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::inputMethodQuery(arg__1); - } -@@ -6086,6 +6330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::keyPressEvent(arg__1); - } -@@ -6103,6 +6348,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::keyReleaseEvent(arg__1); - } -@@ -6120,6 +6366,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::languageChange(); - } -@@ -6137,6 +6384,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::leaveEvent(arg__1); - } -@@ -6165,6 +6413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::metric(arg__1); - } -@@ -6193,6 +6442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::minimumSizeHint(); - } -@@ -6210,6 +6460,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::mouseDoubleClickEvent(arg__1); - } -@@ -6227,6 +6478,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::mouseMoveEvent(arg__1); - } -@@ -6244,6 +6496,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::mousePressEvent(arg__1); - } -@@ -6261,6 +6514,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::mouseReleaseEvent(arg__1); - } -@@ -6278,6 +6532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::moveEvent(arg__1); - } -@@ -6306,6 +6561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFrame::paintEngine(); - } -@@ -6323,6 +6579,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::paintEvent(arg__1); - } -@@ -6340,6 +6597,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::resizeEvent(arg__1); - } -@@ -6357,6 +6615,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::showEvent(arg__1); - } -@@ -6374,6 +6633,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::tabletEvent(arg__1); - } -@@ -6391,6 +6651,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::timerEvent(arg__1); - } -@@ -6408,6 +6669,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFrame::wheelEvent(arg__1); - } -@@ -6516,6 +6778,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGesture::childEvent(arg__1); - } -@@ -6533,6 +6796,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGesture::customEvent(arg__1); - } -@@ -6561,6 +6825,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGesture::event(arg__1); - } -@@ -6589,6 +6854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGesture::eventFilter(arg__1, arg__2); - } -@@ -6606,6 +6872,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGesture::timerEvent(arg__1); - } -@@ -6748,6 +7015,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsAnchorLayout::count(); - } -@@ -6765,6 +7033,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsAnchorLayout::getContentsMargins(left, top, right, bottom); - } -@@ -6782,6 +7051,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsAnchorLayout::invalidate(); - } -@@ -6810,6 +7080,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsAnchorLayout::itemAt(index); - } -@@ -6827,6 +7098,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsAnchorLayout::removeAt(index); - } -@@ -6844,6 +7116,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsAnchorLayout::updateGeometry(); - } -@@ -6861,6 +7134,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsAnchorLayout::widgetEvent(e); - } -@@ -6965,6 +7239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsEffect::boundingRectFor(sourceRect); - } -@@ -6982,6 +7257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsEffect::childEvent(arg__1); - } -@@ -6999,6 +7275,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsEffect::customEvent(arg__1); - } -@@ -7016,6 +7293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -7044,6 +7322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsEffect::event(arg__1); - } -@@ -7072,6 +7351,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsEffect::eventFilter(arg__1, arg__2); - } -@@ -7089,6 +7369,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsEffect::sourceChanged(flags); - } -@@ -7106,6 +7387,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsEffect::timerEvent(arg__1); - } -@@ -7160,6 +7442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsEllipseItem::isObscuredBy(item); - } -@@ -7188,6 +7471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsEllipseItem::opaqueArea(); - } -@@ -7300,6 +7584,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsGridLayout::count(); - } -@@ -7317,6 +7602,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsGridLayout::getContentsMargins(left, top, right, bottom); - } -@@ -7334,6 +7620,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsGridLayout::invalidate(); - } -@@ -7362,6 +7649,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsGridLayout::itemAt(index); - } -@@ -7379,6 +7667,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsGridLayout::removeAt(index); - } -@@ -7396,6 +7685,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsGridLayout::updateGeometry(); - } -@@ -7413,6 +7703,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsGridLayout::widgetEvent(e); - } -@@ -7656,6 +7947,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::advance(phase); - } -@@ -7684,6 +7976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRectF(); - } -@@ -7712,6 +8005,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::collidesWithItem(other, mode); - } -@@ -7740,6 +8034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::collidesWithPath(path, mode); - } -@@ -7768,6 +8063,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::contains(point); - } -@@ -7785,6 +8081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::contextMenuEvent(event); - } -@@ -7802,6 +8099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::dragEnterEvent(event); - } -@@ -7819,6 +8117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::dragLeaveEvent(event); - } -@@ -7836,6 +8135,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::dragMoveEvent(event); - } -@@ -7853,6 +8153,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::dropEvent(event); - } -@@ -7881,6 +8182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::extension(variant); - } -@@ -7898,6 +8200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::focusInEvent(event); - } -@@ -7915,6 +8218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::focusOutEvent(event); - } -@@ -7932,6 +8236,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::hoverEnterEvent(event); - } -@@ -7949,6 +8254,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::hoverLeaveEvent(event); - } -@@ -7966,6 +8272,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::hoverMoveEvent(event); - } -@@ -7983,6 +8290,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::inputMethodEvent(event); - } -@@ -8011,6 +8319,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::inputMethodQuery(query); - } -@@ -8039,6 +8348,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::isObscuredBy(item); - } -@@ -8067,6 +8377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::itemChange(change, value); - } -@@ -8084,6 +8395,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::keyPressEvent(event); - } -@@ -8101,6 +8413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::keyReleaseEvent(event); - } -@@ -8118,6 +8431,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::mouseDoubleClickEvent(event); - } -@@ -8135,6 +8449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::mouseMoveEvent(event); - } -@@ -8152,6 +8467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::mousePressEvent(event); - } -@@ -8169,6 +8485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::mouseReleaseEvent(event); - } -@@ -8197,6 +8514,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::opaqueArea(); - } -@@ -8214,6 +8532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -8242,6 +8561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::sceneEvent(event); - } -@@ -8270,6 +8590,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::sceneEventFilter(watched, event); - } -@@ -8287,6 +8608,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::setExtension(extension, variant); - } -@@ -8315,6 +8637,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::shape(); - } -@@ -8343,6 +8666,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::supportsExtension(extension); - } -@@ -8371,6 +8695,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItem::type(); - } -@@ -8388,6 +8713,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItem::wheelEvent(event); - } -@@ -9450,6 +9776,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemAnimation::afterAnimationStep(step); - } -@@ -9467,6 +9794,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemAnimation::beforeAnimationStep(step); - } -@@ -9484,6 +9812,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemAnimation::childEvent(arg__1); - } -@@ -9501,6 +9830,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemAnimation::customEvent(arg__1); - } -@@ -9529,6 +9859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemAnimation::event(arg__1); - } -@@ -9557,6 +9888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemAnimation::eventFilter(arg__1, arg__2); - } -@@ -9574,6 +9906,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemAnimation::timerEvent(arg__1); - } -@@ -9727,6 +10060,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::advance(phase); - } -@@ -9755,6 +10089,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::boundingRect(); - } -@@ -9783,6 +10118,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::collidesWithItem(other, mode); - } -@@ -9811,6 +10147,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::collidesWithPath(path, mode); - } -@@ -9839,6 +10176,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::contains(point); - } -@@ -9856,6 +10194,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::contextMenuEvent(event); - } -@@ -9873,6 +10212,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::dragEnterEvent(event); - } -@@ -9890,6 +10230,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::dragLeaveEvent(event); - } -@@ -9907,6 +10248,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::dragMoveEvent(event); - } -@@ -9924,6 +10266,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::dropEvent(event); - } -@@ -9952,6 +10295,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::extension(variant); - } -@@ -9969,6 +10313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::focusInEvent(event); - } -@@ -9986,6 +10331,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::focusOutEvent(event); - } -@@ -10003,6 +10349,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::hoverEnterEvent(event); - } -@@ -10020,6 +10367,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::hoverLeaveEvent(event); - } -@@ -10037,6 +10385,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::hoverMoveEvent(event); - } -@@ -10054,6 +10403,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::inputMethodEvent(event); - } -@@ -10082,6 +10432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::inputMethodQuery(query); - } -@@ -10110,6 +10461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::isObscuredBy(item); - } -@@ -10138,6 +10490,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::itemChange(change, value); - } -@@ -10155,6 +10508,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::keyPressEvent(event); - } -@@ -10172,6 +10526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::keyReleaseEvent(event); - } -@@ -10189,6 +10544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::mouseDoubleClickEvent(event); - } -@@ -10206,6 +10562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::mouseMoveEvent(event); - } -@@ -10223,6 +10580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::mousePressEvent(event); - } -@@ -10240,6 +10598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::mouseReleaseEvent(event); - } -@@ -10268,6 +10627,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::opaqueArea(); - } -@@ -10285,6 +10645,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::paint(painter, option, widget); - } -@@ -10313,6 +10674,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::sceneEvent(event); - } -@@ -10341,6 +10703,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::sceneEventFilter(watched, event); - } -@@ -10358,6 +10721,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::setExtension(extension, variant); - } -@@ -10386,6 +10750,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::shape(); - } -@@ -10414,6 +10779,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::supportsExtension(extension); - } -@@ -10442,6 +10808,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsItemGroup::type(); - } -@@ -10459,6 +10826,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsItemGroup::wheelEvent(event); - } -@@ -10528,6 +10896,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -10545,6 +10914,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayout::getContentsMargins(left, top, right, bottom); - } -@@ -10562,6 +10932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayout::invalidate(); - } -@@ -10590,6 +10961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -10607,6 +10979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -10624,6 +10997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayout::setGeometry(rect); - } -@@ -10652,6 +11026,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeF(); - } -@@ -10669,6 +11044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayout::updateGeometry(); - } -@@ -10686,6 +11062,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayout::widgetEvent(e); - } -@@ -10744,6 +11121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayoutItem::getContentsMargins(left, top, right, bottom); - } -@@ -10761,6 +11139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayoutItem::setGeometry(rect); - } -@@ -10789,6 +11168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeF(); - } -@@ -10806,6 +11186,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLayoutItem::updateGeometry(); - } -@@ -11004,6 +11385,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::advance(phase); - } -@@ -11032,6 +11414,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::boundingRect(); - } -@@ -11060,6 +11443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::collidesWithItem(other, mode); - } -@@ -11088,6 +11472,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::collidesWithPath(path, mode); - } -@@ -11116,6 +11501,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::contains(point); - } -@@ -11133,6 +11519,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::contextMenuEvent(event); - } -@@ -11150,6 +11537,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::dragEnterEvent(event); - } -@@ -11167,6 +11555,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::dragLeaveEvent(event); - } -@@ -11184,6 +11573,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::dragMoveEvent(event); - } -@@ -11201,6 +11591,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::dropEvent(event); - } -@@ -11229,6 +11620,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::extension(variant); - } -@@ -11246,6 +11638,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::focusInEvent(event); - } -@@ -11263,6 +11656,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::focusOutEvent(event); - } -@@ -11280,6 +11674,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::hoverEnterEvent(event); - } -@@ -11297,6 +11692,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::hoverLeaveEvent(event); - } -@@ -11314,6 +11710,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::hoverMoveEvent(event); - } -@@ -11331,6 +11728,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::inputMethodEvent(event); - } -@@ -11359,6 +11757,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::inputMethodQuery(query); - } -@@ -11387,6 +11786,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::isObscuredBy(item); - } -@@ -11415,6 +11815,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::itemChange(change, value); - } -@@ -11432,6 +11833,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::keyPressEvent(event); - } -@@ -11449,6 +11851,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::keyReleaseEvent(event); - } -@@ -11466,6 +11869,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::mouseDoubleClickEvent(event); - } -@@ -11483,6 +11887,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::mouseMoveEvent(event); - } -@@ -11500,6 +11905,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::mousePressEvent(event); - } -@@ -11517,6 +11923,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::mouseReleaseEvent(event); - } -@@ -11545,6 +11952,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::opaqueArea(); - } -@@ -11562,6 +11970,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::paint(painter, option, widget); - } -@@ -11590,6 +11999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::sceneEvent(event); - } -@@ -11618,6 +12028,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::sceneEventFilter(watched, event); - } -@@ -11646,6 +12057,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::shape(); - } -@@ -11674,6 +12086,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLineItem::type(); - } -@@ -11691,6 +12104,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLineItem::wheelEvent(event); - } -@@ -11798,6 +12212,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLinearLayout::count(); - } -@@ -11815,6 +12230,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLinearLayout::getContentsMargins(left, top, right, bottom); - } -@@ -11832,6 +12248,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLinearLayout::invalidate(); - } -@@ -11860,6 +12277,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsLinearLayout::itemAt(index); - } -@@ -11877,6 +12295,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLinearLayout::removeAt(index); - } -@@ -11894,6 +12313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLinearLayout::updateGeometry(); - } -@@ -11911,6 +12331,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsLinearLayout::widgetEvent(e); - } -@@ -12048,6 +12469,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::advance(phase); - } -@@ -12076,6 +12498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRectF(); - } -@@ -12093,6 +12516,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::childEvent(arg__1); - } -@@ -12121,6 +12545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::collidesWithItem(other, mode); - } -@@ -12149,6 +12574,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::collidesWithPath(path, mode); - } -@@ -12177,6 +12603,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::contains(point); - } -@@ -12194,6 +12621,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::contextMenuEvent(event); - } -@@ -12211,6 +12639,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::customEvent(arg__1); - } -@@ -12228,6 +12657,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::dragEnterEvent(event); - } -@@ -12245,6 +12675,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::dragLeaveEvent(event); - } -@@ -12262,6 +12693,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::dragMoveEvent(event); - } -@@ -12279,6 +12711,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::dropEvent(event); - } -@@ -12307,6 +12740,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::event(arg__1); - } -@@ -12335,6 +12769,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::eventFilter(arg__1, arg__2); - } -@@ -12363,6 +12798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::extension(variant); - } -@@ -12380,6 +12816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::focusInEvent(event); - } -@@ -12397,6 +12834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::focusOutEvent(event); - } -@@ -12414,6 +12852,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::hoverEnterEvent(event); - } -@@ -12431,6 +12870,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::hoverLeaveEvent(event); - } -@@ -12448,6 +12888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::hoverMoveEvent(event); - } -@@ -12465,6 +12906,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::inputMethodEvent(event); - } -@@ -12493,6 +12935,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::inputMethodQuery(query); - } -@@ -12521,6 +12964,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::isObscuredBy(item); - } -@@ -12549,6 +12993,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::itemChange(change, value); - } -@@ -12566,6 +13011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::keyPressEvent(event); - } -@@ -12583,6 +13029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::keyReleaseEvent(event); - } -@@ -12600,6 +13047,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::mouseDoubleClickEvent(event); - } -@@ -12617,6 +13065,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::mouseMoveEvent(event); - } -@@ -12634,6 +13083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::mousePressEvent(event); - } -@@ -12651,6 +13101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::mouseReleaseEvent(event); - } -@@ -12679,6 +13130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::opaqueArea(); - } -@@ -12696,6 +13148,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -12724,6 +13177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::sceneEvent(event); - } -@@ -12752,6 +13206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::sceneEventFilter(watched, event); - } -@@ -12769,6 +13224,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::setExtension(extension, variant); - } -@@ -12797,6 +13253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::shape(); - } -@@ -12825,6 +13282,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::supportsExtension(extension); - } -@@ -12842,6 +13300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::timerEvent(arg__1); - } -@@ -12870,6 +13329,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsObject::type(); - } -@@ -12887,6 +13347,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsObject::wheelEvent(event); - } -@@ -12930,6 +13391,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsOpacityEffect::boundingRectFor(sourceRect); - } -@@ -12947,6 +13409,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsOpacityEffect::childEvent(arg__1); - } -@@ -12964,6 +13427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsOpacityEffect::customEvent(arg__1); - } -@@ -12981,6 +13445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsOpacityEffect::draw(painter); - } -@@ -13009,6 +13474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsOpacityEffect::event(arg__1); - } -@@ -13037,6 +13503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsOpacityEffect::eventFilter(arg__1, arg__2); - } -@@ -13054,6 +13521,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsOpacityEffect::sourceChanged(flags); - } -@@ -13071,6 +13539,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsOpacityEffect::timerEvent(arg__1); - } -@@ -13120,6 +13589,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPathItem::isObscuredBy(item); - } -@@ -13148,6 +13618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPathItem::opaqueArea(); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp -index b773a32..8d684b3 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui3.cpp -@@ -81,6 +81,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::advance(phase); - } -@@ -109,6 +110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::boundingRect(); - } -@@ -137,6 +139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::collidesWithItem(other, mode); - } -@@ -165,6 +168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::collidesWithPath(path, mode); - } -@@ -193,6 +197,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::contains(point); - } -@@ -210,6 +215,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::contextMenuEvent(event); - } -@@ -227,6 +233,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::dragEnterEvent(event); - } -@@ -244,6 +251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::dragLeaveEvent(event); - } -@@ -261,6 +269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::dragMoveEvent(event); - } -@@ -278,6 +287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::dropEvent(event); - } -@@ -306,6 +316,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::extension(variant); - } -@@ -323,6 +334,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::focusInEvent(event); - } -@@ -340,6 +352,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::focusOutEvent(event); - } -@@ -357,6 +370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::hoverEnterEvent(event); - } -@@ -374,6 +388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::hoverLeaveEvent(event); - } -@@ -391,6 +406,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::hoverMoveEvent(event); - } -@@ -408,6 +424,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::inputMethodEvent(event); - } -@@ -436,6 +453,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::inputMethodQuery(query); - } -@@ -464,6 +482,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::isObscuredBy(item); - } -@@ -492,6 +511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::itemChange(change, value); - } -@@ -509,6 +529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::keyPressEvent(event); - } -@@ -526,6 +547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::keyReleaseEvent(event); - } -@@ -543,6 +565,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::mouseDoubleClickEvent(event); - } -@@ -560,6 +583,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::mouseMoveEvent(event); - } -@@ -577,6 +601,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::mousePressEvent(event); - } -@@ -594,6 +619,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::mouseReleaseEvent(event); - } -@@ -622,6 +648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::opaqueArea(); - } -@@ -639,6 +666,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::paint(painter, option, widget); - } -@@ -667,6 +695,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::sceneEvent(event); - } -@@ -695,6 +724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::sceneEventFilter(watched, event); - } -@@ -723,6 +753,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::shape(); - } -@@ -751,6 +782,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPixmapItem::type(); - } -@@ -768,6 +800,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsPixmapItem::wheelEvent(event); - } -@@ -891,6 +924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPolygonItem::isObscuredBy(item); - } -@@ -919,6 +953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsPolygonItem::opaqueArea(); - } -@@ -1001,6 +1036,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::changeEvent(event); - } -@@ -1018,6 +1054,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::childEvent(arg__1); - } -@@ -1035,6 +1072,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::closeEvent(event); - } -@@ -1052,6 +1090,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::customEvent(arg__1); - } -@@ -1080,6 +1119,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsProxyWidget::event(event); - } -@@ -1108,6 +1148,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsProxyWidget::eventFilter(object, event); - } -@@ -1136,6 +1177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsProxyWidget::focusNextPrevChild(next); - } -@@ -1153,6 +1195,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::getContentsMargins(left, top, right, bottom); - } -@@ -1170,6 +1213,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::grabKeyboardEvent(event); - } -@@ -1187,6 +1231,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::grabMouseEvent(event); - } -@@ -1204,6 +1249,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::hideEvent(event); - } -@@ -1221,6 +1267,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::hoverLeaveEvent(event); - } -@@ -1238,6 +1285,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::hoverMoveEvent(event); - } -@@ -1255,6 +1303,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::initStyleOption(option); - } -@@ -1272,6 +1321,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::moveEvent(event); - } -@@ -1289,6 +1339,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::paintWindowFrame(painter, option, widget); - } -@@ -1306,6 +1357,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::polishEvent(); - } -@@ -1334,6 +1386,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsProxyWidget::propertyChange(propertyName, value); - } -@@ -1351,6 +1404,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::resizeEvent(event); - } -@@ -1368,6 +1422,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::setGeometry(rect); - } -@@ -1385,6 +1440,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::showEvent(event); - } -@@ -1413,6 +1469,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsProxyWidget::sizeHint(which, constraint); - } -@@ -1430,6 +1487,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::timerEvent(arg__1); - } -@@ -1447,6 +1505,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::ungrabKeyboardEvent(event); - } -@@ -1464,6 +1523,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::ungrabMouseEvent(event); - } -@@ -1481,6 +1541,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsProxyWidget::updateGeometry(); - } -@@ -1509,6 +1570,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsProxyWidget::windowFrameEvent(e); - } -@@ -1537,6 +1599,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsProxyWidget::windowFrameSectionAt(pos); - } -@@ -1661,6 +1724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsRectItem::isObscuredBy(item); - } -@@ -1689,6 +1753,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsRectItem::opaqueArea(); - } -@@ -1770,6 +1835,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsRotation::applyTo(matrix); - } -@@ -1787,6 +1853,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsRotation::childEvent(arg__1); - } -@@ -1804,6 +1871,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsRotation::customEvent(arg__1); - } -@@ -1832,6 +1900,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsRotation::event(arg__1); - } -@@ -1860,6 +1929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsRotation::eventFilter(arg__1, arg__2); - } -@@ -1877,6 +1947,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsRotation::timerEvent(arg__1); - } -@@ -1940,6 +2011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScale::applyTo(matrix); - } -@@ -1957,6 +2029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScale::childEvent(arg__1); - } -@@ -1974,6 +2047,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScale::customEvent(arg__1); - } -@@ -2002,6 +2076,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsScale::event(arg__1); - } -@@ -2030,6 +2105,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsScale::eventFilter(arg__1, arg__2); - } -@@ -2047,6 +2123,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScale::timerEvent(arg__1); - } -@@ -2115,6 +2192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::childEvent(arg__1); - } -@@ -2132,6 +2210,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::contextMenuEvent(event); - } -@@ -2149,6 +2228,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::customEvent(arg__1); - } -@@ -2166,6 +2246,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::dragEnterEvent(event); - } -@@ -2183,6 +2264,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::dragLeaveEvent(event); - } -@@ -2200,6 +2282,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::dragMoveEvent(event); - } -@@ -2217,6 +2300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::drawBackground(painter, rect); - } -@@ -2234,6 +2318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::drawForeground(painter, rect); - } -@@ -2251,6 +2336,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::drawItems(painter, numItems, items, options, widget); - } -@@ -2268,6 +2354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::dropEvent(event); - } -@@ -2296,6 +2383,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsScene::event(event); - } -@@ -2324,6 +2412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsScene::eventFilter(watched, event); - } -@@ -2341,6 +2430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::focusInEvent(event); - } -@@ -2358,6 +2448,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::focusOutEvent(event); - } -@@ -2375,6 +2466,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::helpEvent(event); - } -@@ -2392,6 +2484,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::inputMethodEvent(event); - } -@@ -2420,6 +2513,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsScene::inputMethodQuery(query); - } -@@ -2437,6 +2531,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::keyPressEvent(event); - } -@@ -2454,6 +2549,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::keyReleaseEvent(event); - } -@@ -2471,6 +2567,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::mouseDoubleClickEvent(event); - } -@@ -2488,6 +2585,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::mouseMoveEvent(event); - } -@@ -2505,6 +2603,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::mousePressEvent(event); - } -@@ -2522,6 +2621,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::mouseReleaseEvent(event); - } -@@ -2539,6 +2639,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::timerEvent(arg__1); - } -@@ -2556,6 +2657,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsScene::wheelEvent(event); - } -@@ -3627,6 +3729,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsSimpleTextItem::isObscuredBy(item); - } -@@ -3655,6 +3758,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsSimpleTextItem::opaqueArea(); - } -@@ -3737,6 +3841,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsTextItem::childEvent(arg__1); - } -@@ -3754,6 +3859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsTextItem::customEvent(arg__1); - } -@@ -3782,6 +3888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsTextItem::event(arg__1); - } -@@ -3810,6 +3917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsTextItem::eventFilter(arg__1, arg__2); - } -@@ -3827,6 +3935,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsTextItem::timerEvent(arg__1); - } -@@ -3994,6 +4103,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -4011,6 +4121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsTransform::childEvent(arg__1); - } -@@ -4028,6 +4139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsTransform::customEvent(arg__1); - } -@@ -4056,6 +4168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsTransform::event(arg__1); - } -@@ -4084,6 +4197,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsTransform::eventFilter(arg__1, arg__2); - } -@@ -4101,6 +4215,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsTransform::timerEvent(arg__1); - } -@@ -4124,6 +4239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::actionEvent(arg__1); - } -@@ -4141,6 +4257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::changeEvent(arg__1); - } -@@ -4158,6 +4275,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::childEvent(arg__1); - } -@@ -4175,6 +4293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::closeEvent(arg__1); - } -@@ -4192,6 +4311,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::contextMenuEvent(event); - } -@@ -4209,6 +4329,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::customEvent(arg__1); - } -@@ -4237,6 +4358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::devType(); - } -@@ -4254,6 +4376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::dragEnterEvent(event); - } -@@ -4271,6 +4394,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::dragLeaveEvent(event); - } -@@ -4288,6 +4412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::dragMoveEvent(event); - } -@@ -4305,6 +4430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::drawBackground(painter, rect); - } -@@ -4322,6 +4448,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::drawForeground(painter, rect); - } -@@ -4339,6 +4466,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::drawItems(painter, numItems, items, options); - } -@@ -4356,6 +4484,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::dropEvent(event); - } -@@ -4373,6 +4502,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::enterEvent(arg__1); - } -@@ -4401,6 +4531,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::event(event); - } -@@ -4429,6 +4560,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::eventFilter(arg__1, arg__2); - } -@@ -4446,6 +4578,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::focusInEvent(event); - } -@@ -4474,6 +4607,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::focusNextPrevChild(next); - } -@@ -4491,6 +4625,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::focusOutEvent(event); - } -@@ -4519,6 +4654,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::heightForWidth(arg__1); - } -@@ -4536,6 +4672,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::hideEvent(arg__1); - } -@@ -4553,6 +4690,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::inputMethodEvent(event); - } -@@ -4581,6 +4719,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::inputMethodQuery(query); - } -@@ -4598,6 +4737,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::keyPressEvent(event); - } -@@ -4615,6 +4755,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::keyReleaseEvent(event); - } -@@ -4632,6 +4773,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::languageChange(); - } -@@ -4649,6 +4791,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::leaveEvent(arg__1); - } -@@ -4677,6 +4820,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::metric(arg__1); - } -@@ -4694,6 +4838,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::mouseDoubleClickEvent(event); - } -@@ -4711,6 +4856,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::mouseMoveEvent(event); - } -@@ -4728,6 +4874,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::mousePressEvent(event); - } -@@ -4745,6 +4892,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::mouseReleaseEvent(event); - } -@@ -4762,6 +4910,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::moveEvent(arg__1); - } -@@ -4790,6 +4939,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::paintEngine(); - } -@@ -4807,6 +4957,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::paintEvent(event); - } -@@ -4824,6 +4975,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::resizeEvent(event); - } -@@ -4841,6 +4993,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::scrollContentsBy(dx, dy); - } -@@ -4858,6 +5011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::showEvent(event); - } -@@ -4875,6 +5029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::tabletEvent(arg__1); - } -@@ -4892,6 +5047,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::timerEvent(arg__1); - } -@@ -4920,6 +5076,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsView::viewportEvent(event); - } -@@ -4937,6 +5094,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsView::wheelEvent(event); - } -@@ -5474,6 +5632,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::changeEvent(event); - } -@@ -5491,6 +5650,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::childEvent(arg__1); - } -@@ -5508,6 +5668,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::closeEvent(event); - } -@@ -5525,6 +5686,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::customEvent(arg__1); - } -@@ -5553,6 +5715,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsWidget::event(event); - } -@@ -5581,6 +5744,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsWidget::eventFilter(arg__1, arg__2); - } -@@ -5609,6 +5773,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsWidget::focusNextPrevChild(next); - } -@@ -5626,6 +5791,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::getContentsMargins(left, top, right, bottom); - } -@@ -5643,6 +5809,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::grabKeyboardEvent(event); - } -@@ -5660,6 +5827,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::grabMouseEvent(event); - } -@@ -5677,6 +5845,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::hideEvent(event); - } -@@ -5694,6 +5863,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::hoverLeaveEvent(event); - } -@@ -5711,6 +5881,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::hoverMoveEvent(event); - } -@@ -5728,6 +5899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::initStyleOption(option); - } -@@ -5745,6 +5917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::moveEvent(event); - } -@@ -5762,6 +5935,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::paintWindowFrame(painter, option, widget); - } -@@ -5779,6 +5953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::polishEvent(); - } -@@ -5807,6 +5982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsWidget::propertyChange(propertyName, value); - } -@@ -5824,6 +6000,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::resizeEvent(event); - } -@@ -5841,6 +6018,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::setGeometry(rect); - } -@@ -5858,6 +6036,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::showEvent(event); - } -@@ -5886,6 +6065,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsWidget::sizeHint(which, constraint); - } -@@ -5903,6 +6083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::timerEvent(arg__1); - } -@@ -5920,6 +6101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::ungrabKeyboardEvent(event); - } -@@ -5937,6 +6119,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::ungrabMouseEvent(event); - } -@@ -5954,6 +6137,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGraphicsWidget::updateGeometry(); - } -@@ -5982,6 +6166,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsWidget::windowFrameEvent(e); - } -@@ -6010,6 +6195,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGraphicsWidget::windowFrameSectionAt(pos); - } -@@ -6398,6 +6584,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGridLayout::addItem(arg__1); - } -@@ -6415,6 +6602,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGridLayout::childEvent(e); - } -@@ -6443,6 +6631,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::count(); - } -@@ -6460,6 +6649,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGridLayout::customEvent(arg__1); - } -@@ -6488,6 +6678,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::event(arg__1); - } -@@ -6516,6 +6707,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::eventFilter(arg__1, arg__2); - } -@@ -6544,6 +6736,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::expandingDirections(); - } -@@ -6572,6 +6765,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::geometry(); - } -@@ -6600,6 +6794,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::indexOf(arg__1); - } -@@ -6617,6 +6812,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGridLayout::invalidate(); - } -@@ -6645,6 +6841,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::isEmpty(); - } -@@ -6673,6 +6870,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::itemAt(index); - } -@@ -6701,6 +6899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::layout(); - } -@@ -6729,6 +6928,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::maximumSize(); - } -@@ -6757,6 +6957,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::minimumSize(); - } -@@ -6774,6 +6975,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGridLayout::setGeometry(arg__1); - } -@@ -6802,6 +7004,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGridLayout::takeAt(index); - } -@@ -6819,6 +7022,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGridLayout::timerEvent(arg__1); - } -@@ -7046,6 +7250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::actionEvent(arg__1); - } -@@ -7063,6 +7268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::changeEvent(event); - } -@@ -7080,6 +7286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::childEvent(event); - } -@@ -7097,6 +7304,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::closeEvent(arg__1); - } -@@ -7114,6 +7322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::contextMenuEvent(arg__1); - } -@@ -7131,6 +7340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::customEvent(arg__1); - } -@@ -7159,6 +7369,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::devType(); - } -@@ -7176,6 +7387,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::dragEnterEvent(arg__1); - } -@@ -7193,6 +7405,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::dragLeaveEvent(arg__1); - } -@@ -7210,6 +7423,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::dragMoveEvent(arg__1); - } -@@ -7227,6 +7441,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::dropEvent(arg__1); - } -@@ -7244,6 +7459,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::enterEvent(arg__1); - } -@@ -7272,6 +7488,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::event(event); - } -@@ -7300,6 +7517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::eventFilter(arg__1, arg__2); - } -@@ -7317,6 +7535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::focusInEvent(event); - } -@@ -7345,6 +7564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::focusNextPrevChild(next); - } -@@ -7362,6 +7582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::focusOutEvent(arg__1); - } -@@ -7390,6 +7611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::heightForWidth(arg__1); - } -@@ -7407,6 +7629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::hideEvent(arg__1); - } -@@ -7424,6 +7647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::inputMethodEvent(arg__1); - } -@@ -7452,6 +7676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::inputMethodQuery(arg__1); - } -@@ -7469,6 +7694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::keyPressEvent(arg__1); - } -@@ -7486,6 +7712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::keyReleaseEvent(arg__1); - } -@@ -7503,6 +7730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::languageChange(); - } -@@ -7520,6 +7748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::leaveEvent(arg__1); - } -@@ -7548,6 +7777,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::metric(arg__1); - } -@@ -7565,6 +7795,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::mouseDoubleClickEvent(arg__1); - } -@@ -7582,6 +7813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::mouseMoveEvent(event); - } -@@ -7599,6 +7831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::mousePressEvent(event); - } -@@ -7616,6 +7849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::mouseReleaseEvent(event); - } -@@ -7633,6 +7867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::moveEvent(arg__1); - } -@@ -7661,6 +7896,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::paintEngine(); - } -@@ -7678,6 +7914,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::paintEvent(event); - } -@@ -7695,6 +7932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::resizeEvent(event); - } -@@ -7712,6 +7950,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::showEvent(arg__1); - } -@@ -7740,6 +7979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QGroupBox::sizeHint(); - } -@@ -7757,6 +7997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::tabletEvent(arg__1); - } -@@ -7774,6 +8015,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::timerEvent(arg__1); - } -@@ -7791,6 +8033,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QGroupBox::wheelEvent(arg__1); - } -@@ -7913,6 +8156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHBoxLayout::addItem(arg__1); - } -@@ -7930,6 +8174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHBoxLayout::childEvent(e); - } -@@ -7958,6 +8203,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::count(); - } -@@ -7975,6 +8221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHBoxLayout::customEvent(arg__1); - } -@@ -8003,6 +8250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::event(arg__1); - } -@@ -8031,6 +8279,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::eventFilter(arg__1, arg__2); - } -@@ -8059,6 +8308,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::expandingDirections(); - } -@@ -8087,6 +8337,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::geometry(); - } -@@ -8115,6 +8366,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::indexOf(arg__1); - } -@@ -8132,6 +8384,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHBoxLayout::invalidate(); - } -@@ -8160,6 +8413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::isEmpty(); - } -@@ -8188,6 +8442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::itemAt(arg__1); - } -@@ -8216,6 +8471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::layout(); - } -@@ -8244,6 +8500,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::maximumSize(); - } -@@ -8272,6 +8529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::minimumSize(); - } -@@ -8289,6 +8547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHBoxLayout::setGeometry(arg__1); - } -@@ -8317,6 +8576,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHBoxLayout::takeAt(arg__1); - } -@@ -8334,6 +8594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHBoxLayout::timerEvent(arg__1); - } -@@ -8361,6 +8622,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::actionEvent(arg__1); - } -@@ -8378,6 +8640,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::changeEvent(arg__1); - } -@@ -8395,6 +8658,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::childEvent(arg__1); - } -@@ -8412,6 +8676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::closeEditor(editor, hint); - } -@@ -8429,6 +8694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::closeEvent(arg__1); - } -@@ -8446,6 +8712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::commitData(editor); - } -@@ -8463,6 +8730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::contextMenuEvent(arg__1); - } -@@ -8480,6 +8748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::currentChanged(current, old); - } -@@ -8497,6 +8766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::customEvent(arg__1); - } -@@ -8514,6 +8784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::dataChanged(topLeft, bottomRight); - } -@@ -8542,6 +8813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::devType(); - } -@@ -8559,6 +8831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::doItemsLayout(); - } -@@ -8576,6 +8849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::dragEnterEvent(event); - } -@@ -8593,6 +8867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::dragLeaveEvent(event); - } -@@ -8610,6 +8885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::dragMoveEvent(event); - } -@@ -8627,6 +8903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::dropEvent(event); - } -@@ -8655,6 +8932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::edit(index, trigger, event); - } -@@ -8672,6 +8950,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::editorDestroyed(editor); - } -@@ -8689,6 +8968,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::enterEvent(arg__1); - } -@@ -8717,6 +8997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::event(e); - } -@@ -8745,6 +9026,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::eventFilter(arg__1, arg__2); - } -@@ -8762,6 +9044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::focusInEvent(event); - } -@@ -8790,6 +9073,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::focusNextPrevChild(next); - } -@@ -8807,6 +9091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::focusOutEvent(event); - } -@@ -8835,6 +9120,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::heightForWidth(arg__1); - } -@@ -8852,6 +9138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::hideEvent(arg__1); - } -@@ -8880,6 +9167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::horizontalOffset(); - } -@@ -8897,6 +9185,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::horizontalScrollbarAction(action); - } -@@ -8914,6 +9203,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::horizontalScrollbarValueChanged(value); - } -@@ -8942,6 +9232,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::indexAt(p); - } -@@ -8959,6 +9250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::inputMethodEvent(event); - } -@@ -8987,6 +9279,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::inputMethodQuery(query); - } -@@ -9015,6 +9308,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::isIndexHidden(index); - } -@@ -9032,6 +9326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::keyPressEvent(event); - } -@@ -9049,6 +9344,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::keyReleaseEvent(arg__1); - } -@@ -9066,6 +9362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::keyboardSearch(search); - } -@@ -9083,6 +9380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::languageChange(); - } -@@ -9100,6 +9398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::leaveEvent(arg__1); - } -@@ -9128,6 +9427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::metric(arg__1); - } -@@ -9145,6 +9445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::mouseDoubleClickEvent(e); - } -@@ -9162,6 +9463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::mouseMoveEvent(e); - } -@@ -9179,6 +9481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::mousePressEvent(e); - } -@@ -9196,6 +9499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::mouseReleaseEvent(e); - } -@@ -9213,6 +9517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::moveEvent(arg__1); - } -@@ -9241,6 +9546,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::paintEngine(); - } -@@ -9258,6 +9564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::paintEvent(e); - } -@@ -9275,6 +9582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::paintSection(painter, rect, logicalIndex); - } -@@ -9292,6 +9600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::reset(); - } -@@ -9309,6 +9618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::resizeEvent(event); - } -@@ -9326,6 +9636,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::rowsAboutToBeRemoved(parent, start, end); - } -@@ -9343,6 +9654,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::rowsInserted(parent, start, end); - } -@@ -9360,6 +9672,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::scrollContentsBy(dx, dy); - } -@@ -9377,6 +9690,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::scrollTo(index, hint); - } -@@ -9405,6 +9719,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::sectionSizeFromContents(logicalIndex); - } -@@ -9422,6 +9737,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::selectAll(); - } -@@ -9450,6 +9766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::selectedIndexes(); - } -@@ -9467,6 +9784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::selectionChanged(selected, deselected); - } -@@ -9495,6 +9813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::selectionCommand(index, event); - } -@@ -9512,6 +9831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::setModel(model); - } -@@ -9529,6 +9849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::setRootIndex(index); - } -@@ -9546,6 +9867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::setSelection(rect, flags); - } -@@ -9563,6 +9885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::setSelectionModel(selectionModel); - } -@@ -9580,6 +9903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::showEvent(arg__1); - } -@@ -9608,6 +9932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::sizeHintForColumn(column); - } -@@ -9636,6 +9961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::sizeHintForRow(row); - } -@@ -9653,6 +9979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::startDrag(supportedActions); - } -@@ -9670,6 +9997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::tabletEvent(arg__1); - } -@@ -9687,6 +10015,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::timerEvent(event); - } -@@ -9704,6 +10033,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::updateEditorData(); - } -@@ -9721,6 +10051,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::updateEditorGeometries(); - } -@@ -9738,6 +10069,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::updateGeometries(); - } -@@ -9766,6 +10098,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::verticalOffset(); - } -@@ -9783,6 +10116,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::verticalScrollbarAction(action); - } -@@ -9800,6 +10134,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::verticalScrollbarValueChanged(value); - } -@@ -9828,6 +10163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::viewOptions(); - } -@@ -9856,6 +10192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::viewportEvent(e); - } -@@ -9884,6 +10221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::visualRect(index); - } -@@ -9912,6 +10250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHeaderView::visualRegionForSelection(selection); - } -@@ -9929,6 +10268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHeaderView::wheelEvent(arg__1); - } -@@ -10417,6 +10757,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIconEngine::actualSize(size, mode, state); - } -@@ -10434,6 +10775,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIconEngine::addFile(fileName, size, mode, state); - } -@@ -10451,6 +10793,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIconEngine::addPixmap(pixmap, mode, state); - } -@@ -10468,6 +10811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -10496,6 +10840,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIconEngine::pixmap(size, mode, state); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -index c28acdf..db8802b 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui4.cpp -@@ -96,6 +96,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIconEnginePluginV2::childEvent(arg__1); - } -@@ -124,6 +125,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -141,6 +143,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIconEnginePluginV2::customEvent(arg__1); - } -@@ -169,6 +172,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIconEnginePluginV2::event(arg__1); - } -@@ -197,6 +201,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIconEnginePluginV2::eventFilter(arg__1, arg__2); - } -@@ -225,6 +230,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -242,6 +248,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIconEnginePluginV2::timerEvent(arg__1); - } -@@ -276,6 +283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -304,6 +312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::currentImageNumber(); - } -@@ -332,6 +341,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::currentImageRect(); - } -@@ -360,6 +370,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::imageCount(); - } -@@ -388,6 +399,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::jumpToImage(imageNumber); - } -@@ -416,6 +428,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::jumpToNextImage(); - } -@@ -444,6 +457,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::loopCount(); - } -@@ -472,6 +486,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::name(); - } -@@ -500,6 +515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::nextImageDelay(); - } -@@ -528,6 +544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::option(option); - } -@@ -556,6 +573,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -573,6 +591,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QImageIOHandler::setOption(option, value); - } -@@ -601,6 +620,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::supportsOption(option); - } -@@ -629,6 +649,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOHandler::write(image); - } -@@ -738,6 +759,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOPlugin::Capabilities(); - } -@@ -755,6 +777,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QImageIOPlugin::childEvent(arg__1); - } -@@ -783,6 +806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -800,6 +824,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QImageIOPlugin::customEvent(arg__1); - } -@@ -828,6 +853,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOPlugin::event(arg__1); - } -@@ -856,6 +882,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImageIOPlugin::eventFilter(arg__1, arg__2); - } -@@ -884,6 +911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -901,6 +929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QImageIOPlugin::timerEvent(arg__1); - } -@@ -1258,6 +1287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputContext::actions(); - } -@@ -1275,6 +1305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContext::childEvent(arg__1); - } -@@ -1292,6 +1323,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContext::customEvent(arg__1); - } -@@ -1320,6 +1352,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputContext::event(arg__1); - } -@@ -1348,6 +1381,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputContext::eventFilter(arg__1, arg__2); - } -@@ -1376,6 +1410,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputContext::filterEvent(event); - } -@@ -1404,6 +1439,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputContext::font(); - } -@@ -1432,6 +1468,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -1460,6 +1497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -1488,6 +1526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -1505,6 +1544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContext::mouseHandler(x, event); - } -@@ -1522,6 +1562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -1539,6 +1580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContext::setFocusWidget(w); - } -@@ -1556,6 +1598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContext::timerEvent(arg__1); - } -@@ -1573,6 +1616,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContext::update(); - } -@@ -1590,6 +1634,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContext::widgetDestroyed(w); - } -@@ -1689,6 +1734,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContextPlugin::childEvent(arg__1); - } -@@ -1717,6 +1763,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -1734,6 +1781,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContextPlugin::customEvent(arg__1); - } -@@ -1762,6 +1810,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -1790,6 +1839,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QString(); - } -@@ -1818,6 +1868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputContextPlugin::event(arg__1); - } -@@ -1846,6 +1897,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputContextPlugin::eventFilter(arg__1, arg__2); - } -@@ -1874,6 +1926,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -1902,6 +1955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -1919,6 +1973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputContextPlugin::timerEvent(arg__1); - } -@@ -1942,6 +1997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::accept(); - } -@@ -1959,6 +2015,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::actionEvent(arg__1); - } -@@ -1976,6 +2033,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::changeEvent(arg__1); - } -@@ -1993,6 +2051,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::childEvent(arg__1); - } -@@ -2010,6 +2069,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::closeEvent(arg__1); - } -@@ -2027,6 +2087,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::contextMenuEvent(arg__1); - } -@@ -2044,6 +2105,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::customEvent(arg__1); - } -@@ -2072,6 +2134,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::devType(); - } -@@ -2089,6 +2152,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::done(result); - } -@@ -2106,6 +2170,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::dragEnterEvent(arg__1); - } -@@ -2123,6 +2188,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::dragLeaveEvent(arg__1); - } -@@ -2140,6 +2206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::dragMoveEvent(arg__1); - } -@@ -2157,6 +2224,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::dropEvent(arg__1); - } -@@ -2174,6 +2242,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::enterEvent(arg__1); - } -@@ -2202,6 +2271,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::event(arg__1); - } -@@ -2230,6 +2300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::eventFilter(arg__1, arg__2); - } -@@ -2247,6 +2318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::focusInEvent(arg__1); - } -@@ -2275,6 +2347,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::focusNextPrevChild(next); - } -@@ -2292,6 +2365,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::focusOutEvent(arg__1); - } -@@ -2320,6 +2394,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::heightForWidth(arg__1); - } -@@ -2337,6 +2412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::hideEvent(arg__1); - } -@@ -2354,6 +2430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::inputMethodEvent(arg__1); - } -@@ -2382,6 +2459,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::inputMethodQuery(arg__1); - } -@@ -2399,6 +2477,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::keyPressEvent(arg__1); - } -@@ -2416,6 +2495,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::keyReleaseEvent(arg__1); - } -@@ -2433,6 +2513,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::languageChange(); - } -@@ -2450,6 +2531,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::leaveEvent(arg__1); - } -@@ -2478,6 +2560,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::metric(arg__1); - } -@@ -2495,6 +2578,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::mouseDoubleClickEvent(arg__1); - } -@@ -2512,6 +2596,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::mouseMoveEvent(arg__1); - } -@@ -2529,6 +2614,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::mousePressEvent(arg__1); - } -@@ -2546,6 +2632,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::mouseReleaseEvent(arg__1); - } -@@ -2563,6 +2650,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::moveEvent(arg__1); - } -@@ -2591,6 +2679,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QInputDialog::paintEngine(); - } -@@ -2608,6 +2697,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::paintEvent(arg__1); - } -@@ -2625,6 +2715,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::reject(); - } -@@ -2642,6 +2733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::resizeEvent(arg__1); - } -@@ -2659,6 +2751,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::showEvent(arg__1); - } -@@ -2676,6 +2769,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::tabletEvent(arg__1); - } -@@ -2693,6 +2787,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::timerEvent(arg__1); - } -@@ -2710,6 +2805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QInputDialog::wheelEvent(arg__1); - } -@@ -2994,6 +3090,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIntValidator::childEvent(arg__1); - } -@@ -3011,6 +3108,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIntValidator::customEvent(arg__1); - } -@@ -3039,6 +3137,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIntValidator::event(arg__1); - } -@@ -3067,6 +3166,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIntValidator::eventFilter(arg__1, arg__2); - } -@@ -3084,6 +3184,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIntValidator::fixup(arg__1); - } -@@ -3101,6 +3202,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIntValidator::setRange(bottom, top); - } -@@ -3118,6 +3220,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QIntValidator::timerEvent(arg__1); - } -@@ -3146,6 +3249,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QIntValidator::validate(arg__1, arg__2); - } -@@ -3203,6 +3307,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::childEvent(arg__1); - } -@@ -3231,6 +3336,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemDelegate::createEditor(parent, option, index); - } -@@ -3248,6 +3354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::customEvent(arg__1); - } -@@ -3265,6 +3372,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::drawCheck(painter, option, rect, state); - } -@@ -3282,6 +3390,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::drawDecoration(painter, option, rect, pixmap); - } -@@ -3299,6 +3408,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::drawDisplay(painter, option, rect, text); - } -@@ -3316,6 +3426,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::drawFocus(painter, option, rect); - } -@@ -3344,6 +3455,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemDelegate::editorEvent(event, model, option, index); - } -@@ -3372,6 +3484,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemDelegate::event(arg__1); - } -@@ -3400,6 +3513,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemDelegate::eventFilter(object, event); - } -@@ -3417,6 +3531,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::paint(painter, option, index); - } -@@ -3434,6 +3549,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::setEditorData(editor, index); - } -@@ -3451,6 +3567,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::setModelData(editor, model, index); - } -@@ -3479,6 +3596,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemDelegate::sizeHint(option, index); - } -@@ -3496,6 +3614,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::timerEvent(arg__1); - } -@@ -3513,6 +3632,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemDelegate::updateEditorGeometry(editor, option, index); - } -@@ -3627,6 +3747,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -3655,6 +3776,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QByteArray(); - } -@@ -3689,6 +3811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemEditorFactory::createEditor(type, parent); - } -@@ -3717,6 +3840,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemEditorFactory::valuePropertyName(type); - } -@@ -4015,6 +4139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemSelectionModel::childEvent(arg__1); - } -@@ -4032,6 +4157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemSelectionModel::clear(); - } -@@ -4049,6 +4175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemSelectionModel::customEvent(arg__1); - } -@@ -4077,6 +4204,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemSelectionModel::event(arg__1); - } -@@ -4105,6 +4233,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QItemSelectionModel::eventFilter(arg__1, arg__2); - } -@@ -4122,6 +4251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemSelectionModel::reset(); - } -@@ -4139,6 +4269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemSelectionModel::select(selection, command); - } -@@ -4156,6 +4287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemSelectionModel::select(index, command); - } -@@ -4173,6 +4305,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QItemSelectionModel::timerEvent(arg__1); - } -@@ -4438,6 +4571,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QKeyEventTransition::childEvent(arg__1); - } -@@ -4455,6 +4589,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QKeyEventTransition::customEvent(arg__1); - } -@@ -4483,6 +4618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QKeyEventTransition::event(e); - } -@@ -4511,6 +4647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QKeyEventTransition::eventFilter(arg__1, arg__2); - } -@@ -4539,6 +4676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QKeyEventTransition::eventTest(event); - } -@@ -4556,6 +4694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QKeyEventTransition::onTransition(event); - } -@@ -4573,6 +4712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QKeyEventTransition::timerEvent(arg__1); - } -@@ -4630,6 +4770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::actionEvent(arg__1); - } -@@ -4647,6 +4788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::changeEvent(arg__1); - } -@@ -4664,6 +4806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::childEvent(arg__1); - } -@@ -4681,6 +4824,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::closeEvent(arg__1); - } -@@ -4698,6 +4842,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::contextMenuEvent(arg__1); - } -@@ -4715,6 +4860,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::customEvent(arg__1); - } -@@ -4743,6 +4889,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::devType(); - } -@@ -4760,6 +4907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::dragEnterEvent(arg__1); - } -@@ -4777,6 +4925,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::dragLeaveEvent(arg__1); - } -@@ -4794,6 +4943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::dragMoveEvent(arg__1); - } -@@ -4811,6 +4961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::dropEvent(arg__1); - } -@@ -4828,6 +4979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::enterEvent(arg__1); - } -@@ -4856,6 +5008,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::event(e); - } -@@ -4884,6 +5037,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::eventFilter(arg__1, arg__2); - } -@@ -4901,6 +5055,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::focusInEvent(arg__1); - } -@@ -4929,6 +5084,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::focusNextPrevChild(next); - } -@@ -4946,6 +5102,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::focusOutEvent(arg__1); - } -@@ -4974,6 +5131,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::heightForWidth(arg__1); - } -@@ -4991,6 +5149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::hideEvent(arg__1); - } -@@ -5008,6 +5167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::inputMethodEvent(arg__1); - } -@@ -5036,6 +5196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::inputMethodQuery(arg__1); - } -@@ -5053,6 +5214,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::keyPressEvent(arg__1); - } -@@ -5070,6 +5232,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::keyReleaseEvent(arg__1); - } -@@ -5087,6 +5250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::languageChange(); - } -@@ -5104,6 +5268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::leaveEvent(arg__1); - } -@@ -5132,6 +5297,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::metric(arg__1); - } -@@ -5160,6 +5326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::minimumSizeHint(); - } -@@ -5177,6 +5344,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::mouseDoubleClickEvent(arg__1); - } -@@ -5194,6 +5362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::mouseMoveEvent(arg__1); - } -@@ -5211,6 +5380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::mousePressEvent(arg__1); - } -@@ -5228,6 +5398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::mouseReleaseEvent(arg__1); - } -@@ -5245,6 +5416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::moveEvent(arg__1); - } -@@ -5273,6 +5445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLCDNumber::paintEngine(); - } -@@ -5290,6 +5463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::paintEvent(arg__1); - } -@@ -5307,6 +5481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::resizeEvent(arg__1); - } -@@ -5324,6 +5499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::showEvent(arg__1); - } -@@ -5341,6 +5517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::tabletEvent(arg__1); - } -@@ -5358,6 +5535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::timerEvent(arg__1); - } -@@ -5375,6 +5553,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLCDNumber::wheelEvent(arg__1); - } -@@ -5482,6 +5661,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::actionEvent(arg__1); - } -@@ -5499,6 +5679,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::changeEvent(arg__1); - } -@@ -5516,6 +5697,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::childEvent(arg__1); - } -@@ -5533,6 +5715,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::closeEvent(arg__1); - } -@@ -5550,6 +5733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::contextMenuEvent(ev); - } -@@ -5567,6 +5751,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::customEvent(arg__1); - } -@@ -5595,6 +5780,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::devType(); - } -@@ -5612,6 +5798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::dragEnterEvent(arg__1); - } -@@ -5629,6 +5816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::dragLeaveEvent(arg__1); - } -@@ -5646,6 +5834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::dragMoveEvent(arg__1); - } -@@ -5663,6 +5852,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::dropEvent(arg__1); - } -@@ -5680,6 +5870,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::enterEvent(arg__1); - } -@@ -5708,6 +5899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::event(e); - } -@@ -5736,6 +5928,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::eventFilter(arg__1, arg__2); - } -@@ -5753,6 +5946,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::focusInEvent(ev); - } -@@ -5781,6 +5975,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::focusNextPrevChild(next); - } -@@ -5798,6 +5993,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::focusOutEvent(ev); - } -@@ -5826,6 +6022,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::heightForWidth(arg__1); - } -@@ -5843,6 +6040,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::hideEvent(arg__1); - } -@@ -5860,6 +6058,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::inputMethodEvent(arg__1); - } -@@ -5888,6 +6087,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::inputMethodQuery(arg__1); - } -@@ -5905,6 +6105,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::keyPressEvent(ev); - } -@@ -5922,6 +6123,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::keyReleaseEvent(arg__1); - } -@@ -5939,6 +6141,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::languageChange(); - } -@@ -5956,6 +6159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::leaveEvent(arg__1); - } -@@ -5984,6 +6188,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::metric(arg__1); - } -@@ -6001,6 +6206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::mouseDoubleClickEvent(arg__1); - } -@@ -6018,6 +6224,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::mouseMoveEvent(ev); - } -@@ -6035,6 +6242,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::mousePressEvent(ev); - } -@@ -6052,6 +6260,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::mouseReleaseEvent(ev); - } -@@ -6069,6 +6278,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::moveEvent(arg__1); - } -@@ -6097,6 +6307,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLabel::paintEngine(); - } -@@ -6114,6 +6325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::paintEvent(arg__1); - } -@@ -6131,6 +6343,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::resizeEvent(arg__1); - } -@@ -6148,6 +6361,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::showEvent(arg__1); - } -@@ -6165,6 +6379,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::tabletEvent(arg__1); - } -@@ -6182,6 +6397,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::timerEvent(arg__1); - } -@@ -6199,6 +6415,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLabel::wheelEvent(arg__1); - } -@@ -6406,6 +6623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -6423,6 +6641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLayout::childEvent(e); - } -@@ -6451,6 +6670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -6468,6 +6688,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLayout::customEvent(arg__1); - } -@@ -6496,6 +6717,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::event(arg__1); - } -@@ -6524,6 +6746,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::eventFilter(arg__1, arg__2); - } -@@ -6552,6 +6775,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::expandingDirections(); - } -@@ -6580,6 +6804,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::geometry(); - } -@@ -6608,6 +6833,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::hasHeightForWidth(); - } -@@ -6636,6 +6862,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::heightForWidth(arg__1); - } -@@ -6664,6 +6891,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::indexOf(arg__1); - } -@@ -6681,6 +6909,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLayout::invalidate(); - } -@@ -6709,6 +6938,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::isEmpty(); - } -@@ -6737,6 +6967,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -6765,6 +6996,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::layout(); - } -@@ -6793,6 +7025,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::maximumSize(); - } -@@ -6821,6 +7054,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::minimumHeightForWidth(arg__1); - } -@@ -6849,6 +7083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::minimumSize(); - } -@@ -6866,6 +7101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLayout::setGeometry(arg__1); - } -@@ -6894,6 +7130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSize(); - } -@@ -6922,6 +7159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::spacerItem(); - } -@@ -6950,6 +7188,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -6967,6 +7206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLayout::timerEvent(arg__1); - } -@@ -6995,6 +7235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayout::widget(); - } -@@ -7223,6 +7464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return Qt::Orientations(); - } -@@ -7251,6 +7493,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRect(); - } -@@ -7279,6 +7522,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayoutItem::hasHeightForWidth(); - } -@@ -7307,6 +7551,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayoutItem::heightForWidth(arg__1); - } -@@ -7324,6 +7569,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLayoutItem::invalidate(); - } -@@ -7352,6 +7598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -7380,6 +7627,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayoutItem::layout(); - } -@@ -7408,6 +7656,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSize(); - } -@@ -7436,6 +7685,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayoutItem::minimumHeightForWidth(arg__1); - } -@@ -7464,6 +7714,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSize(); - } -@@ -7481,6 +7732,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -7509,6 +7761,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSize(); - } -@@ -7537,6 +7790,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayoutItem::spacerItem(); - } -@@ -7565,6 +7819,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLayoutItem::widget(); - } -@@ -7638,6 +7893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::actionEvent(arg__1); - } -@@ -7655,6 +7911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::changeEvent(arg__1); - } -@@ -7672,6 +7929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::childEvent(arg__1); - } -@@ -7689,6 +7947,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::closeEvent(arg__1); - } -@@ -7706,6 +7965,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::contextMenuEvent(arg__1); - } -@@ -7723,6 +7983,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::customEvent(arg__1); - } -@@ -7751,6 +8012,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::devType(); - } -@@ -7768,6 +8030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::dragEnterEvent(arg__1); - } -@@ -7785,6 +8048,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::dragLeaveEvent(e); - } -@@ -7802,6 +8066,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::dragMoveEvent(e); - } -@@ -7819,6 +8084,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::dropEvent(arg__1); - } -@@ -7836,6 +8102,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::enterEvent(arg__1); - } -@@ -7864,6 +8131,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::event(arg__1); - } -@@ -7892,6 +8160,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::eventFilter(arg__1, arg__2); - } -@@ -7909,6 +8178,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::focusInEvent(arg__1); - } -@@ -7937,6 +8207,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::focusNextPrevChild(next); - } -@@ -7954,6 +8225,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::focusOutEvent(arg__1); - } -@@ -7982,6 +8254,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::heightForWidth(arg__1); - } -@@ -7999,6 +8272,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::hideEvent(arg__1); - } -@@ -8016,6 +8290,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::inputMethodEvent(arg__1); - } -@@ -8044,6 +8319,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::inputMethodQuery(arg__1); - } -@@ -8061,6 +8337,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::keyPressEvent(arg__1); - } -@@ -8078,6 +8355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::keyReleaseEvent(arg__1); - } -@@ -8095,6 +8373,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::languageChange(); - } -@@ -8112,6 +8391,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::leaveEvent(arg__1); - } -@@ -8140,6 +8420,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::metric(arg__1); - } -@@ -8157,6 +8438,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::mouseDoubleClickEvent(arg__1); - } -@@ -8174,6 +8456,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::mouseMoveEvent(arg__1); - } -@@ -8191,6 +8474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::mousePressEvent(arg__1); - } -@@ -8208,6 +8492,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::mouseReleaseEvent(arg__1); - } -@@ -8225,6 +8510,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::moveEvent(arg__1); - } -@@ -8253,6 +8539,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLineEdit::paintEngine(); - } -@@ -8270,6 +8557,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::paintEvent(arg__1); - } -@@ -8287,6 +8575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::resizeEvent(arg__1); - } -@@ -8304,6 +8593,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::showEvent(arg__1); - } -@@ -8321,6 +8611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::tabletEvent(arg__1); - } -@@ -8338,6 +8629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::timerEvent(arg__1); - } -@@ -8355,6 +8647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLineEdit::wheelEvent(arg__1); - } -@@ -8756,6 +9049,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::actionEvent(arg__1); - } -@@ -8773,6 +9067,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::changeEvent(arg__1); - } -@@ -8790,6 +9085,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::childEvent(arg__1); - } -@@ -8807,6 +9103,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::closeEditor(editor, hint); - } -@@ -8824,6 +9121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::closeEvent(arg__1); - } -@@ -8841,6 +9139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::commitData(editor); - } -@@ -8858,6 +9157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::contextMenuEvent(arg__1); - } -@@ -8875,6 +9175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::currentChanged(current, previous); - } -@@ -8892,6 +9193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::customEvent(arg__1); - } -@@ -8909,6 +9211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::dataChanged(topLeft, bottomRight); - } -@@ -8937,6 +9240,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::devType(); - } -@@ -8954,6 +9258,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::doItemsLayout(); - } -@@ -8971,6 +9276,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::dragEnterEvent(event); - } -@@ -8988,6 +9294,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::dragLeaveEvent(e); - } -@@ -9005,6 +9312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::dragMoveEvent(e); - } -@@ -9022,6 +9330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::dropEvent(e); - } -@@ -9050,6 +9359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::edit(index, trigger, event); - } -@@ -9067,6 +9377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::editorDestroyed(editor); - } -@@ -9084,6 +9395,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::enterEvent(arg__1); - } -@@ -9112,6 +9424,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::event(e); - } -@@ -9140,6 +9453,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::eventFilter(arg__1, arg__2); - } -@@ -9157,6 +9471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::focusInEvent(event); - } -@@ -9185,6 +9500,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::focusNextPrevChild(next); - } -@@ -9202,6 +9518,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::focusOutEvent(event); - } -@@ -9230,6 +9547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::heightForWidth(arg__1); - } -@@ -9247,6 +9565,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::hideEvent(arg__1); - } -@@ -9275,6 +9594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::horizontalOffset(); - } -@@ -9292,6 +9612,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::horizontalScrollbarAction(action); - } -@@ -9309,6 +9630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::horizontalScrollbarValueChanged(value); - } -@@ -9337,6 +9659,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::indexAt(p); - } -@@ -9354,6 +9677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::inputMethodEvent(event); - } -@@ -9382,6 +9706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::inputMethodQuery(query); - } -@@ -9410,6 +9735,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::isIndexHidden(index); - } -@@ -9427,6 +9753,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::keyPressEvent(event); - } -@@ -9444,6 +9771,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::keyReleaseEvent(arg__1); - } -@@ -9461,6 +9789,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::keyboardSearch(search); - } -@@ -9478,6 +9807,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::languageChange(); - } -@@ -9495,6 +9825,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::leaveEvent(arg__1); - } -@@ -9523,6 +9854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::metric(arg__1); - } -@@ -9540,6 +9872,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::mouseDoubleClickEvent(event); - } -@@ -9557,6 +9890,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::mouseMoveEvent(e); - } -@@ -9574,6 +9908,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::mousePressEvent(event); - } -@@ -9591,6 +9926,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::mouseReleaseEvent(e); - } -@@ -9608,6 +9944,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::moveEvent(arg__1); - } -@@ -9636,6 +9973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::paintEngine(); - } -@@ -9653,6 +9991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::paintEvent(e); - } -@@ -9670,6 +10009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::reset(); - } -@@ -9687,6 +10027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::resizeEvent(e); - } -@@ -9704,6 +10045,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::rowsAboutToBeRemoved(parent, start, end); - } -@@ -9721,6 +10063,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::rowsInserted(parent, start, end); - } -@@ -9738,6 +10081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::scrollContentsBy(dx, dy); - } -@@ -9755,6 +10099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::scrollTo(index, hint); - } -@@ -9772,6 +10117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::selectAll(); - } -@@ -9800,6 +10146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::selectedIndexes(); - } -@@ -9817,6 +10164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::selectionChanged(selected, deselected); - } -@@ -9845,6 +10193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::selectionCommand(index, event); - } -@@ -9862,6 +10211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::setModel(model); - } -@@ -9879,6 +10229,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::setRootIndex(index); - } -@@ -9896,6 +10247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::setSelection(rect, command); - } -@@ -9913,6 +10265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::setSelectionModel(selectionModel); - } -@@ -9930,6 +10283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::showEvent(arg__1); - } -@@ -9958,6 +10312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::sizeHintForColumn(column); - } -@@ -9986,6 +10341,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::sizeHintForRow(row); - } -@@ -10003,6 +10359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::startDrag(supportedActions); - } -@@ -10020,6 +10377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::tabletEvent(arg__1); - } -@@ -10037,6 +10395,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::timerEvent(e); - } -@@ -10054,6 +10413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::updateEditorData(); - } -@@ -10071,6 +10431,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::updateEditorGeometries(); - } -@@ -10088,6 +10449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::updateGeometries(); - } -@@ -10116,6 +10478,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::verticalOffset(); - } -@@ -10133,6 +10496,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::verticalScrollbarAction(action); - } -@@ -10150,6 +10514,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::verticalScrollbarValueChanged(value); - } -@@ -10178,6 +10543,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::viewOptions(); - } -@@ -10206,6 +10572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::viewportEvent(event); - } -@@ -10234,6 +10601,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::visualRect(index); - } -@@ -10262,6 +10630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListView::visualRegionForSelection(selection); - } -@@ -10279,6 +10648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListView::wheelEvent(arg__1); - } -@@ -10597,6 +10967,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::actionEvent(arg__1); - } -@@ -10614,6 +10985,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::changeEvent(arg__1); - } -@@ -10631,6 +11003,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::childEvent(arg__1); - } -@@ -10648,6 +11021,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::closeEditor(editor, hint); - } -@@ -10665,6 +11039,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::closeEvent(arg__1); - } -@@ -10682,6 +11057,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::commitData(editor); - } -@@ -10699,6 +11075,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::contextMenuEvent(arg__1); - } -@@ -10716,6 +11093,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::currentChanged(current, previous); - } -@@ -10733,6 +11111,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::customEvent(arg__1); - } -@@ -10750,6 +11129,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::dataChanged(topLeft, bottomRight); - } -@@ -10778,6 +11158,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::devType(); - } -@@ -10795,6 +11176,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::doItemsLayout(); - } -@@ -10812,6 +11194,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::dragEnterEvent(event); - } -@@ -10829,6 +11212,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::dragLeaveEvent(e); - } -@@ -10846,6 +11230,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::dragMoveEvent(e); - } -@@ -10863,6 +11248,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::dropEvent(event); - } -@@ -10891,6 +11277,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::dropMimeData(index, data, action); - } -@@ -10919,6 +11306,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::edit(index, trigger, event); - } -@@ -10936,6 +11324,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::editorDestroyed(editor); - } -@@ -10953,6 +11342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::enterEvent(arg__1); - } -@@ -10981,6 +11371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::event(e); - } -@@ -11009,6 +11400,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::eventFilter(arg__1, arg__2); - } -@@ -11026,6 +11418,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::focusInEvent(event); - } -@@ -11054,6 +11447,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::focusNextPrevChild(next); - } -@@ -11071,6 +11465,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::focusOutEvent(event); - } -@@ -11099,6 +11494,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::heightForWidth(arg__1); - } -@@ -11116,6 +11512,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::hideEvent(arg__1); - } -@@ -11144,6 +11541,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::horizontalOffset(); - } -@@ -11161,6 +11559,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::horizontalScrollbarAction(action); - } -@@ -11178,6 +11577,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::horizontalScrollbarValueChanged(value); - } -@@ -11206,6 +11606,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::indexAt(p); - } -@@ -11223,6 +11624,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::inputMethodEvent(event); - } -@@ -11251,6 +11653,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::inputMethodQuery(query); - } -@@ -11279,6 +11682,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::isIndexHidden(index); - } -@@ -11296,6 +11700,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::keyPressEvent(event); - } -@@ -11313,6 +11718,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::keyReleaseEvent(arg__1); - } -@@ -11330,6 +11736,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::keyboardSearch(search); - } -@@ -11347,6 +11754,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::languageChange(); - } -@@ -11364,6 +11772,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::leaveEvent(arg__1); - } -@@ -11392,6 +11801,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::metric(arg__1); - } -@@ -11420,6 +11830,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::mimeData(items); - } -@@ -11448,6 +11859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::mimeTypes(); - } -@@ -11465,6 +11877,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::mouseDoubleClickEvent(event); - } -@@ -11482,6 +11895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::mouseMoveEvent(e); - } -@@ -11499,6 +11913,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::mousePressEvent(event); - } -@@ -11516,6 +11931,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::mouseReleaseEvent(e); - } -@@ -11533,6 +11949,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::moveEvent(arg__1); - } -@@ -11561,6 +11978,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::paintEngine(); - } -@@ -11578,6 +11996,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::paintEvent(e); - } -@@ -11595,6 +12014,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::reset(); - } -@@ -11612,6 +12032,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::resizeEvent(e); - } -@@ -11629,6 +12050,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::rowsAboutToBeRemoved(parent, start, end); - } -@@ -11646,6 +12068,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::rowsInserted(parent, start, end); - } -@@ -11663,6 +12086,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::scrollContentsBy(dx, dy); - } -@@ -11680,6 +12104,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::scrollTo(index, hint); - } -@@ -11697,6 +12122,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::selectAll(); - } -@@ -11725,6 +12151,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::selectedIndexes(); - } -@@ -11742,6 +12169,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::selectionChanged(selected, deselected); - } -@@ -11770,6 +12198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::selectionCommand(index, event); - } -@@ -11787,6 +12216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::setRootIndex(index); - } -@@ -11804,6 +12234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::setSelection(rect, command); - } -@@ -11821,6 +12252,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::setSelectionModel(selectionModel); - } -@@ -11838,6 +12270,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::showEvent(arg__1); - } -@@ -11866,6 +12299,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::sizeHintForColumn(column); - } -@@ -11894,6 +12328,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::sizeHintForRow(row); - } -@@ -11911,6 +12346,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::startDrag(supportedActions); - } -@@ -11939,6 +12375,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::supportedDropActions(); - } -@@ -11956,6 +12393,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::tabletEvent(arg__1); - } -@@ -11973,6 +12411,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::timerEvent(e); - } -@@ -11990,6 +12429,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::updateEditorData(); - } -@@ -12007,6 +12447,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::updateEditorGeometries(); - } -@@ -12024,6 +12465,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::updateGeometries(); - } -@@ -12052,6 +12494,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::verticalOffset(); - } -@@ -12069,6 +12512,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::verticalScrollbarAction(action); - } -@@ -12086,6 +12530,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::verticalScrollbarValueChanged(value); - } -@@ -12114,6 +12559,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::viewOptions(); - } -@@ -12142,6 +12588,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::viewportEvent(event); - } -@@ -12170,6 +12617,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::visualRect(index); - } -@@ -12198,6 +12646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidget::visualRegionForSelection(selection); - } -@@ -12215,6 +12664,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidget::wheelEvent(arg__1); - } -@@ -12424,6 +12874,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidgetItem::clone(); - } -@@ -12452,6 +12903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidgetItem::data(role); - } -@@ -12480,6 +12932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QListWidgetItem::operator<(other); - } -@@ -12497,6 +12950,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidgetItem::read(in); - } -@@ -12514,6 +12968,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidgetItem::setBackgroundColor(color); - } -@@ -12531,6 +12986,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidgetItem::setData(role, value); - } -@@ -12548,6 +13004,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QListWidgetItem::write(out); - } -@@ -12754,6 +13211,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::actionEvent(arg__1); - } -@@ -12771,6 +13229,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::changeEvent(arg__1); - } -@@ -12788,6 +13247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::childEvent(arg__1); - } -@@ -12805,6 +13265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::closeEvent(arg__1); - } -@@ -12822,6 +13283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::contextMenuEvent(event); - } -@@ -12850,6 +13312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::createPopupMenu(); - } -@@ -12867,6 +13330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::customEvent(arg__1); - } -@@ -12895,6 +13359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::devType(); - } -@@ -12912,6 +13377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::dragEnterEvent(arg__1); - } -@@ -12929,6 +13395,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::dragLeaveEvent(arg__1); - } -@@ -12946,6 +13413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::dragMoveEvent(arg__1); - } -@@ -12963,6 +13431,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::dropEvent(arg__1); - } -@@ -12980,6 +13449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::enterEvent(arg__1); - } -@@ -13008,6 +13478,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::event(event); - } -@@ -13036,6 +13507,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::eventFilter(arg__1, arg__2); - } -@@ -13053,6 +13525,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::focusInEvent(arg__1); - } -@@ -13081,6 +13554,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::focusNextPrevChild(next); - } -@@ -13098,6 +13572,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::focusOutEvent(arg__1); - } -@@ -13126,6 +13601,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::heightForWidth(arg__1); - } -@@ -13143,6 +13619,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::hideEvent(arg__1); - } -@@ -13160,6 +13637,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::inputMethodEvent(arg__1); - } -@@ -13188,6 +13666,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::inputMethodQuery(arg__1); - } -@@ -13205,6 +13684,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::keyPressEvent(arg__1); - } -@@ -13222,6 +13702,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::keyReleaseEvent(arg__1); - } -@@ -13239,6 +13720,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::languageChange(); - } -@@ -13256,6 +13738,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::leaveEvent(arg__1); - } -@@ -13284,6 +13767,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::metric(arg__1); - } -@@ -13312,6 +13796,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::minimumSizeHint(); - } -@@ -13329,6 +13814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::mouseDoubleClickEvent(arg__1); - } -@@ -13346,6 +13832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::mouseMoveEvent(arg__1); - } -@@ -13363,6 +13850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::mousePressEvent(arg__1); - } -@@ -13380,6 +13868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::mouseReleaseEvent(arg__1); - } -@@ -13397,6 +13886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::moveEvent(arg__1); - } -@@ -13425,6 +13915,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::paintEngine(); - } -@@ -13442,6 +13933,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::paintEvent(arg__1); - } -@@ -13459,6 +13951,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::resizeEvent(arg__1); - } -@@ -13476,6 +13969,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::showEvent(arg__1); - } -@@ -13504,6 +13998,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMainWindow::sizeHint(); - } -@@ -13521,6 +14016,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::tabletEvent(arg__1); - } -@@ -13538,6 +14034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::timerEvent(arg__1); - } -@@ -13555,6 +14052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMainWindow::wheelEvent(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -index d17e746..61ad414 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui5.cpp -@@ -438,6 +438,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::actionEvent(arg__1); - } -@@ -455,6 +456,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::changeEvent(arg__1); - } -@@ -472,6 +474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::childEvent(childEvent); - } -@@ -489,6 +492,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::closeEvent(arg__1); - } -@@ -506,6 +510,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::contextMenuEvent(arg__1); - } -@@ -523,6 +528,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::customEvent(arg__1); - } -@@ -551,6 +557,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::devType(); - } -@@ -568,6 +575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::dragEnterEvent(arg__1); - } -@@ -585,6 +593,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::dragLeaveEvent(arg__1); - } -@@ -602,6 +611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::dragMoveEvent(arg__1); - } -@@ -619,6 +629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::dropEvent(arg__1); - } -@@ -636,6 +647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::enterEvent(arg__1); - } -@@ -664,6 +676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::event(event); - } -@@ -692,6 +705,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::eventFilter(object, event); - } -@@ -709,6 +723,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::focusInEvent(arg__1); - } -@@ -737,6 +752,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::focusNextPrevChild(next); - } -@@ -754,6 +770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::focusOutEvent(arg__1); - } -@@ -782,6 +799,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::heightForWidth(arg__1); - } -@@ -799,6 +817,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::hideEvent(arg__1); - } -@@ -816,6 +835,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::inputMethodEvent(arg__1); - } -@@ -844,6 +864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::inputMethodQuery(arg__1); - } -@@ -861,6 +882,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::keyPressEvent(arg__1); - } -@@ -878,6 +900,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::keyReleaseEvent(arg__1); - } -@@ -895,6 +918,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::languageChange(); - } -@@ -912,6 +936,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::leaveEvent(arg__1); - } -@@ -940,6 +965,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::metric(arg__1); - } -@@ -957,6 +983,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::mouseDoubleClickEvent(arg__1); - } -@@ -974,6 +1001,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::mouseMoveEvent(arg__1); - } -@@ -991,6 +1019,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::mousePressEvent(arg__1); - } -@@ -1008,6 +1037,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::mouseReleaseEvent(arg__1); - } -@@ -1025,6 +1055,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::moveEvent(arg__1); - } -@@ -1053,6 +1084,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::paintEngine(); - } -@@ -1070,6 +1102,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::paintEvent(paintEvent); - } -@@ -1087,6 +1120,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::resizeEvent(resizeEvent); - } -@@ -1104,6 +1138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::scrollContentsBy(dx, dy); - } -@@ -1121,6 +1156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::showEvent(showEvent); - } -@@ -1138,6 +1174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::tabletEvent(arg__1); - } -@@ -1155,6 +1192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::timerEvent(timerEvent); - } -@@ -1183,6 +1221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiArea::viewportEvent(event); - } -@@ -1200,6 +1239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiArea::wheelEvent(arg__1); - } -@@ -1373,6 +1413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::actionEvent(arg__1); - } -@@ -1390,6 +1431,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::changeEvent(changeEvent); - } -@@ -1407,6 +1449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::childEvent(childEvent); - } -@@ -1424,6 +1467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::closeEvent(closeEvent); - } -@@ -1441,6 +1485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::contextMenuEvent(contextMenuEvent); - } -@@ -1458,6 +1503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::customEvent(arg__1); - } -@@ -1486,6 +1532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::devType(); - } -@@ -1503,6 +1550,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::dragEnterEvent(arg__1); - } -@@ -1520,6 +1568,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::dragLeaveEvent(arg__1); - } -@@ -1537,6 +1586,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::dragMoveEvent(arg__1); - } -@@ -1554,6 +1604,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::dropEvent(arg__1); - } -@@ -1571,6 +1622,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::enterEvent(arg__1); - } -@@ -1599,6 +1651,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::event(event); - } -@@ -1627,6 +1680,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::eventFilter(object, event); - } -@@ -1644,6 +1698,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::focusInEvent(focusInEvent); - } -@@ -1672,6 +1727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::focusNextPrevChild(next); - } -@@ -1689,6 +1745,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::focusOutEvent(focusOutEvent); - } -@@ -1717,6 +1774,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::heightForWidth(arg__1); - } -@@ -1734,6 +1792,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::hideEvent(hideEvent); - } -@@ -1751,6 +1810,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::inputMethodEvent(arg__1); - } -@@ -1779,6 +1839,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::inputMethodQuery(arg__1); - } -@@ -1796,6 +1857,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::keyPressEvent(keyEvent); - } -@@ -1813,6 +1875,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::keyReleaseEvent(arg__1); - } -@@ -1830,6 +1893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::languageChange(); - } -@@ -1847,6 +1911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::leaveEvent(leaveEvent); - } -@@ -1875,6 +1940,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::metric(arg__1); - } -@@ -1892,6 +1958,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::mouseDoubleClickEvent(mouseEvent); - } -@@ -1909,6 +1976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::mouseMoveEvent(mouseEvent); - } -@@ -1926,6 +1994,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::mousePressEvent(mouseEvent); - } -@@ -1943,6 +2012,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::mouseReleaseEvent(mouseEvent); - } -@@ -1960,6 +2030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::moveEvent(moveEvent); - } -@@ -1988,6 +2059,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMdiSubWindow::paintEngine(); - } -@@ -2005,6 +2077,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::paintEvent(paintEvent); - } -@@ -2022,6 +2095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::resizeEvent(resizeEvent); - } -@@ -2039,6 +2113,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::showEvent(showEvent); - } -@@ -2056,6 +2131,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::tabletEvent(arg__1); - } -@@ -2073,6 +2149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::timerEvent(timerEvent); - } -@@ -2090,6 +2167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMdiSubWindow::wheelEvent(arg__1); - } -@@ -2293,6 +2371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::actionEvent(arg__1); - } -@@ -2310,6 +2389,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::changeEvent(arg__1); - } -@@ -2327,6 +2407,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::childEvent(arg__1); - } -@@ -2344,6 +2425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::closeEvent(arg__1); - } -@@ -2361,6 +2443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::contextMenuEvent(arg__1); - } -@@ -2378,6 +2461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::customEvent(arg__1); - } -@@ -2406,6 +2490,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::devType(); - } -@@ -2423,6 +2508,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::dragEnterEvent(arg__1); - } -@@ -2440,6 +2526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::dragLeaveEvent(arg__1); - } -@@ -2457,6 +2544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::dragMoveEvent(arg__1); - } -@@ -2474,6 +2562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::dropEvent(arg__1); - } -@@ -2491,6 +2580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::enterEvent(arg__1); - } -@@ -2519,6 +2609,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::event(arg__1); - } -@@ -2547,6 +2638,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::eventFilter(arg__1, arg__2); - } -@@ -2564,6 +2656,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::focusInEvent(arg__1); - } -@@ -2592,6 +2685,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::focusNextPrevChild(next); - } -@@ -2609,6 +2703,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::focusOutEvent(arg__1); - } -@@ -2637,6 +2732,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::heightForWidth(arg__1); - } -@@ -2654,6 +2750,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::hideEvent(arg__1); - } -@@ -2671,6 +2768,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::inputMethodEvent(arg__1); - } -@@ -2699,6 +2797,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::inputMethodQuery(arg__1); - } -@@ -2716,6 +2815,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::keyPressEvent(arg__1); - } -@@ -2733,6 +2833,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::keyReleaseEvent(arg__1); - } -@@ -2750,6 +2851,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::languageChange(); - } -@@ -2767,6 +2869,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::leaveEvent(arg__1); - } -@@ -2795,6 +2898,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::metric(arg__1); - } -@@ -2823,6 +2927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::minimumSizeHint(); - } -@@ -2840,6 +2945,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::mouseDoubleClickEvent(arg__1); - } -@@ -2857,6 +2963,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::mouseMoveEvent(arg__1); - } -@@ -2874,6 +2981,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::mousePressEvent(arg__1); - } -@@ -2891,6 +2999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::mouseReleaseEvent(arg__1); - } -@@ -2908,6 +3017,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::moveEvent(arg__1); - } -@@ -2936,6 +3046,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenu::paintEngine(); - } -@@ -2953,6 +3064,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::paintEvent(arg__1); - } -@@ -2970,6 +3082,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::resizeEvent(arg__1); - } -@@ -2987,6 +3100,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::showEvent(arg__1); - } -@@ -3004,6 +3118,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::tabletEvent(arg__1); - } -@@ -3021,6 +3136,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::timerEvent(arg__1); - } -@@ -3038,6 +3154,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenu::wheelEvent(arg__1); - } -@@ -3315,6 +3432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::actionEvent(arg__1); - } -@@ -3332,6 +3450,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::changeEvent(arg__1); - } -@@ -3349,6 +3468,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::childEvent(arg__1); - } -@@ -3366,6 +3486,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::closeEvent(arg__1); - } -@@ -3383,6 +3504,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::contextMenuEvent(arg__1); - } -@@ -3400,6 +3522,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::customEvent(arg__1); - } -@@ -3428,6 +3551,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::devType(); - } -@@ -3445,6 +3569,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::dragEnterEvent(arg__1); - } -@@ -3462,6 +3587,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::dragLeaveEvent(arg__1); - } -@@ -3479,6 +3605,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::dragMoveEvent(arg__1); - } -@@ -3496,6 +3623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::dropEvent(arg__1); - } -@@ -3513,6 +3641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::enterEvent(arg__1); - } -@@ -3541,6 +3670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::event(arg__1); - } -@@ -3569,6 +3699,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::eventFilter(arg__1, arg__2); - } -@@ -3586,6 +3717,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::focusInEvent(arg__1); - } -@@ -3614,6 +3746,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::focusNextPrevChild(next); - } -@@ -3631,6 +3764,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::focusOutEvent(arg__1); - } -@@ -3659,6 +3793,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::heightForWidth(arg__1); - } -@@ -3676,6 +3811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::hideEvent(arg__1); - } -@@ -3693,6 +3829,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::inputMethodEvent(arg__1); - } -@@ -3721,6 +3858,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::inputMethodQuery(arg__1); - } -@@ -3738,6 +3876,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::keyPressEvent(arg__1); - } -@@ -3755,6 +3894,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::keyReleaseEvent(arg__1); - } -@@ -3772,6 +3912,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::languageChange(); - } -@@ -3789,6 +3930,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::leaveEvent(arg__1); - } -@@ -3817,6 +3959,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::metric(arg__1); - } -@@ -3834,6 +3977,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::mouseDoubleClickEvent(arg__1); - } -@@ -3851,6 +3995,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::mouseMoveEvent(arg__1); - } -@@ -3868,6 +4013,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::mousePressEvent(arg__1); - } -@@ -3885,6 +4031,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::mouseReleaseEvent(arg__1); - } -@@ -3902,6 +4049,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::moveEvent(arg__1); - } -@@ -3930,6 +4078,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMenuBar::paintEngine(); - } -@@ -3947,6 +4096,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::paintEvent(arg__1); - } -@@ -3964,6 +4114,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::resizeEvent(arg__1); - } -@@ -3981,6 +4132,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::setVisible(visible); - } -@@ -3998,6 +4150,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::showEvent(arg__1); - } -@@ -4015,6 +4168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::tabletEvent(arg__1); - } -@@ -4032,6 +4186,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::timerEvent(arg__1); - } -@@ -4049,6 +4204,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMenuBar::wheelEvent(arg__1); - } -@@ -4257,6 +4413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::accept(); - } -@@ -4274,6 +4431,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::actionEvent(arg__1); - } -@@ -4291,6 +4449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::changeEvent(event); - } -@@ -4308,6 +4467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::childEvent(arg__1); - } -@@ -4325,6 +4485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::closeEvent(event); - } -@@ -4342,6 +4503,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::contextMenuEvent(arg__1); - } -@@ -4359,6 +4521,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::customEvent(arg__1); - } -@@ -4387,6 +4550,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::devType(); - } -@@ -4404,6 +4568,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::done(arg__1); - } -@@ -4421,6 +4586,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::dragEnterEvent(arg__1); - } -@@ -4438,6 +4604,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::dragLeaveEvent(arg__1); - } -@@ -4455,6 +4622,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::dragMoveEvent(arg__1); - } -@@ -4472,6 +4640,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::dropEvent(arg__1); - } -@@ -4489,6 +4658,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::enterEvent(arg__1); - } -@@ -4517,6 +4687,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::event(e); - } -@@ -4545,6 +4716,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::eventFilter(arg__1, arg__2); - } -@@ -4562,6 +4734,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::focusInEvent(arg__1); - } -@@ -4590,6 +4763,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::focusNextPrevChild(next); - } -@@ -4607,6 +4781,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::focusOutEvent(arg__1); - } -@@ -4635,6 +4810,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::heightForWidth(arg__1); - } -@@ -4652,6 +4828,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::hideEvent(arg__1); - } -@@ -4669,6 +4846,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::inputMethodEvent(arg__1); - } -@@ -4697,6 +4875,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::inputMethodQuery(arg__1); - } -@@ -4714,6 +4893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::keyPressEvent(event); - } -@@ -4731,6 +4911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::keyReleaseEvent(arg__1); - } -@@ -4748,6 +4929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::languageChange(); - } -@@ -4765,6 +4947,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::leaveEvent(arg__1); - } -@@ -4793,6 +4976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::metric(arg__1); - } -@@ -4810,6 +4994,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::mouseDoubleClickEvent(arg__1); - } -@@ -4827,6 +5012,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::mouseMoveEvent(arg__1); - } -@@ -4844,6 +5030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::mousePressEvent(arg__1); - } -@@ -4861,6 +5048,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::mouseReleaseEvent(arg__1); - } -@@ -4878,6 +5066,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::moveEvent(arg__1); - } -@@ -4906,6 +5095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMessageBox::paintEngine(); - } -@@ -4923,6 +5113,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::paintEvent(arg__1); - } -@@ -4940,6 +5131,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::reject(); - } -@@ -4957,6 +5149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::resizeEvent(event); - } -@@ -4974,6 +5167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::showEvent(event); - } -@@ -4991,6 +5185,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::tabletEvent(arg__1); - } -@@ -5008,6 +5203,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::timerEvent(arg__1); - } -@@ -5025,6 +5221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMessageBox::wheelEvent(arg__1); - } -@@ -5292,6 +5489,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::childEvent(arg__1); - } -@@ -5309,6 +5507,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::customEvent(arg__1); - } -@@ -5326,6 +5525,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::drawComplexControl(cc, opt, p, w); - } -@@ -5343,6 +5543,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::drawControl(element, opt, p, w); - } -@@ -5360,6 +5561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -5377,6 +5579,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -5394,6 +5597,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::drawPrimitive(pe, opt, p, w); - } -@@ -5422,6 +5626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::event(arg__1); - } -@@ -5450,6 +5655,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::eventFilter(o, e); - } -@@ -5478,6 +5684,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::generatedIconPixmap(iconMode, pixmap, opt); - } -@@ -5506,6 +5713,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::hitTestComplexControl(cc, opt, pt, w); - } -@@ -5534,6 +5742,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -5562,6 +5771,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::pixelMetric(metric, option, widget); - } -@@ -5579,6 +5789,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::polish(arg__1); - } -@@ -5596,6 +5807,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::polish(arg__1); - } -@@ -5613,6 +5825,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::polish(arg__1); - } -@@ -5641,6 +5854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::sizeFromContents(ct, opt, contentsSize, widget); - } -@@ -5669,6 +5883,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::standardPalette(); - } -@@ -5697,6 +5912,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -5725,6 +5941,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::styleHint(hint, opt, widget, returnData); - } -@@ -5753,6 +5970,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::subControlRect(cc, opt, sc, widget); - } -@@ -5781,6 +5999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMotifStyle::subElementRect(r, opt, widget); - } -@@ -5798,6 +6017,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::timerEvent(event); - } -@@ -5815,6 +6035,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::unpolish(arg__1); - } -@@ -5832,6 +6053,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMotifStyle::unpolish(arg__1); - } -@@ -6015,6 +6237,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMouseEventTransition::childEvent(arg__1); - } -@@ -6032,6 +6255,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMouseEventTransition::customEvent(arg__1); - } -@@ -6060,6 +6284,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMouseEventTransition::event(e); - } -@@ -6088,6 +6313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMouseEventTransition::eventFilter(arg__1, arg__2); - } -@@ -6116,6 +6342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMouseEventTransition::eventTest(event); - } -@@ -6133,6 +6360,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMouseEventTransition::onTransition(event); - } -@@ -6150,6 +6378,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMouseEventTransition::timerEvent(arg__1); - } -@@ -6233,6 +6462,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMovie::childEvent(arg__1); - } -@@ -6250,6 +6480,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMovie::customEvent(arg__1); - } -@@ -6278,6 +6509,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMovie::event(arg__1); - } -@@ -6306,6 +6538,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QMovie::eventFilter(arg__1, arg__2); - } -@@ -6323,6 +6556,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QMovie::timerEvent(arg__1); - } -@@ -6474,6 +6708,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::accept(); - } -@@ -6491,6 +6726,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::actionEvent(arg__1); - } -@@ -6508,6 +6744,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::changeEvent(arg__1); - } -@@ -6525,6 +6762,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::childEvent(arg__1); - } -@@ -6542,6 +6780,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::closeEvent(arg__1); - } -@@ -6559,6 +6798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::contextMenuEvent(arg__1); - } -@@ -6576,6 +6816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::customEvent(arg__1); - } -@@ -6604,6 +6845,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::devType(); - } -@@ -6621,6 +6863,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::done(result); - } -@@ -6638,6 +6881,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::dragEnterEvent(arg__1); - } -@@ -6655,6 +6899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::dragLeaveEvent(arg__1); - } -@@ -6672,6 +6917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::dragMoveEvent(arg__1); - } -@@ -6689,6 +6935,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::dropEvent(arg__1); - } -@@ -6706,6 +6953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::enterEvent(arg__1); - } -@@ -6734,6 +6982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::event(arg__1); - } -@@ -6762,6 +7011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::eventFilter(arg__1, arg__2); - } -@@ -6790,6 +7040,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::exec(); - } -@@ -6807,6 +7058,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::focusInEvent(arg__1); - } -@@ -6835,6 +7087,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::focusNextPrevChild(next); - } -@@ -6852,6 +7105,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::focusOutEvent(arg__1); - } -@@ -6880,6 +7134,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::heightForWidth(arg__1); - } -@@ -6897,6 +7152,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::hideEvent(arg__1); - } -@@ -6914,6 +7170,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::inputMethodEvent(arg__1); - } -@@ -6942,6 +7199,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::inputMethodQuery(arg__1); - } -@@ -6959,6 +7217,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::keyPressEvent(arg__1); - } -@@ -6976,6 +7235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::keyReleaseEvent(arg__1); - } -@@ -6993,6 +7253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::languageChange(); - } -@@ -7010,6 +7271,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::leaveEvent(arg__1); - } -@@ -7038,6 +7300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::metric(arg__1); - } -@@ -7055,6 +7318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::mouseDoubleClickEvent(arg__1); - } -@@ -7072,6 +7336,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::mouseMoveEvent(arg__1); - } -@@ -7089,6 +7354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::mousePressEvent(arg__1); - } -@@ -7106,6 +7372,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::mouseReleaseEvent(arg__1); - } -@@ -7123,6 +7390,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::moveEvent(arg__1); - } -@@ -7151,6 +7419,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPageSetupDialog::paintEngine(); - } -@@ -7168,6 +7437,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::paintEvent(arg__1); - } -@@ -7185,6 +7455,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::reject(); - } -@@ -7202,6 +7473,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::resizeEvent(arg__1); - } -@@ -7219,6 +7491,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::showEvent(arg__1); - } -@@ -7236,6 +7509,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::tabletEvent(arg__1); - } -@@ -7253,6 +7527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::timerEvent(arg__1); - } -@@ -7270,6 +7545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPageSetupDialog::wheelEvent(arg__1); - } -@@ -7363,6 +7639,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPaintDevice::devType(); - } -@@ -7391,6 +7668,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPaintDevice::metric(metric); - } -@@ -7419,6 +7697,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -7523,6 +7802,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -7551,6 +7831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPaintEngine::coordinateOffset(); - } -@@ -7568,6 +7849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawEllipse(r); - } -@@ -7585,6 +7867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawEllipse(r); - } -@@ -7602,6 +7885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawImage(r, pm, sr, flags); - } -@@ -7619,6 +7903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawLines(lines, lineCount); - } -@@ -7636,6 +7921,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawLines(lines, lineCount); - } -@@ -7653,6 +7939,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawPath(path); - } -@@ -7670,6 +7957,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -7687,6 +7975,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawPoints(points, pointCount); - } -@@ -7704,6 +7993,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawPoints(points, pointCount); - } -@@ -7721,6 +8011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawPolygon(points, pointCount, mode); - } -@@ -7738,6 +8029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawPolygon(points, pointCount, mode); - } -@@ -7755,6 +8047,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawRects(rects, rectCount); - } -@@ -7772,6 +8065,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawRects(rects, rectCount); - } -@@ -7789,6 +8083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawTextItem(p, textItem); - } -@@ -7806,6 +8101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPaintEngine::drawTiledPixmap(r, pixmap, s); - } -@@ -7834,6 +8130,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -7862,6 +8159,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPaintEngine::Type(); - } -@@ -7879,6 +8177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -9578,6 +9877,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPanGesture::childEvent(arg__1); - } -@@ -9595,6 +9895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPanGesture::customEvent(arg__1); - } -@@ -9623,6 +9924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPanGesture::event(arg__1); - } -@@ -9651,6 +9953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPanGesture::eventFilter(arg__1, arg__2); - } -@@ -9668,6 +9971,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPanGesture::timerEvent(arg__1); - } -@@ -9737,6 +10041,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPicture::devType(); - } -@@ -9765,6 +10070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPicture::metric(m); - } -@@ -9793,6 +10099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPicture::paintEngine(); - } -@@ -9810,6 +10117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPicture::setData(data, size); - } -@@ -9912,6 +10220,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPictureFormatPlugin::childEvent(arg__1); - } -@@ -9929,6 +10238,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPictureFormatPlugin::customEvent(arg__1); - } -@@ -9957,6 +10267,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPictureFormatPlugin::event(arg__1); - } -@@ -9985,6 +10296,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPictureFormatPlugin::eventFilter(arg__1, arg__2); - } -@@ -10013,6 +10325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -10041,6 +10354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -10069,6 +10383,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPictureFormatPlugin::loadPicture(format, filename, pic); - } -@@ -10097,6 +10412,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPictureFormatPlugin::savePicture(format, filename, pic); - } -@@ -10114,6 +10430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPictureFormatPlugin::timerEvent(arg__1); - } -@@ -10281,6 +10598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPinchGesture::childEvent(arg__1); - } -@@ -10298,6 +10616,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPinchGesture::customEvent(arg__1); - } -@@ -10326,6 +10645,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPinchGesture::event(arg__1); - } -@@ -10354,6 +10674,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPinchGesture::eventFilter(arg__1, arg__2); - } -@@ -10371,6 +10692,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPinchGesture::timerEvent(arg__1); - } -@@ -10621,6 +10943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::actionEvent(arg__1); - } -@@ -10649,6 +10972,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::canInsertFromMimeData(source); - } -@@ -10666,6 +10990,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::changeEvent(e); - } -@@ -10683,6 +11008,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::childEvent(arg__1); - } -@@ -10700,6 +11026,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::closeEvent(arg__1); - } -@@ -10717,6 +11044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::contextMenuEvent(e); - } -@@ -10745,6 +11073,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::createMimeDataFromSelection(); - } -@@ -10762,6 +11091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::customEvent(arg__1); - } -@@ -10790,6 +11120,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::devType(); - } -@@ -10807,6 +11138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::dragEnterEvent(e); - } -@@ -10824,6 +11156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::dragLeaveEvent(e); - } -@@ -10841,6 +11174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::dragMoveEvent(e); - } -@@ -10858,6 +11192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::dropEvent(e); - } -@@ -10875,6 +11210,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::enterEvent(arg__1); - } -@@ -10903,6 +11239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::event(e); - } -@@ -10931,6 +11268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::eventFilter(arg__1, arg__2); - } -@@ -10948,6 +11286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::focusInEvent(e); - } -@@ -10976,6 +11315,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::focusNextPrevChild(next); - } -@@ -10993,6 +11333,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::focusOutEvent(e); - } -@@ -11021,6 +11362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::heightForWidth(arg__1); - } -@@ -11038,6 +11380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::hideEvent(arg__1); - } -@@ -11055,6 +11398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::inputMethodEvent(arg__1); - } -@@ -11083,6 +11427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::inputMethodQuery(property); - } -@@ -11100,6 +11445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::insertFromMimeData(source); - } -@@ -11117,6 +11463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::keyPressEvent(e); - } -@@ -11134,6 +11481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::keyReleaseEvent(e); - } -@@ -11151,6 +11499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::languageChange(); - } -@@ -11168,6 +11517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::leaveEvent(arg__1); - } -@@ -11196,6 +11546,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::loadResource(type, name); - } -@@ -11224,6 +11575,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::metric(arg__1); - } -@@ -11241,6 +11593,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::mouseDoubleClickEvent(e); - } -@@ -11258,6 +11611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::mouseMoveEvent(e); - } -@@ -11275,6 +11629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::mousePressEvent(e); - } -@@ -11292,6 +11647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::mouseReleaseEvent(e); - } -@@ -11309,6 +11665,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::moveEvent(arg__1); - } -@@ -11337,6 +11694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::paintEngine(); - } -@@ -11354,6 +11712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::paintEvent(e); - } -@@ -11371,6 +11730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::resizeEvent(e); - } -@@ -11388,6 +11748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::scrollContentsBy(dx, dy); - } -@@ -11405,6 +11766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::showEvent(arg__1); - } -@@ -11422,6 +11784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::tabletEvent(arg__1); - } -@@ -11439,6 +11802,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::timerEvent(e); - } -@@ -11467,6 +11831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlainTextEdit::viewportEvent(arg__1); - } -@@ -11484,6 +11849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlainTextEdit::wheelEvent(e); - } -@@ -11881,6 +12247,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::childEvent(arg__1); - } -@@ -11898,6 +12265,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::customEvent(arg__1); - } -@@ -11915,6 +12283,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::drawComplexControl(control, option, painter, widget); - } -@@ -11932,6 +12301,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::drawControl(element, option, painter, widget); - } -@@ -11949,6 +12319,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -11966,6 +12337,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -11983,6 +12355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::drawPrimitive(element, option, painter, widget); - } -@@ -12011,6 +12384,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::event(arg__1); - } -@@ -12039,6 +12413,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::eventFilter(watched, event); - } -@@ -12067,6 +12442,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::generatedIconPixmap(iconMode, pixmap, opt); - } -@@ -12095,6 +12471,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::hitTestComplexControl(control, option, pos, widget); - } -@@ -12123,6 +12500,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -12151,6 +12529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::pixelMetric(metric, option, widget); - } -@@ -12168,6 +12547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::polish(app); - } -@@ -12185,6 +12565,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::polish(pal); - } -@@ -12202,6 +12583,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::polish(widget); - } -@@ -12230,6 +12612,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::sizeFromContents(type, option, size, widget); - } -@@ -12258,6 +12641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::standardPalette(); - } -@@ -12286,6 +12670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -12314,6 +12699,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::styleHint(hint, option, widget, returnData); - } -@@ -12342,6 +12728,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::subControlRect(cc, opt, sc, widget); - } -@@ -12370,6 +12757,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPlastiqueStyle::subElementRect(element, option, widget); - } -@@ -12387,6 +12775,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::timerEvent(event); - } -@@ -12404,6 +12793,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::unpolish(app); - } -@@ -12421,6 +12811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPlastiqueStyle::unpolish(widget); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -index 4eb41a2..45c8c00 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui6.cpp -@@ -85,6 +85,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::accept(); - } -@@ -102,6 +103,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::actionEvent(arg__1); - } -@@ -119,6 +121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::changeEvent(arg__1); - } -@@ -136,6 +139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::childEvent(arg__1); - } -@@ -153,6 +157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::closeEvent(arg__1); - } -@@ -170,6 +175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::contextMenuEvent(arg__1); - } -@@ -187,6 +193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::customEvent(arg__1); - } -@@ -215,6 +222,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::devType(); - } -@@ -232,6 +240,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::done(result); - } -@@ -249,6 +258,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::dragEnterEvent(arg__1); - } -@@ -266,6 +276,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::dragLeaveEvent(arg__1); - } -@@ -283,6 +294,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::dragMoveEvent(arg__1); - } -@@ -300,6 +312,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::dropEvent(arg__1); - } -@@ -317,6 +330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::enterEvent(arg__1); - } -@@ -345,6 +359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::event(arg__1); - } -@@ -373,6 +388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::eventFilter(arg__1, arg__2); - } -@@ -401,6 +417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::exec(); - } -@@ -418,6 +435,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::focusInEvent(arg__1); - } -@@ -446,6 +464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::focusNextPrevChild(next); - } -@@ -463,6 +482,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::focusOutEvent(arg__1); - } -@@ -491,6 +511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::heightForWidth(arg__1); - } -@@ -508,6 +529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::hideEvent(arg__1); - } -@@ -525,6 +547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::inputMethodEvent(arg__1); - } -@@ -553,6 +576,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::inputMethodQuery(arg__1); - } -@@ -570,6 +594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::keyPressEvent(arg__1); - } -@@ -587,6 +612,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::keyReleaseEvent(arg__1); - } -@@ -604,6 +630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::languageChange(); - } -@@ -621,6 +648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::leaveEvent(arg__1); - } -@@ -649,6 +677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::metric(arg__1); - } -@@ -666,6 +695,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::mouseDoubleClickEvent(arg__1); - } -@@ -683,6 +713,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::mouseMoveEvent(arg__1); - } -@@ -700,6 +731,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::mousePressEvent(arg__1); - } -@@ -717,6 +749,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::mouseReleaseEvent(arg__1); - } -@@ -734,6 +767,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::moveEvent(arg__1); - } -@@ -762,6 +796,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintDialog::paintEngine(); - } -@@ -779,6 +814,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::paintEvent(arg__1); - } -@@ -796,6 +832,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::reject(); - } -@@ -813,6 +850,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::resizeEvent(arg__1); - } -@@ -830,6 +868,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::showEvent(arg__1); - } -@@ -847,6 +886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::tabletEvent(arg__1); - } -@@ -864,6 +904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::timerEvent(arg__1); - } -@@ -881,6 +922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintDialog::wheelEvent(arg__1); - } -@@ -964,6 +1006,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -992,6 +1035,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -1020,6 +1064,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -1048,6 +1093,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrinter::PrinterState(); - } -@@ -1076,6 +1122,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QVariant(); - } -@@ -1093,6 +1140,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -1116,6 +1164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::accept(); - } -@@ -1133,6 +1182,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::actionEvent(arg__1); - } -@@ -1150,6 +1200,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::changeEvent(arg__1); - } -@@ -1167,6 +1218,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::childEvent(arg__1); - } -@@ -1184,6 +1236,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::closeEvent(arg__1); - } -@@ -1201,6 +1254,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::contextMenuEvent(arg__1); - } -@@ -1218,6 +1272,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::customEvent(arg__1); - } -@@ -1246,6 +1301,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::devType(); - } -@@ -1263,6 +1319,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::done(result); - } -@@ -1280,6 +1337,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::dragEnterEvent(arg__1); - } -@@ -1297,6 +1355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::dragLeaveEvent(arg__1); - } -@@ -1314,6 +1373,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::dragMoveEvent(arg__1); - } -@@ -1331,6 +1391,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::dropEvent(arg__1); - } -@@ -1348,6 +1409,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::enterEvent(arg__1); - } -@@ -1376,6 +1438,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::event(arg__1); - } -@@ -1404,6 +1467,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::eventFilter(arg__1, arg__2); - } -@@ -1421,6 +1485,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::focusInEvent(arg__1); - } -@@ -1449,6 +1514,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::focusNextPrevChild(next); - } -@@ -1466,6 +1532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::focusOutEvent(arg__1); - } -@@ -1494,6 +1561,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::heightForWidth(arg__1); - } -@@ -1511,6 +1579,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::hideEvent(arg__1); - } -@@ -1528,6 +1597,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::inputMethodEvent(arg__1); - } -@@ -1556,6 +1626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::inputMethodQuery(arg__1); - } -@@ -1573,6 +1644,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::keyPressEvent(arg__1); - } -@@ -1590,6 +1662,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::keyReleaseEvent(arg__1); - } -@@ -1607,6 +1680,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::languageChange(); - } -@@ -1624,6 +1698,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::leaveEvent(arg__1); - } -@@ -1652,6 +1727,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::metric(arg__1); - } -@@ -1669,6 +1745,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::mouseDoubleClickEvent(arg__1); - } -@@ -1686,6 +1763,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::mouseMoveEvent(arg__1); - } -@@ -1703,6 +1781,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::mousePressEvent(arg__1); - } -@@ -1720,6 +1799,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::mouseReleaseEvent(arg__1); - } -@@ -1737,6 +1817,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::moveEvent(arg__1); - } -@@ -1765,6 +1846,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewDialog::paintEngine(); - } -@@ -1782,6 +1864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::paintEvent(arg__1); - } -@@ -1799,6 +1882,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::reject(); - } -@@ -1816,6 +1900,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::resizeEvent(arg__1); - } -@@ -1833,6 +1918,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::showEvent(arg__1); - } -@@ -1850,6 +1936,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::tabletEvent(arg__1); - } -@@ -1867,6 +1954,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::timerEvent(arg__1); - } -@@ -1884,6 +1972,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewDialog::wheelEvent(arg__1); - } -@@ -1936,6 +2025,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::actionEvent(arg__1); - } -@@ -1953,6 +2043,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::changeEvent(arg__1); - } -@@ -1970,6 +2061,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::childEvent(arg__1); - } -@@ -1987,6 +2079,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::closeEvent(arg__1); - } -@@ -2004,6 +2097,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::contextMenuEvent(arg__1); - } -@@ -2021,6 +2115,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::customEvent(arg__1); - } -@@ -2049,6 +2144,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::devType(); - } -@@ -2066,6 +2162,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::dragEnterEvent(arg__1); - } -@@ -2083,6 +2180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::dragLeaveEvent(arg__1); - } -@@ -2100,6 +2198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::dragMoveEvent(arg__1); - } -@@ -2117,6 +2216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::dropEvent(arg__1); - } -@@ -2134,6 +2234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::enterEvent(arg__1); - } -@@ -2162,6 +2263,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::event(arg__1); - } -@@ -2190,6 +2292,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::eventFilter(arg__1, arg__2); - } -@@ -2207,6 +2310,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::focusInEvent(arg__1); - } -@@ -2235,6 +2339,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::focusNextPrevChild(next); - } -@@ -2252,6 +2357,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::focusOutEvent(arg__1); - } -@@ -2280,6 +2386,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::heightForWidth(arg__1); - } -@@ -2297,6 +2404,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::hideEvent(arg__1); - } -@@ -2314,6 +2422,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::inputMethodEvent(arg__1); - } -@@ -2342,6 +2451,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::inputMethodQuery(arg__1); - } -@@ -2359,6 +2469,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::keyPressEvent(arg__1); - } -@@ -2376,6 +2487,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::keyReleaseEvent(arg__1); - } -@@ -2393,6 +2505,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::languageChange(); - } -@@ -2410,6 +2523,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::leaveEvent(arg__1); - } -@@ -2438,6 +2552,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::metric(arg__1); - } -@@ -2466,6 +2581,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::minimumSizeHint(); - } -@@ -2483,6 +2599,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::mouseDoubleClickEvent(arg__1); - } -@@ -2500,6 +2617,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::mouseMoveEvent(arg__1); - } -@@ -2517,6 +2635,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::mousePressEvent(arg__1); - } -@@ -2534,6 +2653,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::mouseReleaseEvent(arg__1); - } -@@ -2551,6 +2671,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::moveEvent(arg__1); - } -@@ -2579,6 +2700,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::paintEngine(); - } -@@ -2596,6 +2718,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::paintEvent(arg__1); - } -@@ -2613,6 +2736,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::resizeEvent(arg__1); - } -@@ -2630,6 +2754,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::showEvent(arg__1); - } -@@ -2658,6 +2783,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrintPreviewWidget::sizeHint(); - } -@@ -2675,6 +2801,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::tabletEvent(arg__1); - } -@@ -2692,6 +2819,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::timerEvent(arg__1); - } -@@ -2709,6 +2837,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPrintPreviewWidget::wheelEvent(arg__1); - } -@@ -2787,6 +2916,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrinter::devType(); - } -@@ -2815,6 +2945,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrinter::metric(arg__1); - } -@@ -2843,6 +2974,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPrinter::paintEngine(); - } -@@ -3175,6 +3307,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::actionEvent(arg__1); - } -@@ -3192,6 +3325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::changeEvent(arg__1); - } -@@ -3209,6 +3343,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::childEvent(arg__1); - } -@@ -3226,6 +3361,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::closeEvent(arg__1); - } -@@ -3243,6 +3379,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::contextMenuEvent(arg__1); - } -@@ -3260,6 +3397,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::customEvent(arg__1); - } -@@ -3288,6 +3426,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::devType(); - } -@@ -3305,6 +3444,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::dragEnterEvent(arg__1); - } -@@ -3322,6 +3462,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::dragLeaveEvent(arg__1); - } -@@ -3339,6 +3480,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::dragMoveEvent(arg__1); - } -@@ -3356,6 +3498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::dropEvent(arg__1); - } -@@ -3373,6 +3516,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::enterEvent(arg__1); - } -@@ -3401,6 +3545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::event(e); - } -@@ -3429,6 +3574,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::eventFilter(arg__1, arg__2); - } -@@ -3446,6 +3592,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::focusInEvent(arg__1); - } -@@ -3474,6 +3621,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::focusNextPrevChild(next); - } -@@ -3491,6 +3639,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::focusOutEvent(arg__1); - } -@@ -3519,6 +3668,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::heightForWidth(arg__1); - } -@@ -3536,6 +3686,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::hideEvent(arg__1); - } -@@ -3553,6 +3704,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::inputMethodEvent(arg__1); - } -@@ -3581,6 +3733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::inputMethodQuery(arg__1); - } -@@ -3598,6 +3751,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::keyPressEvent(arg__1); - } -@@ -3615,6 +3769,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::keyReleaseEvent(arg__1); - } -@@ -3632,6 +3787,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::languageChange(); - } -@@ -3649,6 +3805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::leaveEvent(arg__1); - } -@@ -3677,6 +3834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::metric(arg__1); - } -@@ -3694,6 +3852,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::mouseDoubleClickEvent(arg__1); - } -@@ -3711,6 +3870,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::mouseMoveEvent(arg__1); - } -@@ -3728,6 +3888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::mousePressEvent(arg__1); - } -@@ -3745,6 +3906,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::mouseReleaseEvent(arg__1); - } -@@ -3762,6 +3924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::moveEvent(arg__1); - } -@@ -3790,6 +3953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::paintEngine(); - } -@@ -3807,6 +3971,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::paintEvent(arg__1); - } -@@ -3824,6 +3989,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::resizeEvent(arg__1); - } -@@ -3841,6 +4007,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::showEvent(arg__1); - } -@@ -3858,6 +4025,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::tabletEvent(arg__1); - } -@@ -3886,6 +4054,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressBar::text(); - } -@@ -3903,6 +4072,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::timerEvent(arg__1); - } -@@ -3920,6 +4090,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressBar::wheelEvent(arg__1); - } -@@ -4038,6 +4209,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::accept(); - } -@@ -4055,6 +4227,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::actionEvent(arg__1); - } -@@ -4072,6 +4245,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::changeEvent(event); - } -@@ -4089,6 +4263,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::childEvent(arg__1); - } -@@ -4106,6 +4281,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::closeEvent(event); - } -@@ -4123,6 +4299,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::contextMenuEvent(arg__1); - } -@@ -4140,6 +4317,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::customEvent(arg__1); - } -@@ -4168,6 +4346,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::devType(); - } -@@ -4185,6 +4364,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::done(arg__1); - } -@@ -4202,6 +4382,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::dragEnterEvent(arg__1); - } -@@ -4219,6 +4400,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::dragLeaveEvent(arg__1); - } -@@ -4236,6 +4418,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::dragMoveEvent(arg__1); - } -@@ -4253,6 +4436,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::dropEvent(arg__1); - } -@@ -4270,6 +4454,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::enterEvent(arg__1); - } -@@ -4298,6 +4483,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::event(arg__1); - } -@@ -4326,6 +4512,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::eventFilter(arg__1, arg__2); - } -@@ -4343,6 +4530,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::focusInEvent(arg__1); - } -@@ -4371,6 +4559,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::focusNextPrevChild(next); - } -@@ -4388,6 +4577,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::focusOutEvent(arg__1); - } -@@ -4416,6 +4606,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::heightForWidth(arg__1); - } -@@ -4433,6 +4624,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::hideEvent(arg__1); - } -@@ -4450,6 +4642,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::inputMethodEvent(arg__1); - } -@@ -4478,6 +4671,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::inputMethodQuery(arg__1); - } -@@ -4495,6 +4689,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::keyPressEvent(arg__1); - } -@@ -4512,6 +4707,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::keyReleaseEvent(arg__1); - } -@@ -4529,6 +4725,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::languageChange(); - } -@@ -4546,6 +4743,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::leaveEvent(arg__1); - } -@@ -4574,6 +4772,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::metric(arg__1); - } -@@ -4591,6 +4790,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::mouseDoubleClickEvent(arg__1); - } -@@ -4608,6 +4808,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::mouseMoveEvent(arg__1); - } -@@ -4625,6 +4826,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::mousePressEvent(arg__1); - } -@@ -4642,6 +4844,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::mouseReleaseEvent(arg__1); - } -@@ -4659,6 +4862,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::moveEvent(arg__1); - } -@@ -4687,6 +4891,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProgressDialog::paintEngine(); - } -@@ -4704,6 +4909,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::paintEvent(arg__1); - } -@@ -4721,6 +4927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::reject(); - } -@@ -4738,6 +4945,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::resizeEvent(event); - } -@@ -4755,6 +4963,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::showEvent(event); - } -@@ -4772,6 +4981,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::tabletEvent(arg__1); - } -@@ -4789,6 +4999,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::timerEvent(arg__1); - } -@@ -4806,6 +5017,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProgressDialog::wheelEvent(arg__1); - } -@@ -4933,6 +5145,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::childEvent(arg__1); - } -@@ -4950,6 +5163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::customEvent(arg__1); - } -@@ -4967,6 +5181,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::drawComplexControl(control, option, painter, widget); - } -@@ -4984,6 +5199,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::drawControl(element, option, painter, widget); - } -@@ -5001,6 +5217,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -5018,6 +5235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -5035,6 +5253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::drawPrimitive(element, option, painter, widget); - } -@@ -5063,6 +5282,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::event(e); - } -@@ -5091,6 +5311,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::eventFilter(arg__1, arg__2); - } -@@ -5119,6 +5340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::generatedIconPixmap(iconMode, pixmap, opt); - } -@@ -5147,6 +5369,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::hitTestComplexControl(control, option, pos, widget); - } -@@ -5175,6 +5398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -5203,6 +5427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::pixelMetric(metric, option, widget); - } -@@ -5220,6 +5445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::polish(app); - } -@@ -5237,6 +5463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::polish(pal); - } -@@ -5254,6 +5481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::polish(widget); - } -@@ -5282,6 +5510,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::sizeFromContents(type, option, size, widget); - } -@@ -5310,6 +5539,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::standardPalette(); - } -@@ -5338,6 +5568,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::standardPixmap(standardPixmap, opt, widget); - } -@@ -5366,6 +5597,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::styleHint(hint, option, widget, returnData); - } -@@ -5394,6 +5626,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::subControlRect(cc, opt, sc, widget); - } -@@ -5422,6 +5655,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QProxyStyle::subElementRect(element, option, widget); - } -@@ -5439,6 +5673,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::timerEvent(arg__1); - } -@@ -5456,6 +5691,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::unpolish(app); - } -@@ -5473,6 +5709,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QProxyStyle::unpolish(widget); - } -@@ -5616,6 +5853,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::actionEvent(arg__1); - } -@@ -5633,6 +5871,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::changeEvent(e); - } -@@ -5650,6 +5889,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::checkStateSet(); - } -@@ -5667,6 +5907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::childEvent(arg__1); - } -@@ -5684,6 +5925,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::closeEvent(arg__1); - } -@@ -5701,6 +5943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::contextMenuEvent(arg__1); - } -@@ -5718,6 +5961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::customEvent(arg__1); - } -@@ -5746,6 +5990,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::devType(); - } -@@ -5763,6 +6008,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::dragEnterEvent(arg__1); - } -@@ -5780,6 +6026,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::dragLeaveEvent(arg__1); - } -@@ -5797,6 +6044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::dragMoveEvent(arg__1); - } -@@ -5814,6 +6062,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::dropEvent(arg__1); - } -@@ -5831,6 +6080,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::enterEvent(arg__1); - } -@@ -5859,6 +6109,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::event(e); - } -@@ -5887,6 +6138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::eventFilter(arg__1, arg__2); - } -@@ -5904,6 +6156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::focusInEvent(arg__1); - } -@@ -5932,6 +6185,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::focusNextPrevChild(next); - } -@@ -5949,6 +6203,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::focusOutEvent(arg__1); - } -@@ -5977,6 +6232,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::heightForWidth(arg__1); - } -@@ -5994,6 +6250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::hideEvent(arg__1); - } -@@ -6022,6 +6279,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::hitButton(pos); - } -@@ -6039,6 +6297,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::inputMethodEvent(arg__1); - } -@@ -6067,6 +6326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::inputMethodQuery(arg__1); - } -@@ -6084,6 +6344,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::keyPressEvent(arg__1); - } -@@ -6101,6 +6362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::keyReleaseEvent(e); - } -@@ -6118,6 +6380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::languageChange(); - } -@@ -6135,6 +6398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::leaveEvent(arg__1); - } -@@ -6163,6 +6427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::metric(arg__1); - } -@@ -6180,6 +6445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::mouseDoubleClickEvent(arg__1); - } -@@ -6197,6 +6463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::mouseMoveEvent(e); - } -@@ -6214,6 +6481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::mousePressEvent(e); - } -@@ -6231,6 +6499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::mouseReleaseEvent(e); - } -@@ -6248,6 +6517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::moveEvent(arg__1); - } -@@ -6265,6 +6535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::nextCheckState(); - } -@@ -6293,6 +6564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPushButton::paintEngine(); - } -@@ -6310,6 +6582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::paintEvent(arg__1); - } -@@ -6327,6 +6600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::resizeEvent(arg__1); - } -@@ -6344,6 +6618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::showEvent(arg__1); - } -@@ -6361,6 +6636,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::tabletEvent(arg__1); - } -@@ -6378,6 +6654,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::timerEvent(e); - } -@@ -6395,6 +6672,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QPushButton::wheelEvent(arg__1); - } -@@ -6775,6 +7053,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::actionEvent(arg__1); - } -@@ -6792,6 +7071,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::changeEvent(e); - } -@@ -6809,6 +7089,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::checkStateSet(); - } -@@ -6826,6 +7107,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::childEvent(arg__1); - } -@@ -6843,6 +7125,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::closeEvent(arg__1); - } -@@ -6860,6 +7143,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::contextMenuEvent(arg__1); - } -@@ -6877,6 +7161,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::customEvent(arg__1); - } -@@ -6905,6 +7190,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::devType(); - } -@@ -6922,6 +7208,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::dragEnterEvent(arg__1); - } -@@ -6939,6 +7226,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::dragLeaveEvent(arg__1); - } -@@ -6956,6 +7244,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::dragMoveEvent(arg__1); - } -@@ -6973,6 +7262,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::dropEvent(arg__1); - } -@@ -6990,6 +7280,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::enterEvent(arg__1); - } -@@ -7018,6 +7309,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::event(e); - } -@@ -7046,6 +7338,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::eventFilter(arg__1, arg__2); - } -@@ -7063,6 +7356,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::focusInEvent(e); - } -@@ -7091,6 +7385,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::focusNextPrevChild(next); - } -@@ -7108,6 +7403,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::focusOutEvent(e); - } -@@ -7136,6 +7432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::heightForWidth(arg__1); - } -@@ -7153,6 +7450,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::hideEvent(arg__1); - } -@@ -7181,6 +7479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::hitButton(arg__1); - } -@@ -7198,6 +7497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::inputMethodEvent(arg__1); - } -@@ -7226,6 +7526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::inputMethodQuery(arg__1); - } -@@ -7243,6 +7544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::keyPressEvent(e); - } -@@ -7260,6 +7562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::keyReleaseEvent(e); - } -@@ -7277,6 +7580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::languageChange(); - } -@@ -7294,6 +7598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::leaveEvent(arg__1); - } -@@ -7322,6 +7627,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::metric(arg__1); - } -@@ -7350,6 +7656,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::minimumSizeHint(); - } -@@ -7367,6 +7674,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::mouseDoubleClickEvent(arg__1); - } -@@ -7384,6 +7692,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::mouseMoveEvent(arg__1); - } -@@ -7401,6 +7710,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::mousePressEvent(e); - } -@@ -7418,6 +7728,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::mouseReleaseEvent(e); - } -@@ -7435,6 +7746,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::moveEvent(arg__1); - } -@@ -7452,6 +7764,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::nextCheckState(); - } -@@ -7480,6 +7793,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRadioButton::paintEngine(); - } -@@ -7497,6 +7811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::paintEvent(arg__1); - } -@@ -7514,6 +7829,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::resizeEvent(arg__1); - } -@@ -7531,6 +7847,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::showEvent(arg__1); - } -@@ -7548,6 +7865,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::tabletEvent(arg__1); - } -@@ -7565,6 +7883,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::timerEvent(e); - } -@@ -7582,6 +7901,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRadioButton::wheelEvent(arg__1); - } -@@ -7634,6 +7954,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRegExpValidator::childEvent(arg__1); - } -@@ -7651,6 +7972,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRegExpValidator::customEvent(arg__1); - } -@@ -7679,6 +8001,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRegExpValidator::event(arg__1); - } -@@ -7707,6 +8030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRegExpValidator::eventFilter(arg__1, arg__2); - } -@@ -7724,6 +8048,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRegExpValidator::fixup(arg__1); - } -@@ -7741,6 +8066,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRegExpValidator::timerEvent(arg__1); - } -@@ -7769,6 +8095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRegExpValidator::validate(input, pos); - } -@@ -7827,6 +8154,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::actionEvent(arg__1); - } -@@ -7844,6 +8172,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::changeEvent(arg__1); - } -@@ -7861,6 +8190,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::childEvent(arg__1); - } -@@ -7878,6 +8208,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::closeEvent(arg__1); - } -@@ -7895,6 +8226,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::contextMenuEvent(arg__1); - } -@@ -7912,6 +8244,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::customEvent(arg__1); - } -@@ -7940,6 +8273,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::devType(); - } -@@ -7957,6 +8291,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::dragEnterEvent(arg__1); - } -@@ -7974,6 +8309,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::dragLeaveEvent(arg__1); - } -@@ -7991,6 +8327,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::dragMoveEvent(arg__1); - } -@@ -8008,6 +8345,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::dropEvent(arg__1); - } -@@ -8025,6 +8363,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::enterEvent(arg__1); - } -@@ -8053,6 +8392,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::event(e); - } -@@ -8081,6 +8421,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::eventFilter(arg__1, arg__2); - } -@@ -8098,6 +8439,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::focusInEvent(arg__1); - } -@@ -8126,6 +8468,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::focusNextPrevChild(next); - } -@@ -8143,6 +8486,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::focusOutEvent(arg__1); - } -@@ -8171,6 +8515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::heightForWidth(arg__1); - } -@@ -8188,6 +8533,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::hideEvent(arg__1); - } -@@ -8205,6 +8551,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::inputMethodEvent(arg__1); - } -@@ -8233,6 +8580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::inputMethodQuery(arg__1); - } -@@ -8250,6 +8598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::keyPressEvent(arg__1); - } -@@ -8267,6 +8616,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::keyReleaseEvent(arg__1); - } -@@ -8284,6 +8634,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::languageChange(); - } -@@ -8301,6 +8652,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::leaveEvent(arg__1); - } -@@ -8329,6 +8681,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::metric(arg__1); - } -@@ -8357,6 +8710,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::minimumSizeHint(); - } -@@ -8374,6 +8728,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::mouseDoubleClickEvent(arg__1); - } -@@ -8391,6 +8746,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::mouseMoveEvent(arg__1); - } -@@ -8408,6 +8764,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::mousePressEvent(arg__1); - } -@@ -8425,6 +8782,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::mouseReleaseEvent(arg__1); - } -@@ -8442,6 +8800,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::moveEvent(arg__1); - } -@@ -8470,6 +8829,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::paintEngine(); - } -@@ -8487,6 +8847,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::paintEvent(arg__1); - } -@@ -8504,6 +8865,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::resizeEvent(arg__1); - } -@@ -8521,6 +8883,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::showEvent(arg__1); - } -@@ -8549,6 +8912,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRubberBand::sizeHint(); - } -@@ -8566,6 +8930,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::tabletEvent(arg__1); - } -@@ -8583,6 +8948,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::timerEvent(arg__1); - } -@@ -8600,6 +8966,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QRubberBand::wheelEvent(arg__1); - } -@@ -8688,6 +9055,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::actionEvent(arg__1); - } -@@ -8705,6 +9073,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::changeEvent(arg__1); - } -@@ -8722,6 +9091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::childEvent(arg__1); - } -@@ -8739,6 +9109,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::closeEvent(arg__1); - } -@@ -8756,6 +9127,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::contextMenuEvent(arg__1); - } -@@ -8773,6 +9145,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::customEvent(arg__1); - } -@@ -8801,6 +9174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::devType(); - } -@@ -8818,6 +9192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::dragEnterEvent(arg__1); - } -@@ -8835,6 +9210,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::dragLeaveEvent(arg__1); - } -@@ -8852,6 +9228,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::dragMoveEvent(arg__1); - } -@@ -8869,6 +9246,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::dropEvent(arg__1); - } -@@ -8886,6 +9264,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::enterEvent(arg__1); - } -@@ -8914,6 +9293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::event(arg__1); - } -@@ -8942,6 +9322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::eventFilter(arg__1, arg__2); - } -@@ -8959,6 +9340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::focusInEvent(arg__1); - } -@@ -8987,6 +9369,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::focusNextPrevChild(next); - } -@@ -9004,6 +9387,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::focusOutEvent(arg__1); - } -@@ -9032,6 +9416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::heightForWidth(arg__1); - } -@@ -9049,6 +9434,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::hideEvent(arg__1); - } -@@ -9066,6 +9452,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::inputMethodEvent(arg__1); - } -@@ -9094,6 +9481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::inputMethodQuery(arg__1); - } -@@ -9111,6 +9499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::keyPressEvent(arg__1); - } -@@ -9128,6 +9517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::keyReleaseEvent(arg__1); - } -@@ -9145,6 +9535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::languageChange(); - } -@@ -9162,6 +9553,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::leaveEvent(arg__1); - } -@@ -9190,6 +9582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::metric(arg__1); - } -@@ -9207,6 +9600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::mouseDoubleClickEvent(arg__1); - } -@@ -9224,6 +9618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::mouseMoveEvent(arg__1); - } -@@ -9241,6 +9636,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::mousePressEvent(arg__1); - } -@@ -9258,6 +9654,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::mouseReleaseEvent(arg__1); - } -@@ -9275,6 +9672,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::moveEvent(arg__1); - } -@@ -9303,6 +9701,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::paintEngine(); - } -@@ -9320,6 +9719,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::paintEvent(arg__1); - } -@@ -9337,6 +9737,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::resizeEvent(arg__1); - } -@@ -9354,6 +9755,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::scrollContentsBy(dx, dy); - } -@@ -9371,6 +9773,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::showEvent(arg__1); - } -@@ -9388,6 +9791,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::tabletEvent(arg__1); - } -@@ -9405,6 +9809,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::timerEvent(arg__1); - } -@@ -9433,6 +9838,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollArea::viewportEvent(arg__1); - } -@@ -9450,6 +9856,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollArea::wheelEvent(arg__1); - } -@@ -9548,6 +9955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::actionEvent(arg__1); - } -@@ -9565,6 +9973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::changeEvent(e); - } -@@ -9582,6 +9991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::childEvent(arg__1); - } -@@ -9599,6 +10009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::closeEvent(arg__1); - } -@@ -9616,6 +10027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::contextMenuEvent(arg__1); - } -@@ -9633,6 +10045,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::customEvent(arg__1); - } -@@ -9661,6 +10074,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::devType(); - } -@@ -9678,6 +10092,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::dragEnterEvent(arg__1); - } -@@ -9695,6 +10110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::dragLeaveEvent(arg__1); - } -@@ -9712,6 +10128,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::dragMoveEvent(arg__1); - } -@@ -9729,6 +10146,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::dropEvent(arg__1); - } -@@ -9746,6 +10164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::enterEvent(arg__1); - } -@@ -9774,6 +10193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::event(event); - } -@@ -9802,6 +10222,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::eventFilter(arg__1, arg__2); - } -@@ -9819,6 +10240,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::focusInEvent(arg__1); - } -@@ -9847,6 +10269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::focusNextPrevChild(next); - } -@@ -9864,6 +10287,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::focusOutEvent(arg__1); - } -@@ -9892,6 +10316,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::heightForWidth(arg__1); - } -@@ -9909,6 +10334,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::hideEvent(arg__1); - } -@@ -9926,6 +10352,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::inputMethodEvent(arg__1); - } -@@ -9954,6 +10381,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::inputMethodQuery(arg__1); - } -@@ -9971,6 +10399,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::keyPressEvent(ev); - } -@@ -9988,6 +10417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::keyReleaseEvent(arg__1); - } -@@ -10005,6 +10435,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::languageChange(); - } -@@ -10022,6 +10453,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::leaveEvent(arg__1); - } -@@ -10050,6 +10482,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::metric(arg__1); - } -@@ -10078,6 +10511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::minimumSizeHint(); - } -@@ -10095,6 +10529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::mouseDoubleClickEvent(arg__1); - } -@@ -10112,6 +10547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::mouseMoveEvent(arg__1); - } -@@ -10129,6 +10565,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::mousePressEvent(arg__1); - } -@@ -10146,6 +10583,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::mouseReleaseEvent(arg__1); - } -@@ -10163,6 +10601,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::moveEvent(arg__1); - } -@@ -10191,6 +10630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QScrollBar::paintEngine(); - } -@@ -10208,6 +10648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::paintEvent(arg__1); - } -@@ -10225,6 +10666,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::resizeEvent(arg__1); - } -@@ -10242,6 +10684,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::showEvent(arg__1); - } -@@ -10259,6 +10702,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::tabletEvent(arg__1); - } -@@ -10276,6 +10720,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::timerEvent(arg__1); - } -@@ -10293,6 +10738,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QScrollBar::wheelEvent(e); - } -@@ -10442,6 +10888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QShortcut::childEvent(arg__1); - } -@@ -10459,6 +10906,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QShortcut::customEvent(arg__1); - } -@@ -10487,6 +10935,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QShortcut::event(e); - } -@@ -10515,6 +10964,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QShortcut::eventFilter(arg__1, arg__2); - } -@@ -10532,6 +10982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QShortcut::timerEvent(arg__1); - } -@@ -10651,6 +11102,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::actionEvent(arg__1); - } -@@ -10668,6 +11120,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::changeEvent(arg__1); - } -@@ -10685,6 +11138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::childEvent(arg__1); - } -@@ -10702,6 +11156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::closeEvent(arg__1); - } -@@ -10719,6 +11174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::contextMenuEvent(arg__1); - } -@@ -10736,6 +11192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::customEvent(arg__1); - } -@@ -10764,6 +11221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::devType(); - } -@@ -10781,6 +11239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::dragEnterEvent(arg__1); - } -@@ -10798,6 +11257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::dragLeaveEvent(arg__1); - } -@@ -10815,6 +11275,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::dragMoveEvent(arg__1); - } -@@ -10832,6 +11293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::dropEvent(arg__1); - } -@@ -10849,6 +11311,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::enterEvent(arg__1); - } -@@ -10877,6 +11340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::event(arg__1); - } -@@ -10905,6 +11369,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::eventFilter(arg__1, arg__2); - } -@@ -10922,6 +11387,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::focusInEvent(arg__1); - } -@@ -10950,6 +11416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::focusNextPrevChild(next); - } -@@ -10967,6 +11434,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::focusOutEvent(arg__1); - } -@@ -10995,6 +11463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::heightForWidth(arg__1); - } -@@ -11012,6 +11481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::hideEvent(hideEvent); - } -@@ -11029,6 +11499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::inputMethodEvent(arg__1); - } -@@ -11057,6 +11528,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::inputMethodQuery(arg__1); - } -@@ -11074,6 +11546,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::keyPressEvent(arg__1); - } -@@ -11091,6 +11564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::keyReleaseEvent(arg__1); - } -@@ -11108,6 +11582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::languageChange(); - } -@@ -11125,6 +11600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::leaveEvent(arg__1); - } -@@ -11153,6 +11629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::metric(arg__1); - } -@@ -11181,6 +11658,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::minimumSizeHint(); - } -@@ -11198,6 +11676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::mouseDoubleClickEvent(arg__1); - } -@@ -11215,6 +11694,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::mouseMoveEvent(arg__1); - } -@@ -11232,6 +11712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::mousePressEvent(arg__1); - } -@@ -11249,6 +11730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::mouseReleaseEvent(mouseEvent); - } -@@ -11266,6 +11748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::moveEvent(moveEvent); - } -@@ -11294,6 +11777,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSizeGrip::paintEngine(); - } -@@ -11311,6 +11795,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::paintEvent(arg__1); - } -@@ -11328,6 +11813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::resizeEvent(arg__1); - } -@@ -11345,6 +11831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::showEvent(showEvent); - } -@@ -11362,6 +11849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::tabletEvent(arg__1); - } -@@ -11379,6 +11867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::timerEvent(arg__1); - } -@@ -11396,6 +11885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSizeGrip::wheelEvent(arg__1); - } -@@ -11474,6 +11964,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::actionEvent(arg__1); - } -@@ -11491,6 +11982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::changeEvent(e); - } -@@ -11508,6 +12000,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::childEvent(arg__1); - } -@@ -11525,6 +12018,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::closeEvent(arg__1); - } -@@ -11542,6 +12036,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::contextMenuEvent(arg__1); - } -@@ -11559,6 +12054,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::customEvent(arg__1); - } -@@ -11587,6 +12083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::devType(); - } -@@ -11604,6 +12101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::dragEnterEvent(arg__1); - } -@@ -11621,6 +12119,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::dragLeaveEvent(arg__1); - } -@@ -11638,6 +12137,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::dragMoveEvent(arg__1); - } -@@ -11655,6 +12155,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::dropEvent(arg__1); - } -@@ -11672,6 +12173,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::enterEvent(arg__1); - } -@@ -11700,6 +12202,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::event(event); - } -@@ -11728,6 +12231,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::eventFilter(arg__1, arg__2); - } -@@ -11745,6 +12249,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::focusInEvent(arg__1); - } -@@ -11773,6 +12278,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::focusNextPrevChild(next); - } -@@ -11790,6 +12296,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::focusOutEvent(arg__1); - } -@@ -11818,6 +12325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::heightForWidth(arg__1); - } -@@ -11835,6 +12343,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::hideEvent(arg__1); - } -@@ -11852,6 +12361,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::inputMethodEvent(arg__1); - } -@@ -11880,6 +12390,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::inputMethodQuery(arg__1); - } -@@ -11897,6 +12408,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::keyPressEvent(ev); - } -@@ -11914,6 +12426,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::keyReleaseEvent(arg__1); - } -@@ -11931,6 +12444,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::languageChange(); - } -@@ -11948,6 +12462,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::leaveEvent(arg__1); - } -@@ -11976,6 +12491,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::metric(arg__1); - } -@@ -11993,6 +12509,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::mouseDoubleClickEvent(arg__1); - } -@@ -12010,6 +12527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::mouseMoveEvent(ev); - } -@@ -12027,6 +12545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::mousePressEvent(ev); - } -@@ -12044,6 +12563,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::mouseReleaseEvent(ev); - } -@@ -12061,6 +12581,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::moveEvent(arg__1); - } -@@ -12089,6 +12610,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSlider::paintEngine(); - } -@@ -12106,6 +12628,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::paintEvent(ev); - } -@@ -12123,6 +12646,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::resizeEvent(arg__1); - } -@@ -12140,6 +12664,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::showEvent(arg__1); - } -@@ -12157,6 +12682,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::tabletEvent(arg__1); - } -@@ -12174,6 +12700,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::timerEvent(arg__1); - } -@@ -12191,6 +12718,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSlider::wheelEvent(e); - } -@@ -12273,6 +12801,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSound::childEvent(arg__1); - } -@@ -12290,6 +12819,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSound::customEvent(arg__1); - } -@@ -12318,6 +12848,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSound::event(arg__1); - } -@@ -12346,6 +12877,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSound::eventFilter(arg__1, arg__2); - } -@@ -12363,6 +12895,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSound::timerEvent(arg__1); - } -@@ -12432,6 +12965,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::expandingDirections(); - } -@@ -12460,6 +12994,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::geometry(); - } -@@ -12488,6 +13023,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::hasHeightForWidth(); - } -@@ -12516,6 +13052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::heightForWidth(arg__1); - } -@@ -12533,6 +13070,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpacerItem::invalidate(); - } -@@ -12561,6 +13099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::isEmpty(); - } -@@ -12589,6 +13128,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::layout(); - } -@@ -12617,6 +13157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::maximumSize(); - } -@@ -12645,6 +13186,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::minimumHeightForWidth(arg__1); - } -@@ -12673,6 +13215,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::minimumSize(); - } -@@ -12690,6 +13233,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpacerItem::setGeometry(arg__1); - } -@@ -12718,6 +13262,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::sizeHint(); - } -@@ -12746,6 +13291,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::spacerItem(); - } -@@ -12774,6 +13320,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpacerItem::widget(); - } -@@ -12842,6 +13389,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::actionEvent(arg__1); - } -@@ -12859,6 +13407,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::changeEvent(event); - } -@@ -12876,6 +13425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::childEvent(arg__1); - } -@@ -12893,6 +13443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::clear(); - } -@@ -12910,6 +13461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::closeEvent(event); - } -@@ -12927,6 +13479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::contextMenuEvent(event); - } -@@ -12944,6 +13497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::customEvent(arg__1); - } -@@ -12972,6 +13526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::devType(); - } -@@ -12989,6 +13544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::dragEnterEvent(arg__1); - } -@@ -13006,6 +13562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::dragLeaveEvent(arg__1); - } -@@ -13023,6 +13580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::dragMoveEvent(arg__1); - } -@@ -13040,6 +13598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::dropEvent(arg__1); - } -@@ -13057,6 +13616,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::enterEvent(arg__1); - } -@@ -13085,6 +13645,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::event(event); - } -@@ -13113,6 +13674,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::eventFilter(arg__1, arg__2); - } -@@ -13130,6 +13692,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::fixup(str); - } -@@ -13147,6 +13710,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::focusInEvent(event); - } -@@ -13175,6 +13739,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::focusNextPrevChild(next); - } -@@ -13192,6 +13757,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::focusOutEvent(event); - } -@@ -13220,6 +13786,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::heightForWidth(arg__1); - } -@@ -13237,6 +13804,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::hideEvent(event); - } -@@ -13254,6 +13822,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::inputMethodEvent(arg__1); - } -@@ -13282,6 +13851,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::inputMethodQuery(arg__1); - } -@@ -13299,6 +13869,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::keyPressEvent(event); - } -@@ -13316,6 +13887,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::keyReleaseEvent(event); - } -@@ -13333,6 +13905,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::languageChange(); - } -@@ -13350,6 +13923,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::leaveEvent(arg__1); - } -@@ -13378,6 +13952,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::metric(arg__1); - } -@@ -13395,6 +13970,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::mouseDoubleClickEvent(arg__1); - } -@@ -13412,6 +13988,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::mouseMoveEvent(event); - } -@@ -13429,6 +14006,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::mousePressEvent(event); - } -@@ -13446,6 +14024,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::mouseReleaseEvent(event); - } -@@ -13463,6 +14042,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::moveEvent(arg__1); - } -@@ -13491,6 +14071,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::paintEngine(); - } -@@ -13508,6 +14089,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::paintEvent(event); - } -@@ -13525,6 +14107,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::resizeEvent(event); - } -@@ -13542,6 +14125,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::showEvent(event); - } -@@ -13559,6 +14143,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::stepBy(steps); - } -@@ -13587,6 +14172,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::stepEnabled(); - } -@@ -13604,6 +14190,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::tabletEvent(arg__1); - } -@@ -13632,6 +14219,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::textFromValue(val); - } -@@ -13649,6 +14237,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::timerEvent(event); - } -@@ -13677,6 +14266,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::validate(input, pos); - } -@@ -13705,6 +14295,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSpinBox::valueFromText(text); - } -@@ -13722,6 +14313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSpinBox::wheelEvent(event); - } -@@ -13835,6 +14427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::actionEvent(arg__1); - } -@@ -13852,6 +14445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::changeEvent(arg__1); - } -@@ -13869,6 +14463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::childEvent(arg__1); - } -@@ -13886,6 +14481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::closeEvent(arg__1); - } -@@ -13903,6 +14499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::contextMenuEvent(arg__1); - } -@@ -13920,6 +14517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::customEvent(arg__1); - } -@@ -13948,6 +14546,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::devType(); - } -@@ -13965,6 +14564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::dragEnterEvent(arg__1); - } -@@ -13982,6 +14582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::dragLeaveEvent(arg__1); - } -@@ -13999,6 +14600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::dragMoveEvent(arg__1); - } -@@ -14016,6 +14618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::drawContents(painter); - } -@@ -14033,6 +14636,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::dropEvent(arg__1); - } -@@ -14050,6 +14654,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::enterEvent(arg__1); - } -@@ -14078,6 +14683,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::event(e); - } -@@ -14106,6 +14712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::eventFilter(arg__1, arg__2); - } -@@ -14123,6 +14730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::focusInEvent(arg__1); - } -@@ -14151,6 +14759,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::focusNextPrevChild(next); - } -@@ -14168,6 +14777,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::focusOutEvent(arg__1); - } -@@ -14196,6 +14806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::heightForWidth(arg__1); - } -@@ -14213,6 +14824,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::hideEvent(arg__1); - } -@@ -14230,6 +14842,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::inputMethodEvent(arg__1); - } -@@ -14258,6 +14871,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::inputMethodQuery(arg__1); - } -@@ -14275,6 +14889,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::keyPressEvent(arg__1); - } -@@ -14292,6 +14907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::keyReleaseEvent(arg__1); - } -@@ -14309,6 +14925,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::languageChange(); - } -@@ -14326,6 +14943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::leaveEvent(arg__1); - } -@@ -14354,6 +14972,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::metric(arg__1); - } -@@ -14382,6 +15001,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::minimumSizeHint(); - } -@@ -14399,6 +15019,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::mouseDoubleClickEvent(arg__1); - } -@@ -14416,6 +15037,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::mouseMoveEvent(arg__1); - } -@@ -14433,6 +15055,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::mousePressEvent(arg__1); - } -@@ -14450,6 +15073,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::mouseReleaseEvent(arg__1); - } -@@ -14467,6 +15091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::moveEvent(arg__1); - } -@@ -14495,6 +15120,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::paintEngine(); - } -@@ -14512,6 +15138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::paintEvent(arg__1); - } -@@ -14529,6 +15156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::resizeEvent(arg__1); - } -@@ -14546,6 +15174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::showEvent(arg__1); - } -@@ -14574,6 +15203,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplashScreen::sizeHint(); - } -@@ -14591,6 +15221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::tabletEvent(arg__1); - } -@@ -14608,6 +15239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::timerEvent(arg__1); - } -@@ -14625,6 +15257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplashScreen::wheelEvent(arg__1); - } -@@ -14682,6 +15315,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::actionEvent(arg__1); - } -@@ -14699,6 +15333,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::changeEvent(arg__1); - } -@@ -14716,6 +15351,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::childEvent(arg__1); - } -@@ -14733,6 +15369,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::closeEvent(arg__1); - } -@@ -14750,6 +15387,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::contextMenuEvent(arg__1); - } -@@ -14778,6 +15416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::createHandle(); - } -@@ -14795,6 +15434,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::customEvent(arg__1); - } -@@ -14823,6 +15463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::devType(); - } -@@ -14840,6 +15481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::dragEnterEvent(arg__1); - } -@@ -14857,6 +15499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::dragLeaveEvent(arg__1); - } -@@ -14874,6 +15517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::dragMoveEvent(arg__1); - } -@@ -14891,6 +15535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::dropEvent(arg__1); - } -@@ -14908,6 +15553,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::enterEvent(arg__1); - } -@@ -14936,6 +15582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::event(arg__1); - } -@@ -14964,6 +15611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::eventFilter(arg__1, arg__2); - } -@@ -14981,6 +15629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::focusInEvent(arg__1); - } -@@ -15009,6 +15658,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::focusNextPrevChild(next); - } -@@ -15026,6 +15676,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::focusOutEvent(arg__1); - } -@@ -15054,6 +15705,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::heightForWidth(arg__1); - } -@@ -15071,6 +15723,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::hideEvent(arg__1); - } -@@ -15088,6 +15741,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::inputMethodEvent(arg__1); - } -@@ -15116,6 +15770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::inputMethodQuery(arg__1); - } -@@ -15133,6 +15788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::keyPressEvent(arg__1); - } -@@ -15150,6 +15806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::keyReleaseEvent(arg__1); - } -@@ -15167,6 +15824,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::languageChange(); - } -@@ -15184,6 +15842,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::leaveEvent(arg__1); - } -@@ -15212,6 +15871,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::metric(arg__1); - } -@@ -15229,6 +15889,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::mouseDoubleClickEvent(arg__1); - } -@@ -15246,6 +15907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::mouseMoveEvent(arg__1); - } -@@ -15263,6 +15925,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::mousePressEvent(arg__1); - } -@@ -15280,6 +15943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::mouseReleaseEvent(arg__1); - } -@@ -15297,6 +15961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::moveEvent(arg__1); - } -@@ -15325,6 +15990,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitter::paintEngine(); - } -@@ -15342,6 +16008,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::paintEvent(arg__1); - } -@@ -15359,6 +16026,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::resizeEvent(arg__1); - } -@@ -15376,6 +16044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::showEvent(arg__1); - } -@@ -15393,6 +16062,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::tabletEvent(arg__1); - } -@@ -15410,6 +16080,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::timerEvent(arg__1); - } -@@ -15427,6 +16098,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitter::wheelEvent(arg__1); - } -@@ -15614,6 +16286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::actionEvent(arg__1); - } -@@ -15631,6 +16304,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::changeEvent(arg__1); - } -@@ -15648,6 +16322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::childEvent(arg__1); - } -@@ -15665,6 +16340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::closeEvent(arg__1); - } -@@ -15682,6 +16358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::contextMenuEvent(arg__1); - } -@@ -15699,6 +16376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::customEvent(arg__1); - } -@@ -15727,6 +16405,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::devType(); - } -@@ -15744,6 +16423,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::dragEnterEvent(arg__1); - } -@@ -15761,6 +16441,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::dragLeaveEvent(arg__1); - } -@@ -15778,6 +16459,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::dragMoveEvent(arg__1); - } -@@ -15795,6 +16477,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::dropEvent(arg__1); - } -@@ -15812,6 +16495,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::enterEvent(arg__1); - } -@@ -15840,6 +16524,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::event(arg__1); - } -@@ -15868,6 +16553,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::eventFilter(arg__1, arg__2); - } -@@ -15885,6 +16571,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::focusInEvent(arg__1); - } -@@ -15913,6 +16600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::focusNextPrevChild(next); - } -@@ -15930,6 +16618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::focusOutEvent(arg__1); - } -@@ -15958,6 +16647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::heightForWidth(arg__1); - } -@@ -15975,6 +16665,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::hideEvent(arg__1); - } -@@ -15992,6 +16683,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::inputMethodEvent(arg__1); - } -@@ -16020,6 +16712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::inputMethodQuery(arg__1); - } -@@ -16037,6 +16730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::keyPressEvent(arg__1); - } -@@ -16054,6 +16748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::keyReleaseEvent(arg__1); - } -@@ -16071,6 +16766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::languageChange(); - } -@@ -16088,6 +16784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::leaveEvent(arg__1); - } -@@ -16116,6 +16813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::metric(arg__1); - } -@@ -16144,6 +16842,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::minimumSizeHint(); - } -@@ -16161,6 +16860,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::mouseDoubleClickEvent(arg__1); - } -@@ -16178,6 +16878,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::mouseMoveEvent(arg__1); - } -@@ -16195,6 +16896,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::mousePressEvent(arg__1); - } -@@ -16212,6 +16914,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::mouseReleaseEvent(arg__1); - } -@@ -16229,6 +16932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::moveEvent(arg__1); - } -@@ -16257,6 +16961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSplitterHandle::paintEngine(); - } -@@ -16274,6 +16979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::paintEvent(arg__1); - } -@@ -16291,6 +16997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::resizeEvent(arg__1); - } -@@ -16308,6 +17015,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::showEvent(arg__1); - } -@@ -16325,6 +17033,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::tabletEvent(arg__1); - } -@@ -16342,6 +17051,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::timerEvent(arg__1); - } -@@ -16359,6 +17069,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSplitterHandle::wheelEvent(arg__1); - } -@@ -16432,6 +17143,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedLayout::addItem(item); - } -@@ -16449,6 +17161,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedLayout::childEvent(e); - } -@@ -16477,6 +17190,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::count(); - } -@@ -16494,6 +17208,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedLayout::customEvent(arg__1); - } -@@ -16522,6 +17237,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::event(arg__1); - } -@@ -16550,6 +17266,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::eventFilter(arg__1, arg__2); - } -@@ -16578,6 +17295,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::expandingDirections(); - } -@@ -16606,6 +17324,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::geometry(); - } -@@ -16634,6 +17353,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::indexOf(arg__1); - } -@@ -16651,6 +17371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedLayout::invalidate(); - } -@@ -16679,6 +17400,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::isEmpty(); - } -@@ -16707,6 +17429,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::itemAt(arg__1); - } -@@ -16735,6 +17458,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::layout(); - } -@@ -16763,6 +17487,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::maximumSize(); - } -@@ -16791,6 +17516,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::minimumSize(); - } -@@ -16808,6 +17534,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedLayout::setGeometry(rect); - } -@@ -16836,6 +17563,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedLayout::takeAt(arg__1); - } -@@ -16853,6 +17581,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedLayout::timerEvent(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -index 16c24dc..766bf47 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui7.cpp -@@ -61,6 +61,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::actionEvent(arg__1); - } -@@ -78,6 +79,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::changeEvent(arg__1); - } -@@ -95,6 +97,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::childEvent(arg__1); - } -@@ -112,6 +115,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::closeEvent(arg__1); - } -@@ -129,6 +133,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::contextMenuEvent(arg__1); - } -@@ -146,6 +151,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::customEvent(arg__1); - } -@@ -174,6 +180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::devType(); - } -@@ -191,6 +198,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::dragEnterEvent(arg__1); - } -@@ -208,6 +216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::dragLeaveEvent(arg__1); - } -@@ -225,6 +234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::dragMoveEvent(arg__1); - } -@@ -242,6 +252,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::dropEvent(arg__1); - } -@@ -259,6 +270,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::enterEvent(arg__1); - } -@@ -287,6 +299,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::event(e); - } -@@ -315,6 +328,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::eventFilter(arg__1, arg__2); - } -@@ -332,6 +346,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::focusInEvent(arg__1); - } -@@ -360,6 +375,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::focusNextPrevChild(next); - } -@@ -377,6 +393,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::focusOutEvent(arg__1); - } -@@ -405,6 +422,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::heightForWidth(arg__1); - } -@@ -422,6 +440,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::hideEvent(arg__1); - } -@@ -439,6 +458,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::inputMethodEvent(arg__1); - } -@@ -467,6 +487,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::inputMethodQuery(arg__1); - } -@@ -484,6 +505,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::keyPressEvent(arg__1); - } -@@ -501,6 +523,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::keyReleaseEvent(arg__1); - } -@@ -518,6 +541,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::languageChange(); - } -@@ -535,6 +559,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::leaveEvent(arg__1); - } -@@ -563,6 +588,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::metric(arg__1); - } -@@ -591,6 +617,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::minimumSizeHint(); - } -@@ -608,6 +635,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::mouseDoubleClickEvent(arg__1); - } -@@ -625,6 +653,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::mouseMoveEvent(arg__1); - } -@@ -642,6 +671,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::mousePressEvent(arg__1); - } -@@ -659,6 +689,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::mouseReleaseEvent(arg__1); - } -@@ -676,6 +707,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::moveEvent(arg__1); - } -@@ -704,6 +736,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStackedWidget::paintEngine(); - } -@@ -721,6 +754,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::paintEvent(arg__1); - } -@@ -738,6 +772,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::resizeEvent(arg__1); - } -@@ -755,6 +790,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::showEvent(arg__1); - } -@@ -772,6 +808,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::tabletEvent(arg__1); - } -@@ -789,6 +826,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::timerEvent(arg__1); - } -@@ -806,6 +844,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStackedWidget::wheelEvent(arg__1); - } -@@ -885,6 +924,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItem::clone(); - } -@@ -913,6 +953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItem::data(role); - } -@@ -941,6 +982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItem::operator<(other); - } -@@ -958,6 +1000,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItem::read(in); - } -@@ -975,6 +1018,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItem::setData(value, role); - } -@@ -1003,6 +1047,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItem::type(); - } -@@ -1020,6 +1065,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItem::write(out); - } -@@ -1469,6 +1515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::buddy(index); - } -@@ -1497,6 +1544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::canFetchMore(parent); - } -@@ -1514,6 +1562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItemModel::childEvent(arg__1); - } -@@ -1542,6 +1591,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::columnCount(parent); - } -@@ -1559,6 +1609,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItemModel::customEvent(arg__1); - } -@@ -1587,6 +1638,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::data(index, role); - } -@@ -1615,6 +1667,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::dropMimeData(data, action, row, column, parent); - } -@@ -1643,6 +1696,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::event(arg__1); - } -@@ -1671,6 +1725,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::eventFilter(arg__1, arg__2); - } -@@ -1688,6 +1743,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItemModel::fetchMore(parent); - } -@@ -1716,6 +1772,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::flags(index); - } -@@ -1744,6 +1801,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::hasChildren(parent); - } -@@ -1772,6 +1830,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::headerData(section, orientation, role); - } -@@ -1800,6 +1859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::index(row, column, parent); - } -@@ -1828,6 +1888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::insertColumns(column, count, parent); - } -@@ -1856,6 +1917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::insertRows(row, count, parent); - } -@@ -1884,6 +1946,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::itemData(index); - } -@@ -1912,6 +1975,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::match(start, role, value, hits, flags); - } -@@ -1940,6 +2004,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::mimeData(indexes); - } -@@ -1968,6 +2033,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::mimeTypes(); - } -@@ -1996,6 +2062,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::parent(child); - } -@@ -2024,6 +2091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::removeColumns(column, count, parent); - } -@@ -2052,6 +2120,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::removeRows(row, count, parent); - } -@@ -2069,6 +2138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItemModel::revert(); - } -@@ -2097,6 +2167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::rowCount(parent); - } -@@ -2125,6 +2196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::setData(index, value, role); - } -@@ -2153,6 +2225,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::setHeaderData(section, orientation, value, role); - } -@@ -2181,6 +2254,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::setItemData(index, roles); - } -@@ -2198,6 +2272,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItemModel::sort(column, order); - } -@@ -2226,6 +2301,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::span(index); - } -@@ -2254,6 +2330,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::submit(); - } -@@ -2282,6 +2359,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStandardItemModel::supportedDropActions(); - } -@@ -2299,6 +2377,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStandardItemModel::timerEvent(arg__1); - } -@@ -2586,6 +2665,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::actionEvent(arg__1); - } -@@ -2603,6 +2683,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::changeEvent(arg__1); - } -@@ -2620,6 +2701,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::childEvent(arg__1); - } -@@ -2637,6 +2719,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::closeEvent(arg__1); - } -@@ -2654,6 +2737,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::contextMenuEvent(arg__1); - } -@@ -2671,6 +2755,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::customEvent(arg__1); - } -@@ -2699,6 +2784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::devType(); - } -@@ -2716,6 +2802,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::dragEnterEvent(arg__1); - } -@@ -2733,6 +2820,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::dragLeaveEvent(arg__1); - } -@@ -2750,6 +2838,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::dragMoveEvent(arg__1); - } -@@ -2767,6 +2856,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::dropEvent(arg__1); - } -@@ -2784,6 +2874,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::enterEvent(arg__1); - } -@@ -2812,6 +2903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::event(arg__1); - } -@@ -2840,6 +2932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::eventFilter(arg__1, arg__2); - } -@@ -2857,6 +2950,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::focusInEvent(arg__1); - } -@@ -2885,6 +2979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::focusNextPrevChild(next); - } -@@ -2902,6 +2997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::focusOutEvent(arg__1); - } -@@ -2930,6 +3026,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::heightForWidth(arg__1); - } -@@ -2947,6 +3044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::hideEvent(arg__1); - } -@@ -2964,6 +3062,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::inputMethodEvent(arg__1); - } -@@ -2992,6 +3091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::inputMethodQuery(arg__1); - } -@@ -3009,6 +3109,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::keyPressEvent(arg__1); - } -@@ -3026,6 +3127,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::keyReleaseEvent(arg__1); - } -@@ -3043,6 +3145,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::languageChange(); - } -@@ -3060,6 +3163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::leaveEvent(arg__1); - } -@@ -3088,6 +3192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::metric(arg__1); - } -@@ -3116,6 +3221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::minimumSizeHint(); - } -@@ -3133,6 +3239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::mouseDoubleClickEvent(arg__1); - } -@@ -3150,6 +3257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::mouseMoveEvent(arg__1); - } -@@ -3167,6 +3275,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::mousePressEvent(arg__1); - } -@@ -3184,6 +3293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::mouseReleaseEvent(arg__1); - } -@@ -3201,6 +3311,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::moveEvent(arg__1); - } -@@ -3229,6 +3340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::paintEngine(); - } -@@ -3246,6 +3358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::paintEvent(arg__1); - } -@@ -3263,6 +3376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::resizeEvent(arg__1); - } -@@ -3280,6 +3394,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::showEvent(arg__1); - } -@@ -3308,6 +3423,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStatusBar::sizeHint(); - } -@@ -3325,6 +3441,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::tabletEvent(arg__1); - } -@@ -3342,6 +3459,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::timerEvent(arg__1); - } -@@ -3359,6 +3477,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStatusBar::wheelEvent(arg__1); - } -@@ -3464,6 +3583,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::buddy(index); - } -@@ -3492,6 +3612,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::canFetchMore(parent); - } -@@ -3509,6 +3630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStringListModel::childEvent(arg__1); - } -@@ -3526,6 +3648,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStringListModel::customEvent(arg__1); - } -@@ -3554,6 +3677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::data(index, role); - } -@@ -3582,6 +3706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::dropMimeData(data, action, row, column, parent); - } -@@ -3610,6 +3735,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::event(arg__1); - } -@@ -3638,6 +3764,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::eventFilter(arg__1, arg__2); - } -@@ -3655,6 +3782,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStringListModel::fetchMore(parent); - } -@@ -3683,6 +3811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::flags(index); - } -@@ -3711,6 +3840,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::headerData(section, orientation, role); - } -@@ -3739,6 +3869,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::index(row, column, parent); - } -@@ -3767,6 +3898,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::insertColumns(column, count, parent); - } -@@ -3795,6 +3927,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::insertRows(row, count, parent); - } -@@ -3823,6 +3956,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::itemData(index); - } -@@ -3851,6 +3985,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::match(start, role, value, hits, flags); - } -@@ -3879,6 +4014,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::mimeData(indexes); - } -@@ -3907,6 +4043,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::mimeTypes(); - } -@@ -3935,6 +4072,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::removeColumns(column, count, parent); - } -@@ -3963,6 +4101,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::removeRows(row, count, parent); - } -@@ -3980,6 +4119,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStringListModel::revert(); - } -@@ -4008,6 +4148,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::rowCount(parent); - } -@@ -4036,6 +4177,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::setData(index, value, role); - } -@@ -4064,6 +4206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::setHeaderData(section, orientation, value, role); - } -@@ -4092,6 +4235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::setItemData(index, roles); - } -@@ -4109,6 +4253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStringListModel::sort(column, order); - } -@@ -4137,6 +4282,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::span(index); - } -@@ -4165,6 +4311,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::submit(); - } -@@ -4193,6 +4340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringListModel::supportedDropActions(); - } -@@ -4210,6 +4358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStringListModel::timerEvent(arg__1); - } -@@ -4287,6 +4436,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::childEvent(arg__1); - } -@@ -4304,6 +4454,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::customEvent(arg__1); - } -@@ -4321,6 +4472,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -4338,6 +4490,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -4355,6 +4508,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::drawItemPixmap(painter, rect, alignment, pixmap); - } -@@ -4372,6 +4526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::drawItemText(painter, rect, flags, pal, enabled, text, textRole); - } -@@ -4389,6 +4544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -4417,6 +4573,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyle::event(arg__1); - } -@@ -4445,6 +4602,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyle::eventFilter(arg__1, arg__2); - } -@@ -4473,6 +4631,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -4501,6 +4660,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyle::SubControl(); - } -@@ -4529,6 +4689,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyle::itemPixmapRect(r, flags, pixmap); - } -@@ -4557,6 +4718,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyle::itemTextRect(fm, r, flags, enabled, text); - } -@@ -4585,6 +4747,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -4602,6 +4765,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::polish(arg__1); - } -@@ -4619,6 +4783,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::polish(arg__1); - } -@@ -4636,6 +4801,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::polish(arg__1); - } -@@ -4664,6 +4830,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSize(); - } -@@ -4692,6 +4859,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyle::standardPalette(); - } -@@ -4720,6 +4888,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap(); - } -@@ -4748,6 +4917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -4776,6 +4946,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRect(); - } -@@ -4804,6 +4975,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QRect(); - } -@@ -4821,6 +4993,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::timerEvent(arg__1); - } -@@ -4838,6 +5011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::unpolish(arg__1); - } -@@ -4855,6 +5029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyle::unpolish(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp -index 5e356f9..c0a8248 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui8.cpp -@@ -322,6 +322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStylePlugin::childEvent(arg__1); - } -@@ -350,6 +351,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -367,6 +369,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStylePlugin::customEvent(arg__1); - } -@@ -395,6 +398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStylePlugin::event(arg__1); - } -@@ -423,6 +427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStylePlugin::eventFilter(arg__1, arg__2); - } -@@ -451,6 +456,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStringList(); - } -@@ -468,6 +474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStylePlugin::timerEvent(arg__1); - } -@@ -491,6 +498,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::childEvent(arg__1); - } -@@ -519,6 +527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyledItemDelegate::createEditor(parent, option, index); - } -@@ -536,6 +545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::customEvent(arg__1); - } -@@ -564,6 +574,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyledItemDelegate::displayText(value, locale); - } -@@ -592,6 +603,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyledItemDelegate::editorEvent(event, model, option, index); - } -@@ -620,6 +632,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyledItemDelegate::event(arg__1); - } -@@ -648,6 +661,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyledItemDelegate::eventFilter(object, event); - } -@@ -665,6 +679,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::initStyleOption(option, index); - } -@@ -682,6 +697,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::paint(painter, option, index); - } -@@ -699,6 +715,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::setEditorData(editor, index); - } -@@ -716,6 +733,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::setModelData(editor, model, index); - } -@@ -744,6 +762,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QStyledItemDelegate::sizeHint(option, index); - } -@@ -761,6 +780,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::timerEvent(arg__1); - } -@@ -778,6 +798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QStyledItemDelegate::updateEditorGeometry(editor, option, index); - } -@@ -861,6 +882,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSwipeGesture::childEvent(arg__1); - } -@@ -878,6 +900,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSwipeGesture::customEvent(arg__1); - } -@@ -906,6 +929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSwipeGesture::event(arg__1); - } -@@ -934,6 +958,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSwipeGesture::eventFilter(arg__1, arg__2); - } -@@ -951,6 +976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSwipeGesture::timerEvent(arg__1); - } -@@ -994,6 +1020,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSyntaxHighlighter::childEvent(arg__1); - } -@@ -1011,6 +1038,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSyntaxHighlighter::customEvent(arg__1); - } -@@ -1039,6 +1067,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSyntaxHighlighter::event(arg__1); - } -@@ -1067,6 +1096,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSyntaxHighlighter::eventFilter(arg__1, arg__2); - } -@@ -1084,6 +1114,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -1101,6 +1132,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSyntaxHighlighter::timerEvent(arg__1); - } -@@ -1142,6 +1174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSystemTrayIcon::childEvent(arg__1); - } -@@ -1159,6 +1192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSystemTrayIcon::customEvent(arg__1); - } -@@ -1187,6 +1221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSystemTrayIcon::event(event); - } -@@ -1215,6 +1250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSystemTrayIcon::eventFilter(arg__1, arg__2); - } -@@ -1232,6 +1268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSystemTrayIcon::timerEvent(arg__1); - } -@@ -1319,6 +1356,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::actionEvent(arg__1); - } -@@ -1336,6 +1374,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::changeEvent(arg__1); - } -@@ -1353,6 +1392,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::childEvent(arg__1); - } -@@ -1370,6 +1410,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::closeEvent(arg__1); - } -@@ -1387,6 +1428,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::contextMenuEvent(arg__1); - } -@@ -1404,6 +1446,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::customEvent(arg__1); - } -@@ -1432,6 +1475,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::devType(); - } -@@ -1449,6 +1493,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::dragEnterEvent(arg__1); - } -@@ -1466,6 +1511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::dragLeaveEvent(arg__1); - } -@@ -1483,6 +1529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::dragMoveEvent(arg__1); - } -@@ -1500,6 +1547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::dropEvent(arg__1); - } -@@ -1517,6 +1565,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::enterEvent(arg__1); - } -@@ -1545,6 +1594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::event(arg__1); - } -@@ -1573,6 +1623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::eventFilter(arg__1, arg__2); - } -@@ -1590,6 +1641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::focusInEvent(arg__1); - } -@@ -1618,6 +1670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::focusNextPrevChild(next); - } -@@ -1635,6 +1688,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::focusOutEvent(arg__1); - } -@@ -1663,6 +1717,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::heightForWidth(arg__1); - } -@@ -1680,6 +1735,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::hideEvent(arg__1); - } -@@ -1697,6 +1753,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::inputMethodEvent(arg__1); - } -@@ -1725,6 +1782,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::inputMethodQuery(arg__1); - } -@@ -1742,6 +1800,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::keyPressEvent(arg__1); - } -@@ -1759,6 +1818,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::keyReleaseEvent(arg__1); - } -@@ -1776,6 +1836,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::languageChange(); - } -@@ -1793,6 +1854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::leaveEvent(arg__1); - } -@@ -1821,6 +1883,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::metric(arg__1); - } -@@ -1838,6 +1901,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::mouseDoubleClickEvent(arg__1); - } -@@ -1855,6 +1919,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::mouseMoveEvent(arg__1); - } -@@ -1872,6 +1937,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::mousePressEvent(arg__1); - } -@@ -1889,6 +1955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::mouseReleaseEvent(arg__1); - } -@@ -1906,6 +1973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::moveEvent(arg__1); - } -@@ -1934,6 +2002,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::paintEngine(); - } -@@ -1951,6 +2020,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::paintEvent(arg__1); - } -@@ -1968,6 +2038,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::resizeEvent(arg__1); - } -@@ -1985,6 +2056,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::showEvent(arg__1); - } -@@ -2002,6 +2074,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::tabInserted(index); - } -@@ -2019,6 +2092,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::tabLayoutChange(); - } -@@ -2036,6 +2110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::tabRemoved(index); - } -@@ -2064,6 +2139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabBar::tabSizeHint(index); - } -@@ -2081,6 +2157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::tabletEvent(arg__1); - } -@@ -2098,6 +2175,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::timerEvent(arg__1); - } -@@ -2115,6 +2193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabBar::wheelEvent(event); - } -@@ -2453,6 +2532,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::actionEvent(arg__1); - } -@@ -2470,6 +2550,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::changeEvent(arg__1); - } -@@ -2487,6 +2568,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::childEvent(arg__1); - } -@@ -2504,6 +2586,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::closeEvent(arg__1); - } -@@ -2521,6 +2604,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::contextMenuEvent(arg__1); - } -@@ -2538,6 +2622,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::customEvent(arg__1); - } -@@ -2566,6 +2651,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::devType(); - } -@@ -2583,6 +2669,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::dragEnterEvent(arg__1); - } -@@ -2600,6 +2687,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::dragLeaveEvent(arg__1); - } -@@ -2617,6 +2705,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::dragMoveEvent(arg__1); - } -@@ -2634,6 +2723,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::dropEvent(arg__1); - } -@@ -2651,6 +2741,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::enterEvent(arg__1); - } -@@ -2679,6 +2770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::event(arg__1); - } -@@ -2707,6 +2799,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::eventFilter(arg__1, arg__2); - } -@@ -2724,6 +2817,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::focusInEvent(arg__1); - } -@@ -2752,6 +2846,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::focusNextPrevChild(next); - } -@@ -2769,6 +2864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::focusOutEvent(arg__1); - } -@@ -2797,6 +2893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::heightForWidth(arg__1); - } -@@ -2814,6 +2911,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::hideEvent(arg__1); - } -@@ -2831,6 +2929,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::inputMethodEvent(arg__1); - } -@@ -2859,6 +2958,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::inputMethodQuery(arg__1); - } -@@ -2876,6 +2976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::keyPressEvent(arg__1); - } -@@ -2893,6 +2994,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::keyReleaseEvent(arg__1); - } -@@ -2910,6 +3012,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::languageChange(); - } -@@ -2927,6 +3030,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::leaveEvent(arg__1); - } -@@ -2955,6 +3059,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::metric(arg__1); - } -@@ -2972,6 +3077,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::mouseDoubleClickEvent(arg__1); - } -@@ -2989,6 +3095,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::mouseMoveEvent(arg__1); - } -@@ -3006,6 +3113,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::mousePressEvent(arg__1); - } -@@ -3023,6 +3131,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::mouseReleaseEvent(arg__1); - } -@@ -3040,6 +3149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::moveEvent(arg__1); - } -@@ -3068,6 +3178,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTabWidget::paintEngine(); - } -@@ -3085,6 +3196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::paintEvent(arg__1); - } -@@ -3102,6 +3214,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::resizeEvent(arg__1); - } -@@ -3119,6 +3232,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::showEvent(arg__1); - } -@@ -3136,6 +3250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::tabInserted(index); - } -@@ -3153,6 +3268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::tabRemoved(index); - } -@@ -3170,6 +3286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::tabletEvent(arg__1); - } -@@ -3187,6 +3304,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::timerEvent(arg__1); - } -@@ -3204,6 +3322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTabWidget::wheelEvent(arg__1); - } -@@ -3472,6 +3591,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::actionEvent(arg__1); - } -@@ -3489,6 +3609,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::changeEvent(arg__1); - } -@@ -3506,6 +3627,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::childEvent(arg__1); - } -@@ -3523,6 +3645,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::closeEditor(editor, hint); - } -@@ -3540,6 +3663,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::closeEvent(arg__1); - } -@@ -3557,6 +3681,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::commitData(editor); - } -@@ -3574,6 +3699,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::contextMenuEvent(arg__1); - } -@@ -3591,6 +3717,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::currentChanged(current, previous); - } -@@ -3608,6 +3735,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::customEvent(arg__1); - } -@@ -3625,6 +3753,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::dataChanged(topLeft, bottomRight); - } -@@ -3653,6 +3782,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::devType(); - } -@@ -3670,6 +3800,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::doItemsLayout(); - } -@@ -3687,6 +3818,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::dragEnterEvent(event); - } -@@ -3704,6 +3836,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::dragLeaveEvent(event); - } -@@ -3721,6 +3854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::dragMoveEvent(event); - } -@@ -3738,6 +3872,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::dropEvent(event); - } -@@ -3766,6 +3901,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::edit(index, trigger, event); - } -@@ -3783,6 +3919,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::editorDestroyed(editor); - } -@@ -3800,6 +3937,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::enterEvent(arg__1); - } -@@ -3828,6 +3966,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::event(event); - } -@@ -3856,6 +3995,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::eventFilter(arg__1, arg__2); - } -@@ -3873,6 +4013,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::focusInEvent(event); - } -@@ -3901,6 +4042,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::focusNextPrevChild(next); - } -@@ -3918,6 +4060,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::focusOutEvent(event); - } -@@ -3946,6 +4089,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::heightForWidth(arg__1); - } -@@ -3963,6 +4107,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::hideEvent(arg__1); - } -@@ -3991,6 +4136,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::horizontalOffset(); - } -@@ -4008,6 +4154,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::horizontalScrollbarAction(action); - } -@@ -4025,6 +4172,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::horizontalScrollbarValueChanged(value); - } -@@ -4053,6 +4201,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::indexAt(p); - } -@@ -4070,6 +4219,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::inputMethodEvent(event); - } -@@ -4098,6 +4248,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::inputMethodQuery(query); - } -@@ -4126,6 +4277,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::isIndexHidden(index); - } -@@ -4143,6 +4295,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::keyPressEvent(event); - } -@@ -4160,6 +4313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::keyReleaseEvent(arg__1); - } -@@ -4177,6 +4331,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::keyboardSearch(search); - } -@@ -4194,6 +4349,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::languageChange(); - } -@@ -4211,6 +4367,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::leaveEvent(arg__1); - } -@@ -4239,6 +4396,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::metric(arg__1); - } -@@ -4256,6 +4414,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::mouseDoubleClickEvent(event); - } -@@ -4273,6 +4432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::mouseMoveEvent(event); - } -@@ -4290,6 +4450,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::mousePressEvent(event); - } -@@ -4307,6 +4468,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::mouseReleaseEvent(event); - } -@@ -4324,6 +4486,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::moveEvent(arg__1); - } -@@ -4352,6 +4515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::paintEngine(); - } -@@ -4369,6 +4533,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::paintEvent(e); - } -@@ -4386,6 +4551,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::reset(); - } -@@ -4403,6 +4569,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::resizeEvent(event); - } -@@ -4420,6 +4587,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::rowsAboutToBeRemoved(parent, start, end); - } -@@ -4437,6 +4605,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::rowsInserted(parent, start, end); - } -@@ -4454,6 +4623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::scrollContentsBy(dx, dy); - } -@@ -4471,6 +4641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::scrollTo(index, hint); - } -@@ -4488,6 +4659,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::selectAll(); - } -@@ -4516,6 +4688,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::selectedIndexes(); - } -@@ -4533,6 +4706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::selectionChanged(selected, deselected); - } -@@ -4561,6 +4735,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::selectionCommand(index, event); - } -@@ -4578,6 +4753,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::setModel(model); - } -@@ -4595,6 +4771,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::setRootIndex(index); - } -@@ -4612,6 +4789,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::setSelection(rect, command); - } -@@ -4629,6 +4807,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::setSelectionModel(selectionModel); - } -@@ -4646,6 +4825,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::showEvent(arg__1); - } -@@ -4674,6 +4854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::sizeHintForColumn(column); - } -@@ -4702,6 +4883,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::sizeHintForRow(row); - } -@@ -4719,6 +4901,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::startDrag(supportedActions); - } -@@ -4736,6 +4919,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::tabletEvent(arg__1); - } -@@ -4753,6 +4937,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::timerEvent(event); - } -@@ -4770,6 +4955,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::updateEditorData(); - } -@@ -4787,6 +4973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::updateEditorGeometries(); - } -@@ -4804,6 +4991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::updateGeometries(); - } -@@ -4832,6 +5020,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::verticalOffset(); - } -@@ -4849,6 +5038,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::verticalScrollbarAction(action); - } -@@ -4866,6 +5056,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::verticalScrollbarValueChanged(value); - } -@@ -4894,6 +5085,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::viewOptions(); - } -@@ -4922,6 +5114,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::viewportEvent(event); - } -@@ -4950,6 +5143,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::visualRect(index); - } -@@ -4978,6 +5172,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableView::visualRegionForSelection(selection); - } -@@ -4995,6 +5190,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableView::wheelEvent(arg__1); - } -@@ -5283,6 +5479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::actionEvent(arg__1); - } -@@ -5300,6 +5497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::changeEvent(arg__1); - } -@@ -5317,6 +5515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::childEvent(arg__1); - } -@@ -5334,6 +5533,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::closeEditor(editor, hint); - } -@@ -5351,6 +5551,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::closeEvent(arg__1); - } -@@ -5368,6 +5569,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::commitData(editor); - } -@@ -5385,6 +5587,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::contextMenuEvent(arg__1); - } -@@ -5402,6 +5605,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::currentChanged(current, previous); - } -@@ -5419,6 +5623,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::customEvent(arg__1); - } -@@ -5436,6 +5641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::dataChanged(topLeft, bottomRight); - } -@@ -5464,6 +5670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::devType(); - } -@@ -5481,6 +5688,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::doItemsLayout(); - } -@@ -5498,6 +5706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::dragEnterEvent(event); - } -@@ -5515,6 +5724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::dragLeaveEvent(event); - } -@@ -5532,6 +5742,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::dragMoveEvent(event); - } -@@ -5549,6 +5760,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::dropEvent(event); - } -@@ -5577,6 +5789,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::dropMimeData(row, column, data, action); - } -@@ -5605,6 +5818,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::edit(index, trigger, event); - } -@@ -5622,6 +5836,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::editorDestroyed(editor); - } -@@ -5639,6 +5854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::enterEvent(arg__1); - } -@@ -5667,6 +5883,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::event(e); - } -@@ -5695,6 +5912,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::eventFilter(arg__1, arg__2); - } -@@ -5712,6 +5930,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::focusInEvent(event); - } -@@ -5740,6 +5959,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::focusNextPrevChild(next); - } -@@ -5757,6 +5977,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::focusOutEvent(event); - } -@@ -5785,6 +6006,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::heightForWidth(arg__1); - } -@@ -5802,6 +6024,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::hideEvent(arg__1); - } -@@ -5830,6 +6053,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::horizontalOffset(); - } -@@ -5847,6 +6071,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::horizontalScrollbarAction(action); - } -@@ -5864,6 +6089,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::horizontalScrollbarValueChanged(value); - } -@@ -5892,6 +6118,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::indexAt(p); - } -@@ -5909,6 +6136,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::inputMethodEvent(event); - } -@@ -5937,6 +6165,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::inputMethodQuery(query); - } -@@ -5965,6 +6194,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::isIndexHidden(index); - } -@@ -5982,6 +6212,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::keyPressEvent(event); - } -@@ -5999,6 +6230,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::keyReleaseEvent(arg__1); - } -@@ -6016,6 +6248,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::keyboardSearch(search); - } -@@ -6033,6 +6266,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::languageChange(); - } -@@ -6050,6 +6284,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::leaveEvent(arg__1); - } -@@ -6078,6 +6313,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::metric(arg__1); - } -@@ -6106,6 +6342,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::mimeData(items); - } -@@ -6134,6 +6371,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::mimeTypes(); - } -@@ -6151,6 +6389,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::mouseDoubleClickEvent(event); - } -@@ -6168,6 +6407,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::mouseMoveEvent(event); - } -@@ -6185,6 +6425,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::mousePressEvent(event); - } -@@ -6202,6 +6443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::mouseReleaseEvent(event); - } -@@ -6219,6 +6461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::moveEvent(arg__1); - } -@@ -6247,6 +6490,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::paintEngine(); - } -@@ -6264,6 +6508,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::paintEvent(e); - } -@@ -6281,6 +6526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::reset(); - } -@@ -6298,6 +6544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::resizeEvent(event); - } -@@ -6315,6 +6562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::rowsAboutToBeRemoved(parent, start, end); - } -@@ -6332,6 +6580,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::rowsInserted(parent, start, end); - } -@@ -6349,6 +6598,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::scrollContentsBy(dx, dy); - } -@@ -6366,6 +6616,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::scrollTo(index, hint); - } -@@ -6383,6 +6634,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::selectAll(); - } -@@ -6411,6 +6663,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::selectedIndexes(); - } -@@ -6428,6 +6681,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::selectionChanged(selected, deselected); - } -@@ -6456,6 +6710,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::selectionCommand(index, event); - } -@@ -6473,6 +6728,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::setRootIndex(index); - } -@@ -6490,6 +6746,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::setSelection(rect, command); - } -@@ -6507,6 +6764,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::setSelectionModel(selectionModel); - } -@@ -6524,6 +6782,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::showEvent(arg__1); - } -@@ -6552,6 +6811,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::sizeHintForColumn(column); - } -@@ -6580,6 +6840,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::sizeHintForRow(row); - } -@@ -6597,6 +6858,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::startDrag(supportedActions); - } -@@ -6625,6 +6887,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::supportedDropActions(); - } -@@ -6642,6 +6905,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::tabletEvent(arg__1); - } -@@ -6659,6 +6923,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::timerEvent(event); - } -@@ -6676,6 +6941,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::updateEditorData(); - } -@@ -6693,6 +6959,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::updateEditorGeometries(); - } -@@ -6710,6 +6977,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::updateGeometries(); - } -@@ -6738,6 +7006,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::verticalOffset(); - } -@@ -6755,6 +7024,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::verticalScrollbarAction(action); - } -@@ -6772,6 +7042,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::verticalScrollbarValueChanged(value); - } -@@ -6800,6 +7071,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::viewOptions(); - } -@@ -6828,6 +7100,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::viewportEvent(event); - } -@@ -6856,6 +7129,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::visualRect(index); - } -@@ -6884,6 +7158,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidget::visualRegionForSelection(selection); - } -@@ -6901,6 +7176,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidget::wheelEvent(arg__1); - } -@@ -7174,6 +7450,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidgetItem::clone(); - } -@@ -7202,6 +7479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidgetItem::data(role); - } -@@ -7230,6 +7508,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTableWidgetItem::operator<(other); - } -@@ -7247,6 +7526,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidgetItem::read(in); - } -@@ -7264,6 +7544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidgetItem::setData(role, value); - } -@@ -7281,6 +7562,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTableWidgetItem::write(out); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp -index 825c580..dde5837 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui9.cpp -@@ -86,6 +86,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBlockGroup::blockFormatChanged(block); - } -@@ -103,6 +104,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBlockGroup::blockInserted(block); - } -@@ -120,6 +122,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBlockGroup::blockRemoved(block); - } -@@ -137,6 +140,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBlockGroup::childEvent(arg__1); - } -@@ -154,6 +158,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBlockGroup::customEvent(arg__1); - } -@@ -182,6 +187,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBlockGroup::event(arg__1); - } -@@ -210,6 +216,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBlockGroup::eventFilter(arg__1, arg__2); - } -@@ -227,6 +234,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBlockGroup::timerEvent(arg__1); - } -@@ -267,6 +275,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::actionEvent(arg__1); - } -@@ -284,6 +293,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::backward(); - } -@@ -312,6 +322,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::canInsertFromMimeData(source); - } -@@ -329,6 +340,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::changeEvent(e); - } -@@ -346,6 +358,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::childEvent(arg__1); - } -@@ -363,6 +376,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::closeEvent(arg__1); - } -@@ -380,6 +394,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::contextMenuEvent(e); - } -@@ -408,6 +423,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::createMimeDataFromSelection(); - } -@@ -425,6 +441,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::customEvent(arg__1); - } -@@ -453,6 +470,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::devType(); - } -@@ -470,6 +488,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::dragEnterEvent(e); - } -@@ -487,6 +506,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::dragLeaveEvent(e); - } -@@ -504,6 +524,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::dragMoveEvent(e); - } -@@ -521,6 +542,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::dropEvent(e); - } -@@ -538,6 +560,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::enterEvent(arg__1); - } -@@ -566,6 +589,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::event(e); - } -@@ -594,6 +618,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::eventFilter(arg__1, arg__2); - } -@@ -611,6 +636,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::focusInEvent(e); - } -@@ -639,6 +665,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::focusNextPrevChild(next); - } -@@ -656,6 +683,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::focusOutEvent(ev); - } -@@ -673,6 +701,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::forward(); - } -@@ -701,6 +730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::heightForWidth(arg__1); - } -@@ -718,6 +748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::hideEvent(arg__1); - } -@@ -735,6 +766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::home(); - } -@@ -752,6 +784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::inputMethodEvent(arg__1); - } -@@ -780,6 +813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::inputMethodQuery(property); - } -@@ -797,6 +831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::insertFromMimeData(source); - } -@@ -814,6 +849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::keyPressEvent(ev); - } -@@ -831,6 +867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::keyReleaseEvent(e); - } -@@ -848,6 +885,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::languageChange(); - } -@@ -865,6 +903,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::leaveEvent(arg__1); - } -@@ -893,6 +932,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::loadResource(type, name); - } -@@ -921,6 +961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::metric(arg__1); - } -@@ -938,6 +979,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::mouseDoubleClickEvent(e); - } -@@ -955,6 +997,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::mouseMoveEvent(ev); - } -@@ -972,6 +1015,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::mousePressEvent(ev); - } -@@ -989,6 +1033,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::mouseReleaseEvent(ev); - } -@@ -1006,6 +1051,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::moveEvent(arg__1); - } -@@ -1034,6 +1080,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::paintEngine(); - } -@@ -1051,6 +1098,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::paintEvent(e); - } -@@ -1068,6 +1116,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::reload(); - } -@@ -1085,6 +1134,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::resizeEvent(e); - } -@@ -1102,6 +1152,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::scrollContentsBy(dx, dy); - } -@@ -1119,6 +1170,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::setSource(name); - } -@@ -1136,6 +1188,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::showEvent(arg__1); - } -@@ -1153,6 +1206,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::tabletEvent(arg__1); - } -@@ -1170,6 +1224,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::timerEvent(e); - } -@@ -1198,6 +1253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextBrowser::viewportEvent(arg__1); - } -@@ -1215,6 +1271,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextBrowser::wheelEvent(e); - } -@@ -1625,6 +1682,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QList(); - } -@@ -1642,6 +1700,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextCodecPlugin::childEvent(arg__1); - } -@@ -1670,6 +1729,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -1698,6 +1758,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -1715,6 +1776,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextCodecPlugin::customEvent(arg__1); - } -@@ -1743,6 +1805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextCodecPlugin::event(arg__1); - } -@@ -1771,6 +1834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextCodecPlugin::eventFilter(arg__1, arg__2); - } -@@ -1799,6 +1863,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QList(); - } -@@ -1827,6 +1892,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QList(); - } -@@ -1844,6 +1910,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextCodecPlugin::timerEvent(arg__1); - } -@@ -2224,6 +2291,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextDocument::childEvent(arg__1); - } -@@ -2241,6 +2309,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextDocument::clear(); - } -@@ -2269,6 +2338,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextDocument::createObject(f); - } -@@ -2286,6 +2356,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextDocument::customEvent(arg__1); - } -@@ -2314,6 +2385,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextDocument::event(arg__1); - } -@@ -2342,6 +2414,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextDocument::eventFilter(arg__1, arg__2); - } -@@ -2370,6 +2443,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextDocument::loadResource(type, name); - } -@@ -2387,6 +2461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextDocument::timerEvent(arg__1); - } -@@ -2886,6 +2961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::actionEvent(arg__1); - } -@@ -2914,6 +2990,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::canInsertFromMimeData(source); - } -@@ -2931,6 +3008,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::changeEvent(e); - } -@@ -2948,6 +3026,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::childEvent(arg__1); - } -@@ -2965,6 +3044,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::closeEvent(arg__1); - } -@@ -2982,6 +3062,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::contextMenuEvent(e); - } -@@ -3010,6 +3091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::createMimeDataFromSelection(); - } -@@ -3027,6 +3109,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::customEvent(arg__1); - } -@@ -3055,6 +3138,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::devType(); - } -@@ -3072,6 +3156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::dragEnterEvent(e); - } -@@ -3089,6 +3174,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::dragLeaveEvent(e); - } -@@ -3106,6 +3192,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::dragMoveEvent(e); - } -@@ -3123,6 +3210,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::dropEvent(e); - } -@@ -3140,6 +3228,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::enterEvent(arg__1); - } -@@ -3168,6 +3257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::event(e); - } -@@ -3196,6 +3286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::eventFilter(arg__1, arg__2); - } -@@ -3213,6 +3304,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::focusInEvent(e); - } -@@ -3241,6 +3333,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::focusNextPrevChild(next); - } -@@ -3258,6 +3351,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::focusOutEvent(e); - } -@@ -3286,6 +3380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::heightForWidth(arg__1); - } -@@ -3303,6 +3398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::hideEvent(arg__1); - } -@@ -3320,6 +3416,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::inputMethodEvent(arg__1); - } -@@ -3348,6 +3445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::inputMethodQuery(property); - } -@@ -3365,6 +3463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::insertFromMimeData(source); - } -@@ -3382,6 +3481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::keyPressEvent(e); - } -@@ -3399,6 +3499,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::keyReleaseEvent(e); - } -@@ -3416,6 +3517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::languageChange(); - } -@@ -3433,6 +3535,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::leaveEvent(arg__1); - } -@@ -3461,6 +3564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::loadResource(type, name); - } -@@ -3489,6 +3593,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::metric(arg__1); - } -@@ -3506,6 +3611,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::mouseDoubleClickEvent(e); - } -@@ -3523,6 +3629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::mouseMoveEvent(e); - } -@@ -3540,6 +3647,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::mousePressEvent(e); - } -@@ -3557,6 +3665,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::mouseReleaseEvent(e); - } -@@ -3574,6 +3683,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::moveEvent(arg__1); - } -@@ -3602,6 +3712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::paintEngine(); - } -@@ -3619,6 +3730,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::paintEvent(e); - } -@@ -3636,6 +3748,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::resizeEvent(e); - } -@@ -3653,6 +3766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::scrollContentsBy(dx, dy); - } -@@ -3670,6 +3784,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::showEvent(arg__1); - } -@@ -3687,6 +3802,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::tabletEvent(arg__1); - } -@@ -3704,6 +3820,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::timerEvent(e); - } -@@ -3732,6 +3849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextEdit::viewportEvent(arg__1); - } -@@ -3749,6 +3867,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextEdit::wheelEvent(e); - } -@@ -4261,6 +4380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextFrame::childEvent(arg__1); - } -@@ -4278,6 +4398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextFrame::customEvent(arg__1); - } -@@ -4306,6 +4427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextFrame::event(arg__1); - } -@@ -4334,6 +4456,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextFrame::eventFilter(arg__1, arg__2); - } -@@ -4351,6 +4474,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextFrame::timerEvent(arg__1); - } -@@ -4849,6 +4973,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextList::blockFormatChanged(block); - } -@@ -4866,6 +4991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextList::blockInserted(block); - } -@@ -4883,6 +5009,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextList::blockRemoved(block); - } -@@ -4900,6 +5027,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextList::childEvent(arg__1); - } -@@ -4917,6 +5045,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextList::customEvent(arg__1); - } -@@ -4945,6 +5074,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextList::event(arg__1); - } -@@ -4973,6 +5103,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextList::eventFilter(arg__1, arg__2); - } -@@ -4990,6 +5121,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextList::timerEvent(arg__1); - } -@@ -5089,6 +5221,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextObject::childEvent(arg__1); - } -@@ -5106,6 +5239,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextObject::customEvent(arg__1); - } -@@ -5134,6 +5268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextObject::event(arg__1); - } -@@ -5162,6 +5297,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextObject::eventFilter(arg__1, arg__2); - } -@@ -5179,6 +5315,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextObject::timerEvent(arg__1); - } -@@ -5218,6 +5355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextTable::childEvent(arg__1); - } -@@ -5235,6 +5373,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextTable::customEvent(arg__1); - } -@@ -5263,6 +5402,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextTable::event(arg__1); - } -@@ -5291,6 +5431,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTextTable::eventFilter(arg__1, arg__2); - } -@@ -5308,6 +5449,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTextTable::timerEvent(arg__1); - } -@@ -5658,6 +5800,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::actionEvent(arg__1); - } -@@ -5675,6 +5818,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::changeEvent(event); - } -@@ -5692,6 +5836,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::childEvent(arg__1); - } -@@ -5709,6 +5854,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::clear(); - } -@@ -5726,6 +5872,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::closeEvent(event); - } -@@ -5743,6 +5890,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::contextMenuEvent(event); - } -@@ -5760,6 +5908,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::customEvent(arg__1); - } -@@ -5788,6 +5937,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::dateTimeFromText(text); - } -@@ -5816,6 +5966,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::devType(); - } -@@ -5833,6 +5984,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::dragEnterEvent(arg__1); - } -@@ -5850,6 +6002,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::dragLeaveEvent(arg__1); - } -@@ -5867,6 +6020,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::dragMoveEvent(arg__1); - } -@@ -5884,6 +6038,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::dropEvent(arg__1); - } -@@ -5901,6 +6056,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::enterEvent(arg__1); - } -@@ -5929,6 +6085,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::event(event); - } -@@ -5957,6 +6114,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::eventFilter(arg__1, arg__2); - } -@@ -5974,6 +6132,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::fixup(input); - } -@@ -5991,6 +6150,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::focusInEvent(event); - } -@@ -6019,6 +6179,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::focusNextPrevChild(next); - } -@@ -6036,6 +6197,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::focusOutEvent(event); - } -@@ -6064,6 +6226,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::heightForWidth(arg__1); - } -@@ -6081,6 +6244,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::hideEvent(event); - } -@@ -6098,6 +6262,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::inputMethodEvent(arg__1); - } -@@ -6126,6 +6291,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::inputMethodQuery(arg__1); - } -@@ -6143,6 +6309,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::keyPressEvent(event); - } -@@ -6160,6 +6327,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::keyReleaseEvent(event); - } -@@ -6177,6 +6345,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::languageChange(); - } -@@ -6194,6 +6363,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::leaveEvent(arg__1); - } -@@ -6222,6 +6392,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::metric(arg__1); - } -@@ -6239,6 +6410,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::mouseDoubleClickEvent(arg__1); - } -@@ -6256,6 +6428,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::mouseMoveEvent(event); - } -@@ -6273,6 +6446,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::mousePressEvent(event); - } -@@ -6290,6 +6464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::mouseReleaseEvent(event); - } -@@ -6307,6 +6482,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::moveEvent(arg__1); - } -@@ -6335,6 +6511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::paintEngine(); - } -@@ -6352,6 +6529,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::paintEvent(event); - } -@@ -6369,6 +6547,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::resizeEvent(event); - } -@@ -6386,6 +6565,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::showEvent(event); - } -@@ -6403,6 +6583,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::stepBy(steps); - } -@@ -6431,6 +6612,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::stepEnabled(); - } -@@ -6448,6 +6630,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::tabletEvent(arg__1); - } -@@ -6476,6 +6659,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::textFromDateTime(dt); - } -@@ -6493,6 +6677,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::timerEvent(event); - } -@@ -6521,6 +6706,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTimeEdit::validate(input, pos); - } -@@ -6538,6 +6724,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTimeEdit::wheelEvent(event); - } -@@ -6565,6 +6752,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::actionEvent(event); - } -@@ -6582,6 +6770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::changeEvent(event); - } -@@ -6599,6 +6788,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::childEvent(event); - } -@@ -6616,6 +6806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::closeEvent(arg__1); - } -@@ -6633,6 +6824,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::contextMenuEvent(arg__1); - } -@@ -6650,6 +6842,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::customEvent(arg__1); - } -@@ -6678,6 +6871,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::devType(); - } -@@ -6695,6 +6889,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::dragEnterEvent(arg__1); - } -@@ -6712,6 +6907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::dragLeaveEvent(arg__1); - } -@@ -6729,6 +6925,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::dragMoveEvent(arg__1); - } -@@ -6746,6 +6943,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::dropEvent(arg__1); - } -@@ -6763,6 +6961,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::enterEvent(arg__1); - } -@@ -6791,6 +6990,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::event(event); - } -@@ -6819,6 +7019,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::eventFilter(arg__1, arg__2); - } -@@ -6836,6 +7037,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::focusInEvent(arg__1); - } -@@ -6864,6 +7066,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::focusNextPrevChild(next); - } -@@ -6881,6 +7084,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::focusOutEvent(arg__1); - } -@@ -6909,6 +7113,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::heightForWidth(arg__1); - } -@@ -6926,6 +7131,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::hideEvent(arg__1); - } -@@ -6943,6 +7149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::inputMethodEvent(arg__1); - } -@@ -6971,6 +7178,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::inputMethodQuery(arg__1); - } -@@ -6988,6 +7196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::keyPressEvent(arg__1); - } -@@ -7005,6 +7214,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::keyReleaseEvent(arg__1); - } -@@ -7022,6 +7232,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::languageChange(); - } -@@ -7039,6 +7250,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::leaveEvent(arg__1); - } -@@ -7067,6 +7279,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::metric(arg__1); - } -@@ -7095,6 +7308,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::minimumSizeHint(); - } -@@ -7112,6 +7326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::mouseDoubleClickEvent(arg__1); - } -@@ -7129,6 +7344,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::mouseMoveEvent(arg__1); - } -@@ -7146,6 +7362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::mousePressEvent(arg__1); - } -@@ -7163,6 +7380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::mouseReleaseEvent(arg__1); - } -@@ -7180,6 +7398,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::moveEvent(arg__1); - } -@@ -7208,6 +7427,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::paintEngine(); - } -@@ -7225,6 +7445,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::paintEvent(event); - } -@@ -7242,6 +7463,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::resizeEvent(event); - } -@@ -7259,6 +7481,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::showEvent(arg__1); - } -@@ -7287,6 +7510,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBar::sizeHint(); - } -@@ -7304,6 +7528,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::tabletEvent(arg__1); - } -@@ -7321,6 +7546,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::timerEvent(arg__1); - } -@@ -7338,6 +7564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBar::wheelEvent(arg__1); - } -@@ -7541,6 +7768,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::actionEvent(arg__1); - } -@@ -7558,6 +7786,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::changeEvent(arg__1); - } -@@ -7575,6 +7804,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::childEvent(arg__1); - } -@@ -7592,6 +7822,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::closeEvent(arg__1); - } -@@ -7609,6 +7840,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::contextMenuEvent(arg__1); - } -@@ -7626,6 +7858,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::customEvent(arg__1); - } -@@ -7654,6 +7887,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::devType(); - } -@@ -7671,6 +7905,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::dragEnterEvent(arg__1); - } -@@ -7688,6 +7923,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::dragLeaveEvent(arg__1); - } -@@ -7705,6 +7941,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::dragMoveEvent(arg__1); - } -@@ -7722,6 +7959,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::dropEvent(arg__1); - } -@@ -7739,6 +7977,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::enterEvent(arg__1); - } -@@ -7767,6 +8006,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::event(e); - } -@@ -7795,6 +8035,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::eventFilter(arg__1, arg__2); - } -@@ -7812,6 +8053,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::focusInEvent(arg__1); - } -@@ -7840,6 +8082,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::focusNextPrevChild(next); - } -@@ -7857,6 +8100,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::focusOutEvent(arg__1); - } -@@ -7885,6 +8129,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::heightForWidth(arg__1); - } -@@ -7902,6 +8147,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::hideEvent(arg__1); - } -@@ -7919,6 +8165,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::inputMethodEvent(arg__1); - } -@@ -7947,6 +8194,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::inputMethodQuery(arg__1); - } -@@ -7964,6 +8212,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::itemInserted(index); - } -@@ -7981,6 +8230,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::itemRemoved(index); - } -@@ -7998,6 +8248,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::keyPressEvent(arg__1); - } -@@ -8015,6 +8266,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::keyReleaseEvent(arg__1); - } -@@ -8032,6 +8284,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::languageChange(); - } -@@ -8049,6 +8302,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::leaveEvent(arg__1); - } -@@ -8077,6 +8331,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::metric(arg__1); - } -@@ -8105,6 +8360,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::minimumSizeHint(); - } -@@ -8122,6 +8378,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::mouseDoubleClickEvent(arg__1); - } -@@ -8139,6 +8396,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::mouseMoveEvent(arg__1); - } -@@ -8156,6 +8414,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::mousePressEvent(arg__1); - } -@@ -8173,6 +8432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::mouseReleaseEvent(arg__1); - } -@@ -8190,6 +8450,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::moveEvent(arg__1); - } -@@ -8218,6 +8479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolBox::paintEngine(); - } -@@ -8235,6 +8497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::paintEvent(arg__1); - } -@@ -8252,6 +8515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::resizeEvent(arg__1); - } -@@ -8269,6 +8533,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::showEvent(e); - } -@@ -8286,6 +8551,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::tabletEvent(arg__1); - } -@@ -8303,6 +8569,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::timerEvent(arg__1); - } -@@ -8320,6 +8587,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolBox::wheelEvent(arg__1); - } -@@ -8458,6 +8726,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::actionEvent(arg__1); - } -@@ -8475,6 +8744,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::changeEvent(arg__1); - } -@@ -8492,6 +8762,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::checkStateSet(); - } -@@ -8509,6 +8780,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::childEvent(arg__1); - } -@@ -8526,6 +8798,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::closeEvent(arg__1); - } -@@ -8543,6 +8816,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::contextMenuEvent(arg__1); - } -@@ -8560,6 +8834,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::customEvent(arg__1); - } -@@ -8588,6 +8863,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::devType(); - } -@@ -8605,6 +8881,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::dragEnterEvent(arg__1); - } -@@ -8622,6 +8899,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::dragLeaveEvent(arg__1); - } -@@ -8639,6 +8917,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::dragMoveEvent(arg__1); - } -@@ -8656,6 +8935,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::dropEvent(arg__1); - } -@@ -8673,6 +8953,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::enterEvent(arg__1); - } -@@ -8701,6 +8982,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::event(e); - } -@@ -8729,6 +9011,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::eventFilter(arg__1, arg__2); - } -@@ -8746,6 +9029,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::focusInEvent(e); - } -@@ -8774,6 +9058,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::focusNextPrevChild(next); - } -@@ -8791,6 +9076,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::focusOutEvent(e); - } -@@ -8819,6 +9105,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::heightForWidth(arg__1); - } -@@ -8836,6 +9123,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::hideEvent(arg__1); - } -@@ -8864,6 +9152,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::hitButton(pos); - } -@@ -8881,6 +9170,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::inputMethodEvent(arg__1); - } -@@ -8909,6 +9199,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::inputMethodQuery(arg__1); - } -@@ -8926,6 +9217,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::keyPressEvent(e); - } -@@ -8943,6 +9235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::keyReleaseEvent(e); - } -@@ -8960,6 +9253,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::languageChange(); - } -@@ -8977,6 +9271,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::leaveEvent(arg__1); - } -@@ -9005,6 +9300,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::metric(arg__1); - } -@@ -9022,6 +9318,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::mouseDoubleClickEvent(arg__1); - } -@@ -9039,6 +9336,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::mouseMoveEvent(e); - } -@@ -9056,6 +9354,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::mousePressEvent(arg__1); - } -@@ -9073,6 +9372,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::mouseReleaseEvent(arg__1); - } -@@ -9090,6 +9390,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::moveEvent(arg__1); - } -@@ -9107,6 +9408,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::nextCheckState(); - } -@@ -9135,6 +9437,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QToolButton::paintEngine(); - } -@@ -9152,6 +9455,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::paintEvent(arg__1); - } -@@ -9169,6 +9473,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::resizeEvent(arg__1); - } -@@ -9186,6 +9491,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::showEvent(arg__1); - } -@@ -9203,6 +9509,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::tabletEvent(arg__1); - } -@@ -9220,6 +9527,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::timerEvent(arg__1); - } -@@ -9237,6 +9545,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QToolButton::wheelEvent(arg__1); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -index e7c669c..f95514c 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui_builtin/com_trolltech_qt_gui_builtin0.cpp -@@ -68,6 +68,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBitmap::devType(); - } -@@ -96,6 +97,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBitmap::metric(arg__1); - } -@@ -124,6 +126,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QBitmap::paintEngine(); - } -@@ -1348,6 +1351,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImage::devType(); - } -@@ -1376,6 +1380,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImage::metric(metric); - } -@@ -1404,6 +1409,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QImage::paintEngine(); - } -@@ -2517,6 +2523,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap::devType(); - } -@@ -2545,6 +2552,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap::metric(arg__1); - } -@@ -2573,6 +2581,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QPixmap::paintEngine(); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -index c9c9553..c4a0f23 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network0.cpp -@@ -61,6 +61,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return qint64(); - } -@@ -78,6 +79,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractNetworkCache::childEvent(arg__1); - } -@@ -95,6 +97,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -112,6 +115,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractNetworkCache::customEvent(arg__1); - } -@@ -140,6 +144,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -168,6 +173,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractNetworkCache::event(arg__1); - } -@@ -196,6 +202,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractNetworkCache::eventFilter(arg__1, arg__2); - } -@@ -213,6 +220,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -241,6 +249,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkCacheMetaData(); - } -@@ -269,6 +278,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return 0; - } -@@ -297,6 +307,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return bool(); - } -@@ -314,6 +325,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractNetworkCache::timerEvent(arg__1); - } -@@ -331,6 +343,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -361,6 +374,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::atEnd(); - } -@@ -389,6 +403,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::bytesAvailable(); - } -@@ -417,6 +432,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::bytesToWrite(); - } -@@ -445,6 +461,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::canReadLine(); - } -@@ -462,6 +479,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSocket::childEvent(arg__1); - } -@@ -479,6 +497,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSocket::close(); - } -@@ -496,6 +515,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSocket::customEvent(arg__1); - } -@@ -524,6 +544,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::event(arg__1); - } -@@ -552,6 +573,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::eventFilter(arg__1, arg__2); - } -@@ -580,6 +602,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::isSequential(); - } -@@ -608,6 +631,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::open(mode); - } -@@ -636,6 +660,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::pos(); - } -@@ -664,6 +689,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::readData(data, maxlen); - } -@@ -692,6 +718,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::readLineData(data, maxlen); - } -@@ -720,6 +747,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::reset(); - } -@@ -748,6 +776,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::seek(pos); - } -@@ -776,6 +805,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::size(); - } -@@ -793,6 +823,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QAbstractSocket::timerEvent(arg__1); - } -@@ -821,6 +852,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::waitForBytesWritten(msecs); - } -@@ -849,6 +881,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::waitForReadyRead(msecs); - } -@@ -877,6 +910,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QAbstractSocket::writeData(data, len); - } -@@ -1115,6 +1149,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFtp::childEvent(arg__1); - } -@@ -1132,6 +1167,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFtp::customEvent(arg__1); - } -@@ -1160,6 +1196,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFtp::event(arg__1); - } -@@ -1188,6 +1225,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QFtp::eventFilter(arg__1, arg__2); - } -@@ -1205,6 +1243,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QFtp::timerEvent(arg__1); - } -@@ -1570,6 +1609,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHttp::childEvent(arg__1); - } -@@ -1587,6 +1627,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHttp::customEvent(arg__1); - } -@@ -1615,6 +1656,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttp::event(arg__1); - } -@@ -1643,6 +1685,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttp::eventFilter(arg__1, arg__2); - } -@@ -1660,6 +1703,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QHttp::timerEvent(arg__1); - } -@@ -1832,6 +1876,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -1860,6 +1905,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return int(); - } -@@ -1888,6 +1934,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpHeader::parseLine(line, number); - } -@@ -1916,6 +1963,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpHeader::toString(); - } -@@ -2050,6 +2098,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpRequestHeader::majorVersion(); - } -@@ -2078,6 +2127,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpRequestHeader::minorVersion(); - } -@@ -2106,6 +2156,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpRequestHeader::parseLine(line, number); - } -@@ -2134,6 +2185,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpRequestHeader::toString(); - } -@@ -2216,6 +2268,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpResponseHeader::majorVersion(); - } -@@ -2244,6 +2297,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpResponseHeader::minorVersion(); - } -@@ -2272,6 +2326,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpResponseHeader::parseLine(line, number); - } -@@ -2300,6 +2355,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QHttpResponseHeader::toString(); - } -@@ -2377,6 +2433,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalServer::childEvent(arg__1); - } -@@ -2394,6 +2451,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalServer::customEvent(arg__1); - } -@@ -2422,6 +2480,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalServer::event(arg__1); - } -@@ -2450,6 +2509,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalServer::eventFilter(arg__1, arg__2); - } -@@ -2478,6 +2538,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalServer::hasPendingConnections(); - } -@@ -2495,6 +2556,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalServer::incomingConnection(socketDescriptor); - } -@@ -2523,6 +2585,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalServer::nextPendingConnection(); - } -@@ -2540,6 +2603,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalServer::timerEvent(arg__1); - } -@@ -2644,6 +2708,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::atEnd(); - } -@@ -2672,6 +2737,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::bytesAvailable(); - } -@@ -2700,6 +2766,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::bytesToWrite(); - } -@@ -2728,6 +2795,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::canReadLine(); - } -@@ -2745,6 +2813,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalSocket::childEvent(arg__1); - } -@@ -2762,6 +2831,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalSocket::close(); - } -@@ -2779,6 +2849,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalSocket::customEvent(arg__1); - } -@@ -2807,6 +2878,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::event(arg__1); - } -@@ -2835,6 +2907,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::eventFilter(arg__1, arg__2); - } -@@ -2863,6 +2936,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::isSequential(); - } -@@ -2891,6 +2965,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::open(mode); - } -@@ -2919,6 +2994,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::pos(); - } -@@ -2947,6 +3023,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::readData(arg__1, arg__2); - } -@@ -2975,6 +3052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::readLineData(data, maxlen); - } -@@ -3003,6 +3081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::reset(); - } -@@ -3031,6 +3110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::seek(pos); - } -@@ -3059,6 +3139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::size(); - } -@@ -3076,6 +3157,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QLocalSocket::timerEvent(arg__1); - } -@@ -3104,6 +3186,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::waitForBytesWritten(msecs); - } -@@ -3132,6 +3215,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::waitForReadyRead(msecs); - } -@@ -3160,6 +3244,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QLocalSocket::writeData(arg__1, arg__2); - } -@@ -3303,6 +3388,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkAccessManager::childEvent(arg__1); - } -@@ -3331,6 +3417,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkAccessManager::createRequest(op, request, outgoingData); - } -@@ -3348,6 +3435,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkAccessManager::customEvent(arg__1); - } -@@ -3376,6 +3464,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkAccessManager::event(arg__1); - } -@@ -3404,6 +3493,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkAccessManager::eventFilter(arg__1, arg__2); - } -@@ -3421,6 +3511,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkAccessManager::timerEvent(arg__1); - } -@@ -3793,6 +3884,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkCookieJar::childEvent(arg__1); - } -@@ -3821,6 +3913,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkCookieJar::cookiesForUrl(url); - } -@@ -3838,6 +3931,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkCookieJar::customEvent(arg__1); - } -@@ -3866,6 +3960,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkCookieJar::event(arg__1); - } -@@ -3894,6 +3989,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkCookieJar::eventFilter(arg__1, arg__2); - } -@@ -3922,6 +4018,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkCookieJar::setCookiesFromUrl(cookieList, url); - } -@@ -3939,6 +4036,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkCookieJar::timerEvent(arg__1); - } -@@ -3983,6 +4081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::cacheSize(); - } -@@ -4000,6 +4099,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkDiskCache::childEvent(arg__1); - } -@@ -4017,6 +4117,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkDiskCache::clear(); - } -@@ -4034,6 +4135,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkDiskCache::customEvent(arg__1); - } -@@ -4062,6 +4164,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::data(url); - } -@@ -4090,6 +4193,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::event(arg__1); - } -@@ -4118,6 +4222,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::eventFilter(arg__1, arg__2); - } -@@ -4146,6 +4251,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::expire(); - } -@@ -4163,6 +4269,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkDiskCache::insert(device); - } -@@ -4191,6 +4298,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::metaData(url); - } -@@ -4219,6 +4327,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::prepare(metaData); - } -@@ -4247,6 +4356,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkDiskCache::remove(url); - } -@@ -4264,6 +4374,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkDiskCache::timerEvent(arg__1); - } -@@ -4281,6 +4392,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkDiskCache::updateMetaData(metaData); - } -@@ -4558,6 +4670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QList(); - } -@@ -4693,6 +4806,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - - } -@@ -4721,6 +4835,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::atEnd(); - } -@@ -4749,6 +4864,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::bytesAvailable(); - } -@@ -4777,6 +4893,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::bytesToWrite(); - } -@@ -4805,6 +4922,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::canReadLine(); - } -@@ -4822,6 +4940,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkReply::childEvent(arg__1); - } -@@ -4839,6 +4958,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkReply::close(); - } -@@ -4856,6 +4976,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkReply::customEvent(arg__1); - } -@@ -4884,6 +5005,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::event(arg__1); - } -@@ -4912,6 +5034,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::eventFilter(arg__1, arg__2); - } -@@ -4929,6 +5052,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkReply::ignoreSslErrors(); - } -@@ -4957,6 +5081,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::isSequential(); - } -@@ -4985,6 +5110,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::open(mode); - } -@@ -5013,6 +5139,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::pos(); - } -@@ -5041,6 +5168,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return qint64(); - } -@@ -5069,6 +5197,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::readLineData(data, maxlen); - } -@@ -5097,6 +5226,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::reset(); - } -@@ -5125,6 +5255,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::seek(pos); - } -@@ -5142,6 +5273,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkReply::setReadBufferSize(size); - } -@@ -5170,6 +5302,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::size(); - } -@@ -5187,6 +5320,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QNetworkReply::timerEvent(arg__1); - } -@@ -5215,6 +5349,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::waitForBytesWritten(msecs); - } -@@ -5243,6 +5378,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::waitForReadyRead(msecs); - } -@@ -5271,6 +5407,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QNetworkReply::writeData(data, len); - } -@@ -5457,6 +5594,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpServer::childEvent(arg__1); - } -@@ -5474,6 +5612,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpServer::customEvent(arg__1); - } -@@ -5502,6 +5641,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpServer::event(arg__1); - } -@@ -5530,6 +5670,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpServer::eventFilter(arg__1, arg__2); - } -@@ -5558,6 +5699,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpServer::hasPendingConnections(); - } -@@ -5575,6 +5717,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpServer::incomingConnection(handle); - } -@@ -5603,6 +5746,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpServer::nextPendingConnection(); - } -@@ -5620,6 +5764,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpServer::timerEvent(arg__1); - } -@@ -5739,6 +5884,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::atEnd(); - } -@@ -5767,6 +5913,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::bytesAvailable(); - } -@@ -5795,6 +5942,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::bytesToWrite(); - } -@@ -5823,6 +5971,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::canReadLine(); - } -@@ -5840,6 +5989,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpSocket::childEvent(arg__1); - } -@@ -5857,6 +6007,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpSocket::close(); - } -@@ -5874,6 +6025,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpSocket::customEvent(arg__1); - } -@@ -5902,6 +6054,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::event(arg__1); - } -@@ -5930,6 +6083,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::eventFilter(arg__1, arg__2); - } -@@ -5958,6 +6112,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::isSequential(); - } -@@ -5986,6 +6141,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::open(mode); - } -@@ -6014,6 +6170,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::pos(); - } -@@ -6042,6 +6199,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::readData(data, maxlen); - } -@@ -6070,6 +6228,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::readLineData(data, maxlen); - } -@@ -6098,6 +6257,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::reset(); - } -@@ -6126,6 +6286,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::seek(pos); - } -@@ -6154,6 +6315,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::size(); - } -@@ -6171,6 +6333,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QTcpSocket::timerEvent(arg__1); - } -@@ -6199,6 +6362,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::waitForBytesWritten(msecs); - } -@@ -6227,6 +6391,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::waitForReadyRead(msecs); - } -@@ -6255,6 +6420,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QTcpSocket::writeData(data, len); - } -@@ -6289,6 +6455,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::atEnd(); - } -@@ -6317,6 +6484,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::bytesAvailable(); - } -@@ -6345,6 +6513,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::bytesToWrite(); - } -@@ -6373,6 +6542,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::canReadLine(); - } -@@ -6390,6 +6560,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUdpSocket::childEvent(arg__1); - } -@@ -6407,6 +6578,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUdpSocket::close(); - } -@@ -6424,6 +6596,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUdpSocket::customEvent(arg__1); - } -@@ -6452,6 +6625,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::event(arg__1); - } -@@ -6480,6 +6654,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::eventFilter(arg__1, arg__2); - } -@@ -6508,6 +6683,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::isSequential(); - } -@@ -6536,6 +6712,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::open(mode); - } -@@ -6564,6 +6741,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::pos(); - } -@@ -6592,6 +6770,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::readData(data, maxlen); - } -@@ -6620,6 +6799,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::readLineData(data, maxlen); - } -@@ -6648,6 +6828,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::reset(); - } -@@ -6676,6 +6857,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::seek(pos); - } -@@ -6704,6 +6886,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::size(); - } -@@ -6721,6 +6904,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUdpSocket::timerEvent(arg__1); - } -@@ -6749,6 +6933,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::waitForBytesWritten(msecs); - } -@@ -6777,6 +6962,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::waitForReadyRead(msecs); - } -@@ -6805,6 +6991,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QUdpSocket::writeData(data, len); - } -@@ -6868,6 +7055,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setDir(b); - } -@@ -6885,6 +7073,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setFile(b); - } -@@ -6902,6 +7091,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setGroup(s); - } -@@ -6919,6 +7109,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setLastModified(dt); - } -@@ -6936,6 +7127,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setName(name); - } -@@ -6953,6 +7145,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setOwner(s); - } -@@ -6970,6 +7163,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setPermissions(p); - } -@@ -6987,6 +7181,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setReadable(b); - } -@@ -7004,6 +7199,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setSize(size); - } -@@ -7021,6 +7217,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setSymLink(b); - } -@@ -7038,6 +7235,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QUrlInfo::setWritable(b); - } -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -index 0afa431..dbf0a7b 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network1.cpp -@@ -122,6 +122,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::canReadLine(); - } -@@ -150,6 +151,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::bytesToWrite(); - } -@@ -178,6 +180,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::readData(data, maxlen); - } -@@ -206,6 +209,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::writeData(data, len); - } -@@ -234,6 +238,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::bytesAvailable(); - } -@@ -262,6 +267,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::waitForBytesWritten(msecs); - } -@@ -290,6 +296,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::atEnd(); - } -@@ -307,6 +314,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSslSocket::close(); - } -@@ -335,6 +343,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::waitForReadyRead(msecs); - } -@@ -363,6 +372,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::readLineData(data, maxlen); - } -@@ -391,6 +401,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::isSequential(); - } -@@ -419,6 +430,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::size(); - } -@@ -447,6 +459,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::pos(); - } -@@ -475,6 +488,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::reset(); - } -@@ -503,6 +517,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::open(mode); - } -@@ -531,6 +546,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::seek(pos); - } -@@ -548,6 +564,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSslSocket::childEvent(arg__1); - } -@@ -565,6 +582,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSslSocket::timerEvent(arg__1); - } -@@ -582,6 +600,7 @@ if (_wrapper) { - Py_DECREF(obj); - return; - } -+ Py_XDECREF(obj); - } - QSslSocket::customEvent(arg__1); - } -@@ -610,6 +629,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::event(arg__1); - } -@@ -638,6 +658,7 @@ if (_wrapper) { - Py_DECREF(obj); - return returnValue; - } -+ Py_XDECREF(obj); - } - return QSslSocket::eventFilter(arg__1, arg__2); - } -diff --git a/3rdparty/pythonqt/generator/shellimplgenerator.cpp b/3rdparty/pythonqt/generator/shellimplgenerator.cpp -index d14656b..c8a0a06 100644 ---- a/3rdparty/pythonqt/generator/shellimplgenerator.cpp -+++ b/3rdparty/pythonqt/generator/shellimplgenerator.cpp -@@ -181,6 +181,7 @@ void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_cla - s << " return;" << endl; - } - s << " }" << endl; -+ s << " Py_XDECREF(obj);" << endl; - s << "}" << endl; - - s << " "; diff --git a/3rdparty/pythonqt/patches/signal-connected-signal.patch b/3rdparty/pythonqt/patches/signal-connected-signal.patch deleted file mode 100644 index 690d2a557..000000000 --- a/3rdparty/pythonqt/patches/signal-connected-signal.patch +++ /dev/null @@ -1,83 +0,0 @@ -commit c06934993daab01ab831fa2478f1d11fb298afd5 -Author: davidsansome -Date: Mon May 30 14:53:59 2011 +0000 - - Remember any signals that are connected to Python objects and disconnect them when the script is unloaded so the references to those objects can be dropped - - git-svn-id: https://clementine-player.googlecode.com/svn/trunk@3344 94c5599e-fc6c-11de-b061-8119ef04aefe - -diff --git a/3rdparty/pythonqt/src/PythonQt.h b/3rdparty/pythonqt/src/PythonQt.h -index 050dadc..9a7c29f 100644 ---- a/3rdparty/pythonqt/src/PythonQt.h -+++ b/3rdparty/pythonqt/src/PythonQt.h -@@ -453,6 +453,10 @@ signals: - //! emitted when help() is called on a PythonQt object and \c ExternalHelp is enabled - void pythonHelpRequest(const QByteArray& cppClassName); - -+ //! emitted when a signal is connected to a Python object -+ void signalConnectedToPython(PythonQtSignalReceiver* receiver, int signal_id, -+ PyObject* callable); -+ - private: - void initPythonQtModule(bool redirectStdOut, const QByteArray& pythonQtModuleName); - -@@ -472,6 +476,7 @@ private: - - PythonQtPrivate* _p; - -+ friend class PythonQtSignalReceiver; - }; - - //! internal PythonQt details -diff --git a/3rdparty/pythonqt/src/PythonQtSignalReceiver.cpp b/3rdparty/pythonqt/src/PythonQtSignalReceiver.cpp -index d4074b1..7bb9dfc 100644 ---- a/3rdparty/pythonqt/src/PythonQtSignalReceiver.cpp -+++ b/3rdparty/pythonqt/src/PythonQtSignalReceiver.cpp -@@ -170,22 +170,26 @@ bool PythonQtSignalReceiver::addSignalHandler(const char* signal, PyObject* call - - _slotCount++; - flag = true; -+ -+ PythonQt::self()->signalConnectedToPython(this, sigId, callable); - } - return flag; - } - - bool PythonQtSignalReceiver::removeSignalHandler(const char* signal, PyObject* callable) - { -+ return removeSignalHandler(getSignalIndex(signal), callable); -+} -+ -+bool PythonQtSignalReceiver::removeSignalHandler(int sigId, PyObject* callable) -+{ - bool found = false; -- int sigId = getSignalIndex(signal); -- if (sigId>=0) { -- QMutableListIterator i(_targets); -- while (i.hasNext()) { -- if (i.next().isSame(sigId, callable)) { -- i.remove(); -- found = true; -- break; -- } -+ QMutableListIterator i(_targets); -+ while (i.hasNext()) { -+ if (i.next().isSame(sigId, callable)) { -+ i.remove(); -+ found = true; -+ break; - } - } - return found; -diff --git a/3rdparty/pythonqt/src/PythonQtSignalReceiver.h b/3rdparty/pythonqt/src/PythonQtSignalReceiver.h -index dfbcbc6..028b853 100644 ---- a/3rdparty/pythonqt/src/PythonQtSignalReceiver.h -+++ b/3rdparty/pythonqt/src/PythonQtSignalReceiver.h -@@ -119,6 +119,7 @@ public: - - //! remove a signal handler - bool removeSignalHandler(const char* signal, PyObject* callable); -+ bool removeSignalHandler(int sigId, PyObject* callable); - - //! remove all signal handlers - void removeSignalHandlers(); diff --git a/3rdparty/pythonqt/patches/win32-export-pythonqtsignalreceiver.patch b/3rdparty/pythonqt/patches/win32-export-pythonqtsignalreceiver.patch deleted file mode 100644 index ff17d9365..000000000 --- a/3rdparty/pythonqt/patches/win32-export-pythonqtsignalreceiver.patch +++ /dev/null @@ -1,22 +0,0 @@ -Index: 3rdparty/pythonqt/src/PythonQtSignalReceiver.h -=================================================================== ---- 3rdparty/pythonqt/src/PythonQtSignalReceiver.h (revision 3364) -+++ 3rdparty/pythonqt/src/PythonQtSignalReceiver.h (working copy) -@@ -99,7 +99,7 @@ - //! base class for signal receivers - /*! - */ --class PythonQtSignalReceiverBase : public QObject { -+class PYTHONQT_EXPORT PythonQtSignalReceiverBase : public QObject { - Q_OBJECT - public: - PythonQtSignalReceiverBase(QObject* obj):QObject(obj) {}; -@@ -108,7 +108,7 @@ - //! receives all signals for one QObject - /*! we derive from our base but do not declare the QObject macro because we want to reimplement qt_metacall only. - */ --class PythonQtSignalReceiver : public PythonQtSignalReceiverBase { -+class PYTHONQT_EXPORT PythonQtSignalReceiver : public PythonQtSignalReceiverBase { - - public: - PythonQtSignalReceiver(QObject* obj); diff --git a/3rdparty/pythonqt/patches/win32-init-headers.patch b/3rdparty/pythonqt/patches/win32-init-headers.patch deleted file mode 100644 index 67b2bba92..000000000 --- a/3rdparty/pythonqt/patches/win32-init-headers.patch +++ /dev/null @@ -1,69 +0,0 @@ -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp -index b571fe1..d6b344b 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.cpp -@@ -1,4 +1,5 @@ - #include -+#include "com_trolltech_qt_core_init.h" - #include "com_trolltech_qt_core0.h" - #include "com_trolltech_qt_core1.h" - #include "com_trolltech_qt_core2.h" -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.h -index e69de29..c6dd49c 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.h -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_core/com_trolltech_qt_core_init.h -@@ -0,0 +1,8 @@ -+#ifndef COM_TROLLTECH_QT_CORE_INIT_H -+#define COM_TROLLTECH_QT_CORE_INIT_H -+ -+#include "PythonQtSystem.h" -+ -+PYTHONQT_EXPORT void PythonQt_init_QtCore(PyObject* module); -+ -+#endif // COM_TROLLTECH_QT_CORE_INIT_H -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp -index 850b22a..f250154 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.cpp -@@ -1,4 +1,5 @@ - #include -+#include "com_trolltech_qt_gui_init.h" - #include "com_trolltech_qt_gui0.h" - #include "com_trolltech_qt_gui1.h" - #include "com_trolltech_qt_gui2.h" -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.h -index e69de29..3610431 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.h -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_gui/com_trolltech_qt_gui_init.h -@@ -0,0 +1,8 @@ -+#ifndef COM_TROLLTECH_QT_GUI_INIT_H -+#define COM_TROLLTECH_QT_GUI_INIT_H -+ -+#include "PythonQtSystem.h" -+ -+PYTHONQT_EXPORT void PythonQt_init_QtGui(PyObject* module); -+ -+#endif // COM_TROLLTECH_QT_GUI_INIT_H -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp -index fb39509..292b192 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.cpp -@@ -1,4 +1,5 @@ - #include -+#include "com_trolltech_qt_network_init.h" - #include "com_trolltech_qt_network0.h" - - -diff --git a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.h b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.h -index e69de29..a57091f 100644 ---- a/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.h -+++ b/3rdparty/pythonqt/generated_cpp/com_trolltech_qt_network/com_trolltech_qt_network_init.h -@@ -0,0 +1,8 @@ -+#ifndef COM_TROLLTECH_QT_NETWORK_INIT_H -+#define COM_TROLLTECH_QT_NETWORK_INIT_H -+ -+#include "PythonQtSystem.h" -+ -+PYTHONQT_EXPORT void PythonQt_init_QtNetwork(PyObject* module); -+ -+#endif // COM_TROLLTECH_QT_NETWORK_INIT_H diff --git a/3rdparty/pythonqt/patches/win32-static.patch b/3rdparty/pythonqt/patches/win32-static.patch deleted file mode 100644 index f1622fc3a..000000000 --- a/3rdparty/pythonqt/patches/win32-static.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/3rdparty/pythonqt/CMakeLists.txt b/3rdparty/pythonqt/CMakeLists.txt -index 97849da..9c048f4 100644 ---- a/3rdparty/pythonqt/CMakeLists.txt -+++ b/3rdparty/pythonqt/CMakeLists.txt -@@ -69,6 +69,8 @@ set(HEADERS - - qt4_wrap_cpp(MOC ${HEADERS}) - -+add_definitions(-DPYTHONQT_STATIC_LIBRARY) -+ - add_library(pythonqt STATIC - ${SOURCES} - ${MOC} -diff --git a/3rdparty/pythonqt/src/PythonQtSystem.h b/3rdparty/pythonqt/src/PythonQtSystem.h -index d7131bb..95364c3 100644 ---- a/3rdparty/pythonqt/src/PythonQtSystem.h -+++ b/3rdparty/pythonqt/src/PythonQtSystem.h -@@ -42,7 +42,7 @@ - */ - //---------------------------------------------------------------------------------- - --#ifdef WIN32 -+#if defined(WIN32) && !defined(PYTHONQT_STATIC_LIBRARY) - #ifdef PYTHONQT_EXPORTS - #define PYTHONQT_EXPORT __declspec(dllexport) - #else diff --git a/3rdparty/pythonqt/patches/win32-unicode-types.patch b/3rdparty/pythonqt/patches/win32-unicode-types.patch deleted file mode 100644 index 2e5fdfb56..000000000 --- a/3rdparty/pythonqt/patches/win32-unicode-types.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/3rdparty/pythonqt/src/PythonQtConversion.cpp b/3rdparty/pythonqt/src/PythonQtConversion.cpp -index 1e3523f..0fbe291 100644 ---- a/3rdparty/pythonqt/src/PythonQtConversion.cpp -+++ b/3rdparty/pythonqt/src/PythonQtConversion.cpp -@@ -674,7 +674,8 @@ QString PythonQtConv::PyObjGetString(PyObject* val, bool strict, bool& ok) { - r = QString(PyString_AS_STRING(val)); - } else if (PyUnicode_Check(val)) { - #ifdef WIN32 -- r = QString::fromUtf16(PyUnicode_AS_UNICODE(val)); -+ r = QString::fromUtf16( -+ reinterpret_cast(PyUnicode_AS_UNICODE(val))); - #else - PyObject *ptmp = PyUnicode_AsUTF8String(val); - if(ptmp) { -@@ -1040,7 +1041,8 @@ PyObject* PythonQtConv::QStringToPyObject(const QString& str) - } else { - #ifdef WIN32 - // return PyString_FromString(str.toLatin1().data()); -- return PyUnicode_FromUnicode(str.utf16(), str.length()); -+ return PyUnicode_FromUnicode( -+ reinterpret_cast(str.utf16()), str.length()); - #else - return PyUnicode_DecodeUTF16((const char*)str.utf16(), str.length()*2, NULL, NULL); - #endif diff --git a/3rdparty/pythonqt/patches/win32-write-compiled-without-FILE.patch b/3rdparty/pythonqt/patches/win32-write-compiled-without-FILE.patch deleted file mode 100644 index bcdead311..000000000 --- a/3rdparty/pythonqt/patches/win32-write-compiled-without-FILE.patch +++ /dev/null @@ -1,119 +0,0 @@ -diff --git a/3rdparty/pythonqt/src/PythonQtImporter.cpp b/3rdparty/pythonqt/src/PythonQtImporter.cpp -index 2046ff9..81e26fd 100644 ---- a/3rdparty/pythonqt/src/PythonQtImporter.cpp -+++ b/3rdparty/pythonqt/src/PythonQtImporter.cpp -@@ -445,90 +445,41 @@ PythonQtImport::getLong(unsigned char *buf) - return x; - } - --FILE * --open_exclusive(const QString& filename) --{ --#if defined(O_EXCL)&&defined(O_CREAT)&&defined(O_WRONLY)&&defined(O_TRUNC) -- /* Use O_EXCL to avoid a race condition when another process tries to -- write the same file. When that happens, our open() call fails, -- which is just fine (since it's only a cache). -- XXX If the file exists and is writable but the directory is not -- writable, the file will never be written. Oh well. -- */ -- QFile::remove(filename); -- -- int fd; -- int flags = O_EXCL|O_CREAT|O_WRONLY|O_TRUNC; --#ifdef O_BINARY -- flags |= O_BINARY; /* necessary for Windows */ --#endif --#ifdef WIN32 -- fd = _wopen(filename.ucs2(), flags, 0666); --#else -- fd = open(filename.local8Bit(), flags, 0666); --#endif -- if (fd < 0) -- return NULL; -- return fdopen(fd, "wb"); --#else -- /* Best we can do -- on Windows this can't happen anyway */ -- return fopen(filename.toLocal8Bit().constData(), "wb"); --#endif --} -- -- - void PythonQtImport::writeCompiledModule(PyCodeObject *co, const QString& filename, long mtime) - { -- FILE *fp; - // we do not want to write Qt resources to disk, do we? - if (filename.startsWith(":")) { - return; - } -- fp = open_exclusive(filename); -- if (fp == NULL) { -- if (Py_VerboseFlag) -- PySys_WriteStderr( -- "# can't create %s\n", filename.toLatin1().constData()); -- return; -- } --#if PY_VERSION_HEX < 0x02040000 -- PyMarshal_WriteLongToFile(PyImport_GetMagicNumber(), fp); --#else -- PyMarshal_WriteLongToFile(PyImport_GetMagicNumber(), fp, Py_MARSHAL_VERSION); --#endif -- /* First write a 0 for mtime */ --#if PY_VERSION_HEX < 0x02040000 -- PyMarshal_WriteLongToFile(0L, fp); --#else -- PyMarshal_WriteLongToFile(0L, fp, Py_MARSHAL_VERSION); --#endif -+ - #if PY_VERSION_HEX < 0x02040000 -- PyMarshal_WriteObjectToFile((PyObject *)co, fp); -+ PyObject* data = PyMarshal_WriteObjectToString((PyObject*) co); - #else -- PyMarshal_WriteObjectToFile((PyObject *)co, fp, Py_MARSHAL_VERSION); -+ PyObject* data = PyMarshal_WriteObjectToString((PyObject*) co, Py_MARSHAL_VERSION); - #endif -- if (ferror(fp)) { -- if (Py_VerboseFlag) -- PySys_WriteStderr("# can't write %s\n", filename.toLatin1().constData()); -- /* Don't keep partial file */ -- fclose(fp); -- QFile::remove(filename); -+ -+ if (!data) { - return; - } -- /* Now write the true mtime */ -- fseek(fp, 4L, 0); --#if PY_VERSION_HEX < 0x02040000 -- PyMarshal_WriteLongToFile(mtime, fp); --#else -- PyMarshal_WriteLongToFile(mtime, fp, Py_MARSHAL_VERSION); --#endif -- fflush(fp); -- fclose(fp); -- if (Py_VerboseFlag) -- PySys_WriteStderr("# wrote %s\n", filename.toLatin1().constData()); --//#ifdef macintosh --// PyMac_setfiletype(cpathname, 'Pyth', 'PYC '); --//#endif -+ -+ QFile file(filename); -+ if (!file.open(QIODevice::WriteOnly)) { -+ Py_DECREF(data); -+ return; -+ } -+ -+ char* buffer = NULL; -+ Py_ssize_t length = 0; -+ PyString_AsStringAndSize(data, &buffer, &length); -+ -+ const quint32 magic_number = PyImport_GetMagicNumber(); -+ const quint32 mtime_32 = mtime; -+ -+ file.write(reinterpret_cast(&magic_number), sizeof(magic_number)); -+ file.write(reinterpret_cast(&mtime_32), sizeof(mtime_32)); -+ file.write(buffer, length); -+ -+ Py_DECREF(data); - } - - /* Given the contents of a .py[co] file in a buffer, unmarshal the data diff --git a/3rdparty/pythonqt/src/PythonQt.cpp b/3rdparty/pythonqt/src/PythonQt.cpp deleted file mode 100644 index d4c4b3cc6..000000000 --- a/3rdparty/pythonqt/src/PythonQt.cpp +++ /dev/null @@ -1,1227 +0,0 @@ -/* -* -* Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this library; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, -* 28359 Bremen, Germany or: -* -* http://www.mevis.de -* -*/ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQt.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQt.h" -#include "PythonQtImporter.h" -#include "PythonQtClassInfo.h" -#include "PythonQtMethodInfo.h" -#include "PythonQtSignalReceiver.h" -#include "PythonQtConversion.h" -#include "PythonQtStdOut.h" -#include "PythonQtCppWrapperFactory.h" -#include "PythonQtVariants.h" -#include "PythonQtStdDecorators.h" -#include "PythonQtQFileImporter.h" -#include -#include - -PythonQt* PythonQt::_self = NULL; -int PythonQt::_uniqueModuleCount = 0; - -void PythonQt_init_QtGuiBuiltin(PyObject*); -void PythonQt_init_QtCoreBuiltin(PyObject*); - -void PythonQt::init(int flags, const QByteArray& pythonQtModuleName) -{ - if (!_self) { - _self = new PythonQt(flags, pythonQtModuleName); - - PythonQtMethodInfo::addParameterTypeAlias("QObjectList", "QList"); - qRegisterMetaType >("QList"); - - PythonQtRegisterToolClassesTemplateConverter(int); - PythonQtRegisterToolClassesTemplateConverter(float); - PythonQtRegisterToolClassesTemplateConverter(double); - PythonQtRegisterToolClassesTemplateConverter(qint32); - PythonQtRegisterToolClassesTemplateConverter(quint32); - PythonQtRegisterToolClassesTemplateConverter(qint64); - PythonQtRegisterToolClassesTemplateConverter(quint64); - // TODO: which other POD types should be available for QList etc. - - PythonQt::self()->addDecorators(new PythonQtStdDecorators()); - - PythonQt_init_QtCoreBuiltin(NULL); - PythonQt_init_QtGuiBuiltin(NULL); - - PythonQtRegisterToolClassesTemplateConverter(QByteArray); - PythonQtRegisterToolClassesTemplateConverter(QDate); - PythonQtRegisterToolClassesTemplateConverter(QTime); - PythonQtRegisterToolClassesTemplateConverter(QDateTime); - PythonQtRegisterToolClassesTemplateConverter(QUrl); - PythonQtRegisterToolClassesTemplateConverter(QLocale); - PythonQtRegisterToolClassesTemplateConverter(QRect); - PythonQtRegisterToolClassesTemplateConverter(QRectF); - PythonQtRegisterToolClassesTemplateConverter(QSize); - PythonQtRegisterToolClassesTemplateConverter(QSizeF); - PythonQtRegisterToolClassesTemplateConverter(QLine); - PythonQtRegisterToolClassesTemplateConverter(QLineF); - PythonQtRegisterToolClassesTemplateConverter(QPoint); - PythonQtRegisterToolClassesTemplateConverter(QPointF); - PythonQtRegisterToolClassesTemplateConverter(QRegExp); - - PythonQtRegisterToolClassesTemplateConverter(QFont); - PythonQtRegisterToolClassesTemplateConverter(QPixmap); - PythonQtRegisterToolClassesTemplateConverter(QBrush); - PythonQtRegisterToolClassesTemplateConverter(QColor); - PythonQtRegisterToolClassesTemplateConverter(QPalette); - PythonQtRegisterToolClassesTemplateConverter(QIcon); - PythonQtRegisterToolClassesTemplateConverter(QImage); - PythonQtRegisterToolClassesTemplateConverter(QPolygon); - PythonQtRegisterToolClassesTemplateConverter(QRegion); - PythonQtRegisterToolClassesTemplateConverter(QBitmap); - PythonQtRegisterToolClassesTemplateConverter(QCursor); - PythonQtRegisterToolClassesTemplateConverter(QSizePolicy); - PythonQtRegisterToolClassesTemplateConverter(QKeySequence); - PythonQtRegisterToolClassesTemplateConverter(QPen); - PythonQtRegisterToolClassesTemplateConverter(QTextLength); - PythonQtRegisterToolClassesTemplateConverter(QTextFormat); - PythonQtRegisterToolClassesTemplateConverter(QMatrix); - - - PyObject* pack = PythonQt::priv()->packageByName("QtCore"); - PyObject* pack2 = PythonQt::priv()->packageByName("Qt"); - PyObject* qtNamespace = PythonQt::priv()->getClassInfo("Qt")->pythonQtClassWrapper(); - const char* names[16] = {"SIGNAL", "SLOT", "qAbs", "qBound","qDebug","qWarning","qCritical","qFatal" - ,"qFuzzyCompare", "qMax","qMin","qRound","qRound64","qVersion","qrand","qsrand"}; - for (unsigned int i = 0;i<16; i++) { - PyObject* obj = PyObject_GetAttrString(qtNamespace, names[i]); - if (obj) { - PyModule_AddObject(pack, names[i], obj); - Py_INCREF(obj); - PyModule_AddObject(pack2, names[i], obj); - } else { - std::cerr << "method not found " << names[i]; - } - } - } -} - -void PythonQt::cleanup() -{ - if (_self) { - delete _self; - _self = NULL; - } -} - -PythonQt::PythonQt(int flags, const QByteArray& pythonQtModuleName) -{ - _p = new PythonQtPrivate; - _p->_initFlags = flags; - - _p->_PythonQtObjectPtr_metaId = qRegisterMetaType("PythonQtObjectPtr"); - - if ((flags & PythonAlreadyInitialized) == 0) { - Py_SetProgramName("PythonQt"); - if (flags & IgnoreSiteModule) { - // this prevents the automatic importing of Python site files - Py_NoSiteFlag = 1; - } - Py_Initialize(); - } - - // add our own python object types for qt object slots - if (PyType_Ready(&PythonQtSlotFunction_Type) < 0) { - std::cerr << "could not initialize PythonQtSlotFunction_Type" << ", in " << __FILE__ << ":" << __LINE__ << std::endl; - } - Py_INCREF(&PythonQtSlotFunction_Type); - - // according to Python docs, set the type late here, since it can not safely be stored in the struct when declaring it - PythonQtClassWrapper_Type.tp_base = &PyType_Type; - // add our own python object types for classes - if (PyType_Ready(&PythonQtClassWrapper_Type) < 0) { - std::cerr << "could not initialize PythonQtClassWrapper_Type" << ", in " << __FILE__ << ":" << __LINE__ << std::endl; - } - Py_INCREF(&PythonQtClassWrapper_Type); - - // add our own python object types for CPP instances - if (PyType_Ready(&PythonQtInstanceWrapper_Type) < 0) { - PythonQt::handleError(); - std::cerr << "could not initialize PythonQtInstanceWrapper_Type" << ", in " << __FILE__ << ":" << __LINE__ << std::endl; - } - Py_INCREF(&PythonQtInstanceWrapper_Type); - - // add our own python object types for redirection of stdout - if (PyType_Ready(&PythonQtStdOutRedirectType) < 0) { - std::cerr << "could not initialize PythonQtStdOutRedirectType" << ", in " << __FILE__ << ":" << __LINE__ << std::endl; - } - Py_INCREF(&PythonQtStdOutRedirectType); - - initPythonQtModule(flags & RedirectStdOut, pythonQtModuleName); - - _p->setupSharedLibrarySuffixes(); - -} - -PythonQt::~PythonQt() { - delete _p; - _p = NULL; -} - -PythonQtPrivate::~PythonQtPrivate() { - delete _defaultImporter; - _defaultImporter = NULL; - - qDeleteAll(_knownClassInfos.values()); - qDeleteAll(_signalReceivers.values()); - - PythonQtConv::global_valueStorage.clear(); - PythonQtConv::global_ptrStorage.clear(); - PythonQtConv::global_variantStorage.clear(); - - PythonQtMethodInfo::cleanupCachedMethodInfos(); -} - -PythonQtImportFileInterface* PythonQt::importInterface() -{ - return _self->_p->_importInterface?_self->_p->_importInterface:_self->_p->_defaultImporter; -} - -void PythonQt::qObjectNoLongerWrappedCB(QObject* o) -{ - if (_self->_p->_noLongerWrappedCB) { - (*_self->_p->_noLongerWrappedCB)(o); - }; -} - -void PythonQt::registerClass(const QMetaObject* metaobject, const char* package, PythonQtQObjectCreatorFunctionCB* wrapperCreator, PythonQtShellSetInstanceWrapperCB* shell) -{ - _p->registerClass(metaobject, package, wrapperCreator, shell); -} - -void PythonQtPrivate::registerClass(const QMetaObject* metaobject, const char* package, PythonQtQObjectCreatorFunctionCB* wrapperCreator, PythonQtShellSetInstanceWrapperCB* shell, PyObject* module, int typeSlots) -{ - // we register all classes in the hierarchy - const QMetaObject* m = metaobject; - bool first = true; - while (m) { - PythonQtClassInfo* info = lookupClassInfoAndCreateIfNotPresent(m->className()); - if (!info->pythonQtClassWrapper()) { - info->setTypeSlots(typeSlots); - info->setupQObject(m); - createPythonQtClassWrapper(info, package, module); - if (m->superClass()) { - PythonQtClassInfo* parentInfo = lookupClassInfoAndCreateIfNotPresent(m->superClass()->className()); - info->addParentClass(PythonQtClassInfo::ParentClassInfo(parentInfo)); - } - } - if (first) { - first = false; - if (wrapperCreator) { - info->setDecoratorProvider(wrapperCreator); - } - if (shell) { - info->setShellSetInstanceWrapperCB(shell); - } - } - m = m->superClass(); - } -} - -void PythonQtPrivate::createPythonQtClassWrapper(PythonQtClassInfo* info, const char* package, PyObject* module) -{ - PyObject* pack = module?module:packageByName(package); - PyObject* pyobj = (PyObject*)createNewPythonQtClassWrapper(info, pack); - PyModule_AddObject(pack, info->className(), pyobj); - if (!module && package && strncmp(package,"Qt",2)==0) { - // since PyModule_AddObject steals the reference, we need a incref once more... - Py_INCREF(pyobj); - // put all qt objects into Qt as well - PyModule_AddObject(packageByName("Qt"), info->className(), pyobj); - } - info->setPythonQtClassWrapper(pyobj); -} - -PyObject* PythonQtPrivate::wrapQObject(QObject* obj) -{ - if (!obj) { - Py_INCREF(Py_None); - return Py_None; - } - PythonQtInstanceWrapper* wrap = findWrapperAndRemoveUnused(obj); - if (!wrap) { - // smuggling it in... - PythonQtClassInfo* classInfo = _knownClassInfos.value(obj->metaObject()->className()); - if (!classInfo || classInfo->pythonQtClassWrapper()==NULL) { - registerClass(obj->metaObject()); - classInfo = _knownClassInfos.value(obj->metaObject()->className()); - } - wrap = createNewPythonQtInstanceWrapper(obj, classInfo); - // mlabDebugConst("MLABPython","new qobject wrapper added " << " " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1()); - } else { - Py_INCREF(wrap); - // mlabDebugConst("MLABPython","qobject wrapper reused " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1()); - } - return (PyObject*)wrap; -} - -PyObject* PythonQtPrivate::wrapPtr(void* ptr, const QByteArray& name) -{ - if (!ptr) { - Py_INCREF(Py_None); - return Py_None; - } - - PythonQtInstanceWrapper* wrap = findWrapperAndRemoveUnused(ptr); - if (!wrap) { - PythonQtClassInfo* info = _knownClassInfos.value(name); - if (!info) { - // maybe it is a PyObject, which we can return directly - if (name == "PyObject") { - PyObject* p = (PyObject*)ptr; - Py_INCREF(p); - return p; - } - - // we do not know the metaobject yet, but we might know it by it's name: - if (_knownQObjectClassNames.find(name)!=_knownQObjectClassNames.end()) { - // yes, we know it, so we can convert to QObject - QObject* qptr = (QObject*)ptr; - registerClass(qptr->metaObject()); - info = _knownClassInfos.value(qptr->metaObject()->className()); - } - } - if (info && info->isQObject()) { - QObject* qptr = (QObject*)ptr; - // if the object is a derived object, we want to switch the class info to the one of the derived class: - if (name!=(qptr->metaObject()->className())) { - registerClass(qptr->metaObject()); - info = _knownClassInfos.value(qptr->metaObject()->className()); - } - wrap = createNewPythonQtInstanceWrapper(qptr, info); - // mlabDebugConst("MLABPython","new qobject wrapper added " << " " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1()); - return (PyObject*)wrap; - } - - // not a known QObject, so try our wrapper factory: - QObject* wrapper = NULL; - for (int i=0; i<_cppWrapperFactories.size(); i++) { - wrapper = _cppWrapperFactories.at(i)->create(name, ptr); - if (wrapper) { - break; - } - } - - if (info) { - // try to downcast in the class hierarchy, which will modify info and ptr if it is successfull - ptr = info->castDownIfPossible(ptr, &info); - } - - if (!info || info->pythonQtClassWrapper()==NULL) { - // still unknown, register as CPP class - registerCPPClass(name.constData()); - info = _knownClassInfos.value(name); - } - if (wrapper && (info->metaObject() != wrapper->metaObject())) { - // if we a have a QObject wrapper and the metaobjects do not match, set the metaobject again! - info->setMetaObject(wrapper->metaObject()); - } - wrap = createNewPythonQtInstanceWrapper(wrapper, info, ptr); - // mlabDebugConst("MLABPython","new c++ wrapper added " << wrap->_wrappedPtr << " " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1()); - } else { - Py_INCREF(wrap); - //mlabDebugConst("MLABPython","c++ wrapper reused " << wrap->_wrappedPtr << " " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1()); - } - return (PyObject*)wrap; -} - -PyObject* PythonQtPrivate::dummyTuple() { - static PyObject* dummyTuple = NULL; - if (dummyTuple==NULL) { - dummyTuple = PyTuple_New(1); - PyTuple_SET_ITEM(dummyTuple, 0 , PyString_FromString("dummy")); - } - return dummyTuple; -} - - -PythonQtInstanceWrapper* PythonQtPrivate::createNewPythonQtInstanceWrapper(QObject* obj, PythonQtClassInfo* info, void* wrappedPtr) { - // call the associated class type to create a new instance... - PythonQtInstanceWrapper* result = (PythonQtInstanceWrapper*)PyObject_Call(info->pythonQtClassWrapper(), dummyTuple(), NULL); - - result->setQObject(obj); - result->_wrappedPtr = wrappedPtr; - result->_ownedByPythonQt = false; - result->_useQMetaTypeDestroy = false; - - if (wrappedPtr) { - _wrappedObjects.insert(wrappedPtr, result); - } else { - _wrappedObjects.insert(obj, result); - if (obj->parent()== NULL && _wrappedCB) { - // tell someone who is interested that the qobject is wrapped the first time, if it has no parent - (*_wrappedCB)(obj); - } - } - return result; -} - -PythonQtClassWrapper* PythonQtPrivate::createNewPythonQtClassWrapper(PythonQtClassInfo* info, PyObject* parentModule) { - PythonQtClassWrapper* result; - - PyObject* className = PyString_FromString(info->className()); - - PyObject* baseClasses = PyTuple_New(1); - PyTuple_SET_ITEM(baseClasses, 0, (PyObject*)&PythonQtInstanceWrapper_Type); - - PyObject* typeDict = PyDict_New(); - PyObject* moduleName = PyObject_GetAttrString(parentModule, "__name__"); - PyDict_SetItemString(typeDict, "__module__", moduleName); - - PyObject* args = Py_BuildValue("OOO", className, baseClasses, typeDict); - - // set the class info so that PythonQtClassWrapper_new can read it - _currentClassInfoForClassWrapperCreation = info; - // create the new type object by calling the type - result = (PythonQtClassWrapper *)PyObject_Call((PyObject *)&PythonQtClassWrapper_Type, args, NULL); - - Py_DECREF(baseClasses); - Py_DECREF(typeDict); - Py_DECREF(args); - Py_DECREF(className); - - return result; -} - -PyObject* PythonQtPrivate::createEnumValueInstance(PyObject* enumType, unsigned int enumValue) -{ - PyObject* args = Py_BuildValue("(i)", enumValue); - PyObject* result = PyObject_Call(enumType, args, NULL); - Py_DECREF(args); - return result; -} - -PyObject* PythonQtPrivate::createNewPythonQtEnumWrapper(const char* enumName, PyObject* parentObject) { - PyObject* result; - - PyObject* className = PyString_FromString(enumName); - - PyObject* baseClasses = PyTuple_New(1); - PyTuple_SET_ITEM(baseClasses, 0, (PyObject*)&PyInt_Type); - - PyObject* module = PyObject_GetAttrString(parentObject, "__module__"); - PyObject* typeDict = PyDict_New(); - PyDict_SetItemString(typeDict, "__module__", module); - - PyObject* args = Py_BuildValue("OOO", className, baseClasses, typeDict); - - // create the new int derived type object by calling the core type - result = PyObject_Call((PyObject *)&PyType_Type, args, NULL); - - Py_DECREF(baseClasses); - Py_DECREF(typeDict); - Py_DECREF(args); - Py_DECREF(className); - - return result; -} - -PythonQtSignalReceiver* PythonQt::getSignalReceiver(QObject* obj) -{ - PythonQtSignalReceiver* r = _p->_signalReceivers[obj]; - if (!r) { - r = new PythonQtSignalReceiver(obj); - _p->_signalReceivers.insert(obj, r); - } - return r; -} - -bool PythonQt::addSignalHandler(QObject* obj, const char* signal, PyObject* module, const QString& objectname) -{ - bool flag = false; - PythonQtObjectPtr callable = lookupCallable(module, objectname); - if (callable) { - PythonQtSignalReceiver* r = getSignalReceiver(obj); - flag = r->addSignalHandler(signal, callable); - if (!flag) { - // signal not found - } - } else { - // callable not found - } - return flag; -} - -bool PythonQt::addSignalHandler(QObject* obj, const char* signal, PyObject* receiver) -{ - bool flag = false; - PythonQtSignalReceiver* r = getSignalReceiver(obj); - if (r) { - flag = r->addSignalHandler(signal, receiver); - } - return flag; -} - -bool PythonQt::removeSignalHandler(QObject* obj, const char* signal, PyObject* module, const QString& objectname) -{ - bool flag = false; - PythonQtObjectPtr callable = lookupCallable(module, objectname); - if (callable) { - PythonQtSignalReceiver* r = _p->_signalReceivers[obj]; - if (r) { - flag = r->removeSignalHandler(signal, callable); - } - } else { - // callable not found - } - return flag; -} - -bool PythonQt::removeSignalHandler(QObject* obj, const char* signal, PyObject* receiver) -{ - bool flag = false; - PythonQtSignalReceiver* r = _p->_signalReceivers[obj]; - if (r) { - flag = r->removeSignalHandler(signal, receiver); - } - return flag; -} - -PythonQtObjectPtr PythonQt::lookupCallable(PyObject* module, const QString& name) -{ - PythonQtObjectPtr p = lookupObject(module, name); - if (p) { - if (PyCallable_Check(p)) { - return p; - } - } - PyErr_Clear(); - return NULL; -} - -PythonQtObjectPtr PythonQt::lookupObject(PyObject* module, const QString& name) -{ - QStringList l = name.split('.'); - PythonQtObjectPtr p = module; - PythonQtObjectPtr prev; - QString s; - QByteArray b; - for (QStringList::ConstIterator i = l.constBegin(); i!=l.constEnd() && p; ++i) { - prev = p; - b = (*i).toLatin1(); - if (PyDict_Check(p)) { - p = PyDict_GetItemString(p, b.data()); - } else { - p.setNewRef(PyObject_GetAttrString(p, b.data())); - } - } - PyErr_Clear(); - return p; -} - -PythonQtObjectPtr PythonQt::getMainModule() { - //both borrowed - PythonQtObjectPtr dict = PyImport_GetModuleDict(); - return PyDict_GetItemString(dict, "__main__"); -} - -PythonQtObjectPtr PythonQt::importModule(const QString& name) -{ - PythonQtObjectPtr mod; - mod.setNewRef(PyImport_ImportModule(name.toLatin1().constData())); - return mod; -} - - -QVariant PythonQt::evalCode(PyObject* object, PyObject* pycode) { - QVariant result; - if (pycode) { - PyObject* dict = NULL; - if (PyModule_Check(object)) { - dict = PyModule_GetDict(object); - } else if (PyDict_Check(object)) { - dict = object; - } - PyObject* r = NULL; - if (dict) { - r = PyEval_EvalCode((PyCodeObject*)pycode, dict , dict); - } - if (r) { - result = PythonQtConv::PyObjToQVariant(r); - Py_DECREF(r); - } else { - handleError(); - } - } else { - handleError(); - } - return result; -} - -QVariant PythonQt::evalScript(PyObject* object, const QString& script, int start) -{ - QVariant result; - PythonQtObjectPtr p; - PyObject* dict = NULL; - if (PyModule_Check(object)) { - dict = PyModule_GetDict(object); - } else if (PyDict_Check(object)) { - dict = object; - } - if (dict) { - p.setNewRef(PyRun_String(script.toLatin1().data(), start, dict, dict)); - } - if (p) { - result = PythonQtConv::PyObjToQVariant(p); - } else { - handleError(); - } - return result; -} - -void PythonQt::evalFile(PyObject* module, const QString& filename) -{ - PythonQtObjectPtr code = parseFile(filename); - if (code) { - evalCode(module, code); - } else { - handleError(); - } -} - -PythonQtObjectPtr PythonQt::parseFile(const QString& filename) -{ - PythonQtObjectPtr p; - p.setNewRef(PythonQtImport::getCodeFromPyc(filename)); - if (!p) { - handleError(); - } - return p; -} - -PythonQtObjectPtr PythonQt::createModuleFromFile(const QString& name, const QString& filename) -{ - PythonQtObjectPtr code = parseFile(filename); - PythonQtObjectPtr module = _p->createModule(name, code); - return module; -} - -PythonQtObjectPtr PythonQt::createModuleFromScript(const QString& name, const QString& script) -{ - PyErr_Clear(); - QString scriptCode = script; - if (scriptCode.isEmpty()) { - // we always need at least a linefeed - scriptCode = "\n"; - } - PythonQtObjectPtr pycode; - pycode.setNewRef(Py_CompileString((char*)scriptCode.toLatin1().data(), "", Py_file_input)); - PythonQtObjectPtr module = _p->createModule(name, pycode); - return module; -} - -PythonQtObjectPtr PythonQt::createUniqueModule() -{ - static QString pyQtStr("PythonQt_module"); - QString moduleName = pyQtStr+QString::number(_uniqueModuleCount++); - return createModuleFromScript(moduleName); -} - -void PythonQt::addObject(PyObject* object, const QString& name, QObject* qObject) -{ - if (PyModule_Check(object)) { - PyModule_AddObject(object, name.toLatin1().data(), _p->wrapQObject(qObject)); - } else if (PyDict_Check(object)) { - PyDict_SetItemString(object, name.toLatin1().data(), _p->wrapQObject(qObject)); - } else { - PyObject_SetAttrString(object, name.toLatin1().data(), _p->wrapQObject(qObject)); - } -} - -void PythonQt::addVariable(PyObject* object, const QString& name, const QVariant& v) -{ - if (PyModule_Check(object)) { - PyModule_AddObject(object, name.toLatin1().data(), PythonQtConv::QVariantToPyObject(v)); - } else if (PyDict_Check(object)) { - PyDict_SetItemString(object, name.toLatin1().data(), PythonQtConv::QVariantToPyObject(v)); - } else { - PyObject_SetAttrString(object, name.toLatin1().data(), PythonQtConv::QVariantToPyObject(v)); - } -} - -void PythonQt::removeVariable(PyObject* object, const QString& name) -{ - if (PyDict_Check(object)) { - PyDict_DelItemString(object, name.toLatin1().data()); - } else { - PyObject_DelAttrString(object, name.toLatin1().data()); - } -} - -QVariant PythonQt::getVariable(PyObject* object, const QString& objectname) -{ - QVariant result; - PythonQtObjectPtr obj = lookupObject(object, objectname); - if (obj) { - result = PythonQtConv::PyObjToQVariant(obj); - } - return result; -} - -QStringList PythonQt::introspection(PyObject* module, const QString& objectname, PythonQt::ObjectType type) -{ - QStringList results; - - PythonQtObjectPtr object; - if (objectname.isEmpty()) { - object = module; - } else { - object = lookupObject(module, objectname); - if (!object && type == CallOverloads) { - PyObject* dict = lookupObject(module, "__builtins__"); - if (dict) { - object = PyDict_GetItemString(dict, objectname.toLatin1().constData()); - } - } - } - - if (object) { - if (type == CallOverloads) { - if (PythonQtSlotFunction_Check(object)) { - PythonQtSlotFunctionObject* o = (PythonQtSlotFunctionObject*)object.object(); - PythonQtSlotInfo* info = o->m_ml; - - while (info) { - results << info->fullSignature(); - info = info->nextInfo(); - } - } else if (object->ob_type == &PythonQtClassWrapper_Type) { - PythonQtClassWrapper* o = (PythonQtClassWrapper*)object.object(); - PythonQtSlotInfo* info = o->classInfo()->constructors(); - - while (info) { - results << info->fullSignature(); - info = info->nextInfo(); - } - } else { - //TODO: use pydoc! - PyObject* doc = PyObject_GetAttrString(object, "__doc__"); - if (doc) { - results << PyString_AsString(doc); - Py_DECREF(doc); - } - } - } else { - PyObject* keys = NULL; - bool isDict = false; - if (PyDict_Check(object)) { - keys = PyDict_Keys(object); - isDict = true; - } else { - keys = PyObject_Dir(object); - } - if (keys) { - int count = PyList_Size(keys); - PyObject* key; - PyObject* value; - QString keystr; - for (int i = 0;iob_type == &PyClass_Type) { - results << keystr; - } - break; - case Variable: - if (value->ob_type != &PyClass_Type - && value->ob_type != &PyCFunction_Type - && value->ob_type != &PyFunction_Type - && value->ob_type != &PyModule_Type - ) { - results << keystr; - } - break; - case Function: - if (value->ob_type == &PyFunction_Type || - value->ob_type == &PyMethod_Type - ) { - results << keystr; - } - break; - case Module: - if (value->ob_type == &PyModule_Type) { - results << keystr; - } - break; - default: - std::cerr << "PythonQt: introspection: unknown case" << ", in " << __FILE__ << ":" << __LINE__ << std::endl; - } - } - Py_DECREF(value); - } - Py_DECREF(keys); - } - } - } - return results; -} - -QVariant PythonQt::call(PyObject* object, const QString& name, const QVariantList& args) -{ - PythonQtObjectPtr callable = lookupCallable(object, name); - if (callable) { - return call(callable, args); - } else { - return QVariant(); - } -} - -QVariant PythonQt::call(PyObject* callable, const QVariantList& args) -{ - QVariant r; - PythonQtObjectPtr result; - result.setNewRef(callAndReturnPyObject(callable, args)); - if (result) { - r = PythonQtConv::PyObjToQVariant(result); - } else { - PythonQt::self()->handleError(); - } - return r; -} - -PyObject* PythonQt::callAndReturnPyObject(PyObject* callable, const QVariantList& args) -{ - PyObject* result = NULL; - if (callable) { - PythonQtObjectPtr pargs; - int count = args.size(); - if (count>0) { - pargs.setNewRef(PyTuple_New(count)); - } - bool err = false; - // transform QVariants to Python - for (int i = 0; i < count; i++) { - PyObject* arg = PythonQtConv::QVariantToPyObject(args.at(i)); - if (arg) { - // steals reference, no unref - PyTuple_SetItem(pargs, i,arg); - } else { - err = true; - break; - } - } - - if (!err) { - PyErr_Clear(); - result = PyObject_CallObject(callable, pargs); - } - } - return result; -} - -void PythonQt::addInstanceDecorators(QObject* o) -{ - _p->addDecorators(o, PythonQtPrivate::InstanceDecorator); -} - -void PythonQt::addClassDecorators(QObject* o) -{ - _p->addDecorators(o, PythonQtPrivate::StaticDecorator | PythonQtPrivate::ConstructorDecorator | PythonQtPrivate::DestructorDecorator); -} - -void PythonQt::addDecorators(QObject* o) -{ - _p->addDecorators(o, PythonQtPrivate::AllDecorators); -} - -void PythonQt::registerQObjectClassNames(const QStringList& names) -{ - _p->registerQObjectClassNames(names); -} - -void PythonQt::setImporter(PythonQtImportFileInterface* importInterface) -{ - _p->_importInterface = importInterface; - PythonQtImport::init(); -} - -void PythonQt::setImporterIgnorePaths(const QStringList& paths) -{ - _p->_importIgnorePaths = paths; -} - -const QStringList& PythonQt::getImporterIgnorePaths() -{ - return _p->_importIgnorePaths; -} - -void PythonQt::addWrapperFactory(PythonQtCppWrapperFactory* factory) -{ - _p->_cppWrapperFactories.append(factory); -} - -//--------------------------------------------------------------------------------------------------- -PythonQtPrivate::PythonQtPrivate() -{ - _importInterface = NULL; - _defaultImporter = new PythonQtQFileImporter; - _noLongerWrappedCB = NULL; - _wrappedCB = NULL; - _currentClassInfoForClassWrapperCreation = NULL; -} - -void PythonQtPrivate::setupSharedLibrarySuffixes() -{ - _sharedLibrarySuffixes.clear(); - PythonQtObjectPtr imp; - imp.setNewRef(PyImport_ImportModule("imp")); - int cExtensionCode = imp.getVariable("C_EXTENSION").toInt(); - QVariant result = imp.call("get_suffixes"); - foreach (QVariant entry, result.toList()) { - QVariantList suffixEntry = entry.toList(); - if (suffixEntry.count()==3) { - int code = suffixEntry.at(2).toInt(); - if (code == cExtensionCode) { - _sharedLibrarySuffixes << suffixEntry.at(0).toString(); - } - } - } -} - -PythonQtClassInfo* PythonQtPrivate::currentClassInfoForClassWrapperCreation() -{ - PythonQtClassInfo* info = _currentClassInfoForClassWrapperCreation; - _currentClassInfoForClassWrapperCreation = NULL; - return info; -} - -void PythonQtPrivate::addDecorators(QObject* o, int decoTypes) -{ - o->setParent(this); - int numMethods = o->metaObject()->methodCount(); - for (int i = 0; i < numMethods; i++) { - QMetaMethod m = o->metaObject()->method(i); - if ((m.methodType() == QMetaMethod::Method || - m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { - if (qstrncmp(m.signature(), "new_", 4)==0) { - if ((decoTypes & ConstructorDecorator) == 0) continue; - const PythonQtMethodInfo* info = PythonQtMethodInfo::getCachedMethodInfo(m, NULL); - if (info->parameters().at(0).pointerCount == 1) { - QByteArray signature = m.signature(); - QByteArray nameOfClass = signature.mid(4, signature.indexOf('(')-4); - PythonQtClassInfo* classInfo = lookupClassInfoAndCreateIfNotPresent(nameOfClass); - PythonQtSlotInfo* newSlot = new PythonQtSlotInfo(NULL, m, i, o, PythonQtSlotInfo::ClassDecorator); - classInfo->addConstructor(newSlot); - } - } else if (qstrncmp(m.signature(), "delete_", 7)==0) { - if ((decoTypes & DestructorDecorator) == 0) continue; - QByteArray signature = m.signature(); - QByteArray nameOfClass = signature.mid(7, signature.indexOf('(')-7); - PythonQtClassInfo* classInfo = lookupClassInfoAndCreateIfNotPresent(nameOfClass); - PythonQtSlotInfo* newSlot = new PythonQtSlotInfo(NULL, m, i, o, PythonQtSlotInfo::ClassDecorator); - classInfo->setDestructor(newSlot); - } else if (qstrncmp(m.signature(), "static_", 7)==0) { - if ((decoTypes & StaticDecorator) == 0) continue; - QByteArray signature = m.signature(); - QByteArray nameOfClass = signature.mid(signature.indexOf('_')+1); - nameOfClass = nameOfClass.mid(0, nameOfClass.indexOf('_')); - PythonQtClassInfo* classInfo = lookupClassInfoAndCreateIfNotPresent(nameOfClass); - PythonQtSlotInfo* newSlot = new PythonQtSlotInfo(NULL, m, i, o, PythonQtSlotInfo::ClassDecorator); - classInfo->addDecoratorSlot(newSlot); - } else { - if ((decoTypes & InstanceDecorator) == 0) continue; - const PythonQtMethodInfo* info = PythonQtMethodInfo::getCachedMethodInfo(m, NULL); - if (info->parameters().count()>1) { - PythonQtMethodInfo::ParameterInfo p = info->parameters().at(1); - if (p.pointerCount==1) { - PythonQtClassInfo* classInfo = lookupClassInfoAndCreateIfNotPresent(p.name); - PythonQtSlotInfo* newSlot = new PythonQtSlotInfo(NULL, m, i, o, PythonQtSlotInfo::InstanceDecorator); - classInfo->addDecoratorSlot(newSlot); - } - } - } - } - } -} - -void PythonQtPrivate::registerQObjectClassNames(const QStringList& names) -{ - foreach(QString name, names) { - _knownQObjectClassNames.insert(name.toLatin1(), true); - } -} - -void PythonQtPrivate::removeSignalEmitter(QObject* obj) -{ - _signalReceivers.remove(obj); -} - -bool PythonQt::handleError() -{ - bool flag = false; - if (PyErr_Occurred()) { - - // currently we just print the error and the stderr handler parses the errors - PyErr_Print(); - - /* - // EXTRA: the format of the ptype and ptraceback is not really documented, so I use PyErr_Print() above - PyObject *ptype; - PyObject *pvalue; - PyObject *ptraceback; - PyErr_Fetch( &ptype, &pvalue, &ptraceback); - - Py_XDECREF(ptype); - Py_XDECREF(pvalue); - Py_XDECREF(ptraceback); - */ - PyErr_Clear(); - flag = true; - } - return flag; -} - -void PythonQt::addSysPath(const QString& path) -{ - PythonQtObjectPtr sys; - sys.setNewRef(PyImport_ImportModule("sys")); - PythonQtObjectPtr obj = lookupObject(sys, "path"); - PyList_Insert(obj, 0, PythonQtConv::QStringToPyObject(path)); -} - -void PythonQt::overwriteSysPath(const QStringList& paths) -{ - PythonQtObjectPtr sys; - sys.setNewRef(PyImport_ImportModule("sys")); - PyModule_AddObject(sys, "path", PythonQtConv::QStringListToPyList(paths)); -} - -void PythonQt::setModuleImportPath(PyObject* module, const QStringList& paths) -{ - PyModule_AddObject(module, "__path__", PythonQtConv::QStringListToPyList(paths)); -} - -void PythonQt::stdOutRedirectCB(const QString& str) -{ - emit PythonQt::self()->pythonStdOut(str); -} - -void PythonQt::stdErrRedirectCB(const QString& str) -{ - emit PythonQt::self()->pythonStdErr(str); -} - -void PythonQt::setQObjectWrappedCallback(PythonQtQObjectWrappedCB* cb) -{ - _p->_wrappedCB = cb; -} - -void PythonQt::setQObjectNoLongerWrappedCallback(PythonQtQObjectNoLongerWrappedCB* cb) -{ - _p->_noLongerWrappedCB = cb; -} - - - -static PyMethodDef PythonQtMethods[] = { - {NULL, NULL, 0, NULL} -}; - -void PythonQt::initPythonQtModule(bool redirectStdOut, const QByteArray& pythonQtModuleName) -{ - QByteArray name = "PythonQt"; - if (!pythonQtModuleName.isEmpty()) { - name = pythonQtModuleName; - } - _p->_pythonQtModule = Py_InitModule(name.constData(), PythonQtMethods); - _p->_pythonQtModuleName = name; - - if (redirectStdOut) { - PythonQtObjectPtr sys; - PythonQtObjectPtr out; - PythonQtObjectPtr err; - sys.setNewRef(PyImport_ImportModule("sys")); - // create a redirection object for stdout and stderr - out = PythonQtStdOutRedirectType.tp_new(&PythonQtStdOutRedirectType,NULL, NULL); - ((PythonQtStdOutRedirect*)out.object())->_cb = stdOutRedirectCB; - err = PythonQtStdOutRedirectType.tp_new(&PythonQtStdOutRedirectType,NULL, NULL); - ((PythonQtStdOutRedirect*)err.object())->_cb = stdErrRedirectCB; - // replace the built in file objects with our own objects - PyModule_AddObject(sys, "stdout", out); - PyModule_AddObject(sys, "stderr", err); - } -} - -void PythonQt::registerCPPClass(const char* typeName, const char* parentTypeName, const char* package, PythonQtQObjectCreatorFunctionCB* wrapperCreator, PythonQtShellSetInstanceWrapperCB* shell) -{ - _p->registerCPPClass(typeName, parentTypeName, package, wrapperCreator, shell); -} - - -PythonQtClassInfo* PythonQtPrivate::lookupClassInfoAndCreateIfNotPresent(const char* typeName) -{ - PythonQtClassInfo* info = _knownClassInfos.value(typeName); - if (!info) { - info = new PythonQtClassInfo(); - info->setupCPPObject(typeName); - _knownClassInfos.insert(typeName, info); - } - return info; -} - -void PythonQt::addPolymorphicHandler(const char* typeName, PythonQtPolymorphicHandlerCB* cb) -{ - _p->addPolymorphicHandler(typeName, cb); -} - -void PythonQtPrivate::addPolymorphicHandler(const char* typeName, PythonQtPolymorphicHandlerCB* cb) -{ - PythonQtClassInfo* info = lookupClassInfoAndCreateIfNotPresent(typeName); - info->addPolymorphicHandler(cb); -} - -bool PythonQt::addParentClass(const char* typeName, const char* parentTypeName, int upcastingOffset) -{ - return _p->addParentClass(typeName, parentTypeName, upcastingOffset); -} - -bool PythonQtPrivate::addParentClass(const char* typeName, const char* parentTypeName, int upcastingOffset) -{ - PythonQtClassInfo* info = _knownClassInfos.value(typeName); - if (info) { - PythonQtClassInfo* parentInfo = lookupClassInfoAndCreateIfNotPresent(parentTypeName); - info->addParentClass(PythonQtClassInfo::ParentClassInfo(parentInfo, upcastingOffset)); - return true; - } else { - return false; - } -} - -void PythonQtPrivate::registerCPPClass(const char* typeName, const char* parentTypeName, const char* package, PythonQtQObjectCreatorFunctionCB* wrapperCreator, PythonQtShellSetInstanceWrapperCB* shell, PyObject* module, int typeSlots) -{ - PythonQtClassInfo* info = lookupClassInfoAndCreateIfNotPresent(typeName); - if (!info->pythonQtClassWrapper()) { - info->setTypeSlots(typeSlots); - info->setupCPPObject(typeName); - createPythonQtClassWrapper(info, package, module); - } - if (parentTypeName && strcmp(parentTypeName,"")!=0) { - addParentClass(typeName, parentTypeName, 0); - } - if (wrapperCreator) { - info->setDecoratorProvider(wrapperCreator); - } - if (shell) { - info->setShellSetInstanceWrapperCB(shell); - } -} - -PyObject* PythonQtPrivate::packageByName(const char* name) -{ - if (name==NULL || name[0]==0) { - name = "private"; - } - PyObject* v = _packages.value(name); - if (!v) { - v = PyImport_AddModule((_pythonQtModuleName + "." + name).constData()); - _packages.insert(name, v); - // AddObject steals the reference, so increment it! - Py_INCREF(v); - PyModule_AddObject(_pythonQtModule, name, v); - } - return v; -} - -void PythonQtPrivate::handleVirtualOverloadReturnError(const char* signature, const PythonQtMethodInfo* methodInfo, PyObject* result) -{ - QString error = "Return value '" + PythonQtConv::PyObjGetString(result) + "' can not be converted to expected C++ type '" + methodInfo->parameters().at(0).name + "' as return value of virtual method " + signature; - PyErr_SetString(PyExc_AttributeError, error.toLatin1().data()); - PythonQt::self()->handleError(); -} - -PyObject* PythonQt::helpCalled(PythonQtClassInfo* info) -{ - if (_p->_initFlags & ExternalHelp) { - emit pythonHelpRequest(QByteArray(info->className())); - return Py_BuildValue(""); - } else { - return PyString_FromString(info->help().toLatin1().data()); - } -} - -void PythonQtPrivate::removeWrapperPointer(void* obj) -{ - _wrappedObjects.remove(obj); -} - -void PythonQtPrivate::addWrapperPointer(void* obj, PythonQtInstanceWrapper* wrapper) -{ - _wrappedObjects.insert(obj, wrapper); -} - -PythonQtInstanceWrapper* PythonQtPrivate::findWrapperAndRemoveUnused(void* obj) -{ - PythonQtInstanceWrapper* wrap = _wrappedObjects.value(obj); - if (wrap && !wrap->_wrappedPtr && wrap->_obj == NULL) { - // this is a wrapper whose QObject was already removed due to destruction - // so the obj pointer has to be a new QObject with the same address... - // we remove the old one and set the copy to NULL - wrap->_objPointerCopy = NULL; - removeWrapperPointer(obj); - wrap = NULL; - } - return wrap; -} - -PythonQtObjectPtr PythonQtPrivate::createModule(const QString& name, PyObject* pycode) -{ - PythonQtObjectPtr result; - if (pycode) { - result.setNewRef(PyImport_ExecCodeModule((char*)name.toLatin1().data(), pycode)); - } else { - PythonQt::self()->handleError(); - } - return result; -} diff --git a/3rdparty/pythonqt/src/PythonQt.h b/3rdparty/pythonqt/src/PythonQt.h deleted file mode 100644 index 0e2571770..000000000 --- a/3rdparty/pythonqt/src/PythonQt.h +++ /dev/null @@ -1,639 +0,0 @@ -#ifndef _PYTHONQT_H -#define _PYTHONQT_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQt.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtInstanceWrapper.h" -#include "PythonQtSystem.h" -#include "PythonQtClassWrapper.h" -#include "PythonQtSlot.h" -#include "PythonQtObjectPtr.h" -#include -#include -#include -#include -#include -#include -#include -#include - - -class PythonQtClassInfo; -class PythonQtPrivate; -class PythonQtMethodInfo; -class PythonQtSignalReceiver; -class PythonQtImportFileInterface; -class PythonQtCppWrapperFactory; -class PythonQtQFileImporter; - -typedef void PythonQtQObjectWrappedCB(QObject* object); -typedef void PythonQtQObjectNoLongerWrappedCB(QObject* object); -typedef void* PythonQtPolymorphicHandlerCB(const void *ptr, char **class_name); - -typedef void PythonQtShellSetInstanceWrapperCB(void* object, PythonQtInstanceWrapper* wrapper); - -template void PythonQtSetInstanceWrapperOnShell(void* object, PythonQtInstanceWrapper* wrapper) { ((T*)object)->_wrapper = wrapper; }; - -//! returns the offset that needs to be added to upcast an object of type T1 to T2 -template int PythonQtUpcastingOffset() { - return (((char*)(static_cast(reinterpret_cast(0x100)))) - ((char*)reinterpret_cast(0x100))); -} - -//! callback to create a QObject lazily -typedef QObject* PythonQtQObjectCreatorFunctionCB(); - -//! helper template to create a derived QObject class -template QObject* PythonQtCreateObject() { return new T(); }; - -//! The main interface to the Python Qt binding, realized as a singleton -/*! - Use PythonQt::init() to initialize the singleton and PythonQt::self() to access it. - While there can be only one PythonQt instance, you can have any number of Python context to do scripting in. - One possibility is to use createModuleFromFile(), createModuleFromScript() or createUniqueModule() to get a context - that is separated from the other contexts. Alternatively you can use Python dicts as contexts for script evaluation, - but you will need to populate the dict with the __builtins__ instance to have all Pythons available when running - code in the scope of a dict. - */ -class PYTHONQT_EXPORT PythonQt : public QObject { - - Q_OBJECT - -public: - - //! flags that can be passed to PythonQt::init() - enum InitFlags { - RedirectStdOut = 1, //!<< sets if the std out/err is redirected to pythonStdOut() and pythonStdErr() signals - IgnoreSiteModule = 2, //!<< sets if Python should ignore the site module - ExternalHelp = 4, //!<< sets if help() calls on PythonQt modules are forwarded to the pythonHelpRequest() signal - PythonAlreadyInitialized = 8 //!<< sets that PythonQt should not can PyInitialize, since it is already done - }; - - //! flags that tell PythonQt which operators to expect on the registered type - enum TypeSlots { - Type_Add = 1, - Type_Subtract = 1 << 1, - Type_Multiply = 1 << 2, - Type_Divide = 1 << 3, - Type_Mod = 1 << 4, - Type_And = 1 << 5, - Type_Or = 1 << 6, - Type_Xor = 1 << 7, - Type_LShift = 1 << 8, - Type_RShift = 1 << 9, - - Type_InplaceAdd = 1 << 10, - Type_InplaceSubtract = 1 << 11, - Type_InplaceMultiply = 1 << 12, - Type_InplaceDivide = 1 << 13, - Type_InplaceMod = 1 << 14, - Type_InplaceAnd = 1 << 15, - Type_InplaceOr = 1 << 16, - Type_InplaceXor = 1 << 17, - Type_InplaceLShift = 1 << 18, - Type_InplaceRShift = 1 << 19, - - // Not yet needed/nicely mappable/generated... - //Type_Positive = 1 << 29, - //Type_Negative = 1 << 29, - //Type_Abs = 1 << 29, - //Type_Hash = 1 << 29, - - Type_Invert = 1 << 29, - Type_RichCompare = 1 << 30, - Type_NonZero = 1 << 31, - - }; - - //--------------------------------------------------------------------------- - //! \name Singleton Initialization - //@{ - - //! initialize the python qt binding (flags are a or combination of PythonQt::InitFlags), if \c pythonQtModuleName is given - //! it defines the name of the python module that PythonQt will add, otherwise "PythonQt" is used. - //! This can be used to e.g. pass in PySide or PyQt4 to make it more compatible. - static void init(int flags = IgnoreSiteModule | RedirectStdOut, const QByteArray& pythonQtModuleName = QByteArray()); - - //! cleanup of the singleton - static void cleanup(); - - //! get the singleton instance - static PythonQt* self() { return _self; } - - //@} - - //! defines the object types for introspection - enum ObjectType { - Class, - Function, - Variable, - Module, - Anything, - CallOverloads - }; - - //--------------------------------------------------------------------------- - //! \name Modules - //@{ - - //! get the __main__ module of python - PythonQtObjectPtr getMainModule(); - - //! import the given module and return a reference to it (useful to import e.g. "sys" and call something on it) - //! If a module is already imported, this returns the already imported module. - PythonQtObjectPtr importModule(const QString& name); - - //! creates the new module \c name and evaluates the given file in the context of that module - //! If the \c script is empty, the module contains no initial code. You can use evalScript/evalCode to add code - //! to a module later on. - //! The user needs to make sure that the \c name is unique in the python module dictionary. - PythonQtObjectPtr createModuleFromFile(const QString& name, const QString& filename); - - //! creates the new module \c name and evaluates the given script in the context of that module. - //! If the \c script is empty, the module contains no initial code. You can use evalScript/evalCode to add code - //! to a module later on. - //! The user needs to make sure that the \c name is unique in the python module dictionary. - PythonQtObjectPtr createModuleFromScript(const QString& name, const QString& script = QString()); - - //! create a uniquely named module, you can use evalFile or evalScript to populate the module with - //! script code - PythonQtObjectPtr createUniqueModule(); - - //@} - - //--------------------------------------------------------------------------- - //! \name Importing/Paths - //@{ - - //! overwrite the python sys path (call this directly after PythonQt::init() if you want to change the std python sys path) - void overwriteSysPath(const QStringList& paths); - - //! prepend a path to sys.path to allow importing from it - void addSysPath(const QString& path); - - //! sets the __path__ list of a module to the given list (important for local imports) - void setModuleImportPath(PyObject* module, const QStringList& paths); - - //@} - - //--------------------------------------------------------------------------- - //! \name Registering Classes - //@{ - - //! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well) - /* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject, - you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */ - void registerClass(const QMetaObject* metaobject, const char* package = NULL, PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL, PythonQtShellSetInstanceWrapperCB* shell = NULL); - - //! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants - //! (ownership of wrapper is passed to PythonQt) - /*! Make sure that you have done a qRegisterMetaType first, if typeName is a user type! - - This will add a wrapper object that is used to make calls to the given classname \c typeName. - All slots that take a pointer to typeName as the first argument will be callable from Python on - a variant object that contains such a type. - */ - void registerCPPClass(const char* typeName, const char* parentTypeName = NULL, const char* package = NULL, PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL, PythonQtShellSetInstanceWrapperCB* shell = NULL); - - //! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes - //! and it will register the classes when it first sees a pointer to such a derived class - void registerQObjectClassNames(const QStringList& names); - - //! add a parent class relation to the \c given typeName, the upcastingOffset is needed for multiple inheritance - //! and can be calculated using PythonQtUpcastingOffset(), which also verifies that - //! type is really derived from parentType. - //! Returns false if the typeName was not yet registered. - bool addParentClass(const char* typeName, const char* parentTypeName, int upcastingOffset=0); - - //! add a handler for polymorphic downcasting - void addPolymorphicHandler(const char* typeName, PythonQtPolymorphicHandlerCB* cb); - - //@} - - //--------------------------------------------------------------------------- - //! \name Script Parsing and Evaluation - //@{ - - //! parses the given file and returns the python code object, this can then be used to call evalCode() - PythonQtObjectPtr parseFile(const QString& filename); - - //! evaluates the given code and returns the result value (use Py_Compile etc. to create pycode from string) - //! If pycode is NULL, a python error is printed. - QVariant evalCode(PyObject* object, PyObject* pycode); - - //! evaluates the given script code and returns the result value - QVariant evalScript(PyObject* object, const QString& script, int start = Py_file_input); - - //! evaluates the given script code from file - void evalFile(PyObject* object, const QString& filename); - - //@} - - //--------------------------------------------------------------------------- - //! \name Signal Handlers - //@{ - - //! add a signal handler to the given \c signal of \c obj and connect it to a callable \c objectname in module - bool addSignalHandler(QObject* obj, const char* signal, PyObject* module, const QString& objectname); - - //! remove a signal handler from the given \c signal of \c obj - bool removeSignalHandler(QObject* obj, const char* signal, PyObject* module, const QString& objectname); - - //! add a signal handler to the given \c signal of \c obj and connect it to a callable \c receiver - bool addSignalHandler(QObject* obj, const char* signal, PyObject* receiver); - - //! remove a signal handler from the given \c signal of \c obj - bool removeSignalHandler(QObject* obj, const char* signal, PyObject* receiver); - - //@} - - //--------------------------------------------------------------------------- - //! \name Variable access - //@{ - - //! add the given \c qObject to the python \c object as a variable with \c name (it can be removed via clearVariable) - void addObject(PyObject* object, const QString& name, QObject* qObject); - - //! add the given variable to the object - void addVariable(PyObject* object, const QString& name, const QVariant& v); - - //! remove the given variable - void removeVariable(PyObject* module, const QString& name); - - //! get the variable with the \c name of the \c object, returns an invalid QVariant on error - QVariant getVariable(PyObject* object, const QString& name); - - //! read vars etc. in scope of an \c object, optional looking inside of an object \c objectname - QStringList introspection(PyObject* object, const QString& objectname, ObjectType type); - - //! returns the found callable object or NULL - //! @return new reference - PythonQtObjectPtr lookupCallable(PyObject* object, const QString& name); - - //@} - - //--------------------------------------------------------------------------- - //! \name Calling Python Objects - //@{ - - //! call the given python \c callable in the scope of object, returns the result converted to a QVariant - QVariant call(PyObject* object, const QString& callable, const QVariantList& args = QVariantList()); - - //! call the given python object, returns the result converted to a QVariant - QVariant call(PyObject* callable, const QVariantList& args = QVariantList()); - - //! call the given python object, returns the result as new PyObject - PyObject* callAndReturnPyObject(PyObject* callable, const QVariantList& args = QVariantList()); - - //@} - - //--------------------------------------------------------------------------- - //! \name Decorations, Constructors, Wrappers... - //@{ - - //! add an object whose slots will be used as decorator slots for - //! other QObjects or CPP classes. The slots need to follow the - //! convention that the first argument is a pointer to the wrapped object. - //! (ownership is passed to PythonQt) - /*! - Example: - - A slot with the signature - - \code - bool doSomething(QWidget* w, int a) - \endcode - - will extend QWidget instances (and derived classes) with a "bool doSomething(int a)" slot - that will be called with the concrete instance as first argument. - So in Python you can now e.g. call - - \code - someWidget.doSomething(12) - \endcode - - without QWidget really having this method. This allows to easily make normal methods - of Qt classes callable by forwarding them with such decorator slots - or to make CPP classes (which are not derived from QObject) callable from Python. - */ - void addInstanceDecorators(QObject* o); - - //! add an object whose slots will be used as decorator slots for - //! class objects (ownership is passed to PythonQt) - /*! - The slots need to follow the following convention: - - SomeClass* new_SomeClass(...) - - QVariant new_SomeClass(...) - - void delete_SomeClass(SomeClass*) - - ... static_SomeClass_someName(...) - - This will add: - - a constructor - - a constructor which generates a QVariant - - a destructor (only useful for CPP objects) - - a static decorator slot which will be available on the MetaObject (visible in PythonQt module) - - */ - void addClassDecorators(QObject* o); - - //! this will add the object both as class and instance decorator (ownership is passed to PythonQt) - void addDecorators(QObject* o); - - //! add the given factory to PythonQt (ownership stays with caller) - void addWrapperFactory(PythonQtCppWrapperFactory* factory); - - //@} - - //--------------------------------------------------------------------------- - //! \name Custom Importer - //@{ - - //! replace the internal import implementation and use the supplied interface to load files (both py and pyc files) - //! (this method should be called directly after initialization of init() and before calling overwriteSysPath(). - //! On the first call to this method, it will install a generic PythonQt importer in Pythons "path_hooks". - //! This is not reversible, so even setting setImporter(NULL) afterwards will - //! keep the custom PythonQt importer with a QFile default import interface. - //! Subsequent python import calls will make use of the passed importInterface - //! which forwards all import calls to the given \c importInterface. - //! Passing NULL will install a default QFile importer. - //! (\c importInterface ownership stays with caller) - void setImporter(PythonQtImportFileInterface* importInterface); - - //! this installs the default QFile importer (which effectively does a setImporter(NULL)) - //! (without calling setImporter or installDefaultImporter at least once, the default python import - //! mechanism is in place) - //! the default importer allows to import files from anywhere QFile can read from, - //! including the Qt resource system using ":". Keep in mind that you need to extend - //! "sys.path" with ":" to be able to import from the Qt resources. - void installDefaultImporter() { setImporter(NULL); } - - //! set paths that the importer should ignore - void setImporterIgnorePaths(const QStringList& paths); - - //! get paths that the importer should ignore - const QStringList& getImporterIgnorePaths(); - - //! get access to the file importer (if set) - static PythonQtImportFileInterface* importInterface(); - - //@} - - //--------------------------------------------------------------------------- - //! \name Other Stuff - //@{ - - //! get access to internal data (should not be used on the public API, but is used by some C functions) - static PythonQtPrivate* priv() { return _self->_p; } - - //! handle a python error, call this when a python function fails. If no error occurred, it returns false. - //! The error is currently just output to the python stderr, future version might implement better trace printing - bool handleError(); - - //! set a callback that is called when a QObject with parent == NULL is wrapped by pythonqt - void setQObjectWrappedCallback(PythonQtQObjectWrappedCB* cb); - //! set a callback that is called when a QObject with parent == NULL is no longer wrapped by pythonqt - void setQObjectNoLongerWrappedCallback(PythonQtQObjectNoLongerWrappedCB* cb); - - //! call the callback if it is set - static void qObjectNoLongerWrappedCB(QObject* o); - - //! called by internal help methods - PyObject* helpCalled(PythonQtClassInfo* info); - - //! returns the found object or NULL - //! @return new reference - PythonQtObjectPtr lookupObject(PyObject* module, const QString& name); - - //@} - -signals: - //! emitted when python outputs something to stdout (and redirection is turned on) - void pythonStdOut(const QString& str); - //! emitted when python outputs something to stderr (and redirection is turned on) - void pythonStdErr(const QString& str); - - //! emitted when help() is called on a PythonQt object and \c ExternalHelp is enabled - void pythonHelpRequest(const QByteArray& cppClassName); - - //! emitted when a signal is connected to a Python object - void signalConnectedToPython(PythonQtSignalReceiver* receiver, int signal_id, - PyObject* callable); - -private: - void initPythonQtModule(bool redirectStdOut, const QByteArray& pythonQtModuleName); - - //! callback for stdout redirection, emits pythonStdOut signal - static void stdOutRedirectCB(const QString& str); - //! callback for stderr redirection, emits pythonStdErr signal - static void stdErrRedirectCB(const QString& str); - - //! get (and create if not available) the signal receiver of that QObject, signal receiver is made child of the passed \c obj - PythonQtSignalReceiver* getSignalReceiver(QObject* obj); - - PythonQt(int flags, const QByteArray& pythonQtModuleName); - ~PythonQt(); - - static PythonQt* _self; - static int _uniqueModuleCount; - - PythonQtPrivate* _p; - - friend class PythonQtSignalReceiver; -}; - -//! internal PythonQt details -class PYTHONQT_EXPORT PythonQtPrivate : public QObject { - - Q_OBJECT - -public: - PythonQtPrivate(); - ~PythonQtPrivate(); - - enum DecoratorTypes { - StaticDecorator = 1, - ConstructorDecorator = 2, - DestructorDecorator = 4, - InstanceDecorator = 8, - AllDecorators = 0xffff - }; - - //! get the suffixes that are used for shared libraries - const QStringList& sharedLibrarySuffixes() { return _sharedLibrarySuffixes; } - - //! returns if the id is the id for PythonQtObjectPtr - bool isPythonQtObjectPtrMetaId(int id) { return _PythonQtObjectPtr_metaId == id; } - - //! add the wrapper pointer (for reuse if the same obj appears while wrapper still exists) - void addWrapperPointer(void* obj, PythonQtInstanceWrapper* wrapper); - //! remove the wrapper ptr again - void removeWrapperPointer(void* obj); - - //! add parent class relation - bool addParentClass(const char* typeName, const char* parentTypeName, int upcastingOffset); - - //! add a handler for polymorphic downcasting - void addPolymorphicHandler(const char* typeName, PythonQtPolymorphicHandlerCB* cb); - - //! lookup existing classinfo and return new if not yet present - PythonQtClassInfo* lookupClassInfoAndCreateIfNotPresent(const char* typeName); - - //! called when a signal emitting QObject is destroyed to remove the signal handler from the hash map - void removeSignalEmitter(QObject* obj); - - //! wrap the given QObject into a Python object (or return existing wrapper!) - PyObject* wrapQObject(QObject* obj); - - //! wrap the given ptr into a Python object (or return existing wrapper!) if there is a known QObject of that name or a known wrapper in the factory - PyObject* wrapPtr(void* ptr, const QByteArray& name); - - //! registers a QObject derived class to PythonQt (this is implicitly called by addObject as well) - /* Since Qt4 does not offer a way to detect if a given classname is derived from QObject and thus has a QMetaObject, - you MUST register all your QObject derived classes here when you want them to be detected in signal and slot calls */ - void registerClass(const QMetaObject* metaobject, const char* package = NULL, PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL, PythonQtShellSetInstanceWrapperCB* shell = NULL, PyObject* module = NULL, int typeSlots = 0); - - //! add a wrapper object for the given QMetaType typeName, also does an addClassDecorators() to add constructors for variants - //! (ownership of wrapper is passed to PythonQt) - /*! Make sure that you have done a qRegisterMetaType first, if typeName is a user type! - - This will add a wrapper object that is used to make calls to the given classname \c typeName. - All slots that take a pointer to typeName as the first argument will be callable from Python on - a variant object that contains such a type. - */ - void registerCPPClass(const char* typeName, const char* parentTypeName = NULL, const char* package = NULL, PythonQtQObjectCreatorFunctionCB* wrapperCreator = NULL, PythonQtShellSetInstanceWrapperCB* shell = NULL, PyObject* module = NULL, int typeSlots = 0); - - //! as an alternative to registerClass, you can tell PythonQt the names of QObject derived classes - //! and it will register the classes when it first sees a pointer to such a derived class - void registerQObjectClassNames(const QStringList& names); - - //! add a decorator object - void addDecorators(QObject* o, int decoTypes); - - //! helper method that creates a PythonQtClassWrapper object (returns a new reference) - PythonQtClassWrapper* createNewPythonQtClassWrapper(PythonQtClassInfo* info, PyObject* module); - - //! create a new instance of the given enum type with given value (returns a new reference) - static PyObject* createEnumValueInstance(PyObject* enumType, unsigned int enumValue); - - //! helper that creates a new int derived class that represents the enum of the given name (returns a new reference) - static PyObject* createNewPythonQtEnumWrapper(const char* enumName, PyObject* parentObject); - - //! helper method that creates a PythonQtInstanceWrapper object and registers it in the object map - PythonQtInstanceWrapper* createNewPythonQtInstanceWrapper(QObject* obj, PythonQtClassInfo* info, void* wrappedPtr = NULL); - - //! get the class info for a meta object (if available) - PythonQtClassInfo* getClassInfo(const QMetaObject* meta) { return _knownClassInfos.value(meta->className()); } - - //! get the class info for a meta object (if available) - PythonQtClassInfo* getClassInfo(const QByteArray& className) { return _knownClassInfos.value(className); } - - //! creates the new module from the given pycode - PythonQtObjectPtr createModule(const QString& name, PyObject* pycode); - - //! get the current class info (for the next PythonQtClassWrapper that is created) and reset it to NULL again - PythonQtClassInfo* currentClassInfoForClassWrapperCreation(); - - //! the dummy tuple (which is empty and may be used to detected that a wrapper is called from internal wrapper creation - static PyObject* dummyTuple(); - - //! called by virtual overloads when a python return value can not be converted to the required Qt type - void handleVirtualOverloadReturnError(const char* signature, const PythonQtMethodInfo* methodInfo, PyObject* result); - - //! get access to the PythonQt module - PythonQtObjectPtr pythonQtModule() const { return _pythonQtModule; } - -private: - //! Setup the shared library suffixes by getting them from the "imp" module. - void setupSharedLibrarySuffixes(); - - //! create a new pythonqt class wrapper and place it in the pythonqt module - void createPythonQtClassWrapper(PythonQtClassInfo* info, const char* package, PyObject* module = NULL); - - //! get/create new package module (the returned object is a borrowed reference) - PyObject* packageByName(const char* name); - - //! get the wrapper for a given pointer (and remove a wrapper of an already destroyed qobject) - PythonQtInstanceWrapper* findWrapperAndRemoveUnused(void* obj); - - //! stores pointer to PyObject mapping of wrapped QObjects AND C++ objects - QHash _wrappedObjects; - - //! stores the meta info of known Qt classes - QHash _knownClassInfos; - - //! names of qobject derived classes that can be casted to qobject savely - QHash _knownQObjectClassNames; - - //! stores signal receivers for QObjects - QHash _signalReceivers; - - //! the PythonQt python module - PythonQtObjectPtr _pythonQtModule; - - //! the name of the PythonQt python module - QByteArray _pythonQtModuleName; - - //! the importer interface (if set) - PythonQtImportFileInterface* _importInterface; - - //! the default importer - PythonQtQFileImporter* _defaultImporter; - - PythonQtQObjectNoLongerWrappedCB* _noLongerWrappedCB; - PythonQtQObjectWrappedCB* _wrappedCB; - - QStringList _importIgnorePaths; - QStringList _sharedLibrarySuffixes; - - //! the cpp object wrapper factories - QList _cppWrapperFactories; - - QHash _packages; - - PythonQtClassInfo* _currentClassInfoForClassWrapperCreation; - - int _initFlags; - int _PythonQtObjectPtr_metaId; - - friend class PythonQt; -}; - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtClassInfo.cpp b/3rdparty/pythonqt/src/PythonQtClassInfo.cpp deleted file mode 100644 index b201ce388..000000000 --- a/3rdparty/pythonqt/src/PythonQtClassInfo.cpp +++ /dev/null @@ -1,849 +0,0 @@ -/* -* -* Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this library; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, -* 28359 Bremen, Germany or: -* -* http://www.mevis.de -* -*/ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQt.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtClassInfo.h" -#include "PythonQtMethodInfo.h" -#include "PythonQt.h" -#include -#include -#include - -QHash PythonQtMethodInfo::_parameterTypeDict; - -PythonQtClassInfo::PythonQtClassInfo() { - _meta = NULL; - _constructors = NULL; - _destructor = NULL; - _decoratorProvider = NULL; - _decoratorProviderCB = NULL; - _pythonQtClassWrapper = NULL; - _shellSetInstanceWrapperCB = NULL; - _metaTypeId = -1; - _typeSlots = 0; - _isQObject = false; - _enumsCreated = false; -} - -PythonQtClassInfo::~PythonQtClassInfo() -{ - clearCachedMembers(); - - if (_constructors) { - _constructors->deleteOverloadsAndThis(); - } - if (_destructor) { - _destructor->deleteOverloadsAndThis(); - } - foreach(PythonQtSlotInfo* info, _decoratorSlots) { - info->deleteOverloadsAndThis(); - } -} - -void PythonQtClassInfo::setupQObject(const QMetaObject* meta) -{ - // _wrappedClassName is already set earlier in the class setup - _isQObject = true; - _meta = meta; -} - -void PythonQtClassInfo::setupCPPObject(const QByteArray& classname) -{ - _isQObject = false; - _wrappedClassName = classname; - _metaTypeId = QMetaType::type(classname); -} - -void PythonQtClassInfo::clearCachedMembers() -{ - QHashIterator i(_cachedMembers); - while (i.hasNext()) { - PythonQtMemberInfo member = i.next().value(); - if (member._type== PythonQtMemberInfo::Slot) { - PythonQtSlotInfo* info = member._slot; - while (info) { - PythonQtSlotInfo* next = info->nextInfo(); - delete info; - info = next; - } - } - } -} - -int PythonQtClassInfo::findCharOffset(const char* sigStart, char someChar) -{ - const char* sigEnd = sigStart; - char c; - do { - c = *sigEnd++; - } while (c!=someChar && c!=0); - return sigEnd-sigStart-1; -} - -bool PythonQtClassInfo::lookForPropertyAndCache(const char* memberName) -{ - if (!_meta) return false; - - bool found = false; - bool nameMapped = false; - const char* attributeName = memberName; - // look for properties - int i = _meta->indexOfProperty(attributeName); - if (i==-1) { - // try to map name to objectName - if (qstrcmp(attributeName, "name")==0) { - attributeName = "objectName"; - nameMapped = true; - i = _meta->indexOfProperty(attributeName); - } - } - if (i!=-1) { - PythonQtMemberInfo newInfo(_meta->property(i)); - _cachedMembers.insert(attributeName, newInfo); - if (nameMapped) { - _cachedMembers.insert(memberName, newInfo); - } - #ifdef PYTHONQT_DEBUG - std::cout << "caching property " << memberName << " on " << _meta->className() << std::endl; - #endif - found = true; - } - return found; -} - -PythonQtSlotInfo* PythonQtClassInfo::recursiveFindDecoratorSlotsFromDecoratorProvider(const char* memberName, PythonQtSlotInfo* inputInfo, bool &found, QHash& memberCache, int upcastingOffset) -{ - inputInfo = findDecoratorSlotsFromDecoratorProvider(memberName, inputInfo, found, memberCache, upcastingOffset); - foreach(const ParentClassInfo& info, _parentClasses) { - inputInfo = info._parent->recursiveFindDecoratorSlotsFromDecoratorProvider(memberName, inputInfo, found, memberCache, upcastingOffset+info._upcastingOffset); - } - return inputInfo; -} - -PythonQtSlotInfo* PythonQtClassInfo::findDecoratorSlotsFromDecoratorProvider(const char* memberName, PythonQtSlotInfo* tail, bool &found, QHash& memberCache, int upcastingOffset) { - QObject* decoratorProvider = decorator(); - int memberNameLen = strlen(memberName); - if (decoratorProvider) { - //qDebug()<< "looking " << decoratorProvider->metaObject()->className() << " " << memberName << " " << upcastingOffset; - const QMetaObject* meta = decoratorProvider->metaObject(); - int numMethods = meta->methodCount(); - int startFrom = QObject::staticMetaObject.methodCount(); - for (int i = startFrom; i < numMethods; i++) { - QMetaMethod m = meta->method(i); - if ((m.methodType() == QMetaMethod::Method || - m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { - - const char* sigStart = m.signature(); - bool isClassDeco = false; - if (qstrncmp(sigStart, "static_", 7)==0) { - // skip the static_classname_ part of the string - sigStart += 7 + 1 + strlen(className()); - isClassDeco = true; - } else if (qstrncmp(sigStart, "new_", 4)==0) { - isClassDeco = true; - } else if (qstrncmp(sigStart, "delete_", 7)==0) { - isClassDeco = true; - } - // find the first '(' - int offset = findCharOffset(sigStart, '('); - - // XXX no checking is currently done if the slots have correct first argument or not... - - // check if same length and same name - if (memberNameLen == offset && qstrncmp(memberName, sigStart, offset)==0) { - found = true; - PythonQtSlotInfo* info = new PythonQtSlotInfo(this, m, i, decoratorProvider, isClassDeco?PythonQtSlotInfo::ClassDecorator:PythonQtSlotInfo::InstanceDecorator); - info->setUpcastingOffset(upcastingOffset); - //qDebug()<< "adding " << decoratorProvider->metaObject()->className() << " " << memberName << " " << upcastingOffset; - if (tail) { - tail->setNextInfo(info); - } else { - PythonQtMemberInfo newInfo(info); - memberCache.insert(memberName, newInfo); - } - tail = info; - } - } - } - } - - tail = findDecoratorSlots(memberName, memberNameLen, tail, found, memberCache, upcastingOffset); - - return tail; -} - -bool PythonQtClassInfo::lookForMethodAndCache(const char* memberName) -{ - bool found = false; - int memberNameLen = strlen(memberName); - PythonQtSlotInfo* tail = NULL; - if (_meta) { - int numMethods = _meta->methodCount(); - for (int i = 0; i < numMethods; i++) { - QMetaMethod m = _meta->method(i); - if (((m.methodType() == QMetaMethod::Method || - m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) - || m.methodType()==QMetaMethod::Signal) { - - const char* sigStart = m.signature(); - // find the first '(' - int offset = findCharOffset(sigStart, '('); - - // check if same length and same name - if (memberNameLen == offset && qstrncmp(memberName, sigStart, offset)==0) { - found = true; - PythonQtSlotInfo* info = new PythonQtSlotInfo(this, m, i); - if (tail) { - tail->setNextInfo(info); - } else { - PythonQtMemberInfo newInfo(info); - _cachedMembers.insert(memberName, newInfo); - } - tail = info; - } - } - } - } - - // look for dynamic decorators in this class and in derived classes - tail = recursiveFindDecoratorSlotsFromDecoratorProvider(memberName, tail, found, _cachedMembers, 0); - - return found; -} - -bool PythonQtClassInfo::lookForEnumAndCache(const QMetaObject* meta, const char* memberName) -{ - bool found = false; - // look for enum values - int enumCount = meta->enumeratorCount(); - for (int i=0;ienumerator(i); - // we do not want flags, they will cause our values to appear two times - if (e.isFlag()) continue; - - for (int j=0; j < e.keyCount(); j++) { - if (qstrcmp(e.key(j), memberName)==0) { - PyObject* enumType = findEnumWrapper(e.name()); - if (enumType) { - PythonQtObjectPtr enumValuePtr; - enumValuePtr.setNewRef(PythonQtPrivate::createEnumValueInstance(enumType, e.value(j))); - PythonQtMemberInfo newInfo(enumValuePtr); - _cachedMembers.insert(memberName, newInfo); - #ifdef PYTHONQT_DEBUG - std::cout << "caching enum " << memberName << " on " << meta->className() << std::endl; - #endif - found = true; - break; - } else { - std::cout << "enum " << e.name() << " not found on " << className() << std::endl; - } - } - } - } - return found; -} - -PythonQtMemberInfo PythonQtClassInfo::member(const char* memberName) -{ - PythonQtMemberInfo info = _cachedMembers.value(memberName); - if (info._type != PythonQtMemberInfo::Invalid) { - return info; - } else { - bool found = false; - - found = lookForPropertyAndCache(memberName); - if (!found) { - found = lookForMethodAndCache(memberName); - } - if (!found) { - if (_meta) { - // check enums in our meta object directly - found = lookForEnumAndCache(_meta, memberName); - } - if (!found) { - // check enums in the class hierachy of CPP classes - // look for dynamic decorators in this class and in derived classes - QList decoObjects; - recursiveCollectDecoratorObjects(decoObjects); - foreach(QObject* deco, decoObjects) { - // call on ourself for caching, but with different metaObject(): - found = lookForEnumAndCache(deco->metaObject(), memberName); - if (found) { - break; - } - } - } - } - if (!found) { - // maybe it is an enum wrapper? - PyObject* p = findEnumWrapper(memberName); - if (p) { - info._type = PythonQtMemberInfo::EnumWrapper; - info._enumWrapper = p; - _cachedMembers.insert(memberName, info); - found = true; - } - } - if (!found) { - // since python keywords can not be looked up, we check if the name contains a single trailing _ - // and remove that and look again, so that we e.g. find exec on an exec_ lookup - QByteArray mbrName(memberName); - if ((mbrName.length()>2) && - (mbrName.at(mbrName.length()-1) == '_') && - (mbrName.at(mbrName.length()-2) != '_')) { - mbrName = mbrName.mid(0,mbrName.length()-1); - found = lookForMethodAndCache(mbrName.constData()); - if (found) { - return _cachedMembers.value(mbrName); - } - } - } - if (!found) { - // we store a NotFound member, so that we get a quick result for non existing members (e.g. operator_equal lookup) - info._type = PythonQtMemberInfo::NotFound; - _cachedMembers.insert(memberName, info); - } - } - - return _cachedMembers.value(memberName); -} - -void PythonQtClassInfo::recursiveCollectDecoratorObjects(QList& decoratorObjects) { - QObject* deco = decorator(); - if (deco) { - decoratorObjects.append(deco); - } - foreach(const ParentClassInfo& info, _parentClasses) { - info._parent->recursiveCollectDecoratorObjects(decoratorObjects); - } -} - -void PythonQtClassInfo::recursiveCollectClassInfos(QList& classInfoObjects) { - classInfoObjects.append(this); - foreach(const ParentClassInfo& info, _parentClasses) { - info._parent->recursiveCollectClassInfos(classInfoObjects); - } -} - -PythonQtSlotInfo* PythonQtClassInfo::findDecoratorSlots(const char* memberName, int memberNameLen, PythonQtSlotInfo* tail, bool &found, QHash& memberCache, int upcastingOffset) -{ - QListIterator it(_decoratorSlots); - while (it.hasNext()) { - - PythonQtSlotInfo* infoOrig = it.next(); - - const char* sigStart = infoOrig->metaMethod()->signature(); - if (qstrncmp("static_", sigStart, 7)==0) { - sigStart += 7; - sigStart += findCharOffset(sigStart, '_')+1; - } - int offset = findCharOffset(sigStart, '('); - if (memberNameLen == offset && qstrncmp(memberName, sigStart, offset)==0) { - //make a copy, otherwise we will have trouble on overloads! - PythonQtSlotInfo* info = new PythonQtSlotInfo(*infoOrig); - info->setUpcastingOffset(upcastingOffset); - found = true; - if (tail) { - tail->setNextInfo(info); - } else { - PythonQtMemberInfo newInfo(info); - memberCache.insert(memberName, newInfo); - } - tail = info; - } - } - return tail; -} - -void PythonQtClassInfo::listDecoratorSlotsFromDecoratorProvider(QStringList& list, bool metaOnly) { - QObject* decoratorProvider = decorator(); - if (decoratorProvider) { - const QMetaObject* meta = decoratorProvider->metaObject(); - int numMethods = meta->methodCount(); - int startFrom = QObject::staticMetaObject.methodCount(); - for (int i = startFrom; i < numMethods; i++) { - QMetaMethod m = meta->method(i); - if ((m.methodType() == QMetaMethod::Method || - m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { - - const char* sigStart = m.signature(); - bool isClassDeco = false; - if (qstrncmp(sigStart, "static_", 7)==0) { - // skip the static_classname_ part of the string - sigStart += 7 + 1 + strlen(className()); - isClassDeco = true; - } else if (qstrncmp(sigStart, "new_", 4)==0) { - continue; - } else if (qstrncmp(sigStart, "delete_", 7)==0) { - continue; - } else if (qstrncmp(sigStart, "py_", 3)==0) { - // hide everything that starts with py_ - continue; - } - // find the first '(' - int offset = findCharOffset(sigStart, '('); - - // XXX no checking is currently done if the slots have correct first argument or not... - if (!metaOnly || isClassDeco) { - list << QString::fromLatin1(sigStart, offset); - } - } - } - } - - // look for global decorator slots - QListIterator it(_decoratorSlots); - while (it.hasNext()) { - PythonQtSlotInfo* slot = it.next(); - if (metaOnly) { - if (slot->isClassDecorator()) { - QByteArray first = slot->slotName(); - if (first.startsWith("static_")) { - int idx = first.indexOf('_'); - idx = first.indexOf('_', idx+1); - first = first.mid(idx+1); - } - list << first; - } - } else { - list << slot->slotName(); - } - } -} - -QStringList PythonQtClassInfo::propertyList() -{ - QStringList l; - if (_isQObject && _meta) { - int i; - int numProperties = _meta->propertyCount(); - for (i = 0; i < numProperties; i++) { - QMetaProperty p = _meta->property(i); - l << QString(p.name()); - } - } - return l; -} - -QStringList PythonQtClassInfo::memberList(bool metaOnly) -{ - decorator(); - - QStringList l; - QString h; - if (_isQObject && _meta && !metaOnly) { - l = propertyList(); - } - - // normal slots of QObject (or wrapper QObject) - if (!metaOnly && _meta) { - int numMethods = _meta->methodCount(); - bool skipQObj = !_isQObject; - for (int i = skipQObj?QObject::staticMetaObject.methodCount():0; i < numMethods; i++) { - QMetaMethod m = _meta->method(i); - if (((m.methodType() == QMetaMethod::Method || - m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) - || m.methodType()==QMetaMethod::Signal) { - QByteArray signa(m.signature()); - signa = signa.left(signa.indexOf('(')); - l << signa; - } - } - } - - { - // look for dynamic decorators in this class and in derived classes - QList infos; - recursiveCollectClassInfos(infos); - foreach(PythonQtClassInfo* info, infos) { - info->listDecoratorSlotsFromDecoratorProvider(l, metaOnly); - } - } - - // List enumerator keys... - QList enumMetaObjects; - if (_meta) { - enumMetaObjects << _meta; - } - // check enums in the class hierachy of CPP classes - QList decoObjects; - recursiveCollectDecoratorObjects(decoObjects); - foreach(QObject* deco, decoObjects) { - enumMetaObjects << deco->metaObject(); - } - - foreach(const QMetaObject* meta, enumMetaObjects) { - for (int i = 0; ienumeratorCount(); i++) { - QMetaEnum e = meta->enumerator(i); - l << e.name(); - // we do not want flags, they will cause our values to appear two times - if (e.isFlag()) continue; - - for (int j=0; j < e.keyCount(); j++) { - l << QString(e.key(j)); - } - } - } - - return QSet::fromList(l).toList(); -} - -const char* PythonQtClassInfo::className() -{ - return _wrappedClassName.constData(); -} - -void* PythonQtClassInfo::castTo(void* ptr, const char* classname) -{ - if (ptr==NULL) { - return NULL; - } - if (_wrappedClassName == classname) { - return ptr; - } - foreach(const ParentClassInfo& info, _parentClasses) { - void* result = info._parent->castTo((char*)ptr + info._upcastingOffset, classname); - if (result) { - return result; - } - } - return NULL; -} - -bool PythonQtClassInfo::inherits(const char* name) -{ - if (_wrappedClassName == name) { - return true; - } - foreach(const ParentClassInfo& info, _parentClasses) { - if (info._parent->inherits(name)) { - return true; - } - } - return false; -} - -bool PythonQtClassInfo::inherits(PythonQtClassInfo* classInfo) -{ - if (classInfo == this) { - return true; - } - foreach(const ParentClassInfo& info, _parentClasses) { - if (info._parent->inherits(classInfo)) { - return true; - } - } - return false; -} - -QString PythonQtClassInfo::help() -{ - decorator(); - QString h; - h += QString("--- ") + QString(className()) + QString(" ---\n"); - - if (_isQObject) { - h += "Properties:\n"; - - int i; - int numProperties = _meta->propertyCount(); - for (i = 0; i < numProperties; i++) { - QMetaProperty p = _meta->property(i); - h += QString(p.name()) + " (" + QString(p.typeName()) + " )\n"; - } - } - - if (constructors()) { - h += "Constructors:\n"; - PythonQtSlotInfo* constr = constructors(); - while (constr) { - h += constr->fullSignature() + "\n"; - constr = constr->nextInfo(); - } - } - - h += "Slots:\n"; - h += "QString help()\n"; - h += "QString className()\n"; - - if (_meta) { - int numMethods = _meta->methodCount(); - for (int i = 0; i < numMethods; i++) { - QMetaMethod m = _meta->method(i); - if ((m.methodType() == QMetaMethod::Method || - m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { - PythonQtSlotInfo slot(this, m, i); - h += slot.fullSignature()+ "\n"; - } - } - } - - // TODO xxx : decorators and enums from decorator() are missing... - // maybe we can reuse memberlist()? - - if (_meta && _meta->enumeratorCount()) { - h += "Enums:\n"; - for (int i = 0; i<_meta->enumeratorCount(); i++) { - QMetaEnum e = _meta->enumerator(i); - h += QString(e.name()) + " {"; - for (int j=0; j < e.keyCount(); j++) { - if (j) { h+= ", "; } - h += e.key(j); - } - h += " }\n"; - } - } - - if (_isQObject && _meta) { - int numMethods = _meta->methodCount(); - if (numMethods>0) { - h += "Signals:\n"; - for (int i = 0; i < numMethods; i++) { - QMetaMethod m = _meta->method(i); - if (m.methodType() == QMetaMethod::Signal) { - h += QString(m.signature()) + "\n"; - } - } - } - } - return h; -} - -PythonQtSlotInfo* PythonQtClassInfo::constructors() -{ - if (!_constructors) { - // force creation of lazy decorator, which will register the decorators - decorator(); - } - return _constructors; -} - -PythonQtSlotInfo* PythonQtClassInfo::destructor() -{ - if (!_destructor) { - // force creation of lazy decorator, which will register the decorators - decorator(); - } - return _destructor; -} - -void PythonQtClassInfo::addConstructor(PythonQtSlotInfo* info) -{ - PythonQtSlotInfo* prev = constructors(); - if (prev) { - info->setNextInfo(prev->nextInfo()); - prev->setNextInfo(info); - } else { - _constructors = info; - } -} - -void PythonQtClassInfo::addDecoratorSlot(PythonQtSlotInfo* info) -{ - _decoratorSlots.append(info); -} - -void PythonQtClassInfo::setDestructor(PythonQtSlotInfo* info) -{ - if (_destructor) { - _destructor->deleteOverloadsAndThis(); - } - _destructor = info; -} - -void PythonQtClassInfo::setMetaObject(const QMetaObject* meta) -{ - _meta = meta; - clearCachedMembers(); -} - -QObject* PythonQtClassInfo::decorator() -{ - if (!_decoratorProvider && _decoratorProviderCB) { - _decoratorProvider = (*_decoratorProviderCB)(); - if (_decoratorProvider) { - _decoratorProvider->setParent(PythonQt::priv()); - // setup enums early, since they might be needed by the constructor decorators: - if (!_enumsCreated) { - createEnumWrappers(); - } - PythonQt::priv()->addDecorators(_decoratorProvider, PythonQtPrivate::ConstructorDecorator | PythonQtPrivate::DestructorDecorator); - } - } - // check if enums need to be created and create them if they are not yet created - if (!_enumsCreated) { - createEnumWrappers(); - } - return _decoratorProvider; -} - -bool PythonQtClassInfo::hasOwnerMethodButNoOwner(void* object) -{ - PythonQtMemberInfo info = member("py_hasOwner"); - if (info._type == PythonQtMemberInfo::Slot) { - void* obj = object; - bool result = false; - void* args[2]; - args[0] = &result; - args[1] = &obj; - info._slot->decorator()->qt_metacall(QMetaObject::InvokeMetaMethod, info._slot->slotIndex(), args); - return !result; - } else { - return false; - } -} - -void* PythonQtClassInfo::recursiveCastDownIfPossible(void* ptr, char** resultClassName) -{ - if (!_polymorphicHandlers.isEmpty()) { - foreach(PythonQtPolymorphicHandlerCB* cb, _polymorphicHandlers) { - void* resultPtr = (*cb)(ptr, resultClassName); - if (resultPtr) { - return resultPtr; - } - } - } - foreach(const ParentClassInfo& info, _parentClasses) { - if (!info._parent->isQObject()) { - void* resultPtr = info._parent->recursiveCastDownIfPossible((char*)ptr + info._upcastingOffset, resultClassName); - if (resultPtr) { - return resultPtr; - } - } - } - return NULL; -} - -void* PythonQtClassInfo::castDownIfPossible(void* ptr, PythonQtClassInfo** resultClassInfo) -{ - char* className; - // this would do downcasting recursively... - // void* resultPtr = recursiveCastDownIfPossible(ptr, &className); - - // we only do downcasting on the base object, not on the whole inheritance tree... - void* resultPtr = NULL; - if (!_polymorphicHandlers.isEmpty()) { - foreach(PythonQtPolymorphicHandlerCB* cb, _polymorphicHandlers) { - resultPtr = (*cb)(ptr, &className); - if (resultPtr) { - break; - } - } - } - if (resultPtr) { - *resultClassInfo = PythonQt::priv()->getClassInfo(className); - } else { - *resultClassInfo = this; - resultPtr = ptr; - } - return resultPtr; -} - -PyObject* PythonQtClassInfo::findEnumWrapper(const QByteArray& name, PythonQtClassInfo* localScope, bool* isLocalEnum) -{ - if (isLocalEnum) { - *isLocalEnum = true; - } - int scopePos = name.lastIndexOf("::"); - if (scopePos != -1) { - if (isLocalEnum) { - *isLocalEnum = false; - } - // split into scope and enum name - QByteArray enumScope = name.mid(0,scopePos); - QByteArray enumName = name.mid(scopePos+2); - PythonQtClassInfo* info = PythonQt::priv()->getClassInfo(enumScope); - if (info) { - return info->findEnumWrapper(enumName); - } else{ - return NULL; - } - } - if (localScope) { - return localScope->findEnumWrapper(name); - } else { - return NULL; - } -} - -void PythonQtClassInfo::createEnumWrappers(const QMetaObject* meta) -{ - for (int i = meta->enumeratorOffset();ienumeratorCount();i++) { - QMetaEnum e = meta->enumerator(i); - PythonQtObjectPtr p; - p.setNewRef(PythonQtPrivate::createNewPythonQtEnumWrapper(e.name(), _pythonQtClassWrapper)); - _enumWrappers.append(p); - } -} - -void PythonQtClassInfo::createEnumWrappers() -{ - if (!_enumsCreated) { - _enumsCreated = true; - if (_meta) { - createEnumWrappers(_meta); - } - if (decorator()) { - createEnumWrappers(decorator()->metaObject()); - } - foreach(const ParentClassInfo& info, _parentClasses) { - info._parent->createEnumWrappers(); - } - } -} - -PyObject* PythonQtClassInfo::findEnumWrapper(const char* name) { - // force enum creation - if (!_enumsCreated) { - createEnumWrappers(); - } - foreach(const PythonQtObjectPtr& p, _enumWrappers) { - const char* className = ((PyTypeObject*)p.object())->tp_name; - if (qstrcmp(className, name)==0) { - return p.object(); - } - } - foreach(const ParentClassInfo& info, _parentClasses) { - PyObject* p = info._parent->findEnumWrapper(name); - if (p) return p; - } - return NULL; -} - diff --git a/3rdparty/pythonqt/src/PythonQtClassInfo.h b/3rdparty/pythonqt/src/PythonQtClassInfo.h deleted file mode 100644 index 835412355..000000000 --- a/3rdparty/pythonqt/src/PythonQtClassInfo.h +++ /dev/null @@ -1,262 +0,0 @@ -#ifndef _PYTHONQTCLASSINFO_H -#define _PYTHONQTCLASSINFO_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -#include "PythonQt.h" -#include -#include -#include -#include -#include - -class PythonQtSlotInfo; - -struct PythonQtMemberInfo { - enum Type { - Invalid, Slot, EnumValue, EnumWrapper, Property, NotFound - }; - - PythonQtMemberInfo():_type(Invalid),_slot(NULL),_enumWrapper(NULL),_enumValue(0) { } - - PythonQtMemberInfo(PythonQtSlotInfo* info) { - _type = Slot; - _slot = info; - _enumValue = NULL; - } - - PythonQtMemberInfo(const PythonQtObjectPtr& enumValue) { - _type = EnumValue; - _slot = NULL; - _enumValue = enumValue; - _enumWrapper = NULL; - } - - PythonQtMemberInfo(const QMetaProperty& prop) { - _type = Property; - _slot = NULL; - _enumValue = NULL; - _property = prop; - _enumWrapper = NULL; - } - - Type _type; - - // TODO: this could be a union... - PythonQtSlotInfo* _slot; - PyObject* _enumWrapper; - PythonQtObjectPtr _enumValue; - QMetaProperty _property; -}; - -//! a class that stores all required information about a Qt object (and an optional associated C++ class name) -/*! for fast lookup of slots when calling the object from Python -*/ -class PYTHONQT_EXPORT PythonQtClassInfo { - -public: - PythonQtClassInfo(); - ~PythonQtClassInfo(); - - //! store information about parent classes - struct ParentClassInfo { - ParentClassInfo(PythonQtClassInfo* parent, int upcastingOffset=0):_parent(parent),_upcastingOffset(upcastingOffset) - {}; - - PythonQtClassInfo* _parent; - int _upcastingOffset; - }; - - - //! setup as a QObject, taking the meta object as meta information about the QObject - void setupQObject(const QMetaObject* meta); - - //! setup as a CPP (non-QObject), taking the classname - void setupCPPObject(const QByteArray& classname); - - //! set the type capabilities - void setTypeSlots(int typeSlots) { _typeSlots = typeSlots; } - //! get the type capabilities - int typeSlots() const { return _typeSlots; } - - //! get the Python method definition for a given slot name (without return type and signature) - PythonQtMemberInfo member(const char* member); - - //! get access to the constructor slot (which may be overloaded if there are multiple constructors) - PythonQtSlotInfo* constructors(); - - //! get access to the destructor slot - PythonQtSlotInfo* destructor(); - - //! add a constructor, ownership is passed to classinfo - void addConstructor(PythonQtSlotInfo* info); - - //! set a destructor, ownership is passed to classinfo - void setDestructor(PythonQtSlotInfo* info); - - //! add a decorator slot, ownership is passed to classinfo - void addDecoratorSlot(PythonQtSlotInfo* info); - - //! get the classname (either of the QObject or of the wrapped CPP object) - const char* className(); - - //! returns if the QObject - bool isQObject() { return _isQObject; } - - //! returns if the class is a CPP wrapper - bool isCPPWrapper() { return !_isQObject; } - - //! get the meta object - const QMetaObject* metaObject() { return _meta; } - - //! set the meta object, this will reset the caching - void setMetaObject(const QMetaObject* meta); - - //! returns if this class inherits from the given classname - bool inherits(const char* classname); - - //! returns if this class inherits from the given classinfo - bool inherits(PythonQtClassInfo* info); - - //! casts the given \c ptr to an object of type \c classname, returns the new pointer - //! which might be different to \c ptr due to C++ multiple inheritance - //! (if the cast is not possible or if ptr is NULL, NULL is returned) - void* castTo(void* ptr, const char* classname); - - //! get help string for the metaobject - QString help(); - - //! get list of all properties (on QObjects only, otherwise the list is empty) - QStringList propertyList(); - - //! get list of all members - QStringList memberList(bool metaOnly = false); - - //! get the meta type id of this class (only valid for isCPPWrapper() == true) - int metaTypeId() { return _metaTypeId; } - - //! set an additional decorator provider that offers additional decorator slots for this class - void setDecoratorProvider(PythonQtQObjectCreatorFunctionCB* cb) { _decoratorProviderCB = cb; _decoratorProvider = NULL; } - - //! get the decorator qobject instance - QObject* decorator(); - - //! add the parent class info of a CPP object - void addParentClass(const ParentClassInfo& info) { _parentClasses.append(info); } - - //! check if the special method "py_hasOwner" is implemented and if it returns false, which means that the object may be destroyed - bool hasOwnerMethodButNoOwner(void* object); - - //! set the associated PythonQtClassWrapper (which handles instance creation of this type) - void setPythonQtClassWrapper(PyObject* obj) { _pythonQtClassWrapper = obj; } - - //! get the associated PythonQtClassWrapper (which handles instance creation of this type) - PyObject* pythonQtClassWrapper() { return _pythonQtClassWrapper; } - - //! set the shell set instance wrapper cb - void setShellSetInstanceWrapperCB(PythonQtShellSetInstanceWrapperCB* cb) { - _shellSetInstanceWrapperCB = cb; - } - - //! get the shell set instance wrapper cb - PythonQtShellSetInstanceWrapperCB* shellSetInstanceWrapperCB() { - return _shellSetInstanceWrapperCB; - } - - //! add a handler for polymorphic downcasting - void addPolymorphicHandler(PythonQtPolymorphicHandlerCB* cb) { _polymorphicHandlers.append(cb); } - - //! cast the pointer down in the class hierarchy if a polymorphic handler allows to do that - void* castDownIfPossible(void* ptr, PythonQtClassInfo** resultClassInfo); - - //! returns if the localScope has an enum of that type name or if the enum contains a :: scope, if that class contails the enum - static PyObject* findEnumWrapper(const QByteArray& name, PythonQtClassInfo* localScope, bool* isLocalEnum = NULL); - -private: - void createEnumWrappers(); - void createEnumWrappers(const QMetaObject* meta); - PyObject* findEnumWrapper(const char* name); - - //! clear all cached members - void clearCachedMembers(); - - void* recursiveCastDownIfPossible(void* ptr, char** resultClassName); - - PythonQtSlotInfo* findDecoratorSlotsFromDecoratorProvider(const char* memberName, PythonQtSlotInfo* inputInfo, bool &found, QHash& memberCache, int upcastingOffset); - void listDecoratorSlotsFromDecoratorProvider(QStringList& list, bool metaOnly); - PythonQtSlotInfo* recursiveFindDecoratorSlotsFromDecoratorProvider(const char* memberName, PythonQtSlotInfo* inputInfo, bool &found, QHash& memberCache, int upcastingOffset); - - void recursiveCollectClassInfos(QList& classInfoObjects); - void recursiveCollectDecoratorObjects(QList& decoratorObjects); - - bool lookForPropertyAndCache(const char* memberName); - bool lookForMethodAndCache(const char* memberName); - bool lookForEnumAndCache(const QMetaObject* m, const char* memberName); - - PythonQtSlotInfo* findDecoratorSlots(const char* memberName, int memberNameLen, PythonQtSlotInfo* tail, bool &found, QHash& memberCache, int upcastingOffset); - int findCharOffset(const char* sigStart, char someChar); - - QHash _cachedMembers; - - PythonQtSlotInfo* _constructors; - PythonQtSlotInfo* _destructor; - QList _decoratorSlots; - - QList _enumWrappers; - - const QMetaObject* _meta; - - QByteArray _wrappedClassName; - QList _parentClasses; - - QList _polymorphicHandlers; - - QObject* _decoratorProvider; - PythonQtQObjectCreatorFunctionCB* _decoratorProviderCB; - - PyObject* _pythonQtClassWrapper; - - PythonQtShellSetInstanceWrapperCB* _shellSetInstanceWrapperCB; - - int _metaTypeId; - int _typeSlots; - - bool _isQObject; - bool _enumsCreated; - -}; - -//--------------------------------------------------------------- - - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtClassWrapper.cpp b/3rdparty/pythonqt/src/PythonQtClassWrapper.cpp deleted file mode 100644 index 411c7bf25..000000000 --- a/3rdparty/pythonqt/src/PythonQtClassWrapper.cpp +++ /dev/null @@ -1,464 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtClassWrapper.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtClassWrapper.h" -#include - -#include "PythonQt.h" -#include "PythonQtSlot.h" -#include "PythonQtClassInfo.h" -#include "PythonQtConversion.h" -#include "PythonQtInstanceWrapper.h" - -static PyObject* PythonQtInstanceWrapper_invert(PythonQtInstanceWrapper* wrapper) -{ - PyObject* result = NULL; - static QByteArray memberName = "__invert__"; - PythonQtMemberInfo opSlot = wrapper->classInfo()->member(memberName); - if (opSlot._type == PythonQtMemberInfo::Slot) { - result = PythonQtSlotFunction_CallImpl(wrapper->classInfo(), wrapper->_obj, opSlot._slot, NULL, NULL, wrapper->_wrappedPtr); - } - return result; -} - -static int PythonQtInstanceWrapper_nonzero(PythonQtInstanceWrapper* wrapper) -{ - int result = (wrapper->_wrappedPtr == NULL && wrapper->_obj == NULL)?0:1; - if (result) { - static QByteArray memberName = "__nonzero__"; - PythonQtMemberInfo opSlot = wrapper->classInfo()->member(memberName); - if (opSlot._type == PythonQtMemberInfo::Slot) { - PyObject* resultObj = PythonQtSlotFunction_CallImpl(wrapper->classInfo(), wrapper->_obj, opSlot._slot, NULL, NULL, wrapper->_wrappedPtr); - if (resultObj == Py_False) { - result = 0; - } - Py_XDECREF(resultObj); - } - } - return result; -} - - -static PyObject* PythonQtInstanceWrapper_binaryfunc(PyObject* self, PyObject* other, const QByteArray& opName, const QByteArray& fallbackOpName = QByteArray()) -{ - // since we disabled type checking, we can receive any object as self, but we currently only support - // different objects on the right. Otherwise we would need to generate __radd__ etc. methods. - if (!PyObject_TypeCheck(self, &PythonQtInstanceWrapper_Type)) { - QString error = "Unsupported operation " + opName + "(" + self->ob_type->tp_name + ", " + other->ob_type->tp_name + ")"; - PyErr_SetString(PyExc_ArithmeticError, error.toLatin1().data()); - return NULL; - } - PythonQtInstanceWrapper* wrapper = (PythonQtInstanceWrapper*)self; - PyObject* result = NULL; - PythonQtMemberInfo opSlot = wrapper->classInfo()->member(opName); - if (opSlot._type == PythonQtMemberInfo::Slot) { - // TODO get rid of tuple - PyObject* args = PyTuple_New(1); - Py_INCREF(other); - PyTuple_SET_ITEM(args, 0, other); - result = PythonQtSlotFunction_CallImpl(wrapper->classInfo(), wrapper->_obj, opSlot._slot, args, NULL, wrapper->_wrappedPtr); - Py_DECREF(args); - if (!result && !fallbackOpName.isEmpty()) { - // try fallback if we did not get a result - result = PythonQtInstanceWrapper_binaryfunc(self, other, fallbackOpName); - } - } - return result; -} - -#define BINARY_OP(NAME) \ -static PyObject* PythonQtInstanceWrapper_ ## NAME(PyObject* self, PyObject* other) \ -{ \ - static const QByteArray opName("__" #NAME "__"); \ - return PythonQtInstanceWrapper_binaryfunc(self, other, opName); \ -} - -#define BINARY_OP_INPLACE(NAME) \ - static PyObject* PythonQtInstanceWrapper_i ## NAME(PyObject* self, PyObject* other) \ -{ \ - static const QByteArray opName("__i" #NAME "__"); \ - static const QByteArray fallbackName("__" #NAME "__"); \ - return PythonQtInstanceWrapper_binaryfunc(self, other, opName, fallbackName); \ -} - -BINARY_OP(add) -BINARY_OP(sub) -BINARY_OP(mul) -BINARY_OP(div) -BINARY_OP(and) -BINARY_OP(or) -BINARY_OP(xor) -BINARY_OP(mod) -BINARY_OP(lshift) -BINARY_OP(rshift) - -BINARY_OP_INPLACE(add) -BINARY_OP_INPLACE(sub) -BINARY_OP_INPLACE(mul) -BINARY_OP_INPLACE(div) -BINARY_OP_INPLACE(and) -BINARY_OP_INPLACE(or) -BINARY_OP_INPLACE(xor) -BINARY_OP_INPLACE(mod) -BINARY_OP_INPLACE(lshift) -BINARY_OP_INPLACE(rshift) - -static void initializeSlots(PythonQtClassWrapper* wrap) -{ - int typeSlots = wrap->classInfo()->typeSlots(); - if (typeSlots) { - if (typeSlots & PythonQt::Type_Add) { - wrap->_base.as_number.nb_add = (binaryfunc)PythonQtInstanceWrapper_add; - } - if (typeSlots & PythonQt::Type_Subtract) { - wrap->_base.as_number.nb_subtract = (binaryfunc)PythonQtInstanceWrapper_sub; - } - if (typeSlots & PythonQt::Type_Multiply) { - wrap->_base.as_number.nb_multiply = (binaryfunc)PythonQtInstanceWrapper_mul; - } - if (typeSlots & PythonQt::Type_Divide) { - wrap->_base.as_number.nb_divide = (binaryfunc)PythonQtInstanceWrapper_div; - wrap->_base.as_number.nb_true_divide = (binaryfunc)PythonQtInstanceWrapper_div; - } - if (typeSlots & PythonQt::Type_And) { - wrap->_base.as_number.nb_and = (binaryfunc)PythonQtInstanceWrapper_and; - } - if (typeSlots & PythonQt::Type_Or) { - wrap->_base.as_number.nb_or = (binaryfunc)PythonQtInstanceWrapper_or; - } - if (typeSlots & PythonQt::Type_Xor) { - wrap->_base.as_number.nb_xor = (binaryfunc)PythonQtInstanceWrapper_xor; - } - if (typeSlots & PythonQt::Type_Mod) { - wrap->_base.as_number.nb_remainder = (binaryfunc)PythonQtInstanceWrapper_mod; - } - if (typeSlots & PythonQt::Type_LShift) { - wrap->_base.as_number.nb_lshift = (binaryfunc)PythonQtInstanceWrapper_lshift; - } - if (typeSlots & PythonQt::Type_RShift) { - wrap->_base.as_number.nb_rshift = (binaryfunc)PythonQtInstanceWrapper_rshift; - } - - if (typeSlots & PythonQt::Type_InplaceAdd) { - wrap->_base.as_number.nb_add = (binaryfunc)PythonQtInstanceWrapper_iadd; - } - if (typeSlots & PythonQt::Type_InplaceSubtract) { - wrap->_base.as_number.nb_subtract = (binaryfunc)PythonQtInstanceWrapper_isub; - } - if (typeSlots & PythonQt::Type_InplaceMultiply) { - wrap->_base.as_number.nb_multiply = (binaryfunc)PythonQtInstanceWrapper_imul; - } - if (typeSlots & PythonQt::Type_InplaceDivide) { - wrap->_base.as_number.nb_inplace_divide = (binaryfunc)PythonQtInstanceWrapper_idiv; - wrap->_base.as_number.nb_inplace_true_divide = (binaryfunc)PythonQtInstanceWrapper_idiv; - } - if (typeSlots & PythonQt::Type_InplaceAnd) { - wrap->_base.as_number.nb_inplace_and = (binaryfunc)PythonQtInstanceWrapper_iand; - } - if (typeSlots & PythonQt::Type_InplaceOr) { - wrap->_base.as_number.nb_inplace_or = (binaryfunc)PythonQtInstanceWrapper_ior; - } - if (typeSlots & PythonQt::Type_InplaceXor) { - wrap->_base.as_number.nb_inplace_xor = (binaryfunc)PythonQtInstanceWrapper_ixor; - } - if (typeSlots & PythonQt::Type_InplaceMod) { - wrap->_base.as_number.nb_inplace_remainder = (binaryfunc)PythonQtInstanceWrapper_imod; - } - if (typeSlots & PythonQt::Type_InplaceLShift) { - wrap->_base.as_number.nb_inplace_lshift = (binaryfunc)PythonQtInstanceWrapper_ilshift; - } - if (typeSlots & PythonQt::Type_InplaceRShift) { - wrap->_base.as_number.nb_inplace_rshift = (binaryfunc)PythonQtInstanceWrapper_irshift; - } - if (typeSlots & PythonQt::Type_Invert) { - wrap->_base.as_number.nb_invert = (unaryfunc)PythonQtInstanceWrapper_invert; - } - if (typeSlots & PythonQt::Type_NonZero) { - wrap->_base.as_number.nb_nonzero = (inquiry)PythonQtInstanceWrapper_nonzero; - } - } -} - -static PyObject* PythonQtClassWrapper_alloc(PyTypeObject *self, Py_ssize_t nitems) -{ - // call the default type alloc - PyObject* obj = PyType_Type.tp_alloc(self, nitems); - - // take current class type, if we are called via newPythonQtClassWrapper() - PythonQtClassWrapper* wrap = (PythonQtClassWrapper*)obj; - wrap->_classInfo = PythonQt::priv()->currentClassInfoForClassWrapperCreation(); - if (wrap->_classInfo) { - initializeSlots(wrap); - } - - return obj; -} - - -static int PythonQtClassWrapper_init(PythonQtClassWrapper* self, PyObject* args, PyObject* kwds) -{ - // call the default type init - if (PyType_Type.tp_init((PyObject *)self, args, kwds) < 0) { - return -1; - } - - // if we have no CPP class information, try our base class - if (!self->classInfo()) { - PyTypeObject* superType = ((PyTypeObject *)self)->tp_base; - - if (!superType || (superType->ob_type != &PythonQtClassWrapper_Type)) { - PyErr_Format(PyExc_TypeError, "type %s is not derived from PythonQtClassWrapper", ((PyTypeObject*)self)->tp_name); - return -1; - } - - // take the class info from the superType - self->_classInfo = ((PythonQtClassWrapper*)superType)->classInfo(); - } - - return 0; -} - -static PyObject *PythonQtClassWrapper_classname(PythonQtClassWrapper* type) -{ - return PyString_FromString((QString("Class_") + type->classInfo()->className()).toLatin1().data()); -} - -static PyObject *PythonQtClassWrapper_help(PythonQtClassWrapper* type) -{ - return PythonQt::self()->helpCalled(type->classInfo()); -} - -PyObject *PythonQtClassWrapper__init__(PythonQtClassWrapper *type, PyObject *args) -{ - Py_ssize_t argc = PyTuple_Size(args); - if (argc>0) { - // we need to call __init__ of the instance - PyObject* self = PyTuple_GET_ITEM(args, 0); - if (PyObject_TypeCheck(self, (PyTypeObject*)type->classInfo()->pythonQtClassWrapper())) { - PyObject* newargs = PyTuple_New(argc-1); - for (int i = 0;itp_dict; - if (!wrapper->classInfo()) { - Py_INCREF(dict); - return dict; - } - dict = PyDict_Copy(dict); - - QStringList l = wrapper->classInfo()->memberList(false); - foreach (QString name, l) { - PyObject* o = PyObject_GetAttrString(obj, name.toLatin1().data()); - if (o) { - PyDict_SetItemString(dict, name.toLatin1().data(), o); - Py_DECREF(o); - } else { - // it must have been a property or child, which we do not know as a class object... - } - } - if (wrapper->classInfo()->constructors()) { - PyObject* func = PyCFunction_New(&PythonQtClassWrapper_methods[0], obj); - PyDict_SetItemString(dict, "__init__", func); - Py_DECREF(func); - } - for (int i = 1;i<3;i++) { - PyObject* func = PyCFunction_New(&PythonQtClassWrapper_methods[i], obj); - PyDict_SetItemString(dict, PythonQtClassWrapper_methods[i].ml_name, func); - Py_DECREF(func); - } - return dict; - } - - if (wrapper->classInfo()) { - PythonQtMemberInfo member = wrapper->classInfo()->member(attributeName); - if (member._type == PythonQtMemberInfo::EnumValue) { - PyObject* enumValue = member._enumValue; - Py_INCREF(enumValue); - return enumValue; - } else if (member._type == PythonQtMemberInfo::EnumWrapper) { - PyObject* enumWrapper = member._enumWrapper; - Py_INCREF(enumWrapper); - return enumWrapper; - } else if (member._type == PythonQtMemberInfo::Slot) { - // we return all slots, even the instance slots, since they are callable as unbound slots with self argument - return PythonQtSlotFunction_New(member._slot, obj, NULL); - } - } - - // look for the interal methods (className(), help()) - PyObject* internalMethod = Py_FindMethod( PythonQtClassWrapper_methods, obj, (char*)attributeName); - if (internalMethod) { - return internalMethod; - } - PyErr_Clear(); - - // look in super - PyObject* superAttr = PyType_Type.tp_getattro(obj, name); - if (superAttr) { - return superAttr; - } - - QString error = QString(wrapper->classInfo()->className()) + " has no attribute named '" + QString(attributeName) + "'"; - PyErr_SetString(PyExc_AttributeError, error.toLatin1().data()); - return NULL; -} - -static int PythonQtClassWrapper_setattro(PyObject *obj,PyObject *name,PyObject *value) -{ - return PyType_Type.tp_setattro(obj,name,value); -} - -/* -static PyObject * PythonQtClassWrapper_repr(PyObject * obj) -{ - PythonQtClassWrapper* wrapper = (PythonQtClassWrapper*)obj; - if (wrapper->classInfo()->isCPPWrapper()) { - const QMetaObject* meta = wrapper->classInfo()->metaObject(); - if (!meta) { - QObject* decorator = wrapper->classInfo()->decorator(); - if (decorator) { - meta = decorator->metaObject(); - } - } - if (meta) { - return PyString_FromFormat("%s Class (C++ wrapped by %s)", wrapper->classInfo()->className(), meta->className()); - } else { - return PyString_FromFormat("%s Class (C++ unwrapped)", wrapper->classInfo()->className()); - } - } else { - return PyString_FromFormat("%s Class", wrapper->classInfo()->className()); - } -} - -*/ - -PyTypeObject PythonQtClassWrapper_Type = { - PyObject_HEAD_INIT(NULL) - 0, /*ob_size*/ - "PythonQt.PythonQtClassWrapper", /*tp_name*/ - sizeof(PythonQtClassWrapper), /*tp_basicsize*/ - 0, /*tp_itemsize*/ - 0, /*tp_dealloc*/ - 0, /*tp_print*/ - 0, /*tp_getattr*/ - 0, /*tp_setattr*/ - 0, /*tp_compare*/ - 0, //PythonQtClassWrapper_repr, /*tp_repr*/ - 0, /*tp_as_number*/ - 0, /*tp_as_sequence*/ - 0, /*tp_as_mapping*/ - 0, /*tp_hash */ - 0, /*tp_call*/ - 0, /*tp_str*/ - PythonQtClassWrapper_getattro, /*tp_getattro*/ - PythonQtClassWrapper_setattro, /*tp_setattro*/ - 0, /*tp_as_buffer*/ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/ - 0, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - (initproc)PythonQtClassWrapper_init, /* tp_init */ - PythonQtClassWrapper_alloc, /* tp_alloc */ - 0, /* tp_new */ - 0, /* tp_free */ -}; - -//------------------------------------------------------- - diff --git a/3rdparty/pythonqt/src/PythonQtClassWrapper.h b/3rdparty/pythonqt/src/PythonQtClassWrapper.h deleted file mode 100644 index db5f96ffb..000000000 --- a/3rdparty/pythonqt/src/PythonQtClassWrapper.h +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef _PYTHONQTCLASSWRAPPER_H -#define _PYTHONQTCLASSWRAPPER_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtClassWrapper.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include - -#include "PythonQtSystem.h" - -#include "structmember.h" -#include "methodobject.h" -#include "compile.h" -#include "eval.h" -#include - -class PythonQtClassInfo; - -//! the type of the PythonQt class wrapper objects -extern PYTHONQT_EXPORT PyTypeObject PythonQtClassWrapper_Type; - -//--------------------------------------------------------------- -//! a Python wrapper object for PythonQt wrapped classes -//! which inherits from the Python type object to allow -//! deriving of wrapped CPP classes from Python. -typedef struct { - PyHeapTypeObject _base; - - //! the additional class information that PythonQt stores for the CPP class - PythonQtClassInfo* _classInfo; - - //! get the class info - PythonQtClassInfo* classInfo() { return _classInfo; } - -} PythonQtClassWrapper; - -//--------------------------------------------------------------- - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtConversion.cpp b/3rdparty/pythonqt/src/PythonQtConversion.cpp deleted file mode 100644 index 7ea97c4fe..000000000 --- a/3rdparty/pythonqt/src/PythonQtConversion.cpp +++ /dev/null @@ -1,1253 +0,0 @@ -/* -* -* Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this library; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, -* 28359 Bremen, Germany or: -* -* http://www.mevis.de -* -*/ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtConversion.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtConversion.h" -#include "PythonQtVariants.h" -#include -#include -#include - -PythonQtValueStorage PythonQtConv::global_valueStorage; -PythonQtValueStorage PythonQtConv::global_ptrStorage; -PythonQtValueStorage PythonQtConv::global_variantStorage; - -QHash PythonQtConv::_metaTypeToPythonConverters; -QHash PythonQtConv::_pythonToMetaTypeConverters; - -PyObject* PythonQtConv::GetPyBool(bool val) -{ - PyObject* r = val?Py_True:Py_False; - Py_INCREF(r); - return r; -} - -PyObject* PythonQtConv::ConvertQtValueToPython(const PythonQtMethodInfo::ParameterInfo& info, const void* data) { - // is it an enum value? - if (info.enumWrapper) { - if (info.pointerCount==0) { - return PythonQtPrivate::createEnumValueInstance(info.enumWrapper, *((unsigned int*)data)); - } else { - // we do not support pointers to enums (who needs them?) - Py_INCREF(Py_None); - return Py_None; - } - } - - if (info.typeId == QMetaType::Void) { - Py_INCREF(Py_None); - return Py_None; - } else if ((info.pointerCount == 1) && (info.typeId == QMetaType::Char)) { - // a char ptr will probably be a null terminated string, so we support that: - return PyString_FromString(*((char**)data)); - } else if ((info.typeId == PythonQtMethodInfo::Unknown || info.typeId >= QMetaType::User) && - info.name.startsWith("QList<")) { - // it is a QList template: - QByteArray innerType = info.name.mid(6,info.name.length()-7); - if (innerType.endsWith("*")) { - innerType.truncate(innerType.length()-1); - QList* listPtr = NULL; - if (info.pointerCount == 1) { - listPtr = *((QList**)data); - } else if (info.pointerCount == 0) { - listPtr = (QList*)data; - } - if (listPtr) { - return ConvertQListOfPointerTypeToPythonList(listPtr, innerType); - } else { - return NULL; - } - } - } - - if (info.typeId >= QMetaType::User) { - // if a converter is registered, we use is: - PythonQtConvertMetaTypeToPythonCB* converter = _metaTypeToPythonConverters.value(info.typeId); - if (converter) { - return (*converter)(data, info.typeId); - } - } - - // special handling did not match, so we convert the usual way (either pointer or value version): - if (info.pointerCount == 1) { - // convert the pointer to a Python Object (we can handle ANY C++ object, in the worst case we just know the type and the pointer) - return PythonQt::priv()->wrapPtr(*((void**)data), info.name); - } else if (info.pointerCount == 0) { - // handle values that are not yet handled and not pointers - return ConvertQtValueToPythonInternal(info.typeId, data); - } else { - return NULL; - } -} - -PyObject* PythonQtConv::ConvertQtValueToPythonInternal(int type, const void* data) { - switch (type) { - case QMetaType::Void: - Py_INCREF(Py_None); - return Py_None; - case QMetaType::Char: - return PyInt_FromLong(*((char*)data)); - case QMetaType::UChar: - return PyInt_FromLong(*((unsigned char*)data)); - case QMetaType::Short: - return PyInt_FromLong(*((short*)data)); - case QMetaType::UShort: - return PyInt_FromLong(*((unsigned short*)data)); - case QMetaType::Long: - return PyInt_FromLong(*((long*)data)); - case QMetaType::ULong: - // does not fit into simple int of python - return PyLong_FromUnsignedLong(*((unsigned long*)data)); - case QMetaType::Bool: - return PythonQtConv::GetPyBool(*((bool*)data)); - case QMetaType::Int: - return PyInt_FromLong(*((int*)data)); - case QMetaType::UInt: - // does not fit into simple int of python - return PyLong_FromUnsignedLong(*((unsigned int*)data)); - case QMetaType::QChar: - return PyInt_FromLong(*((short*)data)); - case QMetaType::Float: - return PyFloat_FromDouble(*((float*)data)); - case QMetaType::Double: - return PyFloat_FromDouble(*((double*)data)); - case QMetaType::LongLong: - return PyLong_FromLongLong(*((qint64*)data)); - case QMetaType::ULongLong: - return PyLong_FromUnsignedLongLong(*((quint64*)data)); - // implicit conversion from QByteArray to str has been removed: - //case QMetaType::QByteArray: { - // QByteArray* v = (QByteArray*) data; - // return PyString_FromStringAndSize(*v, v->size()); - // } - case QMetaType::QVariantMap: - return PythonQtConv::QVariantMapToPyObject(*((QVariantMap*)data)); - case QMetaType::QVariantList: - return PythonQtConv::QVariantListToPyObject(*((QVariantList*)data)); - case QMetaType::QString: - return PythonQtConv::QStringToPyObject(*((QString*)data)); - case QMetaType::QStringList: - return PythonQtConv::QStringListToPyObject(*((QStringList*)data)); - - case PythonQtMethodInfo::Variant: - return PythonQtConv::QVariantToPyObject(*((QVariant*)data)); - case QMetaType::QObjectStar: - case QMetaType::QWidgetStar: - return PythonQt::priv()->wrapQObject(*((QObject**)data)); - - default: - if (PythonQt::priv()->isPythonQtObjectPtrMetaId(type)) { - // special case, it is a PythonQtObjectPtr which contains a PyObject, take it directly: - PyObject* o = ((PythonQtObjectPtr*)data)->object(); - Py_INCREF(o); - return o; - } else { - if (type > 0) { - // if the type is known, we can construct it via QMetaType::construct - void* newCPPObject = QMetaType::construct(type, data); - // XXX this could be optimized by using metatypeid directly - PythonQtInstanceWrapper* wrap = (PythonQtInstanceWrapper*)PythonQt::priv()->wrapPtr(newCPPObject, QMetaType::typeName(type)); - wrap->_ownedByPythonQt = true; - wrap->_useQMetaTypeDestroy = true; - return (PyObject*)wrap; - } - std::cerr << "Unknown type that can not be converted to Python: " << type << ", in " << __FILE__ << ":" << __LINE__ << std::endl; - } -} -Py_INCREF(Py_None); -return Py_None; - } - - void* PythonQtConv::CreateQtReturnValue(const PythonQtMethodInfo::ParameterInfo& info) { - void* ptr = NULL; - if (info.pointerCount>1) { - return NULL; - } else if (info.pointerCount==1) { - PythonQtValueStorage_ADD_VALUE(global_ptrStorage, void*, NULL, ptr); - } else if (info.enumWrapper) { - // create enum return value - PythonQtValueStorage_ADD_VALUE(PythonQtConv::global_valueStorage, long, 0, ptr); - } else { - switch (info.typeId) { - case QMetaType::Char: - case QMetaType::UChar: - case QMetaType::Short: - case QMetaType::UShort: - case QMetaType::Long: - case QMetaType::ULong: - case QMetaType::Bool: - case QMetaType::Int: - case QMetaType::UInt: - case QMetaType::QChar: - case QMetaType::Float: - case QMetaType::Double: - PythonQtValueStorage_ADD_VALUE(global_valueStorage, qint64, 0, ptr); - break; - case PythonQtMethodInfo::Variant: - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, 0, ptr); - // return the ptr to the variant - break; - default: - if (info.typeId == PythonQtMethodInfo::Unknown) { - // check if we have a QList of pointers, which we can circumvent with a QList - if (info.name.startsWith("QList<")) { - QByteArray innerType = info.name.mid(6,info.name.length()-7); - if (innerType.endsWith("*")) { - static int id = QMetaType::type("QList"); - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QVariant::Type(id), ptr); - // return the constData pointer that will be filled with the result value later on - ptr = (void*)((QVariant*)ptr)->constData(); - } - } - } - - if (!ptr && info.typeId!=PythonQtMethodInfo::Unknown) { - // everything else is stored in a QVariant, if we know the meta type... - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QVariant::Type(info.typeId), ptr); - // return the constData pointer that will be filled with the result value later on - ptr = (void*)((QVariant*)ptr)->constData(); - } - } - } - return ptr; - } - - void* PythonQtConv::castWrapperTo(PythonQtInstanceWrapper* wrapper, const QByteArray& className, bool& ok) - { - void* object; - if (wrapper->classInfo()->isCPPWrapper()) { - object = wrapper->_wrappedPtr; - } else { - QObject* tmp = wrapper->_obj; - object = tmp; - } - if (object) { - // if we can be upcasted to the given name, we pass the casted pointer in: - object = wrapper->classInfo()->castTo(object, className); - ok = object!=NULL; - } else { - // if it is a NULL ptr, we need to check if it inherits, so that we might pass the NULL ptr - ok = wrapper->classInfo()->inherits(className); - } - return object; - } - -void* PythonQtConv::handlePythonToQtAutoConversion(int typeId, PyObject* obj, void* alreadyAllocatedCPPObject) -{ - void* ptr = alreadyAllocatedCPPObject; - - static int penId = QMetaType::type("QPen"); - static int brushId = QMetaType::type("QBrush"); - static int cursorId = QMetaType::type("QCursor"); - static int colorId = QMetaType::type("QColor"); - static PyObject* qtGlobalColorEnum = PythonQtClassInfo::findEnumWrapper("Qt::GlobalColor", NULL); - if (typeId == cursorId) { - static PyObject* qtCursorShapeEnum = PythonQtClassInfo::findEnumWrapper("Qt::CursorShape", NULL); - if ((PyObject*)obj->ob_type == qtCursorShapeEnum) { - Qt::CursorShape val = (Qt::CursorShape)PyInt_AS_LONG(obj); - if (!ptr) { - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QCursor(), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - *((QCursor*)ptr) = QCursor(val); - return ptr; - } - } else if (typeId == penId) { - // brushes can be created from QColor and from Qt::GlobalColor (and from brushes, but that's the default) - static PyObject* qtColorClass = PythonQt::priv()->getClassInfo("QColor")->pythonQtClassWrapper(); - if ((PyObject*)obj->ob_type == qtGlobalColorEnum) { - Qt::GlobalColor val = (Qt::GlobalColor)PyInt_AS_LONG(obj); - if (!ptr) { - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QPen(), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - *((QPen*)ptr) = QPen(QColor(val)); - return ptr; - } else if ((PyObject*)obj->ob_type == qtColorClass) { - if (!ptr) { - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QPen(), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - *((QPen*)ptr) = QPen(*((QColor*)((PythonQtInstanceWrapper*)obj)->_wrappedPtr)); - return ptr; - } - } else if (typeId == brushId) { - // brushes can be created from QColor and from Qt::GlobalColor (and from brushes, but that's the default) - static PyObject* qtColorClass = PythonQt::priv()->getClassInfo("QColor")->pythonQtClassWrapper(); - if ((PyObject*)obj->ob_type == qtGlobalColorEnum) { - Qt::GlobalColor val = (Qt::GlobalColor)PyInt_AS_LONG(obj); - if (!ptr) { - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QBrush(), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - *((QBrush*)ptr) = QBrush(QColor(val)); - return ptr; - } else if ((PyObject*)obj->ob_type == qtColorClass) { - if (!ptr) { - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QBrush(), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - *((QBrush*)ptr) = QBrush(*((QColor*)((PythonQtInstanceWrapper*)obj)->_wrappedPtr)); - return ptr; - } - } else if (typeId == colorId) { - // colors can be created from Qt::GlobalColor (and from colors, but that's the default) - if ((PyObject*)obj->ob_type == qtGlobalColorEnum) { - Qt::GlobalColor val = (Qt::GlobalColor)PyInt_AS_LONG(obj); - if (!ptr) { - PythonQtValueStorage_ADD_VALUE(global_variantStorage, QVariant, QColor(), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - *((QColor*)ptr) = QColor(val); - return ptr; - } - } - return NULL; -} - -void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& info, PyObject* obj, bool strict, PythonQtClassInfo* /*classInfo*/, void* alreadyAllocatedCPPObject) - { - bool ok = false; - void* ptr = NULL; - - // autoconversion of QPen/QBrush/QCursor/QColor from different type - if (info.pointerCount==0 && !strict) { - ptr = handlePythonToQtAutoConversion(info.typeId, obj, alreadyAllocatedCPPObject); - if (ptr) { - return ptr; - } - } - - if (PyObject_TypeCheck(obj, &PythonQtInstanceWrapper_Type) && info.typeId != PythonQtMethodInfo::Variant) { - // if we have a Qt wrapper object and if we do not need a QVariant, we do the following: - // (the Variant case is handled below in a switch) - - // a C++ wrapper (can be passed as pointer or reference) - PythonQtInstanceWrapper* wrap = (PythonQtInstanceWrapper*)obj; - void* object = castWrapperTo(wrap, info.name, ok); - if (ok) { - if (info.pointerCount==1) { - // store the wrapped pointer in an extra pointer and let ptr point to the extra pointer - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_ptrStorage, void*, object, ptr); - } else if (info.pointerCount==0) { - // store the wrapped pointer directly, since we are a reference - ptr = object; - } - } else { - // not matching - } - } else if (info.pointerCount == 1) { - // a pointer - if (info.typeId == QMetaType::Char || info.typeId == QMetaType::UChar) - { - QString str = PyObjGetString(obj, strict, ok); - if (ok) { - void* ptr2 = NULL; - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(str.toUtf8()), ptr2); - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_ptrStorage, void*, (((QByteArray*)((QVariant*)ptr2)->constData())->data()), ptr); - } - } else if (info.name == "PyObject") { - // handle low level PyObject directly - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_ptrStorage, void*, obj, ptr); - } else if (obj == Py_None) { - // None is treated as a NULL ptr - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_ptrStorage, void*, NULL, ptr); - } else { - // if we are not strict, we try if we are passed a 0 integer - if (!strict) { - bool ok; - int value = PyObjGetInt(obj, true, ok); - if (ok && value==0) { - // TODOXXX is this wise? or should it be expected from the programmer to use None? - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_ptrStorage, void*, NULL, ptr); - } - } - } - } else if (info.pointerCount == 0) { - // not a pointer - switch (info.typeId) { - case QMetaType::Char: - { - int val = PyObjGetInt(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, char, val, ptr); - } - } - break; - case QMetaType::UChar: - { - int val = PyObjGetInt(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, unsigned char, val, ptr); - } - } - break; - case QMetaType::Short: - { - int val = PyObjGetInt(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, short, val, ptr); - } - } - break; - case QMetaType::UShort: - { - int val = PyObjGetInt(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, unsigned short, val, ptr); - } - } - break; - case QMetaType::Long: - { - long val = (long)PyObjGetLongLong(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, long, val, ptr); - } - } - break; - case QMetaType::ULong: - { - unsigned long val = (unsigned long)PyObjGetLongLong(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, unsigned long, val, ptr); - } - } - break; - case QMetaType::Bool: - { - bool val = PyObjGetBool(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, bool, val, ptr); - } - } - break; - case QMetaType::Int: - { - int val = PyObjGetInt(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, int, val, ptr); - } - } - break; - case QMetaType::UInt: - { - unsigned int val = (unsigned int)PyObjGetLongLong(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, unsigned int, val, ptr); - } - } - break; - case QMetaType::QChar: - { - int val = PyObjGetInt(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, short, val, ptr); - } - } - break; - case QMetaType::Float: - { - float val = (float)PyObjGetDouble(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, float, val, ptr); - } - } - break; - case QMetaType::Double: - { - double val = (double)PyObjGetDouble(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, double, val, ptr); - } - } - break; - case QMetaType::LongLong: - { - qint64 val = PyObjGetLongLong(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, qint64, val, ptr); - } - } - break; - case QMetaType::ULongLong: - { - quint64 val = PyObjGetULongLong(obj, strict, ok); - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, quint64, val, ptr); - } - } - break; - case QMetaType::QByteArray: - { - QByteArray bytes = PyObjGetBytes(obj, strict, ok); - if (ok) { - if (alreadyAllocatedCPPObject) { - ptr = alreadyAllocatedCPPObject; - *reinterpret_cast(alreadyAllocatedCPPObject) = bytes; - } else { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(bytes), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - } - } - break; - case QMetaType::QString: - { - QString str = PyObjGetString(obj, strict, ok); - if (ok) { - if (alreadyAllocatedCPPObject) { - ptr = alreadyAllocatedCPPObject; - *reinterpret_cast(alreadyAllocatedCPPObject) = str; - } else { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(str), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - } - } - break; - case QMetaType::QStringList: - { - QStringList l = PyObjToStringList(obj, strict, ok); - if (ok) { - if (alreadyAllocatedCPPObject) { - ptr = alreadyAllocatedCPPObject; - *reinterpret_cast(alreadyAllocatedCPPObject) = l; - } else { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant(l), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - } - } - break; - - case PythonQtMethodInfo::Variant: - { - QVariant v = PyObjToQVariant(obj); - // the only case where conversion can fail it None and we want to pass that to, e.g. setProperty(), - // so we do not check v.isValid() here - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, v, ptr); - } - break; - default: - { - // check for enum case - if (info.enumWrapper) { - unsigned int val; - ok = false; - if ((PyObject*)obj->ob_type == info.enumWrapper) { - // we have a exact enum type match: - val = PyInt_AS_LONG(obj); - ok = true; - } else if (!strict) { - // we try to get any integer, when not being strict. If we are strict, integers are not wanted because - // we want an integer overload to be taken first! - val = (unsigned int)PyObjGetLongLong(obj, false, ok); - } - if (ok) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_valueStorage, unsigned int, val, ptr); - return ptr; - } else { - return NULL; - } - } - - if (info.typeId == PythonQtMethodInfo::Unknown || info.typeId >= QMetaType::User) { - // check for QList case, where we will use a QList QVariant - if (info.name.startsWith("QList<")) { - QByteArray innerType = info.name.mid(6,info.name.length()-7); - if (innerType.endsWith("*")) { - innerType.truncate(innerType.length()-1); - static int id = QMetaType::type("QList"); - if (!alreadyAllocatedCPPObject) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant::Type(id), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } else { - ptr = alreadyAllocatedCPPObject; - } - ok = ConvertPythonListToQListOfPointerType(obj, (QList*)ptr, innerType, strict); - if (ok) { - return ptr; - } else { - return NULL; - } - } - } - } - - // We only do this for registered type > QMetaType::User for performance reasons. - if (info.typeId >= QMetaType::User) { - // Maybe we have a special converter that is registered for that type: - PythonQtConvertPythonToMetaTypeCB* converter = _pythonToMetaTypeConverters.value(info.typeId); - if (converter) { - if (!alreadyAllocatedCPPObject) { - // create a new empty variant of concrete type: - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, QVariant::Type(info.typeId), ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } else { - ptr = alreadyAllocatedCPPObject; - } - // now call the converter, passing the internal object of the variant - ok = (*converter)(obj, ptr, info.typeId, strict); - if (ok) { - return ptr; - } else { - return NULL; - } - } - } - // if no type id is available, conversion to a QVariant makes no sense/is not possible - if (info.typeId != PythonQtMethodInfo::Unknown) { - // for all other types, we use the same qvariant conversion and pass out the constData of the variant: - QVariant v = PyObjToQVariant(obj, info.typeId); - if (v.isValid()) { - PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedCPPObject,global_variantStorage, QVariant, v, ptr); - ptr = (void*)((QVariant*)ptr)->constData(); - } - } - } - } - } - return ptr; -} - - -QStringList PythonQtConv::PyObjToStringList(PyObject* val, bool strict, bool& ok) { - QStringList v; - ok = false; - // if we are strict, we do not want to convert a string to a stringlist - // (strings in python are detected to be sequences) - if (strict && - (val->ob_type == &PyString_Type || - PyUnicode_Check(val))) { - ok = false; - return v; - } - if (PySequence_Check(val)) { - int count = PySequence_Size(val); - for (int i = 0;iob_type == &PyString_Type) { - r = QString(PyString_AS_STRING(val)); - } else if (PyUnicode_Check(val)) { -#ifdef WIN32 - r = QString::fromUtf16( - reinterpret_cast(PyUnicode_AS_UNICODE(val))); -#else - PyObject *ptmp = PyUnicode_AsUTF8String(val); - if(ptmp) { - r = QString::fromUtf8(PyString_AS_STRING(ptmp)); - Py_DECREF(ptmp); - } -#endif - } else if (!strict) { - // EXTRA: could also use _Unicode, but why should we? - PyObject* str = PyObject_Str(val); - if (str) { - r = QString(PyString_AS_STRING(str)); - Py_DECREF(str); - } else { - ok = false; - } - } else { - ok = false; - } - return r; -} - -QByteArray PythonQtConv::PyObjGetBytes(PyObject* val, bool /*strict*/, bool& ok) { - // TODO: support buffer objects in general - QByteArray r; - ok = true; - if (val->ob_type == &PyString_Type) { - long size = PyString_GET_SIZE(val); - r = QByteArray(PyString_AS_STRING(val), size); - } else { - ok = false; - } - return r; -} - -bool PythonQtConv::PyObjGetBool(PyObject* val, bool strict, bool &ok) { - bool d = false; - ok = false; - if (val == Py_False) { - d = false; - ok = true; - } else if (val == Py_True) { - d = true; - ok = true; - } else if (!strict) { - d = PyObjGetInt(val, false, ok)!=0; - ok = true; - } - return d; -} - -int PythonQtConv::PyObjGetInt(PyObject* val, bool strict, bool &ok) { - int d = 0; - ok = true; - if (val->ob_type == &PyInt_Type) { - d = PyInt_AS_LONG(val); - } else if (!strict) { - if (PyObject_TypeCheck(val, &PyInt_Type)) { - // support for derived int classes, e.g. for our enums - d = PyInt_AS_LONG(val); - } else if (val->ob_type == &PyFloat_Type) { - d = floor(PyFloat_AS_DOUBLE(val)); - } else if (val->ob_type == &PyLong_Type) { - // handle error on overflow! - d = PyLong_AsLong(val); - } else if (val == Py_False) { - d = 0; - } else if (val == Py_True) { - d = 1; - } else { - ok = false; - } - } else { - ok = false; - } - return d; -} - -qint64 PythonQtConv::PyObjGetLongLong(PyObject* val, bool strict, bool &ok) { - qint64 d = 0; - ok = true; - if (val->ob_type == &PyInt_Type) { - d = PyInt_AS_LONG(val); - } else if (val->ob_type == &PyLong_Type) { - d = PyLong_AsLongLong(val); - } else if (!strict) { - if (PyObject_TypeCheck(val, &PyInt_Type)) { - // support for derived int classes, e.g. for our enums - d = PyInt_AS_LONG(val); - } else if (val->ob_type == &PyFloat_Type) { - d = floor(PyFloat_AS_DOUBLE(val)); - } else if (val == Py_False) { - d = 0; - } else if (val == Py_True) { - d = 1; - } else { - ok = false; - } - } else { - ok = false; - } - return d; -} - -quint64 PythonQtConv::PyObjGetULongLong(PyObject* val, bool strict, bool &ok) { - quint64 d = 0; - ok = true; - if (PyObject_TypeCheck(val, &PyInt_Type)) { - d = PyInt_AS_LONG(val); - } else if (val->ob_type == &PyLong_Type) { - d = PyLong_AsLongLong(val); - } else if (!strict) { - if (PyObject_TypeCheck(val, &PyInt_Type)) { - // support for derived int classes, e.g. for our enums - d = PyInt_AS_LONG(val); - } else if (val->ob_type == &PyFloat_Type) { - d = floor(PyFloat_AS_DOUBLE(val)); - } else if (val == Py_False) { - d = 0; - } else if (val == Py_True) { - d = 1; - } else { - ok = false; - } - } else { - ok = false; - } - return d; -} - -double PythonQtConv::PyObjGetDouble(PyObject* val, bool strict, bool &ok) { - double d = 0; - ok = true; - if (val->ob_type == &PyFloat_Type) { - d = PyFloat_AS_DOUBLE(val); - } else if (!strict) { - if (PyObject_TypeCheck(val, &PyInt_Type)) { - d = PyInt_AS_LONG(val); - } else if (val->ob_type == &PyLong_Type) { - d = PyLong_AsLong(val); - } else if (val == Py_False) { - d = 0; - } else if (val == Py_True) { - d = 1; - } else { - ok = false; - } - } else { - ok = false; - } - return d; -} - -QVariant PythonQtConv::PyObjToQVariant(PyObject* val, int type) -{ - QVariant v; - bool ok = true; - - if (type==-1) { - // no special type requested - if (val->ob_type==&PyString_Type || val->ob_type==&PyUnicode_Type) { - type = QVariant::String; - } else if (PyObject_TypeCheck(val, &PyInt_Type)) { - type = QVariant::Int; - } else if (val->ob_type==&PyLong_Type) { - type = QVariant::LongLong; - } else if (val->ob_type==&PyFloat_Type) { - type = QVariant::Double; - } else if (val == Py_False || val == Py_True) { - type = QVariant::Bool; - } else if (PyObject_TypeCheck(val, &PythonQtInstanceWrapper_Type)) { - PythonQtInstanceWrapper* wrap = (PythonQtInstanceWrapper*)val; - // c++ wrapper, check if the class names of the c++ objects match - if (wrap->classInfo()->isCPPWrapper()) { - if (wrap->classInfo()->metaTypeId()>0) { - // construct a new variant from the C++ object if it has a meta type (this will COPY the object!) - v = QVariant(wrap->classInfo()->metaTypeId(), wrap->_wrappedPtr); - } else { - // TODOXXX we could as well check if there is a registered meta type for "classname*", so that we may pass - // the pointer here... - // is this worth anything? we loose the knowledge of the cpp object type - v = qVariantFromValue(wrap->_wrappedPtr); - } - } else { - // this gives us a QObject pointer - QObject* myObject = wrap->_obj; - v = qVariantFromValue(myObject); - } - return v; - } else if (val->ob_type==&PyDict_Type) { - type = QVariant::Map; - } else if (val->ob_type==&PyList_Type || val->ob_type==&PyTuple_Type || PySequence_Check(val)) { - type = QVariant::List; - } else if (val == Py_None) { - // none is invalid - type = QVariant::Invalid; - } else { - // this used to be: - // type = QVariant::String; - // but now we want to transport the Python Objects directly: - PythonQtObjectPtr o(val); - v = qVariantFromValue(o); - return v; - } - } - // special type request: - switch (type) { - case QVariant::Invalid: - return v; - break; - case QVariant::Int: - { - int d = PyObjGetInt(val, false, ok); - if (ok) return QVariant(d); - } - break; - case QVariant::UInt: - { - int d = PyObjGetInt(val, false,ok); - if (ok) v = QVariant((unsigned int)d); - } - break; - case QVariant::Bool: - { - int d = PyObjGetBool(val,false,ok); - if (ok) v = QVariant((bool)(d!=0)); - } - break; - case QVariant::Double: - { - double d = PyObjGetDouble(val,false,ok); - if (ok) v = QVariant(d); - break; - } - case QMetaType::Float: - { - float d = (float) PyObjGetDouble(val,false,ok); - if (ok) v = qVariantFromValue(d); - break; - } - case QMetaType::Long: - { - long d = (long) PyObjGetLongLong(val,false,ok); - if (ok) v = qVariantFromValue(d); - break; - } - case QMetaType::ULong: - { - unsigned long d = (unsigned long) PyObjGetLongLong(val,false,ok); - if (ok) v = qVariantFromValue(d); - break; - } - case QMetaType::LongLong: - { - qint64 d = PyObjGetLongLong(val, false, ok); - if (ok) v = qVariantFromValue(d); - } - break; - case QMetaType::ULongLong: - { - quint64 d = PyObjGetULongLong(val, false, ok); - if (ok) v = qVariantFromValue(d); - } - break; - case QMetaType::Short: - { - short d = (short) PyObjGetInt(val,false,ok); - if (ok) v = qVariantFromValue(d); - break; - } - case QMetaType::UShort: - { - unsigned short d = (unsigned short) PyObjGetInt(val,false,ok); - if (ok) v = qVariantFromValue(d); - break; - } - case QMetaType::Char: - { - char d = (char) PyObjGetInt(val,false,ok); - if (ok) v = qVariantFromValue(d); - break; - } - case QMetaType::UChar: - { - unsigned char d = (unsigned char) PyObjGetInt(val,false,ok); - if (ok) v = qVariantFromValue(d); - break; - } - - case QVariant::ByteArray: - case QVariant::String: - { - bool ok; - v = QVariant(PyObjGetString(val, false, ok)); - } - break; - - // these are important for MeVisLab - case QVariant::Map: - { - if (PyMapping_Check(val)) { - QMap map; - PyObject* items = PyMapping_Items(val); - if (items) { - int count = PyList_Size(items); - PyObject* value; - PyObject* key; - PyObject* tuple; - for (int i = 0;iclassInfo()->isCPPWrapper() && wrap->classInfo()->metaTypeId() == type) { - // construct a new variant from the C++ object if it has the same meta type - v = QVariant(type, wrap->_wrappedPtr); - } else { - v = QVariant(); - } - } else { - v = QVariant(); - } - } - return v; -} - -PyObject* PythonQtConv::QStringToPyObject(const QString& str) -{ - if (str.isNull()) { - return PyString_FromString(""); - } else { -#ifdef WIN32 - // return PyString_FromString(str.toLatin1().data()); - return PyUnicode_FromUnicode( - reinterpret_cast(str.utf16()), str.length()); -#else - return PyUnicode_DecodeUTF16((const char*)str.utf16(), str.length()*2, NULL, NULL); -#endif - } -} - -PyObject* PythonQtConv::QStringListToPyObject(const QStringList& list) -{ - PyObject* result = PyTuple_New(list.count()); - int i = 0; - QString str; - foreach (str, list) { - PyTuple_SET_ITEM(result, i, PythonQtConv::QStringToPyObject(str)); - i++; - } - // why is the error state bad after this? - PyErr_Clear(); - return result; -} - -PyObject* PythonQtConv::QStringListToPyList(const QStringList& list) -{ - PyObject* result = PyList_New(list.count()); - int i = 0; - for (QStringList::ConstIterator it = list.begin(); it!=list.end(); ++it) { - PyList_SET_ITEM(result, i, PythonQtConv::QStringToPyObject(*it)); - i++; - } - return result; -} - -PyObject* PythonQtConv::QVariantToPyObject(const QVariant& v) -{ - return ConvertQtValueToPythonInternal(v.userType(), (void*)v.constData()); -} - -PyObject* PythonQtConv::QVariantMapToPyObject(const QVariantMap& m) { - PyObject* result = PyDict_New(); - QVariantMap::const_iterator t = m.constBegin(); - PyObject* key; - PyObject* val; - for (;t!=m.end();t++) { - key = QStringToPyObject(t.key()); - val = QVariantToPyObject(t.value()); - PyDict_SetItem(result, key, val); - Py_DECREF(key); - Py_DECREF(val); - } - return result; -} - -PyObject* PythonQtConv::QVariantListToPyObject(const QVariantList& l) { - PyObject* result = PyTuple_New(l.count()); - int i = 0; - QVariant v; - foreach (v, l) { - PyTuple_SET_ITEM(result, i, PythonQtConv::QVariantToPyObject(v)); - i++; - } - // why is the error state bad after this? - PyErr_Clear(); - return result; -} - -PyObject* PythonQtConv::ConvertQListOfPointerTypeToPythonList(QList* list, const QByteArray& typeName) -{ - PyObject* result = PyTuple_New(list->count()); - int i = 0; - foreach (void* value, *list) { - PyTuple_SET_ITEM(result, i, PythonQt::priv()->wrapPtr(value, typeName)); - i++; - } - return result; -} - -bool PythonQtConv::ConvertPythonListToQListOfPointerType(PyObject* obj, QList* list, const QByteArray& type, bool /*strict*/) -{ - bool result = false; - if (PySequence_Check(obj)) { - result = true; - int count = PySequence_Size(obj); - PyObject* value; - for (int i = 0;iappend(object); - } else { - result = false; - break; - } - } - } - } - return result; -} - -int PythonQtConv::getInnerTemplateMetaType(const QByteArray& typeName) -{ - int idx = typeName.indexOf("<"); - if (idx>0) { - int idx2 = typeName.indexOf(">"); - if (idx2>0) { - QByteArray innerType = typeName.mid(idx+1,idx2-idx-1); - return QMetaType::type(innerType.constData()); - } - } - return QMetaType::Void; -} - - -QString PythonQtConv::CPPObjectToString(int type, const void* data) { - QString r; - switch (type) { - case QVariant::Size: { - const QSize* s = static_cast(data); - r = QString::number(s->width()) + ", " + QString::number(s->height()); - } - break; - case QVariant::SizeF: { - const QSizeF* s = static_cast(data); - r = QString::number(s->width()) + ", " + QString::number(s->height()); - } - break; - case QVariant::Point: { - const QPoint* s = static_cast(data); - r = QString::number(s->x()) + ", " + QString::number(s->y()); - } - break; - case QVariant::PointF: { - const QPointF* s = static_cast(data); - r = QString::number(s->x()) + ", " + QString::number(s->y()); - } - break; - case QVariant::Rect: { - const QRect* s = static_cast(data); - r = QString::number(s->x()) + ", " + QString::number(s->y()); - r += ", " + QString::number(s->width()) + ", " + QString::number(s->height()); - } - break; - case QVariant::RectF: { - const QRectF* s = static_cast(data); - r = QString::number(s->x()) + ", " + QString::number(s->y()); - r += ", " + QString::number(s->width()) + ", " + QString::number(s->height()); - } - break; - case QVariant::Date: { - const QDate* s = static_cast(data); - r = s->toString(Qt::ISODate); - } - break; - case QVariant::DateTime: { - const QDateTime* s = static_cast(data); - r = s->toString(Qt::ISODate); - } - break; - case QVariant::Time: { - const QTime* s = static_cast(data); - r = s->toString(Qt::ISODate); - } - break; - case QVariant::Pixmap: - { - const QPixmap* s = static_cast(data); - r = QString("Pixmap ") + QString::number(s->width()) + ", " + QString::number(s->height()); - } - break; - case QVariant::Image: - { - const QImage* s = static_cast(data); - r = QString("Image ") + QString::number(s->width()) + ", " + QString::number(s->height()); - } - break; - case QVariant::Url: - { - const QUrl* s = static_cast(data); - r = s->toString(); - } - break; - //TODO: add more printing for other variant types - default: - // this creates a copy, but that should not be expensive for typical simple variants - // (but we do not want to do this for our won user types! - if (type>0 && type < (int)QVariant::UserType) { - QVariant v(type, data); - r = v.toString(); - } - } - return r; -} diff --git a/3rdparty/pythonqt/src/PythonQtConversion.h b/3rdparty/pythonqt/src/PythonQtConversion.h deleted file mode 100644 index 23aaa7210..000000000 --- a/3rdparty/pythonqt/src/PythonQtConversion.h +++ /dev/null @@ -1,210 +0,0 @@ -#ifndef _PYTHONQTCONVERSION_H -#define _PYTHONQTCONVERSION_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtConversion.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQt.h" -#include "PythonQtMisc.h" -#include "PythonQtClassInfo.h" -#include "PythonQtMethodInfo.h" - -#include -#include -#include - -typedef PyObject* PythonQtConvertMetaTypeToPythonCB(const void* inObject, int metaTypeId); -typedef bool PythonQtConvertPythonToMetaTypeCB(PyObject* inObject, void* outObject, int metaTypeId, bool strict); - -#define PythonQtRegisterListTemplateConverter(type, innertype) \ -{ int typeId = qRegisterMetaType >(#type"<"#innertype">"); \ -PythonQtConv::registerPythonToMetaTypeConverter(typeId, PythonQtConvertPythonListToListOfValueType, innertype>); \ -PythonQtConv::registerMetaTypeToPythonConverter(typeId, PythonQtConvertListOfValueTypeToPythonList, innertype>); \ -} - -#define PythonQtRegisterToolClassesTemplateConverter(innertype) \ - PythonQtRegisterListTemplateConverter(QList, innertype); \ - PythonQtRegisterListTemplateConverter(QVector, innertype); \ - PythonQtRegisterListTemplateConverter(std::vector, innertype); -// TODO: add QHash etc. here! - -//! a static class that offers methods for type conversion -class PYTHONQT_EXPORT PythonQtConv { - -public: - - //! get a ref counted True or False Python object - static PyObject* GetPyBool(bool val); - - //! converts the Qt parameter given in \c data, interpreting it as a \c info parameter, into a Python object, - static PyObject* ConvertQtValueToPython(const PythonQtMethodInfo::ParameterInfo& info, const void* data); - - //! convert python object to Qt (according to the given parameter) and if the conversion should be strict (classInfo is currently not used anymore) - static void* ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& info, PyObject* obj, bool strict, PythonQtClassInfo* classInfo, void* alreadyAllocatedCPPObject = NULL); - - //! creates a data storage for the passed parameter type and returns a void pointer to be set as arg[0] of qt_metacall - static void* CreateQtReturnValue(const PythonQtMethodInfo::ParameterInfo& info); - - //! converts QString to Python string (unicode!) - static PyObject* QStringToPyObject(const QString& str); - - //! converts QStringList to Python tuple - static PyObject* QStringListToPyObject(const QStringList& list); - - //! converts QStringList to Python list - static PyObject* QStringListToPyList(const QStringList& list); - - //! get string representation of py object - static QString PyObjGetRepresentation(PyObject* val); - - //! get string value from py object - static QString PyObjGetString(PyObject* val) { bool ok; QString s = PyObjGetString(val, false, ok); return s; } - //! get string value from py object - static QString PyObjGetString(PyObject* val, bool strict, bool &ok); - //! get bytes from py object - static QByteArray PyObjGetBytes(PyObject* val, bool strict, bool &ok); - //! get int from py object - static int PyObjGetInt(PyObject* val, bool strict, bool &ok); - //! get int64 from py object - static qint64 PyObjGetLongLong(PyObject* val, bool strict, bool &ok); - //! get int64 from py object - static quint64 PyObjGetULongLong(PyObject* val, bool strict, bool &ok); - //! get double from py object - static double PyObjGetDouble(PyObject* val, bool strict, bool &ok); - //! get bool from py object - static bool PyObjGetBool(PyObject* val, bool strict, bool &ok); - - //! create a string list from python sequence - static QStringList PyObjToStringList(PyObject* val, bool strict, bool& ok); - - //! convert python object to qvariant, if type is given it will try to create a qvariant of that type, otherwise - //! it will guess from the python type - static QVariant PyObjToQVariant(PyObject* val, int type = -1); - - //! convert QVariant from PyObject - static PyObject* QVariantToPyObject(const QVariant& v); - - static PyObject* QVariantMapToPyObject(const QVariantMap& m); - static PyObject* QVariantListToPyObject(const QVariantList& l); - - //! get human readable string from CPP object (when the metatype is known) - static QString CPPObjectToString(int type, const void* data); - - //! register a converter callback from python to cpp for given metatype - static void registerPythonToMetaTypeConverter(int metaTypeId, PythonQtConvertPythonToMetaTypeCB* cb) { _pythonToMetaTypeConverters.insert(metaTypeId, cb); } - - //! register a converter callback from cpp to python for given metatype - static void registerMetaTypeToPythonConverter(int metaTypeId, PythonQtConvertMetaTypeToPythonCB* cb) { _metaTypeToPythonConverters.insert(metaTypeId, cb); } - - //! returns the inner type id of a simple template of the form SomeObject - static int getInnerTemplateMetaType(const QByteArray& typeName); - - //! converts the Qt parameter given in \c data, interpreting it as a \c type registered qvariant/meta type, into a Python object, - static PyObject* ConvertQtValueToPythonInternal(int type, const void* data); - -public: - - static PythonQtValueStorage global_valueStorage; - static PythonQtValueStorage global_ptrStorage; - static PythonQtValueStorage global_variantStorage; - -protected: - static QHash _metaTypeToPythonConverters; - static QHash _pythonToMetaTypeConverters; - - //! handle automatic conversion of some special types (QColor, QBrush, ...) - static void* handlePythonToQtAutoConversion(int typeId, PyObject* obj, void* alreadyAllocatedCPPObject); - - //! converts the list of pointers of given type to Python - static PyObject* ConvertQListOfPointerTypeToPythonList(QList* list, const QByteArray& type); - //! tries to convert the python object to a QList of pointers to \c type objects, returns true on success - static bool ConvertPythonListToQListOfPointerType(PyObject* obj, QList* list, const QByteArray& type, bool strict); - - //! cast wrapper to given className if possible - static void* castWrapperTo(PythonQtInstanceWrapper* wrapper, const QByteArray& className, bool& ok); -}; - -template -PyObject* PythonQtConvertListOfValueTypeToPythonList(const void* /*QList* */ inList, int metaTypeId) -{ - ListType* list = (ListType*)inList; - static const int innerType = PythonQtConv::getInnerTemplateMetaType(QByteArray(QMetaType::typeName(metaTypeId))); - if (innerType == QVariant::Invalid) { - std::cerr << "PythonQtConvertListOfValueTypeToPythonList: unknown inner type " << QMetaType::typeName(metaTypeId) << std::endl; - } - PyObject* result = PyTuple_New(list->size()); - int i = 0; - foreach (const T& value, *list) { - PyTuple_SET_ITEM(result, i, PythonQtConv::ConvertQtValueToPythonInternal(innerType, &value)); - i++; - } - return result; -} - -template -bool PythonQtConvertPythonListToListOfValueType(PyObject* obj, void* /*QList* */ outList, int metaTypeId, bool /*strict*/) -{ - ListType* list = (ListType*)outList; - static const int innerType = PythonQtConv::getInnerTemplateMetaType(QByteArray(QMetaType::typeName(metaTypeId))); - if (innerType == QVariant::Invalid) { - std::cerr << "PythonQtConvertPythonListToListOfValueType: unknown inner type " << QMetaType::typeName(metaTypeId) << std::endl; - } - bool result = false; - if (PySequence_Check(obj)) { - result = true; - int count = PySequence_Size(obj); - PyObject* value; - for (int i = 0;ipush_back(qVariantValue(v)); - } else { - result = false; - break; - } - } - } - return result; -} - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtCppWrapperFactory.h b/3rdparty/pythonqt/src/PythonQtCppWrapperFactory.h deleted file mode 100644 index ce3afc418..000000000 --- a/3rdparty/pythonqt/src/PythonQtCppWrapperFactory.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef _PYTHONQTCPPWRAPPERFACTORY_H -#define _PYTHONQTCPPWRAPPERFACTORY_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtCppWrapperFactory.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-06 -*/ -//---------------------------------------------------------------------------------- - -//! Factory interface for C++ classes that can be wrapped by QObject objects -/*! To create your own factory, derive PythonQtCppWrapperFactory and implement -the create() method. -A factory can be added to PythonQt by PythonQt::addCppWrapperFactory(). -*/ -class PYTHONQT_EXPORT PythonQtCppWrapperFactory -{ -public: - PythonQtCppWrapperFactory() {}; - virtual ~PythonQtCppWrapperFactory() {}; - - //! create a wrapper for the given object - virtual QObject* create(const QByteArray& name, void *ptr) = 0; - -}; - -#endif \ No newline at end of file diff --git a/3rdparty/pythonqt/src/PythonQtDoc.h b/3rdparty/pythonqt/src/PythonQtDoc.h deleted file mode 100644 index 991fdc720..000000000 --- a/3rdparty/pythonqt/src/PythonQtDoc.h +++ /dev/null @@ -1,532 +0,0 @@ -#ifndef _PYTHONQTDOC_H -#define _PYTHONQTDOC_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtDoc.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-10 -*/ -//---------------------------------------------------------------------------------- - -/*! - \if USE_GLOBAL_DOXYGEN_DOC - \page PythonQtPage PythonQt Overview - \else - \mainpage notitle - \endif - - \image html PythonQt.jpg - - \section Introduction - - \b PythonQt is a dynamic -Python binding for the -Qt framework. - It offers an easy way to embed the Python scripting language into - your C++ Qt applications. It makes heavy use of the QMetaObject system and thus requires Qt 4.x. - - The focus of PythonQt is on embedding Python into an existing C++ application, not on writing the whole - application completely in Python. If you want to write your whole application in Python, - you should use PyQt or PySide instead. - - If you are looking for a simple way to embed Python objects into your C++/Qt Application - and to script parts of your application via Python, PythonQt is the way to go! - - PythonQt is a stable library that was developed to make the - Image Processing and Visualization platform MeVisLab - scriptable from Python. - - - \ref Features - - \ref Download - - \ref License - - \ref Developer - - \ref Building - - \ref Examples - - \page Features Features - - \section Builtin Built-in Features - - The following are the built-in features of the PythonQt library: - - - Access all \b slots, \b properties, children and registered enums of any QObject derived class from Python - - Connecting Qt Signals to Python functions (both from within Python and from C++) - - Easy wrapping of Python objects from C++ with smart, reference-counting PythonQtObjectPtr. - - Convenient conversions to/from QVariant for PythonQtObjectPtr. - - Wrapping of C++ objects (which are not derived from QObject) via PythonQtCppWrapperFactory - - Extending C++ and QObject derived classes with additional slots, static methods and constructors (see Decorators) - - StdOut/Err redirection to Qt signals instead of cout - - Interface for creating your own \c import replacement, so that Python scripts can be e.g. signed/verified before they are executed (PythonQtImportFileInterface) - - Mapping of plain-old-datatypes and ALL QVariant types to and from Python - - Support for wrapping of user QVariant types which are registerd via QMetaType - - Support for Qt namespace (with all enumerators) - - All PythonQt wrapped objects support the dir() statement, so that you can see easily which attributes a QObject, CPP object or QVariant has - - No preprocessing/wrapping tool needs to be started, PythonQt can script any QObject without prior knowledge about it (except for the MetaObject information from the \b moc) - - Multiple inheritance for C++ objects (e.g. a QWidget is derived from QObject and QPaintDevice, PythonQt will automatically cast a QWidget to a QPaintDevice when needed) - - Polymorphic downcasting (if e.g. PythonQt sees a QEvent, it can downcast it depending on the type(), so the Python e.g. sees a QPaintEvent instead of a plain QEvent) - - Deriving C++ objects from Python and overwriting virtual method with a Python implementation (requires usage of wrapper generator or manual work!) - - Extensible handler for Python/C++ conversion of complex types, e.g. mapping of QVector to/from a Python array - - Setting of dynamic QObject properties via setProperty(), dynamic properties can be accessed for reading and writing like normal Python attributes (but creating a new property needs to be done with setProperty(), to distinguish from normal Python attributes) - - \section FeaturesQtAll Features with wrapper generator - - Thanks to the new wrapper generator, PythonQt now offers the additional PythonQt_QtAll library which wraps the complete Qt API, including all C++ classes and all non-slots on QObject derived classes. - This offers the following features: - - - Complete Qt API wrapped and accessible - - The following modules are available as submodules of the PythonQt module: - - QtCore - - QtGui - - QtNetwork - - QtOpenGL - - QtSql - - QtSvg - - QtUiTools - - QtWebKit - - QtXml - - (QtXmlPatterns, QtScript, QtHelp, phonon, assistant, designer are currently not supported, this would require some additional effort on the code generator) - - For convenience, all classes are also available in the PythonQt.Qt module, for people who do not care in which module a class is located - - Any Qt class that has virtual methods can be easily derived from Python and the virtual methods can be reimplemented in Python (this feature is considered experimental!) - - Polymorphic downcasting on QEvent, QGraphicsItem, QStyleOption, ... - - Multiple inheritance support (e.g., QGraphicsTextItem is a QObject AND a QGraphicsItem, PythonQt will handle this well) - - \section Comparison Comparison with PyQt/PySide - - - PythonQt is not as pythonic as PyQt in many details (e.g. buffer protocol, pickling, translation support, ...) and it is mainly thought for embedding and intercommunication between Qt/Cpp and Python - - PythonQt allows to communicate in both directions, e.g., calling a Python object from C++ AND calling a C++ method from Python, while PyQt only handles the Python->C++ direction - - PythonQt offers properties as Python attributes, while PyQt offers them as setter/getter methods (e.g. QWidget.width is a property in PythonQt and a method in PyQt) - - PythonQt currently does not support instanceof checks for Qt classes, except for the exact match and derived Python classes - - QObject.emit to emit Qt signals from Python is not yet implemented but PythonQt allows to just emit a signal by calling it like a normal slot - - PythonQt does not (yet) offer to add new signals to Python/C++ objects and it does not yet support the newstyle PyQt signals (so you need to connect via C++ string signatures) - - Ownership of objects is a bit different in PythonQt, currently Python classes derived from a C++ class need to be manually referenced in Python to not get deleted too early (this will be fixed in a future version) - - QStrings are always converted to unicode Python objects, QByteArray always stays a QByteArray and can be converted using str() - - There are many details in the generated wrappers that could need some polishing, e.g., methods that use pointer arguments for additional return values could return a results tuple. - - Not all types of QList/QVector/QHash templates are supported, some Qt methods use those as arguments/return values (but you can add your own handlers to handle them if you need them). - - Probably there are lots of details that differ, I do not know PyQt that well to list them all. - - In the long run, PythonQt will consider using/extending PySide with the features of PythonQt to get rid of its own generator and typesystem files, alternatively the KDE Smoke generator might be used in the future (this has not yet been decided, the current PythonQt generator works well and there is no hurry to switch). - - \page Download Download - - PythonQt is hosted on SourceForge. - - You can download the source code as a tarball at http://sourceforge.net/projects/pythonqt/files/. - Alternatively you can get the latest version from the svn repository. - - You can also browse the source code online via ViewVC: http://pythonqt.svn.sourceforge.net/viewvc/pythonqt/trunk/ - - \note We do not offer prebuilt binaries, since there are so many possible combinations of - platforms (Windows/Linux/MacOs), architectures (32/64 bit) and Python versions. - - \page License License - - PythonQt is distributed under the LGPL license, so it pairs well with the LGPL of the Qt 4.5 release and allows - to be used in commercial applications when following the LGPL 2.1 obligations. - - The build system of PythonQt makes use of a modified version of the LGPL'ed QtScript generator, - located in the "generator" directory. - - See http://qt.gitorious.org/qt-labs/qtscriptgenerator for details on the original project. - Thanks a lot to the QtJambi guys and the QtScript Generator project for the C++ parser and - Qt typesystem files! - - The PythonQt wrappers generated by the generator located in the "generated_cpp" directory are free to be used without any licensing restrictions. - - The generated wrappers are pre-generated and checked-in for Qt 4.6.1, so you only need to build and run the - generator when you want to build additional wrappers or you want to upgrade/downgrade to another Qt version. - You may use the generator to generate C++ bindings for your own C++ classes (e.g., to make them inheritable in Python), - but this is currently not documented and involves creating your own typesystem files (although the Qt Jambi examples might help you). - - - \page Developer Developer - - \section Interface Interface - - The main interface to PythonQt is the PythonQt singleton. - PythonQt needs to be initialized via PythonQt::init() once. - Afterwards you communicate with the singleton via PythonQt::self(). - PythonQt offers a complete Qt binding, which - needs to be enabled via PythonQt_QtAll::init(). - - - \section Datatype Datatype Mapping - - The following table shows the mapping between Python and Qt objects: - - - - - - - - - - - - - - - - - - - - - - - -
Qt/C++Python
boolbool
doublefloat
floatfloat
char/uchar,int/uint,short,ushort,QCharinteger
longinteger
ulong,longlong,ulonglonglong
QStringunicode string
QByteArrayQByteArray wrapper
char*str
QStringListtuple of unicode strings
QVariantListtuple of objects
QVariantMapdict of objects
QVariantdepends on type, see below
QSize, QRect and all other standard Qt QVariantsvariant wrapper that supports complete API of the respective Qt classes
OwnRegisteredMetaTypeC++ wrapper, optionally with additional information/wrapping provided by registerCPPClass()
QListconverts to a list of CPP wrappers
QVectorconverts to a list of CPP wrappers
EnumTypeEnum wrapper derived from python integer
QObject (and derived classes)QObject wrapper
C++ objectCPP wrapper, either wrapped via PythonQtCppWrapperFactory or just decorated with decorators
PyObjectPyObject
- - PyObject is passed as direct pointer, which allows to pass/return any Python object directly to/from - a Qt slot that uses PyObject* as its argument/return value. - QVariants are mapped recursively as given above, e.g. a dictionary can - contain lists of dictionaries of doubles. - All Qt QVariant types are implemented, PythonQt supports the complete Qt API for these object. - - \section QObject QObject Wrapping - - All classes derived from QObject are automatically wrapped with a python wrapper class - when they become visible to the Python interpreter. This can happen via - - the PythonQt::addObject() method - - when a Qt \b slot returns a QObject derived object to python - - when a Qt \b signal contains a QObject and is connected to a python function - - It is important that you call PythonQt::registerClass() for any QObject derived class - that may become visible to Python, except when you add it via PythonQt::addObject(). - This will register the complete parent hierachy of the registered class, so that - when you register e.g. a QPushButton, QWidget will be registered as well (and all intermediate - parents). - - From Python, you can talk to the returned QObjects in a natural way by calling - their slots and receiving the return values. You can also read/write all - properties of the objects as if they where normal python properties. - - In addition to this, the wrapped objects support - - className() - returns a string that reprents the classname of the QObject - - help() - shows all properties, slots, enums, decorator slots and constructors of the object, in a printable form - - delete() - deletes the object (use with care, especially if you passed the ownership to C++) - - connect(signal, function) - connect the signal of the given object to a python function - - connect(signal, qobject, slot) - connect the signal of the given object to a slot of another QObject - - disconnect(signal, function) - disconnect the signal of the given object from a python function - - disconnect(signal, qobject, slot) - disconnect the signal of the given object from a slot of another QObject - - children() - returns the children of the object - - setParent(QObject) - set the parent - - QObject* parent() - get the parent - - The below example shows how to connect signals in Python: - - \code - # define a signal handler function - def someFunction(flag): - print flag - - # button1 is a QPushButton that has been added to Python via addObject() - # connect the clicked signal to a python function: - button1.connect("clicked(bool)", someFunction) - - \endcode - -\section CPP CPP Wrapping - -You can create dedicated wrapper QObjects for any C++ class. This is done by deriving from PythonQtCppWrapperFactory -and adding your factory via addWrapperFactory(). -Whenever PythonQt encounters a CPP pointer (e.g. on a slot or signal) -and it does not known it as a QObject derived class, it will create a generic CPP wrapper. So even unknown C++ objects -can be passed through Python. If the wrapper factory supports the CPP class, a QObject wrapper will be created for each -instance that enters Python. An alternative to a complete wrapper via the wrapper factory are decorators, see \ref Decorators - -\section MetaObject Meta Object/Class access - -For each known C++ class, PythonQt provides a Python class. These classes are visible -inside of the "PythonQt" python module or in subpackages if a package is given when the class is registered. - -A Meta class supports: - -- access to all declared enum values -- constructors -- static methods -- unbound non-static methods -- help() and className() - -From within Python, you can import the module "PythonQt" to access these classes and the Qt namespace. - -\code -from PythonQt import QtCore - -# namespace access: -print QtCore.Qt.AlignLeft - -# constructors -a = QtCore.QSize(12,13) -b = QtCore.QFont() - -# static method -QtCore.QDate.currentDate() - -# enum value -QtCore.QFont.UltraCondensed - -\endcode - -\section Decorators Decorator slots - -PythonQt introduces a new generic approach to extend any wrapped QObject or CPP object with - -- constructors -- destructors (for CPP objects) -- additional slots -- static slots (callable on both the Meta object and the instances) - -The idea behind decorators is that we wanted to make it as easy as possible to extend -wrapped objects. Since we already have an implementation for invoking any Qt Slot from -Python, it looked promising to use this approach for the extension of wrapped objects as well. -This avoids that the PythonQt user needs to care about how Python arguments are mapped from/to -Qt when he wants to create static methods, constructors and additional member functions. - -The basic idea about decorators is to create a QObject derived class that implements slots -which take one of the above roles (e.g. constructor, destructor etc.) via a naming convention. -These slots are then assigned to other classes via the naming convention. - -- SomeClassName* new_SomeClassName(...) - defines a constructor for "SomeClassName" that returns a new object of type SomeClassName (where SomeClassName can be any CPP class, not just QObject classes) -- void delete_SomeClassName(SomeClassName* o) - defines a destructor, which should delete the passed in object o -- anything static_SomeClassName_someMethodName(...) - defines a static method that is callable on instances and the meta class -- anything someMethodName(SomeClassName* o, ...) - defines a slot that will be available on SomeClassName instances (and derived instances). When such a slot is called the first argument is the pointer to the instance and the rest of the arguments can be used to make a call on the instance. - -The below example shows all kinds of decorators in action: - -\code - -// an example CPP object -class YourCPPObject { -public: - YourCPPObject(int arg1, float arg2) { a = arg1; b = arg2; } - - float doSomething(int arg1) { return arg1*a*b; }; - - private: - - int a; - float b; -}; - -// an example decorator -class ExampleDecorator : public QObject -{ - Q_OBJECT - -public slots: - // add a constructor to QSize that takes a QPoint - QSize* new_QSize(const QPoint& p) { return new QSize(p.x(), p.y()); } - - // add a constructor for QPushButton that takes a text and a parent widget - QPushButton* new_QPushButton(const QString& text, QWidget* parent=NULL) { return new QPushButton(text, parent); } - - // add a constructor for a CPP object - YourCPPObject* new_YourCPPObject(int arg1, float arg2) { return new YourCPPObject(arg1, arg2); } - - // add a destructor for a CPP object - void delete_YourCPPObject(YourCPPObject* obj) { delete obj; } - - // add a static method to QWidget - QWidget* static_QWidget_mouseGrabber() { return QWidget::mouseGrabber(); } - - // add an additional slot to QWidget (make move() callable, which is not declared as a slot in QWidget) - void move(QWidget* w, const QPoint& p) { w->move(p); } - - // add an additional slot to QWidget, overloading the above move method - void move(QWidget* w, int x, int y) { w->move(x,y); } - - // add a method to your own CPP object - int doSomething(YourCPPObject* obj, int arg1) { return obj->doSomething(arg1); } -}; - -... - -PythonQt::self()->addDecorators(new ExampleDecorator()); -PythonQt::self()->registerCPPClass("YourCPPObject"); - -\endcode - -After you have registered an instance of the above ExampleDecorator, you can do the following from Python -(all these calls are mapped to the above decorator slots): - -\code -from PythonQt import QtCore, QtGui, YourCPPObject - -# call our new constructor of QSize -size = QtCore.QSize(QPoint(1,2)); - -# call our new QPushButton constructor -button = QtGui.QPushButton("sometext"); - -# call the move slot (overload1) -button.move(QPoint(0,0)) - -# call the move slot (overload2) -button.move(0,0) - -# call the static method -grabber = QtGui.QWidget.mouseWrapper(); - -# create a CPP object via constructor -yourCpp = YourCPPObject(1,11.5) - -# call the wrapped method on CPP object -print yourCpp.doSomething(1); - -# destructor will be called: -yourCpp = None - -\endcode - - \page Building Building - - PythonQt requires at least Qt 4.6.1 (for earlier Qt versions, you will need to run the pythonqt_gerenator, Qt 4.3 is the absolute minimum) and Python 2.5.x or 2.6.x on Windows, Linux and MacOS X. It has not yet been tested with Python 3.x, but it should only require minor changes. - To compile PythonQt, you will need a python developer installation which includes Python's header files and -the python2x.[lib | dll | so | dynlib]. - The build scripts a currently set to use Python 2.6. - You may need to tweak the \b build/python.prf file to set the correct Python includes and libs on your system. - - \subsection Windows - - On Windows, the (non-source) Python Windows installer can be used. - Make sure that you use the same compiler, the current Python distribution is built - with Visual Studio 2003. If you want to use another compiler, you will need to build - Python yourself, using your compiler. - - To build PythonQt, you need to set the environment variable \b PYTHON_PATH to point to the root - dir of the python installation and \b PYTHON_LIB to point to - the directory where the python lib file is located. - - When using the prebuild Python installer, this will be: - - \code - > set PYTHON_PATH = c:\Python26 - > set PYTHON_LIB = c:\Python26\libs - \endcode - - When using the python sources, this will be something like: - - \code - > set PYTHON_PATH = c:\yourDir\Python-2.6.1\ - > set PYTHON_LIB = c:\yourDir\Python-2.6.1\PCbuild8\Win32 - \endcode - - To build all, do the following (after setting the above variables): - - \code - > cd PythonQtRoot - > vcvars32 - > qmake - > nmake - \endcode - - This should build everything. If Python can not be linked or include files can not be found, - you probably need to tweak \b build/python.prf - - The tests and examples are located in PythonQt/lib. - - \subsection Linux - - On Linux, you need to install a Python-dev package. - If Python can not be linked or include files can not be found, - you probably need to tweak \b build/python.prf - - To build PythonQt, just do a: - - \code - > cd PythonQtRoot - > qmake - > make all - \endcode - - The tests and examples are located in PythonQt/lib. - You should add PythonQt/lib to your LD_LIBRARY_PATH so that the runtime - linker can find the *.so files. - - \subsection MacOsX - - On Mac, Python is installed as a Framework, so you should not need to install it. - To build PythonQt, just do a: - - \code - > cd PythonQtRoot - > qmake - > make all - \endcode - - \section Tests - - There is a unit test that tests most features of PythonQt, see the \b tests subdirectory for details. - - \page Examples Examples - - Examples are available in the \b examples directory. The PyScriptingConsole implements a simple - interactive scripting console that shows how to script a simple application. The PyLauncher application can be used to run arbitrary PythonQt scripts given on the commandline. - - The following shows a simple example on how to integrate PythonQt into your Qt application: - - \code - #include "PythonQt.h" - #include - ... - - int main( int argc, char **argv ) - { - - QApplication qapp(argc, argv); - - // init PythonQt and Python itself - PythonQt::init(); - - // get a smart pointer to the __main__ module of the Python interpreter - PythonQtObjectPtr context = PythonQt::self()->getMainModule(); - - // add a QObject as variable of name "example" to the namespace of the __main__ module - PyExampleObject example; - context.addObject("example", &example); - - // do something - context.evalScript("print example"); - context.evalScript("def multiply(a,b):\n return a*b;\n"); - QVariantList args; - args << 42 << 47; - QVariant result = context.call("multiply", args); - ... - \endcode - - -*/ diff --git a/3rdparty/pythonqt/src/PythonQtImportFileInterface.h b/3rdparty/pythonqt/src/PythonQtImportFileInterface.h deleted file mode 100644 index 7619436d9..000000000 --- a/3rdparty/pythonqt/src/PythonQtImportFileInterface.h +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef _PYTHONQTIMPORTFILEINTERFACE_H -#define _PYTHONQTIMPORTFILEINTERFACE_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtImportFileInterface.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include -#include -#include - -//! Defines an abstract interface to file access for the Python import statement. -//! see PythonQt::setImporter() -class PythonQtImportFileInterface { - -public: - // get rid of warnings - virtual ~PythonQtImportFileInterface() {} - - //! read the given file as byte array, without doing any linefeed translations - virtual QByteArray readFileAsBytes(const QString& filename) = 0; - - //! read a source file, expects a readable Python text file with translated line feeds. - //! If the file can not be load OR it can not be verified, ok is set to false - virtual QByteArray readSourceFile(const QString& filename, bool& ok) = 0; - - //! returns if the file exists - virtual bool exists(const QString& filename) = 0; - - //! get the last modified data of a file - virtual QDateTime lastModifiedDate(const QString& filename) = 0; - -}; - -#endif \ No newline at end of file diff --git a/3rdparty/pythonqt/src/PythonQtImporter.cpp b/3rdparty/pythonqt/src/PythonQtImporter.cpp deleted file mode 100644 index 81e26fd30..000000000 --- a/3rdparty/pythonqt/src/PythonQtImporter.cpp +++ /dev/null @@ -1,744 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtImporter.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -// This module was inspired by the zipimport.c module of the original -// Python distribution. Most of the functions are identical or slightly -// modified to do all the loading of Python files via an external file interface. -// In contrast to zipimport.c, this module also writes *.pyc files -// automatically if it has write access/is not inside of a zip file. -//---------------------------------------------------------------------------------- - -#include "PythonQtImporter.h" -#include "PythonQtImportFileInterface.h" -#include "PythonQt.h" -#include "PythonQtConversion.h" -#include -#include - -#define IS_SOURCE 0x0 -#define IS_BYTECODE 0x1 -#define IS_PACKAGE 0x2 - -struct st_mlab_searchorder { - char suffix[14]; - int type; -}; - -/* mlab_searchorder defines how we search for a module in the Zip - archive: we first search for a package __init__, then for - non-package .pyc, .pyo and .py entries. The .pyc and .pyo entries - are swapped by initmlabimport() if we run in optimized mode. Also, - '/' is replaced by SEP there. */ - struct st_mlab_searchorder mlab_searchorder[] = { - {"/__init__.pyc", IS_PACKAGE | IS_BYTECODE}, - {"/__init__.pyo", IS_PACKAGE | IS_BYTECODE}, - {"/__init__.py", IS_PACKAGE | IS_SOURCE}, - {".pyc", IS_BYTECODE}, - {".pyo", IS_BYTECODE}, - {".py", IS_SOURCE}, - {"", 0} -}; - -extern PyTypeObject PythonQtImporter_Type; -PyObject *PythonQtImportError; - -QString PythonQtImport::getSubName(const QString& str) -{ - int idx = str.lastIndexOf('.'); - if (idx!=-1) { - return str.mid(idx+1); - } else { - return str; - } -} - -PythonQtImport::ModuleInfo PythonQtImport::getModuleInfo(PythonQtImporter* self, const QString& fullname) -{ - ModuleInfo info; - QString subname; - struct st_mlab_searchorder *zso; - - subname = getSubName(fullname); - QString path = *self->_path + "/" + subname; - - QString test; - for (zso = mlab_searchorder; *zso->suffix; zso++) { - test = path + zso->suffix; - if (PythonQt::importInterface()->exists(test)) { - info.fullPath = test; - info.moduleName = subname; - info.type = (zso->type & IS_PACKAGE)?MI_PACKAGE:MI_MODULE; - return info; - } - } - // test if it is a shared library - foreach(const QString& suffix, PythonQt::priv()->sharedLibrarySuffixes()) { - test = path+suffix; - if (PythonQt::importInterface()->exists(test)) { - info.fullPath = test; - info.moduleName = subname; - info.type = MI_SHAREDLIBRARY; - } - } - return info; -} - - -/* PythonQtImporter.__init__ - Just store the path argument (or reject if it is in the ignorePaths list -*/ -int PythonQtImporter_init(PythonQtImporter *self, PyObject *args, PyObject * /*kwds*/) -{ - self->_path = NULL; - - const char* cpath; - if (!PyArg_ParseTuple(args, "s", - &cpath)) - return -1; - - QString path(cpath); - if (PythonQt::importInterface()->exists(path)) { - const QStringList& ignorePaths = PythonQt::self()->getImporterIgnorePaths(); - foreach(QString ignorePath, ignorePaths) { - if (path.startsWith(ignorePath)) { - PyErr_SetString(PythonQtImportError, - "path ignored"); - return -1; - } - } - - self->_path = new QString(path); - return 0; - } else { - PyErr_SetString(PythonQtImportError, - "path does not exist error"); - return -1; - } -} - -void -PythonQtImporter_dealloc(PythonQtImporter *self) -{ - // free the stored path - if (self->_path) delete self->_path; - // free ourself - self->ob_type->tp_free((PyObject *)self); -} - - -/* Check whether we can satisfy the import of the module named by - 'fullname'. Return self if we can, None if we can't. */ -PyObject * -PythonQtImporter_find_module(PyObject *obj, PyObject *args) -{ - PythonQtImporter *self = (PythonQtImporter *)obj; - PyObject *path = NULL; - char *fullname; - - if (!PyArg_ParseTuple(args, "s|O:PythonQtImporter.find_module", - &fullname, &path)) - return NULL; - - //qDebug() << "looking for " << fullname << " at " << *self->_path; - - PythonQtImport::ModuleInfo info = PythonQtImport::getModuleInfo(self, fullname); - if (info.type != PythonQtImport::MI_NOT_FOUND) { - Py_INCREF(self); - return (PyObject *)self; - } else { - Py_INCREF(Py_None); - return Py_None; - } -} - -/* Load and return the module named by 'fullname'. */ -PyObject * -PythonQtImporter_load_module(PyObject *obj, PyObject *args) -{ - PythonQtImporter *self = (PythonQtImporter *)obj; - PyObject *code = NULL, *mod = NULL, *dict = NULL; - char *fullname; - - if (!PyArg_ParseTuple(args, "s:PythonQtImporter.load_module", - &fullname)) - return NULL; - - PythonQtImport::ModuleInfo info = PythonQtImport::getModuleInfo(self, fullname); - if (info.type == PythonQtImport::MI_NOT_FOUND) { - return NULL; - } - - if (info.type == PythonQtImport::MI_PACKAGE || info.type == PythonQtImport::MI_MODULE) { - QString fullPath; - code = PythonQtImport::getModuleCode(self, fullname, fullPath); - if (code == NULL) { - return NULL; - } - - mod = PyImport_AddModule(fullname); - if (mod == NULL) { - Py_DECREF(code); - return NULL; - } - dict = PyModule_GetDict(mod); - - if (PyDict_SetItemString(dict, "__loader__", (PyObject *)self) != 0) { - Py_DECREF(code); - Py_DECREF(mod); - return NULL; - } - - if (info.type == PythonQtImport::MI_PACKAGE) { - PyObject *pkgpath, *fullpath; - QString subname = info.moduleName; - int err; - - fullpath = PyString_FromFormat("%s%c%s", - self->_path->toLatin1().constData(), - SEP, - subname.toLatin1().constData()); - if (fullpath == NULL) { - Py_DECREF(code); - Py_DECREF(mod); - return NULL; - } - - pkgpath = Py_BuildValue("[O]", fullpath); - Py_DECREF(fullpath); - if (pkgpath == NULL) { - Py_DECREF(code); - Py_DECREF(mod); - return NULL; - } - err = PyDict_SetItemString(dict, "__path__", pkgpath); - Py_DECREF(pkgpath); - if (err != 0) { - Py_DECREF(code); - Py_DECREF(mod); - return NULL; - } - } - mod = PyImport_ExecCodeModuleEx(fullname, code, fullPath.toLatin1().data()); - Py_DECREF(code); - if (Py_VerboseFlag) { - PySys_WriteStderr("import %s # loaded from %s\n", - fullname, fullPath.toLatin1().constData()); - } - } else { - PythonQtObjectPtr imp; - imp.setNewRef(PyImport_ImportModule("imp")); - - // Create a PyList with the current path as its single element, - // which is required for find_module (it won't accept a tuple...) - PythonQtObjectPtr pathList; - pathList.setNewRef(PythonQtConv::QStringListToPyList(QStringList() << *self->_path)); - - QVariantList args; - // Pass the module name without the package prefix - args.append(info.moduleName); - // And the path where we know that the shared library is - args.append(QVariant::fromValue(pathList)); - QVariant result = imp.call("find_module", args); - if (result.isValid()) { - // This will return a tuple with (file, pathname, description) - QVariantList list = result.toList(); - if (list.count()==3) { - // We prepend the full module name (including package prefix) - list.prepend(fullname); - // And call "load_module" with (fullname, file, pathname, description) - PythonQtObjectPtr module = imp.call("load_module", list); - mod = module.object(); - if (mod) { - Py_INCREF(mod); - } - - // Finally, we need to close the file again, which find_module opened for us - PythonQtObjectPtr file = list.at(1); - file.call("close"); - } - } - } - return mod; -} - - -PyObject * -PythonQtImporter_get_data(PyObject* /*obj*/, PyObject* /*args*/) -{ - // EXTRA, NOT YET IMPLEMENTED - return NULL; -} - -PyObject * -PythonQtImporter_get_code(PyObject *obj, PyObject *args) -{ - PythonQtImporter *self = (PythonQtImporter *)obj; - char *fullname; - - if (!PyArg_ParseTuple(args, "s:PythonQtImporter.get_code", &fullname)) - return NULL; - - QString notused; - return PythonQtImport::getModuleCode(self, fullname, notused); -} - -PyObject * -PythonQtImporter_get_source(PyObject * /*obj*/, PyObject * /*args*/) -{ - // EXTRA, NOT YET IMPLEMENTED - return NULL; -} - -PyDoc_STRVAR(doc_find_module, -"find_module(fullname, path=None) -> self or None.\n\ -\n\ -Search for a module specified by 'fullname'. 'fullname' must be the\n\ -fully qualified (dotted) module name. It returns the PythonQtImporter\n\ -instance itself if the module was found, or None if it wasn't.\n\ -The optional 'path' argument is ignored -- it's there for compatibility\n\ -with the importer protocol."); - -PyDoc_STRVAR(doc_load_module, -"load_module(fullname) -> module.\n\ -\n\ -Load the module specified by 'fullname'. 'fullname' must be the\n\ -fully qualified (dotted) module name. It returns the imported\n\ -module, or raises PythonQtImportError if it wasn't found."); - -PyDoc_STRVAR(doc_get_data, -"get_data(pathname) -> string with file data.\n\ -\n\ -Return the data associated with 'pathname'. Raise IOError if\n\ -the file wasn't found."); - -PyDoc_STRVAR(doc_get_code, -"get_code(fullname) -> code object.\n\ -\n\ -Return the code object for the specified module. Raise PythonQtImportError\n\ -is the module couldn't be found."); - -PyDoc_STRVAR(doc_get_source, -"get_source(fullname) -> source string.\n\ -\n\ -Return the source code for the specified module. Raise PythonQtImportError\n\ -is the module couldn't be found, return None if the archive does\n\ -contain the module, but has no source for it."); - -PyMethodDef PythonQtImporter_methods[] = { - {"find_module", PythonQtImporter_find_module, METH_VARARGS, - doc_find_module}, - {"load_module", PythonQtImporter_load_module, METH_VARARGS, - doc_load_module}, - {"get_data", PythonQtImporter_get_data, METH_VARARGS, - doc_get_data}, - {"get_code", PythonQtImporter_get_code, METH_VARARGS, - doc_get_code}, - {"get_source", PythonQtImporter_get_source, METH_VARARGS, - doc_get_source}, - {NULL, NULL, 0 , NULL} /* sentinel */ -}; - - -PyDoc_STRVAR(PythonQtImporter_doc, -"PythonQtImporter(path) -> PythonQtImporter object\n\ -\n\ -Create a new PythonQtImporter instance. 'path' must be a valid path on disk/or inside of a zip file known to MeVisLab\n\ -. Every path is accepted."); - -#define DEFERRED_ADDRESS(ADDR) 0 - -PyTypeObject PythonQtImporter_Type = { - PyObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type)) - 0, - "PythonQtImport.PythonQtImporter", - sizeof(PythonQtImporter), - 0, /* tp_itemsize */ - (destructor)PythonQtImporter_dealloc, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - 0, /* tp_compare */ - 0, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - 0, /* tp_hash */ - 0, /* tp_call */ - 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE , /* tp_flags */ - PythonQtImporter_doc, /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - PythonQtImporter_methods, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - (initproc)PythonQtImporter_init, /* tp_init */ - PyType_GenericAlloc, /* tp_alloc */ - PyType_GenericNew, /* tp_new */ - PyObject_Del, /* tp_free */ -}; - - -/* Given a buffer, return the long that is represented by the first - 4 bytes, encoded as little endian. This partially reimplements - marshal.c:r_long() */ -long -PythonQtImport::getLong(unsigned char *buf) -{ - long x; - x = buf[0]; - x |= (long)buf[1] << 8; - x |= (long)buf[2] << 16; - x |= (long)buf[3] << 24; -#if SIZEOF_LONG > 4 - /* Sign extension for 64-bit machines */ - x |= -(x & 0x80000000L); -#endif - return x; -} - -void PythonQtImport::writeCompiledModule(PyCodeObject *co, const QString& filename, long mtime) -{ - // we do not want to write Qt resources to disk, do we? - if (filename.startsWith(":")) { - return; - } - -#if PY_VERSION_HEX < 0x02040000 - PyObject* data = PyMarshal_WriteObjectToString((PyObject*) co); -#else - PyObject* data = PyMarshal_WriteObjectToString((PyObject*) co, Py_MARSHAL_VERSION); -#endif - - if (!data) { - return; - } - - QFile file(filename); - if (!file.open(QIODevice::WriteOnly)) { - Py_DECREF(data); - return; - } - - char* buffer = NULL; - Py_ssize_t length = 0; - PyString_AsStringAndSize(data, &buffer, &length); - - const quint32 magic_number = PyImport_GetMagicNumber(); - const quint32 mtime_32 = mtime; - - file.write(reinterpret_cast(&magic_number), sizeof(magic_number)); - file.write(reinterpret_cast(&mtime_32), sizeof(mtime_32)); - file.write(buffer, length); - - Py_DECREF(data); -} - -/* Given the contents of a .py[co] file in a buffer, unmarshal the data - and return the code object. Return None if it the magic word doesn't - match (we do this instead of raising an exception as we fall back - to .py if available and we don't want to mask other errors). - Returns a new reference. */ -PyObject * -PythonQtImport::unmarshalCode(const QString& path, const QByteArray& data, time_t mtime) -{ - PyObject *code; - // ugly cast, but Python API is not const safe - char *buf = (char*) data.constData(); - int size = data.size(); - - if (size <= 9) { - PySys_WriteStderr("# %s has bad pyc data\n", - path.toLatin1().constData()); - Py_INCREF(Py_None); - return Py_None; - } - - if (getLong((unsigned char *)buf) != PyImport_GetMagicNumber()) { - if (Py_VerboseFlag) - PySys_WriteStderr("# %s has bad magic\n", - path.toLatin1().constData()); - Py_INCREF(Py_None); - return Py_None; - } - - if (mtime != 0 && !(getLong((unsigned char *)buf + 4) == mtime)) { - if (Py_VerboseFlag) - PySys_WriteStderr("# %s has bad mtime\n", - path.toLatin1().constData()); - Py_INCREF(Py_None); - return Py_None; - } - - code = PyMarshal_ReadObjectFromString(buf + 8, size - 8); - if (code == NULL) - return NULL; - if (!PyCode_Check(code)) { - Py_DECREF(code); - PyErr_Format(PyExc_TypeError, - "compiled module %.200s is not a code object", - path.toLatin1().constData()); - return NULL; - } - return code; -} - - -/* Given a string buffer containing Python source code, compile it - return and return a code object as a new reference. */ -PyObject * -PythonQtImport::compileSource(const QString& path, const QByteArray& data) -{ - PyObject *code; - QByteArray data1 = data; -// in qt4, data is null terminated -// data1.resize(data.size()+1); -// data1.data()[data.size()-1] = 0; - code = Py_CompileString(data.data(), path.toLatin1().constData(), - Py_file_input); - return code; -} - - -/* Return the code object for the module named by 'fullname' from the - Zip archive as a new reference. */ -PyObject * -PythonQtImport::getCodeFromData(const QString& path, int isbytecode,int /*ispackage*/, time_t mtime) -{ - PyObject *code; - - QByteArray qdata; - if (!isbytecode) { - // mlabDebugConst("MLABPython", "reading source " << path); - bool ok; - qdata = PythonQt::importInterface()->readSourceFile(path, ok); - if (!ok) { - // mlabErrorConst("PythonQtImporter","File could not be verified" << path); - return NULL; - } - if (qdata == " ") { - qdata.clear(); - } - } else { - qdata = PythonQt::importInterface()->readFileAsBytes(path); - } - - if (isbytecode) { -// mlabDebugConst("MLABPython", "reading bytecode " << path); - code = unmarshalCode(path, qdata, mtime); - } - else { - // mlabDebugConst("MLABPython", "compiling source " << path); - code = compileSource(path, qdata); - if (code) { - // save a pyc file if possible - QDateTime time; - time = PythonQt::importInterface()->lastModifiedDate(path); - writeCompiledModule((PyCodeObject*)code, path+"c", time.toTime_t()); - } - } - return code; -} - -time_t -PythonQtImport::getMTimeOfSource(const QString& path) -{ - time_t mtime = 0; - QString path2 = path; - path2.truncate(path.length()-1); - - if (PythonQt::importInterface()->exists(path2)) { - mtime = PythonQt::importInterface()->lastModifiedDate(path2).toTime_t(); - } - - return mtime; -} - -/* Get the code object associated with the module specified by - 'fullname'. */ -PyObject * -PythonQtImport::getModuleCode(PythonQtImporter *self, const char* fullname, QString& modpath) -{ - QString subname; - struct st_mlab_searchorder *zso; - - subname = getSubName(fullname); - QString path = *self->_path + "/" + subname; - - QString test; - for (zso = mlab_searchorder; *zso->suffix; zso++) { - PyObject *code = NULL; - test = path + zso->suffix; - - if (Py_VerboseFlag > 1) - PySys_WriteStderr("# trying %s\n", - test.toLatin1().constData()); - if (PythonQt::importInterface()->exists(test)) { - time_t mtime = 0; - int ispackage = zso->type & IS_PACKAGE; - int isbytecode = zso->type & IS_BYTECODE; - - if (isbytecode) { - mtime = getMTimeOfSource(test); - } - code = getCodeFromData(test, isbytecode, ispackage, mtime); - if (code == Py_None) { - Py_DECREF(code); - continue; - } - if (code != NULL) { - modpath = test; - } - return code; - } - } - PyErr_Format(PythonQtImportError, "can't find module '%.200s'", fullname); - - return NULL; -} - -QString PythonQtImport::replaceExtension(const QString& str, const QString& ext) -{ - QString r; - int i = str.lastIndexOf('.'); - if (i!=-1) { - r = str.mid(0,i) + "." + ext; - } else { - r = str + "." + ext; - } - return r; -} - -PyObject* PythonQtImport::getCodeFromPyc(const QString& file) -{ - PyObject* code; - const static QString pycStr("pyc"); - QString pyc = replaceExtension(file, pycStr); - if (PythonQt::importInterface()->exists(pyc)) { - time_t mtime = 0; - mtime = getMTimeOfSource(pyc); - code = getCodeFromData(pyc, true, false, mtime); - if (code != Py_None && code != NULL) { - return code; - } - if (code) { - Py_DECREF(code); - } - } - code = getCodeFromData(file,false,false,0); - return code; -} - -/* Module init */ - -PyDoc_STRVAR(mlabimport_doc, -"Imports python files into PythonQt, completely replaces internal python import"); - -void PythonQtImport::init() -{ - static bool first = true; - if (!first) { - return; - } - first = false; - - PyObject *mod; - - if (PyType_Ready(&PythonQtImporter_Type) < 0) - return; - - /* Correct directory separator */ - mlab_searchorder[0].suffix[0] = SEP; - mlab_searchorder[1].suffix[0] = SEP; - mlab_searchorder[2].suffix[0] = SEP; - if (Py_OptimizeFlag) { - /* Reverse *.pyc and *.pyo */ - struct st_mlab_searchorder tmp; - tmp = mlab_searchorder[0]; - mlab_searchorder[0] = mlab_searchorder[1]; - mlab_searchorder[1] = tmp; - tmp = mlab_searchorder[3]; - mlab_searchorder[3] = mlab_searchorder[4]; - mlab_searchorder[4] = tmp; - } - - mod = Py_InitModule4("PythonQtImport", NULL, mlabimport_doc, - NULL, PYTHON_API_VERSION); - - PythonQtImportError = PyErr_NewException("PythonQtImport.PythonQtImportError", - PyExc_ImportError, NULL); - if (PythonQtImportError == NULL) - return; - - Py_INCREF(PythonQtImportError); - if (PyModule_AddObject(mod, "PythonQtImportError", - PythonQtImportError) < 0) - return; - - Py_INCREF(&PythonQtImporter_Type); - if (PyModule_AddObject(mod, "PythonQtImporter", - (PyObject *)&PythonQtImporter_Type) < 0) - return; - - // set our importer into the path_hooks to handle all path on sys.path - PyObject* classobj = PyDict_GetItemString(PyModule_GetDict(mod), "PythonQtImporter"); - PyObject* path_hooks = PySys_GetObject("path_hooks"); - PyList_Append(path_hooks, classobj); - -#ifndef WIN32 - // reload the encodings module, because it might fail to custom import requirements (e.g. encryption). - PyObject* modules = PyImport_GetModuleDict(); - PyObject* encodingsModule = PyDict_GetItemString(modules, "encodings"); - if (encodingsModule != NULL) { - PyImport_ReloadModule(encodingsModule); - } -#endif -} diff --git a/3rdparty/pythonqt/src/PythonQtImporter.h b/3rdparty/pythonqt/src/PythonQtImporter.h deleted file mode 100644 index 196cf5bb6..000000000 --- a/3rdparty/pythonqt/src/PythonQtImporter.h +++ /dev/null @@ -1,137 +0,0 @@ -#ifndef _PYTHONQTIMPORTER_ -#define _PYTHONQTIMPORTER_ - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtImporter.h -// \author Florian Link -// \author Last changed by $Author: stk $ -// \date 2004-06 -*/ -//---------------------------------------------------------------------------------- - -#include "Python.h" -#include "structmember.h" -#include "osdefs.h" -#include "marshal.h" -#include "compile.h" -#include - -#include -#include - - -//! defines a python object that stores a Qt slot info -typedef struct _PythonQtImporter { - PyObject_HEAD - QString* _path; -} PythonQtImporter; - - -//! implements importing of python files into PythonQt -/*! also compiles/marshalls/unmarshalls py/pyc files and handles time stamps correctly -*/ -class PythonQtImport -{ -public: - - enum ModuleType { - MI_NOT_FOUND, - MI_MODULE, - MI_PACKAGE, - MI_SHAREDLIBRARY - }; - - struct ModuleInfo { - ModuleInfo() { - type = MI_NOT_FOUND; - } - QString fullPath; //!< the full path to the found file - QString moduleName; //!< the module name without the package prefix - ModuleType type; - }; - - //! initialize - static void init(); - - //! writes the python code to disk, marshalling and writing the time stamp - static void writeCompiledModule(PyCodeObject *co, const QString& filename, long mtime); - - /*! Given the contents of a .py[co] file in a buffer, unmarshal the data - and return the code object. Return None if it the magic word doesn't - match (we do this instead of raising an exception as we fall back - to .py if available and we don't want to mask other errors). - Returns a new reference. */ - static PyObject *unmarshalCode(const QString& path, const QByteArray& data, time_t mtime); - - //! Given a string buffer containing Python source code, compile it - //! return and return a code object as a new reference. - static PyObject *compileSource(const QString& path, const QByteArray& data); - - //! Return the code object for the module named by 'fullname' from the - //! Zip archive as a new reference. - static PyObject *getCodeFromData(const QString& path, int isbytecode = 0, int ispackage = 0, - time_t mtime = 0); - - //! Get the code object associated with the module specified by - //! 'fullname'. - static PyObject * getModuleCode(PythonQtImporter *self, - const char* fullname, QString& modpath); - - - //! gets the compiled code for the given *.py file if there is a valid pyc file, otherwise compiles the file and writes the pyc - static PyObject* getCodeFromPyc(const QString& file); - - //! Return if module exists and is a package or a module - static ModuleInfo getModuleInfo(PythonQtImporter* self, const QString& fullname); - - //! get the last name of a dot chain (first.second.last) - static QString getSubName(const QString& str); - - //! Given a buffer, return the long that is represented by the first - //! 4 bytes, encoded as little endian. This partially reimplements - //! marshal.c:r_long() - static long getLong(unsigned char *buf); - - //! get time stamp of file - static time_t getMTimeOfSource(const QString& path); - - //! replace extension of file - static QString replaceExtension(const QString& str, const QString& ext); - -}; - -#endif - diff --git a/3rdparty/pythonqt/src/PythonQtInstanceWrapper.cpp b/3rdparty/pythonqt/src/PythonQtInstanceWrapper.cpp deleted file mode 100644 index 77b45fa67..000000000 --- a/3rdparty/pythonqt/src/PythonQtInstanceWrapper.cpp +++ /dev/null @@ -1,726 +0,0 @@ -/* -* -* Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this library; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, -* 28359 Bremen, Germany or: -* -* http://www.mevis.de -* -*/ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtInstanceWrapper.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtInstanceWrapper.h" -#include -#include "PythonQt.h" -#include "PythonQtSlot.h" -#include "PythonQtClassInfo.h" -#include "PythonQtConversion.h" -#include "PythonQtClassWrapper.h" - -PythonQtClassInfo* PythonQtInstanceWrapperStruct::classInfo() -{ - // take the class info from our type object - return ((PythonQtClassWrapper*)ob_type)->_classInfo; -} - -static void PythonQtInstanceWrapper_deleteObject(PythonQtInstanceWrapper* self, bool force = false) { - - // is this a C++ wrapper? - if (self->_wrappedPtr) { - //mlabDebugConst("Python","c++ wrapper removed " << self->_wrappedPtr << " " << self->_obj->className() << " " << self->classInfo()->wrappedClassName().latin1()); - - PythonQt::priv()->removeWrapperPointer(self->_wrappedPtr); - // we own our qobject, so we delete it now: - delete self->_obj; - self->_obj = NULL; - if (force || self->classInfo()->hasOwnerMethodButNoOwner(self->_wrappedPtr) || self->_ownedByPythonQt) { - int type = self->classInfo()->metaTypeId(); - if (self->_useQMetaTypeDestroy && type>=0) { - // use QMetaType to destroy the object - QMetaType::destroy(type, self->_wrappedPtr); - } else { - PythonQtSlotInfo* slot = self->classInfo()->destructor(); - if (slot) { - void* args[2]; - args[0] = NULL; - args[1] = &self->_wrappedPtr; - slot->decorator()->qt_metacall(QMetaObject::InvokeMetaMethod, slot->slotIndex(), args); - self->_wrappedPtr = NULL; - } else { - if (type>=0) { - // use QMetaType to destroy the object - QMetaType::destroy(type, self->_wrappedPtr); - } else { - // TODO: warn about not being able to destroy the object? - } - } - } - } - } else { - //mlabDebugConst("Python","qobject wrapper removed " << self->_obj->className() << " " << self->classInfo()->wrappedClassName().latin1()); - if (self->_objPointerCopy) { - PythonQt::priv()->removeWrapperPointer(self->_objPointerCopy); - } - if (self->_obj) { - if (force || self->_ownedByPythonQt) { - if (force || !self->_obj->parent()) { - delete self->_obj; - } - } else { - if (self->_obj->parent()==NULL) { - // tell someone who is interested that the qobject is no longer wrapped, if it has no parent - PythonQt::qObjectNoLongerWrappedCB(self->_obj); - } - } - } - } - self->_obj = NULL; -} - -static void PythonQtInstanceWrapper_dealloc(PythonQtInstanceWrapper* self) -{ - PythonQtInstanceWrapper_deleteObject(self); - self->_obj.~QPointer(); - self->ob_type->tp_free((PyObject*)self); -} - -static PyObject* PythonQtInstanceWrapper_new(PyTypeObject *type, PyObject * /*args*/, PyObject * /*kwds*/) -{ - //PythonQtClassWrapper *classType = (PythonQtClassWrapper*)type; - PythonQtInstanceWrapper *self; - static PyObject* emptyTuple = NULL; - if (emptyTuple==NULL) { - emptyTuple = PyTuple_New(0); - } - - self = (PythonQtInstanceWrapper*)PyBaseObject_Type.tp_new(type, emptyTuple, NULL); - - if (self != NULL) { - new (&self->_obj) QPointer(); - self->_wrappedPtr = NULL; - self->_ownedByPythonQt = false; - self->_useQMetaTypeDestroy = false; - self->_isShellInstance = false; - } - return (PyObject *)self; -} - -int PythonQtInstanceWrapper_init(PythonQtInstanceWrapper * self, PyObject * args, PyObject * kwds) -{ - if (args == PythonQtPrivate::dummyTuple()) { - // we are called from the internal PythonQt API, so our data will be filled later on... - return 0; - } - - // we are called from python, try to construct our object - if (self->classInfo()->constructors()) { - void* directCPPPointer = NULL; - PythonQtSlotFunction_CallImpl(self->classInfo(), NULL, self->classInfo()->constructors(), args, kwds, NULL, &directCPPPointer); - if (PyErr_Occurred()) { - return -1; - } - if (directCPPPointer) { - // change ownershipflag to be owned by PythonQt - self->_ownedByPythonQt = true; - self->_useQMetaTypeDestroy = false; - if (self->classInfo()->isCPPWrapper()) { - self->_wrappedPtr = directCPPPointer; - // TODO xxx: if there is a wrapper factory, we might want to generate a wrapper for our class?! - } else { - self->setQObject((QObject*)directCPPPointer); - } - // register with PythonQt - PythonQt::priv()->addWrapperPointer(directCPPPointer, self); - - PythonQtShellSetInstanceWrapperCB* cb = self->classInfo()->shellSetInstanceWrapperCB(); - if (cb) { - // if we are a derived python class, we set the wrapper - // to activate the shell class, otherwise we just ignore that it is a shell... - // we detect it be checking if the type does not have PythonQtInstanceWrapper_Type as direct base class, - // which is the case for all non-python derived types - if (((PyObject*)self)->ob_type->tp_base != &PythonQtInstanceWrapper_Type) { - // set the wrapper and remember that we have a shell instance! - (*cb)(directCPPPointer, self); - self->_isShellInstance = true; - } - } - } - } else { - QString error = QString("No constructors available for ") + self->classInfo()->className(); - PyErr_SetString(PyExc_ValueError, error.toLatin1().data()); - return -1; - } - return 0; -} - -static PyObject *PythonQtInstanceWrapper_richcompare(PythonQtInstanceWrapper* wrapper, PyObject* other, int code) -{ - bool validPtrs = false; - bool areSamePtrs = false; - if (PyObject_TypeCheck((PyObject*)wrapper, &PythonQtInstanceWrapper_Type)) { - if (PyObject_TypeCheck(other, &PythonQtInstanceWrapper_Type)) { - validPtrs = true; - PythonQtInstanceWrapper* w1 = wrapper; - PythonQtInstanceWrapper* w2 = (PythonQtInstanceWrapper*)other; - // check pointers directly - if (w1->_wrappedPtr != NULL) { - if (w1->_wrappedPtr == w2->_wrappedPtr) { - areSamePtrs = true; - } - } else if (w1->_obj == w2->_obj) { - areSamePtrs = true; - } - } else if (other == Py_None) { - validPtrs = true; - if (wrapper->_obj || wrapper->_wrappedPtr) { - areSamePtrs = false; - } else { - areSamePtrs = true; - } - } - } - - if ((wrapper->classInfo()->typeSlots() & PythonQt::Type_RichCompare) == 0) { - // shortcut if richcompare is not supported: - if (validPtrs && code == Py_EQ) { - return PythonQtConv::GetPyBool(areSamePtrs); - } else if (validPtrs && code == Py_NE) { - return PythonQtConv::GetPyBool(!areSamePtrs); - } - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } - - QByteArray memberName; - switch (code) { - case Py_LT: - { - static QByteArray name = "__lt__"; - memberName = name; - } - break; - - case Py_LE: - { - static QByteArray name = "__le__"; - memberName = name; - } - break; - - case Py_EQ: - { - static QByteArray name = "__eq__"; - memberName = name; - } - break; - - case Py_NE: - { - static QByteArray name = "__ne__"; - memberName = name; - } - break; - - case Py_GT: - { - static QByteArray name = "__gt__"; - memberName = name; - } - break; - - case Py_GE: - { - static QByteArray name = "__ge__"; - memberName = name; - } - break; - } - - PythonQtMemberInfo opSlot = wrapper->classInfo()->member(memberName); - if (opSlot._type == PythonQtMemberInfo::Slot) { - // TODO get rid of tuple - PyObject* args = PyTuple_New(1); - Py_INCREF(other); - PyTuple_SET_ITEM(args, 0, other); - PyObject* result = PythonQtSlotFunction_CallImpl(wrapper->classInfo(), wrapper->_obj, opSlot._slot, args, NULL, wrapper->_wrappedPtr); - Py_DECREF(args); - return result; - } else { - // not implemented, let python try something else! - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } -} - - -static PyObject *PythonQtInstanceWrapper_classname(PythonQtInstanceWrapper* obj) -{ - return PyString_FromString(obj->ob_type->tp_name); -} - -static PyObject *PythonQtInstanceWrapper_help(PythonQtInstanceWrapper* obj) -{ - return PythonQt::self()->helpCalled(obj->classInfo()); -} - -static PyObject *PythonQtInstanceWrapper_delete(PythonQtInstanceWrapper * self) -{ - PythonQtInstanceWrapper_deleteObject(self, true); - Py_INCREF(Py_None); - return Py_None; -} - - -static PyMethodDef PythonQtInstanceWrapper_methods[] = { - {"className", (PyCFunction)PythonQtInstanceWrapper_classname, METH_NOARGS, - "Return the classname of the object" - }, - {"help", (PyCFunction)PythonQtInstanceWrapper_help, METH_NOARGS, - "Shows the help of available methods for this class" - }, - {"delete", (PyCFunction)PythonQtInstanceWrapper_delete, METH_NOARGS, - "Deletes the C++ object (at your own risk, my friend!)" - }, -{NULL, NULL, 0, NULL} /* Sentinel */ -}; - - -static PyObject *PythonQtInstanceWrapper_getattro(PyObject *obj,PyObject *name) -{ - const char *attributeName; - PythonQtInstanceWrapper *wrapper = (PythonQtInstanceWrapper *)obj; - - if ((attributeName = PyString_AsString(name)) == NULL) { - return NULL; - } - - if (qstrcmp(attributeName, "__dict__")==0) { - PyObject* dict = PyBaseObject_Type.tp_getattro(obj, name); - dict = PyDict_Copy(dict); - - if (wrapper->_obj) { - // only the properties are missing, the rest is already available from - // PythonQtClassWrapper... - QStringList l = wrapper->classInfo()->propertyList(); - foreach (QString name, l) { - PyObject* o = PyObject_GetAttrString(obj, name.toLatin1().data()); - if (o) { - PyDict_SetItemString(dict, name.toLatin1().data(), o); - Py_DECREF(o); - } else { - std::cerr << "PythonQtInstanceWrapper: something is wrong, could not get attribute " << name.toLatin1().data(); - } - } - - QList dynamicProps = wrapper->_obj->dynamicPropertyNames(); - foreach (QByteArray name, dynamicProps) { - PyObject* o = PyObject_GetAttrString(obj, name.data()); - if (o) { - PyDict_SetItemString(dict, name.data(), o); - Py_DECREF(o); - } else { - std::cerr << "PythonQtInstanceWrapper: dynamic property could not be read " << name.data(); - } - } - } - // Note: we do not put children into the dict, is would look confusing?! - return dict; - } - - // first look in super, to return derived methods from base object first - PyObject* superAttr = PyBaseObject_Type.tp_getattro(obj, name); - if (superAttr) { - return superAttr; - } - PyErr_Clear(); - - // mlabDebugConst("Python","get " << attributeName); - - PythonQtMemberInfo member = wrapper->classInfo()->member(attributeName); - switch (member._type) { - case PythonQtMemberInfo::Property: - if (wrapper->_obj) { - if (member._property.userType() != QVariant::Invalid) { - return PythonQtConv::QVariantToPyObject(member._property.read(wrapper->_obj)); - } else { - Py_INCREF(Py_None); - return Py_None; - } - } else { - QString error = QString("Trying to read property '") + attributeName + "' from a destroyed " + wrapper->classInfo()->className() + " object"; - PyErr_SetString(PyExc_ValueError, error.toLatin1().data()); - return NULL; - } - break; - case PythonQtMemberInfo::Slot: - return PythonQtSlotFunction_New(member._slot, obj, NULL); - break; - case PythonQtMemberInfo::EnumValue: - { - PyObject* enumValue = member._enumValue; - Py_INCREF(enumValue); - return enumValue; - } - break; - case PythonQtMemberInfo::EnumWrapper: - { - PyObject* enumWrapper = member._enumWrapper; - Py_INCREF(enumWrapper); - return enumWrapper; - } - break; - case PythonQtMemberInfo::NotFound: - { - static const QByteArray getterString("py_get_"); - // check for a getter slot - PythonQtMemberInfo member = wrapper->classInfo()->member(getterString + attributeName); - if (member._type == PythonQtMemberInfo::Slot) { - return PythonQtSlotFunction_CallImpl(wrapper->classInfo(), wrapper->_obj, member._slot, NULL, NULL, wrapper->_wrappedPtr); - } - - // handle dynamic properties - if (wrapper->_obj) { - QVariant v = wrapper->_obj->property(attributeName); - if (v.isValid()) { - return PythonQtConv::QVariantToPyObject(v); - } - } - } - break; - default: - // is an invalid type, go on - break; - } - - // look for the internal methods (className(), help()) - PyObject* internalMethod = Py_FindMethod( PythonQtInstanceWrapper_methods, obj, (char*)attributeName); - if (internalMethod) { - return internalMethod; - } - PyErr_Clear(); - - if (wrapper->_obj) { - // look for a child - QObjectList children = wrapper->_obj->children(); - for (int i = 0; i < children.count(); i++) { - QObject *child = children.at(i); - if (child->objectName() == attributeName) { - return PythonQt::priv()->wrapQObject(child); - } - } - } - - QString error = QString(wrapper->classInfo()->className()) + " has no attribute named '" + QString(attributeName) + "'"; - PyErr_SetString(PyExc_AttributeError, error.toLatin1().data()); - return NULL; -} - -static int PythonQtInstanceWrapper_setattro(PyObject *obj,PyObject *name,PyObject *value) -{ - QString error; - const char *attributeName; - PythonQtInstanceWrapper *wrapper = (PythonQtInstanceWrapper *)obj; - - if ((attributeName = PyString_AsString(name)) == NULL) - return -1; - - PythonQtMemberInfo member = wrapper->classInfo()->member(attributeName); - if (member._type == PythonQtMemberInfo::Property) { - - if (!wrapper->_obj) { - error = QString("Trying to set property '") + attributeName + "' on a destroyed " + wrapper->classInfo()->className() + " object"; - PyErr_SetString(PyExc_AttributeError, error.toLatin1().data()); - return -1; - } - - QMetaProperty prop = member._property; - if (prop.isWritable()) { - QVariant v; - if (prop.isEnumType()) { - // this will give us either a string or an int, everything else will probably be an error - v = PythonQtConv::PyObjToQVariant(value); - } else { - int t = prop.userType(); - v = PythonQtConv::PyObjToQVariant(value, t); - } - bool success = false; - if (v.isValid()) { - success = prop.write(wrapper->_obj, v); - } - if (success) { - return 0; - } else { - error = QString("Property '") + attributeName + "' of type '" + - prop.typeName() + "' does not accept an object of type " - + QString(value->ob_type->tp_name) + " (" + PythonQtConv::PyObjGetRepresentation(value) + ")"; - } - } else { - error = QString("Property '") + attributeName + "' of " + obj->ob_type->tp_name + " object is not writable"; - } - } else if (member._type == PythonQtMemberInfo::Slot) { - error = QString("Slot '") + attributeName + "' can not be overwritten on " + obj->ob_type->tp_name + " object"; - } else if (member._type == PythonQtMemberInfo::EnumValue) { - error = QString("EnumValue '") + attributeName + "' can not be overwritten on " + obj->ob_type->tp_name + " object"; - } else if (member._type == PythonQtMemberInfo::EnumWrapper) { - error = QString("Enum '") + attributeName + "' can not be overwritten on " + obj->ob_type->tp_name + " object"; - } else if (member._type == PythonQtMemberInfo::NotFound) { - // check for a setter slot - static const QByteArray setterString("py_set_"); - PythonQtMemberInfo setter = wrapper->classInfo()->member(setterString + attributeName); - if (setter._type == PythonQtMemberInfo::Slot) { - // call the setter and ignore the result value - void* result; - PyObject* args = PyTuple_New(1); - Py_INCREF(value); - PyTuple_SET_ITEM(args, 0, value); - PythonQtSlotFunction_CallImpl(wrapper->classInfo(), wrapper->_obj, setter._slot, args, NULL, wrapper->_wrappedPtr, &result); - Py_DECREF(args); - return 0; - } - - // handle dynamic properties - if (wrapper->_obj) { - QVariant prop = wrapper->_obj->property(attributeName); - if (prop.isValid()) { - QVariant v = PythonQtConv::PyObjToQVariant(value); - if (v.isValid()) { - wrapper->_obj->setProperty(attributeName, v); - return 0; - } else { - error = QString("Dynamic property '") + attributeName + "' does not accept an object of type " - + QString(value->ob_type->tp_name) + " (" + PythonQtConv::PyObjGetRepresentation(value) + ")"; - PyErr_SetString(PyExc_AttributeError, error.toLatin1().data()); - return -1; - } - } - } - - // if we are a derived python class, we allow setting attributes. - // if we are a direct CPP wrapper, we do NOT allow it, since - // it would be confusing to allow it because a wrapper will go away when it is not seen by python anymore - // and when it is recreated from a CPP pointer the attributes are gone... - if (obj->ob_type->tp_base != &PythonQtInstanceWrapper_Type) { - return PyBaseObject_Type.tp_setattro(obj,name,value); - } else { - error = QString("'") + attributeName + "' does not exist on " + obj->ob_type->tp_name + " and creating new attributes on C++ objects is not allowed"; - } - } - - PyErr_SetString(PyExc_AttributeError, error.toLatin1().data()); - return -1; -} - -static QString getStringFromObject(PythonQtInstanceWrapper* wrapper) { - QString result; - if (wrapper->_wrappedPtr) { - // first try some manually string conversions for some variants - int metaid = wrapper->classInfo()->metaTypeId(); - result = PythonQtConv::CPPObjectToString(metaid, wrapper->_wrappedPtr); - if (!result.isEmpty()) { - return result; - } - } - // next, try to call py_toString - PythonQtMemberInfo info = wrapper->classInfo()->member("py_toString"); - if (info._type == PythonQtMemberInfo::Slot) { - PyObject* resultObj = PythonQtSlotFunction_CallImpl(wrapper->classInfo(), wrapper->_obj, info._slot, NULL, NULL, wrapper->_wrappedPtr); - if (resultObj) { - // TODO this is one conversion too much, would be nicer to call the slot directly... - result = PythonQtConv::PyObjGetString(resultObj); - Py_DECREF(resultObj); - } - } - return result; -} - -static PyObject * PythonQtInstanceWrapper_str(PyObject * obj) -{ - PythonQtInstanceWrapper* wrapper = (PythonQtInstanceWrapper*)obj; - - // QByteArray should be directly returned as a str - if (wrapper->classInfo()->metaTypeId()==QVariant::ByteArray) { - QByteArray* b = (QByteArray*) wrapper->_wrappedPtr; - if (b->data()) { - return PyString_FromStringAndSize(b->data(), b->size()); - } else { - return PyString_FromString(""); - } - } - - const char* typeName = obj->ob_type->tp_name; - QObject *qobj = wrapper->_obj; - QString str = getStringFromObject(wrapper); - if (!str.isEmpty()) { - return PyString_FromFormat("%s", str.toLatin1().constData()); - } - if (wrapper->_wrappedPtr) { - if (wrapper->_obj) { - return PyString_FromFormat("%s (C++ Object %p wrapped by %s %p))", typeName, wrapper->_wrappedPtr, wrapper->_obj->metaObject()->className(), qobj); - } else { - return PyString_FromFormat("%s (C++ Object %p)", typeName, wrapper->_wrappedPtr); - } - } else { - return PyString_FromFormat("%s (QObject %p)", typeName, qobj); - } -} - -static PyObject * PythonQtInstanceWrapper_repr(PyObject * obj) -{ - PythonQtInstanceWrapper* wrapper = (PythonQtInstanceWrapper*)obj; - const char* typeName = obj->ob_type->tp_name; - - QObject *qobj = wrapper->_obj; - QString str = getStringFromObject(wrapper); - if (!str.isEmpty()) { - if (str.startsWith(typeName)) { - return PyString_FromFormat("%s", str.toLatin1().constData()); - } else { - return PyString_FromFormat("%s(%s, %p)", typeName, str.toLatin1().constData(), wrapper->_wrappedPtr); - } - } - if (wrapper->_wrappedPtr) { - if (wrapper->_obj) { - return PyString_FromFormat("%s (C++ Object %p wrapped by %s %p))", typeName, wrapper->_wrappedPtr, wrapper->_obj->metaObject()->className(), qobj); - } else { - return PyString_FromFormat("%s (C++ Object %p)", typeName, wrapper->_wrappedPtr); - } - } else { - return PyString_FromFormat("%s (%s %p)", typeName, wrapper->classInfo()->className(), qobj); - } -} - -static int PythonQtInstanceWrapper_builtin_nonzero(PyObject *obj) -{ - PythonQtInstanceWrapper* wrapper = (PythonQtInstanceWrapper*)obj; - return (wrapper->_wrappedPtr == NULL && wrapper->_obj == NULL)?0:1; -} - - -static long PythonQtInstanceWrapper_hash(PythonQtInstanceWrapper *obj) -{ - if (obj->_wrappedPtr != NULL) { - return reinterpret_cast(obj->_wrappedPtr); - } else { - QObject* qobj = obj->_obj; // get pointer from QPointer wrapper - return reinterpret_cast(qobj); - } -} - - - -// we override nb_nonzero, so that one can do 'if' expressions to test for a NULL ptr -static PyNumberMethods PythonQtInstanceWrapper_as_number = { - 0, /* nb_add */ - 0, /* nb_subtract */ - 0, /* nb_multiply */ - 0, /* nb_divide */ - 0, /* nb_remainder */ - 0, /* nb_divmod */ - 0, /* nb_power */ - 0, /* nb_negative */ - 0, /* nb_positive */ - 0, /* nb_absolute */ - PythonQtInstanceWrapper_builtin_nonzero, /* nb_nonzero */ - 0, /* nb_invert */ - 0, /* nb_lshift */ - 0, /* nb_rshift */ - 0, /* nb_and */ - 0, /* nb_xor */ - 0, /* nb_or */ - 0, /* nb_coerce */ - 0, /* nb_int */ - 0, /* nb_long */ - 0, /* nb_float */ - 0, /* nb_oct */ - 0, /* nb_hex */ - 0, /* nb_inplace_add */ - 0, /* nb_inplace_subtract */ - 0, /* nb_inplace_multiply */ - 0, /* nb_inplace_divide */ - 0, /* nb_inplace_remainder */ - 0, /* nb_inplace_power */ - 0, /* nb_inplace_lshift */ - 0, /* nb_inplace_rshift */ - 0, /* nb_inplace_and */ - 0, /* nb_inplace_xor */ - 0, /* nb_inplace_or */ - 0, /* nb_floor_divide */ - 0, /* nb_true_divide */ - 0, /* nb_inplace_floor_divide */ - 0, /* nb_inplace_true_divide */ -}; - -PyTypeObject PythonQtInstanceWrapper_Type = { - PyObject_HEAD_INIT(&PythonQtClassWrapper_Type) - 0, /*ob_size*/ - "PythonQt.PythonQtInstanceWrapper", /*tp_name*/ - sizeof(PythonQtInstanceWrapper), /*tp_basicsize*/ - 0, /*tp_itemsize*/ - (destructor)PythonQtInstanceWrapper_dealloc, /*tp_dealloc*/ - 0, /*tp_print*/ - 0, /*tp_getattr*/ - 0, /*tp_setattr*/ - 0, /*tp_compare*/ - PythonQtInstanceWrapper_repr, /*tp_repr*/ - &PythonQtInstanceWrapper_as_number, /*tp_as_number*/ - 0, /*tp_as_sequence*/ - 0, /*tp_as_mapping*/ - (hashfunc)PythonQtInstanceWrapper_hash, /*tp_hash */ - 0, /*tp_call*/ - PythonQtInstanceWrapper_str, /*tp_str*/ - PythonQtInstanceWrapper_getattro, /*tp_getattro*/ - PythonQtInstanceWrapper_setattro, /*tp_setattro*/ - 0, /*tp_as_buffer*/ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_CHECKTYPES, /*tp_flags*/ - "PythonQtInstanceWrapper object", /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - (richcmpfunc)PythonQtInstanceWrapper_richcompare, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - 0, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - (initproc)PythonQtInstanceWrapper_init, /* tp_init */ - 0, /* tp_alloc */ - PythonQtInstanceWrapper_new, /* tp_new */ -}; - -//------------------------------------------------------- - diff --git a/3rdparty/pythonqt/src/PythonQtInstanceWrapper.h b/3rdparty/pythonqt/src/PythonQtInstanceWrapper.h deleted file mode 100644 index 18ffd0aad..000000000 --- a/3rdparty/pythonqt/src/PythonQtInstanceWrapper.h +++ /dev/null @@ -1,98 +0,0 @@ -#ifndef _PYTHONQTINSTANCEWRAPPER_H -#define _PYTHONQTINSTANCEWRAPPER_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtInstanceWrapper.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include - -#include "PythonQtSystem.h" -#include - -#include "structmember.h" -#include "methodobject.h" -#include "compile.h" -#include "eval.h" - -class PythonQtClassInfo; -class QObject; - -extern PYTHONQT_EXPORT PyTypeObject PythonQtInstanceWrapper_Type; - -//--------------------------------------------------------------- -//! a Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjects) -typedef struct PythonQtInstanceWrapperStruct { - PyObject_HEAD - - //! the class information, this is set even if the _obj or _wrappedPtr is NULL to support typed NULL pointers - PythonQtClassInfo* classInfo(); - - //! set the QObject pointer - void setQObject(QObject* object) { - _obj = object; - _objPointerCopy = object; - } - - //! pointer to the wrapped Qt object or if _wrappedPtr is set, the Qt object that wraps the C++ Ptr - QPointer _obj; - //! a copy of the _obj pointer, which is required because the wrapper needs to - //! deregister itself via the _obj pointer, even when the QPointer object was destroyed - void* _objPointerCopy; - - //! optional C++ object Ptr that is wrapped by the above _obj - void* _wrappedPtr; - - // TODO xxx: put booleans into int that holds flags - - //! flag that stores if the object is owned by pythonQt - bool _ownedByPythonQt; - - //! stores that the owned object should be destroyed using QMetaType::destroy() - bool _useQMetaTypeDestroy; - - //! stores if the object is a shell instance - bool _isShellInstance; - -} PythonQtInstanceWrapper; - -int PythonQtInstanceWrapper_init(PythonQtInstanceWrapper * self, PyObject * args, PyObject * kwds); - -#endif \ No newline at end of file diff --git a/3rdparty/pythonqt/src/PythonQtMethodInfo.cpp b/3rdparty/pythonqt/src/PythonQtMethodInfo.cpp deleted file mode 100644 index 192e302ff..000000000 --- a/3rdparty/pythonqt/src/PythonQtMethodInfo.cpp +++ /dev/null @@ -1,352 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtMethodInfo.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtClassInfo.h" -#include "PythonQtMethodInfo.h" -#include - -QHash PythonQtMethodInfo::_cachedSignatures; -QHash PythonQtMethodInfo::_parameterNameAliases; - -PythonQtMethodInfo::PythonQtMethodInfo(const QMetaMethod& meta, PythonQtClassInfo* classInfo) -{ -#ifdef PYTHONQT_DEBUG - QByteArray sig(meta.signature()); - sig = sig.mid(sig.indexOf('(')); - QByteArray fullSig = QByteArray(meta.typeName()) + " " + sig; - std::cout << "caching " << fullSig.data() << std::endl; -#endif - - ParameterInfo type; - fillParameterInfo(type, QByteArray(meta.typeName()), classInfo); - _parameters.append(type); - QList names = meta.parameterTypes(); - foreach (const QByteArray& name, names) { - fillParameterInfo(type, name, classInfo); - _parameters.append(type); - } -} - -PythonQtMethodInfo::PythonQtMethodInfo(const QByteArray& typeName, const QList& args) -{ - ParameterInfo type; - fillParameterInfo(type, typeName, NULL); - _parameters.append(type); - foreach (const QByteArray& name, args) { - fillParameterInfo(type, name, NULL); - _parameters.append(type); - } -} - -const PythonQtMethodInfo* PythonQtMethodInfo::getCachedMethodInfo(const QMetaMethod& signal, PythonQtClassInfo* classInfo) -{ - QByteArray sig(signal.signature()); - sig = sig.mid(sig.indexOf('(')); - QByteArray fullSig = QByteArray(signal.typeName()) + " " + sig; - PythonQtMethodInfo* result = _cachedSignatures.value(fullSig); - if (!result) { - result = new PythonQtMethodInfo(signal, classInfo); - _cachedSignatures.insert(fullSig, result); - } - return result; -} - -const PythonQtMethodInfo* PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(int numArgs, const char** args) -{ - QByteArray typeName = args[0]; - QList arguments; - QByteArray fullSig = typeName; - fullSig += "("; - for (int i =1;i1) { - fullSig += ","; - } - arguments << QByteArray(args[i]); - } - fullSig += ")"; - PythonQtMethodInfo* result = _cachedSignatures.value(fullSig); - if (!result) { - result = new PythonQtMethodInfo(typeName, arguments); - _cachedSignatures.insert(fullSig, result); - } - return result; -} - -void PythonQtMethodInfo::fillParameterInfo(ParameterInfo& type, const QByteArray& orgName, PythonQtClassInfo* classInfo) -{ - QByteArray name = orgName; - - type.enumWrapper = NULL; - - int len = name.length(); - if (len>0) { - if (strncmp(name.constData(), "const ", 6)==0) { - name = name.mid(6); - len -= 6; - type.isConst = true; - } else { - type.isConst = false; - } - char pointerCount = 0; - bool hadReference = false; - // remove * and & from the end of the string, handle & and * the same way - while (name.at(len-1) == '*') { - len--; - pointerCount++; - } - while (name.at(len-1) == '&') { - len--; - hadReference = true; - } - if (len!=name.length()) { - name = name.left(len); - } - type.pointerCount = pointerCount; - - QByteArray alias = _parameterNameAliases.value(name); - if (!alias.isEmpty()) { - name = alias; - } - - type.typeId = nameToType(name); - if ((type.pointerCount == 0) && type.typeId == Unknown) { - type.typeId = QMetaType::type(name.constData()); - if (type.typeId == QMetaType::Void) { - type.typeId = Unknown; - } - } - type.name = name; - - if (type.typeId == PythonQtMethodInfo::Unknown || type.typeId >= QMetaType::User) { - bool isLocalEnum; - // TODOXXX: make use of this flag! - type.enumWrapper = PythonQtClassInfo::findEnumWrapper(type.name, classInfo, &isLocalEnum); - } - } else { - type.typeId = QMetaType::Void; - type.pointerCount = 0; - type.isConst = false; - } -} - -int PythonQtMethodInfo::nameToType(const char* name) -{ - if (_parameterTypeDict.isEmpty()) { - // we could also use QMetaType::nameToType, but that does a string compare search - // and does not support QVariant - - // QMetaType names - _parameterTypeDict.insert("long", QMetaType::Long); - _parameterTypeDict.insert("int", QMetaType::Int); - _parameterTypeDict.insert("short", QMetaType::Short); - _parameterTypeDict.insert("char", QMetaType::Char); - _parameterTypeDict.insert("ulong", QMetaType::ULong); - _parameterTypeDict.insert("unsigned long", QMetaType::ULong); - _parameterTypeDict.insert("uint", QMetaType::UInt); - _parameterTypeDict.insert("unsigned int", QMetaType::UInt); - _parameterTypeDict.insert("ushort", QMetaType::UShort); - _parameterTypeDict.insert("unsigned short", QMetaType::UShort); - _parameterTypeDict.insert("uchar", QMetaType::UChar); - _parameterTypeDict.insert("unsigned char", QMetaType::UChar); - _parameterTypeDict.insert("bool", QMetaType::Bool); - _parameterTypeDict.insert("float", QMetaType::Float); - _parameterTypeDict.insert("double", QMetaType::Double); - _parameterTypeDict.insert("qreal", QMetaType::Double); - _parameterTypeDict.insert("QChar", QMetaType::QChar); - _parameterTypeDict.insert("QByteArray", QMetaType::QByteArray); - _parameterTypeDict.insert("Q3CString", QMetaType::QByteArray); - _parameterTypeDict.insert("QString", QMetaType::QString); - _parameterTypeDict.insert("", QMetaType::Void); - _parameterTypeDict.insert("void", QMetaType::Void); - // QVariant names - _parameterTypeDict.insert("Q_LLONG", QMetaType::LongLong); - _parameterTypeDict.insert("Q_ULLONG", QMetaType::ULongLong); - _parameterTypeDict.insert("qlonglong", QMetaType::LongLong); - _parameterTypeDict.insert("qulonglong", QMetaType::ULongLong); - _parameterTypeDict.insert("qint64", QMetaType::LongLong); - _parameterTypeDict.insert("quint64", QMetaType::ULongLong); - _parameterTypeDict.insert("QIconSet", QMetaType::QIcon); - _parameterTypeDict.insert("QVariantMap", QMetaType::QVariantMap); - _parameterTypeDict.insert("QVariantList", QMetaType::QVariantList); - _parameterTypeDict.insert("QMap", QMetaType::QVariantMap); - _parameterTypeDict.insert("QList", QMetaType::QVariantList); - _parameterTypeDict.insert("QStringList", QMetaType::QStringList); - _parameterTypeDict.insert("QBitArray", QMetaType::QBitArray); - _parameterTypeDict.insert("QDate", QMetaType::QDate); - _parameterTypeDict.insert("QTime", QMetaType::QTime); - _parameterTypeDict.insert("QDateTime", QMetaType::QDateTime); - _parameterTypeDict.insert("QUrl", QMetaType::QUrl); - _parameterTypeDict.insert("QLocale", QMetaType::QLocale); - _parameterTypeDict.insert("QRect", QMetaType::QRect); - _parameterTypeDict.insert("QRectf", QMetaType::QRectF); - _parameterTypeDict.insert("QSize", QMetaType::QSize); - _parameterTypeDict.insert("QSizef", QMetaType::QSizeF); - _parameterTypeDict.insert("QLine", QMetaType::QLine); - _parameterTypeDict.insert("QLinef", QMetaType::QLineF); - _parameterTypeDict.insert("QPoint", QMetaType::QPoint); - _parameterTypeDict.insert("QPointf", QMetaType::QPointF); - _parameterTypeDict.insert("QRegExp", QMetaType::QRegExp); -// _parameterTypeDict.insert("QColorGroup", QMetaType::QColorGroup); - _parameterTypeDict.insert("QFont", QMetaType::QFont); - _parameterTypeDict.insert("QPixmap", QMetaType::QPixmap); - _parameterTypeDict.insert("QBrush", QMetaType::QBrush); - _parameterTypeDict.insert("QColor", QMetaType::QColor); - _parameterTypeDict.insert("QCursor", QMetaType::QCursor); - _parameterTypeDict.insert("QPalette", QMetaType::QPalette); - _parameterTypeDict.insert("QIcon", QMetaType::QIcon); - _parameterTypeDict.insert("QImage", QMetaType::QPolygon); - _parameterTypeDict.insert("QRegion", QMetaType::QRegion); - _parameterTypeDict.insert("QBitmap", QMetaType::QBitmap); - _parameterTypeDict.insert("QSizePolicy", QMetaType::QSizePolicy); - _parameterTypeDict.insert("QKeySequence", QMetaType::QKeySequence); - _parameterTypeDict.insert("QPen", QMetaType::QPen); - _parameterTypeDict.insert("QTextLength", QMetaType::QTextLength); - _parameterTypeDict.insert("QTextFormat", QMetaType::QTextFormat); - _parameterTypeDict.insert("QMatrix", QMetaType::QMatrix); - _parameterTypeDict.insert("QVariant", PythonQtMethodInfo::Variant); - // own special types... (none so far, could be e.g. ObjectList - } - QHash::const_iterator it = _parameterTypeDict.constFind(name); - if (it!=_parameterTypeDict.constEnd()) { - return it.value(); - } else { - return PythonQtMethodInfo::Unknown; - } -} - -void PythonQtMethodInfo::cleanupCachedMethodInfos() -{ - QHashIterator i(_cachedSignatures); - while (i.hasNext()) { - delete i.next().value(); - } -} - -void PythonQtMethodInfo::addParameterTypeAlias(const QByteArray& alias, const QByteArray& name) -{ - _parameterNameAliases.insert(alias, name); -} - -//------------------------------------------------------------------------------------------------- - -void PythonQtSlotInfo::deleteOverloadsAndThis() -{ - PythonQtSlotInfo* cur = this; - while(cur->nextInfo()) { - PythonQtSlotInfo* next = cur->nextInfo(); - delete cur; - cur = next; - } -} - - -QString PythonQtSlotInfo::fullSignature() -{ - bool skipFirstArg = isInstanceDecorator(); - QString result = _meta.typeName(); - QByteArray sig = slotName(); - QList names = _meta.parameterNames(); - - bool isStatic = false; - bool isConstructor = false; - bool isDestructor = false; - - if (_type == ClassDecorator) { - if (sig.startsWith("new_")) { - sig = sig.mid(strlen("new_")); - isConstructor = true; - } else if (sig.startsWith("delete_")) { - sig = sig.mid(strlen("delete_")); - isDestructor = true; - } else if(sig.startsWith("static_")) { - isStatic = true; - sig = sig.mid(strlen("static_")); - int idx = sig.indexOf("_"); - if (idx>=0) { - sig = sig.mid(idx+1); - } - } - } - - result += QByteArray(" ") + sig; - result += "("; - - int lastEntry = _parameters.count()-1; - for (int i = skipFirstArg?2:1; i<_parameters.count(); i++) { - if (_parameters.at(i).isConst) { - result += "const "; - } - result += _parameters.at(i).name; - if (_parameters.at(i).pointerCount) { - QByteArray stars; - stars.fill('*', _parameters.at(i).pointerCount); - result += stars; - } - if (!names.at(i-1).isEmpty()) { - result += " "; - result += names.at(i-1); - } - if (i!=lastEntry) { - result += ", "; - } - } - result += ")"; - - if (isStatic) { - result = QString("static ") + result; - } - if (isConstructor) { -// result = QString("constructor ") + result; - } - if (isDestructor) { - result = QString("~") + result; - } - return result; -} - - -QByteArray PythonQtSlotInfo::slotName() -{ - QByteArray sig(_meta.signature()); - int idx = sig.indexOf('('); - sig = sig.left(idx); - return sig; -} diff --git a/3rdparty/pythonqt/src/PythonQtMethodInfo.h b/3rdparty/pythonqt/src/PythonQtMethodInfo.h deleted file mode 100644 index 8014975ff..000000000 --- a/3rdparty/pythonqt/src/PythonQtMethodInfo.h +++ /dev/null @@ -1,190 +0,0 @@ -#ifndef _PYTHONQTMETHODINFO_H -#define _PYTHONQTMETHODINFO_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtMethodInfo.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtSystem.h" - -#include -#include -#include -#include - -class PythonQtClassInfo; -struct _object; -typedef struct _object PyObject; - -//! stores information about a specific signal/slot/method -class PYTHONQT_EXPORT PythonQtMethodInfo -{ -public: - enum ParameterType { - Unknown = -1, - Variant = -2 - }; - - //! stores the QVariant id (if available) and the name of the type - struct ParameterInfo { - QByteArray name; - PyObject* enumWrapper; // if it is an enum, a pointer to the enum wrapper - int typeId; // a mixture from QMetaType and ParameterType - char pointerCount; // the number of pointers indirections - bool isConst; - }; - - PythonQtMethodInfo() {}; - ~PythonQtMethodInfo() {}; - PythonQtMethodInfo(const QMetaMethod& meta, PythonQtClassInfo* classInfo); - PythonQtMethodInfo(const QByteArray& typeName, const QList& args); - PythonQtMethodInfo(const PythonQtMethodInfo& other) { - _parameters = other._parameters; - } - - //! returns the method info of the signature, uses a cache internally to speed up - //! multiple requests for the same method, classInfo is passed to allow local enum resolution (if NULL is passed, no local enums are recognized) - static const PythonQtMethodInfo* getCachedMethodInfo(const QMetaMethod& method, PythonQtClassInfo* classInfo); - - //! get the cached method info using the passed in list of return value and arguments, return value needs to be passed as first arg - static const PythonQtMethodInfo* getCachedMethodInfoFromArgumentList(int numArgs, const char** args); - - //! cleanup the cache - static void cleanupCachedMethodInfos(); - - //! returns the number of parameters including the return value - int parameterCount() const { return _parameters.size(); }; - - //! returns the id for the given type (using an internal dictionary) - static int nameToType(const char* name); - - //! get the parameter infos - const QList& parameters() const { return _parameters; } - - //! add an alias for a typename, e.g. QObjectList and QList. - static void addParameterTypeAlias(const QByteArray& alias, const QByteArray& name); - - protected: - static void fillParameterInfo(ParameterInfo& type, const QByteArray& name, PythonQtClassInfo* classInfo); - - static QHash _parameterTypeDict; - static QHash _parameterNameAliases; - - //! stores the cached signatures of methods to speedup mapping from Qt to Python types - static QHash _cachedSignatures; - - QList _parameters; -}; - -//! stores information about a slot, including a next pointer to overloaded slots -class PythonQtSlotInfo : public PythonQtMethodInfo -{ -public: - enum Type { - MemberSlot, InstanceDecorator, ClassDecorator - }; - - PythonQtSlotInfo(const PythonQtSlotInfo& info):PythonQtMethodInfo() { - _meta = info._meta; - _parameters = info._parameters; - _slotIndex = info._slotIndex; - _next = NULL; - _decorator = info._decorator; - _type = info._type; - _upcastingOffset = 0; - } - - PythonQtSlotInfo(PythonQtClassInfo* classInfo, const QMetaMethod& meta, int slotIndex, QObject* decorator = NULL, Type type = MemberSlot ):PythonQtMethodInfo() - { - const PythonQtMethodInfo* info = getCachedMethodInfo(meta, classInfo); - _meta = meta; - _parameters = info->parameters(); - _slotIndex = slotIndex; - _next = NULL; - _decorator = decorator; - _type = type; - _upcastingOffset = 0; - } - - -public: - - void deleteOverloadsAndThis(); - - const QMetaMethod* metaMethod() const { return &_meta; } - - void setUpcastingOffset(int upcastingOffset) { _upcastingOffset = upcastingOffset; } - - int upcastingOffset() const { return _upcastingOffset; } - - //! get the index of the slot (needed for qt_metacall) - int slotIndex() const { return _slotIndex; } - - //! get next overloaded slot (which has the same name) - PythonQtSlotInfo* nextInfo() const { return _next; } - - //! set the next overloaded slot - void setNextInfo(PythonQtSlotInfo* next) { _next = next; } - - //! returns if the slot is a decorator slot - bool isInstanceDecorator() { return _decorator!=NULL && _type == InstanceDecorator; } - - //! returns if the slot is a constructor slot - bool isClassDecorator() { return _decorator!=NULL && _type == ClassDecorator; } - - QObject* decorator() { return _decorator; } - - //! get the full signature including return type - QString fullSignature(); - - //! get the short slot name - QByteArray slotName(); - -private: - int _slotIndex; - PythonQtSlotInfo* _next; - QObject* _decorator; - Type _type; - QMetaMethod _meta; - int _upcastingOffset; -}; - - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtMisc.cpp b/3rdparty/pythonqt/src/PythonQtMisc.cpp deleted file mode 100644 index 672ad0880..000000000 --- a/3rdparty/pythonqt/src/PythonQtMisc.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtMisc.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtMisc.h" - diff --git a/3rdparty/pythonqt/src/PythonQtMisc.h b/3rdparty/pythonqt/src/PythonQtMisc.h deleted file mode 100644 index 664aa1fff..000000000 --- a/3rdparty/pythonqt/src/PythonQtMisc.h +++ /dev/null @@ -1,142 +0,0 @@ -#ifndef _PYTHONQTMISC_H -#define _PYTHONQTMISC_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtMisc.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - - -#include - -#define PythonQtValueStorage_ADD_VALUE(store, type, value, ptr) \ -{ type* item = (type*)store.nextValuePtr(); \ - *item = value; \ - ptr = (void*)item; \ -} - -#define PythonQtValueStorage_ADD_VALUE_IF_NEEDED(alreadyAllocatedPtr,store, type, value, ptr) \ -{ \ - type* item = (type*)(alreadyAllocatedPtr?alreadyAllocatedPtr:store.nextValuePtr()); \ - *item = value; \ - ptr = (void*)item; \ -} - -//! stores a position in the PythonQtValueStorage -class PythonQtValueStoragePosition { - -public: - PythonQtValueStoragePosition() { chunkIdx = 0; chunkOffset = 0; } - - int chunkIdx; - int chunkOffset; - -}; - -//! a helper class that stores basic C++ value types in chunks -template class PythonQtValueStorage -{ -public: - PythonQtValueStorage() { - _chunkIdx = 0; - _chunkOffset = 0; - _currentChunk = new T[chunkEntries]; - _chunks.append(_currentChunk); - }; - - //! clear all memory - void clear() { - T* chunk; - foreach(chunk, _chunks) { - delete[]chunk; - } - _chunks.clear(); - } - - //! reset the storage to 0 (without freeing memory, thus caching old entries for reuse) - void reset() { - _chunkIdx = 0; - _chunkOffset = 0; - _currentChunk = _chunks.at(0); - } - - //! get the current position to be restored with setPos - void getPos(PythonQtValueStoragePosition & pos) { - pos.chunkIdx = _chunkIdx; - pos.chunkOffset = _chunkOffset; - } - - //! set the current position (without freeing memory, thus caching old entries for reuse) - void setPos(const PythonQtValueStoragePosition& pos) { - _chunkOffset = pos.chunkOffset; - if (_chunkIdx != pos.chunkIdx) { - _chunkIdx = pos.chunkIdx; - _currentChunk = _chunks.at(_chunkIdx); - } - } - - //! add one default constructed value and return the pointer to it - T* nextValuePtr() { - if (_chunkOffset>=chunkEntries) { - _chunkIdx++; - if (_chunkIdx >= _chunks.size()) { - T* newChunk = new T[chunkEntries]; - _chunks.append(newChunk); - _currentChunk = newChunk; - } else { - _currentChunk = _chunks.at(_chunkIdx); - } - _chunkOffset = 0; - } - T* newEntry = _currentChunk + _chunkOffset; - _chunkOffset++; - return newEntry; - }; - -private: - QList _chunks; - - int _chunkIdx; - int _chunkOffset; - T* _currentChunk; - -}; - - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtObjectPtr.cpp b/3rdparty/pythonqt/src/PythonQtObjectPtr.cpp deleted file mode 100644 index f86eac461..000000000 --- a/3rdparty/pythonqt/src/PythonQtObjectPtr.cpp +++ /dev/null @@ -1,101 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtObjectPtr.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include - -QVariant PythonQtObjectPtr::evalScript(const QString& script, int start) -{ - return PythonQt::self()->evalScript(_object, script, start); -} - -void PythonQtObjectPtr::evalFile(const QString& file) -{ - PythonQt::self()->evalFile(_object, file); -} - -QVariant PythonQtObjectPtr::evalCode(PyObject* pycode) -{ - return PythonQt::self()->evalCode(_object, pycode); -} - -void PythonQtObjectPtr::addObject(const QString& name, QObject* object) -{ - PythonQt::self()->addObject(_object, name, object); -} - -void PythonQtObjectPtr::addVariable(const QString& name, const QVariant& v) -{ - PythonQt::self()->addVariable(_object, name, v); -} - -void PythonQtObjectPtr::removeVariable(const QString& name) -{ - PythonQt::self()->removeVariable(_object, name); -} - -QVariant PythonQtObjectPtr::getVariable(const QString& name) -{ - return PythonQt::self()->getVariable(_object, name); -} - - -QVariant PythonQtObjectPtr::call(const QString& callable, const QVariantList& args) -{ - return PythonQt::self()->call(_object, callable, args); -} - -QVariant PythonQtObjectPtr::call(const QVariantList& args) -{ - return PythonQt::self()->call(_object, args); -} - -bool PythonQtObjectPtr::fromVariant(const QVariant& variant) -{ - if (!variant.isNull()) { - setObject(qVariantValue(variant)); - return true; - } - else { - setObject(0); - return false; - } - -} diff --git a/3rdparty/pythonqt/src/PythonQtObjectPtr.h b/3rdparty/pythonqt/src/PythonQtObjectPtr.h deleted file mode 100644 index 3f5e5bacb..000000000 --- a/3rdparty/pythonqt/src/PythonQtObjectPtr.h +++ /dev/null @@ -1,174 +0,0 @@ -#ifndef _PYTHONQTOBJECTPTR_H -#define _PYTHONQTOBJECTPTR_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtObjectPtr.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include -#include "PythonQtSystem.h" -#include -#include - -//! a smart pointer that stores a PyObject pointer and that handles reference counting automatically -class PYTHONQT_EXPORT PythonQtObjectPtr -{ -public: - PythonQtObjectPtr():_object(NULL) {} - - PythonQtObjectPtr(const PythonQtObjectPtr &p):_object(NULL) { - setObject(p.object()); - } - - //! If the given variant holds a PythonQtObjectPtr, extract the value from it and hold onto the reference. This results in an increment of the reference count. - PythonQtObjectPtr(const QVariant& variant):_object(NULL) { - fromVariant(variant); - } - - PythonQtObjectPtr(PyObject* o) { - _object = o; - if (o) Py_INCREF(_object); - } - - ~PythonQtObjectPtr() { if (_object) { Py_DECREF(_object); } } - - //! If the given variant holds a PythonQtObjectPtr, extract the value from it and hold onto the reference. This results in an increment of the reference count. - bool fromVariant(const QVariant& variant); - - PythonQtObjectPtr &operator=(const PythonQtObjectPtr &p) { - setObject(p.object()); - return *this; - } - - PythonQtObjectPtr &operator=(PyObject* o) { - setObject(o); - return *this; - } - - - PythonQtObjectPtr &operator=(const QVariant& variant) { - fromVariant(variant); - return *this; - } - - - bool operator==( const PythonQtObjectPtr &p ) const { - return object() == p.object(); - } - - bool operator!= ( const PythonQtObjectPtr& p ) const { - return !( *this == p ); - } - - bool operator==( PyObject* p ) const { - return object() == p; - } - - bool operator!= ( PyObject* p ) const { - return object() != p; - } - - bool isNull() const { return !object(); } - - PyObject* operator->() const { return object(); } - - PyObject& operator*() const { return *( object() ); } - - operator PyObject*() const { return object(); } - - //! sets the object and passes the ownership (stealing the reference, in Python slang) - void setNewRef(PyObject* o) { - if (o != _object) { - if (_object) { Py_DECREF(_object); } - _object = o; - } - } - - PyObject* object() const { - return _object; - } - - //! evaluates the given script code in the context of this object and returns the result value - QVariant evalScript(const QString& script, int start = Py_file_input); - - //! evaluates the given code and returns the result value (use Py_Compile etc. to create pycode from string) - //! If pycode is NULL, a python error is printed. - QVariant evalCode(PyObject* pycode); - - //! evaluates the given code in the context - void evalFile(const QString& filename); - - //! add the given \c object to the \c module as a variable with \c name (it can be removed via clearVariable) - void addObject(const QString& name, QObject* object); - - //! add the given variable to the module - void addVariable(const QString& name, const QVariant& v); - - //! remove the given variable - void removeVariable(const QString& name); - - //! get the variable with the \c name of the \c module, returns an invalid QVariant on error - QVariant getVariable(const QString& name); - - //! call the given python object (in the scope of the current object), returns the result converted to a QVariant - QVariant call(const QString& callable, const QVariantList& args = QVariantList()); - - //! call the contained python object directly, returns the result converted to a QVariant - QVariant call(const QVariantList& args = QVariantList()); - -protected: - - void setObject(PyObject* o) { - if (o != _object) { - if (_object) { Py_DECREF(_object); } - _object = o; - if (_object) { Py_INCREF(_object); } - } - } - -private: - PyObject* _object; -}; - - -// register it to the meta type system -Q_DECLARE_METATYPE(PythonQtObjectPtr) - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtQFileImporter.cpp b/3rdparty/pythonqt/src/PythonQtQFileImporter.cpp deleted file mode 100644 index b6fcaad97..000000000 --- a/3rdparty/pythonqt/src/PythonQtQFileImporter.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! - // \file PythonQtQFileImporter.h - // \author Florian Link - // \author Last changed by $Author: florian $ - // \date 2009-03 - */ -//---------------------------------------------------------------------------------- - -#include -#include - -#include "PythonQtQFileImporter.h" - -PythonQtQFileImporter::PythonQtQFileImporter() { -} - -PythonQtQFileImporter::~PythonQtQFileImporter() { -} - -QByteArray PythonQtQFileImporter::readFileAsBytes (const QString &filename) { - QFile f(filename); - if (f.open(QIODevice::ReadOnly)) { - return f.readAll(); - } else { - return QByteArray(); - } -} - -QByteArray PythonQtQFileImporter::readSourceFile (const QString &filename, bool &ok) { - QFile f(filename); - if (f.open(QIODevice::ReadOnly | QIODevice::Text)) { - ok = true; - return f.readAll(); - } else { - ok = false; - return QByteArray(); - } -} - -bool PythonQtQFileImporter::exists (const QString &filename) { - return QFile::exists(filename); -} - -QDateTime PythonQtQFileImporter::lastModifiedDate (const QString &filename) { - QFileInfo fi(filename); - return fi.lastModified(); -} diff --git a/3rdparty/pythonqt/src/PythonQtQFileImporter.h b/3rdparty/pythonqt/src/PythonQtQFileImporter.h deleted file mode 100644 index 310b3f7a9..000000000 --- a/3rdparty/pythonqt/src/PythonQtQFileImporter.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef _PYTHONQTQFILEIMPORTER_H -#define _PYTHONQTQFILEIMPORTER_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! - // \file PythonQtQFileImporter.h - // \author Florian Link - // \author Last changed by $Author: florian $ - // \date 2009-03 - */ -//---------------------------------------------------------------------------------- - -#include - -//! default importer implementation using QFile to load python code -class PythonQtQFileImporter : public PythonQtImportFileInterface { -public: - PythonQtQFileImporter(); - ~PythonQtQFileImporter(); - - QByteArray readFileAsBytes (const QString &filename); - - QByteArray readSourceFile (const QString &filename, bool &ok); - - bool exists (const QString &filename); - - QDateTime lastModifiedDate (const QString &filename); - -}; - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtSignalReceiver.cpp b/3rdparty/pythonqt/src/PythonQtSignalReceiver.cpp deleted file mode 100644 index 7bb9dfcac..000000000 --- a/3rdparty/pythonqt/src/PythonQtSignalReceiver.cpp +++ /dev/null @@ -1,230 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtSignalReceiver.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtSignalReceiver.h" -#include "PythonQtClassInfo.h" -#include "PythonQtMethodInfo.h" -#include "PythonQtConversion.h" -#include -#include -#include "funcobject.h" - -void PythonQtSignalTarget::call(void **arguments) const { - PyObject* result = call(_callable, methodInfo(), arguments); - if (result) { - Py_DECREF(result); - } -} - -PyObject* PythonQtSignalTarget::call(PyObject* callable, const PythonQtMethodInfo* methodInfos, void **arguments, bool skipFirstArgumentOfMethodInfo) -{ - // Note: we check if the callable is a PyFunctionObject and has a fixed number of arguments - // if that is the case, we only pass these arguments to python and skip the additional arguments from the signal - - int numPythonArgs = -1; - if (PyFunction_Check(callable)) { - PyObject* o = callable; - PyFunctionObject* func = (PyFunctionObject*)o; - PyCodeObject* code = (PyCodeObject*)func->func_code; - if (!(code->co_flags & 0x04)) { - numPythonArgs = code->co_argcount; - } else { - // variable numbers of arguments allowed - } - } else if (PyMethod_Check(callable)) { - PyObject* o = callable; - PyMethodObject* method = (PyMethodObject*)o; - if (PyFunction_Check(method->im_func)) { - PyFunctionObject* func = (PyFunctionObject*)method->im_func; - PyCodeObject* code = (PyCodeObject*)func->func_code; - if (!(code->co_flags & 0x04)) { - numPythonArgs = code->co_argcount - 1; // we subtract one because the first is "self" - } else { - // variable numbers of arguments allowed - } - } - } - - const PythonQtMethodInfo* m = methodInfos; - // parameterCount includes return value: - int count = m->parameterCount(); - if (numPythonArgs!=-1) { - if (count>numPythonArgs+1) { - // take less arguments - count = numPythonArgs+1; - } - } - - PyObject* pargs = NULL; - if (count>1) { - pargs = PyTuple_New(count-1); - } - bool err = false; - // transform Qt values to Python - const QList& params = m->parameters(); - for (int i = 1; i < count; i++) { - const PythonQtMethodInfo::ParameterInfo& param = params.at(i); - PyObject* arg = PythonQtConv::ConvertQtValueToPython(param, arguments[i]); - if (arg) { - // steals reference, no unref - PyTuple_SetItem(pargs, i-1,arg); - } else { - err = true; - break; - } - } - - PyObject* result = NULL; - if (!err) { - PyErr_Clear(); - result = PyObject_CallObject(callable, pargs); - if (result) { - // ok - } else { - PythonQt::self()->handleError(); - } - } - if (pargs) { - // free the arguments again - Py_DECREF(pargs); - } - - return result; -} - -//------------------------------------------------------------------------------ - -PythonQtSignalReceiver::PythonQtSignalReceiver(QObject* obj):PythonQtSignalReceiverBase(obj) -{ - _obj = obj; - - // fetch the class info for object, since we will need to for correct enum resolution in - // signals - _objClassInfo = PythonQt::priv()->getClassInfo(obj->metaObject()); - if (!_objClassInfo || !_objClassInfo->isQObject()) { - PythonQt::self()->registerClass(obj->metaObject()); - _objClassInfo = PythonQt::priv()->getClassInfo(obj->metaObject()); - } - // force decorator/enum creation - _objClassInfo->decorator(); - - _slotCount = staticMetaObject.methodOffset(); -} - -PythonQtSignalReceiver::~PythonQtSignalReceiver() -{ - PythonQt::priv()->removeSignalEmitter(_obj); -} - - -bool PythonQtSignalReceiver::addSignalHandler(const char* signal, PyObject* callable) -{ - bool flag = false; - int sigId = getSignalIndex(signal); - if (sigId>=0) { - // create PythonQtMethodInfo from signal - QMetaMethod meta = _obj->metaObject()->method(sigId); - const PythonQtMethodInfo* signalInfo = PythonQtMethodInfo::getCachedMethodInfo(meta, _objClassInfo); - PythonQtSignalTarget t(sigId, signalInfo, _slotCount, callable); - _targets.append(t); - // now connect to ourselves with the new slot id - QMetaObject::connect(_obj, sigId, this, _slotCount, Qt::AutoConnection, 0); - - _slotCount++; - flag = true; - - PythonQt::self()->signalConnectedToPython(this, sigId, callable); - } - return flag; -} - -bool PythonQtSignalReceiver::removeSignalHandler(const char* signal, PyObject* callable) -{ - return removeSignalHandler(getSignalIndex(signal), callable); -} - -bool PythonQtSignalReceiver::removeSignalHandler(int sigId, PyObject* callable) -{ - bool found = false; - QMutableListIterator i(_targets); - while (i.hasNext()) { - if (i.next().isSame(sigId, callable)) { - i.remove(); - found = true; - break; - } - } - return found; -} - -void PythonQtSignalReceiver::removeSignalHandlers() -{ - _targets.clear(); -} - -int PythonQtSignalReceiver::getSignalIndex(const char* signal) -{ - int sigId = _obj->metaObject()->indexOfSignal(signal+1); - if (sigId<0) { - QByteArray tmpSig = QMetaObject::normalizedSignature(signal+1); - sigId = _obj->metaObject()->indexOfSignal(tmpSig); - } - return sigId; -} - -int PythonQtSignalReceiver::qt_metacall(QMetaObject::Call c, int id, void **arguments) -{ -// mlabDebugConst("PythonQt", "PythonQtSignalReceiver invoke " << _obj->className() << " " << _obj->name() << " " << id); - if (c != QMetaObject::InvokeMetaMethod) { - QObject::qt_metacall(c, id, arguments); - } - - bool found = false; - foreach(const PythonQtSignalTarget& t, _targets) { - if (t.slotId() == id) { - found = true; - t.call(arguments); - break; - } - } - return 0; -} - diff --git a/3rdparty/pythonqt/src/PythonQtSignalReceiver.h b/3rdparty/pythonqt/src/PythonQtSignalReceiver.h deleted file mode 100644 index eae632dc3..000000000 --- a/3rdparty/pythonqt/src/PythonQtSignalReceiver.h +++ /dev/null @@ -1,142 +0,0 @@ -#ifndef _PYTHONQTSIGNALRECEIVER_H -#define _PYTHONQTSIGNALRECEIVER_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtSignalReceiver.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include -#include "PythonQtSystem.h" -#include "PythonQtObjectPtr.h" - -class PythonQtMethodInfo; -class PythonQtClassInfo; - -//! stores information about a signal target -/*! copy construction and assignment works fine with the C++ standard behaviour and are thus not implemented -*/ -class PYTHONQT_EXPORT PythonQtSignalTarget { -public: - PythonQtSignalTarget() { - _signalId = -1; - _methodInfo = NULL; - _slotId = -1; - } - - PythonQtSignalTarget(int signalId,const PythonQtMethodInfo* methodInfo, int slotId, PyObject* callable) - { - _signalId = signalId; - _slotId = slotId; - _methodInfo = methodInfo; - _callable = callable; - }; - - ~PythonQtSignalTarget() { - }; - - //! get the id of the original signal - int signalId() const { return _signalId; } - - //! get the id that was assigned to this simulated slot - int slotId() const { return _slotId; } - - //! get the signals parameter info - const PythonQtMethodInfo* methodInfo() const { return _methodInfo; } - - //! call the python callable with the given arguments (as defined in methodInfo) - void call(void **arguments) const; - - //! check if it is the same signal target - bool isSame(int signalId, PyObject* callable) const { return callable==_callable && signalId==_signalId; } - - //! call the given callable with arguments described by PythonQtMethodInfo, returns a new reference as result value (or NULL) - static PyObject* call(PyObject* callable, const PythonQtMethodInfo* methodInfo, void **arguments, bool skipFirstArgumentOfMethodInfo = false); - -private: - int _signalId; - int _slotId; - const PythonQtMethodInfo* _methodInfo; - PythonQtObjectPtr _callable; -}; - -//! base class for signal receivers -/*! -*/ -class PYTHONQT_EXPORT PythonQtSignalReceiverBase : public QObject { - Q_OBJECT -public: - PythonQtSignalReceiverBase(QObject* obj):QObject(obj) {}; -}; - -//! receives all signals for one QObject -/*! we derive from our base but do not declare the QObject macro because we want to reimplement qt_metacall only. -*/ -class PYTHONQT_EXPORT PythonQtSignalReceiver : public PythonQtSignalReceiverBase { - -public: - PythonQtSignalReceiver(QObject* obj); - ~PythonQtSignalReceiver(); - - //! add a signal handler - bool addSignalHandler(const char* signal, PyObject* callable); - - //! remove a signal handler - bool removeSignalHandler(const char* signal, PyObject* callable); - bool removeSignalHandler(int sigId, PyObject* callable); - - //! remove all signal handlers - void removeSignalHandlers(); - - //! we implement this method to simulate a number of slots that match the ids in _targets - virtual int qt_metacall(QMetaObject::Call c, int id, void **arguments); - -private: - //! get the index of the signal - int getSignalIndex(const char* signal); - - QObject* _obj; - PythonQtClassInfo* _objClassInfo; - int _slotCount; - // linear list may get slow on multiple targets, but I think typically we have many objects and just a few signals - QList _targets; -}; - - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtSlot.cpp b/3rdparty/pythonqt/src/PythonQtSlot.cpp deleted file mode 100644 index 43583be2f..000000000 --- a/3rdparty/pythonqt/src/PythonQtSlot.cpp +++ /dev/null @@ -1,510 +0,0 @@ -/* -* -* Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this library; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, -* 28359 Bremen, Germany or: -* -* http://www.mevis.de -* -*/ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtSlot.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQt.h" -#include "PythonQtSlot.h" -#include "PythonQtInstanceWrapper.h" -#include "PythonQtClassInfo.h" -#include "PythonQtMisc.h" -#include "PythonQtConversion.h" -#include - -#define PYTHONQT_MAX_ARGS 32 - - -bool PythonQtCallSlot(PythonQtClassInfo* classInfo, QObject* objectToCall, PyObject* args, bool strict, PythonQtSlotInfo* info, void* firstArgument, PyObject** pythonReturnValue, void** directReturnValuePointer) -{ - static unsigned int recursiveEntry = 0; - - if (directReturnValuePointer) { - *directReturnValuePointer = NULL; - } - // store the current storage position, so that we can get back to this state after a slot is called - // (do this locally, so that we have all positions on the stack - PythonQtValueStoragePosition globalValueStoragePos; - PythonQtValueStoragePosition globalPtrStoragePos; - PythonQtValueStoragePosition globalVariantStoragePos; - PythonQtConv::global_valueStorage.getPos(globalValueStoragePos); - PythonQtConv::global_ptrStorage.getPos(globalPtrStoragePos); - PythonQtConv::global_variantStorage.getPos(globalVariantStoragePos); - - recursiveEntry++; - - // the arguments that are passed to qt_metacall - void* argList[PYTHONQT_MAX_ARGS]; - PyObject* result = NULL; - int argc = info->parameterCount(); - const QList& params = info->parameters(); - - const PythonQtSlotInfo::ParameterInfo& returnValueParam = params.at(0); - // set return argument to NULL - argList[0] = NULL; - - bool ok = true; - bool skipFirst = false; - if (info->isInstanceDecorator()) { - skipFirst = true; - - // for decorators on CPP objects, we take the cpp ptr, for QObjects we take the QObject pointer - void* arg1 = firstArgument; - if (!arg1) { - arg1 = objectToCall; - } - if (arg1) { - // upcast to correct parent class - arg1 = ((char*)arg1)+info->upcastingOffset(); - } - - argList[1] = &arg1; - if (ok) { - for (int i = 2; igetClassInfo(returnValueParam.name); - if (info && info->pythonQtClassWrapper()) { - PyObject* emptyTuple = PyTuple_New(0); - // 1) default construct an empty object as python object (owned by PythonQt), by calling the meta class with empty arguments - result = PyObject_Call((PyObject*)info->pythonQtClassWrapper(), emptyTuple, NULL); - if (result) { - argList[0] = ((PythonQtInstanceWrapper*)result)->_wrappedPtr; - } - Py_DECREF(emptyTuple); - } - } - } else { - // we can use our pointer directly! - argList[0] = directReturnValuePointer; - } - } - - // invoke the slot via metacall - (info->decorator()?info->decorator():objectToCall)->qt_metacall(QMetaObject::InvokeMetaMethod, info->slotIndex(), argList); - - // handle the return value (which in most cases still needs to be converted to a Python object) - if (argList[0] || returnValueParam.typeId == QMetaType::Void) { - if (directReturnValuePointer) { - result = NULL; - } else { - // the resulting object maybe present already, because we created it above at 1)... - if (!result) { - result = PythonQtConv::ConvertQtValueToPython(returnValueParam, argList[0]); - } - } - } else { - QString e = QString("Called ") + info->fullSignature() + ", return type '" + returnValueParam.name + "' is ignored because it is unknown to PythonQt. Probably you should register it using qRegisterMetaType() or add a default constructor decorator to the class."; - PyErr_SetString(PyExc_ValueError, e.toLatin1().data()); - result = NULL; - ok = false; - } - } - recursiveEntry--; - - // reset the parameter storage position to the stored pos to "pop" the parameter stack - PythonQtConv::global_valueStorage.setPos(globalValueStoragePos); - PythonQtConv::global_ptrStorage.setPos(globalPtrStoragePos); - PythonQtConv::global_variantStorage.setPos(globalVariantStoragePos); - - *pythonReturnValue = result; - // NOTE: it is important to only return here, otherwise the stack will not be popped!!! - return ok; -} - -//----------------------------------------------------------------------------------- - -static PythonQtSlotFunctionObject *pythonqtslot_free_list = NULL; - -PyObject *PythonQtSlotFunction_Call(PyObject *func, PyObject *args, PyObject *kw) -{ - PythonQtSlotFunctionObject* f = (PythonQtSlotFunctionObject*)func; - PythonQtSlotInfo* info = f->m_ml; - if (PyObject_TypeCheck(f->m_self, &PythonQtInstanceWrapper_Type)) { - PythonQtInstanceWrapper* self = (PythonQtInstanceWrapper*) f->m_self; - if (!info->isClassDecorator() && (self->_obj==NULL && self->_wrappedPtr==NULL)) { - QString error = QString("Trying to call '") + f->m_ml->slotName() + "' on a destroyed " + self->classInfo()->className() + " object"; - PyErr_SetString(PyExc_ValueError, error.toLatin1().data()); - return NULL; - } else { - return PythonQtSlotFunction_CallImpl(self->classInfo(), self->_obj, info, args, kw, self->_wrappedPtr); - } - } else if (f->m_self->ob_type == &PythonQtClassWrapper_Type) { - PythonQtClassWrapper* type = (PythonQtClassWrapper*) f->m_self; - if (info->isClassDecorator()) { - return PythonQtSlotFunction_CallImpl(type->classInfo(), NULL, info, args, kw); - } else { - // otherwise, it is an unbound call and we have an instanceDecorator or normal slot... - Py_ssize_t argc = PyTuple_Size(args); - if (argc>0) { - PyObject* firstArg = PyTuple_GET_ITEM(args, 0); - if (PyObject_TypeCheck(firstArg, (PyTypeObject*)&PythonQtInstanceWrapper_Type) - && ((PythonQtInstanceWrapper*)firstArg)->classInfo()->inherits(type->classInfo())) { - PythonQtInstanceWrapper* self = (PythonQtInstanceWrapper*)firstArg; - if (!info->isClassDecorator() && (self->_obj==NULL && self->_wrappedPtr==NULL)) { - QString error = QString("Trying to call '") + f->m_ml->slotName() + "' on a destroyed " + self->classInfo()->className() + " object"; - PyErr_SetString(PyExc_ValueError, error.toLatin1().data()); - return NULL; - } - // strip the first argument... - PyObject* newargs = PyTuple_GetSlice(args, 1, argc); - PyObject* result = PythonQtSlotFunction_CallImpl(self->classInfo(), self->_obj, info, newargs, kw, self->_wrappedPtr); - Py_DECREF(newargs); - return result; - } else { - // first arg is not of correct type! - QString error = "slot " + info->fullSignature() + " requires " + type->classInfo()->className() + " instance as first argument, got " + firstArg->ob_type->tp_name; - PyErr_SetString(PyExc_ValueError, error.toLatin1().data()); - return NULL; - } - } else { - // wrong number of args - QString error = "slot " + info->fullSignature() + " requires " + type->classInfo()->className() + " instance as first argument."; - PyErr_SetString(PyExc_ValueError, error.toLatin1().data()); - return NULL; - } - } - } - return NULL; -} - -PyObject *PythonQtSlotFunction_CallImpl(PythonQtClassInfo* classInfo, QObject* objectToCall, PythonQtSlotInfo* info, PyObject *args, PyObject * /*kw*/, void* firstArg, void** directReturnValuePointer) -{ - int argc = args?PyTuple_Size(args):0; - -#ifdef PYTHONQT_DEBUG - std::cout << "called " << info->metaMethod()->typeName() << " " << info->metaMethod()->signature() << std::endl; -#endif - - PyObject* r = NULL; - bool ok = false; - if (directReturnValuePointer) { - *directReturnValuePointer = NULL; - } - if (info->nextInfo()) { - // overloaded slot call, try on all slots with strict conversion first - bool strict = true; - PythonQtSlotInfo* i = info; - while (i) { - bool skipFirst = i->isInstanceDecorator(); - if (i->parameterCount()-1-(skipFirst?1:0) == argc) { - PyErr_Clear(); - ok = PythonQtCallSlot(classInfo, objectToCall, args, strict, i, firstArg, &r, directReturnValuePointer); - if (PyErr_Occurred() || ok) break; - } - i = i->nextInfo(); - if (!i) { - if (strict) { - // one more run without being strict - strict = false; - i = info; - } - } - } - if (!ok && !PyErr_Occurred()) { - QString e = QString("Could not find matching overload for given arguments:\n" + PythonQtConv::PyObjGetString(args) + "\n The following slots are available:\n"); - PythonQtSlotInfo* i = info; - while (i) { - e += QString(i->fullSignature()) + "\n"; - i = i->nextInfo(); - } - PyErr_SetString(PyExc_ValueError, e.toLatin1().data()); - } - } else { - // simple (non-overloaded) slot call - bool skipFirst = info->isInstanceDecorator(); - if (info->parameterCount()-1-(skipFirst?1:0) == argc) { - PyErr_Clear(); - ok = PythonQtCallSlot(classInfo, objectToCall, args, false, info, firstArg, &r, directReturnValuePointer); - if (!ok && !PyErr_Occurred()) { - QString e = QString("Called ") + info->fullSignature() + " with wrong arguments: " + PythonQtConv::PyObjGetString(args); - PyErr_SetString(PyExc_ValueError, e.toLatin1().data()); - } - } else { - QString e = QString("Called ") + info->fullSignature() + " with wrong number of arguments: " + PythonQtConv::PyObjGetString(args); - PyErr_SetString(PyExc_ValueError, e.toLatin1().data()); - } - } - - return r; -} - -PyObject * -PythonQtSlotFunction_New(PythonQtSlotInfo *ml, PyObject *self, PyObject *module) -{ - PythonQtSlotFunctionObject *op; - op = pythonqtslot_free_list; - if (op != NULL) { - pythonqtslot_free_list = (PythonQtSlotFunctionObject *)(op->m_self); - PyObject_INIT(op, &PythonQtSlotFunction_Type); - } - else { - op = PyObject_GC_New(PythonQtSlotFunctionObject, &PythonQtSlotFunction_Type); - if (op == NULL) - return NULL; - } - op->m_ml = ml; - Py_XINCREF(self); - op->m_self = self; - Py_XINCREF(module); - op->m_module = module; - PyObject_GC_Track(op); - return (PyObject *)op; -} - -PythonQtSlotInfo* -PythonQtSlotFunction_GetSlotInfo(PyObject *op) -{ - if (!PythonQtSlotFunction_Check(op)) { - PyErr_BadInternalCall(); - return NULL; - } - return ((PythonQtSlotFunctionObject *)op) -> m_ml; -} - -PyObject * -PythonQtSlotFunction_GetSelf(PyObject *op) -{ - if (!PythonQtSlotFunction_Check(op)) { - PyErr_BadInternalCall(); - return NULL; - } - return ((PythonQtSlotFunctionObject *)op) -> m_self; -} - -/* Methods (the standard built-in methods, that is) */ - -static void -meth_dealloc(PythonQtSlotFunctionObject *m) -{ - PyObject_GC_UnTrack(m); - Py_XDECREF(m->m_self); - Py_XDECREF(m->m_module); - m->m_self = (PyObject *)pythonqtslot_free_list; - pythonqtslot_free_list = m; -} - -static PyObject * -meth_get__doc__(PythonQtSlotFunctionObject * /*m*/, void * /*closure*/) -{ - Py_INCREF(Py_None); - return Py_None; -} - -static PyObject * -meth_get__name__(PythonQtSlotFunctionObject *m, void * /*closure*/) -{ - return PyString_FromString(m->m_ml->metaMethod()->signature()); -} - -static int -meth_traverse(PythonQtSlotFunctionObject *m, visitproc visit, void *arg) -{ - int err; - if (m->m_self != NULL) { - err = visit(m->m_self, arg); - if (err) - return err; - } - if (m->m_module != NULL) { - err = visit(m->m_module, arg); - if (err) - return err; - } - return 0; -} - -static PyObject * -meth_get__self__(PythonQtSlotFunctionObject *m, void * /*closure*/) -{ - PyObject *self; - if (PyEval_GetRestricted()) { - PyErr_SetString(PyExc_RuntimeError, - "method.__self__ not accessible in restricted mode"); - return NULL; - } - self = m->m_self; - if (self == NULL) - self = Py_None; - Py_INCREF(self); - return self; -} - -static PyGetSetDef meth_getsets [] = { - {"__doc__", (getter)meth_get__doc__, NULL, NULL}, - {"__name__", (getter)meth_get__name__, NULL, NULL}, - {"__self__", (getter)meth_get__self__, NULL, NULL}, - {NULL, NULL, NULL,NULL}, -}; - -#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 6 -#define PY_WRITE_RESTRICTED WRITE_RESTRICTED -#endif - -#define OFF(x) offsetof(PythonQtSlotFunctionObject, x) - -static PyMemberDef meth_members[] = { - {"__module__", T_OBJECT, OFF(m_module), PY_WRITE_RESTRICTED}, - {NULL} -}; - -static PyObject * -meth_repr(PythonQtSlotFunctionObject *f) -{ - if (f->m_self->ob_type == &PythonQtClassWrapper_Type) { - PythonQtClassWrapper* self = (PythonQtClassWrapper*) f->m_self; - return PyString_FromFormat("", - f->m_ml->slotName().data(), - self->classInfo()->className()); - } else { - return PyString_FromFormat("", - f->m_ml->slotName().data(), - f->m_self->ob_type->tp_name, - f->m_self); - } -} - -static int -meth_compare(PythonQtSlotFunctionObject *a, PythonQtSlotFunctionObject *b) -{ - if (a->m_self != b->m_self) - return (a->m_self < b->m_self) ? -1 : 1; - if (a->m_ml == b->m_ml) - return 0; - if (strcmp(a->m_ml->metaMethod()->signature(), b->m_ml->metaMethod()->signature()) < 0) - return -1; - else - return 1; -} - -static long -meth_hash(PythonQtSlotFunctionObject *a) -{ - long x,y; - if (a->m_self == NULL) - x = 0; - else { - x = PyObject_Hash(a->m_self); - if (x == -1) - return -1; - } - y = _Py_HashPointer((void*)(a->m_ml)); - if (y == -1) - return -1; - x ^= y; - if (x == -1) - x = -2; - return x; -} - - -PyTypeObject PythonQtSlotFunction_Type = { - PyObject_HEAD_INIT(&PyType_Type) - 0, - "builtin_qt_slot", - sizeof(PythonQtSlotFunctionObject), - 0, - (destructor)meth_dealloc, /* tp_dealloc */ - 0, /* tp_print */ - 0, /* tp_getattr */ - 0, /* tp_setattr */ - (cmpfunc)meth_compare, /* tp_compare */ - (reprfunc)meth_repr, /* tp_repr */ - 0, /* tp_as_number */ - 0, /* tp_as_sequence */ - 0, /* tp_as_mapping */ - (hashfunc)meth_hash, /* tp_hash */ - PythonQtSlotFunction_Call, /* tp_call */ - 0, /* tp_str */ - PyObject_GenericGetAttr, /* tp_getattro */ - 0, /* tp_setattro */ - 0, /* tp_as_buffer */ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC,/* tp_flags */ - 0, /* tp_doc */ - (traverseproc)meth_traverse, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - 0, /* tp_methods */ - meth_members, /* tp_members */ - meth_getsets, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ -}; - -/* Clear out the free list */ - -void -PythonQtSlotFunction_Fini(void) -{ - while (pythonqtslot_free_list) { - PythonQtSlotFunctionObject *v = pythonqtslot_free_list; - pythonqtslot_free_list = (PythonQtSlotFunctionObject *)(v->m_self); - PyObject_GC_Del(v); - } -} - diff --git a/3rdparty/pythonqt/src/PythonQtSlot.h b/3rdparty/pythonqt/src/PythonQtSlot.h deleted file mode 100644 index 4c7441a33..000000000 --- a/3rdparty/pythonqt/src/PythonQtSlot.h +++ /dev/null @@ -1,80 +0,0 @@ -#ifndef _PYTHONQTSLOT_H -#define _PYTHONQTSLOT_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtSlot.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "Python.h" -#include "PythonQtSystem.h" -#include "structmember.h" - -class PythonQtSlotInfo; - -extern PYTHONQT_EXPORT PyTypeObject PythonQtSlotFunction_Type; - -#define PythonQtSlotFunction_Check(op) ((op)->ob_type == &PythonQtSlotFunction_Type) - -PythonQtSlotInfo* PythonQtSlotFunction_GetSlotInfo(PyObject *); -PyObject* PythonQtSlotFunction_GetSelf(PyObject *); - -/* Macros for direct access to these values. Type checks are *not* - done, so use with care. */ -#define PythonQtSlotFunction_GET_SELF(func) \ - (((PythonQtSlotFunctionObject *)func) -> m_self) - -PyObject* PythonQtSlotFunction_Call(PyObject *, PyObject *, PyObject *); - -PyObject *PythonQtSlotFunction_CallImpl(PythonQtClassInfo* classInfo, QObject* objectToCall, PythonQtSlotInfo* info, PyObject *args, PyObject *kw, void* firstArg=NULL, void** directReturnValuePointer=NULL); - - -PyObject* PythonQtSlotFunction_New(PythonQtSlotInfo *, PyObject *, - PyObject *); - -//! defines a python object that stores a Qt slot info -typedef struct { - PyObject_HEAD - PythonQtSlotInfo *m_ml; /* Description of the C function to call */ - PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */ - PyObject *m_module; /* The __module__ attribute, can be anything */ -} PythonQtSlotFunctionObject; - - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtStdDecorators.cpp b/3rdparty/pythonqt/src/PythonQtStdDecorators.cpp deleted file mode 100644 index 1a42d516a..000000000 --- a/3rdparty/pythonqt/src/PythonQtStdDecorators.cpp +++ /dev/null @@ -1,314 +0,0 @@ -/* -* -* Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this library; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, -* 28359 Bremen, Germany or: -* -* http://www.mevis.de -* -*/ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtStdDecorators.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2007-04 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtStdDecorators.h" -#include "PythonQt.h" -#include "PythonQtClassInfo.h" -#include - -bool PythonQtStdDecorators::connect(QObject* sender, const QByteArray& signal, PyObject* callable) -{ - QByteArray signalTmp; - char first = signal.at(0); - if (first>='0' && first<='9') { - signalTmp = signal; - } else { - signalTmp = "2" + signal; - } - - if (sender) { - return PythonQt::self()->addSignalHandler(sender, signalTmp, callable); - } else { - return false; - } -} - -bool PythonQtStdDecorators::connect(QObject* sender, const QByteArray& signal, QObject* receiver, const QByteArray& slot) -{ - bool r = false; - if (sender && receiver) { - QByteArray signalTmp; - char first = signal.at(0); - if (first>='0' && first<='9') { - signalTmp = signal; - } else { - signalTmp = "2" + signal; - } - - QByteArray slotTmp; - first = slot.at(0); - if (first>='0' && first<='9') { - slotTmp = slot; - } else { - slotTmp = "1" + slot; - } - r = QObject::connect(sender, signalTmp, receiver, slotTmp); - } - return r; -} - -bool PythonQtStdDecorators::disconnect(QObject* sender, const QByteArray& signal, PyObject* callable) -{ - QByteArray signalTmp; - char first = signal.at(0); - if (first>='0' && first<='9') { - signalTmp = signal; - } else { - signalTmp = "2" + signal; - } - if (sender) { - return PythonQt::self()->removeSignalHandler(sender, signalTmp, callable); - } else { - return false; - } -} - -bool PythonQtStdDecorators::disconnect(QObject* sender, const QByteArray& signal, QObject* receiver, const QByteArray& slot) -{ - bool r = false; - if (sender && receiver) { - QByteArray signalTmp; - char first = signal.at(0); - if (first>='0' && first<='9') { - signalTmp = signal; - } else { - signalTmp = "2" + signal; - } - - QByteArray slotTmp; - first = slot.at(0); - if (first>='0' && first<='9') { - slotTmp = slot; - } else { - slotTmp = "1" + slot; - } - - r = QObject::disconnect(sender, signalTmp, receiver, slotTmp); - } - return r; -} - -#undef emit -void PythonQtStdDecorators::emit(QObject* sender, const QByteArray& signal, PyObject* arg1 ,PyObject* arg2 , - PyObject* arg3 ,PyObject* arg4 ,PyObject* arg5 ,PyObject* arg6 ,PyObject* arg7 ) -{ - // TODO xxx - // use normal PythonQtSlot calling code, add "allowSignal" to member lookup?! -} -#define emit - -QObject* PythonQtStdDecorators::parent(QObject* o) { - return o->parent(); -} - -void PythonQtStdDecorators::setParent(QObject* o, QObject* parent) -{ - o->setParent(parent); -} - -const QObjectList* PythonQtStdDecorators::children(QObject* o) -{ - return &o->children(); -} - -bool PythonQtStdDecorators::setProperty(QObject* o, const char* name, const QVariant& value) -{ - return o->setProperty(name, value); -} - -QVariant PythonQtStdDecorators::property(QObject* o, const char* name) -{ - return o->property(name); -} - -QString PythonQtStdDecorators::tr(QObject* obj, const QByteArray& text, const QByteArray& ambig, int n) -{ - return QCoreApplication::translate(obj->metaObject()->className(), text.constData(), ambig.constData(), QCoreApplication::CodecForTr, n); -} - -QObject* PythonQtStdDecorators::findChild(QObject* parent, PyObject* type, const QString& name) -{ - const QMetaObject* meta = NULL; - const char* typeName = NULL; - - if (PyObject_TypeCheck(type, &PythonQtClassWrapper_Type)) { - meta = ((PythonQtClassWrapper*)type)->classInfo()->metaObject(); - } else if (PyObject_TypeCheck(type, &PythonQtInstanceWrapper_Type)) { - meta = ((PythonQtInstanceWrapper*)type)->classInfo()->metaObject(); - } else if (PyString_Check(type)) { - typeName = PyString_AsString(type); - } - - if (!typeName && !meta) - return NULL; - - return findChild(parent, typeName, meta, name); -} - -QList PythonQtStdDecorators::findChildren(QObject* parent, PyObject* type, const QString& name) -{ - const QMetaObject* meta = NULL; - const char* typeName = NULL; - - if (PyObject_TypeCheck(type, &PythonQtClassWrapper_Type)) { - meta = ((PythonQtClassWrapper*)type)->classInfo()->metaObject(); - } else if (PyObject_TypeCheck(type, &PythonQtInstanceWrapper_Type)) { - meta = ((PythonQtInstanceWrapper*)type)->classInfo()->metaObject(); - } else if (PyString_Check(type)) { - typeName = PyString_AsString(type); - } - - QList list; - - if (!typeName && !meta) - return list; - - findChildren(parent, typeName, meta, name, list); - - return list; -} - -QList PythonQtStdDecorators::findChildren(QObject* parent, PyObject* type, const QRegExp& regExp) -{ - const QMetaObject* meta = NULL; - const char* typeName = NULL; - - if (PyObject_TypeCheck(type, &PythonQtClassWrapper_Type)) { - meta = ((PythonQtClassWrapper*)type)->classInfo()->metaObject(); - } else if (PyObject_TypeCheck(type, &PythonQtInstanceWrapper_Type)) { - meta = ((PythonQtInstanceWrapper*)type)->classInfo()->metaObject(); - } else if (PyString_Check(type)) { - typeName = PyString_AsString(type); - } - - QList list; - - if (!typeName && !meta) - return list; - - findChildren(parent, typeName, meta, regExp, list); - - return list; -} - -QObject* PythonQtStdDecorators::findChild(QObject* parent, const char* typeName, const QMetaObject* meta, const QString& name) -{ - const QObjectList &children = parent->children(); - - int i; - for (i = 0; i < children.size(); ++i) { - QObject* obj = children.at(i); - - if (!obj) - return NULL; - - // Skip if the name doesn't match. - if (!name.isNull() && obj->objectName() != name) - continue; - - if ((typeName && obj->inherits(typeName)) || - (meta && meta->cast(obj))) - return obj; - } - - for (i = 0; i < children.size(); ++i) { - QObject* obj = findChild(children.at(i), typeName, meta, name); - - if (obj != NULL) - return obj; - } - - return NULL; -} - -int PythonQtStdDecorators::findChildren(QObject* parent, const char* typeName, const QMetaObject* meta, const QString& name, QList& list) -{ - const QObjectList& children = parent->children(); - int i; - - for (i = 0; i < children.size(); ++i) { - QObject* obj = children.at(i); - - if (!obj) - return -1; - - // Skip if the name doesn't match. - if (!name.isNull() && obj->objectName() != name) - continue; - - if ((typeName && obj->inherits(typeName)) || - (meta && meta->cast(obj))) { - list += obj; - } - - if (findChildren(obj, typeName, meta, name, list) < 0) - return -1; - } - - return 0; -} - -int PythonQtStdDecorators::findChildren(QObject* parent, const char* typeName, const QMetaObject* meta, const QRegExp& regExp, QList& list) -{ - const QObjectList& children = parent->children(); - int i; - - for (i = 0; i < children.size(); ++i) { - QObject* obj = children.at(i); - - if (!obj) - return -1; - - // Skip if the name doesn't match. - if (regExp.indexIn(obj->objectName()) == -1) - continue; - - if ((typeName && obj->inherits(typeName)) || - (meta && meta->cast(obj))) { - list += obj; - } - - if (findChildren(obj, typeName, meta, regExp, list) < 0) - return -1; - } - - return 0; -} diff --git a/3rdparty/pythonqt/src/PythonQtStdDecorators.h b/3rdparty/pythonqt/src/PythonQtStdDecorators.h deleted file mode 100644 index 1624f6361..000000000 --- a/3rdparty/pythonqt/src/PythonQtStdDecorators.h +++ /dev/null @@ -1,112 +0,0 @@ -#ifndef _PYTHONQTSTDDECORATORS_H -#define _PYTHONQTSTDDECORATORS_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtStdDecorators.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2007-04 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtSystem.h" -#include -#include -#include -#include -#include -#include -#include -#include - -class PYTHONQT_EXPORT PythonQtStdDecorators : public QObject -{ - Q_OBJECT - -public slots: - bool connect(QObject* sender, const QByteArray& signal, PyObject* callable); - bool connect(QObject* sender, const QByteArray& signal, QObject* receiver, const QByteArray& slot); - bool disconnect(QObject* sender, const QByteArray& signal, PyObject* callable); - bool disconnect(QObject* sender, const QByteArray& signal, QObject* receiver, const QByteArray& slot); - -#undef emit - void emit(QObject* sender, const QByteArray& signal, PyObject* arg1 = NULL,PyObject* arg2 = NULL, - PyObject* arg3 = NULL,PyObject* arg4 = NULL,PyObject* arg5 = NULL,PyObject* arg6 = NULL,PyObject* arg7 = NULL); -#define emit - - QObject* parent(QObject* o); - void setParent(QObject* o, QObject* parent); - - const QObjectList* children(QObject* o); - QObject* findChild(QObject* parent, PyObject* type, const QString& name = QString()); - QList findChildren(QObject* parent, PyObject* type, const QString& name= QString()); - QList findChildren(QObject* parent, PyObject* type, const QRegExp& regExp); - - bool setProperty(QObject* o, const char* name, const QVariant& value); - QVariant property(QObject* o, const char* name); - - double static_Qt_qAbs(double a) { return qAbs(a); } - double static_Qt_qBound(double a,double b,double c) { return qBound(a,b,c); } - void static_Qt_qDebug(const QByteArray& msg) { qDebug(msg.constData()); } - // TODO: multi arg qDebug... - void static_Qt_qWarning(const QByteArray& msg) { qWarning(msg.constData()); } - // TODO: multi arg qWarning... - void static_Qt_qCritical(const QByteArray& msg) { qCritical(msg.constData()); } - // TODO: multi arg qCritical... - void static_Qt_qFatal(const QByteArray& msg) { qFatal(msg.constData()); } - // TODO: multi arg qFatal... - bool static_Qt_qFuzzyCompare(double a, double b) { return qFuzzyCompare(a, b); } - double static_Qt_qMax(double a, double b) { return qMax(a, b); } - double static_Qt_qMin(double a, double b) { return qMin(a, b); } - int static_Qt_qRound(double a) { return qRound(a); } - qint64 static_Qt_qRound64(double a) { return qRound64(a); } - const char* static_Qt_qVersion() { return qVersion(); } - int static_Qt_qrand() { return qrand(); } - void static_Qt_qsrand(uint a) { qsrand(a); } - - QString tr(QObject* obj, const QByteArray& text, const QByteArray& ambig = QByteArray(), int n = -1); - - QByteArray static_Qt_SIGNAL(const QByteArray& s) { return QByteArray("2") + s; } - QByteArray static_Qt_SLOT(const QByteArray& s) { return QByteArray("1") + s; } - -private: - QObject* findChild(QObject* parent, const char* typeName, const QMetaObject* meta, const QString& name); - int findChildren(QObject* parent, const char* typeName, const QMetaObject* meta, const QString& name, QList& list); - int findChildren(QObject* parent, const char* typeName, const QMetaObject* meta, const QRegExp& regExp, QList& list); -}; - - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtStdOut.cpp b/3rdparty/pythonqt/src/PythonQtStdOut.cpp deleted file mode 100644 index 1f5b04089..000000000 --- a/3rdparty/pythonqt/src/PythonQtStdOut.cpp +++ /dev/null @@ -1,136 +0,0 @@ -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtStdOut.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtStdOut.h" - -static PyObject *PythonQtStdOutRedirect_new(PyTypeObject *type, PyObject * /*args*/, PyObject * /*kwds*/) -{ - PythonQtStdOutRedirect *self; - self = (PythonQtStdOutRedirect *)type->tp_alloc(type, 0); - - self->softspace = 0; - self->_cb = NULL; - - return (PyObject *)self; -} - -static PyObject *PythonQtStdOutRedirect_write(PyObject *self, PyObject *args) -{ - PythonQtStdOutRedirect* s = (PythonQtStdOutRedirect*)self; - if (s->_cb) { - char *string; - if (!PyArg_ParseTuple(args, "s", &string)) - return NULL; - - if (s->softspace > 0) { - (*s->_cb)(QString("")); - s->softspace = 0; - } - - (*s->_cb)(QString(string)); - } - return Py_BuildValue(""); -} - -static PyObject *PythonQtStdOutRedirect_flush(PyObject * /*self*/, PyObject * /*args*/) -{ - return Py_BuildValue(""); -} - - - -static PyMethodDef PythonQtStdOutRedirect_methods[] = { - {"write", (PyCFunction)PythonQtStdOutRedirect_write, METH_VARARGS, - "redirect the writing to a callback"}, - {"flush", (PyCFunction)PythonQtStdOutRedirect_flush, METH_VARARGS, - "flush the output, currently not implemented but needed for logging framework" - }, - {NULL, NULL, 0 , NULL} /* sentinel */ -}; - -static PyMemberDef PythonQtStdOutRedirect_members[] = { - {"softspace", T_INT, offsetof(PythonQtStdOutRedirect, softspace), 0, - "soft space flag" - }, - {NULL} /* Sentinel */ -}; - -PyTypeObject PythonQtStdOutRedirectType = { - PyObject_HEAD_INIT(NULL) - 0, /*ob_size*/ - "PythonQtStdOutRedirect", /*tp_name*/ - sizeof(PythonQtStdOutRedirect), /*tp_basicsize*/ - 0, /*tp_itemsize*/ - 0, /*tp_dealloc*/ - 0, /*tp_print*/ - 0, /*tp_getattr*/ - 0, /*tp_setattr*/ - 0, /*tp_compare*/ - 0, /*tp_repr*/ - 0, /*tp_as_number*/ - 0, /*tp_as_sequence*/ - 0, /*tp_as_mapping*/ - 0, /*tp_hash */ - 0, /*tp_call*/ - 0, /*tp_str*/ - 0, /*tp_getattro*/ - 0, /*tp_setattro*/ - 0, /*tp_as_buffer*/ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/ - "PythonQtStdOutRedirect", /* tp_doc */ - 0, /* tp_traverse */ - 0, /* tp_clear */ - 0, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - 0, /* tp_iter */ - 0, /* tp_iternext */ - PythonQtStdOutRedirect_methods, /* tp_methods */ - PythonQtStdOutRedirect_members, /* tp_members */ - 0, /* tp_getset */ - 0, /* tp_base */ - 0, /* tp_dict */ - 0, /* tp_descr_get */ - 0, /* tp_descr_set */ - 0, /* tp_dictoffset */ - 0, /* tp_init */ - 0, /* tp_alloc */ - PythonQtStdOutRedirect_new, /* tp_new */ -}; diff --git a/3rdparty/pythonqt/src/PythonQtStdOut.h b/3rdparty/pythonqt/src/PythonQtStdOut.h deleted file mode 100644 index 59a281288..000000000 --- a/3rdparty/pythonqt/src/PythonQtStdOut.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef _PYTHONQTSTDOUT_H -#define _PYTHONQTSTDOUT_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtStdOut.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - - -#include -#include "structmember.h" -#include - -//! declares the type of the stdout redirection class -extern PyTypeObject PythonQtStdOutRedirectType; - -//! declares the callback that is called from the write() function -typedef void PythonQtOutputChangedCB(const QString& str); - -//! declares the stdout redirection class -typedef struct { - PyObject_HEAD - PythonQtOutputChangedCB* _cb; - int softspace; -} PythonQtStdOutRedirect; - -#endif diff --git a/3rdparty/pythonqt/src/PythonQtSystem.h b/3rdparty/pythonqt/src/PythonQtSystem.h deleted file mode 100644 index 95364c3a9..000000000 --- a/3rdparty/pythonqt/src/PythonQtSystem.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef _PYTHONQTSYSTEM_ -#define _PYTHONQTSYSTEM_ - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtSystem.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-05 -*/ -//---------------------------------------------------------------------------------- - -#if defined(WIN32) && !defined(PYTHONQT_STATIC_LIBRARY) -#ifdef PYTHONQT_EXPORTS -#define PYTHONQT_EXPORT __declspec(dllexport) -#else -#define PYTHONQT_EXPORT __declspec(dllimport) -#endif -#else -#define PYTHONQT_EXPORT -#endif - -#endif - diff --git a/3rdparty/pythonqt/src/PythonQtVariants.h b/3rdparty/pythonqt/src/PythonQtVariants.h deleted file mode 100644 index 7e0691016..000000000 --- a/3rdparty/pythonqt/src/PythonQtVariants.h +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef _PYTHONQTVARIANTS_ -#define _PYTHONQTVARIANTS_ - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtVariants.h -// \author Florian Link -// \author Last changed by $Author: stk $ -// \date 2006-08 -*/ -//---------------------------------------------------------------------------------- - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#endif - diff --git a/3rdparty/pythonqt/src/gui/PythonQtScriptingConsole.cpp b/3rdparty/pythonqt/src/gui/PythonQtScriptingConsole.cpp deleted file mode 100644 index b81053711..000000000 --- a/3rdparty/pythonqt/src/gui/PythonQtScriptingConsole.cpp +++ /dev/null @@ -1,575 +0,0 @@ -/* -* -* Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* Further, this software is distributed without any warranty that it is -* free of the rightful claim of any third person regarding infringement -* or the like. Any license provided herein, whether implied or -* otherwise, applies only to this software file. Patent licenses, if -* any, provided herein do not apply to combinations of this program with -* other software, or any other product whatsoever. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this library; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, -* 28359 Bremen, Germany or: -* -* http://www.mevis.de -* -*/ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtScriptingConsole.cpp -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-10 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQtScriptingConsole.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -//----------------------------------------------------------------------------- - -PythonQtScriptingConsole::PythonQtScriptingConsole(QWidget* parent, const PythonQtObjectPtr& context, Qt::WindowFlags windowFlags) -: QTextEdit(parent) { - - setWindowFlags(windowFlags); - - _defaultTextCharacterFormat = currentCharFormat(); - _context = context; - _historyPosition = 0; - _hadError = false; - - _completer = new QCompleter(this); - _completer->setWidget(this); - QObject::connect(_completer, SIGNAL(activated(const QString&)), - this, SLOT(insertCompletion(const QString&))); - - clear(); - - connect(PythonQt::self(), SIGNAL(pythonStdOut(const QString&)), this, SLOT(stdOut(const QString&))); - connect(PythonQt::self(), SIGNAL(pythonStdErr(const QString&)), this, SLOT(stdErr(const QString&))); -} - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::stdOut(const QString& s) -{ - _stdOut += s; - int idx; - while ((idx = _stdOut.indexOf('\n'))!=-1) { - consoleMessage(_stdOut.left(idx)); - std::cout << _stdOut.left(idx).toLatin1().data() << std::endl; - _stdOut = _stdOut.mid(idx+1); - } -} - -void PythonQtScriptingConsole::stdErr(const QString& s) -{ - _hadError = true; - _stdErr += s; - int idx; - while ((idx = _stdErr.indexOf('\n'))!=-1) { - consoleMessage(_stdErr.left(idx)); - std::cerr << _stdErr.left(idx).toLatin1().data() << std::endl; - _stdErr = _stdErr.mid(idx+1); - } -} - -void PythonQtScriptingConsole::flushStdOut() -{ - if (!_stdOut.isEmpty()) { - stdOut("\n"); - } - if (!_stdErr.isEmpty()) { - stdErr("\n"); - } -} - -//----------------------------------------------------------------------------- - -PythonQtScriptingConsole::~PythonQtScriptingConsole() { -} - - - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::clear() { - - QTextEdit::clear(); - appendCommandPrompt(); -} - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::executeLine(bool storeOnly) -{ - QTextCursor textCursor = this->textCursor(); - textCursor.movePosition(QTextCursor::End); - - // Select the text from the command prompt until the end of the block - // and get the selected text. - textCursor.setPosition(commandPromptPosition()); - textCursor.movePosition(QTextCursor::End, QTextCursor::KeepAnchor); - QString code = textCursor.selectedText(); - - // i don't know where this trailing space is coming from, blast it! - if (code.endsWith(" ")) { - code.truncate(code.length()-1); - } - - if (!code.isEmpty()) { - // Update the history - _history << code; - _historyPosition = _history.count(); - _currentMultiLineCode += code + "\n"; - - if (!storeOnly) { - executeCode(_currentMultiLineCode); - _currentMultiLineCode = ""; - } - } - // Insert a new command prompt - appendCommandPrompt(storeOnly); - -} - -void PythonQtScriptingConsole::executeCode(const QString& code) -{ - // put visible cursor to the end of the line - QTextCursor cursor = QTextEdit::textCursor(); - cursor.movePosition(QTextCursor::End); - setTextCursor(cursor); - - int cursorPosition = this->textCursor().position(); - - // evaluate the code - _stdOut = ""; - _stdErr = ""; - PythonQtObjectPtr p; - PyObject* dict = NULL; - if (PyModule_Check(_context)) { - dict = PyModule_GetDict(_context); - } else if (PyDict_Check(_context)) { - dict = _context; - } - if (dict) { - p.setNewRef(PyRun_String(code.toLatin1().data(), Py_single_input, dict, dict)); - } - - if (!p) { - PythonQt::self()->handleError(); - } - - flushStdOut(); - - bool messageInserted = (this->textCursor().position() != cursorPosition); - - // If a message was inserted, then put another empty line before the command prompt - // to improve readability. - if (messageInserted) { - append(QString()); - } -} - - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::appendCommandPrompt(bool storeOnly) { - if (storeOnly) { - _commandPrompt = "...> "; - } else { - _commandPrompt = "py> "; - } - append(_commandPrompt); - - QTextCursor cursor = textCursor(); - cursor.movePosition(QTextCursor::End); - setTextCursor(cursor); -} - - - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::setCurrentFont(const QColor& color, bool bold) { - - QTextCharFormat charFormat(_defaultTextCharacterFormat); - - QFont font(charFormat.font()); - font.setBold(bold); - charFormat.setFont(font); - - QBrush brush(charFormat.foreground()); - brush.setColor(color); - charFormat.setForeground(brush); - - setCurrentCharFormat(charFormat); -} - - - -//----------------------------------------------------------------------------- - -int PythonQtScriptingConsole::commandPromptPosition() { - - QTextCursor textCursor(this->textCursor()); - textCursor.movePosition(QTextCursor::End); - - return textCursor.block().position() + _commandPrompt.length(); -} - - - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::insertCompletion(const QString& completion) -{ - QTextCursor tc = textCursor(); - tc.movePosition(QTextCursor::Left, QTextCursor::KeepAnchor); - if (tc.selectedText()==".") { - tc.insertText(QString(".") + completion); - } else { - tc = textCursor(); - tc.movePosition(QTextCursor::StartOfWord, QTextCursor::MoveAnchor); - tc.movePosition(QTextCursor::EndOfWord, QTextCursor::KeepAnchor); - tc.insertText(completion); - setTextCursor(tc); - } -} - -//----------------------------------------------------------------------------- -void PythonQtScriptingConsole::handleTabCompletion() -{ - QTextCursor textCursor = this->textCursor(); - int pos = textCursor.position(); - textCursor.setPosition(commandPromptPosition()); - textCursor.movePosition(QTextCursor::End, QTextCursor::KeepAnchor); - int startPos = textCursor.selectionStart(); - - int offset = pos-startPos; - QString text = textCursor.selectedText(); - - QString textToComplete; - int cur = offset; - while (cur--) { - QChar c = text.at(cur); - if (c.isLetterOrNumber() || c == '.' || c == '_') { - textToComplete.prepend(c); - } else { - break; - } - } - - - QString lookup; - QString compareText = textToComplete; - int dot = compareText.lastIndexOf('.'); - if (dot!=-1) { - lookup = compareText.mid(0, dot); - compareText = compareText.mid(dot+1, offset); - } - if (!lookup.isEmpty() || !compareText.isEmpty()) { - compareText = compareText.toLower(); - QStringList found; - QStringList l = PythonQt::self()->introspection(_context, lookup, PythonQt::Anything); - foreach (QString n, l) { - if (n.toLower().startsWith(compareText)) { - found << n; - } - } - - if (!found.isEmpty()) { - _completer->setCompletionPrefix(compareText); - _completer->setCompletionMode(QCompleter::PopupCompletion); - _completer->setModel(new QStringListModel(found, _completer)); - _completer->setCaseSensitivity(Qt::CaseInsensitive); - QTextCursor c = this->textCursor(); - c.movePosition(QTextCursor::StartOfWord); - QRect cr = cursorRect(c); - cr.setWidth(_completer->popup()->sizeHintForColumn(0) - + _completer->popup()->verticalScrollBar()->sizeHint().width()); - cr.translate(0,8); - _completer->complete(cr); - } else { - _completer->popup()->hide(); - } - } else { - _completer->popup()->hide(); - } -} - -void PythonQtScriptingConsole::keyPressEvent(QKeyEvent* event) { - - if (_completer && _completer->popup()->isVisible()) { - // The following keys are forwarded by the completer to the widget - switch (event->key()) { - case Qt::Key_Return: - if (!_completer->popup()->currentIndex().isValid()) { - insertCompletion(_completer->currentCompletion()); - _completer->popup()->hide(); - event->accept(); - } - event->ignore(); - return; - break; - case Qt::Key_Enter: - case Qt::Key_Escape: - case Qt::Key_Tab: - case Qt::Key_Backtab: - - event->ignore(); - return; // let the completer do default behavior - default: - break; - } - } - bool eventHandled = false; - QTextCursor textCursor = this->textCursor(); - - int key = event->key(); - switch (key) { - - case Qt::Key_Left: - - // Moving the cursor left is limited to the position - // of the command prompt. - - if (textCursor.position() <= commandPromptPosition()) { - - QApplication::beep(); - eventHandled = true; - } - break; - - case Qt::Key_Up: - - // Display the previous command in the history - if (_historyPosition>0) { - _historyPosition--; - changeHistory(); - } - - eventHandled = true; - break; - - case Qt::Key_Down: - - // Display the next command in the history - if (_historyPosition+1<_history.count()) { - _historyPosition++; - changeHistory(); - } - - eventHandled = true; - break; - - case Qt::Key_Return: - - executeLine(event->modifiers() & Qt::ShiftModifier); - eventHandled = true; - break; - - case Qt::Key_Backspace: - - if (textCursor.hasSelection()) { - - cut(); - eventHandled = true; - - } else { - - // Intercept backspace key event to check if - // deleting a character is allowed. It is not - // allowed, if the user wants to delete the - // command prompt. - - if (textCursor.position() <= commandPromptPosition()) { - - QApplication::beep(); - eventHandled = true; - } - } - break; - - case Qt::Key_Delete: - - cut(); - eventHandled = true; - break; - - default: - - if (key >= Qt::Key_Space && key <= Qt::Key_division) { - - if (textCursor.hasSelection() && !verifySelectionBeforeDeletion()) { - - // The selection must not be deleted. - eventHandled = true; - - } else { - - // The key is an input character, check if the cursor is - // behind the last command prompt, else inserting the - // character is not allowed. - - int commandPromptPosition = this->commandPromptPosition(); - if (textCursor.position() < commandPromptPosition) { - - textCursor.setPosition(commandPromptPosition); - setTextCursor(textCursor); - } - } - } - } - - if (eventHandled) { - - _completer->popup()->hide(); - event->accept(); - - } else { - - QTextEdit::keyPressEvent(event); - QString text = event->text(); - if (!text.isEmpty()) { - handleTabCompletion(); - } else { - _completer->popup()->hide(); - } - eventHandled = true; - } -} - - - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::cut() { - - bool deletionAllowed = verifySelectionBeforeDeletion(); - if (deletionAllowed) { - QTextEdit::cut(); - } -} - - - -//----------------------------------------------------------------------------- - -bool PythonQtScriptingConsole::verifySelectionBeforeDeletion() { - - bool deletionAllowed = true; - - - QTextCursor textCursor = this->textCursor(); - - int commandPromptPosition = this->commandPromptPosition(); - int selectionStart = textCursor.selectionStart(); - int selectionEnd = textCursor.selectionEnd(); - - if (textCursor.hasSelection()) { - - // Selected text may only be deleted after the last command prompt. - // If the selection is partly after the command prompt set the selection - // to the part and deletion is allowed. If the selection occurs before the - // last command prompt, then deletion is not allowed. - - if (selectionStart < commandPromptPosition || - selectionEnd < commandPromptPosition) { - - // Assure selectionEnd is bigger than selection start - if (selectionStart > selectionEnd) { - int tmp = selectionEnd; - selectionEnd = selectionStart; - selectionStart = tmp; - } - - if (selectionEnd < commandPromptPosition) { - - // Selection is completely before command prompt, - // so deletion is not allowed. - QApplication::beep(); - deletionAllowed = false; - - } else { - - // The selectionEnd is after the command prompt, so set - // the selection start to the commandPromptPosition. - selectionStart = commandPromptPosition; - textCursor.setPosition(selectionStart); - textCursor.setPosition(selectionStart, QTextCursor::KeepAnchor); - setTextCursor(textCursor); - } - } - - } else { // if (hasSelectedText()) - - // When there is no selected text, deletion is not allowed before the - // command prompt. - if (textCursor.position() < commandPromptPosition) { - - QApplication::beep(); - deletionAllowed = false; - } - } - - return deletionAllowed; -} - - - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::changeHistory() { - - // Select the text after the last command prompt ... - QTextCursor textCursor = this->textCursor(); - textCursor.movePosition(QTextCursor::End); - textCursor.setPosition(commandPromptPosition(), QTextCursor::KeepAnchor); - - // ... and replace it with the history text. - textCursor.insertText(_history.value(_historyPosition)); - - textCursor.movePosition(QTextCursor::End); - setTextCursor(textCursor); -} - - - -//----------------------------------------------------------------------------- - -void PythonQtScriptingConsole::consoleMessage(const QString & message) { - - append(QString()); - insertPlainText(message); - - // Reset all font modifications done by the html string - setCurrentCharFormat(_defaultTextCharacterFormat); -} diff --git a/3rdparty/pythonqt/src/gui/PythonQtScriptingConsole.h b/3rdparty/pythonqt/src/gui/PythonQtScriptingConsole.h deleted file mode 100644 index b208ac64a..000000000 --- a/3rdparty/pythonqt/src/gui/PythonQtScriptingConsole.h +++ /dev/null @@ -1,149 +0,0 @@ -#ifndef _PythonQtScriptingConsole_H -#define _PythonQtScriptingConsole_H - -/* - * - * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Contact information: MeVis Medical Solutions AG, Universitaetsallee 29, - * 28359 Bremen, Germany or: - * - * http://www.mevis.de - * - */ - -//---------------------------------------------------------------------------------- -/*! -// \file PythonQtScriptingConsole.h -// \author Florian Link -// \author Last changed by $Author: florian $ -// \date 2006-10 -*/ -//---------------------------------------------------------------------------------- - -#include "PythonQt.h" -#include -#include - -class QCompleter; - -//------------------------------------------------------------------------------- -//! A simple console for python scripting -class PYTHONQT_EXPORT PythonQtScriptingConsole : public QTextEdit -{ - Q_OBJECT - -public: - PythonQtScriptingConsole(QWidget* parent, const PythonQtObjectPtr& context, Qt::WindowFlags i = 0); - - ~PythonQtScriptingConsole(); - -public slots: - //! execute current line - void executeLine(bool storeOnly); - - //! derived key press event - void keyPressEvent (QKeyEvent * e); - - //! output from console - void consoleMessage(const QString & message); - - //! get history - QStringList history() { return _history; } - - //! set history - void setHistory(const QStringList& h) { _history = h; _historyPosition = 0; } - - //! clear the console - void clear(); - - //! overridden to control which characters a user may delete - virtual void cut(); - - //! output redirection - void stdOut(const QString& s); - //! output redirection - void stdErr(const QString& s); - - void insertCompletion(const QString&); - - //! Appends a newline and command prompt at the end of the document. - void appendCommandPrompt(bool storeOnly = false); - -public: - //! returns true if python cerr had an error - bool hadError() { return _hadError; } - - //! returns true if python cerr had an error - void clearError() { - _hadError = false; - } - -protected: - //! handle the pressing of tab - void handleTabCompletion(); - - //! Returns the position of the command prompt - int commandPromptPosition(); - - //! Returns if deletion is allowed at the current cursor - //! (with and without selected text) - bool verifySelectionBeforeDeletion(); - - //! Sets the current font - void setCurrentFont(const QColor& color = QColor(0,0,0), bool bold = false); - - //! change the history according to _historyPos - void changeHistory(); - - //! flush output that was not yet printed - void flushStdOut(); - - -private: - void executeCode(const QString& code); - - PythonQtObjectPtr _context; - - QStringList _history; - int _historyPosition; - - QString _clickedAnchor; - QString _storageKey; - QString _commandPrompt; - - QString _currentMultiLineCode; - - QString _stdOut; - QString _stdErr; - - QTextCharFormat _defaultTextCharacterFormat; - QCompleter* _completer; - - bool _hadError; -}; - - - -#endif \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e919e76a..b60e7a028 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,6 @@ include(cmake/Version.cmake) include(cmake/Deb.cmake) include(cmake/Rpm.cmake) include(cmake/SpotifyVersion.cmake) -include(cmake/PythonQtBindings.cmake) if (UNIX AND NOT APPLE) set(LINUX 1) @@ -73,18 +72,6 @@ if (WIN32) find_library(MSWMDM_LIBRARIES mswmdm) find_library(SAC_SHIM_LIBRARIES sac_shim) find_library(QTSPARKLE_LIBRARIES qtsparkle) - - # FindPythonLibs.cmake doesn't look for 2.7 on lucid - find_library(PYTHON_LIBRARIES python2.7) - find_path(PYTHON_INCLUDE_DIRS Python.h PATH_SUFFIXES python2.7) - if (PYTHON_LIBRARIES AND PYTHON_INCLUDE_DIRS) - set(PYTHONLIBS_FOUND ON) - endif (PYTHON_LIBRARIES AND PYTHON_INCLUDE_DIRS) -else (WIN32) - find_package(PythonLibs) - if (APPLE) - set(PYTHON_INCLUDE_DIRS /System/Library/Frameworks/Python.Framework/Headers) - endif (APPLE) endif (WIN32) if (APPLE) @@ -194,7 +181,6 @@ option(BUNDLE_PROJECTM_PRESETS "Install Clementine's own copies of libprojectm p option(ENABLE_SOUNDMENU "Add Clementine to the Gnome sound menu" ON) option(ENABLE_LIBLASTFM "Use liblastfm for fetching song info, scrobbling and radio streams" ON) option(ENABLE_SCRIPTING_ARCHIVES "Enable support for loading scripts from archives (.clem or .tar.gz files)" ON) -option(ENABLE_SCRIPTING_PYTHON "Enable python scripting" ON) option(ENABLE_REMOTE "Enable support for using remote controls with Clementine" OFF) option(ENABLE_BREAKPAD "Enable crash reporting" OFF) option(ENABLE_SPOTIFY_BLOB "Build the spotify non-GPL binary" ON) @@ -232,10 +218,6 @@ if(ENABLE_SCRIPTING_ARCHIVES AND ARCHIVE_FOUND) set(HAVE_LIBARCHIVE ON) endif(ENABLE_SCRIPTING_ARCHIVES AND ARCHIVE_FOUND) -if(ENABLE_SCRIPTING_PYTHON AND PYTHONLIBS_FOUND) - set(HAVE_SCRIPTING_PYTHON ON) -endif(ENABLE_SCRIPTING_PYTHON AND PYTHONLIBS_FOUND) - if(ENABLE_WIIMOTEDEV AND HAVE_DBUS) set(HAVE_WIIMOTEDEV ON) endif(ENABLE_WIIMOTEDEV AND HAVE_DBUS) @@ -371,25 +353,6 @@ add_subdirectory(tests) add_subdirectory(dist) add_subdirectory(tools/ultimate_lyrics_parser) -if(HAVE_SCRIPTING_PYTHON) - if(WIN32) - set(DEFAULT_STATIC_PYTHONQT OFF) - else(WIN32) - set(DEFAULT_STATIC_PYTHONQT ON) - endif(WIN32) - - option(STATIC_PYTHONQT "Compile PythonQt statically" ${DEFAULT_STATIC_PYTHONQT}) - - if(STATIC_PYTHONQT) - add_definitions(-DPYTHONQT_STATIC_LIBRARY) - endif(STATIC_PYTHONQT) - - add_subdirectory(scripts) - add_subdirectory(doc/python) - add_subdirectory(3rdparty/pythonqt) - add_subdirectory(3rdparty/pythonqt/generator) -endif(HAVE_SCRIPTING_PYTHON) - option(WITH_DEBIAN OFF) if(WITH_DEBIAN) add_subdirectory(debian) @@ -431,7 +394,6 @@ summary_add("Devices: GIO backend" HAVE_GIO) summary_add("Gnome sound menu integration" HAVE_LIBINDICATE) summary_add("Last.fm support" HAVE_LIBLASTFM) summary_add("Scripting support: loading archives" HAVE_LIBARCHIVE) -summary_add("Scripting support: Python" HAVE_SCRIPTING_PYTHON) summary_add("Spotify support: core code" HAVE_SPOTIFY) summary_add("Spotify support: non-GPL binary helper" HAVE_SPOTIFY_BLOB) summary_add("Visualisations" ENABLE_VISUALISATIONS) diff --git a/cmake/PythonQtBindings.cmake b/cmake/PythonQtBindings.cmake deleted file mode 100644 index 84211ca8f..000000000 --- a/cmake/PythonQtBindings.cmake +++ /dev/null @@ -1,23 +0,0 @@ -add_custom_target(pythonqt-bindings) - -macro(add_pythonqt_bindings) - parse_arguments(ADD_PYTHONQT_BINDINGS - "NAME;HEADER;TYPESYSTEM" - "" - ${ARGN} - ) - - set(allheaders_filename ${CMAKE_CURRENT_SOURCE_DIR}/${ADD_PYTHONQT_BINDINGS_HEADER}) - set(typesystem_filename ${CMAKE_CURRENT_SOURCE_DIR}/${ADD_PYTHONQT_BINDINGS_TYPESYSTEM}) - set(target_name "pythonqt-bindings-${ADD_PYTHONQT_BINDINGS_NAME}") - - add_custom_target(${target_name} - pythonqt-generator - --output-directory=${CMAKE_CURRENT_SOURCE_DIR} - --include-paths=${CMAKE_CURRENT_SOURCE_DIR}:${CMAKE_CURRENT_BINARY_DIR}:${QT_HEADERS_DIR}:${QT_QTCORE_INCLUDE_DIR}:${QT_QTGUI_INCLUDE_DIR}:${QT_QTNETWORK_INCLUDE_DIR} - ${allheaders_filename} - ${typesystem_filename} - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/pythonqt/generator - ) - add_dependencies(pythonqt-bindings ${target_name}) -endmacro(add_pythonqt_bindings) diff --git a/dist/windows/clementine.nsi.in b/dist/windows/clementine.nsi.in index 6a8301475..9af45668d 100644 --- a/dist/windows/clementine.nsi.in +++ b/dist/windows/clementine.nsi.in @@ -171,11 +171,6 @@ Section "Clementine" Clementine File "QtXml4.dll" File "zlib1.dll" - ; Python library - File "python27.dll" - File "Python27.zip" - File "libpythonqt.dll" - ; Check the OS. If Vista or newer, use Default Programs nsisos::osversion StrCpy $R0 $0 @@ -229,30 +224,6 @@ Section "Clementine" Clementine done: SectionEnd -Section "Python extensions" DLLs - SetOutPath "$INSTDIR\DLLs" - - File "/oname=_bsddb.pyd" "DLLs\_bsddb.pyd" - File "/oname=_ctypes.pyd" "DLLs\_ctypes.pyd" - File "/oname=_ctypes_test.pyd" "DLLs\_ctypes_test.pyd" - File "/oname=_elementtree.pyd" "DLLs\_elementtree.pyd" - File "/oname=_hashlib.pyd" "DLLs\_hashlib.pyd" - File "/oname=_msi.pyd" "DLLs\_msi.pyd" - File "/oname=_multiprocessing.pyd" "DLLs\_multiprocessing.pyd" - File "/oname=_socket.pyd" "DLLs\_socket.pyd" - File "/oname=_sqlite3.pyd" "DLLs\_sqlite3.pyd" - File "/oname=_ssl.pyd" "DLLs\_ssl.pyd" - File "/oname=_testcapi.pyd" "DLLs\_testcapi.pyd" - File "/oname=bz2.pyd" "DLLs\bz2.pyd" - File "/oname=py.ico" "DLLs\py.ico" - File "/oname=pyc.ico" "DLLs\pyc.ico" - File "/oname=pyexpat.pyd" "DLLs\pyexpat.pyd" - File "/oname=select.pyd" "DLLs\select.pyd" - File "/oname=sqlite3.dll" "DLLs\sqlite3.dll" - File "/oname=unicodedata.pyd" "DLLs\unicodedata.pyd" - File "/oname=winsound.pyd" "DLLs\winsound.pyd" -SectionEnd - Section "Qt image format plugins" imageformats SetOutPath "$INSTDIR\imageformats" @@ -1034,30 +1005,6 @@ Section "Uninstall" Delete "$INSTDIR\QtXml4.dll" Delete "$INSTDIR\zlib1.dll" - Delete "$INSTDIR\python27.dll" - Delete "$INSTDIR\Python27.zip" - Delete "$INSTDIR\libpythonqt.dll" - - Delete "$INSTDIR\DLLs\_bsddb.pyd" - Delete "$INSTDIR\DLLs\_ctypes.pyd" - Delete "$INSTDIR\DLLs\_ctypes_test.pyd" - Delete "$INSTDIR\DLLs\_elementtree.pyd" - Delete "$INSTDIR\DLLs\_hashlib.pyd" - Delete "$INSTDIR\DLLs\_msi.pyd" - Delete "$INSTDIR\DLLs\_multiprocessing.pyd" - Delete "$INSTDIR\DLLs\_socket.pyd" - Delete "$INSTDIR\DLLs\_sqlite3.pyd" - Delete "$INSTDIR\DLLs\_ssl.pyd" - Delete "$INSTDIR\DLLs\_testcapi.pyd" - Delete "$INSTDIR\DLLs\bz2.pyd" - Delete "$INSTDIR\DLLs\py.ico" - Delete "$INSTDIR\DLLs\pyc.ico" - Delete "$INSTDIR\DLLs\pyexpat.pyd" - Delete "$INSTDIR\DLLs\select.pyd" - Delete "$INSTDIR\DLLs\sqlite3.dll" - Delete "$INSTDIR\DLLs\unicodedata.pyd" - Delete "$INSTDIR\DLLs\winsound.pyd" - Delete "$INSTDIR\imageformats\qgif4.dll" Delete "$INSTDIR\imageformats\qjpeg4.dll" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0ed1d8ec7..4600673da 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -35,12 +35,6 @@ if(HAVE_LIBLASTFM) include_directories(${LASTFM_INCLUDE_DIRS}) endif(HAVE_LIBLASTFM) -if(HAVE_SCRIPTING_PYTHON) - include_directories(${PYTHON_INCLUDE_DIRS}) - include_directories(${CMAKE_SOURCE_DIR}/3rdparty/pythonqt/generated_cpp) - include_directories(${CMAKE_SOURCE_DIR}/3rdparty/pythonqt/src) -endif(HAVE_SCRIPTING_PYTHON) - if(HAVE_BREAKPAD) include_directories(../3rdparty/google-breakpad) endif(HAVE_BREAKPAD) @@ -195,17 +189,6 @@ set(SOURCES resolvers/libraryresolver.cpp - scripting/installscriptdialog.cpp - scripting/languageengine.cpp - scripting/script.cpp - scripting/scriptarchive.cpp - scripting/scriptdialog.cpp - scripting/scriptdialoglist.cpp - scripting/scriptinfo.cpp - scripting/scriptinterface.cpp - scripting/scriptmanager.cpp - scripting/uiinterface.cpp - smartplaylists/generator.cpp smartplaylists/generatorinserter.cpp smartplaylists/querygenerator.cpp @@ -416,13 +399,6 @@ set(HEADERS resolvers/libraryresolver.h resolvers/resolver.h - scripting/installscriptdialog.h - scripting/languageengine.h - scripting/scriptdialog.h - scripting/scriptinterface.h - scripting/scriptmanager.h - scripting/uiinterface.h - smartplaylists/generator.h smartplaylists/generatorinserter.h smartplaylists/generatormimedata.h @@ -529,10 +505,6 @@ set(UI remote/remoteconfig.ui - scripting/installscriptdialog.ui - scripting/scriptdialog.ui - scripting/python/pythonconsole.ui - smartplaylists/querysearchpage.ui smartplaylists/querysortpage.ui smartplaylists/searchpreview.ui @@ -845,29 +817,6 @@ if(APPLE) list(APPEND SOURCES core/mac_startup.mm) endif(APPLE) -if(HAVE_SCRIPTING_PYTHON) - list(APPEND SOURCES - scripting/python/objectdecorators.cpp - scripting/python/pythonconsole.cpp - scripting/python/pythonengine.cpp - scripting/python/pythonscript.cpp - ) - - list(APPEND HEADERS - scripting/python/objectdecorators.h - scripting/python/pythonconsole.h - scripting/python/pythonengine.h - ) - - add_pythonqt_bindings( - NAME clementine - HEADER scripting/python/bindings_includes.h - TYPESYSTEM scripting/python/typesystem_clementine.xml - ) - - add_subdirectory(generated_cpp) -endif(HAVE_SCRIPTING_PYTHON) - if(HAVE_REMOTE) list(APPEND HEADERS remote/icesession.h @@ -949,13 +898,6 @@ list(APPEND OTHER_SOURCES remote/remoteconfig.cpp remote/remoteconfig.h ${CMAKE_CURRENT_BINARY_DIR}/ui_remoteconfig.h - scripting/python/pythonconsole.cpp - scripting/python/pythonconsole.h - scripting/python/pythonengine.cpp - scripting/python/pythonengine.h - scripting/python/pythonscript.cpp - scripting/python/pythonscript.h - ${CMAKE_CURRENT_BINARY_DIR}/ui_pythonconsole.h suggesters/lastfmsuggester.cpp suggesters/lastfmsuggester.h ui/macsystemtrayicon.h @@ -1062,13 +1004,6 @@ if(HAVE_LIBINDICATE) target_link_libraries(clementine_lib ${INDICATEQT_LIBRARIES}) endif(HAVE_LIBINDICATE) -if(HAVE_SCRIPTING_PYTHON) - target_link_libraries(clementine_lib - pythonqt - clementine-pythonqt-bindings - ) -endif(HAVE_SCRIPTING_PYTHON) - if(HAVE_REMOTE) target_link_libraries(clementine_lib ${GLOOX_LIBRARIES}) link_directories(${GLOOX_LIBRARY_DIRS}) diff --git a/src/config.h.in b/src/config.h.in index 8f7839ec2..8c830cbfd 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -32,7 +32,6 @@ #cmakedefine HAVE_LIBLASTFM #cmakedefine HAVE_LIBMTP #cmakedefine HAVE_REMOTE -#cmakedefine HAVE_SCRIPTING_PYTHON #cmakedefine HAVE_SPARKLE #cmakedefine HAVE_SPOTIFY #cmakedefine HAVE_STATIC_SQLITE diff --git a/src/core/utilities.cpp b/src/core/utilities.cpp index d5515198b..fd565ffe9 100644 --- a/src/core/utilities.cpp +++ b/src/core/utilities.cpp @@ -263,9 +263,6 @@ QString GetConfigPath(ConfigPath config) { return GetConfigPath(Path_Root) + QString("/gst-registry-%1-bin").arg(QCoreApplication::applicationVersion()); - case Path_Scripts: - return GetConfigPath(Path_Root) + "/scripts"; - case Path_DefaultMusicLibrary: #ifdef Q_OS_DARWIN return mac::GetMusicDirectory(); diff --git a/src/core/utilities.h b/src/core/utilities.h index 8c1116195..39fb2154f 100644 --- a/src/core/utilities.h +++ b/src/core/utilities.h @@ -54,7 +54,6 @@ namespace Utilities { Path_NetworkCache, Path_GstreamerRegistry, Path_DefaultMusicLibrary, - Path_Scripts, Path_LocalSpotifyBlob, }; QString GetConfigPath(ConfigPath config); diff --git a/src/generated_cpp/CMakeLists.txt b/src/generated_cpp/CMakeLists.txt deleted file mode 100644 index ecfc27b8b..000000000 --- a/src/generated_cpp/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -include_directories( - ${CMAKE_SOURCE_DIR}/src/core - ${CMAKE_SOURCE_DIR}/src/covers - ${CMAKE_SOURCE_DIR}/src/engines - ${CMAKE_SOURCE_DIR}/src/internet - ${CMAKE_SOURCE_DIR}/src/library - ${CMAKE_SOURCE_DIR}/src/playlist - ${CMAKE_SOURCE_DIR}/src/playlistparsers - ${CMAKE_SOURCE_DIR}/src/smartplaylists - ${CMAKE_SOURCE_DIR}/src/ui - ${CMAKE_CURRENT_SOURCE_DIR}/clementine - ${PYTHON_INCLUDE_DIRS} -) - -set(SOURCES - clementine/clementine0.cpp - clementine/clementine1.cpp - clementine/clementine_init.cpp -) - -set(HEADERS - clementine/clementine0.h - clementine/clementine1.h -) - -qt4_wrap_cpp(MOC ${HEADERS}) - -add_library(clementine-pythonqt-bindings - ${SOURCES} - ${MOC} -) - -target_link_libraries(clementine-pythonqt-bindings - clementine_lib -) diff --git a/src/generated_cpp/clementine/clementine0.cpp b/src/generated_cpp/clementine/clementine0.cpp deleted file mode 100644 index e5d929174..000000000 --- a/src/generated_cpp/clementine/clementine0.cpp +++ /dev/null @@ -1,9748 +0,0 @@ -#include "clementine0.h" -#define protected public -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#undef protected - - -void PythonQtWrapper_AlbumCoverFetcherSearch::AlbumCoverFetched(AlbumCoverFetcherSearch* theWrappedObject, quint64 arg__1, const QImage& cover) -{ - ( ((PythonQtPublicPromoter_AlbumCoverFetcherSearch*)theWrappedObject)->promoted_AlbumCoverFetched(arg__1, cover)); -} - -void PythonQtWrapper_AlbumCoverFetcherSearch::Cancel(AlbumCoverFetcherSearch* theWrappedObject) -{ - ( theWrappedObject->Cancel()); -} - -void PythonQtWrapper_AlbumCoverFetcherSearch::SearchFinished(AlbumCoverFetcherSearch* theWrappedObject, quint64 arg__1, const QList& results) -{ - ( ((PythonQtPublicPromoter_AlbumCoverFetcherSearch*)theWrappedObject)->promoted_SearchFinished(arg__1, results)); -} - -void PythonQtWrapper_AlbumCoverFetcherSearch::Start(AlbumCoverFetcherSearch* theWrappedObject) -{ - ( theWrappedObject->Start()); -} - - - -void PythonQtShell_CoverProvider::CancelSearch(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "CancelSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - CoverProvider::CancelSearch(id); -} -bool PythonQtShell_CoverProvider::StartSearch(const QString& artist, const QString& album, int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "StartSearch"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QString&" , "const QString&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&artist, (void*)&album, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("StartSearch", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -void PythonQtShell_CoverProvider::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - CoverProvider::childEvent(arg__1); -} -void PythonQtShell_CoverProvider::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - CoverProvider::customEvent(arg__1); -} -bool PythonQtShell_CoverProvider::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return CoverProvider::event(arg__1); -} -bool PythonQtShell_CoverProvider::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return CoverProvider::eventFilter(arg__1, arg__2); -} -void PythonQtShell_CoverProvider::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - CoverProvider::timerEvent(arg__1); -} -CoverProvider* PythonQtWrapper_CoverProvider::new_CoverProvider(const QString& name, QObject* parent) -{ -return new PythonQtShell_CoverProvider(name, parent); } - -void PythonQtWrapper_CoverProvider::CancelSearch(CoverProvider* theWrappedObject, int id) -{ - ( ((PythonQtPublicPromoter_CoverProvider*)theWrappedObject)->promoted_CancelSearch(id)); -} - -void PythonQtWrapper_CoverProvider::SearchFinished(CoverProvider* theWrappedObject, int id, const QList& results) -{ - ( ((PythonQtPublicPromoter_CoverProvider*)theWrappedObject)->promoted_SearchFinished(id, results)); -} - -QString PythonQtWrapper_CoverProvider::name(CoverProvider* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - - - -void PythonQtWrapper_CoverProviders::AddProvider(CoverProviders* theWrappedObject, CoverProvider* provider) -{ - ( theWrappedObject->AddProvider(provider)); -} - -bool PythonQtWrapper_CoverProviders::HasAnyProviders(CoverProviders* theWrappedObject) const -{ - return ( theWrappedObject->HasAnyProviders()); -} - -QList PythonQtWrapper_CoverProviders::List(CoverProviders* theWrappedObject) const -{ - return ( theWrappedObject->List()); -} - -int PythonQtWrapper_CoverProviders::NextId(CoverProviders* theWrappedObject) -{ - return ( theWrappedObject->NextId()); -} - -void PythonQtWrapper_CoverProviders::RemoveProvider(CoverProviders* theWrappedObject, CoverProvider* provider) -{ - ( theWrappedObject->RemoveProvider(provider)); -} - -CoverProviders* PythonQtWrapper_CoverProviders::static_CoverProviders_instance() -{ - return &(CoverProviders::instance()); -} - - - -CoverSearchResult* PythonQtWrapper_CoverSearchResult::new_CoverSearchResult() -{ -return new PythonQtShell_CoverSearchResult(); } - - - -Directory* PythonQtWrapper_Directory::new_Directory() -{ -return new PythonQtShell_Directory(); } - - - -void PythonQtWrapper_IconLoader::static_IconLoader_Init() -{ - (IconLoader::Init()); -} - -QIcon PythonQtWrapper_IconLoader::static_IconLoader_Load(const QString& name) -{ - return (IconLoader::Load(name)); -} - - - -void PythonQtWrapper_InternetModel::AddService(InternetModel* theWrappedObject, InternetService* service) -{ - ( theWrappedObject->AddService(service)); -} - -void PythonQtWrapper_InternetModel::AddToPlaylist(InternetModel* theWrappedObject, QMimeData* data) -{ - ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_AddToPlaylist(data)); -} - -bool PythonQtWrapper_InternetModel::IsPlayable(InternetModel* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->IsPlayable(index)); -} - -void PythonQtWrapper_InternetModel::ReloadSettings(InternetModel* theWrappedObject) -{ - ( theWrappedObject->ReloadSettings()); -} - -void PythonQtWrapper_InternetModel::RemoveService(InternetModel* theWrappedObject, InternetService* service) -{ - ( theWrappedObject->RemoveService(service)); -} - -InternetService* PythonQtWrapper_InternetModel::static_InternetModel_ServiceByName(const QString& name) -{ - return (InternetModel::ServiceByName(name)); -} - -InternetService* PythonQtWrapper_InternetModel::ServiceForIndex(InternetModel* theWrappedObject, const QModelIndex& index) const -{ - return ( theWrappedObject->ServiceForIndex(index)); -} - -InternetService* PythonQtWrapper_InternetModel::ServiceForItem(InternetModel* theWrappedObject, const QStandardItem* item) const -{ - return ( theWrappedObject->ServiceForItem(item)); -} - -void PythonQtWrapper_InternetModel::ShowContextMenu(InternetModel* theWrappedObject, const QModelIndex& merged_model_index, const QPoint& global_pos) -{ - ( theWrappedObject->ShowContextMenu(merged_model_index, global_pos)); -} - -void PythonQtWrapper_InternetModel::StreamError(InternetModel* theWrappedObject, const QString& message) -{ - ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_StreamError(message)); -} - -void PythonQtWrapper_InternetModel::StreamMetadataFound(InternetModel* theWrappedObject, const QUrl& original_url, const Song& song) -{ - ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_StreamMetadataFound(original_url, song)); -} - -Qt::ItemFlags PythonQtWrapper_InternetModel::flags(InternetModel* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_flags(index)); -} - -bool PythonQtWrapper_InternetModel::hasChildren(InternetModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_hasChildren(parent)); -} - -QMimeData* PythonQtWrapper_InternetModel::mimeData(InternetModel* theWrappedObject, const QList& indexes) const -{ - return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_mimeData(indexes)); -} - -QStringList PythonQtWrapper_InternetModel::mimeTypes(InternetModel* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_mimeTypes()); -} - -PlayerInterface* PythonQtWrapper_InternetModel::player(InternetModel* theWrappedObject) const -{ - return ( theWrappedObject->player()); -} - -int PythonQtWrapper_InternetModel::rowCount(InternetModel* theWrappedObject, const QModelIndex& parent) const -{ - return ( ((PythonQtPublicPromoter_InternetModel*)theWrappedObject)->promoted_rowCount(parent)); -} - -TaskManager* PythonQtWrapper_InternetModel::task_manager(InternetModel* theWrappedObject) const -{ - return ( theWrappedObject->task_manager()); -} - - - -QStandardItem* PythonQtShell_InternetService::CreateRootItem() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "CreateRootItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStandardItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStandardItem* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("CreateRootItem", methodInfo, result); - } else { - returnValue = *((QStandardItem**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QModelIndex PythonQtShell_InternetService::GetCurrentIndex() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCurrentIndex"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QModelIndex returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetCurrentIndex", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QModelIndex(); -} -QWidget* PythonQtShell_InternetService::HeaderWidget() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "HeaderWidget"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QWidget*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QWidget* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("HeaderWidget", methodInfo, result); - } else { - returnValue = *((QWidget**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return InternetService::HeaderWidget(); -} -QString PythonQtShell_InternetService::Icon() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Icon"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("Icon", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return InternetService::Icon(); -} -void PythonQtShell_InternetService::ItemDoubleClicked(QStandardItem* item) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ItemDoubleClicked"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStandardItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&item}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - InternetService::ItemDoubleClicked(item); -} -void PythonQtShell_InternetService::LazyPopulate(QStandardItem* parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "LazyPopulate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QStandardItem*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_InternetService::ReloadSettings() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ReloadSettings"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - InternetService::ReloadSettings(); -} -void PythonQtShell_InternetService::ShowContextMenu(const QModelIndex& index, const QPoint& global_pos) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ShowContextMenu"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&" , "const QPoint&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&index, (void*)&global_pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - InternetService::ShowContextMenu(index, global_pos); -} -void PythonQtShell_InternetService::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - InternetService::childEvent(arg__1); -} -void PythonQtShell_InternetService::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - InternetService::customEvent(arg__1); -} -bool PythonQtShell_InternetService::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return InternetService::event(arg__1); -} -bool PythonQtShell_InternetService::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return InternetService::eventFilter(arg__1, arg__2); -} -void PythonQtShell_InternetService::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - InternetService::timerEvent(arg__1); -} -InternetService* PythonQtWrapper_InternetService::new_InternetService(const QString& name, InternetModel* model, QObject* parent) -{ -return new PythonQtShell_InternetService(name, model, parent); } - -void PythonQtWrapper_InternetService::AddItemToPlaylist(InternetService* theWrappedObject, const QModelIndex& index, InternetService::AddMode add_mode) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_AddItemToPlaylist(index, add_mode)); -} - -void PythonQtWrapper_InternetService::AddItemsToPlaylist(InternetService* theWrappedObject, const QList& indexes, InternetService::AddMode add_mode) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_AddItemsToPlaylist(indexes, add_mode)); -} - -void PythonQtWrapper_InternetService::AddToPlaylistSignal(InternetService* theWrappedObject, QMimeData* data) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_AddToPlaylistSignal(data)); -} - -QAction* PythonQtWrapper_InternetService::GetAppendToPlaylistAction(InternetService* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_GetAppendToPlaylistAction()); -} - -QAction* PythonQtWrapper_InternetService::GetOpenInNewPlaylistAction(InternetService* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_GetOpenInNewPlaylistAction()); -} - -QList PythonQtWrapper_InternetService::GetPlaylistActions(InternetService* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_GetPlaylistActions()); -} - -QAction* PythonQtWrapper_InternetService::GetReplacePlaylistAction(InternetService* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_GetReplacePlaylistAction()); -} - -QWidget* PythonQtWrapper_InternetService::HeaderWidget(InternetService* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_HeaderWidget()); -} - -QString PythonQtWrapper_InternetService::Icon(InternetService* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_Icon()); -} - -void PythonQtWrapper_InternetService::ItemDoubleClicked(InternetService* theWrappedObject, QStandardItem* item) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ItemDoubleClicked(item)); -} - -void PythonQtWrapper_InternetService::ReloadSettings(InternetService* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ReloadSettings()); -} - -void PythonQtWrapper_InternetService::ShowContextMenu(InternetService* theWrappedObject, const QModelIndex& index, const QPoint& global_pos) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_ShowContextMenu(index, global_pos)); -} - -void PythonQtWrapper_InternetService::StreamError(InternetService* theWrappedObject, const QString& message) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_StreamError(message)); -} - -void PythonQtWrapper_InternetService::StreamMetadataFound(InternetService* theWrappedObject, const QUrl& original_url, const Song& song) -{ - ( ((PythonQtPublicPromoter_InternetService*)theWrappedObject)->promoted_StreamMetadataFound(original_url, song)); -} - -InternetModel* PythonQtWrapper_InternetService::model(InternetService* theWrappedObject) const -{ - return ( theWrappedObject->model()); -} - -QString PythonQtWrapper_InternetService::name(InternetService* theWrappedObject) const -{ - return ( theWrappedObject->name()); -} - - - -void PythonQtShell_LibraryBackend::AddDirectory(const QString& path) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "AddDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&path}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::AddDirectory(path); -} -void PythonQtShell_LibraryBackend::ChangeDirPath(int id, const QString& old_path, const QString& new_path) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ChangeDirPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QString&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&id, (void*)&old_path, (void*)&new_path}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::ChangeDirPath(id, old_path, new_path); -} -bool PythonQtShell_LibraryBackend::ExecQuery(LibraryQuery* q) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ExecQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "LibraryQuery*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&q}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("ExecQuery", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::ExecQuery(q); -} -QList PythonQtShell_LibraryBackend::FindSongsInDirectory(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "FindSongsInDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("FindSongsInDirectory", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::FindSongsInDirectory(id); -} -LibraryBackendInterface::Album PythonQtShell_LibraryBackend::GetAlbumArt(const QString& artist, const QString& album) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAlbumArt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"LibraryBackendInterface::Album" , "const QString&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - LibraryBackendInterface::Album returnValue; - void* args[3] = {NULL, (void*)&artist, (void*)&album}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAlbumArt", methodInfo, result); - } else { - returnValue = *((LibraryBackendInterface::Album*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetAlbumArt(artist, album); -} -QList PythonQtShell_LibraryBackend::GetAlbumsByArtist(const QString& artist, const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAlbumsByArtist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QString&" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QList returnValue; - void* args[3] = {NULL, (void*)&artist, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAlbumsByArtist", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetAlbumsByArtist(artist, opt); -} -QList PythonQtShell_LibraryBackend::GetAllAlbums(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllAlbums"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllAlbums", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetAllAlbums(opt); -} -QStringList PythonQtShell_LibraryBackend::GetAllArtists(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllArtists"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QStringList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllArtists", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetAllArtists(opt); -} -QStringList PythonQtShell_LibraryBackend::GetAllArtistsWithAlbums(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllArtistsWithAlbums"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QStringList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllArtistsWithAlbums", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetAllArtistsWithAlbums(opt); -} -QList PythonQtShell_LibraryBackend::GetAllDirectories() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllDirectories"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllDirectories", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetAllDirectories(); -} -QList PythonQtShell_LibraryBackend::GetCompilationAlbums(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCompilationAlbums"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetCompilationAlbums", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetCompilationAlbums(opt); -} -QList PythonQtShell_LibraryBackend::GetCompilationSongs(const QString& album, const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCompilationSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QString&" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QList returnValue; - void* args[3] = {NULL, (void*)&album, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetCompilationSongs", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetCompilationSongs(album, opt); -} -Song PythonQtShell_LibraryBackend::GetSongById(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongById"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Song" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Song returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongById", methodInfo, result); - } else { - returnValue = *((Song*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetSongById(id); -} -Song PythonQtShell_LibraryBackend::GetSongByUrl(const QUrl& url, qint64 beginning) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongByUrl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Song" , "const QUrl&" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - Song returnValue; - void* args[3] = {NULL, (void*)&url, (void*)&beginning}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongByUrl", methodInfo, result); - } else { - returnValue = *((Song*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetSongByUrl(url, beginning); -} -QList PythonQtShell_LibraryBackend::GetSongs(const QString& artist, const QString& album, const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QString&" , "const QString&" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QList returnValue; - void* args[4] = {NULL, (void*)&artist, (void*)&album, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongs", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetSongs(artist, album, opt); -} -QList PythonQtShell_LibraryBackend::GetSongsByUrl(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongsByUrl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongsByUrl", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::GetSongsByUrl(url); -} -bool PythonQtShell_LibraryBackend::HasCompilations(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "HasCompilations"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("HasCompilations", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::HasCompilations(opt); -} -void PythonQtShell_LibraryBackend::LoadDirectoriesAsync() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "LoadDirectoriesAsync"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::LoadDirectoriesAsync(); -} -void PythonQtShell_LibraryBackend::RemoveDirectory(const Directory& dir) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RemoveDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const Directory&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&dir}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::RemoveDirectory(dir); -} -QList PythonQtShell_LibraryBackend::SubdirsInDirectory(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SubdirsInDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("SubdirsInDirectory", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::SubdirsInDirectory(id); -} -void PythonQtShell_LibraryBackend::UpdateManualAlbumArtAsync(const QString& artist, const QString& album, const QString& art) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UpdateManualAlbumArtAsync"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&" , "const QString&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&artist, (void*)&album, (void*)&art}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::UpdateManualAlbumArtAsync(artist, album, art); -} -void PythonQtShell_LibraryBackend::UpdateTotalSongCountAsync() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UpdateTotalSongCountAsync"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::UpdateTotalSongCountAsync(); -} -void PythonQtShell_LibraryBackend::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::childEvent(arg__1); -} -void PythonQtShell_LibraryBackend::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::customEvent(arg__1); -} -bool PythonQtShell_LibraryBackend::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::event(arg__1); -} -bool PythonQtShell_LibraryBackend::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackend::eventFilter(arg__1, arg__2); -} -void PythonQtShell_LibraryBackend::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackend::timerEvent(arg__1); -} -LibraryBackend* PythonQtWrapper_LibraryBackend::new_LibraryBackend(QObject* parent) -{ -return new PythonQtShell_LibraryBackend(parent); } - -void PythonQtWrapper_LibraryBackend::AddDirectory(LibraryBackend* theWrappedObject, const QString& path) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_AddDirectory(path)); -} - -void PythonQtWrapper_LibraryBackend::ChangeDirPath(LibraryBackend* theWrappedObject, int id, const QString& old_path, const QString& new_path) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_ChangeDirPath(id, old_path, new_path)); -} - -void PythonQtWrapper_LibraryBackend::DatabaseReset(LibraryBackend* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_DatabaseReset()); -} - -void PythonQtWrapper_LibraryBackend::DeleteAll(LibraryBackend* theWrappedObject) -{ - ( theWrappedObject->DeleteAll()); -} - -void PythonQtWrapper_LibraryBackend::DirectoryDeleted(LibraryBackend* theWrappedObject, const Directory& dir) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_DirectoryDeleted(dir)); -} - -void PythonQtWrapper_LibraryBackend::DirectoryDiscovered(LibraryBackend* theWrappedObject, const Directory& dir, const QList& subdirs) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_DirectoryDiscovered(dir, subdirs)); -} - -bool PythonQtWrapper_LibraryBackend::ExecQuery(LibraryBackend* theWrappedObject, LibraryQuery* q) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_ExecQuery(q)); -} - -QList PythonQtWrapper_LibraryBackend::FindSongsInDirectory(LibraryBackend* theWrappedObject, int id) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_FindSongsInDirectory(id)); -} - -LibraryBackendInterface::Album PythonQtWrapper_LibraryBackend::GetAlbumArt(LibraryBackend* theWrappedObject, const QString& artist, const QString& album) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetAlbumArt(artist, album)); -} - -QList PythonQtWrapper_LibraryBackend::GetAlbumsByArtist(LibraryBackend* theWrappedObject, const QString& artist, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetAlbumsByArtist(artist, opt)); -} - -QStringList PythonQtWrapper_LibraryBackend::GetAll(LibraryBackend* theWrappedObject, const QString& column, const QueryOptions& opt) -{ - return ( theWrappedObject->GetAll(column, opt)); -} - -QList PythonQtWrapper_LibraryBackend::GetAllAlbums(LibraryBackend* theWrappedObject, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetAllAlbums(opt)); -} - -QStringList PythonQtWrapper_LibraryBackend::GetAllArtists(LibraryBackend* theWrappedObject, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetAllArtists(opt)); -} - -QStringList PythonQtWrapper_LibraryBackend::GetAllArtistsWithAlbums(LibraryBackend* theWrappedObject, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetAllArtistsWithAlbums(opt)); -} - -QList PythonQtWrapper_LibraryBackend::GetAllDirectories(LibraryBackend* theWrappedObject) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetAllDirectories()); -} - -QList PythonQtWrapper_LibraryBackend::GetCompilationAlbums(LibraryBackend* theWrappedObject, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetCompilationAlbums(opt)); -} - -QList PythonQtWrapper_LibraryBackend::GetCompilationSongs(LibraryBackend* theWrappedObject, const QString& album, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetCompilationSongs(album, opt)); -} - -Song PythonQtWrapper_LibraryBackend::GetSongById(LibraryBackend* theWrappedObject, int id) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetSongById(id)); -} - -Song PythonQtWrapper_LibraryBackend::GetSongByUrl(LibraryBackend* theWrappedObject, const QUrl& url, qint64 beginning) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetSongByUrl(url, beginning)); -} - -QList PythonQtWrapper_LibraryBackend::GetSongs(LibraryBackend* theWrappedObject, const QString& artist, const QString& album, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetSongs(artist, album, opt)); -} - -QList PythonQtWrapper_LibraryBackend::GetSongsByForeignId(LibraryBackend* theWrappedObject, const QStringList& ids, const QString& table, const QString& column) -{ - return ( theWrappedObject->GetSongsByForeignId(ids, table, column)); -} - -QList PythonQtWrapper_LibraryBackend::GetSongsById(LibraryBackend* theWrappedObject, const QList& ids) -{ - return ( theWrappedObject->GetSongsById(ids)); -} - -QList PythonQtWrapper_LibraryBackend::GetSongsById(LibraryBackend* theWrappedObject, const QStringList& ids) -{ - return ( theWrappedObject->GetSongsById(ids)); -} - -QList PythonQtWrapper_LibraryBackend::GetSongsByUrl(LibraryBackend* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_GetSongsByUrl(url)); -} - -bool PythonQtWrapper_LibraryBackend::HasCompilations(LibraryBackend* theWrappedObject, const QueryOptions& opt) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_HasCompilations(opt)); -} - -void PythonQtWrapper_LibraryBackend::IncrementPlayCountAsync(LibraryBackend* theWrappedObject, int id) -{ - ( theWrappedObject->IncrementPlayCountAsync(id)); -} - -void PythonQtWrapper_LibraryBackend::IncrementSkipCountAsync(LibraryBackend* theWrappedObject, int id, float progress) -{ - ( theWrappedObject->IncrementSkipCountAsync(id, progress)); -} - -void PythonQtWrapper_LibraryBackend::LoadDirectoriesAsync(LibraryBackend* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_LoadDirectoriesAsync()); -} - -void PythonQtWrapper_LibraryBackend::RemoveDirectory(LibraryBackend* theWrappedObject, const Directory& dir) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_RemoveDirectory(dir)); -} - -void PythonQtWrapper_LibraryBackend::ResetStatisticsAsync(LibraryBackend* theWrappedObject, int id) -{ - ( theWrappedObject->ResetStatisticsAsync(id)); -} - -void PythonQtWrapper_LibraryBackend::SongsDeleted(LibraryBackend* theWrappedObject, const QList& songs) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_SongsDeleted(songs)); -} - -void PythonQtWrapper_LibraryBackend::SongsDiscovered(LibraryBackend* theWrappedObject, const QList& songs) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_SongsDiscovered(songs)); -} - -void PythonQtWrapper_LibraryBackend::SongsStatisticsChanged(LibraryBackend* theWrappedObject, const QList& songs) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_SongsStatisticsChanged(songs)); -} - -QList PythonQtWrapper_LibraryBackend::SubdirsInDirectory(LibraryBackend* theWrappedObject, int id) -{ - return ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_SubdirsInDirectory(id)); -} - -void PythonQtWrapper_LibraryBackend::TotalSongCountUpdated(LibraryBackend* theWrappedObject, int total) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_TotalSongCountUpdated(total)); -} - -void PythonQtWrapper_LibraryBackend::UpdateManualAlbumArtAsync(LibraryBackend* theWrappedObject, const QString& artist, const QString& album, const QString& art) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_UpdateManualAlbumArtAsync(artist, album, art)); -} - -void PythonQtWrapper_LibraryBackend::UpdateSongRatingAsync(LibraryBackend* theWrappedObject, int id, float rating) -{ - ( theWrappedObject->UpdateSongRatingAsync(id, rating)); -} - -void PythonQtWrapper_LibraryBackend::UpdateTotalSongCountAsync(LibraryBackend* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_LibraryBackend*)theWrappedObject)->promoted_UpdateTotalSongCountAsync()); -} - -QString PythonQtWrapper_LibraryBackend::dirs_table(LibraryBackend* theWrappedObject) const -{ - return ( theWrappedObject->dirs_table()); -} - -QString PythonQtWrapper_LibraryBackend::songs_table(LibraryBackend* theWrappedObject) const -{ - return ( theWrappedObject->songs_table()); -} - -QString PythonQtWrapper_LibraryBackend::subdirs_table(LibraryBackend* theWrappedObject) const -{ - return ( theWrappedObject->subdirs_table()); -} - - - -void PythonQtShell_LibraryBackendInterface::AddDirectory(const QString& path) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "AddDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&path}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_LibraryBackendInterface::ChangeDirPath(int id, const QString& old_path, const QString& new_path) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ChangeDirPath"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QString&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&id, (void*)&old_path, (void*)&new_path}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -bool PythonQtShell_LibraryBackendInterface::ExecQuery(LibraryQuery* q) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ExecQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "LibraryQuery*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&q}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("ExecQuery", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -QList PythonQtShell_LibraryBackendInterface::FindSongsInDirectory(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "FindSongsInDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("FindSongsInDirectory", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -LibraryBackendInterface::Album PythonQtShell_LibraryBackendInterface::GetAlbumArt(const QString& artist, const QString& album) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAlbumArt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"LibraryBackendInterface::Album" , "const QString&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - LibraryBackendInterface::Album returnValue; - void* args[3] = {NULL, (void*)&artist, (void*)&album}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAlbumArt", methodInfo, result); - } else { - returnValue = *((LibraryBackendInterface::Album*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackendInterface::Album(); -} -QList PythonQtShell_LibraryBackendInterface::GetAlbumsByArtist(const QString& artist, const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAlbumsByArtist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QString&" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QList returnValue; - void* args[3] = {NULL, (void*)&artist, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAlbumsByArtist", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QList PythonQtShell_LibraryBackendInterface::GetAllAlbums(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllAlbums"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllAlbums", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QStringList PythonQtShell_LibraryBackendInterface::GetAllArtists(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllArtists"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QStringList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllArtists", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -QStringList PythonQtShell_LibraryBackendInterface::GetAllArtistsWithAlbums(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllArtistsWithAlbums"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QStringList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllArtistsWithAlbums", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QStringList(); -} -QList PythonQtShell_LibraryBackendInterface::GetAllDirectories() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllDirectories"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllDirectories", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QList PythonQtShell_LibraryBackendInterface::GetCompilationAlbums(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCompilationAlbums"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetCompilationAlbums", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QList PythonQtShell_LibraryBackendInterface::GetCompilationSongs(const QString& album, const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCompilationSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QString&" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QList returnValue; - void* args[3] = {NULL, (void*)&album, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetCompilationSongs", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -Song PythonQtShell_LibraryBackendInterface::GetSongById(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongById"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Song" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Song returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongById", methodInfo, result); - } else { - returnValue = *((Song*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Song(); -} -Song PythonQtShell_LibraryBackendInterface::GetSongByUrl(const QUrl& url, qint64 beginning) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongByUrl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Song" , "const QUrl&" , "qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - Song returnValue; - void* args[3] = {NULL, (void*)&url, (void*)&beginning}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongByUrl", methodInfo, result); - } else { - returnValue = *((Song*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Song(); -} -QList PythonQtShell_LibraryBackendInterface::GetSongs(const QString& artist, const QString& album, const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QString&" , "const QString&" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QList returnValue; - void* args[4] = {NULL, (void*)&artist, (void*)&album, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongs", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QList PythonQtShell_LibraryBackendInterface::GetSongsByUrl(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetSongsByUrl"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetSongsByUrl", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -bool PythonQtShell_LibraryBackendInterface::HasCompilations(const QueryOptions& opt) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "HasCompilations"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QueryOptions&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&opt}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("HasCompilations", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return bool(); -} -void PythonQtShell_LibraryBackendInterface::LoadDirectoriesAsync() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "LoadDirectoriesAsync"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_LibraryBackendInterface::RemoveDirectory(const Directory& dir) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RemoveDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const Directory&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&dir}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QList PythonQtShell_LibraryBackendInterface::SubdirsInDirectory(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SubdirsInDirectory"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QList returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("SubdirsInDirectory", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -void PythonQtShell_LibraryBackendInterface::UpdateManualAlbumArtAsync(const QString& artist, const QString& album, const QString& art) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UpdateManualAlbumArtAsync"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&" , "const QString&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&artist, (void*)&album, (void*)&art}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_LibraryBackendInterface::UpdateTotalSongCountAsync() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UpdateTotalSongCountAsync"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_LibraryBackendInterface::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackendInterface::childEvent(arg__1); -} -void PythonQtShell_LibraryBackendInterface::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackendInterface::customEvent(arg__1); -} -bool PythonQtShell_LibraryBackendInterface::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackendInterface::event(arg__1); -} -bool PythonQtShell_LibraryBackendInterface::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return LibraryBackendInterface::eventFilter(arg__1, arg__2); -} -void PythonQtShell_LibraryBackendInterface::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - LibraryBackendInterface::timerEvent(arg__1); -} -LibraryBackendInterface* PythonQtWrapper_LibraryBackendInterface::new_LibraryBackendInterface(QObject* parent) -{ -return new PythonQtShell_LibraryBackendInterface(parent); } - - - -LibraryBackendInterface::Album* PythonQtWrapper_LibraryBackendInterface_Album::new_LibraryBackendInterface_Album() -{ -return new PythonQtShell_LibraryBackendInterface_Album(); } - -LibraryBackendInterface::Album* PythonQtWrapper_LibraryBackendInterface_Album::new_LibraryBackendInterface_Album(const QString& _artist, const QString& _album_name, const QString& _art_automatic, const QString& _art_manual, const QUrl& _first_url) -{ -return new PythonQtShell_LibraryBackendInterface_Album(_artist, _album_name, _art_automatic, _art_manual, _first_url); } - - - -LibraryQuery* PythonQtWrapper_LibraryQuery::new_LibraryQuery(const QueryOptions& options) -{ -return new LibraryQuery(options); } - -void PythonQtWrapper_LibraryQuery::AddCompilationRequirement(LibraryQuery* theWrappedObject, bool compilation) -{ - ( theWrappedObject->AddCompilationRequirement(compilation)); -} - -void PythonQtWrapper_LibraryQuery::AddWhere(LibraryQuery* theWrappedObject, const QString& column, const QVariant& value, const QString& op) -{ - ( theWrappedObject->AddWhere(column, value, op)); -} - -bool PythonQtWrapper_LibraryQuery::Next(LibraryQuery* theWrappedObject) -{ - return ( theWrappedObject->Next()); -} - -void PythonQtWrapper_LibraryQuery::SetColumnSpec(LibraryQuery* theWrappedObject, const QString& spec) -{ - ( theWrappedObject->SetColumnSpec(spec)); -} - -void PythonQtWrapper_LibraryQuery::SetIncludeUnavailable(LibraryQuery* theWrappedObject, bool include_unavailable) -{ - ( theWrappedObject->SetIncludeUnavailable(include_unavailable)); -} - -void PythonQtWrapper_LibraryQuery::SetLimit(LibraryQuery* theWrappedObject, int limit) -{ - ( theWrappedObject->SetLimit(limit)); -} - -void PythonQtWrapper_LibraryQuery::SetOrderBy(LibraryQuery* theWrappedObject, const QString& order_by) -{ - ( theWrappedObject->SetOrderBy(order_by)); -} - -QVariant PythonQtWrapper_LibraryQuery::Value(LibraryQuery* theWrappedObject, int column) const -{ - return ( theWrappedObject->Value(column)); -} - - - -LibraryView* PythonQtWrapper_LibraryView::new_LibraryView(QWidget* parent) -{ -return new PythonQtShell_LibraryView(parent); } - -QList PythonQtWrapper_LibraryView::GetSelectedSongs(LibraryView* theWrappedObject) const -{ - return ( theWrappedObject->GetSelectedSongs()); -} - -void PythonQtWrapper_LibraryView::SetTaskManager(LibraryView* theWrappedObject, TaskManager* task_manager) -{ - ( theWrappedObject->SetTaskManager(task_manager)); -} - -void PythonQtWrapper_LibraryView::ShowConfigDialog(LibraryView* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_LibraryView*)theWrappedObject)->promoted_ShowConfigDialog()); -} - -void PythonQtWrapper_LibraryView::contextMenuEvent(LibraryView* theWrappedObject, QContextMenuEvent* e) -{ - ( ((PythonQtPublicPromoter_LibraryView*)theWrappedObject)->promoted_contextMenuEvent(e)); -} - -void PythonQtWrapper_LibraryView::keyboardSearch(LibraryView* theWrappedObject, const QString& search) -{ - ( theWrappedObject->keyboardSearch(search)); -} - -void PythonQtWrapper_LibraryView::mouseReleaseEvent(LibraryView* theWrappedObject, QMouseEvent* e) -{ - ( ((PythonQtPublicPromoter_LibraryView*)theWrappedObject)->promoted_mouseReleaseEvent(e)); -} - -void PythonQtWrapper_LibraryView::paintEvent(LibraryView* theWrappedObject, QPaintEvent* event) -{ - ( ((PythonQtPublicPromoter_LibraryView*)theWrappedObject)->promoted_paintEvent(event)); -} - -void PythonQtWrapper_LibraryView::scrollTo(LibraryView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint) -{ - ( theWrappedObject->scrollTo(index, hint)); -} - - - -void PythonQtShell_NetworkAccessManager::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - NetworkAccessManager::childEvent(arg__1); -} -QNetworkReply* PythonQtShell_NetworkAccessManager::createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "createRequest"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QNetworkReply*" , "QNetworkAccessManager::Operation" , "const QNetworkRequest&" , "QIODevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QNetworkReply* returnValue = 0; - void* args[4] = {NULL, (void*)&op, (void*)&request, (void*)&outgoingData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("createRequest", methodInfo, result); - } else { - returnValue = *((QNetworkReply**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return NetworkAccessManager::createRequest(op, request, outgoingData); -} -void PythonQtShell_NetworkAccessManager::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - NetworkAccessManager::customEvent(arg__1); -} -bool PythonQtShell_NetworkAccessManager::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return NetworkAccessManager::event(arg__1); -} -bool PythonQtShell_NetworkAccessManager::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return NetworkAccessManager::eventFilter(arg__1, arg__2); -} -void PythonQtShell_NetworkAccessManager::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - NetworkAccessManager::timerEvent(arg__1); -} -NetworkAccessManager* PythonQtWrapper_NetworkAccessManager::new_NetworkAccessManager(QObject* parent) -{ -return new PythonQtShell_NetworkAccessManager(parent); } - -QNetworkReply* PythonQtWrapper_NetworkAccessManager::createRequest(NetworkAccessManager* theWrappedObject, QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData) -{ - return ( ((PythonQtPublicPromoter_NetworkAccessManager*)theWrappedObject)->promoted_createRequest(op, request, outgoingData)); -} - - - -void PythonQtShell_NetworkTimeouts::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - NetworkTimeouts::childEvent(arg__1); -} -void PythonQtShell_NetworkTimeouts::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - NetworkTimeouts::customEvent(arg__1); -} -bool PythonQtShell_NetworkTimeouts::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return NetworkTimeouts::event(arg__1); -} -bool PythonQtShell_NetworkTimeouts::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return NetworkTimeouts::eventFilter(arg__1, arg__2); -} -void PythonQtShell_NetworkTimeouts::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - NetworkTimeouts::timerEvent(arg__1); -} -NetworkTimeouts* PythonQtWrapper_NetworkTimeouts::new_NetworkTimeouts(int timeout_msec, QObject* parent) -{ -return new PythonQtShell_NetworkTimeouts(timeout_msec, parent); } - -void PythonQtWrapper_NetworkTimeouts::AddReply(NetworkTimeouts* theWrappedObject, QNetworkReply* reply) -{ - ( theWrappedObject->AddReply(reply)); -} - -void PythonQtWrapper_NetworkTimeouts::SetTimeout(NetworkTimeouts* theWrappedObject, int msec) -{ - ( theWrappedObject->SetTimeout(msec)); -} - - - -void PythonQtShell_Player::CurrentMetadataChanged(const Song& metadata) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "CurrentMetadataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const Song&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&metadata}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::CurrentMetadataChanged(metadata); -} -PlaylistItemPtr PythonQtShell_Player::GetCurrentItem() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCurrentItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistItemPtr"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistItemPtr returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetCurrentItem", methodInfo, result); - } else { - returnValue = *((PlaylistItemPtr*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::GetCurrentItem(); -} -PlaylistItemPtr PythonQtShell_Player::GetItemAt(int pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetItemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistItemPtr" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - PlaylistItemPtr returnValue; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetItemAt", methodInfo, result); - } else { - returnValue = *((PlaylistItemPtr*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::GetItemAt(pos); -} -Engine::State PythonQtShell_Player::GetState() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Engine::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Engine::State returnValue = Engine::State(0); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetState", methodInfo, result); - } else { - returnValue = *((Engine::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::GetState(); -} -int PythonQtShell_Player::GetVolume() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetVolume"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetVolume", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::GetVolume(); -} -void PythonQtShell_Player::Mute() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Mute"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::Mute(); -} -void PythonQtShell_Player::Next() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Next"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::Next(); -} -void PythonQtShell_Player::Pause() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Pause"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::Pause(); -} -void PythonQtShell_Player::Play() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Play"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::Play(); -} -void PythonQtShell_Player::PlayAt(int i, Engine::TrackChangeFlags change, bool reshuffle) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "PlayAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Engine::TrackChangeFlags" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&i, (void*)&change, (void*)&reshuffle}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::PlayAt(i, change, reshuffle); -} -void PythonQtShell_Player::PlayPause() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "PlayPause"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::PlayPause(); -} -void PythonQtShell_Player::Previous() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Previous"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::Previous(); -} -void PythonQtShell_Player::RegisterUrlHandler(UrlHandler* handler) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RegisterUrlHandler"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "UrlHandler*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&handler}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::RegisterUrlHandler(handler); -} -void PythonQtShell_Player::ReloadSettings() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ReloadSettings"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::ReloadSettings(); -} -void PythonQtShell_Player::SeekBackward() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SeekBackward"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::SeekBackward(); -} -void PythonQtShell_Player::SeekForward() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SeekForward"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::SeekForward(); -} -void PythonQtShell_Player::SeekTo(int seconds) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SeekTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&seconds}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::SeekTo(seconds); -} -void PythonQtShell_Player::SetVolume(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetVolume"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::SetVolume(value); -} -void PythonQtShell_Player::ShowOSD() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ShowOSD"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::ShowOSD(); -} -void PythonQtShell_Player::Stop() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Stop"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::Stop(); -} -void PythonQtShell_Player::UnregisterUrlHandler(UrlHandler* handler) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UnregisterUrlHandler"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "UrlHandler*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&handler}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::UnregisterUrlHandler(handler); -} -void PythonQtShell_Player::VolumeDown() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "VolumeDown"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::VolumeDown(); -} -void PythonQtShell_Player::VolumeUp() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "VolumeUp"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::VolumeUp(); -} -void PythonQtShell_Player::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::childEvent(arg__1); -} -void PythonQtShell_Player::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::customEvent(arg__1); -} -Engine::Base* PythonQtShell_Player::engine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "engine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Engine::Base*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Engine::Base* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("engine", methodInfo, result); - } else { - returnValue = *((Engine::Base**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::engine(); -} -bool PythonQtShell_Player::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::event(arg__1); -} -bool PythonQtShell_Player::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::eventFilter(arg__1, arg__2); -} -PlaylistManagerInterface* PythonQtShell_Player::playlists() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlists"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistManagerInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistManagerInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlists", methodInfo, result); - } else { - returnValue = *((PlaylistManagerInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Player::playlists(); -} -void PythonQtShell_Player::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Player::timerEvent(arg__1); -} -Player* PythonQtWrapper_Player::new_Player(PlaylistManagerInterface* playlists, QObject* parent) -{ -return new PythonQtShell_Player(playlists, parent); } - -PlaylistItemPtr PythonQtWrapper_Player::GetCurrentItem(Player* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_GetCurrentItem()); -} - -PlaylistItemPtr PythonQtWrapper_Player::GetItemAt(Player* theWrappedObject, int pos) const -{ - return ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_GetItemAt(pos)); -} - -Engine::State PythonQtWrapper_Player::GetState(Player* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_GetState()); -} - -int PythonQtWrapper_Player::GetVolume(Player* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_GetVolume()); -} - -void PythonQtWrapper_Player::Init(Player* theWrappedObject) -{ - ( theWrappedObject->Init()); -} - -void PythonQtWrapper_Player::RegisterUrlHandler(Player* theWrappedObject, UrlHandler* handler) -{ - ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_RegisterUrlHandler(handler)); -} - -void PythonQtWrapper_Player::UnregisterUrlHandler(Player* theWrappedObject, UrlHandler* handler) -{ - ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_UnregisterUrlHandler(handler)); -} - -Engine::Base* PythonQtWrapper_Player::engine(Player* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_engine()); -} - -PlaylistManagerInterface* PythonQtWrapper_Player::playlists(Player* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_Player*)theWrappedObject)->promoted_playlists()); -} - - - -void PythonQtShell_PlayerInterface::CurrentMetadataChanged(const Song& metadata) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "CurrentMetadataChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const Song&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&metadata}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -PlaylistItemPtr PythonQtShell_PlayerInterface::GetCurrentItem() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetCurrentItem"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistItemPtr"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistItemPtr returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetCurrentItem", methodInfo, result); - } else { - returnValue = *((PlaylistItemPtr*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistItemPtr(); -} -PlaylistItemPtr PythonQtShell_PlayerInterface::GetItemAt(int pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetItemAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistItemPtr" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - PlaylistItemPtr returnValue; - void* args[2] = {NULL, (void*)&pos}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetItemAt", methodInfo, result); - } else { - returnValue = *((PlaylistItemPtr*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistItemPtr(); -} -Engine::State PythonQtShell_PlayerInterface::GetState() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetState"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Engine::State"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Engine::State returnValue = Engine::State(0); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetState", methodInfo, result); - } else { - returnValue = *((Engine::State*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Engine::State(); -} -int PythonQtShell_PlayerInterface::GetVolume() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetVolume"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetVolume", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -void PythonQtShell_PlayerInterface::Mute() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Mute"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::Next() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Next"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::Pause() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Pause"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::Play() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Play"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::PlayAt(int i, Engine::TrackChangeFlags change, bool reshuffle) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "PlayAt"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Engine::TrackChangeFlags" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&i, (void*)&change, (void*)&reshuffle}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::PlayPause() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "PlayPause"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::Previous() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Previous"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::RegisterUrlHandler(UrlHandler* handler) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RegisterUrlHandler"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "UrlHandler*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&handler}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::ReloadSettings() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ReloadSettings"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::SeekBackward() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SeekBackward"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::SeekForward() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SeekForward"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::SeekTo(int seconds) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SeekTo"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&seconds}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::SetVolume(int value) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetVolume"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&value}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::ShowOSD() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ShowOSD"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::Stop() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Stop"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::UnregisterUrlHandler(UrlHandler* handler) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UnregisterUrlHandler"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "UrlHandler*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&handler}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::VolumeDown() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "VolumeDown"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::VolumeUp() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "VolumeUp"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlayerInterface::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlayerInterface::childEvent(arg__1); -} -void PythonQtShell_PlayerInterface::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlayerInterface::customEvent(arg__1); -} -Engine::Base* PythonQtShell_PlayerInterface::engine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "engine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Engine::Base*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Engine::Base* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("engine", methodInfo, result); - } else { - returnValue = *((Engine::Base**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -bool PythonQtShell_PlayerInterface::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlayerInterface::event(arg__1); -} -bool PythonQtShell_PlayerInterface::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlayerInterface::eventFilter(arg__1, arg__2); -} -PlaylistManagerInterface* PythonQtShell_PlayerInterface::playlists() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlists"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistManagerInterface*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistManagerInterface* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlists", methodInfo, result); - } else { - returnValue = *((PlaylistManagerInterface**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_PlayerInterface::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlayerInterface::timerEvent(arg__1); -} -PlayerInterface* PythonQtWrapper_PlayerInterface::new_PlayerInterface(QObject* parent) -{ -return new PythonQtShell_PlayerInterface(parent); } - -void PythonQtWrapper_PlayerInterface::Error(PlayerInterface* theWrappedObject, const QString& message) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_Error(message)); -} - -void PythonQtWrapper_PlayerInterface::ForceShowOSD(PlayerInterface* theWrappedObject, Song arg__1, bool toogle) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_ForceShowOSD(arg__1, toogle)); -} - -void PythonQtWrapper_PlayerInterface::Paused(PlayerInterface* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_Paused()); -} - -void PythonQtWrapper_PlayerInterface::Playing(PlayerInterface* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_Playing()); -} - -void PythonQtWrapper_PlayerInterface::PlaylistFinished(PlayerInterface* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_PlaylistFinished()); -} - -void PythonQtWrapper_PlayerInterface::Seeked(PlayerInterface* theWrappedObject, qlonglong microseconds) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_Seeked(microseconds)); -} - -void PythonQtWrapper_PlayerInterface::SongChangeRequestProcessed(PlayerInterface* theWrappedObject, const QUrl& url, bool valid) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_SongChangeRequestProcessed(url, valid)); -} - -void PythonQtWrapper_PlayerInterface::Stopped(PlayerInterface* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_Stopped()); -} - -void PythonQtWrapper_PlayerInterface::TrackSkipped(PlayerInterface* theWrappedObject, PlaylistItemPtr old_track) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_TrackSkipped(old_track)); -} - -void PythonQtWrapper_PlayerInterface::VolumeChanged(PlayerInterface* theWrappedObject, int volume) -{ - ( ((PythonQtPublicPromoter_PlayerInterface*)theWrappedObject)->promoted_VolumeChanged(volume)); -} - - - -QModelIndex PythonQtShell_Playlist::buddy(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QModelIndex returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::buddy(index); -} -bool PythonQtShell_Playlist::canFetchMore(const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::canFetchMore(parent); -} -void PythonQtShell_Playlist::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Playlist::childEvent(arg__1); -} -int PythonQtShell_Playlist::columnCount(const QModelIndex& arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "columnCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("columnCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::columnCount(arg__1); -} -void PythonQtShell_Playlist::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Playlist::customEvent(arg__1); -} -QVariant PythonQtShell_Playlist::data(const QModelIndex& index, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QVariant returnValue; - void* args[3] = {NULL, (void*)&index, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::data(index, role); -} -bool PythonQtShell_Playlist::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - bool returnValue = 0; - void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::dropMimeData(data, action, row, column, parent); -} -bool PythonQtShell_Playlist::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::event(arg__1); -} -bool PythonQtShell_Playlist::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::eventFilter(arg__1, arg__2); -} -void PythonQtShell_Playlist::fetchMore(const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Playlist::fetchMore(parent); -} -Qt::ItemFlags PythonQtShell_Playlist::flags(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Qt::ItemFlags returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result); - } else { - returnValue = *((Qt::ItemFlags*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::flags(index); -} -QVariant PythonQtShell_Playlist::headerData(int section, Qt::Orientation orientation, int role) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QVariant returnValue; - void* args[4] = {NULL, (void*)§ion, (void*)&orientation, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::headerData(section, orientation, role); -} -QModelIndex PythonQtShell_Playlist::index(int row, int column, const QModelIndex& parent) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - QModelIndex returnValue; - void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result); - } else { - returnValue = *((QModelIndex*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::index(row, column, parent); -} -bool PythonQtShell_Playlist::insertColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::insertColumns(column, count, parent); -} -bool PythonQtShell_Playlist::insertRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::insertRows(row, count, parent); -} -QMap PythonQtShell_Playlist::itemData(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMap" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMap returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result); - } else { - returnValue = *((QMap*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::itemData(index); -} -QList PythonQtShell_Playlist::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList); - QList returnValue; - void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::match(start, role, value, hits, flags); -} -QMimeData* PythonQtShell_Playlist::mimeData(const QList& indexes) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QMimeData*" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QMimeData* returnValue = 0; - void* args[2] = {NULL, (void*)&indexes}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result); - } else { - returnValue = *((QMimeData**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::mimeData(indexes); -} -QStringList PythonQtShell_Playlist::mimeTypes() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QStringList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QStringList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result); - } else { - returnValue = *((QStringList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::mimeTypes(); -} -bool PythonQtShell_Playlist::removeColumns(int column, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::removeColumns(column, count, parent); -} -bool PythonQtShell_Playlist::removeRows(int row, int count, const QModelIndex& parent) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::removeRows(row, count, parent); -} -void PythonQtShell_Playlist::revert() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Playlist::revert(); -} -int PythonQtShell_Playlist::rowCount(const QModelIndex& arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::rowCount(arg__1); -} -bool PythonQtShell_Playlist::setData(const QModelIndex& index, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - bool returnValue = 0; - void* args[4] = {NULL, (void*)&index, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::setData(index, value, role); -} -bool PythonQtShell_Playlist::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList); - bool returnValue = 0; - void* args[5] = {NULL, (void*)§ion, (void*)&orientation, (void*)&value, (void*)&role}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::setHeaderData(section, orientation, value, role); -} -bool PythonQtShell_Playlist::setItemData(const QModelIndex& index, const QMap& roles) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&index, (void*)&roles}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::setItemData(index, roles); -} -void PythonQtShell_Playlist::sort(int column, Qt::SortOrder order) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&column, (void*)&order}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Playlist::sort(column, order); -} -QSize PythonQtShell_Playlist::span(const QModelIndex& index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize" , "const QModelIndex&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QSize returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::span(index); -} -bool PythonQtShell_Playlist::submit() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - bool returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::submit(); -} -Qt::DropActions PythonQtShell_Playlist::supportedDropActions() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Qt::DropActions"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Qt::DropActions returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result); - } else { - returnValue = *((Qt::DropActions*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return Playlist::supportedDropActions(); -} -void PythonQtShell_Playlist::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - Playlist::timerEvent(arg__1); -} -Playlist* PythonQtWrapper_Playlist::new_Playlist(PlaylistBackend* backend, TaskManager* task_manager, LibraryBackend* library, int id, const QString& special_type, QObject* parent) -{ -return new PythonQtShell_Playlist(backend, task_manager, library, id, special_type, parent); } - -void PythonQtWrapper_Playlist::AddSongInsertVetoListener(Playlist* theWrappedObject, SongInsertVetoListener* listener) -{ - ( theWrappedObject->AddSongInsertVetoListener(listener)); -} - -bool PythonQtWrapper_Playlist::ApplyValidityOnCurrentSong(Playlist* theWrappedObject, const QUrl& url, bool valid) -{ - return ( theWrappedObject->ApplyValidityOnCurrentSong(url, valid)); -} - -bool PythonQtWrapper_Playlist::static_Playlist_CompareItems(int column, Qt::SortOrder order, PlaylistItemPtr a, PlaylistItemPtr b) -{ - return (Playlist::CompareItems(column, order, a, b)); -} - -void PythonQtWrapper_Playlist::CurrentSongChanged(Playlist* theWrappedObject, const Song& metadata) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_CurrentSongChanged(metadata)); -} - -void PythonQtWrapper_Playlist::DynamicModeChanged(Playlist* theWrappedObject, bool dynamic) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_DynamicModeChanged(dynamic)); -} - -void PythonQtWrapper_Playlist::EditingFinished(Playlist* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_EditingFinished(index)); -} - -QList PythonQtWrapper_Playlist::GetAllItems(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->GetAllItems()); -} - -QList PythonQtWrapper_Playlist::GetAllSongs(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->GetAllSongs()); -} - -quint64 PythonQtWrapper_Playlist::GetTotalLength(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->GetTotalLength()); -} - -void PythonQtWrapper_Playlist::InsertItems(Playlist* theWrappedObject, const QList& items, int pos, bool play_now, bool enqueue) -{ - ( theWrappedObject->InsertItems(items, pos, play_now, enqueue)); -} - -void PythonQtWrapper_Playlist::InsertLibraryItems(Playlist* theWrappedObject, const QList& items, int pos, bool play_now, bool enqueue) -{ - ( theWrappedObject->InsertLibraryItems(items, pos, play_now, enqueue)); -} - -void PythonQtWrapper_Playlist::InsertSmartPlaylist(Playlist* theWrappedObject, smart_playlists::GeneratorPtr gen, int pos, bool play_now, bool enqueue) -{ - ( theWrappedObject->InsertSmartPlaylist(gen, pos, play_now, enqueue)); -} - -void PythonQtWrapper_Playlist::InsertSongs(Playlist* theWrappedObject, const QList& items, int pos, bool play_now, bool enqueue) -{ - ( theWrappedObject->InsertSongs(items, pos, play_now, enqueue)); -} - -void PythonQtWrapper_Playlist::InsertSongsOrLibraryItems(Playlist* theWrappedObject, const QList& items, int pos, bool play_now, bool enqueue) -{ - ( theWrappedObject->InsertSongsOrLibraryItems(items, pos, play_now, enqueue)); -} - -void PythonQtWrapper_Playlist::InsertUrls(Playlist* theWrappedObject, const QList& urls, int pos, bool play_now, bool enqueue) -{ - ( theWrappedObject->InsertUrls(urls, pos, play_now, enqueue)); -} - -void PythonQtWrapper_Playlist::InvalidateDeletedSongs(Playlist* theWrappedObject) -{ - ( theWrappedObject->InvalidateDeletedSongs()); -} - -void PythonQtWrapper_Playlist::LoadTracksError(Playlist* theWrappedObject, const QString& message) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_LoadTracksError(message)); -} - -void PythonQtWrapper_Playlist::PlayRequested(Playlist* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_PlayRequested(index)); -} - -void PythonQtWrapper_Playlist::PlaylistChanged(Playlist* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_PlaylistChanged()); -} - -void PythonQtWrapper_Playlist::RateSong(Playlist* theWrappedObject, const QModelIndex& index, double rating) -{ - ( theWrappedObject->RateSong(index, rating)); -} - -void PythonQtWrapper_Playlist::ReloadItems(Playlist* theWrappedObject, const QList& rows) -{ - ( theWrappedObject->ReloadItems(rows)); -} - -void PythonQtWrapper_Playlist::RemoveDeletedSongs(Playlist* theWrappedObject) -{ - ( theWrappedObject->RemoveDeletedSongs()); -} - -void PythonQtWrapper_Playlist::RemoveItemsWithoutUndo(Playlist* theWrappedObject, const QList& indices) -{ - ( theWrappedObject->RemoveItemsWithoutUndo(indices)); -} - -void PythonQtWrapper_Playlist::RemoveSongInsertVetoListener(Playlist* theWrappedObject, SongInsertVetoListener* listener) -{ - ( theWrappedObject->RemoveSongInsertVetoListener(listener)); -} - -void PythonQtWrapper_Playlist::Restore(Playlist* theWrappedObject) -{ - ( theWrappedObject->Restore()); -} - -void PythonQtWrapper_Playlist::RestoreFinished(Playlist* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_RestoreFinished()); -} - -void PythonQtWrapper_Playlist::Save(Playlist* theWrappedObject) const -{ - ( theWrappedObject->Save()); -} - -void PythonQtWrapper_Playlist::StopAfter(Playlist* theWrappedObject, int row) -{ - ( theWrappedObject->StopAfter(row)); -} - -void PythonQtWrapper_Playlist::UpdateItems(Playlist* theWrappedObject, const QList& songs) -{ - ( theWrappedObject->UpdateItems(songs)); -} - -QString PythonQtWrapper_Playlist::static_Playlist_abbreviated_column_name(Playlist::Column column) -{ - return (Playlist::abbreviated_column_name(column)); -} - -int PythonQtWrapper_Playlist::columnCount(Playlist* theWrappedObject, const QModelIndex& arg__1) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_columnCount(arg__1)); -} - -QMap PythonQtWrapper_Playlist::column_alignments(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->column_alignments()); -} - -bool PythonQtWrapper_Playlist::static_Playlist_column_is_editable(Playlist::Column column) -{ - return (Playlist::column_is_editable(column)); -} - -QString PythonQtWrapper_Playlist::static_Playlist_column_name(Playlist::Column column) -{ - return (Playlist::column_name(column)); -} - -const QModelIndex PythonQtWrapper_Playlist::current_index(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->current_index()); -} - -PlaylistItemPtr PythonQtWrapper_Playlist::current_item(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->current_item()); -} - -Song PythonQtWrapper_Playlist::current_item_metadata(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->current_item_metadata()); -} - -int PythonQtWrapper_Playlist::current_row(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->current_row()); -} - -QVariant PythonQtWrapper_Playlist::data(Playlist* theWrappedObject, const QModelIndex& index, int role) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_data(index, role)); -} - -bool PythonQtWrapper_Playlist::dropMimeData(Playlist* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent)); -} - -Qt::ItemFlags PythonQtWrapper_Playlist::flags(Playlist* theWrappedObject, const QModelIndex& index) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_flags(index)); -} - -Playlist::LastFMStatus PythonQtWrapper_Playlist::get_lastfm_status(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->get_lastfm_status()); -} - -const bool PythonQtWrapper_Playlist::has_item_at(Playlist* theWrappedObject, int index) const -{ - return ( theWrappedObject->has_item_at(index)); -} - -bool PythonQtWrapper_Playlist::have_incremented_playcount(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->have_incremented_playcount()); -} - -QVariant PythonQtWrapper_Playlist::headerData(Playlist* theWrappedObject, int section, Qt::Orientation orientation, int role) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_headerData(section, orientation, role)); -} - -int PythonQtWrapper_Playlist::id(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->id()); -} - -bool PythonQtWrapper_Playlist::is_dynamic(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->is_dynamic()); -} - -const PlaylistItemPtr* PythonQtWrapper_Playlist::item_at(Playlist* theWrappedObject, int index) const -{ - return &( theWrappedObject->item_at(index)); -} - -int PythonQtWrapper_Playlist::last_played_row(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->last_played_row()); -} - -QList PythonQtWrapper_Playlist::library_items_by_id(Playlist* theWrappedObject, int id) const -{ - return ( theWrappedObject->library_items_by_id(id)); -} - -QMimeData* PythonQtWrapper_Playlist::mimeData(Playlist* theWrappedObject, const QList& indexes) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_mimeData(indexes)); -} - -QStringList PythonQtWrapper_Playlist::mimeTypes(Playlist* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_mimeTypes()); -} - -int PythonQtWrapper_Playlist::next_row(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->next_row()); -} - -int PythonQtWrapper_Playlist::previous_row(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->previous_row()); -} - -QSortFilterProxyModel* PythonQtWrapper_Playlist::proxy(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->proxy()); -} - -bool PythonQtWrapper_Playlist::removeRows(Playlist* theWrappedObject, int row, int count, const QModelIndex& parent) -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_removeRows(row, count, parent)); -} - -int PythonQtWrapper_Playlist::rowCount(Playlist* theWrappedObject, const QModelIndex& arg__1) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_rowCount(arg__1)); -} - -qint64 PythonQtWrapper_Playlist::scrobble_point_nanosec(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->scrobble_point_nanosec()); -} - -PlaylistSequence* PythonQtWrapper_Playlist::sequence(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->sequence()); -} - -bool PythonQtWrapper_Playlist::setData(Playlist* theWrappedObject, const QModelIndex& index, const QVariant& value, int role) -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_setData(index, value, role)); -} - -void PythonQtWrapper_Playlist::set_column_align_center(Playlist* theWrappedObject, int column) -{ - ( theWrappedObject->set_column_align_center(column)); -} - -void PythonQtWrapper_Playlist::set_column_align_left(Playlist* theWrappedObject, int column) -{ - ( theWrappedObject->set_column_align_left(column)); -} - -void PythonQtWrapper_Playlist::set_column_align_right(Playlist* theWrappedObject, int column) -{ - ( theWrappedObject->set_column_align_right(column)); -} - -void PythonQtWrapper_Playlist::set_column_alignments(Playlist* theWrappedObject, const QMap& column_alignments) -{ - ( theWrappedObject->set_column_alignments(column_alignments)); -} - -bool PythonQtWrapper_Playlist::static_Playlist_set_column_value(Song& song, Playlist::Column column, const QVariant& value) -{ - return (Playlist::set_column_value(song, column, value)); -} - -void PythonQtWrapper_Playlist::set_have_incremented_playcount(Playlist* theWrappedObject) -{ - ( theWrappedObject->set_have_incremented_playcount()); -} - -void PythonQtWrapper_Playlist::set_lastfm_status(Playlist* theWrappedObject, Playlist::LastFMStatus status) -{ - ( theWrappedObject->set_lastfm_status(status)); -} - -void PythonQtWrapper_Playlist::set_sequence(Playlist* theWrappedObject, PlaylistSequence* v) -{ - ( theWrappedObject->set_sequence(v)); -} - -void PythonQtWrapper_Playlist::set_special_type(Playlist* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_special_type(v)); -} - -void PythonQtWrapper_Playlist::sort(Playlist* theWrappedObject, int column, Qt::SortOrder order) -{ - ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_sort(column, order)); -} - -QString PythonQtWrapper_Playlist::special_type(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->special_type()); -} - -bool PythonQtWrapper_Playlist::stop_after_current(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->stop_after_current()); -} - -Qt::DropActions PythonQtWrapper_Playlist::supportedDropActions(Playlist* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_Playlist*)theWrappedObject)->promoted_supportedDropActions()); -} - -QUndoStack* PythonQtWrapper_Playlist::undo_stack(Playlist* theWrappedObject) const -{ - return ( theWrappedObject->undo_stack()); -} - - - -void PythonQtShell_PlaylistBackend::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistBackend::childEvent(arg__1); -} -void PythonQtShell_PlaylistBackend::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistBackend::customEvent(arg__1); -} -bool PythonQtShell_PlaylistBackend::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistBackend::event(arg__1); -} -bool PythonQtShell_PlaylistBackend::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistBackend::eventFilter(arg__1, arg__2); -} -void PythonQtShell_PlaylistBackend::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistBackend::timerEvent(arg__1); -} -PlaylistBackend* PythonQtWrapper_PlaylistBackend::new_PlaylistBackend(QObject* parent) -{ -return new PythonQtShell_PlaylistBackend(parent); } - -int PythonQtWrapper_PlaylistBackend::CreatePlaylist(PlaylistBackend* theWrappedObject, const QString& name, const QString& special_type) -{ - return ( theWrappedObject->CreatePlaylist(name, special_type)); -} - -void PythonQtWrapper_PlaylistBackend::RemovePlaylist(PlaylistBackend* theWrappedObject, int id) -{ - ( theWrappedObject->RemovePlaylist(id)); -} - -void PythonQtWrapper_PlaylistBackend::RenamePlaylist(PlaylistBackend* theWrappedObject, int id, const QString& new_name) -{ - ( theWrappedObject->RenamePlaylist(id, new_name)); -} - -void PythonQtWrapper_PlaylistBackend::SavePlaylistAsync(PlaylistBackend* theWrappedObject, int playlist, const QList& items, int last_played, smart_playlists::GeneratorPtr dynamic) -{ - ( theWrappedObject->SavePlaylistAsync(playlist, items, last_played, dynamic)); -} - -void PythonQtWrapper_PlaylistBackend::SetLibrary(PlaylistBackend* theWrappedObject, LibraryBackend* library) -{ - ( theWrappedObject->SetLibrary(library)); -} - -void PythonQtWrapper_PlaylistBackend::SetPlaylistOrder(PlaylistBackend* theWrappedObject, const QList& ids) -{ - ( theWrappedObject->SetPlaylistOrder(ids)); -} - - - -void PythonQtShell_PlaylistContainer::actionEvent(QActionEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QActionEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::actionEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::changeEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::changeEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::childEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::closeEvent(QCloseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QCloseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::closeEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::contextMenuEvent(QContextMenuEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QContextMenuEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::contextMenuEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::customEvent(arg__1); -} -int PythonQtShell_PlaylistContainer::devType() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("devType", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::devType(); -} -void PythonQtShell_PlaylistContainer::dragEnterEvent(QDragEnterEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragEnterEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::dragEnterEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::dragLeaveEvent(QDragLeaveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::dragLeaveEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::dragMoveEvent(QDragMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDragMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::dragMoveEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::dropEvent(QDropEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QDropEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::dropEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::enterEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::enterEvent(arg__1); -} -bool PythonQtShell_PlaylistContainer::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::event(arg__1); -} -bool PythonQtShell_PlaylistContainer::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::eventFilter(arg__1, arg__2); -} -void PythonQtShell_PlaylistContainer::focusInEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::focusInEvent(arg__1); -} -bool PythonQtShell_PlaylistContainer::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&next}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("focusNextPrevChild", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::focusNextPrevChild(next); -} -void PythonQtShell_PlaylistContainer::focusOutEvent(QFocusEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QFocusEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::focusOutEvent(arg__1); -} -int PythonQtShell_PlaylistContainer::heightForWidth(int arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("heightForWidth", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::heightForWidth(arg__1); -} -void PythonQtShell_PlaylistContainer::hideEvent(QHideEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QHideEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::hideEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::inputMethodEvent(QInputMethodEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QInputMethodEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::inputMethodEvent(arg__1); -} -QVariant PythonQtShell_PlaylistContainer::inputMethodQuery(Qt::InputMethodQuery arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QVariant returnValue; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("inputMethodQuery", methodInfo, result); - } else { - returnValue = *((QVariant*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::inputMethodQuery(arg__1); -} -void PythonQtShell_PlaylistContainer::keyPressEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::keyPressEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::keyReleaseEvent(QKeyEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QKeyEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::keyReleaseEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::languageChange() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "languageChange"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::languageChange(); -} -void PythonQtShell_PlaylistContainer::leaveEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::leaveEvent(arg__1); -} -int PythonQtShell_PlaylistContainer::metric(QPaintDevice::PaintDeviceMetric arg__1) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - int returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metric", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::metric(arg__1); -} -QSize PythonQtShell_PlaylistContainer::minimumSizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getMinimumSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::minimumSizeHint(); -} -void PythonQtShell_PlaylistContainer::mouseDoubleClickEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::mouseDoubleClickEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::mouseMoveEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::mouseMoveEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::mousePressEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::mousePressEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::mouseReleaseEvent(QMouseEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMouseEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::mouseReleaseEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::moveEvent(QMoveEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QMoveEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::moveEvent(arg__1); -} -QPaintEngine* PythonQtShell_PlaylistContainer::paintEngine() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QPaintEngine*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QPaintEngine* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("paintEngine", methodInfo, result); - } else { - returnValue = *((QPaintEngine**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::paintEngine(); -} -void PythonQtShell_PlaylistContainer::paintEvent(QPaintEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QPaintEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::paintEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::resizeEvent(QResizeEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QResizeEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::resizeEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::showEvent(QShowEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QShowEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::showEvent(arg__1); -} -QSize PythonQtShell_PlaylistContainer::sizeHint() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QSize"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QSize returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("getSizeHint", methodInfo, result); - } else { - returnValue = *((QSize*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistContainer::sizeHint(); -} -void PythonQtShell_PlaylistContainer::tabletEvent(QTabletEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTabletEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::tabletEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::timerEvent(arg__1); -} -void PythonQtShell_PlaylistContainer::wheelEvent(QWheelEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QWheelEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistContainer::wheelEvent(arg__1); -} -PlaylistContainer* PythonQtWrapper_PlaylistContainer::new_PlaylistContainer(QWidget* parent) -{ -return new PythonQtShell_PlaylistContainer(parent); } - -void PythonQtWrapper_PlaylistContainer::Remove(PlaylistContainer* theWrappedObject, int id) -{ - ( ((PythonQtPublicPromoter_PlaylistContainer*)theWrappedObject)->promoted_Remove(id)); -} - -void PythonQtWrapper_PlaylistContainer::Rename(PlaylistContainer* theWrappedObject, int id, const QString& new_name) -{ - ( ((PythonQtPublicPromoter_PlaylistContainer*)theWrappedObject)->promoted_Rename(id, new_name)); -} - -void PythonQtWrapper_PlaylistContainer::SetActions(PlaylistContainer* theWrappedObject, QAction* new_playlist, QAction* save_playlist, QAction* load_playlist, QAction* next_playlist, QAction* previous_playlist) -{ - ( theWrappedObject->SetActions(new_playlist, save_playlist, load_playlist, next_playlist, previous_playlist)); -} - -void PythonQtWrapper_PlaylistContainer::SetManager(PlaylistContainer* theWrappedObject, PlaylistManager* manager) -{ - ( theWrappedObject->SetManager(manager)); -} - -void PythonQtWrapper_PlaylistContainer::TabChanged(PlaylistContainer* theWrappedObject, int id) -{ - ( ((PythonQtPublicPromoter_PlaylistContainer*)theWrappedObject)->promoted_TabChanged(id)); -} - -void PythonQtWrapper_PlaylistContainer::UndoRedoActionsChanged(PlaylistContainer* theWrappedObject, QAction* undo, QAction* redo) -{ - ( ((PythonQtPublicPromoter_PlaylistContainer*)theWrappedObject)->promoted_UndoRedoActionsChanged(undo, redo)); -} - -void PythonQtWrapper_PlaylistContainer::ViewSelectionModelChanged(PlaylistContainer* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlaylistContainer*)theWrappedObject)->promoted_ViewSelectionModelChanged()); -} - -void PythonQtWrapper_PlaylistContainer::resizeEvent(PlaylistContainer* theWrappedObject, QResizeEvent* arg__1) -{ - ( ((PythonQtPublicPromoter_PlaylistContainer*)theWrappedObject)->promoted_resizeEvent(arg__1)); -} - - - -PlaylistItemPtr* PythonQtWrapper_PlaylistItemPtr::new_PlaylistItemPtr() -{ -return new PythonQtShell_PlaylistItemPtr(); } - - - -void PythonQtShell_PlaylistManager::ChangePlaylistOrder(const QList& ids) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ChangePlaylistOrder"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ids}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::ChangePlaylistOrder(ids); -} -void PythonQtShell_PlaylistManager::ClearCurrent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ClearCurrent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::ClearCurrent(); -} -QList PythonQtShell_PlaylistManager::GetAllPlaylists() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllPlaylists"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllPlaylists", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::GetAllPlaylists(); -} -QString PythonQtShell_PlaylistManager::GetPlaylistName(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetPlaylistName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetPlaylistName", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::GetPlaylistName(index); -} -SpecialPlaylistType* PythonQtShell_PlaylistManager::GetPlaylistType(const QString& type) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetPlaylistType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"SpecialPlaylistType*" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - SpecialPlaylistType* returnValue = 0; - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetPlaylistType", methodInfo, result); - } else { - returnValue = *((SpecialPlaylistType**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::GetPlaylistType(type); -} -void PythonQtShell_PlaylistManager::InvalidateDeletedSongs() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "InvalidateDeletedSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::InvalidateDeletedSongs(); -} -void PythonQtShell_PlaylistManager::Load(const QString& filename) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Load"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&filename}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::Load(filename); -} -void PythonQtShell_PlaylistManager::New(const QString& name, const QList& songs, const QString& special_type) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "New"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&" , "const QList&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&name, (void*)&songs, (void*)&special_type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::New(name, songs, special_type); -} -void PythonQtShell_PlaylistManager::PlaySmartPlaylist(smart_playlists::GeneratorPtr generator, bool as_new, bool clear) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "PlaySmartPlaylist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "smart_playlists::GeneratorPtr" , "bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&generator, (void*)&as_new, (void*)&clear}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::PlaySmartPlaylist(generator, as_new, clear); -} -void PythonQtShell_PlaylistManager::RateCurrentSong(double rating) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RateCurrentSong"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "double"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rating}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::RateCurrentSong(rating); -} -void PythonQtShell_PlaylistManager::RateCurrentSong(int rating) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RateCurrentSong"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rating}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::RateCurrentSong(rating); -} -void PythonQtShell_PlaylistManager::RegisterSpecialPlaylistType(SpecialPlaylistType* type) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RegisterSpecialPlaylistType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "SpecialPlaylistType*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::RegisterSpecialPlaylistType(type); -} -void PythonQtShell_PlaylistManager::Remove(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Remove"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::Remove(id); -} -void PythonQtShell_PlaylistManager::RemoveDeletedSongs() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RemoveDeletedSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::RemoveDeletedSongs(); -} -void PythonQtShell_PlaylistManager::Rename(int id, const QString& new_name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Rename"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&id, (void*)&new_name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::Rename(id, new_name); -} -void PythonQtShell_PlaylistManager::Save(int id, const QString& filename) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Save"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&id, (void*)&filename}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::Save(id, filename); -} -void PythonQtShell_PlaylistManager::SelectionChanged(const QItemSelection& selection) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SelectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SelectionChanged(selection); -} -void PythonQtShell_PlaylistManager::SetActivePaused() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActivePaused"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SetActivePaused(); -} -void PythonQtShell_PlaylistManager::SetActivePlaying() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActivePlaying"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SetActivePlaying(); -} -void PythonQtShell_PlaylistManager::SetActivePlaylist(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActivePlaylist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SetActivePlaylist(id); -} -void PythonQtShell_PlaylistManager::SetActiveStopped() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActiveStopped"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SetActiveStopped(); -} -void PythonQtShell_PlaylistManager::SetActiveStreamMetadata(const QUrl& url, const Song& song) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActiveStreamMetadata"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QUrl&" , "const Song&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&url, (void*)&song}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SetActiveStreamMetadata(url, song); -} -void PythonQtShell_PlaylistManager::SetActiveToCurrent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActiveToCurrent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SetActiveToCurrent(); -} -void PythonQtShell_PlaylistManager::SetCurrentPlaylist(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetCurrentPlaylist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SetCurrentPlaylist(id); -} -void PythonQtShell_PlaylistManager::ShuffleCurrent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ShuffleCurrent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::ShuffleCurrent(); -} -void PythonQtShell_PlaylistManager::SongChangeRequestProcessed(const QUrl& url, bool valid) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SongChangeRequestProcessed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QUrl&" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&url, (void*)&valid}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::SongChangeRequestProcessed(url, valid); -} -void PythonQtShell_PlaylistManager::UnregisterSpecialPlaylistType(SpecialPlaylistType* type) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UnregisterSpecialPlaylistType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "SpecialPlaylistType*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::UnregisterSpecialPlaylistType(type); -} -Playlist* PythonQtShell_PlaylistManager::active() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "active"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Playlist* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("active", methodInfo, result); - } else { - returnValue = *((Playlist**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::active(); -} -int PythonQtShell_PlaylistManager::active_id() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "active_id"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("active_id", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::active_id(); -} -QItemSelection PythonQtShell_PlaylistManager::active_selection() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "active_selection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelection"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QItemSelection returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("active_selection", methodInfo, result); - } else { - returnValue = *((QItemSelection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::active_selection(); -} -void PythonQtShell_PlaylistManager::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::childEvent(arg__1); -} -Playlist* PythonQtShell_PlaylistManager::current() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "current"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Playlist* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("current", methodInfo, result); - } else { - returnValue = *((Playlist**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::current(); -} -int PythonQtShell_PlaylistManager::current_id() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "current_id"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("current_id", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::current_id(); -} -QItemSelection PythonQtShell_PlaylistManager::current_selection() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "current_selection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelection"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QItemSelection returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("current_selection", methodInfo, result); - } else { - returnValue = *((QItemSelection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::current_selection(); -} -void PythonQtShell_PlaylistManager::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::customEvent(arg__1); -} -bool PythonQtShell_PlaylistManager::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::event(arg__1); -} -bool PythonQtShell_PlaylistManager::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::eventFilter(arg__1, arg__2); -} -LibraryBackend* PythonQtShell_PlaylistManager::library_backend() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "library_backend"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"LibraryBackend*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - LibraryBackend* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("library_backend", methodInfo, result); - } else { - returnValue = *((LibraryBackend**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::library_backend(); -} -PlaylistParser* PythonQtShell_PlaylistManager::parser() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parser"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistParser*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistParser* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("parser", methodInfo, result); - } else { - returnValue = *((PlaylistParser**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::parser(); -} -Playlist* PythonQtShell_PlaylistManager::playlist(int id) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Playlist*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Playlist* returnValue = 0; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlist", methodInfo, result); - } else { - returnValue = *((Playlist**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::playlist(id); -} -PlaylistBackend* PythonQtShell_PlaylistManager::playlist_backend() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlist_backend"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistBackend*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistBackend* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlist_backend", methodInfo, result); - } else { - returnValue = *((PlaylistBackend**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::playlist_backend(); -} -PlaylistContainer* PythonQtShell_PlaylistManager::playlist_container() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlist_container"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistContainer*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistContainer* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlist_container", methodInfo, result); - } else { - returnValue = *((PlaylistContainer**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::playlist_container(); -} -QItemSelection PythonQtShell_PlaylistManager::selection(int id) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelection" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QItemSelection returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selection", methodInfo, result); - } else { - returnValue = *((QItemSelection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::selection(id); -} -PlaylistSequence* PythonQtShell_PlaylistManager::sequence() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sequence"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistSequence*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistSequence* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sequence", methodInfo, result); - } else { - returnValue = *((PlaylistSequence**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::sequence(); -} -TaskManager* PythonQtShell_PlaylistManager::task_manager() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "task_manager"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"TaskManager*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - TaskManager* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("task_manager", methodInfo, result); - } else { - returnValue = *((TaskManager**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManager::task_manager(); -} -void PythonQtShell_PlaylistManager::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManager::timerEvent(arg__1); -} -PlaylistManager* PythonQtWrapper_PlaylistManager::new_PlaylistManager(TaskManager* task_manager, QObject* parent) -{ -return new PythonQtShell_PlaylistManager(task_manager, parent); } - -QList PythonQtWrapper_PlaylistManager::GetAllPlaylists(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_GetAllPlaylists()); -} - -QString PythonQtWrapper_PlaylistManager::static_PlaylistManager_GetNameForNewPlaylist(const QList& songs) -{ - return (PlaylistManager::GetNameForNewPlaylist(songs)); -} - -QString PythonQtWrapper_PlaylistManager::GetPlaylistName(PlaylistManager* theWrappedObject, int index) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_GetPlaylistName(index)); -} - -SpecialPlaylistType* PythonQtWrapper_PlaylistManager::GetPlaylistType(PlaylistManager* theWrappedObject, const QString& type) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_GetPlaylistType(type)); -} - -void PythonQtWrapper_PlaylistManager::Init(PlaylistManager* theWrappedObject, LibraryBackend* library_backend, PlaylistBackend* playlist_backend, PlaylistSequence* sequence, PlaylistContainer* playlist_container) -{ - ( theWrappedObject->Init(library_backend, playlist_backend, sequence, playlist_container)); -} - -void PythonQtWrapper_PlaylistManager::InvalidateDeletedSongs(PlaylistManager* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_InvalidateDeletedSongs()); -} - -void PythonQtWrapper_PlaylistManager::RegisterSpecialPlaylistType(PlaylistManager* theWrappedObject, SpecialPlaylistType* type) -{ - ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_RegisterSpecialPlaylistType(type)); -} - -void PythonQtWrapper_PlaylistManager::RemoveDeletedSongs(PlaylistManager* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_RemoveDeletedSongs()); -} - -void PythonQtWrapper_PlaylistManager::UnregisterSpecialPlaylistType(PlaylistManager* theWrappedObject, SpecialPlaylistType* type) -{ - ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_UnregisterSpecialPlaylistType(type)); -} - -Playlist* PythonQtWrapper_PlaylistManager::active(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_active()); -} - -int PythonQtWrapper_PlaylistManager::active_id(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_active_id()); -} - -QItemSelection PythonQtWrapper_PlaylistManager::active_selection(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_active_selection()); -} - -Playlist* PythonQtWrapper_PlaylistManager::current(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_current()); -} - -int PythonQtWrapper_PlaylistManager::current_id(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_current_id()); -} - -QItemSelection PythonQtWrapper_PlaylistManager::current_selection(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_current_selection()); -} - -LibraryBackend* PythonQtWrapper_PlaylistManager::library_backend(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_library_backend()); -} - -PlaylistParser* PythonQtWrapper_PlaylistManager::parser(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_parser()); -} - -Playlist* PythonQtWrapper_PlaylistManager::playlist(PlaylistManager* theWrappedObject, int id) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_playlist(id)); -} - -PlaylistBackend* PythonQtWrapper_PlaylistManager::playlist_backend(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_playlist_backend()); -} - -PlaylistContainer* PythonQtWrapper_PlaylistManager::playlist_container(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_playlist_container()); -} - -QItemSelection PythonQtWrapper_PlaylistManager::selection(PlaylistManager* theWrappedObject, int id) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_selection(id)); -} - -PlaylistSequence* PythonQtWrapper_PlaylistManager::sequence(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_sequence()); -} - -TaskManager* PythonQtWrapper_PlaylistManager::task_manager(PlaylistManager* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_PlaylistManager*)theWrappedObject)->promoted_task_manager()); -} - - - -void PythonQtShell_PlaylistManagerInterface::ChangePlaylistOrder(const QList& ids) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ChangePlaylistOrder"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&ids}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::ClearCurrent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ClearCurrent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -QList PythonQtShell_PlaylistManagerInterface::GetAllPlaylists() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetAllPlaylists"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QList returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetAllPlaylists", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -QString PythonQtShell_PlaylistManagerInterface::GetPlaylistName(int index) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetPlaylistName"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&index}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetPlaylistName", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -SpecialPlaylistType* PythonQtShell_PlaylistManagerInterface::GetPlaylistType(const QString& type) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "GetPlaylistType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"SpecialPlaylistType*" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - SpecialPlaylistType* returnValue = 0; - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("GetPlaylistType", methodInfo, result); - } else { - returnValue = *((SpecialPlaylistType**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_PlaylistManagerInterface::InvalidateDeletedSongs() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "InvalidateDeletedSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::Load(const QString& filename) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Load"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&filename}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::New(const QString& name, const QList& songs, const QString& special_type) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "New"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&" , "const QList&" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&name, (void*)&songs, (void*)&special_type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::PlaySmartPlaylist(smart_playlists::GeneratorPtr generator, bool as_new, bool clear) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "PlaySmartPlaylist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "smart_playlists::GeneratorPtr" , "bool" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); - void* args[4] = {NULL, (void*)&generator, (void*)&as_new, (void*)&clear}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::RateCurrentSong(double rating) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RateCurrentSong"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "double"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rating}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::RateCurrentSong(int rating) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RateCurrentSong"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&rating}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::RegisterSpecialPlaylistType(SpecialPlaylistType* type) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RegisterSpecialPlaylistType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "SpecialPlaylistType*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::Remove(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Remove"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::RemoveDeletedSongs() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "RemoveDeletedSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::Rename(int id, const QString& new_name) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Rename"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&id, (void*)&new_name}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::Save(int id, const QString& filename) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Save"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int" , "const QString&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&id, (void*)&filename}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SelectionChanged(const QItemSelection& selection) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SelectionChanged"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QItemSelection&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&selection}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SetActivePaused() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActivePaused"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SetActivePlaying() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActivePlaying"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SetActivePlaylist(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActivePlaylist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SetActiveStopped() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActiveStopped"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SetActiveStreamMetadata(const QUrl& url, const Song& song) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActiveStreamMetadata"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QUrl&" , "const Song&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&url, (void*)&song}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SetActiveToCurrent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetActiveToCurrent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SetCurrentPlaylist(int id) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SetCurrentPlaylist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::ShuffleCurrent() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "ShuffleCurrent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::SongChangeRequestProcessed(const QUrl& url, bool valid) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "SongChangeRequestProcessed"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QUrl&" , "bool"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&url, (void*)&valid}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -void PythonQtShell_PlaylistManagerInterface::UnregisterSpecialPlaylistType(SpecialPlaylistType* type) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "UnregisterSpecialPlaylistType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "SpecialPlaylistType*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&type}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - -} -Playlist* PythonQtShell_PlaylistManagerInterface::active() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "active"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Playlist* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("active", methodInfo, result); - } else { - returnValue = *((Playlist**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -int PythonQtShell_PlaylistManagerInterface::active_id() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "active_id"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("active_id", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QItemSelection PythonQtShell_PlaylistManagerInterface::active_selection() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "active_selection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelection"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QItemSelection returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("active_selection", methodInfo, result); - } else { - returnValue = *((QItemSelection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemSelection(); -} -void PythonQtShell_PlaylistManagerInterface::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManagerInterface::childEvent(arg__1); -} -Playlist* PythonQtShell_PlaylistManagerInterface::current() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "current"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - Playlist* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("current", methodInfo, result); - } else { - returnValue = *((Playlist**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -int PythonQtShell_PlaylistManagerInterface::current_id() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "current_id"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - int returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("current_id", methodInfo, result); - } else { - returnValue = *((int*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return int(); -} -QItemSelection PythonQtShell_PlaylistManagerInterface::current_selection() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "current_selection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelection"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QItemSelection returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("current_selection", methodInfo, result); - } else { - returnValue = *((QItemSelection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemSelection(); -} -void PythonQtShell_PlaylistManagerInterface::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManagerInterface::customEvent(arg__1); -} -bool PythonQtShell_PlaylistManagerInterface::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManagerInterface::event(arg__1); -} -bool PythonQtShell_PlaylistManagerInterface::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistManagerInterface::eventFilter(arg__1, arg__2); -} -LibraryBackend* PythonQtShell_PlaylistManagerInterface::library_backend() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "library_backend"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"LibraryBackend*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - LibraryBackend* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("library_backend", methodInfo, result); - } else { - returnValue = *((LibraryBackend**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -PlaylistParser* PythonQtShell_PlaylistManagerInterface::parser() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "parser"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistParser*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistParser* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("parser", methodInfo, result); - } else { - returnValue = *((PlaylistParser**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -Playlist* PythonQtShell_PlaylistManagerInterface::playlist(int id) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlist"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"Playlist*" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - Playlist* returnValue = 0; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlist", methodInfo, result); - } else { - returnValue = *((Playlist**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -PlaylistBackend* PythonQtShell_PlaylistManagerInterface::playlist_backend() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlist_backend"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistBackend*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistBackend* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlist_backend", methodInfo, result); - } else { - returnValue = *((PlaylistBackend**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -PlaylistContainer* PythonQtShell_PlaylistManagerInterface::playlist_container() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "playlist_container"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistContainer*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistContainer* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("playlist_container", methodInfo, result); - } else { - returnValue = *((PlaylistContainer**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -QItemSelection PythonQtShell_PlaylistManagerInterface::selection(int id) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "selection"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QItemSelection" , "int"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QItemSelection returnValue; - void* args[2] = {NULL, (void*)&id}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("selection", methodInfo, result); - } else { - returnValue = *((QItemSelection*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QItemSelection(); -} -PlaylistSequence* PythonQtShell_PlaylistManagerInterface::sequence() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sequence"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"PlaylistSequence*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - PlaylistSequence* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("sequence", methodInfo, result); - } else { - returnValue = *((PlaylistSequence**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -TaskManager* PythonQtShell_PlaylistManagerInterface::task_manager() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "task_manager"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"TaskManager*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - TaskManager* returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("task_manager", methodInfo, result); - } else { - returnValue = *((TaskManager**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return 0; -} -void PythonQtShell_PlaylistManagerInterface::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistManagerInterface::timerEvent(arg__1); -} -PlaylistManagerInterface* PythonQtWrapper_PlaylistManagerInterface::new_PlaylistManagerInterface(QObject* parent) -{ -return new PythonQtShell_PlaylistManagerInterface(parent); } - -void PythonQtWrapper_PlaylistManagerInterface::ActiveChanged(PlaylistManagerInterface* theWrappedObject, Playlist* new_playlist) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_ActiveChanged(new_playlist)); -} - -void PythonQtWrapper_PlaylistManagerInterface::CurrentChanged(PlaylistManagerInterface* theWrappedObject, Playlist* new_playlist) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_CurrentChanged(new_playlist)); -} - -void PythonQtWrapper_PlaylistManagerInterface::CurrentSongChanged(PlaylistManagerInterface* theWrappedObject, const Song& song) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_CurrentSongChanged(song)); -} - -void PythonQtWrapper_PlaylistManagerInterface::EditingFinished(PlaylistManagerInterface* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_EditingFinished(index)); -} - -void PythonQtWrapper_PlaylistManagerInterface::Error(PlaylistManagerInterface* theWrappedObject, const QString& message) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_Error(message)); -} - -void PythonQtWrapper_PlaylistManagerInterface::PlayRequested(PlaylistManagerInterface* theWrappedObject, const QModelIndex& index) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_PlayRequested(index)); -} - -void PythonQtWrapper_PlaylistManagerInterface::PlaylistAdded(PlaylistManagerInterface* theWrappedObject, int id, const QString& name) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_PlaylistAdded(id, name)); -} - -void PythonQtWrapper_PlaylistManagerInterface::PlaylistChanged(PlaylistManagerInterface* theWrappedObject, Playlist* playlist) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_PlaylistChanged(playlist)); -} - -void PythonQtWrapper_PlaylistManagerInterface::PlaylistManagerInitialized(PlaylistManagerInterface* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_PlaylistManagerInitialized()); -} - -void PythonQtWrapper_PlaylistManagerInterface::PlaylistRemoved(PlaylistManagerInterface* theWrappedObject, int id) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_PlaylistRemoved(id)); -} - -void PythonQtWrapper_PlaylistManagerInterface::PlaylistRenamed(PlaylistManagerInterface* theWrappedObject, int id, const QString& new_name) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_PlaylistRenamed(id, new_name)); -} - -void PythonQtWrapper_PlaylistManagerInterface::SummaryTextChanged(PlaylistManagerInterface* theWrappedObject, const QString& summary) -{ - ( ((PythonQtPublicPromoter_PlaylistManagerInterface*)theWrappedObject)->promoted_SummaryTextChanged(summary)); -} - - - -void PythonQtShell_PlaylistParser::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistParser::childEvent(arg__1); -} -void PythonQtShell_PlaylistParser::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistParser::customEvent(arg__1); -} -bool PythonQtShell_PlaylistParser::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistParser::event(arg__1); -} -bool PythonQtShell_PlaylistParser::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return PlaylistParser::eventFilter(arg__1, arg__2); -} -void PythonQtShell_PlaylistParser::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - PlaylistParser::timerEvent(arg__1); -} -PlaylistParser* PythonQtWrapper_PlaylistParser::new_PlaylistParser(LibraryBackendInterface* library, QObject* parent) -{ -return new PythonQtShell_PlaylistParser(library, parent); } - -QList PythonQtWrapper_PlaylistParser::LoadFromDevice(PlaylistParser* theWrappedObject, QIODevice* device, const QString& path_hint, const QDir& dir_hint) const -{ - return ( theWrappedObject->LoadFromDevice(device, path_hint, dir_hint)); -} - -QList PythonQtWrapper_PlaylistParser::LoadFromFile(PlaylistParser* theWrappedObject, const QString& filename) const -{ - return ( theWrappedObject->LoadFromFile(filename)); -} - -void PythonQtWrapper_PlaylistParser::Save(PlaylistParser* theWrappedObject, const QList& songs, const QString& filename) const -{ - ( theWrappedObject->Save(songs, filename)); -} - -QString PythonQtWrapper_PlaylistParser::default_extension(PlaylistParser* theWrappedObject) const -{ - return ( theWrappedObject->default_extension()); -} - -QString PythonQtWrapper_PlaylistParser::default_filter(PlaylistParser* theWrappedObject) const -{ - return ( theWrappedObject->default_filter()); -} - -QStringList PythonQtWrapper_PlaylistParser::file_extensions(PlaylistParser* theWrappedObject) const -{ - return ( theWrappedObject->file_extensions()); -} - -QString PythonQtWrapper_PlaylistParser::filters(PlaylistParser* theWrappedObject) const -{ - return ( theWrappedObject->filters()); -} - - - -void PythonQtWrapper_PlaylistSequence::RepeatModeChanged(PlaylistSequence* theWrappedObject, PlaylistSequence::RepeatMode mode) -{ - ( ((PythonQtPublicPromoter_PlaylistSequence*)theWrappedObject)->promoted_RepeatModeChanged(mode)); -} - -void PythonQtWrapper_PlaylistSequence::ShuffleModeChanged(PlaylistSequence* theWrappedObject, PlaylistSequence::ShuffleMode mode) -{ - ( ((PythonQtPublicPromoter_PlaylistSequence*)theWrappedObject)->promoted_ShuffleModeChanged(mode)); -} - -QMenu* PythonQtWrapper_PlaylistSequence::repeat_menu(PlaylistSequence* theWrappedObject) const -{ - return ( theWrappedObject->repeat_menu()); -} - -PlaylistSequence::RepeatMode PythonQtWrapper_PlaylistSequence::repeat_mode(PlaylistSequence* theWrappedObject) const -{ - return ( theWrappedObject->repeat_mode()); -} - -QMenu* PythonQtWrapper_PlaylistSequence::shuffle_menu(PlaylistSequence* theWrappedObject) const -{ - return ( theWrappedObject->shuffle_menu()); -} - -PlaylistSequence::ShuffleMode PythonQtWrapper_PlaylistSequence::shuffle_mode(PlaylistSequence* theWrappedObject) const -{ - return ( theWrappedObject->shuffle_mode()); -} - - - -QueryOptions* PythonQtWrapper_QueryOptions::new_QueryOptions() -{ -return new QueryOptions(); } - -bool PythonQtWrapper_QueryOptions::Matches(QueryOptions* theWrappedObject, const Song& song) const -{ - return ( theWrappedObject->Matches(song)); -} - -QString PythonQtWrapper_QueryOptions::filter(QueryOptions* theWrappedObject) const -{ - return ( theWrappedObject->filter()); -} - -int PythonQtWrapper_QueryOptions::max_age(QueryOptions* theWrappedObject) const -{ - return ( theWrappedObject->max_age()); -} - -QueryOptions::QueryMode PythonQtWrapper_QueryOptions::query_mode(QueryOptions* theWrappedObject) const -{ - return ( theWrappedObject->query_mode()); -} - -void PythonQtWrapper_QueryOptions::set_filter(QueryOptions* theWrappedObject, const QString& filter) -{ - ( theWrappedObject->set_filter(filter)); -} - -void PythonQtWrapper_QueryOptions::set_max_age(QueryOptions* theWrappedObject, int max_age) -{ - ( theWrappedObject->set_max_age(max_age)); -} - -void PythonQtWrapper_QueryOptions::set_query_mode(QueryOptions* theWrappedObject, QueryOptions::QueryMode query_mode) -{ - ( theWrappedObject->set_query_mode(query_mode)); -} - - - -Song* PythonQtWrapper_Song::new_Song() -{ -return new PythonQtShell_Song(); } - -Song* PythonQtWrapper_Song::new_Song(const Song& other) -{ -return new PythonQtShell_Song(other); } - -QString PythonQtWrapper_Song::static_Song_Decode(const QString& tag, const QTextCodec* codec) -{ - return (Song::Decode(tag, codec)); -} - -bool PythonQtWrapper_Song::HasProperMediaFile(Song* theWrappedObject) const -{ - return ( theWrappedObject->HasProperMediaFile()); -} - -void PythonQtWrapper_Song::Init(Song* theWrappedObject, const QString& title, const QString& artist, const QString& album, qint64 beginning, qint64 end) -{ - ( theWrappedObject->Init(title, artist, album, beginning, end)); -} - -void PythonQtWrapper_Song::Init(Song* theWrappedObject, const QString& title, const QString& artist, const QString& album, qint64 length_nanosec) -{ - ( theWrappedObject->Init(title, artist, album, length_nanosec)); -} - -void PythonQtWrapper_Song::InitFromFile(Song* theWrappedObject, const QString& filename, int directory_id) -{ - ( theWrappedObject->InitFromFile(filename, directory_id)); -} - -void PythonQtWrapper_Song::InitFromFilePartial(Song* theWrappedObject, const QString& filename) -{ - ( theWrappedObject->InitFromFilePartial(filename)); -} - -bool PythonQtWrapper_Song::IsEditable(Song* theWrappedObject) const -{ - return ( theWrappedObject->IsEditable()); -} - -bool PythonQtWrapper_Song::IsMetadataEqual(Song* theWrappedObject, const Song& other) const -{ - return ( theWrappedObject->IsMetadataEqual(other)); -} - -bool PythonQtWrapper_Song::IsOnSameAlbum(Song* theWrappedObject, const Song& other) const -{ - return ( theWrappedObject->IsOnSameAlbum(other)); -} - -QString PythonQtWrapper_Song::static_Song_JoinSpec(const QString& table) -{ - return (Song::JoinSpec(table)); -} - -QImage PythonQtWrapper_Song::static_Song_LoadEmbeddedArt(const QString& filename) -{ - return (Song::LoadEmbeddedArt(filename)); -} - -QString PythonQtWrapper_Song::PrettyLength(Song* theWrappedObject) const -{ - return ( theWrappedObject->PrettyLength()); -} - -QString PythonQtWrapper_Song::PrettyTitle(Song* theWrappedObject) const -{ - return ( theWrappedObject->PrettyTitle()); -} - -QString PythonQtWrapper_Song::PrettyTitleWithArtist(Song* theWrappedObject) const -{ - return ( theWrappedObject->PrettyTitleWithArtist()); -} - -QString PythonQtWrapper_Song::PrettyYear(Song* theWrappedObject) const -{ - return ( theWrappedObject->PrettyYear()); -} - -bool PythonQtWrapper_Song::Save(Song* theWrappedObject) const -{ - return ( theWrappedObject->Save()); -} - -QString PythonQtWrapper_Song::TextForFiletype(Song* theWrappedObject) const -{ - return ( theWrappedObject->TextForFiletype()); -} - -QString PythonQtWrapper_Song::static_Song_TextForFiletype(Song::FileType type) -{ - return (Song::TextForFiletype(type)); -} - -QString PythonQtWrapper_Song::TitleWithCompilationArtist(Song* theWrappedObject) const -{ - return ( theWrappedObject->TitleWithCompilationArtist()); -} - -const QString* PythonQtWrapper_Song::album(Song* theWrappedObject) const -{ - return &( theWrappedObject->album()); -} - -const QString* PythonQtWrapper_Song::albumartist(Song* theWrappedObject) const -{ - return &( theWrappedObject->albumartist()); -} - -const QString* PythonQtWrapper_Song::art_automatic(Song* theWrappedObject) const -{ - return &( theWrappedObject->art_automatic()); -} - -const QString* PythonQtWrapper_Song::art_manual(Song* theWrappedObject) const -{ - return &( theWrappedObject->art_manual()); -} - -const QString* PythonQtWrapper_Song::artist(Song* theWrappedObject) const -{ - return &( theWrappedObject->artist()); -} - -const QString* PythonQtWrapper_Song::basefilename(Song* theWrappedObject) const -{ - return &( theWrappedObject->basefilename()); -} - -qint64 PythonQtWrapper_Song::beginning_nanosec(Song* theWrappedObject) const -{ - return ( theWrappedObject->beginning_nanosec()); -} - -int PythonQtWrapper_Song::bitrate(Song* theWrappedObject) const -{ - return ( theWrappedObject->bitrate()); -} - -float PythonQtWrapper_Song::bpm(Song* theWrappedObject) const -{ - return ( theWrappedObject->bpm()); -} - -const QString* PythonQtWrapper_Song::comment(Song* theWrappedObject) const -{ - return &( theWrappedObject->comment()); -} - -const QString* PythonQtWrapper_Song::composer(Song* theWrappedObject) const -{ - return &( theWrappedObject->composer()); -} - -uint PythonQtWrapper_Song::ctime(Song* theWrappedObject) const -{ - return ( theWrappedObject->ctime()); -} - -const QString* PythonQtWrapper_Song::cue_path(Song* theWrappedObject) const -{ - return &( theWrappedObject->cue_path()); -} - -int PythonQtWrapper_Song::directory_id(Song* theWrappedObject) const -{ - return ( theWrappedObject->directory_id()); -} - -int PythonQtWrapper_Song::disc(Song* theWrappedObject) const -{ - return ( theWrappedObject->disc()); -} - -qint64 PythonQtWrapper_Song::end_nanosec(Song* theWrappedObject) const -{ - return ( theWrappedObject->end_nanosec()); -} - -int PythonQtWrapper_Song::filesize(Song* theWrappedObject) const -{ - return ( theWrappedObject->filesize()); -} - -Song::FileType PythonQtWrapper_Song::filetype(Song* theWrappedObject) const -{ - return ( theWrappedObject->filetype()); -} - -const QString* PythonQtWrapper_Song::genre(Song* theWrappedObject) const -{ - return &( theWrappedObject->genre()); -} - -bool PythonQtWrapper_Song::has_cue(Song* theWrappedObject) const -{ - return ( theWrappedObject->has_cue()); -} - -bool PythonQtWrapper_Song::has_embedded_cover(Song* theWrappedObject) const -{ - return ( theWrappedObject->has_embedded_cover()); -} - -bool PythonQtWrapper_Song::has_manually_unset_cover(Song* theWrappedObject) const -{ - return ( theWrappedObject->has_manually_unset_cover()); -} - -int PythonQtWrapper_Song::id(Song* theWrappedObject) const -{ - return ( theWrappedObject->id()); -} - -const QImage* PythonQtWrapper_Song::image(Song* theWrappedObject) const -{ - return &( theWrappedObject->image()); -} - -bool PythonQtWrapper_Song::is_cdda(Song* theWrappedObject) const -{ - return ( theWrappedObject->is_cdda()); -} - -bool PythonQtWrapper_Song::is_compilation(Song* theWrappedObject) const -{ - return ( theWrappedObject->is_compilation()); -} - -bool PythonQtWrapper_Song::is_stream(Song* theWrappedObject) const -{ - return ( theWrappedObject->is_stream()); -} - -bool PythonQtWrapper_Song::is_unavailable(Song* theWrappedObject) const -{ - return ( theWrappedObject->is_unavailable()); -} - -bool PythonQtWrapper_Song::is_valid(Song* theWrappedObject) const -{ - return ( theWrappedObject->is_valid()); -} - -int PythonQtWrapper_Song::lastplayed(Song* theWrappedObject) const -{ - return ( theWrappedObject->lastplayed()); -} - -qint64 PythonQtWrapper_Song::length_nanosec(Song* theWrappedObject) const -{ - return ( theWrappedObject->length_nanosec()); -} - -void PythonQtWrapper_Song::manually_unset_cover(Song* theWrappedObject) -{ - ( theWrappedObject->manually_unset_cover()); -} - -uint PythonQtWrapper_Song::mtime(Song* theWrappedObject) const -{ - return ( theWrappedObject->mtime()); -} - -bool PythonQtWrapper_Song::__eq__(Song* theWrappedObject, const Song& other) const -{ - return ( (*theWrappedObject)== other); -} - -int PythonQtWrapper_Song::playcount(Song* theWrappedObject) const -{ - return ( theWrappedObject->playcount()); -} - -float PythonQtWrapper_Song::rating(Song* theWrappedObject) const -{ - return ( theWrappedObject->rating()); -} - -int PythonQtWrapper_Song::samplerate(Song* theWrappedObject) const -{ - return ( theWrappedObject->samplerate()); -} - -int PythonQtWrapper_Song::score(Song* theWrappedObject) const -{ - return ( theWrappedObject->score()); -} - -void PythonQtWrapper_Song::set_album(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_album(v)); -} - -void PythonQtWrapper_Song::set_albumartist(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_albumartist(v)); -} - -void PythonQtWrapper_Song::set_art_automatic(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_art_automatic(v)); -} - -void PythonQtWrapper_Song::set_art_manual(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_art_manual(v)); -} - -void PythonQtWrapper_Song::set_artist(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_artist(v)); -} - -void PythonQtWrapper_Song::set_basefilename(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_basefilename(v)); -} - -void PythonQtWrapper_Song::set_beginning_nanosec(Song* theWrappedObject, qint64 v) -{ - ( theWrappedObject->set_beginning_nanosec(v)); -} - -void PythonQtWrapper_Song::set_bitrate(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_bitrate(v)); -} - -void PythonQtWrapper_Song::set_bpm(Song* theWrappedObject, float v) -{ - ( theWrappedObject->set_bpm(v)); -} - -void PythonQtWrapper_Song::set_comment(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_comment(v)); -} - -void PythonQtWrapper_Song::set_compilation(Song* theWrappedObject, bool v) -{ - ( theWrappedObject->set_compilation(v)); -} - -void PythonQtWrapper_Song::set_composer(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_composer(v)); -} - -void PythonQtWrapper_Song::set_ctime(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_ctime(v)); -} - -void PythonQtWrapper_Song::set_cue_path(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_cue_path(v)); -} - -void PythonQtWrapper_Song::set_directory_id(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_directory_id(v)); -} - -void PythonQtWrapper_Song::set_disc(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_disc(v)); -} - -void PythonQtWrapper_Song::set_embedded_cover(Song* theWrappedObject) -{ - ( theWrappedObject->set_embedded_cover()); -} - -void PythonQtWrapper_Song::set_end_nanosec(Song* theWrappedObject, qint64 v) -{ - ( theWrappedObject->set_end_nanosec(v)); -} - -void PythonQtWrapper_Song::set_filesize(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_filesize(v)); -} - -void PythonQtWrapper_Song::set_filetype(Song* theWrappedObject, Song::FileType v) -{ - ( theWrappedObject->set_filetype(v)); -} - -void PythonQtWrapper_Song::set_forced_compilation_off(Song* theWrappedObject, bool v) -{ - ( theWrappedObject->set_forced_compilation_off(v)); -} - -void PythonQtWrapper_Song::set_forced_compilation_on(Song* theWrappedObject, bool v) -{ - ( theWrappedObject->set_forced_compilation_on(v)); -} - -void PythonQtWrapper_Song::set_genre(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_genre(v)); -} - -void PythonQtWrapper_Song::set_genre_id3(Song* theWrappedObject, int id) -{ - ( theWrappedObject->set_genre_id3(id)); -} - -void PythonQtWrapper_Song::set_id(Song* theWrappedObject, int id) -{ - ( theWrappedObject->set_id(id)); -} - -void PythonQtWrapper_Song::set_image(Song* theWrappedObject, const QImage& i) -{ - ( theWrappedObject->set_image(i)); -} - -void PythonQtWrapper_Song::set_lastplayed(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_lastplayed(v)); -} - -void PythonQtWrapper_Song::set_length_nanosec(Song* theWrappedObject, qint64 v) -{ - ( theWrappedObject->set_length_nanosec(v)); -} - -void PythonQtWrapper_Song::set_mtime(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_mtime(v)); -} - -void PythonQtWrapper_Song::set_playcount(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_playcount(v)); -} - -void PythonQtWrapper_Song::set_rating(Song* theWrappedObject, float v) -{ - ( theWrappedObject->set_rating(v)); -} - -void PythonQtWrapper_Song::set_sampler(Song* theWrappedObject, bool v) -{ - ( theWrappedObject->set_sampler(v)); -} - -void PythonQtWrapper_Song::set_samplerate(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_samplerate(v)); -} - -void PythonQtWrapper_Song::set_score(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_score(v)); -} - -void PythonQtWrapper_Song::set_skipcount(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_skipcount(v)); -} - -void PythonQtWrapper_Song::set_title(Song* theWrappedObject, const QString& v) -{ - ( theWrappedObject->set_title(v)); -} - -void PythonQtWrapper_Song::set_track(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_track(v)); -} - -void PythonQtWrapper_Song::set_unavailable(Song* theWrappedObject, bool v) -{ - ( theWrappedObject->set_unavailable(v)); -} - -void PythonQtWrapper_Song::set_url(Song* theWrappedObject, const QUrl& v) -{ - ( theWrappedObject->set_url(v)); -} - -void PythonQtWrapper_Song::set_valid(Song* theWrappedObject, bool v) -{ - ( theWrappedObject->set_valid(v)); -} - -void PythonQtWrapper_Song::set_year(Song* theWrappedObject, int v) -{ - ( theWrappedObject->set_year(v)); -} - -int PythonQtWrapper_Song::skipcount(Song* theWrappedObject) const -{ - return ( theWrappedObject->skipcount()); -} - -const QString* PythonQtWrapper_Song::title(Song* theWrappedObject) const -{ - return &( theWrappedObject->title()); -} - -int PythonQtWrapper_Song::track(Song* theWrappedObject) const -{ - return ( theWrappedObject->track()); -} - -const QUrl* PythonQtWrapper_Song::url(Song* theWrappedObject) const -{ - return &( theWrappedObject->url()); -} - -int PythonQtWrapper_Song::year(Song* theWrappedObject) const -{ - return ( theWrappedObject->year()); -} - - - -QList PythonQtShell_SongInsertVetoListener::AboutToInsertSongs(const QList& old_songs, const QList& new_songs) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "AboutToInsertSongs"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QList" , "const QList&" , "const QList&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - QList returnValue; - void* args[3] = {NULL, (void*)&old_songs, (void*)&new_songs}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("AboutToInsertSongs", methodInfo, result); - } else { - returnValue = *((QList*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QList(); -} -void PythonQtShell_SongInsertVetoListener::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - SongInsertVetoListener::childEvent(arg__1); -} -void PythonQtShell_SongInsertVetoListener::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - SongInsertVetoListener::customEvent(arg__1); -} -bool PythonQtShell_SongInsertVetoListener::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return SongInsertVetoListener::event(arg__1); -} -bool PythonQtShell_SongInsertVetoListener::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return SongInsertVetoListener::eventFilter(arg__1, arg__2); -} -void PythonQtShell_SongInsertVetoListener::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - SongInsertVetoListener::timerEvent(arg__1); -} -SongInsertVetoListener* PythonQtWrapper_SongInsertVetoListener::new_SongInsertVetoListener() -{ -return new PythonQtShell_SongInsertVetoListener(); } - - - -void PythonQtShell_SpecialPlaylistType::DidYouMeanClicked(const QString& text, Playlist* playlist) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "DidYouMeanClicked"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&" , "Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&text, (void*)&playlist}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - SpecialPlaylistType::DidYouMeanClicked(text, playlist); -} -void PythonQtShell_SpecialPlaylistType::Search(const QString& text, Playlist* playlist) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "Search"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QString&" , "Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&text, (void*)&playlist}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - SpecialPlaylistType::Search(text, playlist); -} -QString PythonQtShell_SpecialPlaylistType::empty_playlist_text(Playlist* playlist) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "empty_playlist_text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&playlist}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("empty_playlist_text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return SpecialPlaylistType::empty_playlist_text(playlist); -} -bool PythonQtShell_SpecialPlaylistType::has_special_search_behaviour(Playlist* playlist) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "has_special_search_behaviour"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&playlist}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("has_special_search_behaviour", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return SpecialPlaylistType::has_special_search_behaviour(playlist); -} -QIcon PythonQtShell_SpecialPlaylistType::icon(Playlist* playlist) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "icon"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIcon" , "Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIcon returnValue; - void* args[2] = {NULL, (void*)&playlist}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("icon", methodInfo, result); - } else { - returnValue = *((QIcon*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return SpecialPlaylistType::icon(playlist); -} -QString PythonQtShell_SpecialPlaylistType::name() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "name"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("name", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -QString PythonQtShell_SpecialPlaylistType::search_hint_text(Playlist* playlist) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "search_hint_text"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString" , "Playlist*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QString returnValue; - void* args[2] = {NULL, (void*)&playlist}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("search_hint_text", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return SpecialPlaylistType::search_hint_text(playlist); -} -SpecialPlaylistType* PythonQtWrapper_SpecialPlaylistType::new_SpecialPlaylistType() -{ -return new PythonQtShell_SpecialPlaylistType(); } - -void PythonQtWrapper_SpecialPlaylistType::DidYouMeanClicked(SpecialPlaylistType* theWrappedObject, const QString& text, Playlist* playlist) -{ - ( ((PythonQtPublicPromoter_SpecialPlaylistType*)theWrappedObject)->promoted_DidYouMeanClicked(text, playlist)); -} - -void PythonQtWrapper_SpecialPlaylistType::Search(SpecialPlaylistType* theWrappedObject, const QString& text, Playlist* playlist) -{ - ( ((PythonQtPublicPromoter_SpecialPlaylistType*)theWrappedObject)->promoted_Search(text, playlist)); -} - -QString PythonQtWrapper_SpecialPlaylistType::empty_playlist_text(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const -{ - return ( ((PythonQtPublicPromoter_SpecialPlaylistType*)theWrappedObject)->promoted_empty_playlist_text(playlist)); -} - -bool PythonQtWrapper_SpecialPlaylistType::has_special_search_behaviour(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const -{ - return ( ((PythonQtPublicPromoter_SpecialPlaylistType*)theWrappedObject)->promoted_has_special_search_behaviour(playlist)); -} - -QIcon PythonQtWrapper_SpecialPlaylistType::icon(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const -{ - return ( ((PythonQtPublicPromoter_SpecialPlaylistType*)theWrappedObject)->promoted_icon(playlist)); -} - -QString PythonQtWrapper_SpecialPlaylistType::search_hint_text(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const -{ - return ( ((PythonQtPublicPromoter_SpecialPlaylistType*)theWrappedObject)->promoted_search_hint_text(playlist)); -} - - - -Subdirectory* PythonQtWrapper_Subdirectory::new_Subdirectory() -{ -return new PythonQtShell_Subdirectory(); } - - diff --git a/src/generated_cpp/clementine/clementine0.h b/src/generated_cpp/clementine/clementine0.h deleted file mode 100644 index 4d5fa7b2d..000000000 --- a/src/generated_cpp/clementine/clementine0.h +++ /dev/null @@ -1,1655 +0,0 @@ -#define protected public -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#undef protected - - - - -class PythonQtPublicPromoter_AlbumCoverFetcherSearch : public AlbumCoverFetcherSearch -{ public: -inline void promoted_AlbumCoverFetched(quint64 arg__1, const QImage& cover) { AlbumCoverFetcherSearch::AlbumCoverFetched(arg__1, cover); } -inline void promoted_SearchFinished(quint64 arg__1, const QList& results) { AlbumCoverFetcherSearch::SearchFinished(arg__1, results); } -}; - -class PythonQtWrapper_AlbumCoverFetcherSearch : public QObject -{ Q_OBJECT -public: -public slots: -void delete_AlbumCoverFetcherSearch(AlbumCoverFetcherSearch* obj) { delete obj; } - void AlbumCoverFetched(AlbumCoverFetcherSearch* theWrappedObject, quint64 arg__1, const QImage& cover); - void Cancel(AlbumCoverFetcherSearch* theWrappedObject); - void SearchFinished(AlbumCoverFetcherSearch* theWrappedObject, quint64 arg__1, const QList& results); - void Start(AlbumCoverFetcherSearch* theWrappedObject); -}; - - - - - -class PythonQtShell_CoverProvider : public CoverProvider -{ -public: - PythonQtShell_CoverProvider(const QString& name, QObject* parent):CoverProvider(name, parent),_wrapper(NULL) {}; - -virtual void CancelSearch(int id); -virtual bool StartSearch(const QString& artist, const QString& album, int id); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_CoverProvider : public CoverProvider -{ public: -inline void promoted_CancelSearch(int id) { CoverProvider::CancelSearch(id); } -inline void promoted_SearchFinished(int id, const QList& results) { CoverProvider::SearchFinished(id, results); } -}; - -class PythonQtWrapper_CoverProvider : public QObject -{ Q_OBJECT -public: -public slots: -CoverProvider* new_CoverProvider(const QString& name, QObject* parent); -void delete_CoverProvider(CoverProvider* obj) { delete obj; } - void CancelSearch(CoverProvider* theWrappedObject, int id); - void SearchFinished(CoverProvider* theWrappedObject, int id, const QList& results); - QString name(CoverProvider* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_CoverProviders : public QObject -{ Q_OBJECT -public: -public slots: - void AddProvider(CoverProviders* theWrappedObject, CoverProvider* provider); - bool HasAnyProviders(CoverProviders* theWrappedObject) const; - QList List(CoverProviders* theWrappedObject) const; - int NextId(CoverProviders* theWrappedObject); - void RemoveProvider(CoverProviders* theWrappedObject, CoverProvider* provider); - CoverProviders* static_CoverProviders_instance(); -}; - - - - - -class PythonQtShell_CoverSearchResult : public CoverSearchResult -{ -public: - PythonQtShell_CoverSearchResult():CoverSearchResult(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_CoverSearchResult : public QObject -{ Q_OBJECT -public: -public slots: -CoverSearchResult* new_CoverSearchResult(); -CoverSearchResult* new_CoverSearchResult(const CoverSearchResult& other) { -PythonQtShell_CoverSearchResult* a = new PythonQtShell_CoverSearchResult(); -*((CoverSearchResult*)a) = other; -return a; } -void delete_CoverSearchResult(CoverSearchResult* obj) { delete obj; } -void py_set_provider(CoverSearchResult* theWrappedObject, QString provider){ theWrappedObject->provider = provider; } -QString py_get_provider(CoverSearchResult* theWrappedObject){ return theWrappedObject->provider; } -void py_set_description(CoverSearchResult* theWrappedObject, QString description){ theWrappedObject->description = description; } -QString py_get_description(CoverSearchResult* theWrappedObject){ return theWrappedObject->description; } -void py_set_image_url(CoverSearchResult* theWrappedObject, QString image_url){ theWrappedObject->image_url = image_url; } -QString py_get_image_url(CoverSearchResult* theWrappedObject){ return theWrappedObject->image_url; } -}; - - - - - -class PythonQtShell_Directory : public Directory -{ -public: - PythonQtShell_Directory():Directory(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_Directory : public QObject -{ Q_OBJECT -public: -public slots: -Directory* new_Directory(); -Directory* new_Directory(const Directory& other) { -PythonQtShell_Directory* a = new PythonQtShell_Directory(); -*((Directory*)a) = other; -return a; } -void delete_Directory(Directory* obj) { delete obj; } -void py_set_path(Directory* theWrappedObject, QString path){ theWrappedObject->path = path; } -QString py_get_path(Directory* theWrappedObject){ return theWrappedObject->path; } -void py_set_id(Directory* theWrappedObject, int id){ theWrappedObject->id = id; } -int py_get_id(Directory* theWrappedObject){ return theWrappedObject->id; } -}; - - - - - -class PythonQtWrapper_IconLoader : public QObject -{ Q_OBJECT -public: -public slots: -void delete_IconLoader(IconLoader* obj) { delete obj; } - void static_IconLoader_Init(); - QIcon static_IconLoader_Load(const QString& name); -}; - - - - - -class PythonQtPublicPromoter_InternetModel : public InternetModel -{ public: -inline void promoted_AddToPlaylist(QMimeData* data) { InternetModel::AddToPlaylist(data); } -inline void promoted_StreamError(const QString& message) { InternetModel::StreamError(message); } -inline void promoted_StreamMetadataFound(const QUrl& original_url, const Song& song) { InternetModel::StreamMetadataFound(original_url, song); } -inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return InternetModel::flags(index); } -inline bool promoted_hasChildren(const QModelIndex& parent) const { return InternetModel::hasChildren(parent); } -inline QMimeData* promoted_mimeData(const QList& indexes) const { return InternetModel::mimeData(indexes); } -inline QStringList promoted_mimeTypes() const { return InternetModel::mimeTypes(); } -inline int promoted_rowCount(const QModelIndex& parent) const { return InternetModel::rowCount(parent); } -}; - -class PythonQtWrapper_InternetModel : public QObject -{ Q_OBJECT -public: -Q_ENUMS(PlayBehaviour Role Type ) -enum PlayBehaviour{ - PlayBehaviour_None = InternetModel::PlayBehaviour_None, PlayBehaviour_UseSongLoader = InternetModel::PlayBehaviour_UseSongLoader, PlayBehaviour_SingleItem = InternetModel::PlayBehaviour_SingleItem, PlayBehaviour_DoubleClickAction = InternetModel::PlayBehaviour_DoubleClickAction}; -enum Role{ - Role_Type = InternetModel::Role_Type, Role_PlayBehaviour = InternetModel::Role_PlayBehaviour, Role_Url = InternetModel::Role_Url, Role_SongMetadata = InternetModel::Role_SongMetadata, Role_CanLazyLoad = InternetModel::Role_CanLazyLoad, Role_Service = InternetModel::Role_Service, RoleCount = InternetModel::RoleCount}; -enum Type{ - Type_Service = InternetModel::Type_Service, TypeCount = InternetModel::TypeCount}; -public slots: -void delete_InternetModel(InternetModel* obj) { delete obj; } - void AddService(InternetModel* theWrappedObject, InternetService* service); - void AddToPlaylist(InternetModel* theWrappedObject, QMimeData* data); - bool IsPlayable(InternetModel* theWrappedObject, const QModelIndex& index) const; - void ReloadSettings(InternetModel* theWrappedObject); - void RemoveService(InternetModel* theWrappedObject, InternetService* service); - InternetService* static_InternetModel_ServiceByName(const QString& name); - InternetService* ServiceForIndex(InternetModel* theWrappedObject, const QModelIndex& index) const; - InternetService* ServiceForItem(InternetModel* theWrappedObject, const QStandardItem* item) const; - void ShowContextMenu(InternetModel* theWrappedObject, const QModelIndex& merged_model_index, const QPoint& global_pos); - void StreamError(InternetModel* theWrappedObject, const QString& message); - void StreamMetadataFound(InternetModel* theWrappedObject, const QUrl& original_url, const Song& song); - Qt::ItemFlags flags(InternetModel* theWrappedObject, const QModelIndex& index) const; - bool hasChildren(InternetModel* theWrappedObject, const QModelIndex& parent) const; - QMimeData* mimeData(InternetModel* theWrappedObject, const QList& indexes) const; - QStringList mimeTypes(InternetModel* theWrappedObject) const; - PlayerInterface* player(InternetModel* theWrappedObject) const; - int rowCount(InternetModel* theWrappedObject, const QModelIndex& parent) const; - TaskManager* task_manager(InternetModel* theWrappedObject) const; -}; - - - - - -class PythonQtShell_InternetService : public InternetService -{ -public: - PythonQtShell_InternetService(const QString& name, InternetModel* model, QObject* parent = NULL):InternetService(name, model, parent),_wrapper(NULL) {}; - -virtual QStandardItem* CreateRootItem(); -virtual QModelIndex GetCurrentIndex(); -virtual QWidget* HeaderWidget() const; -virtual QString Icon(); -virtual void ItemDoubleClicked(QStandardItem* item); -virtual void LazyPopulate(QStandardItem* parent); -virtual void ReloadSettings(); -virtual void ShowContextMenu(const QModelIndex& index, const QPoint& global_pos); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_InternetService : public InternetService -{ public: -inline void promoted_AddItemToPlaylist(const QModelIndex& index, InternetService::AddMode add_mode) { InternetService::AddItemToPlaylist(index, add_mode); } -inline void promoted_AddItemsToPlaylist(const QList& indexes, InternetService::AddMode add_mode) { InternetService::AddItemsToPlaylist(indexes, add_mode); } -inline void promoted_AddToPlaylistSignal(QMimeData* data) { InternetService::AddToPlaylistSignal(data); } -inline QAction* promoted_GetAppendToPlaylistAction() { return InternetService::GetAppendToPlaylistAction(); } -inline QAction* promoted_GetOpenInNewPlaylistAction() { return InternetService::GetOpenInNewPlaylistAction(); } -inline QList promoted_GetPlaylistActions() { return InternetService::GetPlaylistActions(); } -inline QAction* promoted_GetReplacePlaylistAction() { return InternetService::GetReplacePlaylistAction(); } -inline QWidget* promoted_HeaderWidget() const { return InternetService::HeaderWidget(); } -inline QString promoted_Icon() { return InternetService::Icon(); } -inline void promoted_ItemDoubleClicked(QStandardItem* item) { InternetService::ItemDoubleClicked(item); } -inline void promoted_ReloadSettings() { InternetService::ReloadSettings(); } -inline void promoted_ShowContextMenu(const QModelIndex& index, const QPoint& global_pos) { InternetService::ShowContextMenu(index, global_pos); } -inline void promoted_StreamError(const QString& message) { InternetService::StreamError(message); } -inline void promoted_StreamMetadataFound(const QUrl& original_url, const Song& song) { InternetService::StreamMetadataFound(original_url, song); } -}; - -class PythonQtWrapper_InternetService : public QObject -{ Q_OBJECT -public: -public slots: -InternetService* new_InternetService(const QString& name, InternetModel* model, QObject* parent = NULL); -void delete_InternetService(InternetService* obj) { delete obj; } - void AddItemToPlaylist(InternetService* theWrappedObject, const QModelIndex& index, InternetService::AddMode add_mode); - void AddItemsToPlaylist(InternetService* theWrappedObject, const QList& indexes, InternetService::AddMode add_mode); - void AddToPlaylistSignal(InternetService* theWrappedObject, QMimeData* data); - QAction* GetAppendToPlaylistAction(InternetService* theWrappedObject); - QAction* GetOpenInNewPlaylistAction(InternetService* theWrappedObject); - QList GetPlaylistActions(InternetService* theWrappedObject); - QAction* GetReplacePlaylistAction(InternetService* theWrappedObject); - QWidget* HeaderWidget(InternetService* theWrappedObject) const; - QString Icon(InternetService* theWrappedObject); - void ItemDoubleClicked(InternetService* theWrappedObject, QStandardItem* item); - void ReloadSettings(InternetService* theWrappedObject); - void ShowContextMenu(InternetService* theWrappedObject, const QModelIndex& index, const QPoint& global_pos); - void StreamError(InternetService* theWrappedObject, const QString& message); - void StreamMetadataFound(InternetService* theWrappedObject, const QUrl& original_url, const Song& song); - InternetModel* model(InternetService* theWrappedObject) const; - QString name(InternetService* theWrappedObject) const; -}; - - - - - -class PythonQtShell_LibraryBackend : public LibraryBackend -{ -public: - PythonQtShell_LibraryBackend(QObject* parent = 0):LibraryBackend(parent),_wrapper(NULL) {}; - -virtual void AddDirectory(const QString& path); -virtual void ChangeDirPath(int id, const QString& old_path, const QString& new_path); -virtual bool ExecQuery(LibraryQuery* q); -virtual QList FindSongsInDirectory(int id); -virtual LibraryBackendInterface::Album GetAlbumArt(const QString& artist, const QString& album); -virtual QList GetAlbumsByArtist(const QString& artist, const QueryOptions& opt = QueryOptions()); -virtual QList GetAllAlbums(const QueryOptions& opt = QueryOptions()); -virtual QStringList GetAllArtists(const QueryOptions& opt = QueryOptions()); -virtual QStringList GetAllArtistsWithAlbums(const QueryOptions& opt = QueryOptions()); -virtual QList GetAllDirectories(); -virtual QList GetCompilationAlbums(const QueryOptions& opt = QueryOptions()); -virtual QList GetCompilationSongs(const QString& album, const QueryOptions& opt = QueryOptions()); -virtual Song GetSongById(int id); -virtual Song GetSongByUrl(const QUrl& url, qint64 beginning = 0); -virtual QList GetSongs(const QString& artist, const QString& album, const QueryOptions& opt = QueryOptions()); -virtual QList GetSongsByUrl(const QUrl& url); -virtual bool HasCompilations(const QueryOptions& opt = QueryOptions()); -virtual void LoadDirectoriesAsync(); -virtual void RemoveDirectory(const Directory& dir); -virtual QList SubdirsInDirectory(int id); -virtual void UpdateManualAlbumArtAsync(const QString& artist, const QString& album, const QString& art); -virtual void UpdateTotalSongCountAsync(); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_LibraryBackend : public LibraryBackend -{ public: -inline void promoted_AddDirectory(const QString& path) { LibraryBackend::AddDirectory(path); } -inline void promoted_ChangeDirPath(int id, const QString& old_path, const QString& new_path) { LibraryBackend::ChangeDirPath(id, old_path, new_path); } -inline void promoted_DatabaseReset() { LibraryBackend::DatabaseReset(); } -inline void promoted_DirectoryDeleted(const Directory& dir) { LibraryBackend::DirectoryDeleted(dir); } -inline void promoted_DirectoryDiscovered(const Directory& dir, const QList& subdirs) { LibraryBackend::DirectoryDiscovered(dir, subdirs); } -inline bool promoted_ExecQuery(LibraryQuery* q) { return LibraryBackend::ExecQuery(q); } -inline QList promoted_FindSongsInDirectory(int id) { return LibraryBackend::FindSongsInDirectory(id); } -inline LibraryBackendInterface::Album promoted_GetAlbumArt(const QString& artist, const QString& album) { return LibraryBackend::GetAlbumArt(artist, album); } -inline QList promoted_GetAlbumsByArtist(const QString& artist, const QueryOptions& opt = QueryOptions()) { return LibraryBackend::GetAlbumsByArtist(artist, opt); } -inline QList promoted_GetAllAlbums(const QueryOptions& opt = QueryOptions()) { return LibraryBackend::GetAllAlbums(opt); } -inline QStringList promoted_GetAllArtists(const QueryOptions& opt = QueryOptions()) { return LibraryBackend::GetAllArtists(opt); } -inline QStringList promoted_GetAllArtistsWithAlbums(const QueryOptions& opt = QueryOptions()) { return LibraryBackend::GetAllArtistsWithAlbums(opt); } -inline QList promoted_GetAllDirectories() { return LibraryBackend::GetAllDirectories(); } -inline QList promoted_GetCompilationAlbums(const QueryOptions& opt = QueryOptions()) { return LibraryBackend::GetCompilationAlbums(opt); } -inline QList promoted_GetCompilationSongs(const QString& album, const QueryOptions& opt = QueryOptions()) { return LibraryBackend::GetCompilationSongs(album, opt); } -inline Song promoted_GetSongById(int id) { return LibraryBackend::GetSongById(id); } -inline Song promoted_GetSongByUrl(const QUrl& url, qint64 beginning = 0) { return LibraryBackend::GetSongByUrl(url, beginning); } -inline QList promoted_GetSongs(const QString& artist, const QString& album, const QueryOptions& opt = QueryOptions()) { return LibraryBackend::GetSongs(artist, album, opt); } -inline QList promoted_GetSongsByUrl(const QUrl& url) { return LibraryBackend::GetSongsByUrl(url); } -inline bool promoted_HasCompilations(const QueryOptions& opt = QueryOptions()) { return LibraryBackend::HasCompilations(opt); } -inline void promoted_LoadDirectoriesAsync() { LibraryBackend::LoadDirectoriesAsync(); } -inline void promoted_RemoveDirectory(const Directory& dir) { LibraryBackend::RemoveDirectory(dir); } -inline void promoted_SongsDeleted(const QList& songs) { LibraryBackend::SongsDeleted(songs); } -inline void promoted_SongsDiscovered(const QList& songs) { LibraryBackend::SongsDiscovered(songs); } -inline void promoted_SongsStatisticsChanged(const QList& songs) { LibraryBackend::SongsStatisticsChanged(songs); } -inline QList promoted_SubdirsInDirectory(int id) { return LibraryBackend::SubdirsInDirectory(id); } -inline void promoted_TotalSongCountUpdated(int total) { LibraryBackend::TotalSongCountUpdated(total); } -inline void promoted_UpdateManualAlbumArtAsync(const QString& artist, const QString& album, const QString& art) { LibraryBackend::UpdateManualAlbumArtAsync(artist, album, art); } -inline void promoted_UpdateTotalSongCountAsync() { LibraryBackend::UpdateTotalSongCountAsync(); } -}; - -class PythonQtWrapper_LibraryBackend : public QObject -{ Q_OBJECT -public: -public slots: -LibraryBackend* new_LibraryBackend(QObject* parent = 0); -void delete_LibraryBackend(LibraryBackend* obj) { delete obj; } - void AddDirectory(LibraryBackend* theWrappedObject, const QString& path); - void ChangeDirPath(LibraryBackend* theWrappedObject, int id, const QString& old_path, const QString& new_path); - void DatabaseReset(LibraryBackend* theWrappedObject); - void DeleteAll(LibraryBackend* theWrappedObject); - void DirectoryDeleted(LibraryBackend* theWrappedObject, const Directory& dir); - void DirectoryDiscovered(LibraryBackend* theWrappedObject, const Directory& dir, const QList& subdirs); - bool ExecQuery(LibraryBackend* theWrappedObject, LibraryQuery* q); - QList FindSongsInDirectory(LibraryBackend* theWrappedObject, int id); - LibraryBackendInterface::Album GetAlbumArt(LibraryBackend* theWrappedObject, const QString& artist, const QString& album); - QList GetAlbumsByArtist(LibraryBackend* theWrappedObject, const QString& artist, const QueryOptions& opt = QueryOptions()); - QStringList GetAll(LibraryBackend* theWrappedObject, const QString& column, const QueryOptions& opt = QueryOptions()); - QList GetAllAlbums(LibraryBackend* theWrappedObject, const QueryOptions& opt = QueryOptions()); - QStringList GetAllArtists(LibraryBackend* theWrappedObject, const QueryOptions& opt = QueryOptions()); - QStringList GetAllArtistsWithAlbums(LibraryBackend* theWrappedObject, const QueryOptions& opt = QueryOptions()); - QList GetAllDirectories(LibraryBackend* theWrappedObject); - QList GetCompilationAlbums(LibraryBackend* theWrappedObject, const QueryOptions& opt = QueryOptions()); - QList GetCompilationSongs(LibraryBackend* theWrappedObject, const QString& album, const QueryOptions& opt = QueryOptions()); - Song GetSongById(LibraryBackend* theWrappedObject, int id); - Song GetSongByUrl(LibraryBackend* theWrappedObject, const QUrl& url, qint64 beginning = 0); - QList GetSongs(LibraryBackend* theWrappedObject, const QString& artist, const QString& album, const QueryOptions& opt = QueryOptions()); - QList GetSongsByForeignId(LibraryBackend* theWrappedObject, const QStringList& ids, const QString& table, const QString& column); - QList GetSongsById(LibraryBackend* theWrappedObject, const QList& ids); - QList GetSongsById(LibraryBackend* theWrappedObject, const QStringList& ids); - QList GetSongsByUrl(LibraryBackend* theWrappedObject, const QUrl& url); - bool HasCompilations(LibraryBackend* theWrappedObject, const QueryOptions& opt = QueryOptions()); - void IncrementPlayCountAsync(LibraryBackend* theWrappedObject, int id); - void IncrementSkipCountAsync(LibraryBackend* theWrappedObject, int id, float progress); - void LoadDirectoriesAsync(LibraryBackend* theWrappedObject); - void RemoveDirectory(LibraryBackend* theWrappedObject, const Directory& dir); - void ResetStatisticsAsync(LibraryBackend* theWrappedObject, int id); - void SongsDeleted(LibraryBackend* theWrappedObject, const QList& songs); - void SongsDiscovered(LibraryBackend* theWrappedObject, const QList& songs); - void SongsStatisticsChanged(LibraryBackend* theWrappedObject, const QList& songs); - QList SubdirsInDirectory(LibraryBackend* theWrappedObject, int id); - void TotalSongCountUpdated(LibraryBackend* theWrappedObject, int total); - void UpdateManualAlbumArtAsync(LibraryBackend* theWrappedObject, const QString& artist, const QString& album, const QString& art); - void UpdateSongRatingAsync(LibraryBackend* theWrappedObject, int id, float rating); - void UpdateTotalSongCountAsync(LibraryBackend* theWrappedObject); - QString dirs_table(LibraryBackend* theWrappedObject) const; - QString songs_table(LibraryBackend* theWrappedObject) const; - QString subdirs_table(LibraryBackend* theWrappedObject) const; -}; - - - - - -class PythonQtShell_LibraryBackendInterface : public LibraryBackendInterface -{ -public: - PythonQtShell_LibraryBackendInterface(QObject* parent = 0):LibraryBackendInterface(parent),_wrapper(NULL) {}; - -virtual void AddDirectory(const QString& path); -virtual void ChangeDirPath(int id, const QString& old_path, const QString& new_path); -virtual bool ExecQuery(LibraryQuery* q); -virtual QList FindSongsInDirectory(int id); -virtual LibraryBackendInterface::Album GetAlbumArt(const QString& artist, const QString& album); -virtual QList GetAlbumsByArtist(const QString& artist, const QueryOptions& opt = QueryOptions()); -virtual QList GetAllAlbums(const QueryOptions& opt = QueryOptions()); -virtual QStringList GetAllArtists(const QueryOptions& opt = QueryOptions()); -virtual QStringList GetAllArtistsWithAlbums(const QueryOptions& opt = QueryOptions()); -virtual QList GetAllDirectories(); -virtual QList GetCompilationAlbums(const QueryOptions& opt = QueryOptions()); -virtual QList GetCompilationSongs(const QString& album, const QueryOptions& opt = QueryOptions()); -virtual Song GetSongById(int id); -virtual Song GetSongByUrl(const QUrl& url, qint64 beginning = 0); -virtual QList GetSongs(const QString& artist, const QString& album, const QueryOptions& opt = QueryOptions()); -virtual QList GetSongsByUrl(const QUrl& url); -virtual bool HasCompilations(const QueryOptions& opt = QueryOptions()); -virtual void LoadDirectoriesAsync(); -virtual void RemoveDirectory(const Directory& dir); -virtual QList SubdirsInDirectory(int id); -virtual void UpdateManualAlbumArtAsync(const QString& artist, const QString& album, const QString& art); -virtual void UpdateTotalSongCountAsync(); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_LibraryBackendInterface : public QObject -{ Q_OBJECT -public: -public slots: -LibraryBackendInterface* new_LibraryBackendInterface(QObject* parent = 0); -void delete_LibraryBackendInterface(LibraryBackendInterface* obj) { delete obj; } -}; - - - - - -class PythonQtShell_LibraryBackendInterface_Album : public LibraryBackendInterface::Album -{ -public: - PythonQtShell_LibraryBackendInterface_Album():LibraryBackendInterface::Album(),_wrapper(NULL) {}; - PythonQtShell_LibraryBackendInterface_Album(const QString& _artist, const QString& _album_name, const QString& _art_automatic, const QString& _art_manual, const QUrl& _first_url):LibraryBackendInterface::Album(_artist, _album_name, _art_automatic, _art_manual, _first_url),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_LibraryBackendInterface_Album : public QObject -{ Q_OBJECT -public: -public slots: -LibraryBackendInterface::Album* new_LibraryBackendInterface_Album(); -LibraryBackendInterface::Album* new_LibraryBackendInterface_Album(const QString& _artist, const QString& _album_name, const QString& _art_automatic, const QString& _art_manual, const QUrl& _first_url); -LibraryBackendInterface::Album* new_LibraryBackendInterface_Album(const LibraryBackendInterface::Album& other) { -PythonQtShell_LibraryBackendInterface_Album* a = new PythonQtShell_LibraryBackendInterface_Album(); -*((LibraryBackendInterface::Album*)a) = other; -return a; } -void delete_LibraryBackendInterface_Album(LibraryBackendInterface::Album* obj) { delete obj; } -void py_set_art_automatic(LibraryBackendInterface::Album* theWrappedObject, QString art_automatic){ theWrappedObject->art_automatic = art_automatic; } -QString py_get_art_automatic(LibraryBackendInterface::Album* theWrappedObject){ return theWrappedObject->art_automatic; } -void py_set_artist(LibraryBackendInterface::Album* theWrappedObject, QString artist){ theWrappedObject->artist = artist; } -QString py_get_artist(LibraryBackendInterface::Album* theWrappedObject){ return theWrappedObject->artist; } -void py_set_album_name(LibraryBackendInterface::Album* theWrappedObject, QString album_name){ theWrappedObject->album_name = album_name; } -QString py_get_album_name(LibraryBackendInterface::Album* theWrappedObject){ return theWrappedObject->album_name; } -void py_set_first_url(LibraryBackendInterface::Album* theWrappedObject, QUrl first_url){ theWrappedObject->first_url = first_url; } -QUrl py_get_first_url(LibraryBackendInterface::Album* theWrappedObject){ return theWrappedObject->first_url; } -void py_set_art_manual(LibraryBackendInterface::Album* theWrappedObject, QString art_manual){ theWrappedObject->art_manual = art_manual; } -QString py_get_art_manual(LibraryBackendInterface::Album* theWrappedObject){ return theWrappedObject->art_manual; } -}; - - - - - -class PythonQtWrapper_LibraryQuery : public QObject -{ Q_OBJECT -public: -public slots: -LibraryQuery* new_LibraryQuery(const QueryOptions& options = QueryOptions()); -void delete_LibraryQuery(LibraryQuery* obj) { delete obj; } - void AddCompilationRequirement(LibraryQuery* theWrappedObject, bool compilation); - void AddWhere(LibraryQuery* theWrappedObject, const QString& column, const QVariant& value, const QString& op = "="); - bool Next(LibraryQuery* theWrappedObject); - void SetColumnSpec(LibraryQuery* theWrappedObject, const QString& spec); - void SetIncludeUnavailable(LibraryQuery* theWrappedObject, bool include_unavailable); - void SetLimit(LibraryQuery* theWrappedObject, int limit); - void SetOrderBy(LibraryQuery* theWrappedObject, const QString& order_by); - QVariant Value(LibraryQuery* theWrappedObject, int column) const; -}; - - - - - -class PythonQtShell_LibraryView : public LibraryView -{ -public: - PythonQtShell_LibraryView(QWidget* parent = 0):LibraryView(parent),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_LibraryView : public LibraryView -{ public: -inline void promoted_ShowConfigDialog() { LibraryView::ShowConfigDialog(); } -inline void promoted_contextMenuEvent(QContextMenuEvent* e) { LibraryView::contextMenuEvent(e); } -inline void promoted_mouseReleaseEvent(QMouseEvent* e) { LibraryView::mouseReleaseEvent(e); } -inline void promoted_paintEvent(QPaintEvent* event) { LibraryView::paintEvent(event); } -}; - -class PythonQtWrapper_LibraryView : public QObject -{ Q_OBJECT -public: -public slots: -LibraryView* new_LibraryView(QWidget* parent = 0); -void delete_LibraryView(LibraryView* obj) { delete obj; } - QList GetSelectedSongs(LibraryView* theWrappedObject) const; - void SetTaskManager(LibraryView* theWrappedObject, TaskManager* task_manager); - void ShowConfigDialog(LibraryView* theWrappedObject); - void contextMenuEvent(LibraryView* theWrappedObject, QContextMenuEvent* e); - void keyboardSearch(LibraryView* theWrappedObject, const QString& search); - void mouseReleaseEvent(LibraryView* theWrappedObject, QMouseEvent* e); - void paintEvent(LibraryView* theWrappedObject, QPaintEvent* event); - void scrollTo(LibraryView* theWrappedObject, const QModelIndex& index, QAbstractItemView::ScrollHint hint = QAbstractItemView::EnsureVisible); -}; - - - - - -class PythonQtShell_NetworkAccessManager : public NetworkAccessManager -{ -public: - PythonQtShell_NetworkAccessManager(QObject* parent = 0):NetworkAccessManager(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual QNetworkReply* createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_NetworkAccessManager : public NetworkAccessManager -{ public: -inline QNetworkReply* promoted_createRequest(QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData) { return NetworkAccessManager::createRequest(op, request, outgoingData); } -}; - -class PythonQtWrapper_NetworkAccessManager : public QObject -{ Q_OBJECT -public: -public slots: -NetworkAccessManager* new_NetworkAccessManager(QObject* parent = 0); -void delete_NetworkAccessManager(NetworkAccessManager* obj) { delete obj; } - QNetworkReply* createRequest(NetworkAccessManager* theWrappedObject, QNetworkAccessManager::Operation op, const QNetworkRequest& request, QIODevice* outgoingData); -}; - - - - - -class PythonQtShell_NetworkTimeouts : public NetworkTimeouts -{ -public: - PythonQtShell_NetworkTimeouts(int timeout_msec, QObject* parent = 0):NetworkTimeouts(timeout_msec, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_NetworkTimeouts : public QObject -{ Q_OBJECT -public: -public slots: -NetworkTimeouts* new_NetworkTimeouts(int timeout_msec, QObject* parent = 0); -void delete_NetworkTimeouts(NetworkTimeouts* obj) { delete obj; } - void AddReply(NetworkTimeouts* theWrappedObject, QNetworkReply* reply); - void SetTimeout(NetworkTimeouts* theWrappedObject, int msec); -}; - - - - - -class PythonQtShell_Player : public Player -{ -public: - PythonQtShell_Player(PlaylistManagerInterface* playlists, QObject* parent = 0):Player(playlists, parent),_wrapper(NULL) {}; - -virtual void CurrentMetadataChanged(const Song& metadata); -virtual PlaylistItemPtr GetCurrentItem() const; -virtual PlaylistItemPtr GetItemAt(int pos) const; -virtual Engine::State GetState() const; -virtual int GetVolume() const; -virtual void Mute(); -virtual void Next(); -virtual void Pause(); -virtual void Play(); -virtual void PlayAt(int i, Engine::TrackChangeFlags change, bool reshuffle); -virtual void PlayPause(); -virtual void Previous(); -virtual void RegisterUrlHandler(UrlHandler* handler); -virtual void ReloadSettings(); -virtual void SeekBackward(); -virtual void SeekForward(); -virtual void SeekTo(int seconds); -virtual void SetVolume(int value); -virtual void ShowOSD(); -virtual void Stop(); -virtual void UnregisterUrlHandler(UrlHandler* handler); -virtual void VolumeDown(); -virtual void VolumeUp(); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual Engine::Base* engine() const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual PlaylistManagerInterface* playlists() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_Player : public Player -{ public: -inline void promoted_CurrentMetadataChanged(const Song& metadata) { Player::CurrentMetadataChanged(metadata); } -inline PlaylistItemPtr promoted_GetCurrentItem() const { return Player::GetCurrentItem(); } -inline PlaylistItemPtr promoted_GetItemAt(int pos) const { return Player::GetItemAt(pos); } -inline Engine::State promoted_GetState() const { return Player::GetState(); } -inline int promoted_GetVolume() const { return Player::GetVolume(); } -inline void promoted_Mute() { Player::Mute(); } -inline void promoted_Next() { Player::Next(); } -inline void promoted_Pause() { Player::Pause(); } -inline void promoted_Play() { Player::Play(); } -inline void promoted_PlayAt(int i, Engine::TrackChangeFlags change, bool reshuffle) { Player::PlayAt(i, change, reshuffle); } -inline void promoted_PlayPause() { Player::PlayPause(); } -inline void promoted_Previous() { Player::Previous(); } -inline void promoted_RegisterUrlHandler(UrlHandler* handler) { Player::RegisterUrlHandler(handler); } -inline void promoted_ReloadSettings() { Player::ReloadSettings(); } -inline void promoted_SeekBackward() { Player::SeekBackward(); } -inline void promoted_SeekForward() { Player::SeekForward(); } -inline void promoted_SeekTo(int seconds) { Player::SeekTo(seconds); } -inline void promoted_SetVolume(int value) { Player::SetVolume(value); } -inline void promoted_ShowOSD() { Player::ShowOSD(); } -inline void promoted_Stop() { Player::Stop(); } -inline void promoted_UnregisterUrlHandler(UrlHandler* handler) { Player::UnregisterUrlHandler(handler); } -inline void promoted_VolumeDown() { Player::VolumeDown(); } -inline void promoted_VolumeUp() { Player::VolumeUp(); } -inline Engine::Base* promoted_engine() const { return Player::engine(); } -inline PlaylistManagerInterface* promoted_playlists() const { return Player::playlists(); } -}; - -class PythonQtWrapper_Player : public QObject -{ Q_OBJECT -public: -public slots: -Player* new_Player(PlaylistManagerInterface* playlists, QObject* parent = 0); -void delete_Player(Player* obj) { delete obj; } - PlaylistItemPtr GetCurrentItem(Player* theWrappedObject) const; - PlaylistItemPtr GetItemAt(Player* theWrappedObject, int pos) const; - Engine::State GetState(Player* theWrappedObject) const; - int GetVolume(Player* theWrappedObject) const; - void Init(Player* theWrappedObject); - void RegisterUrlHandler(Player* theWrappedObject, UrlHandler* handler); - void UnregisterUrlHandler(Player* theWrappedObject, UrlHandler* handler); - Engine::Base* engine(Player* theWrappedObject) const; - PlaylistManagerInterface* playlists(Player* theWrappedObject) const; -}; - - - - - -class PythonQtShell_PlayerInterface : public PlayerInterface -{ -public: - PythonQtShell_PlayerInterface(QObject* parent = 0):PlayerInterface(parent),_wrapper(NULL) {}; - -virtual void CurrentMetadataChanged(const Song& metadata); -virtual PlaylistItemPtr GetCurrentItem() const; -virtual PlaylistItemPtr GetItemAt(int pos) const; -virtual Engine::State GetState() const; -virtual int GetVolume() const; -virtual void Mute(); -virtual void Next(); -virtual void Pause(); -virtual void Play(); -virtual void PlayAt(int i, Engine::TrackChangeFlags change, bool reshuffle); -virtual void PlayPause(); -virtual void Previous(); -virtual void RegisterUrlHandler(UrlHandler* handler); -virtual void ReloadSettings(); -virtual void SeekBackward(); -virtual void SeekForward(); -virtual void SeekTo(int seconds); -virtual void SetVolume(int value); -virtual void ShowOSD(); -virtual void Stop(); -virtual void UnregisterUrlHandler(UrlHandler* handler); -virtual void VolumeDown(); -virtual void VolumeUp(); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual Engine::Base* engine() const; -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual PlaylistManagerInterface* playlists() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_PlayerInterface : public PlayerInterface -{ public: -inline void promoted_Error(const QString& message) { PlayerInterface::Error(message); } -inline void promoted_ForceShowOSD(Song arg__1, bool toogle) { PlayerInterface::ForceShowOSD(arg__1, toogle); } -inline void promoted_Paused() { PlayerInterface::Paused(); } -inline void promoted_Playing() { PlayerInterface::Playing(); } -inline void promoted_PlaylistFinished() { PlayerInterface::PlaylistFinished(); } -inline void promoted_Seeked(qlonglong microseconds) { PlayerInterface::Seeked(microseconds); } -inline void promoted_SongChangeRequestProcessed(const QUrl& url, bool valid) { PlayerInterface::SongChangeRequestProcessed(url, valid); } -inline void promoted_Stopped() { PlayerInterface::Stopped(); } -inline void promoted_TrackSkipped(PlaylistItemPtr old_track) { PlayerInterface::TrackSkipped(old_track); } -inline void promoted_VolumeChanged(int volume) { PlayerInterface::VolumeChanged(volume); } -}; - -class PythonQtWrapper_PlayerInterface : public QObject -{ Q_OBJECT -public: -public slots: -PlayerInterface* new_PlayerInterface(QObject* parent = 0); -void delete_PlayerInterface(PlayerInterface* obj) { delete obj; } - void Error(PlayerInterface* theWrappedObject, const QString& message); - void ForceShowOSD(PlayerInterface* theWrappedObject, Song arg__1, bool toogle); - void Paused(PlayerInterface* theWrappedObject); - void Playing(PlayerInterface* theWrappedObject); - void PlaylistFinished(PlayerInterface* theWrappedObject); - void Seeked(PlayerInterface* theWrappedObject, qlonglong microseconds); - void SongChangeRequestProcessed(PlayerInterface* theWrappedObject, const QUrl& url, bool valid); - void Stopped(PlayerInterface* theWrappedObject); - void TrackSkipped(PlayerInterface* theWrappedObject, PlaylistItemPtr old_track); - void VolumeChanged(PlayerInterface* theWrappedObject, int volume); -}; - - - - - -class PythonQtShell_Playlist : public Playlist -{ -public: - PythonQtShell_Playlist(PlaylistBackend* backend, TaskManager* task_manager, LibraryBackend* library, int id, const QString& special_type = QString(), QObject* parent = 0):Playlist(backend, task_manager, library, id, special_type, parent),_wrapper(NULL) {}; - -virtual QModelIndex buddy(const QModelIndex& index) const; -virtual bool canFetchMore(const QModelIndex& parent) const; -virtual void childEvent(QChildEvent* arg__1); -virtual int columnCount(const QModelIndex& arg__1 = QModelIndex()) const; -virtual void customEvent(QEvent* arg__1); -virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; -virtual bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void fetchMore(const QModelIndex& parent); -virtual Qt::ItemFlags flags(const QModelIndex& index) const; -virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; -virtual QModelIndex index(int row, int column, const QModelIndex& parent) const; -virtual bool insertColumns(int column, int count, const QModelIndex& parent); -virtual bool insertRows(int row, int count, const QModelIndex& parent); -virtual QMap itemData(const QModelIndex& index) const; -virtual QList match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const; -virtual QMimeData* mimeData(const QList& indexes) const; -virtual QStringList mimeTypes() const; -virtual bool removeColumns(int column, int count, const QModelIndex& parent); -virtual bool removeRows(int row, int count, const QModelIndex& parent = QModelIndex()); -virtual void revert(); -virtual int rowCount(const QModelIndex& arg__1 = QModelIndex()) const; -virtual bool setData(const QModelIndex& index, const QVariant& value, int role); -virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role); -virtual bool setItemData(const QModelIndex& index, const QMap& roles); -virtual void sort(int column, Qt::SortOrder order); -virtual QSize span(const QModelIndex& index) const; -virtual bool submit(); -virtual Qt::DropActions supportedDropActions() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_Playlist : public Playlist -{ public: -inline void promoted_CurrentSongChanged(const Song& metadata) { Playlist::CurrentSongChanged(metadata); } -inline void promoted_DynamicModeChanged(bool dynamic) { Playlist::DynamicModeChanged(dynamic); } -inline void promoted_EditingFinished(const QModelIndex& index) { Playlist::EditingFinished(index); } -inline void promoted_LoadTracksError(const QString& message) { Playlist::LoadTracksError(message); } -inline void promoted_PlayRequested(const QModelIndex& index) { Playlist::PlayRequested(index); } -inline void promoted_PlaylistChanged() { Playlist::PlaylistChanged(); } -inline void promoted_RestoreFinished() { Playlist::RestoreFinished(); } -inline int promoted_columnCount(const QModelIndex& arg__1 = QModelIndex()) const { return Playlist::columnCount(arg__1); } -inline QVariant promoted_data(const QModelIndex& index, int role = Qt::DisplayRole) const { return Playlist::data(index, role); } -inline bool promoted_dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent) { return Playlist::dropMimeData(data, action, row, column, parent); } -inline Qt::ItemFlags promoted_flags(const QModelIndex& index) const { return Playlist::flags(index); } -inline QVariant promoted_headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const { return Playlist::headerData(section, orientation, role); } -inline QMimeData* promoted_mimeData(const QList& indexes) const { return Playlist::mimeData(indexes); } -inline QStringList promoted_mimeTypes() const { return Playlist::mimeTypes(); } -inline bool promoted_removeRows(int row, int count, const QModelIndex& parent = QModelIndex()) { return Playlist::removeRows(row, count, parent); } -inline int promoted_rowCount(const QModelIndex& arg__1 = QModelIndex()) const { return Playlist::rowCount(arg__1); } -inline bool promoted_setData(const QModelIndex& index, const QVariant& value, int role) { return Playlist::setData(index, value, role); } -inline void promoted_sort(int column, Qt::SortOrder order) { Playlist::sort(column, order); } -inline Qt::DropActions promoted_supportedDropActions() const { return Playlist::supportedDropActions(); } -}; - -class PythonQtWrapper_Playlist : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Column Role LastFMStatus ) -enum Column{ - Column_Title = Playlist::Column_Title, Column_Artist = Playlist::Column_Artist, Column_Album = Playlist::Column_Album, Column_AlbumArtist = Playlist::Column_AlbumArtist, Column_Composer = Playlist::Column_Composer, Column_Length = Playlist::Column_Length, Column_Track = Playlist::Column_Track, Column_Disc = Playlist::Column_Disc, Column_Year = Playlist::Column_Year, Column_Genre = Playlist::Column_Genre, Column_BPM = Playlist::Column_BPM, Column_Bitrate = Playlist::Column_Bitrate, Column_Samplerate = Playlist::Column_Samplerate, Column_Filename = Playlist::Column_Filename, Column_BaseFilename = Playlist::Column_BaseFilename, Column_Filesize = Playlist::Column_Filesize, Column_Filetype = Playlist::Column_Filetype, Column_DateCreated = Playlist::Column_DateCreated, Column_DateModified = Playlist::Column_DateModified, Column_Rating = Playlist::Column_Rating, Column_PlayCount = Playlist::Column_PlayCount, Column_SkipCount = Playlist::Column_SkipCount, Column_LastPlayed = Playlist::Column_LastPlayed, Column_Score = Playlist::Column_Score, Column_Comment = Playlist::Column_Comment, ColumnCount = Playlist::ColumnCount}; -enum Role{ - Role_IsCurrent = Playlist::Role_IsCurrent, Role_IsPaused = Playlist::Role_IsPaused, Role_StopAfter = Playlist::Role_StopAfter, Role_QueuePosition = Playlist::Role_QueuePosition, Role_CanSetRating = Playlist::Role_CanSetRating}; -enum LastFMStatus{ - LastFM_New = Playlist::LastFM_New, LastFM_Scrobbled = Playlist::LastFM_Scrobbled, LastFM_Seeked = Playlist::LastFM_Seeked, LastFM_Error = Playlist::LastFM_Error, LastFM_Invalid = Playlist::LastFM_Invalid, LastFM_Queued = Playlist::LastFM_Queued}; -public slots: -Playlist* new_Playlist(PlaylistBackend* backend, TaskManager* task_manager, LibraryBackend* library, int id, const QString& special_type = QString(), QObject* parent = 0); -void delete_Playlist(Playlist* obj) { delete obj; } - void AddSongInsertVetoListener(Playlist* theWrappedObject, SongInsertVetoListener* listener); - bool ApplyValidityOnCurrentSong(Playlist* theWrappedObject, const QUrl& url, bool valid); - bool static_Playlist_CompareItems(int column, Qt::SortOrder order, PlaylistItemPtr a, PlaylistItemPtr b); - void CurrentSongChanged(Playlist* theWrappedObject, const Song& metadata); - void DynamicModeChanged(Playlist* theWrappedObject, bool dynamic); - void EditingFinished(Playlist* theWrappedObject, const QModelIndex& index); - QList GetAllItems(Playlist* theWrappedObject) const; - QList GetAllSongs(Playlist* theWrappedObject) const; - quint64 GetTotalLength(Playlist* theWrappedObject) const; - void InsertItems(Playlist* theWrappedObject, const QList& items, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertLibraryItems(Playlist* theWrappedObject, const QList& items, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertSmartPlaylist(Playlist* theWrappedObject, smart_playlists::GeneratorPtr gen, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertSongs(Playlist* theWrappedObject, const QList& items, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertSongsOrLibraryItems(Playlist* theWrappedObject, const QList& items, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertUrls(Playlist* theWrappedObject, const QList& urls, int pos = -1, bool play_now = false, bool enqueue = false); - void InvalidateDeletedSongs(Playlist* theWrappedObject); - void LoadTracksError(Playlist* theWrappedObject, const QString& message); - void PlayRequested(Playlist* theWrappedObject, const QModelIndex& index); - void PlaylistChanged(Playlist* theWrappedObject); - void RateSong(Playlist* theWrappedObject, const QModelIndex& index, double rating); - void ReloadItems(Playlist* theWrappedObject, const QList& rows); - void RemoveDeletedSongs(Playlist* theWrappedObject); - void RemoveItemsWithoutUndo(Playlist* theWrappedObject, const QList& indices); - void RemoveSongInsertVetoListener(Playlist* theWrappedObject, SongInsertVetoListener* listener); - void Restore(Playlist* theWrappedObject); - void RestoreFinished(Playlist* theWrappedObject); - void Save(Playlist* theWrappedObject) const; - void StopAfter(Playlist* theWrappedObject, int row); - void UpdateItems(Playlist* theWrappedObject, const QList& songs); - QString static_Playlist_abbreviated_column_name(Playlist::Column column); - int columnCount(Playlist* theWrappedObject, const QModelIndex& arg__1 = QModelIndex()) const; - QMap column_alignments(Playlist* theWrappedObject) const; - bool static_Playlist_column_is_editable(Playlist::Column column); - QString static_Playlist_column_name(Playlist::Column column); - const QModelIndex current_index(Playlist* theWrappedObject) const; - PlaylistItemPtr current_item(Playlist* theWrappedObject) const; - Song current_item_metadata(Playlist* theWrappedObject) const; - int current_row(Playlist* theWrappedObject) const; - QVariant data(Playlist* theWrappedObject, const QModelIndex& index, int role = Qt::DisplayRole) const; - bool dropMimeData(Playlist* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent); - Qt::ItemFlags flags(Playlist* theWrappedObject, const QModelIndex& index) const; - Playlist::LastFMStatus get_lastfm_status(Playlist* theWrappedObject) const; - const bool has_item_at(Playlist* theWrappedObject, int index) const; - bool have_incremented_playcount(Playlist* theWrappedObject) const; - QVariant headerData(Playlist* theWrappedObject, int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; - int id(Playlist* theWrappedObject) const; - bool is_dynamic(Playlist* theWrappedObject) const; - const PlaylistItemPtr* item_at(Playlist* theWrappedObject, int index) const; - int last_played_row(Playlist* theWrappedObject) const; - QList library_items_by_id(Playlist* theWrappedObject, int id) const; - QMimeData* mimeData(Playlist* theWrappedObject, const QList& indexes) const; - QStringList mimeTypes(Playlist* theWrappedObject) const; - int next_row(Playlist* theWrappedObject) const; - int previous_row(Playlist* theWrappedObject) const; - QSortFilterProxyModel* proxy(Playlist* theWrappedObject) const; - bool removeRows(Playlist* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex()); - int rowCount(Playlist* theWrappedObject, const QModelIndex& arg__1 = QModelIndex()) const; - qint64 scrobble_point_nanosec(Playlist* theWrappedObject) const; - PlaylistSequence* sequence(Playlist* theWrappedObject) const; - bool setData(Playlist* theWrappedObject, const QModelIndex& index, const QVariant& value, int role); - void set_column_align_center(Playlist* theWrappedObject, int column); - void set_column_align_left(Playlist* theWrappedObject, int column); - void set_column_align_right(Playlist* theWrappedObject, int column); - void set_column_alignments(Playlist* theWrappedObject, const QMap& column_alignments); - bool static_Playlist_set_column_value(Song& song, Playlist::Column column, const QVariant& value); - void set_have_incremented_playcount(Playlist* theWrappedObject); - void set_lastfm_status(Playlist* theWrappedObject, Playlist::LastFMStatus status); - void set_sequence(Playlist* theWrappedObject, PlaylistSequence* v); - void set_special_type(Playlist* theWrappedObject, const QString& v); - void sort(Playlist* theWrappedObject, int column, Qt::SortOrder order); - QString special_type(Playlist* theWrappedObject) const; - bool stop_after_current(Playlist* theWrappedObject) const; - Qt::DropActions supportedDropActions(Playlist* theWrappedObject) const; - QUndoStack* undo_stack(Playlist* theWrappedObject) const; -}; - - - - - -class PythonQtShell_PlaylistBackend : public PlaylistBackend -{ -public: - PythonQtShell_PlaylistBackend(QObject* parent = 0):PlaylistBackend(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_PlaylistBackend : public QObject -{ Q_OBJECT -public: -public slots: -PlaylistBackend* new_PlaylistBackend(QObject* parent = 0); -void delete_PlaylistBackend(PlaylistBackend* obj) { delete obj; } - int CreatePlaylist(PlaylistBackend* theWrappedObject, const QString& name, const QString& special_type); - void RemovePlaylist(PlaylistBackend* theWrappedObject, int id); - void RenamePlaylist(PlaylistBackend* theWrappedObject, int id, const QString& new_name); - void SavePlaylistAsync(PlaylistBackend* theWrappedObject, int playlist, const QList& items, int last_played, smart_playlists::GeneratorPtr dynamic); - void SetLibrary(PlaylistBackend* theWrappedObject, LibraryBackend* library); - void SetPlaylistOrder(PlaylistBackend* theWrappedObject, const QList& ids); -}; - - - - - -class PythonQtShell_PlaylistContainer : public PlaylistContainer -{ -public: - PythonQtShell_PlaylistContainer(QWidget* parent = 0):PlaylistContainer(parent),_wrapper(NULL) {}; - -virtual void actionEvent(QActionEvent* arg__1); -virtual void changeEvent(QEvent* arg__1); -virtual void childEvent(QChildEvent* arg__1); -virtual void closeEvent(QCloseEvent* arg__1); -virtual void contextMenuEvent(QContextMenuEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual int devType() const; -virtual void dragEnterEvent(QDragEnterEvent* arg__1); -virtual void dragLeaveEvent(QDragLeaveEvent* arg__1); -virtual void dragMoveEvent(QDragMoveEvent* arg__1); -virtual void dropEvent(QDropEvent* arg__1); -virtual void enterEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void focusInEvent(QFocusEvent* arg__1); -virtual bool focusNextPrevChild(bool next); -virtual void focusOutEvent(QFocusEvent* arg__1); -virtual int heightForWidth(int arg__1) const; -virtual void hideEvent(QHideEvent* arg__1); -virtual void inputMethodEvent(QInputMethodEvent* arg__1); -virtual QVariant inputMethodQuery(Qt::InputMethodQuery arg__1) const; -virtual void keyPressEvent(QKeyEvent* arg__1); -virtual void keyReleaseEvent(QKeyEvent* arg__1); -virtual void languageChange(); -virtual void leaveEvent(QEvent* arg__1); -virtual int metric(QPaintDevice::PaintDeviceMetric arg__1) const; -virtual QSize minimumSizeHint() const; -virtual void mouseDoubleClickEvent(QMouseEvent* arg__1); -virtual void mouseMoveEvent(QMouseEvent* arg__1); -virtual void mousePressEvent(QMouseEvent* arg__1); -virtual void mouseReleaseEvent(QMouseEvent* arg__1); -virtual void moveEvent(QMoveEvent* arg__1); -virtual QPaintEngine* paintEngine() const; -virtual void paintEvent(QPaintEvent* arg__1); -virtual void resizeEvent(QResizeEvent* arg__1); -virtual void showEvent(QShowEvent* arg__1); -virtual QSize sizeHint() const; -virtual void tabletEvent(QTabletEvent* arg__1); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void wheelEvent(QWheelEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_PlaylistContainer : public PlaylistContainer -{ public: -inline void promoted_Remove(int id) { PlaylistContainer::Remove(id); } -inline void promoted_Rename(int id, const QString& new_name) { PlaylistContainer::Rename(id, new_name); } -inline void promoted_TabChanged(int id) { PlaylistContainer::TabChanged(id); } -inline void promoted_UndoRedoActionsChanged(QAction* undo, QAction* redo) { PlaylistContainer::UndoRedoActionsChanged(undo, redo); } -inline void promoted_ViewSelectionModelChanged() { PlaylistContainer::ViewSelectionModelChanged(); } -inline void promoted_resizeEvent(QResizeEvent* arg__1) { PlaylistContainer::resizeEvent(arg__1); } -}; - -class PythonQtWrapper_PlaylistContainer : public QObject -{ Q_OBJECT -public: -public slots: -PlaylistContainer* new_PlaylistContainer(QWidget* parent = 0); -void delete_PlaylistContainer(PlaylistContainer* obj) { delete obj; } - void Remove(PlaylistContainer* theWrappedObject, int id); - void Rename(PlaylistContainer* theWrappedObject, int id, const QString& new_name); - void SetActions(PlaylistContainer* theWrappedObject, QAction* new_playlist, QAction* save_playlist, QAction* load_playlist, QAction* next_playlist, QAction* previous_playlist); - void SetManager(PlaylistContainer* theWrappedObject, PlaylistManager* manager); - void TabChanged(PlaylistContainer* theWrappedObject, int id); - void UndoRedoActionsChanged(PlaylistContainer* theWrappedObject, QAction* undo, QAction* redo); - void ViewSelectionModelChanged(PlaylistContainer* theWrappedObject); - void resizeEvent(PlaylistContainer* theWrappedObject, QResizeEvent* arg__1); -}; - - - - - -class PythonQtShell_PlaylistItemPtr : public PlaylistItemPtr -{ -public: - PythonQtShell_PlaylistItemPtr():PlaylistItemPtr(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_PlaylistItemPtr : public QObject -{ Q_OBJECT -public: -public slots: -PlaylistItemPtr* new_PlaylistItemPtr(); -PlaylistItemPtr* new_PlaylistItemPtr(const PlaylistItemPtr& other) { -PythonQtShell_PlaylistItemPtr* a = new PythonQtShell_PlaylistItemPtr(); -*((PlaylistItemPtr*)a) = other; -return a; } -void delete_PlaylistItemPtr(PlaylistItemPtr* obj) { delete obj; } -}; - - - - - -class PythonQtShell_PlaylistManager : public PlaylistManager -{ -public: - PythonQtShell_PlaylistManager(TaskManager* task_manager, QObject* parent = 0):PlaylistManager(task_manager, parent),_wrapper(NULL) {}; - -virtual void ChangePlaylistOrder(const QList& ids); -virtual void ClearCurrent(); -virtual QList GetAllPlaylists() const; -virtual QString GetPlaylistName(int index) const; -virtual SpecialPlaylistType* GetPlaylistType(const QString& type) const; -virtual void InvalidateDeletedSongs(); -virtual void Load(const QString& filename); -virtual void New(const QString& name, const QList& songs = SongList(), const QString& special_type = QString()); -virtual void PlaySmartPlaylist(smart_playlists::GeneratorPtr generator, bool as_new, bool clear); -virtual void RateCurrentSong(double rating); -virtual void RateCurrentSong(int rating); -virtual void RegisterSpecialPlaylistType(SpecialPlaylistType* type); -virtual void Remove(int id); -virtual void RemoveDeletedSongs(); -virtual void Rename(int id, const QString& new_name); -virtual void Save(int id, const QString& filename); -virtual void SelectionChanged(const QItemSelection& selection); -virtual void SetActivePaused(); -virtual void SetActivePlaying(); -virtual void SetActivePlaylist(int id); -virtual void SetActiveStopped(); -virtual void SetActiveStreamMetadata(const QUrl& url, const Song& song); -virtual void SetActiveToCurrent(); -virtual void SetCurrentPlaylist(int id); -virtual void ShuffleCurrent(); -virtual void SongChangeRequestProcessed(const QUrl& url, bool valid); -virtual void UnregisterSpecialPlaylistType(SpecialPlaylistType* type); -virtual Playlist* active() const; -virtual int active_id() const; -virtual QItemSelection active_selection() const; -virtual void childEvent(QChildEvent* arg__1); -virtual Playlist* current() const; -virtual int current_id() const; -virtual QItemSelection current_selection() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual LibraryBackend* library_backend() const; -virtual PlaylistParser* parser() const; -virtual Playlist* playlist(int id) const; -virtual PlaylistBackend* playlist_backend() const; -virtual PlaylistContainer* playlist_container() const; -virtual QItemSelection selection(int id) const; -virtual PlaylistSequence* sequence() const; -virtual TaskManager* task_manager() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_PlaylistManager : public PlaylistManager -{ public: -inline void promoted_ChangePlaylistOrder(const QList& ids) { PlaylistManager::ChangePlaylistOrder(ids); } -inline void promoted_ClearCurrent() { PlaylistManager::ClearCurrent(); } -inline QList promoted_GetAllPlaylists() const { return PlaylistManager::GetAllPlaylists(); } -inline QString promoted_GetPlaylistName(int index) const { return PlaylistManager::GetPlaylistName(index); } -inline SpecialPlaylistType* promoted_GetPlaylistType(const QString& type) const { return PlaylistManager::GetPlaylistType(type); } -inline void promoted_InvalidateDeletedSongs() { PlaylistManager::InvalidateDeletedSongs(); } -inline void promoted_Load(const QString& filename) { PlaylistManager::Load(filename); } -inline void promoted_New(const QString& name, const QList& songs = SongList(), const QString& special_type = QString()) { PlaylistManager::New(name, songs, special_type); } -inline void promoted_PlaySmartPlaylist(smart_playlists::GeneratorPtr generator, bool as_new, bool clear) { PlaylistManager::PlaySmartPlaylist(generator, as_new, clear); } -inline void promoted_RateCurrentSong(double rating) { PlaylistManager::RateCurrentSong(rating); } -inline void promoted_RateCurrentSong(int rating) { PlaylistManager::RateCurrentSong(rating); } -inline void promoted_RegisterSpecialPlaylistType(SpecialPlaylistType* type) { PlaylistManager::RegisterSpecialPlaylistType(type); } -inline void promoted_Remove(int id) { PlaylistManager::Remove(id); } -inline void promoted_RemoveDeletedSongs() { PlaylistManager::RemoveDeletedSongs(); } -inline void promoted_Rename(int id, const QString& new_name) { PlaylistManager::Rename(id, new_name); } -inline void promoted_Save(int id, const QString& filename) { PlaylistManager::Save(id, filename); } -inline void promoted_SelectionChanged(const QItemSelection& selection) { PlaylistManager::SelectionChanged(selection); } -inline void promoted_SetActivePaused() { PlaylistManager::SetActivePaused(); } -inline void promoted_SetActivePlaying() { PlaylistManager::SetActivePlaying(); } -inline void promoted_SetActivePlaylist(int id) { PlaylistManager::SetActivePlaylist(id); } -inline void promoted_SetActiveStopped() { PlaylistManager::SetActiveStopped(); } -inline void promoted_SetActiveStreamMetadata(const QUrl& url, const Song& song) { PlaylistManager::SetActiveStreamMetadata(url, song); } -inline void promoted_SetActiveToCurrent() { PlaylistManager::SetActiveToCurrent(); } -inline void promoted_SetCurrentPlaylist(int id) { PlaylistManager::SetCurrentPlaylist(id); } -inline void promoted_ShuffleCurrent() { PlaylistManager::ShuffleCurrent(); } -inline void promoted_SongChangeRequestProcessed(const QUrl& url, bool valid) { PlaylistManager::SongChangeRequestProcessed(url, valid); } -inline void promoted_UnregisterSpecialPlaylistType(SpecialPlaylistType* type) { PlaylistManager::UnregisterSpecialPlaylistType(type); } -inline Playlist* promoted_active() const { return PlaylistManager::active(); } -inline int promoted_active_id() const { return PlaylistManager::active_id(); } -inline QItemSelection promoted_active_selection() const { return PlaylistManager::active_selection(); } -inline Playlist* promoted_current() const { return PlaylistManager::current(); } -inline int promoted_current_id() const { return PlaylistManager::current_id(); } -inline QItemSelection promoted_current_selection() const { return PlaylistManager::current_selection(); } -inline LibraryBackend* promoted_library_backend() const { return PlaylistManager::library_backend(); } -inline PlaylistParser* promoted_parser() const { return PlaylistManager::parser(); } -inline Playlist* promoted_playlist(int id) const { return PlaylistManager::playlist(id); } -inline PlaylistBackend* promoted_playlist_backend() const { return PlaylistManager::playlist_backend(); } -inline PlaylistContainer* promoted_playlist_container() const { return PlaylistManager::playlist_container(); } -inline QItemSelection promoted_selection(int id) const { return PlaylistManager::selection(id); } -inline PlaylistSequence* promoted_sequence() const { return PlaylistManager::sequence(); } -inline TaskManager* promoted_task_manager() const { return PlaylistManager::task_manager(); } -}; - -class PythonQtWrapper_PlaylistManager : public QObject -{ Q_OBJECT -public: -public slots: -PlaylistManager* new_PlaylistManager(TaskManager* task_manager, QObject* parent = 0); -void delete_PlaylistManager(PlaylistManager* obj) { delete obj; } - QList GetAllPlaylists(PlaylistManager* theWrappedObject) const; - QString static_PlaylistManager_GetNameForNewPlaylist(const QList& songs); - QString GetPlaylistName(PlaylistManager* theWrappedObject, int index) const; - SpecialPlaylistType* GetPlaylistType(PlaylistManager* theWrappedObject, const QString& type) const; - void Init(PlaylistManager* theWrappedObject, LibraryBackend* library_backend, PlaylistBackend* playlist_backend, PlaylistSequence* sequence, PlaylistContainer* playlist_container); - void InvalidateDeletedSongs(PlaylistManager* theWrappedObject); - void RegisterSpecialPlaylistType(PlaylistManager* theWrappedObject, SpecialPlaylistType* type); - void RemoveDeletedSongs(PlaylistManager* theWrappedObject); - void UnregisterSpecialPlaylistType(PlaylistManager* theWrappedObject, SpecialPlaylistType* type); - Playlist* active(PlaylistManager* theWrappedObject) const; - int active_id(PlaylistManager* theWrappedObject) const; - QItemSelection active_selection(PlaylistManager* theWrappedObject) const; - Playlist* current(PlaylistManager* theWrappedObject) const; - int current_id(PlaylistManager* theWrappedObject) const; - QItemSelection current_selection(PlaylistManager* theWrappedObject) const; - LibraryBackend* library_backend(PlaylistManager* theWrappedObject) const; - PlaylistParser* parser(PlaylistManager* theWrappedObject) const; - Playlist* playlist(PlaylistManager* theWrappedObject, int id) const; - PlaylistBackend* playlist_backend(PlaylistManager* theWrappedObject) const; - PlaylistContainer* playlist_container(PlaylistManager* theWrappedObject) const; - QItemSelection selection(PlaylistManager* theWrappedObject, int id) const; - PlaylistSequence* sequence(PlaylistManager* theWrappedObject) const; - TaskManager* task_manager(PlaylistManager* theWrappedObject) const; -}; - - - - - -class PythonQtShell_PlaylistManagerInterface : public PlaylistManagerInterface -{ -public: - PythonQtShell_PlaylistManagerInterface(QObject* parent):PlaylistManagerInterface(parent),_wrapper(NULL) {}; - -virtual void ChangePlaylistOrder(const QList& ids); -virtual void ClearCurrent(); -virtual QList GetAllPlaylists() const; -virtual QString GetPlaylistName(int index) const; -virtual SpecialPlaylistType* GetPlaylistType(const QString& type) const; -virtual void InvalidateDeletedSongs(); -virtual void Load(const QString& filename); -virtual void New(const QString& name, const QList& songs = SongList(), const QString& special_type = QString()); -virtual void PlaySmartPlaylist(smart_playlists::GeneratorPtr generator, bool as_new, bool clear); -virtual void RateCurrentSong(double rating); -virtual void RateCurrentSong(int rating); -virtual void RegisterSpecialPlaylistType(SpecialPlaylistType* type); -virtual void Remove(int id); -virtual void RemoveDeletedSongs(); -virtual void Rename(int id, const QString& new_name); -virtual void Save(int id, const QString& filename); -virtual void SelectionChanged(const QItemSelection& selection); -virtual void SetActivePaused(); -virtual void SetActivePlaying(); -virtual void SetActivePlaylist(int id); -virtual void SetActiveStopped(); -virtual void SetActiveStreamMetadata(const QUrl& url, const Song& song); -virtual void SetActiveToCurrent(); -virtual void SetCurrentPlaylist(int id); -virtual void ShuffleCurrent(); -virtual void SongChangeRequestProcessed(const QUrl& url, bool valid); -virtual void UnregisterSpecialPlaylistType(SpecialPlaylistType* type); -virtual Playlist* active() const; -virtual int active_id() const; -virtual QItemSelection active_selection() const; -virtual void childEvent(QChildEvent* arg__1); -virtual Playlist* current() const; -virtual int current_id() const; -virtual QItemSelection current_selection() const; -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual LibraryBackend* library_backend() const; -virtual PlaylistParser* parser() const; -virtual Playlist* playlist(int id) const; -virtual PlaylistBackend* playlist_backend() const; -virtual PlaylistContainer* playlist_container() const; -virtual QItemSelection selection(int id) const; -virtual PlaylistSequence* sequence() const; -virtual TaskManager* task_manager() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_PlaylistManagerInterface : public PlaylistManagerInterface -{ public: -inline void promoted_ActiveChanged(Playlist* new_playlist) { PlaylistManagerInterface::ActiveChanged(new_playlist); } -inline void promoted_CurrentChanged(Playlist* new_playlist) { PlaylistManagerInterface::CurrentChanged(new_playlist); } -inline void promoted_CurrentSongChanged(const Song& song) { PlaylistManagerInterface::CurrentSongChanged(song); } -inline void promoted_EditingFinished(const QModelIndex& index) { PlaylistManagerInterface::EditingFinished(index); } -inline void promoted_Error(const QString& message) { PlaylistManagerInterface::Error(message); } -inline void promoted_PlayRequested(const QModelIndex& index) { PlaylistManagerInterface::PlayRequested(index); } -inline void promoted_PlaylistAdded(int id, const QString& name) { PlaylistManagerInterface::PlaylistAdded(id, name); } -inline void promoted_PlaylistChanged(Playlist* playlist) { PlaylistManagerInterface::PlaylistChanged(playlist); } -inline void promoted_PlaylistManagerInitialized() { PlaylistManagerInterface::PlaylistManagerInitialized(); } -inline void promoted_PlaylistRemoved(int id) { PlaylistManagerInterface::PlaylistRemoved(id); } -inline void promoted_PlaylistRenamed(int id, const QString& new_name) { PlaylistManagerInterface::PlaylistRenamed(id, new_name); } -inline void promoted_SummaryTextChanged(const QString& summary) { PlaylistManagerInterface::SummaryTextChanged(summary); } -}; - -class PythonQtWrapper_PlaylistManagerInterface : public QObject -{ Q_OBJECT -public: -public slots: -PlaylistManagerInterface* new_PlaylistManagerInterface(QObject* parent); -void delete_PlaylistManagerInterface(PlaylistManagerInterface* obj) { delete obj; } - void ActiveChanged(PlaylistManagerInterface* theWrappedObject, Playlist* new_playlist); - void CurrentChanged(PlaylistManagerInterface* theWrappedObject, Playlist* new_playlist); - void CurrentSongChanged(PlaylistManagerInterface* theWrappedObject, const Song& song); - void EditingFinished(PlaylistManagerInterface* theWrappedObject, const QModelIndex& index); - void Error(PlaylistManagerInterface* theWrappedObject, const QString& message); - void PlayRequested(PlaylistManagerInterface* theWrappedObject, const QModelIndex& index); - void PlaylistAdded(PlaylistManagerInterface* theWrappedObject, int id, const QString& name); - void PlaylistChanged(PlaylistManagerInterface* theWrappedObject, Playlist* playlist); - void PlaylistManagerInitialized(PlaylistManagerInterface* theWrappedObject); - void PlaylistRemoved(PlaylistManagerInterface* theWrappedObject, int id); - void PlaylistRenamed(PlaylistManagerInterface* theWrappedObject, int id, const QString& new_name); - void SummaryTextChanged(PlaylistManagerInterface* theWrappedObject, const QString& summary); -}; - - - - - -class PythonQtShell_PlaylistParser : public PlaylistParser -{ -public: - PythonQtShell_PlaylistParser(LibraryBackendInterface* library, QObject* parent = 0):PlaylistParser(library, parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_PlaylistParser : public QObject -{ Q_OBJECT -public: -public slots: -PlaylistParser* new_PlaylistParser(LibraryBackendInterface* library, QObject* parent = 0); -void delete_PlaylistParser(PlaylistParser* obj) { delete obj; } - QList LoadFromDevice(PlaylistParser* theWrappedObject, QIODevice* device, const QString& path_hint = QString(), const QDir& dir_hint = QDir()) const; - QList LoadFromFile(PlaylistParser* theWrappedObject, const QString& filename) const; - void Save(PlaylistParser* theWrappedObject, const QList& songs, const QString& filename) const; - QString default_extension(PlaylistParser* theWrappedObject) const; - QString default_filter(PlaylistParser* theWrappedObject) const; - QStringList file_extensions(PlaylistParser* theWrappedObject) const; - QString filters(PlaylistParser* theWrappedObject) const; -}; - - - - - -class PythonQtPublicPromoter_PlaylistSequence : public PlaylistSequence -{ public: -inline void promoted_RepeatModeChanged(PlaylistSequence::RepeatMode mode) { PlaylistSequence::RepeatModeChanged(mode); } -inline void promoted_ShuffleModeChanged(PlaylistSequence::ShuffleMode mode) { PlaylistSequence::ShuffleModeChanged(mode); } -}; - -class PythonQtWrapper_PlaylistSequence : public QObject -{ Q_OBJECT -public: -Q_ENUMS(ShuffleMode RepeatMode ) -enum ShuffleMode{ - Shuffle_Off = PlaylistSequence::Shuffle_Off, Shuffle_All = PlaylistSequence::Shuffle_All, Shuffle_Album = PlaylistSequence::Shuffle_Album}; -enum RepeatMode{ - Repeat_Off = PlaylistSequence::Repeat_Off, Repeat_Track = PlaylistSequence::Repeat_Track, Repeat_Album = PlaylistSequence::Repeat_Album, Repeat_Playlist = PlaylistSequence::Repeat_Playlist}; -public slots: -void delete_PlaylistSequence(PlaylistSequence* obj) { delete obj; } - void RepeatModeChanged(PlaylistSequence* theWrappedObject, PlaylistSequence::RepeatMode mode); - void ShuffleModeChanged(PlaylistSequence* theWrappedObject, PlaylistSequence::ShuffleMode mode); - QMenu* repeat_menu(PlaylistSequence* theWrappedObject) const; - PlaylistSequence::RepeatMode repeat_mode(PlaylistSequence* theWrappedObject) const; - QMenu* shuffle_menu(PlaylistSequence* theWrappedObject) const; - PlaylistSequence::ShuffleMode shuffle_mode(PlaylistSequence* theWrappedObject) const; -}; - - - - - -class PythonQtWrapper_QueryOptions : public QObject -{ Q_OBJECT -public: -Q_ENUMS(QueryMode ) -enum QueryMode{ - QueryMode_All = QueryOptions::QueryMode_All, QueryMode_Duplicates = QueryOptions::QueryMode_Duplicates, QueryMode_Untagged = QueryOptions::QueryMode_Untagged}; -public slots: -QueryOptions* new_QueryOptions(); -QueryOptions* new_QueryOptions(const QueryOptions& other) { -QueryOptions* a = new QueryOptions(); -*((QueryOptions*)a) = other; -return a; } -void delete_QueryOptions(QueryOptions* obj) { delete obj; } - bool Matches(QueryOptions* theWrappedObject, const Song& song) const; - QString filter(QueryOptions* theWrappedObject) const; - int max_age(QueryOptions* theWrappedObject) const; - QueryOptions::QueryMode query_mode(QueryOptions* theWrappedObject) const; - void set_filter(QueryOptions* theWrappedObject, const QString& filter); - void set_max_age(QueryOptions* theWrappedObject, int max_age); - void set_query_mode(QueryOptions* theWrappedObject, QueryOptions::QueryMode query_mode); -}; - - - - - -class PythonQtShell_Song : public Song -{ -public: - PythonQtShell_Song():Song(),_wrapper(NULL) {}; - PythonQtShell_Song(const Song& other):Song(other),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_Song : public QObject -{ Q_OBJECT -public: -Q_ENUMS(FileType ) -enum FileType{ - Type_Unknown = Song::Type_Unknown, Type_Asf = Song::Type_Asf, Type_Flac = Song::Type_Flac, Type_Mp4 = Song::Type_Mp4, Type_Mpc = Song::Type_Mpc, Type_Mpeg = Song::Type_Mpeg, Type_OggFlac = Song::Type_OggFlac, Type_OggSpeex = Song::Type_OggSpeex, Type_OggVorbis = Song::Type_OggVorbis, Type_Aiff = Song::Type_Aiff, Type_Wav = Song::Type_Wav, Type_TrueAudio = Song::Type_TrueAudio, Type_Cdda = Song::Type_Cdda, Type_Stream = Song::Type_Stream}; -public slots: -Song* new_Song(); -Song* new_Song(const Song& other); -void delete_Song(Song* obj) { delete obj; } - QString static_Song_Decode(const QString& tag, const QTextCodec* codec = NULL); - bool HasProperMediaFile(Song* theWrappedObject) const; - void Init(Song* theWrappedObject, const QString& title, const QString& artist, const QString& album, qint64 beginning, qint64 end); - void Init(Song* theWrappedObject, const QString& title, const QString& artist, const QString& album, qint64 length_nanosec); - void InitFromFile(Song* theWrappedObject, const QString& filename, int directory_id); - void InitFromFilePartial(Song* theWrappedObject, const QString& filename); - bool IsEditable(Song* theWrappedObject) const; - bool IsMetadataEqual(Song* theWrappedObject, const Song& other) const; - bool IsOnSameAlbum(Song* theWrappedObject, const Song& other) const; - QString static_Song_JoinSpec(const QString& table); - QImage static_Song_LoadEmbeddedArt(const QString& filename); - QString PrettyLength(Song* theWrappedObject) const; - QString PrettyTitle(Song* theWrappedObject) const; - QString PrettyTitleWithArtist(Song* theWrappedObject) const; - QString PrettyYear(Song* theWrappedObject) const; - bool Save(Song* theWrappedObject) const; - QString TextForFiletype(Song* theWrappedObject) const; - QString static_Song_TextForFiletype(Song::FileType type); - QString TitleWithCompilationArtist(Song* theWrappedObject) const; - const QString* album(Song* theWrappedObject) const; - const QString* albumartist(Song* theWrappedObject) const; - const QString* art_automatic(Song* theWrappedObject) const; - const QString* art_manual(Song* theWrappedObject) const; - const QString* artist(Song* theWrappedObject) const; - const QString* basefilename(Song* theWrappedObject) const; - qint64 beginning_nanosec(Song* theWrappedObject) const; - int bitrate(Song* theWrappedObject) const; - float bpm(Song* theWrappedObject) const; - const QString* comment(Song* theWrappedObject) const; - const QString* composer(Song* theWrappedObject) const; - uint ctime(Song* theWrappedObject) const; - const QString* cue_path(Song* theWrappedObject) const; - int directory_id(Song* theWrappedObject) const; - int disc(Song* theWrappedObject) const; - qint64 end_nanosec(Song* theWrappedObject) const; - int filesize(Song* theWrappedObject) const; - Song::FileType filetype(Song* theWrappedObject) const; - const QString* genre(Song* theWrappedObject) const; - bool has_cue(Song* theWrappedObject) const; - bool has_embedded_cover(Song* theWrappedObject) const; - bool has_manually_unset_cover(Song* theWrappedObject) const; - int id(Song* theWrappedObject) const; - const QImage* image(Song* theWrappedObject) const; - bool is_cdda(Song* theWrappedObject) const; - bool is_compilation(Song* theWrappedObject) const; - bool is_stream(Song* theWrappedObject) const; - bool is_unavailable(Song* theWrappedObject) const; - bool is_valid(Song* theWrappedObject) const; - int lastplayed(Song* theWrappedObject) const; - qint64 length_nanosec(Song* theWrappedObject) const; - void manually_unset_cover(Song* theWrappedObject); - uint mtime(Song* theWrappedObject) const; - bool __eq__(Song* theWrappedObject, const Song& other) const; - int playcount(Song* theWrappedObject) const; - float rating(Song* theWrappedObject) const; - int samplerate(Song* theWrappedObject) const; - int score(Song* theWrappedObject) const; - void set_album(Song* theWrappedObject, const QString& v); - void set_albumartist(Song* theWrappedObject, const QString& v); - void set_art_automatic(Song* theWrappedObject, const QString& v); - void set_art_manual(Song* theWrappedObject, const QString& v); - void set_artist(Song* theWrappedObject, const QString& v); - void set_basefilename(Song* theWrappedObject, const QString& v); - void set_beginning_nanosec(Song* theWrappedObject, qint64 v); - void set_bitrate(Song* theWrappedObject, int v); - void set_bpm(Song* theWrappedObject, float v); - void set_comment(Song* theWrappedObject, const QString& v); - void set_compilation(Song* theWrappedObject, bool v); - void set_composer(Song* theWrappedObject, const QString& v); - void set_ctime(Song* theWrappedObject, int v); - void set_cue_path(Song* theWrappedObject, const QString& v); - void set_directory_id(Song* theWrappedObject, int v); - void set_disc(Song* theWrappedObject, int v); - void set_embedded_cover(Song* theWrappedObject); - void set_end_nanosec(Song* theWrappedObject, qint64 v); - void set_filesize(Song* theWrappedObject, int v); - void set_filetype(Song* theWrappedObject, Song::FileType v); - void set_forced_compilation_off(Song* theWrappedObject, bool v); - void set_forced_compilation_on(Song* theWrappedObject, bool v); - void set_genre(Song* theWrappedObject, const QString& v); - void set_genre_id3(Song* theWrappedObject, int id); - void set_id(Song* theWrappedObject, int id); - void set_image(Song* theWrappedObject, const QImage& i); - void set_lastplayed(Song* theWrappedObject, int v); - void set_length_nanosec(Song* theWrappedObject, qint64 v); - void set_mtime(Song* theWrappedObject, int v); - void set_playcount(Song* theWrappedObject, int v); - void set_rating(Song* theWrappedObject, float v); - void set_sampler(Song* theWrappedObject, bool v); - void set_samplerate(Song* theWrappedObject, int v); - void set_score(Song* theWrappedObject, int v); - void set_skipcount(Song* theWrappedObject, int v); - void set_title(Song* theWrappedObject, const QString& v); - void set_track(Song* theWrappedObject, int v); - void set_unavailable(Song* theWrappedObject, bool v); - void set_url(Song* theWrappedObject, const QUrl& v); - void set_valid(Song* theWrappedObject, bool v); - void set_year(Song* theWrappedObject, int v); - int skipcount(Song* theWrappedObject) const; - const QString* title(Song* theWrappedObject) const; - int track(Song* theWrappedObject) const; - const QUrl* url(Song* theWrappedObject) const; - int year(Song* theWrappedObject) const; -}; - - - - - -class PythonQtShell_SongInsertVetoListener : public SongInsertVetoListener -{ -public: - PythonQtShell_SongInsertVetoListener():SongInsertVetoListener(),_wrapper(NULL) {}; - -virtual QList AboutToInsertSongs(const QList& old_songs, const QList& new_songs); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_SongInsertVetoListener : public QObject -{ Q_OBJECT -public: -public slots: -SongInsertVetoListener* new_SongInsertVetoListener(); -void delete_SongInsertVetoListener(SongInsertVetoListener* obj) { delete obj; } -}; - - - - - -class PythonQtShell_SpecialPlaylistType : public SpecialPlaylistType -{ -public: - PythonQtShell_SpecialPlaylistType():SpecialPlaylistType(),_wrapper(NULL) {}; - -virtual void DidYouMeanClicked(const QString& text, Playlist* playlist); -virtual void Search(const QString& text, Playlist* playlist); -virtual QString empty_playlist_text(Playlist* playlist) const; -virtual bool has_special_search_behaviour(Playlist* playlist) const; -virtual QIcon icon(Playlist* playlist) const; -virtual QString name() const; -virtual QString search_hint_text(Playlist* playlist) const; - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_SpecialPlaylistType : public SpecialPlaylistType -{ public: -inline void promoted_DidYouMeanClicked(const QString& text, Playlist* playlist) { SpecialPlaylistType::DidYouMeanClicked(text, playlist); } -inline void promoted_Search(const QString& text, Playlist* playlist) { SpecialPlaylistType::Search(text, playlist); } -inline QString promoted_empty_playlist_text(Playlist* playlist) const { return SpecialPlaylistType::empty_playlist_text(playlist); } -inline bool promoted_has_special_search_behaviour(Playlist* playlist) const { return SpecialPlaylistType::has_special_search_behaviour(playlist); } -inline QIcon promoted_icon(Playlist* playlist) const { return SpecialPlaylistType::icon(playlist); } -inline QString promoted_search_hint_text(Playlist* playlist) const { return SpecialPlaylistType::search_hint_text(playlist); } -}; - -class PythonQtWrapper_SpecialPlaylistType : public QObject -{ Q_OBJECT -public: -public slots: -SpecialPlaylistType* new_SpecialPlaylistType(); -void delete_SpecialPlaylistType(SpecialPlaylistType* obj) { delete obj; } - void DidYouMeanClicked(SpecialPlaylistType* theWrappedObject, const QString& text, Playlist* playlist); - void Search(SpecialPlaylistType* theWrappedObject, const QString& text, Playlist* playlist); - QString empty_playlist_text(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const; - bool has_special_search_behaviour(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const; - QIcon icon(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const; - QString search_hint_text(SpecialPlaylistType* theWrappedObject, Playlist* playlist) const; -}; - - - - - -class PythonQtShell_Subdirectory : public Subdirectory -{ -public: - PythonQtShell_Subdirectory():Subdirectory(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_Subdirectory : public QObject -{ Q_OBJECT -public: -public slots: -Subdirectory* new_Subdirectory(); -Subdirectory* new_Subdirectory(const Subdirectory& other) { -PythonQtShell_Subdirectory* a = new PythonQtShell_Subdirectory(); -*((Subdirectory*)a) = other; -return a; } -void delete_Subdirectory(Subdirectory* obj) { delete obj; } -void py_set_mtime(Subdirectory* theWrappedObject, uint mtime){ theWrappedObject->mtime = mtime; } -uint py_get_mtime(Subdirectory* theWrappedObject){ return theWrappedObject->mtime; } -void py_set_path(Subdirectory* theWrappedObject, QString path){ theWrappedObject->path = path; } -QString py_get_path(Subdirectory* theWrappedObject){ return theWrappedObject->path; } -void py_set_directory_id(Subdirectory* theWrappedObject, int directory_id){ theWrappedObject->directory_id = directory_id; } -int py_get_directory_id(Subdirectory* theWrappedObject){ return theWrappedObject->directory_id; } -}; - - diff --git a/src/generated_cpp/clementine/clementine1.cpp b/src/generated_cpp/clementine/clementine1.cpp deleted file mode 100644 index 4a1f9c7f3..000000000 --- a/src/generated_cpp/clementine/clementine1.cpp +++ /dev/null @@ -1,764 +0,0 @@ -#include "clementine1.h" -#define protected public -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#undef protected - - -void PythonQtShell_TaskManager::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - TaskManager::childEvent(arg__1); -} -void PythonQtShell_TaskManager::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - TaskManager::customEvent(arg__1); -} -bool PythonQtShell_TaskManager::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return TaskManager::event(arg__1); -} -bool PythonQtShell_TaskManager::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return TaskManager::eventFilter(arg__1, arg__2); -} -void PythonQtShell_TaskManager::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - TaskManager::timerEvent(arg__1); -} -TaskManager* PythonQtWrapper_TaskManager::new_TaskManager(QObject* parent) -{ -return new PythonQtShell_TaskManager(parent); } - -QList PythonQtWrapper_TaskManager::GetTasks(TaskManager* theWrappedObject) -{ - return ( theWrappedObject->GetTasks()); -} - -void PythonQtWrapper_TaskManager::PauseLibraryWatchers(TaskManager* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_TaskManager*)theWrappedObject)->promoted_PauseLibraryWatchers()); -} - -void PythonQtWrapper_TaskManager::ResumeLibraryWatchers(TaskManager* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_TaskManager*)theWrappedObject)->promoted_ResumeLibraryWatchers()); -} - -void PythonQtWrapper_TaskManager::SetTaskBlocksLibraryScans(TaskManager* theWrappedObject, int id) -{ - ( theWrappedObject->SetTaskBlocksLibraryScans(id)); -} - -void PythonQtWrapper_TaskManager::SetTaskFinished(TaskManager* theWrappedObject, int id) -{ - ( theWrappedObject->SetTaskFinished(id)); -} - -void PythonQtWrapper_TaskManager::SetTaskProgress(TaskManager* theWrappedObject, int id, int progress, int max) -{ - ( theWrappedObject->SetTaskProgress(id, progress, max)); -} - -int PythonQtWrapper_TaskManager::StartTask(TaskManager* theWrappedObject, const QString& name) -{ - return ( theWrappedObject->StartTask(name)); -} - -void PythonQtWrapper_TaskManager::TasksChanged(TaskManager* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_TaskManager*)theWrappedObject)->promoted_TasksChanged()); -} - - - -TaskManager_Task* PythonQtWrapper_TaskManager_Task::new_TaskManager_Task() -{ -return new PythonQtShell_TaskManager_Task(); } - - - -qint64 PythonQtShell_ThreadSafeNetworkDiskCache::cacheSize() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "cacheSize"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"qint64"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - qint64 returnValue = 0; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("cacheSize", methodInfo, result); - } else { - returnValue = *((qint64*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return ThreadSafeNetworkDiskCache::cacheSize(); -} -void PythonQtShell_ThreadSafeNetworkDiskCache::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - ThreadSafeNetworkDiskCache::childEvent(arg__1); -} -void PythonQtShell_ThreadSafeNetworkDiskCache::clear() -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={""}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - ThreadSafeNetworkDiskCache::clear(); -} -void PythonQtShell_ThreadSafeNetworkDiskCache::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - ThreadSafeNetworkDiskCache::customEvent(arg__1); -} -QIODevice* PythonQtShell_ThreadSafeNetworkDiskCache::data(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); - } else { - returnValue = *((QIODevice**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return ThreadSafeNetworkDiskCache::data(url); -} -bool PythonQtShell_ThreadSafeNetworkDiskCache::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return ThreadSafeNetworkDiskCache::event(arg__1); -} -bool PythonQtShell_ThreadSafeNetworkDiskCache::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return ThreadSafeNetworkDiskCache::eventFilter(arg__1, arg__2); -} -void PythonQtShell_ThreadSafeNetworkDiskCache::insert(QIODevice* device) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insert"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QIODevice*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&device}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - ThreadSafeNetworkDiskCache::insert(device); -} -QNetworkCacheMetaData PythonQtShell_ThreadSafeNetworkDiskCache::metaData(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metaData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QNetworkCacheMetaData" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QNetworkCacheMetaData returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("metaData", methodInfo, result); - } else { - returnValue = *((QNetworkCacheMetaData*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return ThreadSafeNetworkDiskCache::metaData(url); -} -QIODevice* PythonQtShell_ThreadSafeNetworkDiskCache::prepare(const QNetworkCacheMetaData& metaData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "prepare"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QIODevice*" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - QIODevice* returnValue = 0; - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("prepare", methodInfo, result); - } else { - returnValue = *((QIODevice**)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return ThreadSafeNetworkDiskCache::prepare(metaData); -} -bool PythonQtShell_ThreadSafeNetworkDiskCache::remove(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "remove"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("remove", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return ThreadSafeNetworkDiskCache::remove(url); -} -void PythonQtShell_ThreadSafeNetworkDiskCache::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - ThreadSafeNetworkDiskCache::timerEvent(arg__1); -} -void PythonQtShell_ThreadSafeNetworkDiskCache::updateMetaData(const QNetworkCacheMetaData& metaData) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "updateMetaData"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "const QNetworkCacheMetaData&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&metaData}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - ThreadSafeNetworkDiskCache::updateMetaData(metaData); -} -ThreadSafeNetworkDiskCache* PythonQtWrapper_ThreadSafeNetworkDiskCache::new_ThreadSafeNetworkDiskCache(QObject* parent) -{ -return new PythonQtShell_ThreadSafeNetworkDiskCache(parent); } - -qint64 PythonQtWrapper_ThreadSafeNetworkDiskCache::cacheSize(ThreadSafeNetworkDiskCache* theWrappedObject) const -{ - return ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_cacheSize()); -} - -void PythonQtWrapper_ThreadSafeNetworkDiskCache::clear(ThreadSafeNetworkDiskCache* theWrappedObject) -{ - ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_clear()); -} - -QIODevice* PythonQtWrapper_ThreadSafeNetworkDiskCache::data(ThreadSafeNetworkDiskCache* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_data(url)); -} - -void PythonQtWrapper_ThreadSafeNetworkDiskCache::insert(ThreadSafeNetworkDiskCache* theWrappedObject, QIODevice* device) -{ - ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_insert(device)); -} - -QNetworkCacheMetaData PythonQtWrapper_ThreadSafeNetworkDiskCache::metaData(ThreadSafeNetworkDiskCache* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_metaData(url)); -} - -QIODevice* PythonQtWrapper_ThreadSafeNetworkDiskCache::prepare(ThreadSafeNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData) -{ - return ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_prepare(metaData)); -} - -bool PythonQtWrapper_ThreadSafeNetworkDiskCache::remove(ThreadSafeNetworkDiskCache* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_remove(url)); -} - -void PythonQtWrapper_ThreadSafeNetworkDiskCache::updateMetaData(ThreadSafeNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData) -{ - ( ((PythonQtPublicPromoter_ThreadSafeNetworkDiskCache*)theWrappedObject)->promoted_updateMetaData(metaData)); -} - - - -UrlHandler_LoadResult PythonQtShell_UrlHandler::LoadNext(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "LoadNext"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"UrlHandler_LoadResult" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - UrlHandler_LoadResult returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("LoadNext", methodInfo, result); - } else { - returnValue = *((UrlHandler_LoadResult*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return UrlHandler::LoadNext(url); -} -UrlHandler_LoadResult PythonQtShell_UrlHandler::StartLoading(const QUrl& url) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "StartLoading"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"UrlHandler_LoadResult" , "const QUrl&"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - UrlHandler_LoadResult returnValue; - void* args[2] = {NULL, (void*)&url}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("StartLoading", methodInfo, result); - } else { - returnValue = *((UrlHandler_LoadResult*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return UrlHandler::StartLoading(url); -} -void PythonQtShell_UrlHandler::childEvent(QChildEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QChildEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - UrlHandler::childEvent(arg__1); -} -void PythonQtShell_UrlHandler::customEvent(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - UrlHandler::customEvent(arg__1); -} -bool PythonQtShell_UrlHandler::event(QEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - bool returnValue = 0; - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return UrlHandler::event(arg__1); -} -bool PythonQtShell_UrlHandler::eventFilter(QObject* arg__1, QEvent* arg__2) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - bool returnValue = 0; - void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result); - } else { - returnValue = *((bool*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return UrlHandler::eventFilter(arg__1, arg__2); -} -QString PythonQtShell_UrlHandler::scheme() const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scheme"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"QString"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); - QString returnValue; - void* args[1] = {NULL}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { - args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); - if (args[0]!=&returnValue) { - if (args[0]==NULL) { - PythonQt::priv()->handleVirtualOverloadReturnError("scheme", methodInfo, result); - } else { - returnValue = *((QString*)args[0]); - } - } - } - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return returnValue; - } - Py_XDECREF(obj); -} - return QString(); -} -void PythonQtShell_UrlHandler::timerEvent(QTimerEvent* arg__1) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { - static const char* argumentList[] ={"" , "QTimerEvent*"}; - static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&arg__1}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } - Py_XDECREF(obj); -} - UrlHandler::timerEvent(arg__1); -} -UrlHandler* PythonQtWrapper_UrlHandler::new_UrlHandler(QObject* parent) -{ -return new PythonQtShell_UrlHandler(parent); } - -void PythonQtWrapper_UrlHandler::AsyncLoadComplete(UrlHandler* theWrappedObject, const UrlHandler_LoadResult& result) -{ - ( ((PythonQtPublicPromoter_UrlHandler*)theWrappedObject)->promoted_AsyncLoadComplete(result)); -} - -UrlHandler_LoadResult PythonQtWrapper_UrlHandler::LoadNext(UrlHandler* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_UrlHandler*)theWrappedObject)->promoted_LoadNext(url)); -} - -UrlHandler_LoadResult PythonQtWrapper_UrlHandler::StartLoading(UrlHandler* theWrappedObject, const QUrl& url) -{ - return ( ((PythonQtPublicPromoter_UrlHandler*)theWrappedObject)->promoted_StartLoading(url)); -} - - - -UrlHandler_LoadResult* PythonQtWrapper_UrlHandler_LoadResult::new_UrlHandler_LoadResult(const QUrl& original_url, UrlHandler_LoadResult::Type type, const QUrl& media_url) -{ -return new PythonQtShell_UrlHandler_LoadResult(original_url, type, media_url); } - - diff --git a/src/generated_cpp/clementine/clementine1.h b/src/generated_cpp/clementine/clementine1.h deleted file mode 100644 index 45e000832..000000000 --- a/src/generated_cpp/clementine/clementine1.h +++ /dev/null @@ -1,215 +0,0 @@ -#define protected public -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#undef protected - - - - -class PythonQtShell_TaskManager : public TaskManager -{ -public: - PythonQtShell_TaskManager(QObject* parent = 0):TaskManager(parent),_wrapper(NULL) {}; - -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_TaskManager : public TaskManager -{ public: -inline void promoted_PauseLibraryWatchers() { TaskManager::PauseLibraryWatchers(); } -inline void promoted_ResumeLibraryWatchers() { TaskManager::ResumeLibraryWatchers(); } -inline void promoted_TasksChanged() { TaskManager::TasksChanged(); } -}; - -class PythonQtWrapper_TaskManager : public QObject -{ Q_OBJECT -public: -public slots: -TaskManager* new_TaskManager(QObject* parent = 0); -void delete_TaskManager(TaskManager* obj) { delete obj; } - QList GetTasks(TaskManager* theWrappedObject); - void PauseLibraryWatchers(TaskManager* theWrappedObject); - void ResumeLibraryWatchers(TaskManager* theWrappedObject); - void SetTaskBlocksLibraryScans(TaskManager* theWrappedObject, int id); - void SetTaskFinished(TaskManager* theWrappedObject, int id); - void SetTaskProgress(TaskManager* theWrappedObject, int id, int progress, int max = 0); - int StartTask(TaskManager* theWrappedObject, const QString& name); - void TasksChanged(TaskManager* theWrappedObject); -}; - - - - - -class PythonQtShell_TaskManager_Task : public TaskManager_Task -{ -public: - PythonQtShell_TaskManager_Task():TaskManager_Task(),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_TaskManager_Task : public QObject -{ Q_OBJECT -public: -public slots: -TaskManager_Task* new_TaskManager_Task(); -TaskManager_Task* new_TaskManager_Task(const TaskManager_Task& other) { -PythonQtShell_TaskManager_Task* a = new PythonQtShell_TaskManager_Task(); -*((TaskManager_Task*)a) = other; -return a; } -void delete_TaskManager_Task(TaskManager_Task* obj) { delete obj; } -void py_set_progress_max(TaskManager_Task* theWrappedObject, int progress_max){ theWrappedObject->progress_max = progress_max; } -int py_get_progress_max(TaskManager_Task* theWrappedObject){ return theWrappedObject->progress_max; } -void py_set_progress(TaskManager_Task* theWrappedObject, int progress){ theWrappedObject->progress = progress; } -int py_get_progress(TaskManager_Task* theWrappedObject){ return theWrappedObject->progress; } -void py_set_id(TaskManager_Task* theWrappedObject, int id){ theWrappedObject->id = id; } -int py_get_id(TaskManager_Task* theWrappedObject){ return theWrappedObject->id; } -void py_set_name(TaskManager_Task* theWrappedObject, QString name){ theWrappedObject->name = name; } -QString py_get_name(TaskManager_Task* theWrappedObject){ return theWrappedObject->name; } -void py_set_blocks_library_scans(TaskManager_Task* theWrappedObject, bool blocks_library_scans){ theWrappedObject->blocks_library_scans = blocks_library_scans; } -bool py_get_blocks_library_scans(TaskManager_Task* theWrappedObject){ return theWrappedObject->blocks_library_scans; } -}; - - - - - -class PythonQtShell_ThreadSafeNetworkDiskCache : public ThreadSafeNetworkDiskCache -{ -public: - PythonQtShell_ThreadSafeNetworkDiskCache(QObject* parent):ThreadSafeNetworkDiskCache(parent),_wrapper(NULL) {}; - -virtual qint64 cacheSize() const; -virtual void childEvent(QChildEvent* arg__1); -virtual void clear(); -virtual void customEvent(QEvent* arg__1); -virtual QIODevice* data(const QUrl& url); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual void insert(QIODevice* device); -virtual QNetworkCacheMetaData metaData(const QUrl& url); -virtual QIODevice* prepare(const QNetworkCacheMetaData& metaData); -virtual bool remove(const QUrl& url); -virtual void timerEvent(QTimerEvent* arg__1); -virtual void updateMetaData(const QNetworkCacheMetaData& metaData); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_ThreadSafeNetworkDiskCache : public ThreadSafeNetworkDiskCache -{ public: -inline qint64 promoted_cacheSize() const { return ThreadSafeNetworkDiskCache::cacheSize(); } -inline void promoted_clear() { ThreadSafeNetworkDiskCache::clear(); } -inline QIODevice* promoted_data(const QUrl& url) { return ThreadSafeNetworkDiskCache::data(url); } -inline void promoted_insert(QIODevice* device) { ThreadSafeNetworkDiskCache::insert(device); } -inline QNetworkCacheMetaData promoted_metaData(const QUrl& url) { return ThreadSafeNetworkDiskCache::metaData(url); } -inline QIODevice* promoted_prepare(const QNetworkCacheMetaData& metaData) { return ThreadSafeNetworkDiskCache::prepare(metaData); } -inline bool promoted_remove(const QUrl& url) { return ThreadSafeNetworkDiskCache::remove(url); } -inline void promoted_updateMetaData(const QNetworkCacheMetaData& metaData) { ThreadSafeNetworkDiskCache::updateMetaData(metaData); } -}; - -class PythonQtWrapper_ThreadSafeNetworkDiskCache : public QObject -{ Q_OBJECT -public: -public slots: -ThreadSafeNetworkDiskCache* new_ThreadSafeNetworkDiskCache(QObject* parent); -void delete_ThreadSafeNetworkDiskCache(ThreadSafeNetworkDiskCache* obj) { delete obj; } - qint64 cacheSize(ThreadSafeNetworkDiskCache* theWrappedObject) const; - void clear(ThreadSafeNetworkDiskCache* theWrappedObject); - QIODevice* data(ThreadSafeNetworkDiskCache* theWrappedObject, const QUrl& url); - void insert(ThreadSafeNetworkDiskCache* theWrappedObject, QIODevice* device); - QNetworkCacheMetaData metaData(ThreadSafeNetworkDiskCache* theWrappedObject, const QUrl& url); - QIODevice* prepare(ThreadSafeNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData); - bool remove(ThreadSafeNetworkDiskCache* theWrappedObject, const QUrl& url); - void updateMetaData(ThreadSafeNetworkDiskCache* theWrappedObject, const QNetworkCacheMetaData& metaData); -}; - - - - - -class PythonQtShell_UrlHandler : public UrlHandler -{ -public: - PythonQtShell_UrlHandler(QObject* parent = 0):UrlHandler(parent),_wrapper(NULL) {}; - -virtual UrlHandler_LoadResult LoadNext(const QUrl& url); -virtual UrlHandler_LoadResult StartLoading(const QUrl& url); -virtual void childEvent(QChildEvent* arg__1); -virtual void customEvent(QEvent* arg__1); -virtual bool event(QEvent* arg__1); -virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); -virtual QString scheme() const; -virtual void timerEvent(QTimerEvent* arg__1); - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtPublicPromoter_UrlHandler : public UrlHandler -{ public: -inline void promoted_AsyncLoadComplete(const UrlHandler_LoadResult& result) { UrlHandler::AsyncLoadComplete(result); } -inline UrlHandler_LoadResult promoted_LoadNext(const QUrl& url) { return UrlHandler::LoadNext(url); } -inline UrlHandler_LoadResult promoted_StartLoading(const QUrl& url) { return UrlHandler::StartLoading(url); } -}; - -class PythonQtWrapper_UrlHandler : public QObject -{ Q_OBJECT -public: -public slots: -UrlHandler* new_UrlHandler(QObject* parent = 0); -void delete_UrlHandler(UrlHandler* obj) { delete obj; } - void AsyncLoadComplete(UrlHandler* theWrappedObject, const UrlHandler_LoadResult& result); - UrlHandler_LoadResult LoadNext(UrlHandler* theWrappedObject, const QUrl& url); - UrlHandler_LoadResult StartLoading(UrlHandler* theWrappedObject, const QUrl& url); -}; - - - - - -class PythonQtShell_UrlHandler_LoadResult : public UrlHandler_LoadResult -{ -public: - PythonQtShell_UrlHandler_LoadResult(const QUrl& original_url = QUrl(), UrlHandler_LoadResult::Type type = UrlHandler_LoadResult::NoMoreTracks, const QUrl& media_url = QUrl()):UrlHandler_LoadResult(original_url, type, media_url),_wrapper(NULL) {}; - - - PythonQtInstanceWrapper* _wrapper; -}; - -class PythonQtWrapper_UrlHandler_LoadResult : public QObject -{ Q_OBJECT -public: -Q_ENUMS(Type ) -enum Type{ - NoMoreTracks = UrlHandler_LoadResult::NoMoreTracks, WillLoadAsynchronously = UrlHandler_LoadResult::WillLoadAsynchronously, TrackAvailable = UrlHandler_LoadResult::TrackAvailable}; -public slots: -UrlHandler_LoadResult* new_UrlHandler_LoadResult(const QUrl& original_url = QUrl(), UrlHandler_LoadResult::Type type = UrlHandler_LoadResult::NoMoreTracks, const QUrl& media_url = QUrl()); -void delete_UrlHandler_LoadResult(UrlHandler_LoadResult* obj) { delete obj; } -void py_set_original_url_(UrlHandler_LoadResult* theWrappedObject, QUrl original_url_){ theWrappedObject->original_url_ = original_url_; } -QUrl py_get_original_url_(UrlHandler_LoadResult* theWrappedObject){ return theWrappedObject->original_url_; } -void py_set_media_url_(UrlHandler_LoadResult* theWrappedObject, QUrl media_url_){ theWrappedObject->media_url_ = media_url_; } -QUrl py_get_media_url_(UrlHandler_LoadResult* theWrappedObject){ return theWrappedObject->media_url_; } -void py_set_type_(UrlHandler_LoadResult* theWrappedObject, UrlHandler_LoadResult::Type type_){ theWrappedObject->type_ = type_; } -UrlHandler_LoadResult::Type py_get_type_(UrlHandler_LoadResult* theWrappedObject){ return theWrappedObject->type_; } -}; - - diff --git a/src/generated_cpp/clementine/clementine_init.cpp b/src/generated_cpp/clementine/clementine_init.cpp deleted file mode 100644 index 7c73b4014..000000000 --- a/src/generated_cpp/clementine/clementine_init.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include -#include "clementine0.h" -#include "clementine1.h" - - -void PythonQt_init_Clementine(PyObject* module) { -PythonQt::priv()->registerClass(&AlbumCoverFetcherSearch::staticMetaObject, "Clementine", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&CoverProvider::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&CoverProviders::staticMetaObject, "Clementine", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("CoverSearchResult", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("Directory", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("IconLoader", "", "Clementine", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&InternetModel::staticMetaObject, "Clementine", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&InternetService::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&LibraryBackend::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&LibraryBackendInterface::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("LibraryBackendInterface::Album", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("LibraryQuery", "", "Clementine", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerClass(&LibraryView::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&NetworkAccessManager::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&NetworkTimeouts::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&Player::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&PlayerInterface::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&Playlist::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&PlaylistBackend::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&PlaylistContainer::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("PlaylistItemPtr", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&PlaylistManager::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&PlaylistManagerInterface::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&PlaylistParser::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&PlaylistSequence::staticMetaObject, "Clementine", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("QueryOptions", "", "Clementine", PythonQtCreateObject, NULL, module, 0); -PythonQt::priv()->registerCPPClass("Song", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, PythonQt::Type_RichCompare); -PythonQt::priv()->registerClass(&SongInsertVetoListener::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("SpecialPlaylistType", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("Subdirectory", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&TaskManager::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("TaskManager_Task", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&ThreadSafeNetworkDiskCache::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerClass(&UrlHandler::staticMetaObject, "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); -PythonQt::priv()->registerCPPClass("UrlHandler_LoadResult", "", "Clementine", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); - -} diff --git a/src/internet/internetmodel.cpp b/src/internet/internetmodel.cpp index c13f2eeed..74c31ab82 100644 --- a/src/internet/internetmodel.cpp +++ b/src/internet/internetmodel.cpp @@ -115,8 +115,7 @@ void InternetModel::RemoveService(InternetService* service) { } void InternetModel::ServiceDeleted() { - // qobject_cast doesn't work here with services created by python - InternetService* service = static_cast(sender()); + InternetService* service = qobject_cast(sender()); if (service) RemoveService(service); } diff --git a/src/library/libraryview.cpp b/src/library/libraryview.cpp index c395873cc..e837ecb53 100644 --- a/src/library/libraryview.cpp +++ b/src/library/libraryview.cpp @@ -26,8 +26,6 @@ #include "core/utilities.h" #include "devices/devicemanager.h" #include "devices/devicestatefiltermodel.h" -#include "scripting/scriptmanager.h" -#include "scripting/uiinterface.h" #include "smartplaylists/wizard.h" #include "ui/iconloader.h" #include "ui/organisedialog.h" @@ -131,7 +129,6 @@ bool LibraryItemDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *view, LibraryView::LibraryView(QWidget* parent) : AutoExpandingTreeView(parent), - scripts_(NULL), library_(NULL), total_song_count_(-1), nomusic_(":nomusic.png"), @@ -177,10 +174,6 @@ void LibraryView::SetDeviceManager(DeviceManager* device_manager) { devices_ = device_manager; } -void LibraryView::SetScriptManager(ScriptManager* scripts) { - scripts_ = scripts; -} - void LibraryView::TotalSongCountUpdated(int count) { bool old = total_song_count_; total_song_count_ = count; @@ -280,10 +273,6 @@ void LibraryView::contextMenuEvent(QContextMenuEvent *e) { copy_to_device_->setDisabled(devices_->connected_devices_model()->rowCount() == 0); connect(devices_->connected_devices_model(), SIGNAL(IsEmptyChanged(bool)), copy_to_device_, SLOT(setDisabled(bool))); - - if(scripts_) { - scripts_->ui()->RegisterActionLocation("library_context_menu", context_menu_, NULL); - } } context_menu_index_ = indexAt(e->pos()); diff --git a/src/library/libraryview.h b/src/library/libraryview.h index c2d54aed9..5e8845836 100644 --- a/src/library/libraryview.h +++ b/src/library/libraryview.h @@ -29,7 +29,6 @@ class DeviceManager; class LibraryModel; class OrganiseDialog; -class ScriptManager; class TaskManager; class QMimeData; @@ -62,7 +61,6 @@ class LibraryView : public AutoExpandingTreeView { // this will return all of it's songs. SongList GetSelectedSongs() const; - void SetScriptManager(ScriptManager* scripts); void SetTaskManager(TaskManager* task_manager); void SetLibrary(LibraryModel* library); void SetDeviceManager(DeviceManager* device_manager); @@ -113,8 +111,6 @@ class LibraryView : public AutoExpandingTreeView { void ShowInVarious(bool on); private: - ScriptManager* scripts_; - LibraryModel* library_; DeviceManager* devices_; TaskManager* task_manager_; diff --git a/src/playlist/playlist.cpp b/src/playlist/playlist.cpp index 8761c6a33..df7ae3292 100644 --- a/src/playlist/playlist.cpp +++ b/src/playlist/playlist.cpp @@ -1553,8 +1553,7 @@ void Playlist::RemoveSongInsertVetoListener(SongInsertVetoListener* listener) { } void Playlist::SongInsertVetoListenerDestroyed() { - // qobject_cast returns NULL here for Python SIP listeners. - veto_listeners_.removeAll(static_cast(sender())); + veto_listeners_.removeAll(qobject_cast(sender())); } void Playlist::Shuffle() { diff --git a/src/scripting/installscriptdialog.cpp b/src/scripting/installscriptdialog.cpp deleted file mode 100644 index 51ba398b0..000000000 --- a/src/scripting/installscriptdialog.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "installscriptdialog.h" -#include "scriptarchive.h" -#include "ui_installscriptdialog.h" - -#include -#include - -InstallScriptDialog::InstallScriptDialog(ScriptArchive* archive, QWidget *parent) - : QDialog(parent), - ui_(new Ui_InstallScriptDialog), - archive_(archive) -{ - setAttribute(Qt::WA_DeleteOnClose); - ui_->setupUi(this); - - // Add the script info to the list - foreach (const ScriptInfo& info, archive->info()) { - ui_->list->addItem(new QListWidgetItem(info.icon(), info.name(), ui_->list)); - } -} - -InstallScriptDialog::~InstallScriptDialog() { - delete ui_; - delete archive_; -} - -void InstallScriptDialog::accept() { - if (!archive_->Install()) { - QMessageBox::warning(this, tr("Error installing script"), - tr("Some files failed to install. The script may not work correctly.")); - } - QDialog::accept(); -} diff --git a/src/scripting/installscriptdialog.h b/src/scripting/installscriptdialog.h deleted file mode 100644 index 0ffa420cc..000000000 --- a/src/scripting/installscriptdialog.h +++ /dev/null @@ -1,44 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef INSTALLSCRIPTDIALOG_H -#define INSTALLSCRIPTDIALOG_H - -#include - -class ScriptArchive; -class Ui_InstallScriptDialog; - -class InstallScriptDialog : public QDialog { - Q_OBJECT - -public: - // The dialog will take ownership of the archive and will destroy the archive - // *and itself* when it is closed. - InstallScriptDialog(ScriptArchive* archive, QWidget* parent = 0); - ~InstallScriptDialog(); - -public slots: - void accept(); - -private: - Ui_InstallScriptDialog* ui_; - - ScriptArchive* archive_; -}; - -#endif // INSTALLSCRIPTDIALOG_H diff --git a/src/scripting/installscriptdialog.ui b/src/scripting/installscriptdialog.ui deleted file mode 100644 index 5fe96d7ac..000000000 --- a/src/scripting/installscriptdialog.ui +++ /dev/null @@ -1,118 +0,0 @@ - - - InstallScriptDialog - - - - 0 - 0 - 419 - 277 - - - - Install scripts - - - #warning { - background: rgba(255, 127, 127, 128); - border: 1px solid palette(dark); - border-radius: 5px; - padding: 2px; -} - -#list { - font-weight: bold; -} - - - - - - Are you sure you want to install the following scripts? - - - true - - - - - - - Qt::NoFocus - - - QAbstractItemView::NoSelection - - - - 32 - 32 - - - - 5 - - - true - - - - - - - Warning: scripts have full access to your computer and your music. Only install scripts that you trust. - - - true - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - InstallScriptDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - InstallScriptDialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/src/scripting/languageengine.cpp b/src/scripting/languageengine.cpp deleted file mode 100644 index 45b48bbcb..000000000 --- a/src/scripting/languageengine.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "languageengine.h" - -LanguageEngine::LanguageEngine(ScriptManager* parent) - : QObject(parent), - manager_(parent) -{ -} diff --git a/src/scripting/languageengine.h b/src/scripting/languageengine.h deleted file mode 100644 index 99afb8374..000000000 --- a/src/scripting/languageengine.h +++ /dev/null @@ -1,47 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef LANGUAGEENGINE_H -#define LANGUAGEENGINE_H - -#include "scriptmanager.h" - -#include - -class Script; -class ScriptInfo; - -class LanguageEngine : public QObject { - Q_OBJECT - -public: - LanguageEngine(ScriptManager* parent); - virtual ~LanguageEngine() {} - - ScriptManager* manager() const { return manager_; } - - virtual ScriptInfo::Language language() const = 0; - virtual QString name() const = 0; - - virtual Script* CreateScript(const ScriptInfo& info) = 0; - virtual void DestroyScript(Script* script) = 0; - -private: - ScriptManager* manager_; -}; - -#endif // LANGUAGEENGINE_H diff --git a/src/scripting/python/albumcoverfetcher.sip b/src/scripting/python/albumcoverfetcher.sip deleted file mode 100644 index 3fcf67a13..000000000 --- a/src/scripting/python/albumcoverfetcher.sip +++ /dev/null @@ -1,27 +0,0 @@ -struct CoverSearchResult { - -%TypeHeaderCode -#include "covers/albumcoverfetcher.h" -%End - -%Docstring -Represents a single result of some album's cover search request. - -It contains an URL that leads to a found cover plus it's description (usually -the "artist - album" string). -%End - - QString description; -%Docstring -Description of this result. - -We suggest using the "artist - album" format. -%End - - QString image_url; -%Docstring -An URL of a cover image described by this CoverSearchResult -%End -}; - -typedef QList CoverSearchResults; diff --git a/src/scripting/python/autoexpandingtreeview.sip b/src/scripting/python/autoexpandingtreeview.sip deleted file mode 100644 index 25d989691..000000000 --- a/src/scripting/python/autoexpandingtreeview.sip +++ /dev/null @@ -1,7 +0,0 @@ -class AutoExpandingTreeView : QTreeView { - -%TypeHeaderCode -#include "widgets/autoexpandingtreeview.h" -%End - -}; diff --git a/src/scripting/python/bindings_includes.h b/src/scripting/python/bindings_includes.h deleted file mode 100644 index 39aff9648..000000000 --- a/src/scripting/python/bindings_includes.h +++ /dev/null @@ -1,47 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef BINDINGS_INCLUDES_H -#define BINDINGS_INCLUDES_H - -#include "core/player.h" -#include "core/network.h" -#include "core/song.h" -#include "core/taskmanager.h" -#include "core/urlhandler.h" -#include "covers/albumcoverfetcher.h" -#include "covers/albumcoverfetchersearch.h" -#include "covers/coverprovider.h" -#include "covers/coverproviderfactory.h" -#include "covers/coverproviders.h" -#include "engines/enginebase.h" -#include "library/librarybackend.h" -#include "library/libraryquery.h" -#include "library/libraryview.h" -#include "playlist/playlist.h" -#include "playlist/playlistbackend.h" -#include "playlist/playlistcontainer.h" -#include "playlist/playlistmanager.h" -#include "playlist/playlistsequence.h" -#include "playlist/specialplaylisttype.h" -#include "playlistparsers/playlistparser.h" -#include "internet/internetmodel.h" -#include "internet/internetservice.h" -#include "smartplaylists/generator.h" -#include "ui/iconloader.h" - -#endif // BINDINGS_INCLUDES_H diff --git a/src/scripting/python/clementine.sip b/src/scripting/python/clementine.sip deleted file mode 100644 index e3fa6e33a..000000000 --- a/src/scripting/python/clementine.sip +++ /dev/null @@ -1,41 +0,0 @@ -%Module clementine 0 - -%Import QtCore/QtCoremod.sip -%Import QtGui/QtGuimod.sip -%Import QtNetwork/QtNetworkmod.sip - -%Include autoexpandingtreeview.sip -%Include albumcoverfetcher.sip -%Include coverprovider.sip -%Include coverproviders.sip -%Include directory.sip -%Include engine_fwd.sip -%Include iconloader.sip -%Include librarybackend.sip -%Include libraryquery.sip -%Include libraryview.sip -%Include mergedproxymodel.sip -%Include network.sip -%Include parserbase.sip -%Include player.sip -%Include playlist.sip -%Include playlistitem.sip -%Include playlistmanager.sip -%Include playlistparser.sip -%Include playlistsequence.sip -%Include pythonengine.sip -%Include radiomodel.sip -%Include radioservice.sip -%Include queue.sip -%Include scriptinterface.sip -%Include settingsdialog.sip -%Include song.sip -%Include songinsertvetolistener.sip -%Include songloader.sip -%Include taskmanager.sip -%Include uiinterface.sip -%Include urlhandler.sip - -// Remember: when adding a class that inherits from QObject, add it to the list -// in scriptinterface.sip as well, or else it won't cast properly when calling -// python slots. diff --git a/src/scripting/python/coverprovider.sip b/src/scripting/python/coverprovider.sip deleted file mode 100644 index 5ce59efca..000000000 --- a/src/scripting/python/coverprovider.sip +++ /dev/null @@ -1,58 +0,0 @@ -class CoverProvider : QObject { - -%TypeHeaderCode -#include "covers/albumcoverfetcher.h" -#include "covers/coverprovider.h" -%End - -%Docstring -Each implementation of this interface downloads covers from one online -service. - -There are no limitations on what this service might be - last.fm, Amazon, -Google Images - you name it. - -CoverProvider should be stateless since it will be used in multi-threaded -environment. It can and probably should use some contextual information -though because a single search spans through two interface methods invoked -independently. The key to connecting both invocations is the NetworkReply -object. - -A flow of single request for covers: -- Provider is asked to prepare and invoke a NetworkRequest (L{SendRequest()}) - for a given cover query. Provider then returns a corresponding NetworkReply. - It should not connect to finished() signal of the reply, though! -- Later, in a separate invocation (L{ParseReply()}), provider will be asked to - parse the NetworkReply it once prepared. The result is a QList of L{CoverSearchResult} - objects. - -Every CoverProvider has a name which should describe (in a word or two) the service -it's using. -%End - -public: - CoverProvider(const QString& name); - virtual ~CoverProvider(); - - QString name(); -%Docstring -Name of this provider, like "last.fm". -%End - - virtual QNetworkReply* SendRequest(const QString& query) = 0; -%Docstring -Given a search request from Clementine, provider has to create and invoke -a NetworkRequest. - -It then has to return a corresponding NetworkReply, without connecting to -it's finished() signal! -%End - - virtual CoverSearchResults ParseReply(QNetworkReply* reply) = 0; -%Docstring -Provider parses a reply which is now filled with data obtained from a service -this provider communicates with. The result is a QList of L{CoverSearchResult} -objects. -%End - -}; diff --git a/src/scripting/python/coverproviders.sip b/src/scripting/python/coverproviders.sip deleted file mode 100644 index 4597a30d0..000000000 --- a/src/scripting/python/coverproviders.sip +++ /dev/null @@ -1,27 +0,0 @@ -class CoverProviders /NoDefaultCtors/ { - -%TypeHeaderCode -#include "covers/coverprovider.h" -#include "covers/coverproviders.h" -#include "scripting/python/pythonengine.h" -%End - -%Docstring -This is a global repository for cover providers. - -Each one of those has to register with CoverProviders instance by invoking -"CoverProviders::instance().AddCoverProvider(this)". Providers are automatically -unregistered from the repository when they are deleted. -%End - -public: - void AddCoverProvider(CoverProvider* provider /Transfer/); -%MethodCode - sipCpp->AddCoverProvider(a0); - PythonEngine::instance()->RegisterNativeObject(a0); -%End -%Docstring -Let's a cover provider to register itself in the repository. -%End - -}; diff --git a/src/scripting/python/directory.sip b/src/scripting/python/directory.sip deleted file mode 100644 index a3f8c9fff..000000000 --- a/src/scripting/python/directory.sip +++ /dev/null @@ -1,28 +0,0 @@ -struct Directory { - -%TypeHeaderCode -#include "library/directory.h" -%End - - Directory(); - - QString path; - int id; -}; - -struct Subdirectory { - -%TypeHeaderCode -#include "library/directory.h" -%End - - Subdirectory(); - - int directory_id; - QString path; - uint mtime; -}; - -typedef QList DirectoryList; -typedef QList SubdirectoryList; - diff --git a/src/scripting/python/engine_fwd.sip b/src/scripting/python/engine_fwd.sip deleted file mode 100644 index 6ecd87faa..000000000 --- a/src/scripting/python/engine_fwd.sip +++ /dev/null @@ -1,9 +0,0 @@ -namespace Engine { - -%TypeHeaderCode -#include "engines/engine_fwd.h" -%End - - enum State { Empty, Idle, Playing, Paused }; - enum TrackChangeType { First, Manual, Auto }; -}; diff --git a/src/scripting/python/iconloader.sip b/src/scripting/python/iconloader.sip deleted file mode 100644 index 944d0c999..000000000 --- a/src/scripting/python/iconloader.sip +++ /dev/null @@ -1,38 +0,0 @@ -class IconLoader { - -%TypeHeaderCode -#include "ui/iconloader.h" -%End - -%Docstring -Singleton class that loads icons from the system theme if possible, falling -back on Clementine's builtin icons otherwise. - -You can access the IconLoader methods directly, there is no need to create an -instance of the class first. - - >>> clementine.IconLoader.Load("media-pause") - -Icons are identified by their name without any extension, and they follow the -U{Freedesktop icon naming specification}. -You can find the list of icons bundled with Clementine in the -U{data/icons/} -directory in Clementine's source tree. -%End - -public: - static QIcon Load(const QString& name); -%Docstring -Load(name) -> QIcon - -Tries to load an icon with the given name. - -@param name: The name of an icon from the Freedesktop icon naming specification. -@type name: C{str} -@return: If the icon was loaded successfully then a valid QIcon is returned. - Otherwise a null QIcon is returned (C{.isNull()} will return C{True}). -%End - -private: - IconLoader(); -}; diff --git a/src/scripting/python/librarybackend.sip b/src/scripting/python/librarybackend.sip deleted file mode 100644 index b97fc26e6..000000000 --- a/src/scripting/python/librarybackend.sip +++ /dev/null @@ -1,103 +0,0 @@ -class LibraryBackend : QObject { - -%TypeHeaderCode -#include "library/librarybackend.h" -%End - -public: - struct Album { - Album(); - Album(const QString& _artist, const QString& _album_name, - const QString& _art_automatic, const QString& _art_manual, - const QUrl& _first_url); - - QString artist; - QString album_name; - - QString art_automatic; - QString art_manual; - QUrl first_url; - }; - typedef QList AlbumList; - - QString songs_table() const; - QString dirs_table() const; - QString subdirs_table() const; - - // Get a list of directories in the library. Emits DirectoriesDiscovered. - void LoadDirectoriesAsync(); - - // Counts the songs in the library. Emits TotalSongCountUpdated - void UpdateTotalSongCountAsync(); - - SongList FindSongsInDirectory(int id); - SubdirectoryList SubdirsInDirectory(int id); - DirectoryList GetAllDirectories(); - void ChangeDirPath(int id, const QString& old_path, const QString& new_path); - - QStringList GetAll(const QString& column, const QueryOptions& opt = QueryOptions()); - QStringList GetAllArtists(const QueryOptions& opt = QueryOptions()); - QStringList GetAllArtistsWithAlbums(const QueryOptions& opt = QueryOptions()); - SongList GetSongs(const QString& artist, const QString& album, const QueryOptions& opt = QueryOptions()); - - bool HasCompilations(const QueryOptions& opt = QueryOptions()); - SongList GetCompilationSongs(const QString& album, const QueryOptions& opt = QueryOptions()); - - LibraryBackend::AlbumList GetAllAlbums(const QueryOptions& opt = QueryOptions()); - LibraryBackend::AlbumList GetAlbumsByArtist(const QString& artist, const QueryOptions& opt = QueryOptions()); - LibraryBackend::AlbumList GetCompilationAlbums(const QueryOptions& opt = QueryOptions()); - - void UpdateManualAlbumArtAsync(const QString& artist, const QString& album, const QString& art); - LibraryBackend::Album GetAlbumArt(const QString& artist, const QString& album); - - Song GetSongById(int id); - SongList GetSongsById(const QList& ids); - SongList GetSongsById(const QStringList& ids); - SongList GetSongsByForeignId(const QStringList& ids, const QString& table, - const QString& column); - - SongList GetSongsByUrl(const QUrl& url); - Song GetSongByUrl(const QUrl& url, int beginning); - - void AddDirectory(const QString& path); - void RemoveDirectory(const Directory& dir); - - bool ExecQuery(LibraryQuery* q); - // SongList FindSongs(const smart_playlists::Search& search); - - void IncrementPlayCountAsync(int id); - void IncrementSkipCountAsync(int id, float progress); - void ResetStatisticsAsync(int id); - void UpdateSongRatingAsync(int id, float rating); - - void DeleteAll(); - -public slots: - void LoadDirectories(); - void UpdateTotalSongCount(); - void AddOrUpdateSongs(const SongList& songs); - void UpdateMTimesOnly(const SongList& songs); - void DeleteSongs(const SongList& songs); - void AddOrUpdateSubdirs(const SubdirectoryList& subdirs); - void UpdateCompilations(); - void UpdateManualAlbumArt(const QString& artist, const QString& album, const QString& art); - void ForceCompilation(const QString& artist, const QString& album, bool on); - void IncrementPlayCount(int id); - void IncrementSkipCount(int id, float progress); - void ResetStatistics(int id); - void UpdateSongRating(int id, float rating); - -signals: - void DirectoryDiscovered(const Directory& dir, const SubdirectoryList& subdirs); - void DirectoryDeleted(const Directory& dir); - - void SongsDiscovered(const SongList& songs); - void SongsDeleted(const SongList& songs); - void SongsStatisticsChanged(const SongList& songs); - void DatabaseReset(); - - void TotalSongCountUpdated(int total); - -private: - LibraryBackend(); -}; diff --git a/src/scripting/python/libraryquery.sip b/src/scripting/python/libraryquery.sip deleted file mode 100644 index 534c7fc67..000000000 --- a/src/scripting/python/libraryquery.sip +++ /dev/null @@ -1,48 +0,0 @@ -class QueryOptions { - -%TypeHeaderCode -#include "library/libraryquery.h" -%End - -public: - enum QueryMode { - QueryMode_All, - QueryMode_Duplicates, - QueryMode_Untagged - }; - - QueryOptions(); - - bool Matches(const Song& song) const; - - QString filter() const; - void set_filter(const QString& filter); - - int max_age() const; - void set_max_age(int max_age); - - QueryMode query_mode() const; - void set_query_mode(QueryMode view); -}; - -class LibraryQuery { - -%TypeHeaderCode -#include "library/libraryquery.h" -%End - -public: - LibraryQuery(); // Workaround SIP Mercurial 3e647ed0f2a2 - LibraryQuery(const QueryOptions& options); - - void SetColumnSpec(const QString& spec); - void SetOrderBy(const QString& order_by); - - void AddWhere(const QString& column, const QVariant& value, const QString& op = "="); - - void AddCompilationRequirement(bool compilation); - void SetLimit(int limit); - - bool Next(); - QVariant Value(int column) const; -}; diff --git a/src/scripting/python/libraryview.sip b/src/scripting/python/libraryview.sip deleted file mode 100644 index 7a83a81e5..000000000 --- a/src/scripting/python/libraryview.sip +++ /dev/null @@ -1,10 +0,0 @@ -class LibraryView : AutoExpandingTreeView { - -%TypeHeaderCode -#include "library/libraryview.h" -%End - -public: - SongList GetSelectedSongs() const; - -}; diff --git a/src/scripting/python/mergedproxymodel.sip b/src/scripting/python/mergedproxymodel.sip deleted file mode 100644 index 08ab7194a..000000000 --- a/src/scripting/python/mergedproxymodel.sip +++ /dev/null @@ -1,17 +0,0 @@ -class MergedProxyModel : QAbstractProxyModel { - -%TypeHeaderCode -#include "core/mergedproxymodel.h" -%End - -public: - MergedProxyModel(QObject* parent = 0); - - void AddSubModel(const QModelIndex& source_parent, QAbstractItemModel* submodel); - void RemoveSubModel(const QModelIndex& source_parent); - - QModelIndex FindSourceParent(const QModelIndex& proxy_index) const; - -signals: - void SubModelReset(const QModelIndex& root, QAbstractItemModel* model); -}; diff --git a/src/scripting/python/network.sip b/src/scripting/python/network.sip deleted file mode 100644 index 72849c8af..000000000 --- a/src/scripting/python/network.sip +++ /dev/null @@ -1,20 +0,0 @@ -class NetworkAccessManager : QNetworkAccessManager { - -%TypeHeaderCode -#include "core/network.h" -%End - -%Docstring -A Qt network access manager that should be used to create all network requests -in Clementine. - -Differences from the normal QNetworkAccessManager: - - - Sends a Clementine C{User-Agent} HTTP header. - - Uses a thread-safe disk cache in Clementine's user config directory. - - Honors the proxy set by the user in the settings dialog. -%End - -public: - NetworkAccessManager(QObject* parent /TransferThis/ = 0); -}; diff --git a/src/scripting/python/objectdecorators.cpp b/src/scripting/python/objectdecorators.cpp deleted file mode 100644 index 304a94936..000000000 --- a/src/scripting/python/objectdecorators.cpp +++ /dev/null @@ -1,94 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "objectdecorators.h" -#include "playlist/playlistitem.h" - -void ObjectDecorators::deleteLater(QObject* self) { - self->deleteLater(); -} -bool ObjectDecorators::inherits(QObject* self, const char* class_name) { - return self->inherits(class_name); -} - -QString ObjectDecorators::type(PlaylistItemPtr* self) const { - return (*self)->type(); -} -PlaylistItem::Options ObjectDecorators::options(PlaylistItemPtr* self) const { - return (*self)->options(); -} -bool ObjectDecorators::InitFromQuery(PlaylistItemPtr* self, const SqlRow& query) { - return (*self)->InitFromQuery(query); -} -void ObjectDecorators::BindToQuery(PlaylistItemPtr* self, QSqlQuery* query) const { - (*self)->BindToQuery(query); -} -void ObjectDecorators::Reload(PlaylistItemPtr* self) { - (*self)->Reload(); -} -void ObjectDecorators::BackgroundReload(PlaylistItemPtr* self) { - (*self)->BackgroundReload(); -} -Song ObjectDecorators::Metadata(PlaylistItemPtr* self) const { - return (*self)->Metadata(); -} -QUrl ObjectDecorators::Url(PlaylistItemPtr* self) const { - return (*self)->Url(); -} -void ObjectDecorators::SetTemporaryMetadata(PlaylistItemPtr* self, const Song& metadata) { - (*self)->SetTemporaryMetadata(metadata); -} -void ObjectDecorators::ClearTemporaryMetadata(PlaylistItemPtr* self) { - (*self)->ClearTemporaryMetadata(); -} -bool ObjectDecorators::HasTemporaryMetadata(PlaylistItemPtr* self) const { - return (*self)->HasTemporaryMetadata(); -} -void ObjectDecorators::SetBackgroundColor(PlaylistItemPtr* self, short priority, const QColor& color) { - (*self)->SetBackgroundColor(priority, color); -} -bool ObjectDecorators::HasBackgroundColor(PlaylistItemPtr* self, short priority) const { - return (*self)->HasBackgroundColor(priority); -} -void ObjectDecorators::RemoveBackgroundColor(PlaylistItemPtr* self, short priority) { - (*self)->RemoveBackgroundColor(priority); -} -QColor ObjectDecorators::GetCurrentBackgroundColor(PlaylistItemPtr* self) const { - return (*self)->GetCurrentBackgroundColor(); -} -bool ObjectDecorators::HasCurrentBackgroundColor(PlaylistItemPtr* self) const { - return (*self)->HasCurrentBackgroundColor(); -} -void ObjectDecorators::SetForegroundColor(PlaylistItemPtr* self, short priority, const QColor& color) { - (*self)->SetForegroundColor(priority, color); -} -bool ObjectDecorators::HasForegroundColor(PlaylistItemPtr* self, short priority) const { - return (*self)->HasForegroundColor(priority); -} -void ObjectDecorators::RemoveForegroundColor(PlaylistItemPtr* self, short priority) { - (*self)->RemoveForegroundColor(priority); -} -QColor ObjectDecorators::GetCurrentForegroundColor(PlaylistItemPtr* self) const { - return (*self)->GetCurrentForegroundColor(); -} -bool ObjectDecorators::HasCurrentForegroundColor(PlaylistItemPtr* self) const { - return (*self)->HasCurrentForegroundColor(); -} -bool ObjectDecorators::IsLocalLibraryItem(PlaylistItemPtr* self) const { - return (*self)->IsLocalLibraryItem(); -} - diff --git a/src/scripting/python/objectdecorators.h b/src/scripting/python/objectdecorators.h deleted file mode 100644 index 5cee07efd..000000000 --- a/src/scripting/python/objectdecorators.h +++ /dev/null @@ -1,61 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef OBJECTDECORATORS_H -#define OBJECTDECORATORS_H - -#include -#include -#include - -#include "core/song.h" -#include "playlist/playlistitem.h" - -class ObjectDecorators : public QObject { - Q_OBJECT - -public slots: - // QObject - void deleteLater(QObject* self); - bool inherits(QObject* self, const char* class_name); - - // PlaylistItemPtr - QString type(PlaylistItemPtr* self) const; - PlaylistItem::Options options(PlaylistItemPtr* self) const; - bool InitFromQuery(PlaylistItemPtr* self, const SqlRow& query); - void BindToQuery(PlaylistItemPtr* self, QSqlQuery* query) const; - void Reload(PlaylistItemPtr* self); - void BackgroundReload(PlaylistItemPtr* self); - Song Metadata(PlaylistItemPtr* self) const; - QUrl Url(PlaylistItemPtr* self) const; - void SetTemporaryMetadata(PlaylistItemPtr* self, const Song& metadata); - void ClearTemporaryMetadata(PlaylistItemPtr* self); - bool HasTemporaryMetadata(PlaylistItemPtr* self) const; - void SetBackgroundColor(PlaylistItemPtr* self, short priority, const QColor& color); - bool HasBackgroundColor(PlaylistItemPtr* self, short priority) const; - void RemoveBackgroundColor(PlaylistItemPtr* self, short priority); - QColor GetCurrentBackgroundColor(PlaylistItemPtr* self) const; - bool HasCurrentBackgroundColor(PlaylistItemPtr* self) const; - void SetForegroundColor(PlaylistItemPtr* self, short priority, const QColor& color); - bool HasForegroundColor(PlaylistItemPtr* self, short priority) const; - void RemoveForegroundColor(PlaylistItemPtr* self, short priority); - QColor GetCurrentForegroundColor(PlaylistItemPtr* self) const; - bool HasCurrentForegroundColor(PlaylistItemPtr* self) const; - bool IsLocalLibraryItem(PlaylistItemPtr* self) const; -}; - -#endif // OBJECTDECORATORS_H diff --git a/src/scripting/python/parserbase.sip b/src/scripting/python/parserbase.sip deleted file mode 100644 index 3d44a463e..000000000 --- a/src/scripting/python/parserbase.sip +++ /dev/null @@ -1,17 +0,0 @@ -class ParserBase : QObject { -%TypeHeaderCode - #include "playlistparsers/parserbase.h" -%End - -public: - ParserBase(LibraryBackend* library, QObject* parent /TransferThis/ = 0); - - virtual QString name() const = 0; - virtual QStringList file_extensions() const = 0; - virtual QString mime_type() const; - - virtual bool TryMagic(const QByteArray& data) const = 0; - - virtual SongList Load(QIODevice* device, const QString& playlist_path = "", const QDir& dir = QDir()) const = 0; - virtual void Save(const SongList& songs, QIODevice* device, const QDir& dir = QDir()) const = 0; -}; diff --git a/src/scripting/python/player.sip b/src/scripting/python/player.sip deleted file mode 100644 index 2e9b3931b..000000000 --- a/src/scripting/python/player.sip +++ /dev/null @@ -1,66 +0,0 @@ -class PlayerInterface : QObject /PyName=Player/ { - -%TypeHeaderCode -#include "core/player.h" -%End - -public: - Engine::State GetState() const; - int GetVolume() const; - - PlaylistItemPtr GetCurrentItem() const; - PlaylistItemPtr GetItemAt(int pos) const; - PlaylistManagerInterface* playlists() const; - - void RegisterUrlHandler(UrlHandler* handler); - void UnregisterUrlHandler(UrlHandler* handler); - -public slots: - // Manual track change to the specified track - void PlayAt(int i, Engine::TrackChangeType change, bool reshuffle); - - // If there's currently a song playing, pause it, otherwise play the track - // that was playing last, or the first one on the playlist - void PlayPause(); - - // Skips this track. Might load more of the current radio station. - void Next(); - void Previous(); - - void SetVolume(int value); - void VolumeUp(); - void VolumeDown(); - void Mute(); - - void SeekTo(int seconds); - void SeekForward(); - void SeekBackward(); - - void Pause(); - void Stop(); - void Play(); - void ShowOSD(); - -signals: - void Playing(); - void Paused(); - void Stopped(); - void PlaylistFinished(); - void VolumeChanged(int volume); - void Error(const QString& message); - - // Disabled for now because it causes: - // TypeError: C++ type 'PlaylistItemPtr' is not supported as a native Qt signal type - // void TrackSkipped(PlaylistItemPtr old_track); - - void Seeked(qlonglong microseconds); - - // Emitted when Player has processed a request to play another song. This contains - // the URL of the song and a flag saying whether it was able to play the song. - void SongChangeRequestProcessed(const QUrl& url, bool valid); - - void ForceShowOSD(Song); - -private: - PlayerInterface(); -}; diff --git a/src/scripting/python/playlist.sip b/src/scripting/python/playlist.sip deleted file mode 100644 index 1809da0a0..000000000 --- a/src/scripting/python/playlist.sip +++ /dev/null @@ -1,164 +0,0 @@ -class Playlist : QAbstractListModel { - -%TypeHeaderCode -#include "playlist/playlist.h" -#include "scripting/python/pythonengine.h" -%End - -public: - enum Column { - Column_Title, - Column_Artist, - Column_Album, - Column_AlbumArtist, - Column_Composer, - Column_Length, - Column_Track, - Column_Disc, - Column_Year, - Column_Genre, - - Column_BPM, - Column_Bitrate, - Column_Samplerate, - Column_Filename, - Column_BaseFilename, - Column_Filesize, - Column_Filetype, - Column_DateCreated, - Column_DateModified, - - Column_Rating, - Column_PlayCount, - Column_SkipCount, - Column_LastPlayed, - Column_Score, - - Column_Comment, - - ColumnCount - }; - - enum Role { - Role_IsCurrent, - Role_IsPaused, - Role_StopAfter, - Role_QueuePosition, - Role_CanSetRating, - }; - - enum LastFMStatus { - LastFM_New = 0, // Haven't scrobbled yet, but we want to later - LastFM_Scrobbled, // Scrobbled ok - LastFM_Seeked, // The user seeked so don't scrobble - LastFM_Error, // Tried to scrobble but got an error - LastFM_Invalid, // The song isn't suitable for scrobbling - LastFM_Queued, // Track added to the queue for scrobbling - }; - - static const char* kRowsMimetype; - static const char* kPlayNowMimetype; - - static bool CompareItems(int column, Qt::SortOrder order, - PlaylistItemPtr a, PlaylistItemPtr b); - - static QString column_name(Column column); - static bool column_is_editable(Column column); - static bool set_column_value(Song& song, Column column, const QVariant& value); - - // Accessors - QSortFilterProxyModel* proxy() const; - Queue* queue() const; - - int id() const; - - int current_row() const; - int last_played_row() const; - int next_row() const; - int previous_row() const; - - const QModelIndex current_index() const; - - bool stop_after_current() const; - bool is_dynamic() const; - - const PlaylistItemPtr& item_at(int index) const; - const bool has_item_at(int index) const; - - PlaylistItemPtr current_item() const; - - PlaylistItem::Options current_item_options() const; - Song current_item_metadata() const; - - PlaylistItemList library_items_by_id(int id) const; - - SongList GetAllSongs() const; - PlaylistItemList GetAllItems() const; - quint64 GetTotalLength() const; // in seconds - - PlaylistSequence* sequence() const; - - QUndoStack* undo_stack() const; - - // ColumnAlignmentMap column_alignments() const { return column_alignments_; } - // void set_column_alignments(const ColumnAlignmentMap& column_alignments); - void set_column_align_left(int column); - void set_column_align_center(int column); - void set_column_align_right(int column); - - // Scrobbling - qint64 scrobble_point_nanosec() const; - LastFMStatus get_lastfm_status() const; - bool have_incremented_playcount() const; - void set_lastfm_status(LastFMStatus status); - void set_have_incremented_playcount(); - - // Changing the playlist - void InsertItems (const PlaylistItemList& items, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertLibraryItems (const SongList& items, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertSongs (const SongList& items, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertSongsOrLibraryItems(const SongList& items, int pos = -1, bool play_now = false, bool enqueue = false); - // void InsertSmartPlaylist (smart_playlists::GeneratorPtr gen, int pos = -1, bool play_now = false, bool enqueue = false); - void InsertUrls (const QList& urls, int pos = -1, bool play_now = false, bool enqueue = false); - void RemoveItemsWithoutUndo (const QList& indicesIn); - - // Grays out and reloads all deleted songs in this playlist. - void InvalidateDeletedSongs(); - - void StopAfter(int row); - void ReloadItems(const QList& rows); - - // Changes rating of a song to the given value asynchronously - void RateSong(const QModelIndex& index, double rating); - - void AddSongInsertVetoListener(SongInsertVetoListener* listener /Transfer/); -%MethodCode - sipCpp->AddSongInsertVetoListener(a0); - PythonEngine::instance()->RegisterNativeObject(a0); -%End - void RemoveSongInsertVetoListener(SongInsertVetoListener* listener); - -public slots: - void set_current_row(int index); - - void Clear(); - void Shuffle(); - - void RepopulateDynamicPlaylist(); - void TurnOffDynamicPlaylist(); - -signals: - void CurrentSongChanged(const Song& metadata); - void EditingFinished(const QModelIndex& index); - void PlayRequested(const QModelIndex& index); - - // Signals that the underlying list of items was changed, meaning that - // something was added to it, removed from it or the ordering changed. - void PlaylistChanged(); - void DynamicModeChanged(bool dynamic); - - void LoadTracksError(const QString& message); - -private: - Playlist(); -}; diff --git a/src/scripting/python/playlistitem.sip b/src/scripting/python/playlistitem.sip deleted file mode 100644 index fc590bf05..000000000 --- a/src/scripting/python/playlistitem.sip +++ /dev/null @@ -1,267 +0,0 @@ -%ModuleCode - #include "playlist/playlistitem.h" - #include "scripting/python/sharedpointermanager.h" - - template<> SharedPointerManager::pointer_map_type* - SharedPointerManager::_pointer_map(NULL); -%End - - -class PlaylistItem { -%TypeHeaderCode - #include "playlist/playlistitem.h" - #include "scripting/python/sharedpointermanager.h" -%End - -%Docstring -Represents a single row in a playlist. - -Playlists in Clementine are lists of PlaylistItems. At a minimum each -PlaylistItem contains some metadata and a URL. - -PlaylistItem is an abstract class and instances of it cannot be created -directly by Python code. If you want to add items to a playlist you should use -the C{Insert...} methods in L{Playlist}, such as -L{Playlist.InsertSongsOrLibraryItems()}. - -You can get individual PlaylistItems from a L{Playlist} using -L{Playlist.item_at()}. Get the PlaylistItem that is currently playing (in any -playlist) using L{Player.GetCurrentItem()}. These functions are marked as -returning C{PlaylistItemPtr}s, because in C++ the playlist items are held -inside and managed by smart pointers. This doesn't affect Python at all -however - you can use a PlaylistItemPtr in just the same way as you would a -PlaylistItem. - - >>> item = clementine.player.GetCurrentItem() - ... print item.Metadata().title() - -The L{options()} field of a PlaylistItem is an ORed combination of flags that -describe the item's behaviour when it is played. Valid values are: - - - C{Default} - no special behaviour, the L{Url()} is used directly when - playing the song. - - C{PauseDisabled} - disables the "pause" action. - - C{LastFMControls} - enables the last.fm "ban" action. - -%End - -public: - enum Option { - Default, - PauseDisabled, - LastFMControls, - }; - typedef QFlags Options; - - QString type() const; -%Docstring -type() -> str -Returns a string describing the subclass of PlaylistItem that this item really -is. This string is stored in the database so the correct subclass can be -recreated again when the playlist is loaded. Values include: - - - C{Library} - - C{File} - - C{Stream} - - C{Jamendo} - - C{Magnatune} - - C{Radio} -%End - - Options options() const; -%Docstring -options() -> L{Options} -Returns the options set on this item. - -@return: An ORed combination of L{Option}s. -%End - - void Reload(); -%Docstring -Reload() -If this item is backed by a file, re-reads the metadata from the file and -updates the row in the playlist. - -@warning: This method is B{blocking} and runs on the GUI thread. It is better - to call L{BackgroundReload()} which runs in a separate thread. -%End - - void BackgroundReload(); -%Docstring -BackgroundReload() -Like L{Reload()}, but runs in a background thread. -%End - - Song Metadata() const; -%Docstring -Metadata() -> L{Song} -Returns this item's metadata. -%End - - QUrl Url() const; -%Docstring -Url() -> L{PyQt4.QtCore.QUrl} -Returns the URL that contains this item's media. This is usually derived from -C{Metadata().filename()}. -%End - - void SetTemporaryMetadata(const Song& metadata); -%Docstring -SetTemporaryMetadata(metadata) -Sets some metadata on the item that will override that returned from -L{Metadata()} while the song is playing, and until L{ClearTemporaryMetadata()} -is called. This is useful for radio streams where the actual metadata is not -known until the stream is loaded. - -@note: Some types of PlaylistItem may not allow you to override their metadata. -@type metadata: L{Song} -%End - - void ClearTemporaryMetadata(); -%Docstring -ClearTemporaryMetadata() -Clears any metadata set by L{SetTemporaryMetadata()}. -%End - - bool HasTemporaryMetadata() const; -%Docstring -HasTemporaryMetadata() -> bool -Returns true if L{SetTemporaryMetadata()} has been called. -%End - - bool IsLocalLibraryItem() const; -%Docstring -IsLocalLibraryItem() -> bool -Convenience function to check whether this item is from the local -library, as opposed to a device, a file on disk or a stream. -Remember that even if this returns true, the library item might be -invalid so you might want to check that it's id is not equal to -1 -before actually using it. -%End - - void SetBackgroundColor(short priority, const QColor& color); -%Docstring -SetBackgroundColor(priority, color) -Adds a background color to this PlaylistItem. PlaylistItem's background -colors affect directly the background color of associated row in the playlist -view. Note that every color comes with a priority. -PlaylistItem can have many background colors set at the same time but only -one will be used - the one with the highest priority. If at any point, the -most important color gets removed (RemoveBackgroundColor()), the next to the -highest one will start taking precedence. - -Priority must be unique across Clementine and all of it's plugins so that -no functionality messes with another's background color settings. -Below we list all the currently taken background priorities: -- 1 by Rainbowizer plugin - -If it makes sense, one functionality (one plugin) can use many background -priorities at the same time. -%End - - bool HasBackgroundColor(short priority) const; -%Docstring -HasBackgroundColor(priority) -> bool -Checks if this PlaylistItem has a background color with this priority set. -It doesn't need to be the current color, it just needs to exist in the colors -list. -%End - - void RemoveBackgroundColor(short priority); -%Docstring -RemoveBackgroundColor(priority) -Removes a background color with the given priority from this PlaylistItem's -background. If there's no such color, this call will be ignored. - -@see: L{SetBackgroundColor()} -%End - - void SetForegroundColor(short priority, const QColor& color); -%Docstring -SetForegroundColor(priority, color) -Adds a foreground color to this PlaylistItem. PlaylistItem's foreground -colors affect directly the font color of associated row in the playlist -view. Note that every color comes with a priority. -PlaylistItem can have many foreground colors set at the same time but -only one will be used - the one with the highest priority. If at any -point, the most important color gets removed (RemoveForegroundColor()), -the next to the highest one will start taking precedence. - -Priority must be unique across Clementine and all of it's plugins so that -no functionality messes with another's foreground color settings. -Below we list all the currently taken foreground priorities: -- 100 by dynamic history items -- 200 by unplayable items - -If it makes sense, one functionality (one plugin) can use many foreground -priorities at the same time. - %End - - bool HasForegroundColor(short priority) const; -%Docstring -HasForegroundColor(priority) -> bool -Checks if this PlaylistItem has a foreground color with this priority set. -It doesn't need to be the current color, it just needs to exist in the colors -list. -%End - - void RemoveForegroundColor(short priority); -%Docstring -RemoveForegroundColor(priority) -Removes a foreground color with the given priority from this PlaylistItem's -foreground. If there's no such color, this call will be ignored. - -@see: L{SetForegroundColor()} -%End - - ~PlaylistItem(); -%MethodCode - // Don't actually destroy the PlaylistItem, just decrement the reference - // count of Python's shared_ptr. - SharedPointerManager::SubRef(sipCpp); - return; -%End - -private: - PlaylistItem(); -}; - -typedef boost::shared_ptr PlaylistItemPtr; -typedef QList PlaylistItemList; - - -%MappedType PlaylistItemPtr -{ -%TypeHeaderCode - #include "playlist/playlistitem.h" - #include "scripting/python/sharedpointermanager.h" -%End - -%ConvertFromTypeCode - if (!sipCpp) - return NULL; - - // Add an extra reference... - SharedPointerManager::AddRef(*sipCpp); - - PyObject* o = sipConvertFromType(sipCpp->get(), sipType_PlaylistItem, Py_None); - return o; -%End - -%ConvertToTypeCode - if(sipIsErr == NULL) - return PyInstance_Check(sipPy); - - int iserr = 0; - PlaylistItem* ord = reinterpret_cast( - sipForceConvertToType(sipPy, sipType_PlaylistItem, Py_None, SIP_NO_CONVERTORS, NULL, &iserr)); - - if (iserr){ - *sipIsErr = 1; - return 0; - } - - *sipCppPtr = SharedPointerManager::CreatePointer(ord); - return 1; -%End -}; diff --git a/src/scripting/python/playlistmanager.sip b/src/scripting/python/playlistmanager.sip deleted file mode 100644 index a520bd205..000000000 --- a/src/scripting/python/playlistmanager.sip +++ /dev/null @@ -1,445 +0,0 @@ -class PlaylistManagerInterface : QObject /PyName=PlaylistManager/ { - -%TypeHeaderCode -#include "playlist/playlistmanager.h" -%End - -%Docstring -Container for all of Clementine's playlists. - -Clementine supports multiple tabbed playlists - a user can create a new -playlist by clicking the C{New playlist} button at the top of the window, and -switch between them by using the tabs above each playlist. -This class manages the list of playlists and allows scripts to get at each -individual playlist, create new ones or change existing ones. - -In the list of playlists, one playlist is the I{current} playlist and one is -the I{active} playlist: - - The B{current} playlist is the one that is displayed in the PlaylistView - right now - the user can make a different playlist current by clicking on - another tab. Actions such as clearing or shuffling the playlist, or - adding new songs, should operate on the current playlist by default. - - The B{active} playlist is the playlist that contains the currently - playing song, or if the player is stopped, it is the playlist that will - start playing when the user presses C{Play}. The active and current - playlists don't have to be the same (although they sometimes are) - songs - can be playing from one playlist while another is displayed in the window. - -There will always be at least one playlist in the PlaylistManager, and the -active and current playlists are guaranteed to always be valid. - -Each playlist has an ID that is used to save it in the database. You can get -the ID of a playlist by calling the L{Playlist.id()} method. - -You can't create new PlaylistManagers, there is only one instance of -this class ever created. You can access it through the global variable in the -L{clementine} module: - - >>> clementine.playlists - -@group Signals: PlaylistManagerInitialized, PlaylistAdded, PlaylistRemoved, - PlaylistRenamed, CurrentChanged, ActiveChanged, Error, SummaryTextChanged, - CurrentSongChanged, PlaylistChanged, EditingFinished, PlayRequested -%End - -public: - int current_id() const; -%Docstring -current_id() -> int -Returns the ID of the current playlist. -%End - - int active_id() const; -%Docstring -active_id() -> int -Returns the ID of the active playlist. -%End - - Playlist* playlist(int id) const; -%Docstring -playlist(id) -> L{Playlist} -Returns the Playlist with the given identifier. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - Playlist* current() const; -%Docstring -current() -> L{Playlist} -Returns the current playlist. - -Equivalent to C{playlist(current_id())}. -%End - - Playlist* active() const; -%Docstring -active() -> L{Playlist} -Returns the active playlist. - -Equivalent to C{playlist(active_id())}. -%End - - const QList GetAllPlaylists() const; -%Docstring -GetAllPlaylists() -> list of L{Playlist}s -Returns a list containing all the playlists. -%End - - void InvalidateDeletedSongs(); -%Docstring -InvalidateDeletedSongs() -Grays out and reloads all deleted songs in all playlists. Also, "ungreys" -those songs which were once deleted but now got restored somehow. -%End - -void RemoveDeletedSongs(); -%Docstring -RemoveDeletedSongs() -Removes all deleted songs from all playlists. -%End - - const QItemSelection& selection(int id) const; -%Docstring -selection(id) -> PyQt4.QtGui.QItemSelection -Returns any selected items in the playlist with the given ID. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - const QItemSelection& current_selection() const; -%Docstring -current_selection() -> PyQt4.QtGui.QItemSelection -Returns any selected items in the current playlist. - -Equivalent to C{selection(current_id())}. -%End - - const QItemSelection& active_selection() const; -%Docstring -active_selection() -> PyQt4.QtGui.QItemSelection -Returns any selected items in the active playlist. - -Equivalent to C{selection(active_id())}. -%End - - QString name(int index) const; -%Docstring -name(id) -> str -Returns the name of the playlist with the given ID. - -A playlist's name is shown in the tab bar above the playlist. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - LibraryBackend* library_backend() const; -%Docstring -library_backend() -> L{LibraryBackend} -Convenience function to return the local library backend. -%End - - // PlaylistBackend* playlist_backend() const; - - PlaylistSequence* sequence() const; -%Docstring -sequence() -> L{PlaylistSequence} -Convenience function to return the playlist sequence controller. - -A playlist sequence controller manages the repeat/shuffle state. All -playlists share the same playlist sequence controller. -%End - - PlaylistParser* parser() const; -%Docstring -parser() -> L{PlaylistParser} -Convenience function to return the playlist parser. - -This is used when loading and saving playlists to files (eg. C{.pls} or -C{.xspf}) with the L{Load} and L{Save} methods. -%End - -public slots: - void New(const QString& name, const SongList& songs = SongList()); -%Docstring -New(name, songs) -Creates a new playlist and optionally fills it with a list of songs. - -The newly created playlist is made current and can be accessed with -L{current()}. - -@param songs: A list of songs to add to the new playlist. Defaults to the - empty list. -@type songs: list of L{Song}s -%End - - void Load(const QString& filename); -%Docstring -Load(filename) -Creates a new playlist from a playlist file on disk. - -The playlist file is loaded by using the L{PlaylistParser} returned by -L{parser()}. The newly created playlist is made current and can be accessed -with L{current()}. - -@note: If the file does not exist or can't be parsed for whatever reason, an - error dialog is shown and no playlist is created. -%End - - void Save(int id, const QString& filename); -%Docstring -Save(id, filename) -Saves the playlist with the given ID to a file. - -The playlist file is written by using the L{PlaylistParser} returned by -L{parser()}. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - void Rename(int id, const QString& new_name); -%Docstring -Rename(id, new_name) -Renames the playlist with the given ID. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - void Remove(int id); -%Docstring -Remove(id) -Removes the playlist with the given ID. - -If you remove either the active or the current playlist then another playlist -will be made active/current to replace it. It is not possible to remove the -last playlist - this function will silently return if you try. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - void ChangePlaylistOrder(const QList& ids); -%Docstring -ChangePlaylistOrder(new_order) -Rearranges the order of the tabs in the tab bar. - -@param new_order: A list of playlist IDs in the new desired order. -@type new_order: list of ints -%End - - void SetCurrentPlaylist(int id); -%Docstring -SetCurrentPlaylist(id) -Changes the current playlist (the one visible in the window) to the one with -the given ID. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - void SetActivePlaylist(int id); -%Docstring -SetActivePlaylist(id) -Changes the active playlist to the one with the given ID. - -@warning: You MUST ensure that a playlist with this identifier exists before - calling this method. If you request an ID that doesn't exist the program - will crash. -%End - - void SetActiveToCurrent(); -%Docstring -SetActiveToCurrent() -Convenience function that sets the active playlist to be the same as the -current playlist. - -This is equivalent to calling C{SetActivePlaylist(current_id())}. -%End - - void ClearCurrent(); -%Docstring -ClearCurrent() -Convenience function to clear the current playlist. - -Equivalent to calling C{current().Clear()}. -%End - - void ShuffleCurrent(); -%Docstring -ShuffleCurrent() -Convenience function to shuffle the current playlist. - -Equivalent to calling C{current().Shuffle()}. -%End - - void SetActivePlaying(); -%Docstring -SetActivePlaying() -Convenience function to mark the current song in the active playlist as -Playing. - -Equivalent to calling C{active().Playing()}. -%End - - void SetActivePaused(); -%Docstring -SetActivePaused() -Convenience function to mark the current song in the active playlist as -Paused. - -Equivalent to calling C{active().Paused()}. -%End - - void SetActiveStopped(); -%Docstring -SetActiveStopped() -Convenience function to mark the current song in the active playlist as -Stopped. - -Equivalent to calling C{active().Stopped()}. -%End - - void SetActiveStreamMetadata(const QUrl& url, const Song& song); -%Docstring -SetActiveStreamMetadata(url, song) -Convenience function to set the metadata of the currently playing song in -the active playlist. - -Equivalent to calling C{active().SetStreamMetadata(url, song)}. - -@type url: PyQt4.QtCore.QUrl -@type song: L{Song} -%End - - void RateCurrentSong(double rating); -%Docstring -RateCurrentSong(rating) -Convenience function to set the rating of the currently playing song in the -active playlist. - -Equivalent to calling C{active().RateSong(active().current_index(), rating)}. - -@param rating: from 0.0 to 1.0 -@type rating: float -%End - - // void PlaySmartPlaylist(smart_playlists::GeneratorPtr generator, bool as_new, bool clear); - -signals: - void PlaylistManagerInitialized(); -%Docstring -PlaylistManagerInitialized() -Emitted during Clementine startup when all the playlists stored in the -database have been created and added to the UI. -%End - - void PlaylistAdded(int id, const QString& name); -%Docstring -PlaylistAdded(id, name) -Emitted when a new playlist is added. -%End - - void PlaylistRemoved(int id); -%Docstring -PlaylistRemoved(id) -Emitted when a playlist is removed. -%End - - void PlaylistRenamed(int id, const QString& new_name); -%Docstring -PlaylistRenamed(id, new_name) -Emitted when a playlist is renamed. -%End - - void CurrentChanged(Playlist* new_playlist); -%Docstring -CurrentChanged(new_current_playlist) -Emitted when the current playlist is changed (ie the user clicked on a -different tab). -%End - - void ActiveChanged(Playlist* new_playlist); -%Docstring -ActiveChanged(new_active_playlist) -Emitted when the active playlist is changed. -%End - - void Error(const QString& message); -%Docstring -Error(message) -Emitted whenever an error occurs in the PlaylistManager. - -Errors are typically raised when loading a playlist file from disk. Note: any -errors emitted through this signal will already have been displayed in an -error dialog. -%End - - void SummaryTextChanged(const QString& summary); -%Docstring -SummaryTextChanged(summary) -The summary text is a short string displayed in Clementine's status bar to say -how many (if any) songs are selected, and the total length of the songs in the -current playlist. - -This signal is emitted whenever that text changes, for example when the -current playlist is changed, or when the user selects some different songs. -%End - - void CurrentSongChanged(const Song& song); -%Docstring -CurrentSongChanged(new_current_song) -Emitted when the currently playling song in the active playlist changes. - -This is a convenience signal that is forwarded from the active playlist. The -current song is the song that is currently playing - it has an animation and -a special appearance in the playlist view. - -@type new_current_song: L{Song} -%End - - // Signals that one of manager's playlists has changed (new items, new - // ordering etc.) - the argument shows which. - void PlaylistChanged(Playlist* playlist); -%Docstring -PlaylistChanged(playlist) -Emitted when any playlist changes (items added, items removed, order changed, -etc.). - -This is a convenience signal that is forwarded from individual playlists. - -@type playlist: L{Playlist} -%End - - void EditingFinished(const QModelIndex& index); -%Docstring -EditingFinished(index) -Emitted after the user has made a change to one of the indexes in the current -playlist. - -@type index: L{PyQt4.QtCore.QModelIndex} -%End - - void PlayRequested(const QModelIndex& index); -%Docstring -PlayRequested(index) -Emitted after songs are added to a playlist if the user wants them to start -playing immediately (eg by double clicking on a song in the library view). - -@param index: The first of the newly added indexes in the playlist. -@type index: L{PyQt4.QtCore.QModelIndex} -%End - -private: - PlaylistManagerInterface(); -}; diff --git a/src/scripting/python/playlistparser.sip b/src/scripting/python/playlistparser.sip deleted file mode 100644 index 197406636..000000000 --- a/src/scripting/python/playlistparser.sip +++ /dev/null @@ -1,145 +0,0 @@ -class PlaylistParser : QObject { -%TypeHeaderCode - #include "playlistparsers/playlistparser.h" -%End - -%Docstring -Utility class to read and write playlist files. - -The PlaylistParser supports a number of different playlist formats - these are -implemeted by subclasses of L{ParserBase}. Usually you don't need to worry -about finding the right parser for your file - PlaylistParser will do that -automatically based on the filename you give it (for example, it will use the -PlsParser if you ask it to load a file called C{playlist.pls}). - -If you don't know the filename because you're reading data directly from the -network, PlaylistParser can also guess the type of parser to use by looking for -magic strings in the first few bytes of the file. The constant C{kMagicSize} -tells you how many bytes the PlaylistParser will take when using magic. - -PlaylistParser deals with loading and saving lists of L{Song} objects. - - >>> parser = clementine.PlaylistParser(clementine.library) - ... songlist = parser.LoadFromFile("songs.xspf") - ... print songlist[0].title() - ... parser.Save(songlist, "songs.asx") - -Notice that this class' constructor takes a L{LibraryBackend}. Why does a -playlist parser need access to the library? When loading a list of songs the -parser will check whether a song exists already in the library, and will use -the metadata that's already been loaded instead of loading it again. You can -get Clementine's library by using C{clementine.library}. - -@warning: The L{LoadFromFile()}, L{LoadFromDevice()} and L{Save()} methods in - this class are B{blocking} and should not be called from the main thread. - For a higher level interface to loading songs from playlists you should use - the L{SongLoader} class which works in a background thread. -%End - -public: - PlaylistParser(LibraryBackend* library, QObject* parent /TransferThis/ = 0); - - static const int kMagicSize; - - QStringList file_extensions() const; -%Docstring -file_extensions() -> list of str -Returns the list of file extensions that the PlaylistParser knows how to parse. -%End - - QString filters() const; -%Docstring -filters() -> str -Returns a filter string suitable for use in L{PyQt4.QtGui.QFileDialog}. -%End - - QString default_extension() const; -%Docstring -default_extension() -> str -Returns the recommended extension to use when saving playlists. Currently this -is C{xspf}. -%End - - QString default_filter() const; -%Docstring -default_filter() -> str -Returns the recommended default filter string suitable for use in -L{PyQt4.QtGui.QFileDialog}. -%End - - ParserBase* ParserForMagic(const QByteArray& data, - const QString& mime_type = QString()) const; -%Docstring -ParserForMagic(data, mime_type="") -> L{ParserBase} -Tries to guess the file type of a playlist based on the first few bytes of its -contents or (optionally) a mime type. - -@param data: should be at least L{kMagicSize} bytes long. -@type data: str -@param mime_type: (optional) the mime type of the data obtained through (for - example) and HTTP response header. -@type mime_type: str -@return: a parser for this file format, or None if it was not possible to guess. - -@note: only use this method if you need direct access to the parser. If you - just want to load a list of songs from some data use L{LoadFromDevice()}. -%End - - ParserBase* ParserForExtension(const QString& suffix) const; -%Docstring -ParserForExtension(suffix) -> L{ParserBase} -Tried to guess the file type of a playlist based on its file extension. - -@param suffix: the file extension, not including the C{.} character. -@type suffix: str -@return: a parser for this file format, or None if the extension wasn't - recognised. - -@note: only use this method if you need direct access to the parser. If you - just want to load a list of songs from a file use L{LoadFromFile()}. -%End - - SongList LoadFromFile(const QString& filename) const; -%Docstring -LoadFromFile(filename) -> list of L{Song} -Loads a playlist from a file and returns the list of songs that it contained. -Determines the type of the playlist based on the file extension by calling -L{ParserForExtension}. - -@return: the list of songs in the playlist, or an empty list if the playlist - couldn't be loaded. -%End - - SongList LoadFromDevice(QIODevice* device, const QString& path_hint = "", - const QDir& dir_hint = QDir()) const; -%Docstring -LoadFromDevice(device, path_hint="", dir_hint="") -> list of L{Song} -Loads a playlist from a L{PyQt4.QtCore.QIODevice} and returns the list of songs -that it contained. Determines the type of the playlist by peeking at the first -L{kMagicSize} bytes of the device and using L{ParserForMagic}. - -@param device: an open device on a playlist file. You can use any device here, - including L{PyQt4.QtNetwork.QTcpSocket}, L{PyQt4.QtCore.QFile} or - L{PyQt4.QtCore.QBuffer}. -@type device: L{PyQt4.QtCore.QIODevice} -@param path_hint: (optional) the filename of the playlist. Some parsers may - use this filename to add additional information to the L{Song}s returned, for - example the cue parser fills out the L{Song.cue_path()} field. -@type path_hint: str -@param dir_hint: (optional) the directory containing the playlist. Parsers will - use this directory to resolve any relative filenames in the playlist. -@type dir_hint: L{PyQt4.QtCore.QDir} -@return: the list of songs in the playlist, or an empty list if the playlist - couldn't be loaded. -%End - - void Save(const SongList& songs, const QString& filename) const; -%Docstring -Save(songs, filename) -Saves a list of songs to a new playlist. Determines the type of the playlist -to create based on the file extension by calling L{ParserForExtension}. - -@type songs: list of L{Song} -@type filename: str -%End -}; diff --git a/src/scripting/python/playlistsequence.sip b/src/scripting/python/playlistsequence.sip deleted file mode 100644 index af8143c3e..000000000 --- a/src/scripting/python/playlistsequence.sip +++ /dev/null @@ -1,119 +0,0 @@ -// The QWidget base class is deliberately hidden -struct PlaylistSequence { - -%TypeHeaderCode -#include "playlist/playlistsequence.h" -%End - -%Docstring -Contains the shuffle and repeat state of the player. - -This state is shared between all playlists. You can access the global -PlaylistSequence instance through the L{PlaylistManager}: - - >>> sequence = clementine.playlists.sequence() - ... sequence.SetShuffleMode(clementine.PlaylistSequence.Shuffle_All) - ... sequence.SetRepeatMode(clementine.PlaylistSequence.Repeat_Playlist) - -The constants defined in this class are: - - - C{Repeat_Off} - - C{Repeat_Track} - repeats the current track - - C{Repeat_Album} - repeats the current album - - C{Repeat_Playlist} - repeats the whole playlist - - C{Shuffle_Off} - - C{Shuffle_All} - plays tracks in a random order - - C{Shuffle_Album} - plays tracks from the current album in a random order - -@group Signals: RepeatModeChanged, ShuffleModeChanged -@group Slots: SetRepeatMode, SetShuffleMode, SetUsingDynamicPlaylist -%End - -public: - enum RepeatMode { - Repeat_Off = 0, - Repeat_Track = 1, - Repeat_Album = 2, - Repeat_Playlist = 3, - }; - enum ShuffleMode { - Shuffle_Off = 0, - Shuffle_All = 1, - Shuffle_Album = 2, - }; - - RepeatMode repeat_mode() const; -%Docstring -repeat_mode() -> int -Returns the current repeat mode. - -@return: one of the C{Repeat_} constants. -%End - - ShuffleMode shuffle_mode() const; -%Docstring -shuffle_mode() -> int -Returns the current shuffle mode. - -@return: one of the C{Shuffle_} constants. -%End - - QMenu* repeat_menu() const; -%Docstring -repeat_menu() -> L{PyQt4.QtGui.QMenu} -Returns a menu that can be added to a button or another menu to allow the user -to control the repeat behaviour. -%End - - QMenu* shuffle_menu() const; -%Docstring -shuffle_menu() -> L{PyQt4.QtGui.QMenu} -Returns a menu that can be added to a button or another menu to allow the user -to control the shuffle behaviour. -%End - -public slots: - void SetRepeatMode(PlaylistSequence::RepeatMode mode); -%Docstring -SetRepeatMode(mode) -Changes the repeat mode. - -@param mode: one of the C{Repeat_} constants. -%End - - void SetShuffleMode(PlaylistSequence::ShuffleMode mode); -%Docstring -SetShuffleMode(mode) -Changes the shuffle mode. - -@param mode: one of the C{Shuffle_} constants. -%End - - void SetUsingDynamicPlaylist(bool dynamic); -%Docstring -SetUsingDynamicPlaylist(dynamic) -When using dynamic playlists changing the shuffle and repeat modes is not -allowed, their buttons in the interface are disabled, and the L{repeat_mode()} -and L{shuffle_mode()} functions always return C{Repeat_Off} and C{Shuffle_Off}. - -@type dynamic: bool -%End - -signals: - void RepeatModeChanged(PlaylistSequence::RepeatMode mode); -%Docstring -RepeatModeChanged(new_mode) -Emitted when the repeat mode is changed, either by the user or by a call to -L{SetRepeatMode()}. -%End - - void ShuffleModeChanged(PlaylistSequence::ShuffleMode mode); -%Docstring -ShuffleModeChanged(new_mode) -Emitted when the shuffle mode is changed, either by the user or by a call to -L{SetShuffleMode()}. -%End - -private: - PlaylistSequence(); -}; diff --git a/src/scripting/python/pythonconsole.cpp b/src/scripting/python/pythonconsole.cpp deleted file mode 100644 index 2782fe6c3..000000000 --- a/src/scripting/python/pythonconsole.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -// Needs to be included first -#include "pythonengine.h" - -#include "pythonconsole.h" -#include "ui_pythonconsole.h" - -#include - -#include -#include - -PythonConsole::PythonConsole(QWidget *parent) - : QWidget(parent), - ui_(new Ui_PythonConsole), - proxy_model_(new QSortFilterProxyModel(this)), - engine_(NULL), - widget_(NULL) -{ - ui_->setupUi(this); - connect(ui_->modules, SIGNAL(currentIndexChanged(int)), SLOT(ModuleChanged(int))); - connect(ui_->clearConsoleButton, SIGNAL(clicked()),SLOT(ClearConsole())); -} - -PythonConsole::~PythonConsole() { - delete ui_; -} - -void PythonConsole::showEvent(QShowEvent* e) { - engine_->EnsureInitialised(); - - QWidget::showEvent(e); -} - -void PythonConsole::SetEngine(PythonEngine* engine) { - engine_ = engine; - - proxy_model_->setSourceModel(engine->modules_model()); - proxy_model_->setDynamicSortFilter(true); - - ui_->modules->setModel(proxy_model_); -} - -void PythonConsole::ModuleChanged(int row) { - const QModelIndex index = proxy_model_->index(row, 0); - - PythonQtObjectPtr ptr; - ptr.fromVariant(index.data(Qt::UserRole + 1)); - - delete widget_; - widget_ = new PythonQtScriptingConsole(this, ptr); - - layout()->addWidget(widget_); -} - -void PythonConsole::ClearConsole() { - widget_->clear(); -} diff --git a/src/scripting/python/pythonconsole.h b/src/scripting/python/pythonconsole.h deleted file mode 100644 index db9c4cec6..000000000 --- a/src/scripting/python/pythonconsole.h +++ /dev/null @@ -1,56 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef PYTHONCONSOLE_H -#define PYTHONCONSOLE_H - -#include - - -class QSortFilterProxyModel; - -class PythonQtScriptingConsole; - -class PythonEngine; -class Ui_PythonConsole; - -class PythonConsole : public QWidget { - Q_OBJECT - -public: - PythonConsole(QWidget* parent = 0); - ~PythonConsole(); - - void SetEngine(PythonEngine* engine); - -protected: - void showEvent(QShowEvent* e); - -private slots: - void ModuleChanged(int row); - void ClearConsole(); - -private: - Ui_PythonConsole* ui_; - QSortFilterProxyModel* proxy_model_; - - PythonEngine* engine_; - - PythonQtScriptingConsole* widget_; -}; - -#endif // PYTHONCONSOLE_H diff --git a/src/scripting/python/pythonconsole.ui b/src/scripting/python/pythonconsole.ui deleted file mode 100644 index f6eb5aece..000000000 --- a/src/scripting/python/pythonconsole.ui +++ /dev/null @@ -1,49 +0,0 @@ - - - PythonConsole - - - - 0 - 0 - 788 - 439 - - - - Form - - - - - - - - Context: - - - - - - - - 0 - 0 - - - - - - - - Clear Console - - - - - - - - - - diff --git a/src/scripting/python/pythonengine.cpp b/src/scripting/python/pythonengine.cpp deleted file mode 100644 index f5a367ec9..000000000 --- a/src/scripting/python/pythonengine.cpp +++ /dev/null @@ -1,291 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include -#include - -#include -#include -#include -#include - -#include "objectdecorators.h" -#include "pythonengine.h" -#include "pythonscript.h" -#include "core/logging.h" -#include "core/song.h" -#include "core/player.h" -#include "core/taskmanager.h" -#include "covers/albumcoverfetcher.h" -#include "covers/coverproviders.h" -#include "internet/internetmodel.h" -#include "library/library.h" -#include "library/librarybackend.h" -#include "library/libraryview.h" -#include "playlist/playlistitem.h" -#include "playlist/playlistmanager.h" -#include "scripting/uiinterface.h" -#include "ui/settingsdialog.h" - -#include -#include -#include -#include - -Q_DECLARE_METATYPE(QModelIndex) -Q_DECLARE_METATYPE(QList) - -const char* PythonEngine::kClementineModuleName = "clementine"; -const char* PythonEngine::kScriptModulePrefix = "clementinescripts"; -PythonEngine* PythonEngine::sInstance = NULL; - - -void PythonQt_init_Clementine(PyObject* module); - - -PythonEngine::PythonEngine(ScriptManager* manager) - : LanguageEngine(manager), - initialised_(false), - modules_model_(new QStandardItemModel(this)) -{ - Q_ASSERT(sInstance == NULL); - sInstance = this; - - #ifdef Q_OS_DARWIN - setenv("PYTHONPATH", (QCoreApplication::applicationDirPath() + "/../PlugIns").toLocal8Bit().constData(), 1); - #endif -} - -PythonEngine::~PythonEngine() { - sInstance = NULL; - - modules_model_->clear(); - - scripts_module_ = PythonQtObjectPtr(); - clementine_module_ = PythonQtObjectPtr(); - PythonQt::cleanup(); -} - -template -static void RegisterListConverter(const char* other_class_name) { - typedef QList L; - const int primary_id = qMetaTypeId(); - const int secondary_id = QMetaType::type(other_class_name); - - PythonQtConvertMetaTypeToPythonCB* metatype_to_python = - PythonQtConvertListOfValueTypeToPythonList; - PythonQtConvertPythonToMetaTypeCB* python_to_metatype = - PythonQtConvertPythonListToListOfValueType; - - qLog(Debug) << "Registering list converters for" << - primary_id << QMetaType::typeName(primary_id) << "," << - secondary_id << other_class_name; - - PythonQtConv::registerMetaTypeToPythonConverter(primary_id, metatype_to_python); - PythonQtConv::registerMetaTypeToPythonConverter(secondary_id, metatype_to_python); - - PythonQtConv::registerPythonToMetaTypeConverter(primary_id, python_to_metatype); - PythonQtConv::registerPythonToMetaTypeConverter(secondary_id, python_to_metatype); -} - -bool PythonEngine::EnsureInitialised() { - if (initialised_) - return true; - - PythonQt::init(PythonQt::IgnoreSiteModule | PythonQt::RedirectStdOut); - PythonQt* python_qt = PythonQt::self(); - - // Add the Qt bindings - PythonQt_init_QtCore(0); - PythonQt_init_QtGui(0); - PythonQt_init_QtNetwork(0); - - // Set the importer to allow imports from Qt resource paths - python_qt->installDefaultImporter(); - python_qt->addSysPath(":/pythonlibs/"); - - // Add some extra decorators on QObjects - python_qt->addDecorators(new ObjectDecorators); - - // Register converters for list types - RegisterListConverter("QList"); - RegisterListConverter("QList"); - RegisterListConverter("QList"); - RegisterListConverter("QList"); - RegisterListConverter("QList"); - RegisterListConverter("QList"); - - // Connect stdout, stderr - connect(python_qt, SIGNAL(pythonStdOut(QString)), SLOT(PythonStdOut(QString))); - connect(python_qt, SIGNAL(pythonStdErr(QString)), SLOT(PythonStdErr(QString))); - - connect(python_qt, SIGNAL(signalConnectedToPython(PythonQtSignalReceiver*,int,PyObject*)), - SLOT(SignalConnectedToPython(PythonQtSignalReceiver*,int,PyObject*))); - - // Create a clementine module - clementine_module_ = python_qt->createModuleFromScript(kClementineModuleName); - PythonQt_init_Clementine(clementine_module_); - - // Add classes - python_qt->registerClass(&AutoExpandingTreeView::staticMetaObject, kClementineModuleName); - - const ScriptManager::GlobalData& data = manager()->data(); - if (data.valid_) { - // Add objects - clementine_module_.addObject("library", data.library_->backend()); - clementine_module_.addObject("library_view", data.library_view_); - clementine_module_.addObject("player", data.player_); - clementine_module_.addObject("playlists", data.playlists_); - clementine_module_.addObject("internet_model", data.internet_model_); - clementine_module_.addObject("settings_dialog", data.settings_dialog_); - clementine_module_.addObject("task_manager", data.task_manager_); - clementine_module_.addObject("cover_providers", &CoverProviders::instance()); - } - - clementine_module_.addObject("ui", manager()->ui()); - clementine_module_.addObject("pythonengine", this); - - // Set up logging integration - PythonQtObjectPtr logging_module = python_qt->importModule("clementinelogging"); - logging_module.call("setup_logging"); - - // Create a module for scripts - scripts_module_ = python_qt->createModuleFromScript(kScriptModulePrefix); - - // The modules model contains all the modules - modules_model_->clear(); - AddModuleToModel("__main__", python_qt->getMainModule()); - - initialised_ = true; - return true; -} - -Script* PythonEngine::CreateScript(const ScriptInfo& info) { - // Initialise Python if it hasn't been done yet - if (!EnsureInitialised()) { - return NULL; - } - - PythonScript* ret = new PythonScript(this, info); - loaded_scripts_[ret->info().id()] = ret; // Used by RegisterNativeObject during startup - if (ret->Init()) { - AddModuleToModel(ret->module_name(), ret->module()); - return ret; - } - - DestroyScript(ret); - return NULL; -} - -void PythonEngine::DestroyScript(Script* script) { - PythonScript* python_script = static_cast(script); - RemoveModuleFromModel(python_script->module_name()); - - script->Unload(); - loaded_scripts_.remove(script->info().id()); - delete script; -} - -void PythonEngine::AddStringToBuffer(const QString& str, - const QString& buffer_name, - QString* buffer, bool error) { - buffer->append(str); - - int index = buffer->indexOf('\n'); - while (index != -1) { - const QString message = buffer->left(index); - buffer->remove(0, index + 1); - index = buffer->indexOf('\n'); - - logging::CreateLogger(logging::Level_Info, buffer_name, -1) << - message.toUtf8().constData(); - manager()->AddLogLine(buffer_name, message, error); - } -} - -void PythonEngine::PythonStdOut(const QString& str) { - AddStringToBuffer(str, "sys.stdout", &stdout_buffer_, false); -} - -void PythonEngine::PythonStdErr(const QString& str) { - AddStringToBuffer(str, "sys.stderr", &stdout_buffer_, true); -} - -void PythonEngine::HandleLogRecord(int level, const QString& logger_name, - int lineno, const QString& message) { - logging::Level level_name = logging::Level_Debug; - if (level >= 40) level_name = logging::Level_Error; - else if (level >= 30) level_name = logging::Level_Warning; - else if (level >= 20) level_name = logging::Level_Info; - - logging::CreateLogger(level_name, logger_name, lineno) << - message.toUtf8().constData(); - manager()->AddLogLine(QString("%1:%2").arg(logger_name).arg(lineno), - message, level >= 30); -} - -void PythonEngine::AddModuleToModel(const QString& name, PythonQtObjectPtr ptr) { - QStandardItem* item = new QStandardItem(name); - item->setData(QVariant::fromValue(ptr)); - modules_model_->appendRow(item); -} - -void PythonEngine::RemoveModuleFromModel(const QString& name) { - foreach (QStandardItem* item, modules_model_->findItems(name)) { - modules_model_->removeRow(item->row()); - } -} - -QString PythonEngine::CurrentScriptName() { - // Walk up the Python stack and find the name of the script that's nearest - // the top of the stack. - const QString prefix = QString(kScriptModulePrefix) + "."; - - PyFrameObject* frame = PyEval_GetFrame(); - while (frame) { - if (PyDict_Check(frame->f_globals)) { - PyObject* __name__ = PyDict_GetItemString(frame->f_globals, "__name__"); - if (__name__ && PyString_Check(__name__)) { - const QString name(PyString_AsString(__name__)); - if (name.startsWith(prefix)) { - int n = name.indexOf('.', prefix.length()); - if (n != -1) { - n -= prefix.length(); - } - return name.mid(prefix.length(), n); - } - } - } - frame = frame->f_back; - } - return QString(); -} - -Script* PythonEngine::CurrentScript() const { - const QString name(CurrentScriptName()); - if (loaded_scripts_.contains(name)) - return loaded_scripts_[name]; - return NULL; -} - -void PythonEngine::SignalConnectedToPython(PythonQtSignalReceiver* receiver, - int signal_id, PyObject* callable) { - PythonScript* script = static_cast(CurrentScript()); - if (script) { - script->RegisterSignalConnection(receiver, signal_id, callable); - } -} diff --git a/src/scripting/python/pythonengine.h b/src/scripting/python/pythonengine.h deleted file mode 100644 index 38c2c9a36..000000000 --- a/src/scripting/python/pythonengine.h +++ /dev/null @@ -1,87 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef PYTHONENGINE_H -#define PYTHONENGINE_H - -#include - -#include "scripting/languageengine.h" - -#include "gtest/gtest_prod.h" - -class QStandardItemModel; - - -class PythonEngine : public LanguageEngine { - Q_OBJECT - - FRIEND_TEST(PythonTest, SharedPointers); - -public: - PythonEngine(ScriptManager* manager); - ~PythonEngine(); - - static PythonEngine* instance() { return sInstance; } - - static const char* kClementineModuleName; - static const char* kScriptModulePrefix; - - ScriptInfo::Language language() const { return ScriptInfo::Language_Python; } - QString name() const { return "python"; } - QStandardItemModel* modules_model() const { return modules_model_; } - - bool EnsureInitialised(); - - Script* CreateScript(const ScriptInfo& info); - void DestroyScript(Script* script); - - static QString CurrentScriptName(); - Script* CurrentScript() const; - -public slots: - void HandleLogRecord(int level, const QString& logger_name, int lineno, - const QString& message); - -private slots: - void PythonStdOut(const QString& str); - void PythonStdErr(const QString& str); - void SignalConnectedToPython(PythonQtSignalReceiver* receiver, int signal_id, - PyObject* callable); - -private: - void AddModuleToModel(const QString& name, PythonQtObjectPtr ptr); - void RemoveModuleFromModel(const QString& name); - - void AddStringToBuffer(const QString& str, const QString& buffer_name, - QString* buffer, bool error); - -private: - static PythonEngine* sInstance; - bool initialised_; - - PythonQtObjectPtr clementine_module_; - PythonQtObjectPtr scripts_module_; - - QMap loaded_scripts_; - QStandardItemModel* modules_model_; - - QString stdout_buffer_; - QString stderr_buffer_; -}; - -#endif // PYTHONENGINE_H diff --git a/src/scripting/python/pythonengine.sip b/src/scripting/python/pythonengine.sip deleted file mode 100644 index 079ddfe17..000000000 --- a/src/scripting/python/pythonengine.sip +++ /dev/null @@ -1,42 +0,0 @@ -class PythonEngine { - -%TypeHeaderCode -#include "scripting/python/pythonengine.h" -%End - -%Docstring -Helper functions for communicating with Clementine's Python interface. - -This is a singleton class, you can access its methods directly through the -C{clementine.pythonengine} object: - - >>> clementine.pythonengine.AddLogLine("Everything is ok") -%End - -public: - void AddLogLine(const QString& message, bool error = false); -%Docstring -AddLogLine(message, error=false) -Writes a line to the Clementine script console. - -Note that sys.stdout and sys.stderr are already redirected to the script -console, so you will not normally need to call this function. Instead you can -use C{print} directly:: - - # These lines are equivalent - print "Everything is ok" - clementine.pythonengine.AddLogLine("Everything is ok") - - # These lines are equivalent - print >>sys.stderr, "Everything is wrong" - clementine.pythonengine.AddLogLine("Everything is wrong", error=True) - -@param message: A line to write to the log. -@type message: str -@param error: If this is True then the message will appear in red. -@type error: bool -%End - -private: - PythonEngine(); -}; diff --git a/src/scripting/python/pythonscript.cpp b/src/scripting/python/pythonscript.cpp deleted file mode 100644 index 308632514..000000000 --- a/src/scripting/python/pythonscript.cpp +++ /dev/null @@ -1,123 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include -#include - -#include "pythonengine.h" -#include "pythonscript.h" -#include "core/logging.h" -#include "scripting/scriptinfo.h" -#include "scripting/scriptinterface.h" - -#include -#include - - -PythonScript::PythonScript(PythonEngine* engine, const ScriptInfo& info) - : Script(engine, info), - engine_(engine), - module_name_(QString(PythonEngine::kScriptModulePrefix) + "." + info.id()) -{ -} - -bool PythonScript::Init() { - engine_->manager()->AddLogLine("Python", - "Loading script file \"" + info().script_file() + "\"", false); - - PythonQt* python_qt = PythonQt::self(); - - // Create a module for the script - module_ = python_qt->createModuleFromScript(module_name_); - - // Set __path__ - don't use PythonQtObjectPtr::addVariable because it sets - // it as a tuple instead of a list. - PyObject* __path__ = PyList_New(1); - PyList_SetItem(__path__, 0, PyString_FromString(info().path().toLocal8Bit().constData())); - PyModule_AddObject(module_, "__path__", __path__); - - // Set __file__ - module_.addVariable("__file__", info().script_file()); - - // Set script object - module_.addObject("__script__", interface()); - - // Eval the script - PythonQtObjectPtr code = python_qt->parseFile(info().script_file()); - if (code) { - PyObject* dict = PyModule_GetDict(module_); - PyObject* r = PyEval_EvalCode((PyCodeObject*)code.object(), dict, dict); - if (r) { - Py_DECREF(r); - } - } - - if (PyErr_Occurred()) { - PythonQt::self()->handleError(); - engine_->manager()->AddLogLine("Python", "Failed to create module for script", true); - return false; - } - - return true; -} - -bool PythonScript::Unload() { - // Disconnect any signal connections that this script made while it was - // running. This is important because those connections will hold references - // to bound methods in the script's classes, so the classes won't get deleted. - foreach (const SignalConnection& conn, signal_connections_) { - conn.receiver_->removeSignalHandler(conn.signal_id_, conn.callable_); - } - - // Remove this module and all its children from sys.modules. That should be - // the only place that references it, so this will clean up the modules' - // dict and all globals. - PyInterpreterState *interp = PyThreadState_GET()->interp; - PyObject* modules = interp->modules; - - QStringList keys_to_delete; - - Py_ssize_t pos = 0; - PyObject* key; - PyObject* value; - while (PyDict_Next(modules, &pos, &key, &value)) { - const char* name = PyString_AS_STRING(key); - if (PyString_Check(key) && PyModule_Check(value)) { - if (QString(name).startsWith(module_name_)) { - keys_to_delete << name; - } - } - } - - foreach (const QString& key, keys_to_delete) { - // Workaround Python issue 10068 (only affects 2.7.0) - _PyModule_Clear(PyDict_GetItemString(modules, key.toAscii().constData())); - - PyDict_DelItemString(modules, key.toAscii().constData()); - } - - module_ = PythonQtObjectPtr(); - - PyGC_Collect(); - - return true; -} - -void PythonScript::RegisterSignalConnection(PythonQtSignalReceiver* receiver, - int signal_id, PyObject* callable) { - signal_connections_ << SignalConnection(receiver, signal_id, callable); -} diff --git a/src/scripting/python/pythonscript.h b/src/scripting/python/pythonscript.h deleted file mode 100644 index 07b86d8f7..000000000 --- a/src/scripting/python/pythonscript.h +++ /dev/null @@ -1,57 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef PYTHONSCRIPT_H -#define PYTHONSCRIPT_H - -#include "scripting/script.h" - -class PythonEngine; -class ScriptInfo; - -class PythonScript : public Script { -public: - PythonScript(PythonEngine* engine, const ScriptInfo& info); - - const QString& module_name() const { return module_name_; } - PythonQtObjectPtr module() const { return module_; } - - bool Init(); - bool Unload(); - - void RegisterSignalConnection(PythonQtSignalReceiver* receiver, - int signal_id, PyObject* callable); - -private: - PythonEngine* engine_; - - QString module_name_; - PythonQtObjectPtr module_; - - struct SignalConnection { - SignalConnection(PythonQtSignalReceiver* receiver, - int signal_id, PyObject* callable) - : receiver_(receiver), signal_id_(signal_id), callable_(callable) {} - - PythonQtSignalReceiver* receiver_; - int signal_id_; - PyObject* callable_; - }; - QList signal_connections_; -}; - -#endif // PYTHONSCRIPT_H diff --git a/src/scripting/python/queue.sip b/src/scripting/python/queue.sip deleted file mode 100644 index 8688cef60..000000000 --- a/src/scripting/python/queue.sip +++ /dev/null @@ -1,127 +0,0 @@ -struct Queue : QAbstractProxyModel { - -%TypeHeaderCode -#include "playlist/queue.h" -%End - -%Docstring -A model containing the list of songs that are enqueued on a playlist. - -In Clementine each L{Playlist} has its own Queue object. The Queue keeps an -ordered list of items that are enqueued on that playlist. Whenever a song -finishes the top item is removed from the Queue and is played immediately. -When there are no items left on the Queue playback continues again in the normal -order. - -The L{Playlist} is a standard Qt item model where each row represents one item -in the playlist. The Queue is a Qt proxy model on top of the Playlist model, -which means that rows in the Queue can map directly onto rows in the Playlist. -Use C{mapToSource(index)} and C{mapFromSource(index)} to map rows in the Queue -to or from rows in the Playlist. - -You can't create Queue objects directly. Instead you have to get a Queue from -an existing playlist. - - >>> queue = clementine.playlists.current().queue() - >>> queue.Clear() -%End - -public: - static const char* kRowsMimetype; - - bool is_empty() const; -%Docstring -is_empty() -> bool -Checks whether the queue is empty. -%End - - int PositionOf(const QModelIndex& source_index) const; -%Docstring -PositionOf(source_index) -> int -Finds the position in the Queue of a playlist item. - -@param source_index: The index of an item in the underlying L{Playlist} model. -@type source_index: L{PyQt4.QtCore.QModelIndex} -@return: The position in the queue of the playlist item, or -1 if the playlist - item is invalid or is not in the queue. -%End - - bool ContainsSourceRow(int source_row) const; -%Docstring -ContainsSourceRow(source_row) -> bool -Checks whether a playlist row is in the queue. - -@param source_row: The row number of an item in the underlying L{Playlist} model. -@type source_row: int -%End - - int PeekNext() const; -%Docstring -PeekNext() -> int -Returns the row number in the L{Playlist} of the next item in the queue, leaving -the Queue unchanged. -%End - - int TakeNext(); -%Docstring -TakeNext() -> int -Like L{PeekNext()}, but removes the item from the Queue as well as returning it. -%End - - void ToggleTracks(const QModelIndexList& source_indexes); -%Docstring -ToggleTracks(source_indexes) -Adds or removes the Playlist indexes to/from the queue. - -@param source_indexes: A list of indexes from the underlying L{Playlist} model. -@type source_indexes: list of L{PyQt4.QtCore.QModelIndex}es -%End - - void Clear(); -%Docstring -Clear() -Removes all the items from the Queue. -%End - - void Move(const QList& proxy_rows, int pos); -%Docstring -Move(proxy_rows, pos) -Moves a list of queued items to a different position in the queue. - -Example:: - - # Moves the second item to the front. - queue.Move([1], 0) - - # Moves the first three items to the end. - queue.Move([0, 1, 2], queue.rowCount() - 1) - -@param proxy_rows: A list of row numbers of items already in the queue. -@type proxy_rows: list of ints -@param pos: The new position in which to insert the items. -@type pos: int -%End - - void MoveUp(int row); -%Docstring -MoveUp(row) -Moves the queued item up one position in the Queue. - -This is equivalent to:: - - queue.Move([row], row - 1) -%End - - void MoveDown(int row); -%Docstring -MoveUp(row) -Moves the queued item down one position in the Queue. - -This is equivalent to:: - - queue.Move([row], row + 2) -%End - -private: - Queue(); -}; diff --git a/src/scripting/python/radiomodel.sip b/src/scripting/python/radiomodel.sip deleted file mode 100644 index a901f5356..000000000 --- a/src/scripting/python/radiomodel.sip +++ /dev/null @@ -1,43 +0,0 @@ -class RadioModel : QStandardItemModel { - -%TypeHeaderCode -#include "radio/radiomodel.h" -#include "scripting/python/pythonengine.h" -%End - -public: - enum Role { - Role_Type, - Role_PlayBehaviour, - Role_Url, - Role_SongMetadata, - Role_CanLazyLoad, - Role_Service, - }; - - enum Type { - Type_Service, - TypeCount - }; - - enum PlayBehaviour { - PlayBehaviour_None, - PlayBehaviour_UseSongLoader, - PlayBehaviour_SingleItem, - }; - - void AddService(RadioService* service /Transfer/); -%MethodCode - sipCpp->AddService(a0); - PythonEngine::instance()->RegisterNativeObject(a0); -%End - void RemoveService(RadioService* service /TransferBack/); - - bool IsPlayable(const QModelIndex& index) const; - - MergedProxyModel* merged_model() const; - TaskManager* task_manager() const; - -private: - RadioModel(); -}; diff --git a/src/scripting/python/radioservice.sip b/src/scripting/python/radioservice.sip deleted file mode 100644 index 41b2e139c..000000000 --- a/src/scripting/python/radioservice.sip +++ /dev/null @@ -1,50 +0,0 @@ -class RadioService : QObject { - -%TypeHeaderCode -#include "radio/radioservice.h" -%End - -public: - RadioService(const QString& name, RadioModel* model); - - QString name() const; - RadioModel* model() const; - - virtual QStandardItem* CreateRootItem() = 0 /TransferBack/; - virtual void LazyPopulate(QStandardItem* parent) = 0; - - virtual void ShowContextMenu(const QModelIndex& index, const QPoint& global_pos); - - virtual PlaylistItem::Options playlistitem_options() const; - - virtual QWidget* HeaderWidget() const /Transfer/; - - virtual void ReloadSettings(); - - virtual QString Icon(); - -signals: - void StreamError(const QString& message); - void StreamMetadataFound(const QUrl& original_url, const Song& song); - void OpenSettingsAtPage(SettingsDialog::Page page); - - void AddToPlaylistSignal(QMimeData* data); - -protected: - virtual QModelIndex GetCurrentIndex() = 0; - - QList GetPlaylistActions(); - - QAction* GetAppendToPlaylistAction(); - QAction* GetReplacePlaylistAction(); - QAction* GetOpenInNewPlaylistAction(); - - enum AddMode { - AddMode_Append, - AddMode_Replace, - AddMode_OpenInNew - }; - - void AddItemToPlaylist(const QModelIndex& index, AddMode add_mode); - void AddItemsToPlaylist(const QModelIndexList& indexes, AddMode add_mode); -}; diff --git a/src/scripting/python/scriptinterface.sip b/src/scripting/python/scriptinterface.sip deleted file mode 100644 index a3589f2b9..000000000 --- a/src/scripting/python/scriptinterface.sip +++ /dev/null @@ -1,85 +0,0 @@ -class ScriptInterface : QObject { - -%TypeHeaderCode -#include "scripting/scriptinterface.h" -%End - -%Docstring -Helper functions that are specific to a single script running inside Clementine. - -An instance of this class is created as a global variable in a script's main -package, similar to the Python global variables C{__name__} and C{__file__}. -You can access it through C{script}: - - >>> def show_settings_dialog(): - ... pass - ... - ... script.SettingsDialogRequested().connect(show_settings_dialog()) - -The signals in this object are emitted by Clementine when the user does things -related to your script, such as clicking on the Settings... button. You should -connect these signals to slots in your Python code and respond to them -appropriately. - -@group Signals: SettingsDialogRequested -%End - -%ConvertToSubClassCode - // Any classes that inherit from QObject must be added to this list - - #define CLASS(name) {sipName_##name, &sipType_##name} - static struct class_list { - const char *name; - sipTypeDef **type; - } list[] = { - CLASS(CoverProvider), - CLASS(CoverProviders), - CLASS(LibraryBackend), - CLASS(MergedProxyModel), - CLASS(NetworkAccessManager), - CLASS(ParserBase), - CLASS(PlayerInterface), - CLASS(Playlist), - CLASS(PlaylistManagerInterface), - CLASS(PlaylistParser), - CLASS(PlaylistSequence), - CLASS(Queue), - CLASS(RadioModel), - CLASS(RadioService), - CLASS(ScriptInterface), - CLASS(SettingsDialog), - CLASS(SongInsertVetoListener), - CLASS(SongLoader), - CLASS(TaskManager), - CLASS(UIInterface), - CLASS(UrlHandler), - {0, 0} - }; - #undef CLASS - - sipType = NULL; - - for (int i=0 ; ; ++i) { - struct class_list* p = &list[i]; - if (!p->name) { - break; - } - - if (sipCpp->inherits(p->name)) { - sipType = *p->type; - break; - } - } -%End - -signals: - void SettingsDialogRequested(); -%Docstring -SettingsDialogRequested() -Emitted when the user clicks the Settings... button in the Script Manager -dialog. -%End - -private: - ScriptInterface(); -}; diff --git a/src/scripting/python/settingsdialog.sip b/src/scripting/python/settingsdialog.sip deleted file mode 100644 index 08afd44fb..000000000 --- a/src/scripting/python/settingsdialog.sip +++ /dev/null @@ -1,24 +0,0 @@ -class SettingsDialog : QDialog { - -%TypeHeaderCode -#include "radio/radioservice.h" -%End - -public: - enum Page { - Page_Playback, - Page_Behaviour, - Page_SongInformation, - Page_GlobalShortcuts, - Page_Notifications, - Page_Library, - Page_Magnatune, - Page_BackgroundStreams, - Page_Proxy, - }; - - void OpenAtPage(Page page); - -private: - SettingsDialog(); -}; diff --git a/src/scripting/python/sharedpointermanager.h b/src/scripting/python/sharedpointermanager.h deleted file mode 100644 index 2425be3c3..000000000 --- a/src/scripting/python/sharedpointermanager.h +++ /dev/null @@ -1,78 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef SHAREDPOINTERMANAGER_H -#define SHAREDPOINTERMANAGER_H - -#include -#include -#include - -template -struct SharedPointerManager { - typedef T cpp_type; - typedef boost::shared_ptr smart_pointer_type; - typedef std::pair smart_pointer_count; - typedef std::map pointer_map_type; - - static pointer_map_type* _pointer_map; - - static void init() { - if(!_pointer_map) - _pointer_map = new pointer_map_type(); - } - - // Add a new reference or increment a previous reference - static int AddRef(smart_pointer_type& ref) { - init(); - - typename pointer_map_type::iterator it = _pointer_map->find(ref.get()); - if (it != _pointer_map->end()) - return ++(*it).second.second; - - _pointer_map->insert(std::make_pair(ref.get(), std::make_pair(ref, 1))); - return 1; - } - - // Release a reference - static int SubRef(cpp_type* ptr) { - init(); - - typename pointer_map_type::iterator it = _pointer_map->find(ptr); - if (it == _pointer_map->end()) - return -1; - - int count = --(*it).second.second; - if (0 == count) - _pointer_map->erase(it); - - return count; - } - - // Create a new smart pointer instance (from copy in map if available) - static smart_pointer_type* CreatePointer(cpp_type* ptr) { - init(); - - typename pointer_map_type::iterator it = _pointer_map->find(ptr); - if (it == _pointer_map->end()) - return new smart_pointer_type(ptr); - else - return new smart_pointer_type((*it).second.first); - } -}; - -#endif // SHAREDPOINTERMANAGER_H diff --git a/src/scripting/python/song.sip b/src/scripting/python/song.sip deleted file mode 100644 index 530a29cca..000000000 --- a/src/scripting/python/song.sip +++ /dev/null @@ -1,682 +0,0 @@ -class Song { - -%TypeHeaderCode -#include "core/song.h" -%End - -%Docstring -Contains metadata and information about a music file. - -Song objects are used throughout Clementine to represent music files and all the -metadata that goes along with them. A Song contains several groups of -functions: - - - The B{constructor} functions L{Init()} and L{InitFromFile()} that are used - to quickly initialise the contents of a Song, either using the values you - provide or by reading the tags in a file on disk. - - The B{getters} such as L{title()} and L{artist()} that return the data - stored in a Song. - - The B{setters} such as L{set_title()} and L{set_artist()} that let you - change metadata in a Song. New metadata isn't written to the actual file - straight away, you have to call L{Save()} or L{BackgroundSave()} first. - - The B{pretty getters} such as L{PrettyTitleWithArtist()} that format the - Song's information in various useful ways. - -Integer fields in the song like L{track} and L{year} will be C{-1} if they -don't have a value set. - -You can get a Song object for the currently playing track by using -L{Player.GetCurrentItem()} and L{PlaylistItem.Metadata()}: - - >>> song = clementine.player.GetCurrentItem().Metadata() - ... print song.title() - -Note that Song objects are dumb containers of information - changing the fields -in one won't automatically change the information in Clementine's database or -save the tags to the file. If you want to update information in the database -such as album art, play count, skip count, rating or whether the song is in a -compilation, use the methods in L{LibraryBackend}. If you want to save tags -to a music file, use the L{Save()} or L{BackgroundSave()} methods in this class -after modifying the relevant fields. - -Album art for songs in Clementine is split into three different fields - -L{art_automatic()}, L{art_manual()} and L{image()}. L{art_automatic()} contains -the art that was found automatically by the library scanner, for example a jpeg -file in the same directory as the music file. L{art_manual()} contains the art -that was set manually by the user - if it is present it always takes priority -over L{art_automatic()}. These fields contain either a string with the filename -or URL of an image file, or one of two special values - L{kManuallyUnsetCover} -or L{kEmbeddedCover}. The convenience functions L{has_manually_unset_cover()} -and L{has_embedded_cover()} check for these special values. L{image()} is a -special field that is only currently used by radio services that want to -display the radio station's logo and override the other two C{art_} fields. - -Some songs are marked as being in a compilation. These songs are shown in the -special "Various Artists" section in the library. There are three different -ways a song can be marked as being in a compilation. L{set_compilation()} is -set by the library scanner when it finds two or more music files in the same -directory with different artists. L{set_sampler()} is set by L{InitFromFile()} -if the C{sampler} field in the ID3v2 metadata is present. -L{set_forced_compilation_on()} and L{set_forced_compilation_off()} are set if -the user chooses C{Show in various artists} from the right-click menu in the -Library. The L{is_compilation()} function returns True if the song has been -marked in any of these ways. - -@group Class methods: TextForFiletype -@group Constructors: Init, InitFromFile -@group Save methods: Save, BackgroundSave -@group Simple getters: is_valid, id, title, album, artist, albumartist, - composer, track, disc, bpm, year, genre, comment, is_compilation, rating, - playcount, skipcount, lastplayed, score, cue_path, has_cue, beginning_nanosec, - end_nanosec, length_nanosec, bitrate, samplerate, directory_id, filename, - basefilename, mtime, ctime, filesize, filetype, is_stream, art_automatic, art_manual, - has_manually_unset_cover, has_embedded_cover, image, url, IsEditable, - IsMetadataEqual -@group Pretty getters: PrettyTitle, PrettyTitleWithArtist, PrettyLength, - PrettyYear, TitleWithCompilationArtist -@group Simple setters: manually_unset_cover, set_embedded_cover, set_id, - set_valid, set_title, set_album, set_artist, set_albumartist, set_composer, - set_track, set_disc, set_bpm, set_year, set_genre, set_genre_id3, - set_comment, set_compilation, set_sampler, set_beginning_nanosec, - set_end_nanosec, set_length_nanosec, set_bitrate, set_samplerate, set_mtime, - set_ctime, set_filesize, set_filetype, set_art_automatic, set_art_manual, - set_image, set_forced_compilation_on, set_forced_compilation_off, set_rating, - set_playcount, set_skipcount, set_lastplayed, set_score, set_cue_path, - set_filename, set_basefilename, set_directory_id -%End - -public: - Song(); - Song(const Song& other); - - static const QString kManuallyUnsetCover; - static const QString kEmbeddedCover; - - enum FileType { - Type_Unknown, - Type_Asf, - Type_Flac, - Type_Mp4, - Type_Mpc, - Type_Mpeg, - Type_OggFlac, - Type_OggSpeex, - Type_OggVorbis, - Type_Aiff, - Type_Wav, - Type_TrueAudio, - - Type_Stream, - }; - - static QString TextForFiletype(FileType type); -%Docstring -TextForFiletype(type) -> str -Returns a textual description of one of the C{Type_} constants. - -Example: - - >>> print clementine.Song.TextForFiletype(clementine.Song.Type_OggVorbis) - "Ogg Vorbis" -%End - - QString TextForFiletype() const; - - void Init(const QString& title, const QString& artist, const QString& album, qint64 length_nanosec); -%Docstring -Init(title, artist, album, length_nanosec) -Sets the title, artist, album and length in the Song, and also marks it as -valid. -%End - - void Init(const QString& title, const QString& artist, const QString& album, qint64 beginning, qint64 end); - void InitFromFile(const QString& filename, int directory_id); -%Docstring -InitFromFile(filename, directory_id) -Loads tags from a music file on disk and marks the Song as valid if it was -successful. - -@param directory_id: The ID of the directory containing this Song in the - L{LibraryBackend}. You can pass -1 to this function to indicate the file is - not in the library. -%End - - bool is_valid() const; -%Docstring -is_valid() -> bool -Flag used to indicate whether an L{InitFromFile()} call returned successfully. -%End - - int id() const; -%Docstring -id() -> int -Identifier for this song in the L{LibraryBackend} - C{-1} if this song is not -from the library. -%End - - QString title() const; -%Docstring -title() -> str -%End - - QString album() const; -%Docstring -album() -> str -%End - - QString artist() const; -%Docstring -artist() -> str -%End - - QString albumartist() const; -%Docstring -albumartist() -> str -%End - - QString composer() const; -%Docstring -composer() -> str -%End - - int track() const; -%Docstring -track() -> int -%End - - int disc() const; -%Docstring -disc() -> int -%End - - float bpm() const; -%Docstring -bpm() -> float -%End - - int year() const; -%Docstring -year() -> int -%End - - const QString& genre() const; -%Docstring -genre() -> str -%End - - const QString& comment() const; -%Docstring -comment() -> str -%End - - bool is_compilation() const; -%Docstring -is_compilation() -> bool -%End - - float rating() const; -%Docstring -rating() -> float -The song's user-assigned rating between 0.0 and 1.0. -%End - - int playcount() const; -%Docstring -playcount() -> int -Number of times this song has been played by Clementine. -%End - - int skipcount() const; -%Docstring -skipcount() -> int -Number of times this song has been skipped by the user pressing Next. -%End - - int lastplayed() const; -%Docstring -lastplayed() -> int -The time (in seconds since the epoch) this song was last played by Clementine. - -You can convert this time to a python C{datetime} object by using -C{datetime.datetime.fromtimestamp()}. -%End - - int score() const; -%Docstring -score() -> int -The automatically generated score assigned to this song based on the -L{rating()}, L{playcount()} and L{skipcount()}. -%End - - const QString& cue_path() const; -%Docstring -cue_path() -> str -If this song was loaded from a cuesheet then this contains the path to the -cuesheet. - -@see: L{has_cue()}, L{beginning_nanosec()}, L{end_nanosec()} -%End - - bool has_cue() const; -%Docstring -has_cue() -> bool -Whether this song was loaded as part of a cuesheet. - -@see: L{cue_path()}, L{beginning_nanosec()}, L{end_nanosec()} -%End - - qint64 beginning_nanosec() const; -%Docstring -beginning_nanosec() -> long -The index in nanoseconds into the file where this song begins. - -This is normally 0 except when the song is part of a cuesheet. - -@see: L{has_cue()}, L{end_nanosec()} -%End - - qint64 end_nanosec() const; -%Docstring -end_nanosec() -> long -The index in nanoseconds into the file where this song ends. - -This is normally 0 except when the song is part of a cuesheet. - -@see: L{has_cue()}, L{beginning_nanosec()} -%End - - qint64 length_nanosec() const; -%Docstring -length_nanosec() -> long -The length of the song in nanoseconds. -%End - - int bitrate() const; -%Docstring -bitrate() -> int -%End - - int samplerate() const; -%Docstring -samplerate() -> int -%End - - int directory_id() const; -%Docstring -directory_id() -> int -The ID in the L{LibraryBackend} of the directory containing this song, or -1 if -the song is not from the library. -%End - - const QUrl& url() const; -%Docstring -url() -> L{PyQt4.QtCore.QUrl} -The URL of this song. -%End - - const QString& basefilename() const; -%Docstring -basefilename() -> str -The filename of this song without any directory component. -%End - - uint mtime() const; -%Docstring -mtime() -> int -The time in seconds since the epoch that this song was modified. - -You can convert this time to a python C{datetime} object by using -C{datetime.datetime.fromtimestamp()}. - -@see: L{ctime()} -%End - - uint ctime() const; -%Docstring -ctime() -> int -The time in seconds since the epoch that this song was created. - -You can convert this time to a python C{datetime} object by using -C{datetime.datetime.fromtimestamp()}. - -@see: L{mtime()} -%End - - int filesize() const; -%Docstring -filesize() -> int -The size of this file in bytes. -%End - - FileType filetype() const; -%Docstring -filetype() -> FileType -The type of media file. - -@see: L{TextForFiletype} -%End - - bool is_stream() const; -%Docstring -is_stream() -> bool -True if this song represents a stream (a remote file) and false otherwise. -%End - - QString art_automatic() const; -%Docstring -art_automatic() -> str -The filename or URL of automatically discovered album art, or one of the special -values L{kManuallyUnsetCover} or L{kEmbeddedCover}. - -@see: L{art_manual()}, L{has_manually_unset_cover()}, L{has_embedded_cover()} -%End - - QString art_manual() const; -%Docstring -art_manual() -> str -The filename or URL of album art set by the user, or one of the special -values L{kManuallyUnsetCover} or L{kEmbeddedCover}. - -@see: L{art_automatic()}, L{has_manually_unset_cover()}, L{has_embedded_cover()} -%End - - bool has_manually_unset_cover() const; -%Docstring -has_manually_unset_cover() -> bool -Returns True if the album art has been manually unset by the user. - -@see: L{art_manual()}, L{manually_unset_cover()} -%End - - void manually_unset_cover(); -%Docstring -manually_unset_cover() -Marks this song as having a manually unset album cover. - -@see: L{art_manual()}, L{has_manually_unset_cover()} -%End - - bool has_embedded_cover() const; -%Docstring -has_embedded_cover() -> bool -Returns True if the album art is embedded within the file. - -@see: L{art_automatic()}, L{set_embedded_cover()} -%End - - void set_embedded_cover(); -%Docstring -set_embedded_cover() -Marks this song as having album art contained within it. - -@see: L{art_automatic()}, L{has_embedded_cover()} -%End - - QImage image() const; -%Docstring -image() -> L{PyQt4.QtGui.QImage} -An album art image that overrides L{art_automatic()} and L{art_manual()}. -%End - - // Pretty accessors - QString PrettyTitle() const; -%Docstring -PrettyTitle() -> str -Returns the title of this song if it is set, or else returns the filename. -%End - - QString PrettyTitleWithArtist() const; -%Docstring -PrettyTitleWithArtist() -> str -Returns "artist - title" if both are set, otherwise returns L{PrettyTitle()}. -%End - - QString PrettyLength() const; -%Docstring -PrettyLength() -> str -Returns the length of the song formatted as "(hh:)mm:ss". -%End - - QString PrettyYear() const; -%Docstring -PrettyYear() -> str -Returns the year if it is set, otherwise returns "". -%End - - QString TitleWithCompilationArtist() const; -%Docstring -TitleWithCompilationArtist() -> str -If this song is part of a compilation B{and} the artist is B{not} "Various -Artists", returns L{PrettyTitleWithArtist()}, otherwise returns L{PrettyTitle()}. -%End - - // Setters - bool IsEditable() const; -%Docstring -IsEditable() -> bool -Returns True if this song is backed by a local file that is writable and is not -part of a cue sheet. -%End - - bool Save() const; -%Docstring -Save() -> bool -Saves the metadata to the file and returns True if it was successful. - -@warning: This method is B{blocking} and should not be called from the main - thread. Use the L{BackgroundSave()} method instead which works in a - background thread. -%End - - void BackgroundSave() const; -%Docstring -BackgroundSave() -Saves the metadata to the file in a background thread and returns immediately. -%End - - void set_id(int id); -%Docstring -set_id(id) -%End - - void set_valid(bool v); -%Docstring -set_valid(valid) -%End - - void set_title(const QString& v); -%Docstring -set_title(title) -%End - - - void set_album(const QString& v); -%Docstring -set_album(album) -%End - - void set_artist(const QString& v); -%Docstring -set_artist(artist) -%End - - void set_albumartist(const QString& v); -%Docstring -set_albumartist(albumartist) -%End - - void set_composer(const QString& v); -%Docstring -set_composer(composer) -%End - - void set_track(int v); -%Docstring -set_track(track) -%End - - void set_disc(int v); -%Docstring -set_disc(disc) -%End - - void set_bpm(float v); -%Docstring -set_bpm(bpm) -%End - - void set_year(int v); -%Docstring -set_year(year) -%End - - void set_genre(const QString& v); -%Docstring -set_genre(genre) -%End - - void set_genre_id3(int id); -%Docstring -set_genre_id3(id) -Sets the genre from an ID3v1 genre ID. See -U{Appendix A of the ID3v1 specification}. -%End - - void set_comment(const QString& v); -%Docstring -set_comment(comment) -%End - - void set_compilation(bool v); -%Docstring -set_compilation(compilation) -%End - - void set_sampler(bool v); -%Docstring -set_sampler(sampler) -%End - - void set_beginning_nanosec(qint64 v); -%Docstring -set_beginning_nanosec(nanosec) -%End - - void set_end_nanosec(qint64 v); -%Docstring -set_end_nanosec(nanosec) -%End - - void set_length_nanosec(qint64 v); -%Docstring -set_length_nanosec(nanosec) -%End - - void set_bitrate(int v); -%Docstring -set_bitrate(bitrate) -%End - - void set_samplerate(int v); -%Docstring -set_samplerate(samplerate) -%End - - void set_mtime(int v); -%Docstring -set_mtime(mtime) -%End - - void set_ctime(int v); -%Docstring -set_ctime(ctime) -%End - - void set_filesize(int v); -%Docstring -set_filesize(size) -%End - - void set_filetype(FileType v); -%Docstring -set_filetype(type) -%End - - void set_art_automatic(const QString& v); -%Docstring -set_art_automatic(art) -%End - - void set_art_manual(const QString& v); -%Docstring -set_art_manual(art) -%End - - void set_image(const QImage& i); -%Docstring -set_image(image) -%End - - void set_forced_compilation_on(bool v); -%Docstring -set_forced_compilation_on(compilation) -%End - - void set_forced_compilation_off(bool v); -%Docstring -set_forced_compilation_off(compilation) -%End - - void set_rating(float v); -%Docstring -set_rating(rating) -%End - - void set_playcount(int v); -%Docstring -set_playcount(playcount) -%End - - void set_skipcount(int v); -%Docstring -set_skipcount(skipcount) -%End - - void set_lastplayed(int v); -%Docstring -set_lastplayed(lastplayed) -%End - - void set_score(int v); -%Docstring -set_score(score) -%End - - void set_url(const QUrl& v); -%Docstring -set_url(url) -%End - - void set_basefilename(const QString& v); -%Docstring -set_basefilename(basefilename) -%End - - void set_directory_id(int v); -%Docstring -set_directory_id(directory_id) -%End - - void set_cue_path(const QString& v); -%Docstring -set_cue_path(cue_path) -%End - - bool IsMetadataEqual(const Song& other) const; -%Docstring -IsMetadataEqual(other) -> bool -Compares the metadata (not including ratings, playcounts, etc) with another -Song and returns true if they are equal. -%End -}; -typedef QList SongList; diff --git a/src/scripting/python/songinsertvetolistener.sip b/src/scripting/python/songinsertvetolistener.sip deleted file mode 100644 index 2903543de..000000000 --- a/src/scripting/python/songinsertvetolistener.sip +++ /dev/null @@ -1,8 +0,0 @@ -class SongInsertVetoListener : QObject { -%TypeHeaderCode - #include "playlist/playlist.h" -%End - -public: - virtual SongList AboutToInsertSongs(const SongList& old_songs, const SongList& new_songs) = 0; -}; diff --git a/src/scripting/python/songloader.sip b/src/scripting/python/songloader.sip deleted file mode 100644 index da74de835..000000000 --- a/src/scripting/python/songloader.sip +++ /dev/null @@ -1,28 +0,0 @@ -class SongLoader : QObject { - -%TypeHeaderCode - #include "core/songloader.h" -%End - -public: - SongLoader(LibraryBackend* library, QObject* parent /TransferThis/ = 0); - - enum Result { - Success, - Error, - WillLoadAsync, - }; - - static const int kDefaultTimeout; - - const QUrl& url() const; - const SongList& songs() const; - - int timeout() const; - void set_timeout(int msec); - - Result Load(const QUrl& url); - -signals: - void LoadFinished(bool success); -}; diff --git a/src/scripting/python/taskmanager.sip b/src/scripting/python/taskmanager.sip deleted file mode 100644 index 0359b2d8c..000000000 --- a/src/scripting/python/taskmanager.sip +++ /dev/null @@ -1,114 +0,0 @@ -class TaskManager : QObject { - -%TypeHeaderCode -#include "core/taskmanager.h" -%End - -%Docstring -API for managing progress notifications in Clementine's status bar. - -When you are performing a slow operation, such as downloading data from the -network or parsing a file, it is useful to be able to provide progress -information to the user. Clementine displays information about any running -tasks with a spinner animation in the status bar. - -When you start a new task, the TaskManager will give you an ID which you must -keep and use again later to update the task's progress or to mark it as -completed. - -This is a singleton class, you can access its methods directly through the -C{clementine.task_manager} object: - - >>> id = clementine.task_manager.StartTask("Finding some awesome music") - >>> clementine.task_manager.SetTaskProgress(id, 33, 100) - >>> clementine.task_manager.SetTaskProgress(id, 66, 100) - >>> clementine.task_manager.SetTaskFinished(id) - -@group Signals: TasksChanged, PauseLibraryWatchers, ResumeLibraryWatchers -%End - -public: - struct Task { -%Docstring -Object containing information about a running task. -%End - - int id; - QString name; - int progress; - int progress_max; - bool blocks_library_scans; - }; - - QList GetTasks(); -%Docstring -GetTasks() -> list of L{Task}s -Returns a list of all the tasks that are currently running. - -Modifying the items in this list will have no effect - you have to use the other -methods in this class to update the status of a task. -%End - - int StartTask(const QString& name); -%Docstring -StartTask(name) -> int -Begins a new task. - -@param name: A descriptive name of the task that will be displayed in the - status bar. -@type name: str -@return: A new ID for this task. Use this ID when calling L{SetTaskFinished} - later. -@note: Do not include ellipsis (...) in the name of the task, this is added - for you by the status bar. -%End - - void SetTaskBlocksLibraryScans(int id); -%Docstring -SetTaskBlocksLibraryScans(id) -Forces any library scans to wait until this task is complete. - -It may be useful to set this flag on a task that modifies files in the library. -The LibraryWatcher will wait until the task is complete before starting to -rescan the Library. -%End - - void SetTaskProgress(int id, int progress, int max = 0); -%Docstring -SetTaskProgress(id, progress, max=0) -Updates the progress for this task. - -The status bar shows the percentage progress of this task, calculated by -C{(progress / max * 100)}. C{max} must be provided the first time this -method is called for a given task, but after that it can be omitted to keep the -old value. -%End - - void SetTaskFinished(int id); -%Docstring -SetTaskFinished(id) -Marks the given task as finished, removing it from the status bar. -%End - -signals: - void TasksChanged(); -%Docstring -TasksChanged() -Emitted when the list of tasks returned by L{GetTasks()} is changed. -%End - - void PauseLibraryWatchers(); -%Docstring -PauseLibraryWatchers() -Emitted when L{SetTaskBlocksLibraryScans()} is called on a task. -%End - - void ResumeLibraryWatchers(); -%Docstring -ResumeLibraryWatchers() -Emitted when all tasks that blocked library scans have finished. -%End - -private: - TaskManager(); -}; diff --git a/src/scripting/python/typesystem_clementine.xml b/src/scripting/python/typesystem_clementine.xml deleted file mode 100644 index 28ca60171..000000000 --- a/src/scripting/python/typesystem_clementine.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/scripting/python/uiinterface.sip b/src/scripting/python/uiinterface.sip deleted file mode 100644 index 7d9dabcd7..000000000 --- a/src/scripting/python/uiinterface.sip +++ /dev/null @@ -1,17 +0,0 @@ -class UIInterface : QObject { - -%TypeHeaderCode -#include "scripting/uiinterface.h" -#include "scripting/python/pythonengine.h" -%End - -public: - void AddAction(const QString& id, QAction* action /Transfer/); -%MethodCode - sipCpp->AddAction(*a0,a1); - PythonEngine::instance()->RegisterNativeObject(a1); -%End - -private: - UIInterface(); -}; diff --git a/src/scripting/python/urlhandler.sip b/src/scripting/python/urlhandler.sip deleted file mode 100644 index 93c2a67c4..000000000 --- a/src/scripting/python/urlhandler.sip +++ /dev/null @@ -1,48 +0,0 @@ -class UrlHandler : QObject { - -%TypeHeaderCode -#include "core/urlhandler.h" -%End - -public: - UrlHandler(QObject* parent /TransferThis/ = 0); - - // The URL scheme that this handler handles. - virtual QString scheme() const = 0; - - struct LoadResult { -%Docstring -Returned by StartLoading() and LoadNext(), indicates what the player should do -when it wants to load a URL. - -Valid values for the type_ field are: - - - C{NoMoreTracks} - there wasn't a track available, and the player should - move on to the next playlist item. - - C{WillLoadAsynchronously} - there might be another track available but the - handler needs to do some work (eg. fetching a remote playlist) to find out. - AsyncLoadComplete will be emitted later with the same original_url. - - C{TrackAvailable} - There was a track available. Its url is in media_url. - -%End - enum Type { - NoMoreTracks, - WillLoadAsynchronously, - TrackAvailable, - }; - - LoadResult(const QUrl& original_url = QUrl(), - Type type = NoMoreTracks, - const QUrl& media_url = QUrl()); - - QUrl original_url_; - Type type_; - QUrl media_url_; - }; - - virtual LoadResult StartLoading(const QUrl& url); - virtual LoadResult LoadNext(const QUrl& url); - -signals: - void AsyncLoadComplete(const UrlHandler::LoadResult& result); -}; diff --git a/src/scripting/script.cpp b/src/scripting/script.cpp deleted file mode 100644 index 47288850f..000000000 --- a/src/scripting/script.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "script.h" -#include "scriptinterface.h" - -Script::Script(LanguageEngine* language, const ScriptInfo& info) - : interface_(new ScriptInterface(this)), - language_(language), - info_(info) -{ -} - -Script::~Script() { -} diff --git a/src/scripting/script.h b/src/scripting/script.h deleted file mode 100644 index 45e28bbbf..000000000 --- a/src/scripting/script.h +++ /dev/null @@ -1,55 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef SCRIPT_H -#define SCRIPT_H - -#include "scriptinfo.h" - -#include -#include -#include - -#include - -class LanguageEngine; -class ScriptInterface; - -class QObject; - -class Script { -public: - Script(LanguageEngine* language, const ScriptInfo& info); - virtual ~Script(); - - LanguageEngine* language() const { return language_; } - const ScriptInfo& info() const { return info_; } - ScriptInterface* interface() const { return interface_.get(); } - - virtual bool Init() = 0; - virtual bool Unload() = 0; - -private: - Q_DISABLE_COPY(Script); - - boost::scoped_ptr interface_; - LanguageEngine* language_; - ScriptInfo info_; -}; -Q_DECLARE_METATYPE(Script*); - -#endif // SCRIPT_H diff --git a/src/scripting/scriptarchive.cpp b/src/scripting/scriptarchive.cpp deleted file mode 100644 index 73e83d3b0..000000000 --- a/src/scripting/scriptarchive.cpp +++ /dev/null @@ -1,185 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "config.h" -#include "scriptarchive.h" -#include "core/logging.h" -#include "core/utilities.h" - -#include -#include -#include -#include - -#ifdef HAVE_LIBARCHIVE -# include -# include -#endif - -#ifdef HAVE_LIBARCHIVE -namespace { - // Read callbacks for libarchive - struct IODeviceReadState { - QIODevice* device_; - char buf_[4096]; - }; - - ssize_t IODeviceRead(struct archive* a, void* client_data, const void** buf) { - IODeviceReadState* state = reinterpret_cast(client_data); - - *buf = state->buf_; - return state->device_->read(state->buf_, sizeof(state->buf_)); - } - - int IODeviceClose(struct archive* a, void* client_data) { - IODeviceReadState* state = reinterpret_cast(client_data); - - state->device_->close(); - return 0; - } - - // Utility function to copy an entry to a QIODevice - void CopyArchiveEntry(struct archive* in, struct archive* out) { - char buf[4096]; - forever { - size_t bytes_read = archive_read_data(in, buf, sizeof(buf)); - if (bytes_read == ARCHIVE_FATAL || - bytes_read == ARCHIVE_WARN || - bytes_read == ARCHIVE_RETRY) { - qLog(Warning) << "Error reading archive:" << archive_error_string(in); - return; - } - if (bytes_read == 0) { - break; - } - - if (archive_write_data(out, buf, bytes_read) == -1) { - qLog(Warning) << "Error extracting archive:" << archive_error_string(out); - return; - } - } - } -} -#endif // HAVE_LIBARCHIVE - -ScriptArchive::ScriptArchive(ScriptManager* manager) - : manager_(manager) -{ -} - -ScriptArchive::~ScriptArchive() { - if (!temp_dir_name_.isEmpty() && QFile::exists(temp_dir_name_)) { - Utilities::RemoveRecursive(temp_dir_name_); - } -} - -QFuture ScriptArchive::LoadFromFileAsync(const QString& filename) { - return QtConcurrent::run(this, &ScriptArchive::LoadFromFile, filename); -} - -QFuture ScriptArchive::LoadFromDeviceAsync(QIODevice* device) { - return QtConcurrent::run(this, &ScriptArchive::LoadFromDevice, device); -} - -bool ScriptArchive::LoadFromFile(const QString& filename) { - QFile file(filename); - if (!file.open(QIODevice::ReadOnly)) { - return false; - } - - return LoadFromDevice(&file); -} - -bool ScriptArchive::LoadFromDevice(QIODevice* device) { -#ifdef HAVE_LIBARCHIVE - archive* a = archive_read_new(); - archive_read_support_compression_gzip(a); - archive_read_support_format_tar(a); - - IODeviceReadState read_state; - read_state.device_ = device; - - // Open the archive - if (archive_read_open(a, &read_state, NULL, IODeviceRead, IODeviceClose)) { - archive_read_finish(a); - return false; - } - - info_.clear(); - - // Open a writer to a location in /tmp - temp_dir_name_ = Utilities::MakeTempDir(); - archive* writer = archive_write_disk_new(); - archive_write_disk_set_options(writer, - ARCHIVE_EXTRACT_SECURE_SYMLINKS | ARCHIVE_EXTRACT_SECURE_NODOTDOT); - - archive_entry* entry; - archive_entry* out_entry = archive_entry_new(); - while (archive_read_next_header(a, &entry) == 0) { - // Figure out where we'll extract this file - const QString pathname = QString::fromUtf8(archive_entry_pathname(entry)); - const QString destination = temp_dir_name_ + "/" + pathname; - - // Copy the header and change the path name - archive_entry_clear(out_entry); - archive_entry_set_size(out_entry, archive_entry_size(entry)); - archive_entry_set_filetype(out_entry, archive_entry_filetype(entry)); - archive_entry_set_mode(out_entry, archive_entry_mode(entry)); - archive_entry_copy_pathname(out_entry, destination.toLocal8Bit().constData()); - - // Write the file - archive_write_header(writer, out_entry); - CopyArchiveEntry(a, writer); - - // Have we found a script.ini? - const QStringList source_parts = pathname.split('/'); - - if (source_parts.count() == 2 && source_parts[1] == ScriptInfo::kIniFileName) { - // Parse it - ScriptInfo info; - info.InitFromFile(manager_, - destination.section('/', -2, -2), - destination.section('/', 0, -2), - destination); - - if (info.is_valid()) { - info_ << info; - } - } - } - - archive_entry_free(out_entry); - archive_read_finish(a); - - return !info_.isEmpty(); -#else // HAVE_LIBARCHIVE - return false; -#endif // HAVE_LIBARCHIVE -} - -bool ScriptArchive::Install() const { - // Where should they go? - QString destination = Utilities::GetConfigPath(Utilities::Path_Scripts); - - // Copy each directory - foreach (const ScriptInfo& info, info_) { - if (!Utilities::CopyRecursive(info.path(), destination)) - return false; - } - - return true; -} diff --git a/src/scripting/scriptarchive.h b/src/scripting/scriptarchive.h deleted file mode 100644 index 2ec90459f..000000000 --- a/src/scripting/scriptarchive.h +++ /dev/null @@ -1,50 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef SCRIPTARCHIVE_H -#define SCRIPTARCHIVE_H - -#include "scriptinfo.h" - -#include - -class ScriptManager; - -class ScriptArchive { -public: - ScriptArchive(ScriptManager* manager); - ~ScriptArchive(); - - bool LoadFromFile(const QString& filename); - bool LoadFromDevice(QIODevice* device); - QFuture LoadFromFileAsync(const QString& filename); - QFuture LoadFromDeviceAsync(QIODevice* device); - - const QList& info() const { return info_; } - - bool Install() const; - -private: - Q_DISABLE_COPY(ScriptArchive); - - ScriptManager* manager_; - - QString temp_dir_name_; - QList info_; -}; - -#endif // SCRIPTARCHIVE_H diff --git a/src/scripting/scriptdialog.cpp b/src/scripting/scriptdialog.cpp deleted file mode 100644 index 49f841002..000000000 --- a/src/scripting/scriptdialog.cpp +++ /dev/null @@ -1,262 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "config.h" - -#ifdef HAVE_SCRIPTING_PYTHON -# include "scripting/python/pythonengine.h" -# include "scripting/python/pythonconsole.h" -#endif - -#include "installscriptdialog.h" -#include "scriptarchive.h" -#include "scriptdialog.h" -#include "scriptmanager.h" -#include "ui_scriptdialog.h" -#include "core/boundfuturewatcher.h" -#include "ui/iconloader.h" - -#include -#include -#include -#include -#include -#include - -const int ScriptDelegate::kIconSize = 64; -const int ScriptDelegate::kPadding = 6; -const int ScriptDelegate::kItemHeight = kIconSize + kPadding*2; -const int ScriptDelegate::kLinkSpacing = 10; - -const char* ScriptDialog::kSettingsGroup = "ScriptDialog"; - -ScriptDelegate::ScriptDelegate(QObject* parent) - : QStyledItemDelegate(parent), - bold_metrics_(bold_) -{ - bold_.setBold(true); - bold_metrics_ = QFontMetrics(bold_); - - link_.setUnderline(true); -} - -void ScriptDelegate::paint( - QPainter* p, const QStyleOptionViewItem& opt, - const QModelIndex& index) const { - // Draw the background - const QStyleOptionViewItemV3* vopt = qstyleoption_cast(&opt); - const QWidget* widget = vopt->widget; - QStyle* style = widget->style() ? widget->style() : QApplication::style(); - style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, p, widget); - - // Get the data - QIcon icon = index.data(Qt::DecorationRole).value(); - const QString title = index.data(Qt::DisplayRole).toString(); - const QString description = index.data(ScriptManager::Role_Description).toString(); - const bool is_enabled = index.data(ScriptManager::Role_IsEnabled).toBool(); - - // Calculate the geometry - QRect icon_rect(opt.rect.left() + kPadding, opt.rect.top() + kPadding, - kIconSize, kIconSize); - QRect title_rect(icon_rect.right() + kPadding, icon_rect.top(), - opt.rect.width() - icon_rect.width() - kPadding*3, - bold_metrics_.height()); - QRect description_rect(title_rect.left(), title_rect.bottom(), - title_rect.width(), opt.rect.bottom() - kPadding - title_rect.bottom()); - - // Draw the icon - p->drawPixmap(icon_rect, icon.pixmap(kIconSize, is_enabled ? QIcon::Normal : QIcon::Disabled)); - - // Disabled items get greyed out - if (is_enabled) { - p->setPen(opt.palette.color(QPalette::Text)); - } else { - const bool light = opt.palette.color(QPalette::Base).value() > 128; - const QColor color = opt.palette.color(QPalette::Dark); - p->setPen(light ? color.darker(150) : color.lighter(125)); - } - - // Draw the title - p->setFont(bold_); - p->drawText(title_rect, Qt::AlignLeft | Qt::AlignVCenter, title); - - // Draw the description - p->setFont(opt.font); - p->drawText(description_rect, Qt::AlignLeft | Qt::AlignTop | Qt::TextWordWrap, description); -} - -QSize ScriptDelegate::sizeHint(const QStyleOptionViewItem&, const QModelIndex&) const { - return QSize(100, kItemHeight); -} - - -ScriptDialog::ScriptDialog(QWidget* parent) - : QDialog(parent), - ui_(new Ui_ScriptDialog), - manager_(NULL) -{ - ui_->setupUi(this); - connect(ui_->enable, SIGNAL(clicked()), SLOT(Enable())); - connect(ui_->disable, SIGNAL(clicked()), SLOT(Disable())); - connect(ui_->settings, SIGNAL(clicked()), SLOT(Settings())); - connect(ui_->reload, SIGNAL(clicked()), SLOT(Reload())); - - // Add a button to install a script from a file - QPushButton* install_button = new QPushButton( - IconLoader::Load("document-open"), tr("Install from file..."), this); - connect(install_button, SIGNAL(clicked()), SLOT(InstallFromFile())); - ui_->button_box->addButton(install_button, QDialogButtonBox::ActionRole); - - // But disable it if we don't have libarchive -#ifndef HAVE_LIBARCHIVE - install_button->setEnabled(false); -#endif - - // Start on the first tab - ui_->tab_widget->setCurrentIndex(0); - - // Make the list pretty - ui_->list->setItemDelegate(new ScriptDelegate(this)); - - // Hide developer mode stuff by default - ui_->console->hide(); - ui_->reload->hide(); - - // Make the dialog smaller - resize(width(), minimumSizeHint().height()); - - ui_->button_box->button(QDialogButtonBox::Close)->setShortcut(QKeySequence::Close); - - ReloadSettings(); -} - -ScriptDialog::~ScriptDialog() { - delete ui_; -} - -void ScriptDialog::SetManager(ScriptManager* manager) { - manager_ = manager; - ui_->list->setModel(manager); - - connect(manager, SIGNAL(dataChanged(QModelIndex,QModelIndex)), - SLOT(DataChanged(QModelIndex,QModelIndex))); - connect(manager, SIGNAL(LogLineAdded(QString)), SLOT(LogLineAdded(QString))); - connect(ui_->list->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), - SLOT(CurrentChanged(QModelIndex))); - - foreach (const QString& html, manager->log_lines()) { - LogLineAdded(html); - } - -#ifdef HAVE_SCRIPTING_PYTHON - // Add the python console - PythonConsole* console = new PythonConsole(this); - console->SetEngine(qobject_cast( - manager_->EngineForLanguage(ScriptInfo::Language_Python))); - ui_->tab_widget->addTab(console, tr("Python console")); -#endif -} - -void ScriptDialog::CurrentChanged(const QModelIndex& index) { - if (!index.isValid()) { - ui_->enable->setEnabled(false); - ui_->disable->setEnabled(false); - ui_->settings->setEnabled(false); - ui_->reload->setEnabled(false); - return; - } - - const bool is_enabled = index.data(ScriptManager::Role_IsEnabled).toBool(); - ui_->enable->setEnabled(!is_enabled); - ui_->disable->setEnabled(is_enabled); - ui_->settings->setEnabled(is_enabled); - ui_->reload->setEnabled(is_enabled); -} - -void ScriptDialog::DataChanged(const QModelIndex&, const QModelIndex&) { - CurrentChanged(ui_->list->currentIndex()); -} - -void ScriptDialog::Enable() { - manager_->Enable(ui_->list->currentIndex()); -} - -void ScriptDialog::Disable() { - manager_->Disable(ui_->list->currentIndex()); -} - -void ScriptDialog::Settings() { - manager_->ShowSettingsDialog(ui_->list->currentIndex()); -} - -void ScriptDialog::Reload() { - Disable(); - Enable(); -} - -void ScriptDialog::LogLineAdded(const QString& html) { - ui_->console->append(html); -} - -void ScriptDialog::ReloadSettings() { - QSettings s; - s.beginGroup(kSettingsGroup); - last_open_dir_ = s.value("last_open_dir", QDir::homePath()).toString(); -} - -void ScriptDialog::InstallFromFile() { - QString filename = QFileDialog::getOpenFileName( - this, tr("Install script file"), last_open_dir_, - tr("Clementine scripts") + " (*.tar.gz *.clem)"); - if (filename.isEmpty()) - return; - - // Save this directory - last_open_dir_ = filename; - QSettings s; - s.beginGroup(kSettingsGroup); - s.setValue("last_open_dir", last_open_dir_); - - // Try opening the archive. We do this in the background. - ScriptArchive* archive = new ScriptArchive(manager_); - QFuture future = archive->LoadFromFileAsync(filename); - - BoundFutureWatcher* watcher = - new BoundFutureWatcher(archive); - watcher->setFuture(future); - - connect(watcher, SIGNAL(finished()), SLOT(InstallFromFileLoaded())); -} - -void ScriptDialog::InstallFromFileLoaded() { - BoundFutureWatcher* watcher = - reinterpret_cast*>(sender()); - watcher->deleteLater(); - - ScriptArchive* archive = watcher->data(); - const bool success = watcher->result(); - - if (success) { - // The dialog will delete itself and the archive when it's done. - InstallScriptDialog* dialog = new InstallScriptDialog(archive, this); - dialog->show(); - } else { - QMessageBox::warning(this, tr("Error opening script archive"), - tr("This is not a valid Clementine script file."), QMessageBox::Close); - delete archive; - } -} diff --git a/src/scripting/scriptdialog.h b/src/scripting/scriptdialog.h deleted file mode 100644 index d24febad6..000000000 --- a/src/scripting/scriptdialog.h +++ /dev/null @@ -1,85 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef SCRIPTDIALOG_H -#define SCRIPTDIALOG_H - -#include -#include -#include -#include - -class ScriptManager; -class Ui_ScriptDialog; - -class ScriptDelegate : public QStyledItemDelegate { -public: - ScriptDelegate(QObject* parent = 0); - - static const int kIconSize; - static const int kPadding; - static const int kItemHeight; - static const int kLinkSpacing; - - void paint(QPainter* painter, const QStyleOptionViewItem& option, - const QModelIndex& index) const; - QSize sizeHint(const QStyleOptionViewItem& option, - const QModelIndex& index) const; - -private: - QFont bold_; - QFontMetrics bold_metrics_; - - QFont link_; -}; - -class ScriptDialog : public QDialog { - Q_OBJECT - -public: - ScriptDialog(QWidget* parent = 0); - ~ScriptDialog(); - - static const char* kSettingsGroup; - - void SetManager(ScriptManager* manager); - -private slots: - void DataChanged(const QModelIndex& top_left, const QModelIndex& bottom_right); - void CurrentChanged(const QModelIndex& index); - void LogLineAdded(const QString& html); - - void Enable(); - void Disable(); - void Settings(); - void Reload(); - - void InstallFromFile(); - void InstallFromFileLoaded(); - -private: - void ReloadSettings(); - -private: - Ui_ScriptDialog* ui_; - - ScriptManager* manager_; - - QString last_open_dir_; -}; - -#endif // SCRIPTDIALOG_H diff --git a/src/scripting/scriptdialog.ui b/src/scripting/scriptdialog.ui deleted file mode 100644 index 4d15a9234..000000000 --- a/src/scripting/scriptdialog.ui +++ /dev/null @@ -1,219 +0,0 @@ - - - ScriptDialog - - - - 0 - 0 - 758 - 489 - - - - Script Manager - - - - - - - 0 - 300 - - - - 1 - - - - My scripts - - - - - - QAbstractItemView::ScrollPerPixel - - - - - - - - - false - - - Enable - - - - - - - false - - - Disable - - - - - - - false - - - Settings... - - - - - - - false - - - Reload - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - Get new scripts - - - - - - - - - - Developer mode - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Close - - - - - - - - - - 0 - 130 - - - - true - - - Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse - - - - - - - - ScriptDialogList - QListView -
scripting/scriptdialoglist.h
-
-
- - - - button_box - accepted() - ScriptDialog - accept() - - - 548 - 342 - - - 157 - 274 - - - - - button_box - rejected() - ScriptDialog - reject() - - - 616 - 342 - - - 286 - 274 - - - - - developer_mode - toggled(bool) - console - setVisible(bool) - - - 78 - 339 - - - 81 - 455 - - - - - developer_mode - toggled(bool) - reload - setVisible(bool) - - - 118 - 330 - - - 699 - 164 - - - - -
diff --git a/src/scripting/scriptdialoglist.cpp b/src/scripting/scriptdialoglist.cpp deleted file mode 100644 index 15c5fe270..000000000 --- a/src/scripting/scriptdialoglist.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include "scriptdialoglist.h" - -#include - -ScriptDialogList::ScriptDialogList(QWidget* parent) - : QListView(parent) { -} - -void ScriptDialogList::updateGeometries() { - QListView::updateGeometries(); - - verticalScrollBar()->setSingleStep(15); -} diff --git a/src/scripting/scriptdialoglist.h b/src/scripting/scriptdialoglist.h deleted file mode 100644 index 7af177168..000000000 --- a/src/scripting/scriptdialoglist.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef SCRIPTDIALOGLIST_H -#define SCRIPTDIALOGLIST_H - -#include - -class ScriptDialogList : public QListView { -public: - ScriptDialogList(QWidget* parent = 0); - -protected: - void updateGeometries(); -}; - -#endif // SCRIPTDIALOGLIST_H diff --git a/src/scripting/scriptinfo.cpp b/src/scripting/scriptinfo.cpp deleted file mode 100644 index 541d07c60..000000000 --- a/src/scripting/scriptinfo.cpp +++ /dev/null @@ -1,109 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "languageengine.h" -#include "scriptinfo.h" -#include "core/logging.h" - -#include -#include -#include -#include -#include - -const char* ScriptInfo::kIniFileName = "script.ini"; -const char* ScriptInfo::kIniSettingsGroup = "Script"; - -ScriptInfo::ScriptInfo() - : d(new Private) -{ -} - -void ScriptInfo::InitFromDirectory(const ScriptManager* manager, const QString& path) { - const QString ini_file = path + "/" + kIniFileName; - const QString id = QFileInfo(path).fileName(); - - // Does the file exist? - if (!QFile::exists(ini_file)) { - qLog(Warning) << "Script definition file not found:" << ini_file; - return; - } - - InitFromFile(manager, id, path, ini_file); -} - -void ScriptInfo::InitFromFile(const ScriptManager* manager, - const QString& id, - const QString& path, - const QString& ini_file) { - qLog(Debug) << "Reading script:" << ini_file; - - // Open it - QSettings s(ini_file, QSettings::IniFormat); - if (!s.childGroups().contains(kIniSettingsGroup)) { - qLog(Warning) << "Missing" << kIniSettingsGroup << "section in" << ini_file; - return; - } - s.beginGroup(kIniSettingsGroup); - - // Find out what language it's in - QString language_name = s.value("language").toString(); - LanguageEngine* engine = manager->EngineForLanguage(language_name); - if (!engine) { - qLog(Warning) << "Unknown language" << language_name << "in" << ini_file; - return; - } - d->language_ = engine->language(); - - // Load the rest of the metadata - d->path_ = path; - d->id_ = id; - d->name_ = s.value("name").toString(); - d->description_ = s.value("description").toString(); - d->author_ = s.value("author").toString(); - d->url_ = s.value("url").toString(); - d->script_file_ = QFileInfo(QDir(path), s.value("script_file").toString()).absoluteFilePath(); - d->icon_filename_ = QFileInfo(QDir(path), s.value("icon").toString()).absoluteFilePath(); - - // Replace special characters in the ID - d->id_.replace(QRegExp("[^a-zA-Z0-9_]"), "_"); -} - -bool ScriptInfo::operator ==(const ScriptInfo& other) const { - return path() == other.path() && - name() == other.name() && - description() == other.description() && - author() == other.author() && - url() == other.url() && - language() == other.language() && - script_file() == other.script_file(); -} - -bool ScriptInfo::operator !=(const ScriptInfo& other) const { - return !(*this == other); -} - -void ScriptInfo::TakeMetadataFrom(const ScriptInfo& other) { - d->path_ = other.path(); - d->name_ = other.name(); - d->description_ = other.description(); - d->author_ = other.author(); - d->url_ = other.url(); - d->icon_filename_ = other.icon_filename(); - d->language_ = other.language(); - d->script_file_ = other.script_file(); -} diff --git a/src/scripting/scriptinfo.h b/src/scripting/scriptinfo.h deleted file mode 100644 index 8f0563595..000000000 --- a/src/scripting/scriptinfo.h +++ /dev/null @@ -1,89 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef SCRIPTINFO_H -#define SCRIPTINFO_H - -#include -#include -#include - -class Script; -class ScriptManager; - -class ScriptInfo { -public: - ScriptInfo(); - - enum Language { - Language_Unknown = 0, - Language_Python, - }; - - static const char* kIniFileName; - static const char* kIniSettingsGroup; - - void InitFromDirectory(const ScriptManager* manager, const QString& path); - void InitFromFile(const ScriptManager* manager, - const QString& id, - const QString& path, - const QString& filename); - void TakeMetadataFrom(const ScriptInfo& other); - - bool is_valid() const { return d->language_ != Language_Unknown; } - bool operator ==(const ScriptInfo& other) const; - bool operator !=(const ScriptInfo& other) const; - - const QString& path() const { return d->path_; } - const QString& id() const { return d->id_; } - - const QString& name() const { return d->name_; } - const QString& description() const { return d->description_; } - const QString& author() const { return d->author_; } - const QString& url() const { return d->url_; } - const QString& icon_filename() const { return d->icon_filename_; } - QIcon icon() const { return QIcon(icon_filename()); } - - Language language() const { return d->language_; } - const QString& script_file() const { return d->script_file_; } - - Script* loaded() const { return d->loaded_; } - void set_loaded(Script* loaded) { d->loaded_ = loaded; } - -private: - struct Private : public QSharedData { - Private() : language_(Language_Unknown), loaded_(NULL) {} - - QString path_; - QString id_; - - QString name_; - QString description_; - QString author_; - QString url_; - QString icon_filename_; - - Language language_; - QString script_file_; - - Script* loaded_; - }; - - QSharedDataPointer d; -}; - -#endif // SCRIPTINFO_H diff --git a/src/scripting/scriptinterface.cpp b/src/scripting/scriptinterface.cpp deleted file mode 100644 index 8dd90d6ef..000000000 --- a/src/scripting/scriptinterface.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "languageengine.h" -#include "script.h" -#include "scriptinterface.h" - -#include - -ScriptInterface::ScriptInterface(Script* script, QObject* parent) - : QObject(parent), - script_(script) -{ -} - -void ScriptInterface::ShowSettingsDialog() { - emit SettingsDialogRequested(); -} diff --git a/src/scripting/scriptinterface.h b/src/scripting/scriptinterface.h deleted file mode 100644 index b248c0e5f..000000000 --- a/src/scripting/scriptinterface.h +++ /dev/null @@ -1,46 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef SCRIPTINTERFACE_H -#define SCRIPTINTERFACE_H - -#include - -#include - -class Script; - -// An instance of this class is made available to each script -class ScriptInterface : public QObject { - Q_OBJECT - -public: - ScriptInterface(Script* script, QObject* parent = 0); - -public slots: - // Callable by C++ - void ShowSettingsDialog(); - -signals: - // Scripts should connect to this and show a settings dialog - void SettingsDialogRequested(); - -private: - Script* script_; -}; - -#endif // SCRIPTINTERFACE_H diff --git a/src/scripting/scriptmanager.cpp b/src/scripting/scriptmanager.cpp deleted file mode 100644 index 3325e0737..000000000 --- a/src/scripting/scriptmanager.cpp +++ /dev/null @@ -1,373 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "config.h" - -#ifdef HAVE_SCRIPTING_PYTHON -# include "scripting/python/pythonengine.h" -#endif - -#include "languageengine.h" -#include "script.h" -#include "scriptinterface.h" -#include "scriptmanager.h" -#include "uiinterface.h" -#include "core/logging.h" -#include "core/utilities.h" - -#ifdef Q_OS_MAC -# include "core/mac_startup.h" -#endif - -#include -#include -#include -#include -#include -#include -#include - -const char* ScriptManager::kSettingsGroup = "Scripts"; - -ScriptManager::ScriptManager(QObject* parent) - : QAbstractListModel(parent), - ui_interface_(new UIInterface(this)), - watcher_(new QFileSystemWatcher(this)), - rescan_timer_(new QTimer(this)) -{ -#ifdef HAVE_SCRIPTING_PYTHON - engines_ << new PythonEngine(this); -#endif - - connect(watcher_, SIGNAL(directoryChanged(QString)), SLOT(ScriptDirectoryChanged())); - - rescan_timer_->setSingleShot(true); - rescan_timer_->setInterval(1000); - connect(rescan_timer_, SIGNAL(timeout()), SLOT(RescanScripts())); - - // Create the user's scripts directory if it doesn't exist yet - QString local_path = Utilities::GetConfigPath(Utilities::Path_Scripts); - if (!QFile::exists(local_path)) { - if (!QDir().mkpath(local_path)) { - qLog(Warning) << "Couldn't create directory" << local_path; - } - } - - search_paths_ - << local_path -#ifdef USE_INSTALL_PREFIX - << CMAKE_INSTALL_PREFIX "/share/clementine/scripts" -#endif - << "/usr/share/clementine/scripts" - << "/usr/local/share/clementine/scripts"; - -#if defined(Q_OS_WIN32) - search_paths_ << QCoreApplication::applicationDirPath() + "/scripts"; -#elif defined(Q_OS_MAC) - search_paths_ << mac::GetResourcesPath() + "/scripts"; -#endif - - qLog(Debug) << "Script search paths:" << search_paths_; -} - -ScriptManager::~ScriptManager() { - foreach (const ScriptInfo& info, info_) { - if (info.loaded()) { - info.loaded()->language()->DestroyScript(info.loaded()); - } - } - qDeleteAll(engines_); -} - -void ScriptManager::Init(const GlobalData& data) { - qLog(Debug) << "Initialising"; - - data_ = data; - - // Load settings - LoadSettings(); - - // Search for scripts - info_ = LoadAllScriptInfo().values(); - - // Enable the ones that were enabled last time - for (int i=0 ; iid())) { - // Find an engine for it - LanguageEngine* engine = EngineForLanguage(info->language()); - if (!engine) { - qLog(Warning) << "Unknown language in" << info->path(); - return; - } - - info->set_loaded(engine->CreateScript(*info)); - if (!info->loaded()) { - // Failed to load? Disable it so we don't try again - enabled_scripts_.remove(info->id()); - SaveSettings(); - } - } -} - -QMap ScriptManager::LoadAllScriptInfo() const { - QMap ret; - - foreach (const QString& search_path, search_paths_) { - if (!QFile::exists(search_path)) - continue; - - if (!watcher_->directories().contains(search_path)) { - qLog(Debug) << "Adding directory watch:" << search_path; - watcher_->addPath(search_path); - } - - QDirIterator it(search_path, - QDir::Dirs | QDir::NoDotAndDotDot | QDir::Readable | QDir::Executable, - QDirIterator::FollowSymlinks); - while (it.hasNext()) { - it.next(); - const QString path = it.filePath(); - if (!watcher_->directories().contains(path)) { - qLog(Debug) << "Adding directory watch:" << path; - watcher_->addPath(path); - } - - ScriptInfo info; - info.InitFromDirectory(this, path); - if (!info.is_valid()) { - qLog(Warning) << "Not a valid Clementine script directory, ignoring:" - << path; - continue; - } - - if (ret.contains(info.id())) { - // Seen this script already - continue; - } - - ret.insert(info.id(), info); - } - } - - return ret; -} - -void ScriptManager::LoadSettings() { - QSettings s; - s.beginGroup(kSettingsGroup); - enabled_scripts_ = QSet::fromList( - s.value("enabled_scripts").toStringList()); -} - -void ScriptManager::SaveSettings() const { - QSettings s; - s.beginGroup(kSettingsGroup); - s.setValue("enabled_scripts", QVariant::fromValue(enabled_scripts_.toList())); -} - -LanguageEngine* ScriptManager::EngineForLanguage(const QString& language_name) const { - foreach (LanguageEngine* engine, engines_) { - if (engine->name() == language_name) { - return engine; - } - } - return NULL; -} - -LanguageEngine* ScriptManager::EngineForLanguage(ScriptInfo::Language language) const { - foreach (LanguageEngine* engine, engines_) { - if (engine->language() == language) { - return engine; - } - } - return NULL; -} - -int ScriptManager::rowCount(const QModelIndex& parent) const { - if (parent.isValid()) - return 0; - return info_.count(); -} - -QVariant ScriptManager::data(const QModelIndex& index, int role) const { - if (index.parent().isValid() || index.row() < 0 || index.row() >= info_.count()) - return QVariant(); - - const ScriptInfo& info = info_[index.row()]; - - switch (role) { - case Qt::DisplayRole: - return info.name(); - - case Qt::DecorationRole: - return info.icon(); - - case Role_Author: - return info.author(); - - case Role_Description: - return info.description(); - - case Role_Language: - return info.language(); - - case Role_ScriptFile: - return info.script_file(); - - case Role_Url: - return info.url(); - - case Role_IsEnabled: - return info.loaded() != NULL; - - default: - return QVariant(); - } -} - -void ScriptManager::Enable(const QModelIndex& index) { - if (index.row() < 0 || index.row() >= info_.count()) - return; - - ScriptInfo* info = &info_[index.row()]; - if (info->loaded()) - return; - - // Find an engine for it - LanguageEngine* engine = EngineForLanguage(info->language()); - if (!engine) { - qLog(Warning) << "Unknown language in" << info->path(); - return; - } - - // Load the script - info->set_loaded(engine->CreateScript(*info)); - - // If it loaded correctly then automatically load it in the future - if (info->loaded()) { - enabled_scripts_.insert(info->id()); - SaveSettings(); - } - - emit dataChanged(index, index); -} - -void ScriptManager::Disable(const QModelIndex& index) { - if (index.row() < 0 || index.row() >= info_.count()) - return; - - ScriptInfo* info = &info_[index.row()]; - if (!info->loaded()) - return; - - info->loaded()->language()->DestroyScript(info->loaded()); - info->set_loaded(NULL); - - enabled_scripts_.remove(info->id()); - SaveSettings(); - - emit dataChanged(index, index); -} - -void ScriptManager::ShowSettingsDialog(const QModelIndex& index) { - if (index.row() < 0 || index.row() >= info_.count()) - return; - - ScriptInfo* info = &info_[index.row()]; - if (!info->loaded()) - return; - - info->loaded()->interface()->ShowSettingsDialog(); -} - -void ScriptManager::AddLogLine(const QString& who, const QString& message, bool error) { - foreach (const QString& line, message.split("\n", QString::SkipEmptyParts)) { - QString plain = "[" + who + "] " + line; - QString html = "[" + Qt::escape(who) + "] " + Qt::escape(line); - html.replace(' ', " "); - - if (error) { - html = "" + html + ""; - } - - log_lines_ << html; - log_lines_plain_ << plain; - emit LogLineAdded(html); - } -} - -void ScriptManager::ScriptDirectoryChanged() { - rescan_timer_->start(); -} - -void ScriptManager::RescanScripts() { - // Get the new list of scripts - QMap new_info = LoadAllScriptInfo(); - - // Look at existing scripts, find ones that have changed or been deleted - for (int i=0 ; iid(); - - if (!new_info.contains(id)) { - // This script was deleted - unload it and remove it from the model - Disable(index(i)); - - beginRemoveRows(QModelIndex(), i, i); - info_.removeAt(i); - endRemoveRows(); - - --i; - continue; - } - - if (*info != new_info[id]) { - // This script was modified - change the metadata in the existing entry - info->TakeMetadataFrom(new_info[id]); - - emit dataChanged(index(i), index(i)); - - AddLogLine("Watcher", - tr("The '%1' script was modified, you might have to reload it").arg(id), false); - } - - new_info.remove(id); - } - - // Things that are left in new_info are newly added scripts - if (!new_info.isEmpty()) { - const int begin = info_.count(); - const int end = begin + new_info.count() - 1; - - beginInsertRows(QModelIndex(), begin, end); - info_.append(new_info.values()); - - for (int i=begin ; i<=end ; ++i) { - MaybeAutoEnable(&info_[i]); - } - - endInsertRows(); - } -} diff --git a/src/scripting/scriptmanager.h b/src/scripting/scriptmanager.h deleted file mode 100644 index cedb0b2c5..000000000 --- a/src/scripting/scriptmanager.h +++ /dev/null @@ -1,148 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef SCRIPTMANAGER_H -#define SCRIPTMANAGER_H - -#include "scriptinfo.h" - -#include -#include -#include -#include - -class LanguageEngine; -class Library; -class LibraryView; -class PlayerInterface; -class PlaylistManager; -class InternetModel; -class Script; -class SettingsDialog; -class TaskManager; -class UIInterface; - -class QFileSystemWatcher; - -class ScriptManager : public QAbstractListModel { - Q_OBJECT - -public: - ScriptManager(QObject* parent = 0); - ~ScriptManager(); - - enum Role { - Role_Description = Qt::UserRole, - Role_Author, - Role_Url, - Role_Language, - Role_ScriptFile, - Role_IsEnabled, - - RoleCount - }; - - struct GlobalData { - GlobalData() : valid_(false) {} - GlobalData(Library* library, LibraryView* library_view, - PlayerInterface* player, PlaylistManager* playlists, - TaskManager* task_manager, SettingsDialog* settings_dialog, - InternetModel* internet_model) - : valid_(true), - library_(library), - library_view_(library_view), - player_(player), - playlists_(playlists), - task_manager_(task_manager), - settings_dialog_(settings_dialog), - internet_model_(internet_model) - {} - - bool valid_; - Library* library_; - LibraryView* library_view_; - PlayerInterface* player_; - PlaylistManager* playlists_; - TaskManager* task_manager_; - SettingsDialog* settings_dialog_; - InternetModel* internet_model_; - }; - - static const char* kSettingsGroup; - - void Init(const GlobalData& data); - const GlobalData& data() const { return data_; } - UIInterface* ui() const { return ui_interface_; } - - void Enable(const QModelIndex& index); - void Disable(const QModelIndex& index); - void ShowSettingsDialog(const QModelIndex& index); - - QStringList log_lines() const { return log_lines_; } - QStringList log_lines_plain() const { return log_lines_plain_; } - - // QAbstractListModel - int rowCount(const QModelIndex& parent = QModelIndex()) const; - QVariant data(const QModelIndex& index, int role) const; - - // These need to be public for ScriptInfo - LanguageEngine* EngineForLanguage(const QString& language_name) const; - LanguageEngine* EngineForLanguage(ScriptInfo::Language language) const; - -public slots: - void AddLogLine(const QString& who, const QString& message, bool error); - -signals: - void LogLineAdded(const QString& html); - -private: - void LoadSettings(); - void SaveSettings() const; - - QMap LoadAllScriptInfo() const; - - void MaybeAutoEnable(ScriptInfo* info); - -private slots: - void ScriptDirectoryChanged(); - void RescanScripts(); - -private: - // Language engines - QList engines_; - - // All scripts we know about - QStringList search_paths_; - QList info_; - - // Names of scripts that get loaded automatically - QSet enabled_scripts_; - - // HTML log messages - QStringList log_lines_; - QStringList log_lines_plain_; - - // Things available to scripts - GlobalData data_; - UIInterface* ui_interface_; - - // Watches script directories for changes - QFileSystemWatcher* watcher_; - QTimer* rescan_timer_; -}; - -#endif // SCRIPTMANAGER_H diff --git a/src/scripting/uiinterface.cpp b/src/scripting/uiinterface.cpp deleted file mode 100644 index cdfad0054..000000000 --- a/src/scripting/uiinterface.cpp +++ /dev/null @@ -1,95 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#include "uiinterface.h" -#include "core/logging.h" - -#include -#include -#include - -UIInterface::UIInterface(QObject* parent) - : QObject(parent) -{ -} - -void UIInterface::RegisterActionLocation(const QString& id, QMenu* menu, QAction* before) { - if (locations_.contains(id)) { - qLog(Warning) << "A location with ID" << id << "was already registered"; - return; - } - - locations_[id] = Location(menu, before); - - connect(menu, SIGNAL(destroyed()), SLOT(MenuDestroyed())); - if (before) { - connect(before, SIGNAL(destroyed()), SLOT(MenuActionDestroyed())); - } - - // Add any actions that were waiting - foreach (const IdAndAction& id_action, pending_actions_) { - if (id_action.first == id) { - DoAddAction(id_action.first, id_action.second); - pending_actions_.removeAll(id_action); - } - } -} - -void UIInterface::AddAction(const QString& id, QAction* action) { - if (locations_.contains(id)) { - DoAddAction(id, action); - } else { - // Maybe that part of the UI hasn't been lazy created yet - pending_actions_ << IdAndAction(id, action); - connect(action, SIGNAL(destroyed()), SLOT(ActionDestroyed())); - } -} - -void UIInterface::DoAddAction(const QString& id, QAction* action) { - const Location& location = locations_[id]; - - if (location.menu_) { - location.menu_->insertAction(location.before_, action); - } -} - -void UIInterface::MenuDestroyed() { - QMenu* menu = qobject_cast(sender()); - foreach (const QString& id, locations_.keys()) { - if (locations_[id].menu_ == menu) { - locations_.remove(id); - } - } -} - -void UIInterface::MenuActionDestroyed() { - QAction* action = qobject_cast(sender()); - foreach (const QString& id, locations_.keys()) { - if (locations_[id].before_ == action) { - locations_.remove(id); - } - } -} - -void UIInterface::ActionDestroyed() { - QAction* action = qobject_cast(sender()); - foreach (const IdAndAction& id_action, pending_actions_) { - if (id_action.second == action) { - pending_actions_.removeAll(id_action); - } - } -} diff --git a/src/scripting/uiinterface.h b/src/scripting/uiinterface.h deleted file mode 100644 index 800b6fa3d..000000000 --- a/src/scripting/uiinterface.h +++ /dev/null @@ -1,65 +0,0 @@ -/* This file is part of Clementine. - Copyright 2010, David Sansome - - Clementine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - Clementine is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Clementine. If not, see . -*/ - -#ifndef UIINTERFACE_H -#define UIINTERFACE_H - -#include -#include -#include - -class QAction; -class QMenu; - -class UIInterface : public QObject { - Q_OBJECT - -public: - UIInterface(QObject* parent = 0); - - // Called from C++ - void RegisterActionLocation(const QString& id, QMenu* menu, QAction* before); - -public slots: - // Called from scripts - void AddAction(const QString& id, QAction* action); - -private slots: - void MenuDestroyed(); - void MenuActionDestroyed(); - - void ActionDestroyed(); - -private: - struct Location { - Location() : menu_(NULL), before_(NULL) {} - Location(QMenu* menu, QAction* before) : menu_(menu), before_(before) {} - - QMenu* menu_; - QAction* before_; - }; - - typedef QPair IdAndAction; - - void DoAddAction(const QString& id, QAction* action); - -private: - QList pending_actions_; - QMap locations_; -}; - -#endif // UIINTERFACE_H diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 1bf96f2fb..6ba117a9e 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -63,9 +63,6 @@ #include "playlist/queuemanager.h" #include "playlist/songplaylistitem.h" #include "playlistparsers/playlistparser.h" -#include "scripting/scriptdialog.h" -#include "scripting/scriptmanager.h" -#include "scripting/uiinterface.h" #include "smartplaylists/generator.h" #include "smartplaylists/generatormimedata.h" #include "songinfo/artistinfoview.h" @@ -194,7 +191,6 @@ MainWindow::MainWindow( #ifdef HAVE_WIIMOTEDEV wiimotedev_shortcuts_(NULL), #endif - scripts_(new ScriptManager(this)), playlist_menu_(new QMenu(this)), playlist_add_to_another_(NULL), library_sort_model_(new QSortFilterProxyModel(this)), @@ -669,15 +665,6 @@ MainWindow::MainWindow( connect(ui_->action_kittens, SIGNAL(toggled(bool)), ui_->now_playing, SLOT(EnableKittens(bool))); NowPlayingWidgetPositionChanged(ui_->now_playing->show_above_status_bar()); - // Add places where scripts can make actions - qLog(Debug) << "Registering script action locations"; - scripts_->ui()->RegisterActionLocation("tools_menu", ui_->menu_tools, ui_->action_full_library_scan); - scripts_->ui()->RegisterActionLocation("extras_menu", ui_->menu_extras, NULL); - scripts_->ui()->RegisterActionLocation("help_menu", ui_->menu_help, NULL); - scripts_->ui()->RegisterActionLocation("playlist_menu", ui_->menu_playlist, NULL); - - scripts_->ui()->RegisterActionLocation("song_menu", playlist_menu_, NULL); - // Load theme StyleSheetLoader* css_loader = new StyleSheetLoader(this); css_loader->SetStyleSheet(this, ":mainwindow.css"); @@ -761,19 +748,6 @@ MainWindow::MainWindow( wiimotedev_shortcuts_.reset(new WiimotedevShortcuts(osd_, this, player_)); #endif - // If we support more languages this ifdef will need to be changed. -#ifdef HAVE_SCRIPTING_PYTHON - qLog(Debug) << "Initialising scripting"; - scripts_->Init(ScriptManager::GlobalData( - library_, library_view_->view(), player_, playlists_, - task_manager_, settings_dialog_.get(), internet_model_)); - connect(ui_->action_script_manager, SIGNAL(triggered()), SLOT(ShowScriptDialog())); - - library_view_->view()->SetScriptManager(scripts_); -#else - ui_->action_script_manager->setVisible(false); -#endif - CheckFullRescanRevisions(); qLog(Debug) << "Started"; @@ -2081,14 +2055,6 @@ void MainWindow::Raise() { activateWindow(); } -void MainWindow::ShowScriptDialog() { - if (!script_dialog_) { - script_dialog_.reset(new ScriptDialog); - script_dialog_->SetManager(scripts_); - } - script_dialog_->show(); -} - #ifdef Q_OS_WIN32 bool MainWindow::winEvent(MSG* msg, long*) { thumbbar_->HandleWinEvent(msg); diff --git a/src/ui/mainwindow.h b/src/ui/mainwindow.h index c9de55599..f87174d5b 100644 --- a/src/ui/mainwindow.h +++ b/src/ui/mainwindow.h @@ -61,8 +61,6 @@ class InternetItem; class InternetModel; class InternetViewContainer; class Remote; -class ScriptDialog; -class ScriptManager; class Song; class SongInfoBase; class SongInfoView; @@ -234,7 +232,6 @@ class MainWindow : public QMainWindow, public PlatformInterface { void OpenSettingsDialog(); void OpenSettingsDialogAtPage(SettingsDialog::Page page); void ShowSongInfoConfig(); - void ShowScriptDialog(); void SaveGeometry(); @@ -308,9 +305,6 @@ class MainWindow : public QMainWindow, public PlatformInterface { boost::scoped_ptr wiimotedev_shortcuts_; #endif - ScriptManager* scripts_; - boost::scoped_ptr script_dialog_; - QAction* library_show_all_; QAction* library_show_duplicates_; QAction* library_show_untagged_; diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui index 2894805c2..035d6cb20 100644 --- a/src/ui/mainwindow.ui +++ b/src/ui/mainwindow.ui @@ -415,7 +415,7 @@ 0 0 1131 - 25 + 23 @@ -423,7 +423,7 @@ Music - + @@ -480,7 +480,6 @@ - @@ -660,9 +659,9 @@ - - Open &audio CD... - + + Open &audio CD... + @@ -756,14 +755,14 @@ - - Go to next playlist tab - + + Go to next playlist tab + - - Go to previous playlist tab - + + Go to previous playlist tab + @@ -796,11 +795,6 @@ Ctrl+M - - - Script Manager - - Do a full library rescan